blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a1c8c70909a8fc1c7ae9cd1d3c59271506fb61df | cb73fe89463892c8c147c6995e220f5b1635fabb | /AtCoder Beginner Contest 174/q3.py | ac39b97c6a5853fd19f555ce923192f306771a27 | [] | no_license | Haraboo0814/AtCoder | 244f6fd17e8f6beee2d46fbfaea6a8e798878920 | 7ad794fd85e8d22d4e35087ed38f453da3c573ca | refs/heads/master | 2023-06-15T20:08:37.348078 | 2021-07-17T09:31:30 | 2021-07-17T09:31:30 | 254,162,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | import sys
from io import StringIO
import unittest
def resolve():
k = int(input())
x = 7 % k
for i in range(1, k + 1):
if x == 0:
print(i)
return
x = (x * 10 + 7) % k
print(-1)
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
... | [
"harada-kyohei-fj@ynu.jp"
] | harada-kyohei-fj@ynu.jp |
06aedfb3216e2eaac1c2235aa66ef85e9bef765f | f9318e10a48e9e87f7c1537c8f2e647dda677e4c | /octopus/modules/account/account.py | f4cf289eb6fd78bae031846b8ce19af629b05fda | [
"Apache-2.0"
] | permissive | JiscPER/magnificent-octopus | 250579020ead7a8d8424e96a8c3e811b12cc4d90 | e1be9a5f779a38122c5ad9d1d5365bb9a1dc2cf1 | refs/heads/master | 2023-07-20T00:27:26.018800 | 2016-01-22T16:07:24 | 2016-01-22T16:07:24 | 46,710,009 | 0 | 1 | NOASSERTION | 2023-07-10T11:22:43 | 2015-11-23T09:29:26 | Python | UTF-8 | Python | false | false | 10,571 | py | import uuid, json
from flask import Blueprint, request, url_for, flash, redirect, make_response
from flask import render_template, abort
from flask.ext.login import login_user, logout_user, current_user, login_required
from octopus.core import app
from octopus.lib.webapp import ssl_required, request_wants_json, flash... | [
"richard@cottagelabs.com"
] | richard@cottagelabs.com |
f480fc8f2b9e68eea63991f2c1e899917ba3f613 | c5148bc364dac753c0872bd5676027a30b260486 | /build/lib/biosteam/units/decorators/_design.py | bd20530d6c47562af76bc4bada9d063ee6920593 | [
"MIT",
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ecoent/biosteam | 86f47c713a2cae5d6261b6c2c7734ccf7a90fb4e | f1371386d089df3aa8ce041175f210c0318c1fe0 | refs/heads/master | 2021-02-24T14:10:23.158984 | 2020-03-05T03:43:17 | 2020-03-05T03:43:17 | 245,433,768 | 1 | 0 | NOASSERTION | 2020-03-06T13:59:27 | 2020-03-06T13:59:26 | null | UTF-8 | Python | false | false | 4,647 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 6 17:19:41 2019
@author: yoelr
"""
__all__ = ('design', 'add_design')
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 17 21:18:50 2019
@author: yoelr
"""
from thermosteam.base import stream_units_of_measure
__all__ = ('design',)
# %% Design Center class
def _design(... | [
"yoelcortes@gmail.com"
] | yoelcortes@gmail.com |
a54031a091dc8ef18fbd886a0d9a5de58b59c0fa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03326/s432961114.py | 004e333b7354de53b77847c25af19fb0cad2aa12 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | n,m = map(int, input().split())
ab = [list(map(int, input().split())) for _ in range(n)]
import itertools
nums = [0,1]
ll = list(itertools.product(nums,repeat=3))
res = 0
for i in ll:
temp =[]
for j in range(n):
if i[0]==0:
x = ab[j][0]
else:
x = -ab[j][0]
if i... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6f0fb9c49884e780a516de1d650e4a68ef9638bb | 8937c4d452c98699610923f76a395a2247f576df | /demo/download_demo_data.py | 849791f18789882a992f77b515e00bad9d872f31 | [] | no_license | mistycheney/MouseBrainAtlas | 812b204af06ed303f3c12d5c81edef50c8d9d1ed | bffbaa1ede9297084e64fc197716e63d5cb54275 | refs/heads/master | 2020-04-11T13:44:09.632311 | 2018-11-20T22:32:15 | 2018-11-20T22:32:15 | 20,377,173 | 3 | 9 | null | 2017-03-15T19:39:27 | 2014-06-01T12:42:08 | Jupyter Notebook | UTF-8 | Python | false | false | 3,974 | py | #! /usr/bin/env python
import sys, os
sys.path.append(os.path.join(os.environ['REPO_DIR'], 'utilities'))
from utilities2015 import *
from metadata import *
from data_manager import *
import argparse
parser = argparse.ArgumentParser(
formatter_class=argparse.RawDescriptionHelpFormatter,
description='This scri... | [
"cyc3700@gmail.com"
] | cyc3700@gmail.com |
e5d11a77ce1c989514ae0215922f88d8f5fb9851 | 137b2969323f7fb20cf4b72bf24ff98339a410c8 | /tutorial/2/cal_pi_python.py | c9c4f802a962d65871cd0ef97a9fb7dd63ca74cd | [] | no_license | kangheeyong/STUDY-make-lda-lib | c91b6d9a5bff7b25a0c00b63e61f93fbd60d2a8e | 0f658032cf63922a0a5fc2fb5f34b8f22e97c94f | refs/heads/master | 2021-02-12T06:27:27.900312 | 2020-04-03T10:56:21 | 2020-04-03T10:56:21 | 244,568,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | # calc_pi.py
def recip_square(i):
return 1. / i ** 2
def approx_pi(n=10000000):
val = 0.
for k in range(1, n + 1):
val += recip_square(k)
return (6 * val) ** .5
if __name__ == '__main__':
approx_pi()
| [
"cagojeiger@naver.com"
] | cagojeiger@naver.com |
879b16bbb01c016b6e984839fa4a918be7adb5cf | f8e8e365c9cf58b61d72655bc2340baeaed5baff | /Leetcode/Python Solutions/Stack/largestRectangleinHistogram.py | 39ee39bff0455b2a950049c9ecd1446682f4e05b | [
"MIT"
] | permissive | Mostofa-Najmus-Sakib/Applied-Algorithm | 39a69f6b9ed113efe4a420d19cad79e0aa317637 | bc656fd655617407856e0ce45b68585fa81c5035 | refs/heads/master | 2023-08-31T19:54:34.242559 | 2021-11-05T03:43:35 | 2021-11-05T03:43:35 | 412,263,430 | 0 | 0 | MIT | 2021-09-30T23:45:29 | 2021-09-30T23:45:25 | null | UTF-8 | Python | false | false | 641 | py | """
LeetCode Problem: 84. Largest Rectangle in Histogram
Link: https://leetcode.com/problems/largest-rectangle-in-histogram/
Language: Python
Written by: Mostofa Adib Shakib
Time Complexity: O(N)
Space Complexity: O(N)
"""
class Solution:
def largestRectangleArea(self, heights: List[int]) -> int:
heights.... | [
"adibshakib@gmail.com"
] | adibshakib@gmail.com |
7c0f136ffcd56de3056adde9a1237a0f37c7128a | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/storagesync/v20190601/cloud_endpoint.py | 5c78675b69b623e9ab26c75f703f023c90e7a642 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,839 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
d21803cc3e6025eb6eac8884a3604a3dfc0f2cfe | b0d7d91ccb7e388829abddb31b4aa04a2f9365cd | /archive-20200922/binary-search/first_bad_version2.py | 62556ed0f8ac0ef51c7ea5298bc5dd50a4ec3b3f | [] | no_license | clarkngo/python-projects | fe0e0aa02896debe82d1e9de84b1ae7d00932607 | 139a20063476f9847652b334a8495b7df1e80e27 | refs/heads/master | 2021-07-02T10:45:31.242041 | 2020-10-25T08:59:23 | 2020-10-25T08:59:23 | 188,570,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | # https://leetcode.com/problems/first-bad-version/submissions/
# You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the previous version, all the versions after a bad versio... | [
"clarkngo@gmail.com"
] | clarkngo@gmail.com |
21418667a8fe05896963725a6a68685b6845f11a | 468a20df682ba43484f1953797f343011f77d7c1 | /app.py | 31669bddb87e95ebaf2f6c422b3575cae13d671e | [
"MIT"
] | permissive | hchen13/capshelper | 447006d363420e87a1ca4389ab1388b496495cdd | aea799c07064369642c3db557e939634c6c5da70 | refs/heads/master | 2020-03-21T21:09:30.904144 | 2018-06-29T03:20:30 | 2018-06-29T03:20:30 | 139,049,101 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | import json
import os
from butler import Butler
from butler.visualize import *
from downloader import *
from settings import ROOT_DIR
butler = Butler()
downloader = Downloader()
main_coins = 'USDT BTC ETH'.split(" ")
def update_watchlist():
watchlist = []
for counter in main_coins:
coins = download... | [
"gradschool.hchen13@gmail.com"
] | gradschool.hchen13@gmail.com |
edfd582480b72d10d09c194a3b7b3e81e62b6e35 | 14b5679d88afa782dc5d6b35878ab043089a060a | /students/Siyang Liu/voicecontrol_changechoth/voice.py | 7236b542f70ca123741e24926ba00368fad76e9a | [] | no_license | mutiangua/EIS2020 | c541ef32623f67f9277945cd39cff3c02f06e4dd | 92aa2711b763a2c93be238825c445bf2db8da391 | refs/heads/master | 2022-11-18T05:21:47.567342 | 2020-07-11T10:11:21 | 2020-07-11T10:11:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,374 | py | import wave
from aip import AipSpeech
from xpinyin import Pinyin
import pyaudio
import os
import cv2
CHUNK = 1024
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 8000
RECORD_SECONDS = 5
WAVE_OUTPUT_FILENAME = "audio.wav"
APP_ID = '19165946'
API_KEY = 'D7BqfDPOj9ORbG85FL5jOQjh'
SECRET_KEY = 'skL4Mag0dGqus... | [
"noreply@github.com"
] | mutiangua.noreply@github.com |
dc2dd5439cb5bc87b057d15c4313f5adde3c50df | cebf2e5276e6d064d0ec86beaf1129fe0d0fd582 | /days051-060/day059/capstone/blog.py | 5a570cc0b88eb25417e462a8cc83d88159821495 | [] | no_license | SheikhFahimFayasalSowrav/100days | 532a71c5c790bc28b9fd93c936126a082bc415f5 | 0af9f2f16044facc0ee6bce96ae5e1b5f88977bc | refs/heads/master | 2023-06-14T06:18:44.109685 | 2021-07-08T16:58:13 | 2021-07-08T16:58:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | import requests
from flask import Flask, render_template
app = Flask(__name__)
posts = requests.get('https://api.npoint.io/a6ff5a040e0baf25233b').json()
@app.route('/')
def home():
return render_template('index.html', posts=posts)
@app.route('/about')
def about():
return render_template('about.html')
@a... | [
"pullynnhah@icloud.com"
] | pullynnhah@icloud.com |
4eaa041d0256e39539ed200f4a816597c3d3edad | ccbb5c8f53448af1a4721dbbfd06fc1ee72f58a9 | /setup.py | 4d756203887506c35187f9a7a08ac108a4b197af | [
"BSD-2-Clause"
] | permissive | jorisvandenbossche/spatialpandas | ed7c05e2d3e2c2223fdcbeaa78279edf200c5a80 | b63ebe619b8b8692fe282662725d23a50007acd9 | refs/heads/master | 2020-09-07T22:55:03.581677 | 2019-11-04T22:50:48 | 2019-11-04T22:50:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from setuptools import setup, find_packages
setup(name='spatialpandas',
packages=find_packages(exclude=('tests',)),
install_requires=['pandas', 'dask', 'numba', 'numpy'],
tests_require=['pytest', 'hypothesis'])
| [
"jon.mease@gmail.com"
] | jon.mease@gmail.com |
7fb0fdcff4227dc74d10c6bffc07eb836805e31f | f2889a13368b59d8b82f7def1a31a6277b6518b7 | /661.py | 020da6437c8f01ec4483274e593f6429a27683c4 | [] | no_license | htl1126/leetcode | dacde03de5c9c967e527c4c3b29a4547154e11b3 | c33559dc5e0bf6879bb3462ab65a9446a66d19f6 | refs/heads/master | 2023-09-01T14:57:57.302544 | 2023-08-25T15:50:56 | 2023-08-25T15:50:56 | 29,514,867 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | class Solution:
def imageSmoother(self, img: List[List[int]]) -> List[List[int]]:
r, c = len(img), len(img[0])
ans = [[0] * c for _ in range(r)]
for i in range(r):
for j in range(c):
t = size = 0
for x in range(-1, 2, 1):
for y ... | [
"tlhuang@tlhuang.net"
] | tlhuang@tlhuang.net |
ec4463cf20a2f83c632703cc8a7283095b474336 | 993f18c21402d7a4ff21ddb7ff2ec6c80e466f20 | /onnx/reference/ops/aionnxml/__init__.py | e3f999338b6c99221d365ccc5f53f06fb9824265 | [
"Apache-2.0"
] | permissive | onnx/onnx | 10d3916803c7babff89ec0fa9045127bcccad376 | 8a475b34cb3875df311a46f57571646498f5bda7 | refs/heads/main | 2023-08-18T18:50:03.388353 | 2023-08-16T22:18:46 | 2023-08-16T22:18:46 | 102,692,863 | 16,164 | 4,150 | Apache-2.0 | 2023-09-14T17:10:38 | 2017-09-07T04:53:45 | Python | UTF-8 | Python | false | false | 96 | py | # SPDX-License-Identifier: Apache-2.0
from onnx.reference.ops.aionnxml._op_list import load_op
| [
"noreply@github.com"
] | onnx.noreply@github.com |
13009baf812cd8747ff405145799588fa9fb1406 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v9/errors/types/query_error.py | 8758e1728e679b9b1207402920a2e48a6a25d5ba | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 3,253 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | GerhardusM.noreply@github.com |
b67319a271d923790927e483e58fe947902af3ae | a50fc03c5de39fb321f07016ef64e13d98fa7c50 | /MyDB/data/make_labels/work_flow.py | 287d933be1953d53aad6cc87108bf26781f58287 | [
"Apache-2.0"
] | permissive | PKQ1688/text_detection | a94c435b3e2ee962b7489a094438ad052d7e7655 | e306b003f2e8eb9f8d07fc95d2d9def14fa8b38c | refs/heads/master | 2022-11-21T18:09:49.430313 | 2020-07-29T08:44:50 | 2020-07-29T08:44:50 | 246,490,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,440 | py | # -*- coding:utf-8 -*-
# @author :adolf
from data.make_labels.make_border_map import MakeBorderMap
from data.make_labels.make_shrink_map import MakeShrinkMap
import numpy as np
from data.data_utils.clockwise_points import order_points_clockwise
import cv2
import os
# img_path = '/home/shizai/data2/ocr_data/rctw/imgs... | [
"zhutaonan@i-i.ai"
] | zhutaonan@i-i.ai |
7ea5ff8329c041e70598b5838b3b5ef768c4e455 | 41f98451dffd4a8719a39ec5c0291e4812e89e59 | /td_cours/td_2_structures_iteratives/td_2_ex_8.py | 2dc44faf6fa8722ada0faf27830904a25f5637b1 | [] | no_license | mbagrel1/isn | 742926de4989ea28b9c4f1b6538ac04d6f34eef0 | 480e60efa51d886810c7c7616c839ad9f3b2ec14 | refs/heads/master | 2020-05-18T19:53:29.186118 | 2019-05-12T11:14:00 | 2019-05-12T11:14:00 | 184,618,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py |
for j in range(10):
for i in range(10):
print"*",
print""
| [
"mariebagrel54@gmail.com"
] | mariebagrel54@gmail.com |
c970668ee9d13930e662701f9264a1f3549c7dbb | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/77/usersdata/232/41242/submittedfiles/exercicio24.py | 3eac611f36a389948a2e0b1b66783af935b9b375 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # -*- coding: utf-8 -*-
import math
a=int(input('Digite o valor de a: '))
b=int(input('Digite o valor de b: '))
if a>b:
for i in range (1,b,1):
if (a%i)==0 and (b%i)==0:
print(i)
else:
for i in range (1,a,1):
if (b%i)==0 and (a%i)==0:
print(i)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
bbdba525d199606ba340c0a5217998203f805593 | df6c141f5fb53c093b75da13275576728d40cb6c | /tests/core/parse/test_parse_delimited.py | 0259f7b44c53a32886d111e2a8987d9e7d35ef1b | [
"MIT"
] | permissive | conormancone-cimpress/mygrations | 3adee758dc5b9f8c0abb3e097a7d7146042696bf | 30d1d568ca7d6c38dbc5211834dd2d04c0bcf078 | refs/heads/master | 2022-04-03T20:55:54.892085 | 2020-02-18T11:31:24 | 2020-02-18T11:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,632 | py | import unittest
from mygrations.core.parse.rule_delimited import rule_delimited
class test_parse_delimited(unittest.TestCase):
def get_rule(self, name, separator, quote, literal):
return rule_delimited(
False, {
'name': name,
'separator': separator,
... | [
"cmancone@gmail.com"
] | cmancone@gmail.com |
f2371f9dde81ea8197eea23b216630c67d818e85 | e984812ab56f50a14979d72222e3a6e011789324 | /python/LambPlot/plotConfiguration/WH_SS/Full2017nanov6/aliases.py | bc1ec4edbc864bc2f4c9a200c17c2cae143dbd7c | [] | no_license | LambdaFramework/LambdaNano | b3348addb299d48d60a0f5a8516acdd732c6f5c1 | fa50e69dace802dcc07fa3e0f977f49e879a8809 | refs/heads/master | 2021-07-06T07:17:06.130973 | 2020-12-07T21:30:40 | 2020-12-07T21:30:40 | 208,898,103 | 0 | 2 | null | 2019-10-04T08:16:01 | 2019-09-16T21:06:42 | Python | UTF-8 | Python | false | false | 10,866 | py | import os
import copy
import inspect
from samples import samples
configurations = os.path.realpath(inspect.getfile(inspect.currentframe())) # this file
configurations = os.path.dirname(configurations) # ggH2016
configurations = os.path.dirname(configurations) # Differential
configurations = os.path.dirname(configurat... | [
"siew.yan.hoh@cern.ch"
] | siew.yan.hoh@cern.ch |
c0eda41227ed6365f7984d500065a66cfb9ad2b5 | fe20c7d7589c2eab11b5c04468a5035421b292cc | /pipenv/vendor/tomlkit/items.py | 781e2e984322a3656460516be735af5ba0fead2b | [
"MIT",
"BSD-3-Clause"
] | permissive | Anthonymcqueen21/pipenv | 0043181731f49b4cbb1b5e37b9820d9902ca9aae | 3ce8d7c6bb8007f93f011bd0a7c32b3e977d379f | refs/heads/master | 2020-04-04T22:32:57.421827 | 2018-11-05T14:41:05 | 2018-11-05T14:41:05 | 156,327,730 | 2 | 0 | MIT | 2018-11-06T04:53:11 | 2018-11-06T04:53:11 | null | UTF-8 | Python | false | false | 29,080 | py | from __future__ import unicode_literals
import re
import string
from datetime import date
from datetime import datetime
from datetime import time
import sys
if sys.version_info >= (3, 4):
from enum import Enum
else:
from pipenv.vendor.backports.enum import Enum
from ._compat import PY2
from ._compat import d... | [
"dan@danryan.co"
] | dan@danryan.co |
96e148bc4a0214e66c46be3fb70e8b07f9f28a1b | 52b2e3470cd4b91975b2e1caed8d1c93c20e5d05 | /tools/misc/dedup.py | b45b5fdcaa724397e39049fcdfd692a60aaaf159 | [] | no_license | xprime480/projects | c2f9a82bbe91e00859568dc27ae17c3b5dd873e3 | 3c5eb2d53bd7fa198edbe27d842ee5b5ff56e226 | refs/heads/master | 2020-04-27T03:51:29.456979 | 2019-04-12T14:34:39 | 2019-04-12T14:34:39 | 174,037,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | #!/usr/bin/python
class Deduper(object) :
def __init__(self) :
self.lines = {}
self.count = 0
def addLine(self, line) :
self.count += 1
self.lines[line] = self.count
def getLines(self) :
lineListWithIndex = [(index,line) for line,index in self.lines.items()]
... | [
"mi.davis@sap.com"
] | mi.davis@sap.com |
481366b4ed79ce490dd3f6c4e8e0913f760fd9bb | b96d4479c86b971a23d20854000aecd6e1f8ce0a | /audit/mixins.py | 1c261b7a7072d808856ef448bae880fab709c7f9 | [] | no_license | dbsiavichay/invenco | 0eb3d74e8403dbed9d4d9459bd25c8ae107368fe | 11e06d1ae694f9ffc158400fc63f4b81f1807875 | refs/heads/master | 2022-11-29T21:08:05.075194 | 2019-07-23T14:06:51 | 2019-07-23T14:06:51 | 92,068,624 | 1 | 0 | null | 2022-11-22T01:15:08 | 2017-05-22T15:22:30 | JavaScript | UTF-8 | Python | false | false | 864 | py | # -*- coding: utf-8 -*-
from django.contrib.contenttypes.models import ContentType
from django.contrib.admin.models import LogEntry, ADDITION, CHANGE, DELETION
from django.utils.encoding import force_unicode
class AuditMixin(object):
def save_log(self, user, message, ACTION):
log = LogEntry.objects.create... | [
"dbsiavichay@gmail.com"
] | dbsiavichay@gmail.com |
808d060c64c007cbf5ccbed2a10e6f19c169a93e | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.9.56/3/1569573341.py | 7861b0d7864d83874341994b8d4a4c9183986b35 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | import functools
import typing
import string
import random
import pytest
def leap(jahrzahl: int) -> bool:
'return True if the given year is schaltjahr and false if not'
if jahrzahl > 1582:
if jahrzahl % 100 == 0 and jahrzahl% 400 != 0:
return True
else:
return False
... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
cc3f3bdd7b7d3c7b6073fc600dab76adaa827007 | 0dd881b86146eff46a99e3100a12addcb5b1bde9 | /No701 Insert into a Binary Search Tree.py | bf808a212bff8626fffb83d0862a468224faf119 | [] | no_license | BaijingML/leetcode | 8b04599ba6f1f9cf12fbb2726f6a1463a42f0a70 | 0ba37ea32ad71d9467f73da6f9e71971911f1d4c | refs/heads/master | 2020-03-22T05:07:17.884441 | 2020-01-10T12:13:54 | 2020-01-10T12:13:54 | 138,399,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def insertIntoBST(self, root: TreeNode, val: int) -> TreeNode:
if not root:
return root
if val < root.val:
... | [
"2670871693@qq.com"
] | 2670871693@qq.com |
ab2368e353ecfb086908d5635656a7bd22fb9cbb | 5f67c696967456c063e5f8a0d14cf18cf845ad38 | /archiv/_python/py4inf/xml1.py | e71260c5a8b2930fed02fa39bbc048217dc8cb67 | [] | no_license | wuxi20/Pythonista | 3f2abf8c40fd6554a4d7596982c510e6ba3d6d38 | acf12d264615749f605a0a6b6ea7ab72442e049c | refs/heads/master | 2020-04-02T01:17:39.264328 | 2019-04-16T18:26:59 | 2019-04-16T18:26:59 | 153,848,116 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | import xml.etree.ElementTree as ET
data = '''
<person>
<name>Chuck</name>
<phone type="intl">
+1 734 303 4456
</phone>
<email hide="yes"/>
</person>'''
tree = ET.fromstring(data)
print('Name:',tree.find('name').text)
print('Attr:',tree.find('email').get('hide'))
| [
"22399993@qq.com"
] | 22399993@qq.com |
7923e0d4e6524bc8d6329971c1e892fc33f5efa7 | ea99544eef7572b194c2d3607fa7121cb1e45872 | /apps/support/migrations/0003_auto_20190407_1007.py | abf7098fd524718ce25631fdde2aa89a1d5d749a | [] | no_license | ash018/FFTracker | 4ab55d504a9d8ba9e541a8b682bc821f112a0866 | 11be165f85cda0ffe7a237d011de562d3dc64135 | refs/heads/master | 2022-12-02T15:04:58.543382 | 2019-10-05T12:54:27 | 2019-10-05T12:54:27 | 212,999,035 | 0 | 0 | null | 2022-11-22T03:58:29 | 2019-10-05T12:53:26 | Python | UTF-8 | Python | false | false | 470 | py | # Generated by Django 2.2 on 2019-04-07 10:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('support', '0002_customersupport_user'),
]
operations = [
migrations.AlterField(
model_name='customersupport',
name='st... | [
"sadatakash018@gmail.com"
] | sadatakash018@gmail.com |
301498f89b89d64d5a6b050f084e33d3e27e9569 | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/lobby/cyberSport/CyberSportUnitsListView.py | 37f7802efad2cd66a095df4f913fd0d67f3ec9e6 | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,519 | py | # 2017.02.03 21:49:44 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/cyberSport/CyberSportUnitsListView.py
from UnitBase import UNIT_BROWSER_TYPE
from gui.Scaleform.daapi.view.lobby.rally.rally_dps import ManualSearchDataProvider
from gui.Scaleform.daapi.view.meta.CyberSp... | [
"info@webium.sk"
] | info@webium.sk |
410054c7d49eb4fa18c33fc8e799b007a006b702 | 873257c67e1bb2756053f88c4f9331d14c00424b | /NGC5257/RotationCurve/Bbarolo/12CO21/test2/run3/pyscript.py | fabc02448b4e0be15da32c400bb493e108e642fd | [] | no_license | heh15/Arp240 | 64058dd9c84653e3a7035e5ee088c55a6b4119e3 | cae7bf59ebaaa9f69d2204a1be522f4c0b76d7f7 | refs/heads/master | 2020-08-27T12:14:36.002105 | 2020-06-19T00:42:34 | 2020-06-19T00:42:34 | 156,797,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,701 | py | import numpy as np
import os
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
from matplotlib.colorbar import ColorbarBase
from astropy.io import fits
from astropy.visualization import LinearStretch, PowerStretch
from astropy.visualization.mpl_normalize import ImageNormal... | [
"heh15@mcmaster.ca"
] | heh15@mcmaster.ca |
f00fe9f24b7f590fb1a7de3a9fae4f9da18bf2ff | 21e1d00c48c1732cc44af077572299831b93ffc2 | /1000_PROBLEMS/SimplePythonPrograms/Problem-13.py | 414ab5620f03a8d4311ccd9c1a6e407e2cce8267 | [] | no_license | GolamRabbani20/PYTHON-A2Z | 7be72041407e4417359b3a610ced0919f3939993 | 7c89223f253aa559fa15caacb89c68e0b78ff915 | refs/heads/master | 2023-05-09T00:43:03.012963 | 2021-05-26T07:56:56 | 2021-05-26T07:56:56 | 317,953,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | #Python Program to Count the Number of Digits in a Numbe
x=int(input("Enter a number:"))
s=0
while x>=1:
rem=x%10
s+=1
x=x//10
print("Total number of digits:",s) | [
"mdgolamrabbani96@gmail.com"
] | mdgolamrabbani96@gmail.com |
a2dce625a2f9f2cd0e30411bdbfc7ec2277792d5 | 601b8aa76cc86c159c2736107d0779e31a2a7c56 | /datacube/utils/__init__.py | c3cf7fd4d9f2b1a4b74d75f432eb6ed7d1a339a6 | [
"Apache-2.0"
] | permissive | PhilipeRLeal/datacube-core | 531b7156b777fa4b631b6af163f65473055a58d9 | 81bed714f2e5cb30a2492f1b0cf3397b79141c3a | refs/heads/develop | 2022-12-13T20:36:52.188166 | 2019-10-16T01:08:03 | 2019-10-23T02:45:40 | 217,332,524 | 2 | 0 | Apache-2.0 | 2022-12-08T01:08:59 | 2019-10-24T15:29:47 | null | UTF-8 | Python | false | false | 1,712 | py | """
Utility functions
"""
from .dates import datetime_to_seconds_since_1970, parse_time
from .py import cached_property, ignore_exceptions_if, import_function
from .serialise import jsonify_document
from .uris import is_url, uri_to_local_path, get_part_from_uri, mk_part_uri
from .io import slurp, check_write_path, wri... | [
"37929162+mergify[bot]@users.noreply.github.com"
] | 37929162+mergify[bot]@users.noreply.github.com |
4d00a92665d503a391ba2c6d9695fc807d185ad4 | a97fb0584709e292a475defc8506eeb85bb24339 | /source code/code/ch1712.py | 6fe76d7f548707cc2b35f37252628da0f72d23fc | [] | no_license | AAQ6291/PYCATCH | bd297858051042613739819ed70c535901569079 | 27ec4094be785810074be8b16ef84c85048065b5 | refs/heads/master | 2020-03-26T13:54:57.051016 | 2018-08-17T09:05:19 | 2018-08-17T09:05:19 | 144,963,014 | 0 | 0 | null | null | null | null | BIG5 | Python | false | false | 1,116 | py | #!/usr/bin/env python
# -*- coding: cp950 -*-
# 載入wx模組
import wx
class myApp(wx.App):
def OnInit(self):
frame = myFrame()
frame.Show()
return True
# 定義myFrame並繼承wx.Frame類別
class myFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(
self,
None,
-1,
... | [
"angelak.tw@gmail.com"
] | angelak.tw@gmail.com |
a4b4cf7d907ae028a1c2e6372fe13bc2ba30a25d | 6a58240cdfcacec18fbfc2a08d75288092cc6da1 | /data/HASOC/utils.py | 2c38470bf232fc56e074adaf1ac1d1e25942c2f5 | [] | no_license | airKlizz/germeval2021toxic | 132ae9de11bb85c79acbff3a756f8608e32a385a | 1be57a15509a76b1551c871e73619241499257fe | refs/heads/main | 2023-08-18T04:25:42.387320 | 2021-09-14T12:10:18 | 2021-09-14T12:10:18 | 369,182,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | import pandas as pd
DATA_FILES = [
"data/HASOC/english_dataset.tsv",
"data/HASOC/german_dataset.tsv",
"data/HASOC/hindi_dataset.tsv",
]
df = pd.concat([pd.read_csv(DATA_FILE, sep="\t") for DATA_FILE in DATA_FILES])
print(df)
TEXT_COLUMN = "text"
LABEL_COLUMN = "task_1"
texts = df[TEXT_COLUMN].values.to... | [
"remi.calizzano@gmail.com"
] | remi.calizzano@gmail.com |
fbee8c798cd7d44f148b6dfc4cb1800c034eff07 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_sobriety.py | 5a609ca90c82239903ee659ab33783e0970f8b7f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py |
#calss header
class _SOBRIETY():
def __init__(self,):
self.name = "SOBRIETY"
self.definitions = [u'the state of being sober: ', u'seriousness: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
return self.j... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
29577dd61fc0b2ab4e46b2f21f32670e2dc1af00 | 1bc7053e7582e43bdd4b943c5700677e07449d3c | /pytsite/tpl/_error.py | 4bb04363d32ffdb9ef93b8c458e31aa365c0ac61 | [
"MIT"
] | permissive | pytsite/pytsite | f92eaa041d85b245fbfcdff44224b24da5d9b73a | e4896722709607bda88b4a69400dcde4bf7e5f0a | refs/heads/master | 2021-01-18T01:06:12.357397 | 2019-08-03T02:56:48 | 2019-08-03T02:56:48 | 34,899,242 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | """PytSite Templates Support Errors
"""
__author__ = 'Oleksandr Shepetko'
__email__ = 'a@shepetko.com'
__license__ = 'MIT'
import jinja2 as _jinja
class TemplateNotFound(_jinja.TemplateNotFound):
pass
| [
"a@shepetko.com"
] | a@shepetko.com |
cf5162cac66fc297d23a734d6bb7a8848f53e50b | 9e780f17eb49171d1f234944563225ca22b3c286 | /postgresqleu/confsponsor/management/commands/sponsor_generate_discount_invoices.py | ab716d6862d691c73452bd021d108291aeca7354 | [
"MIT"
] | permissive | pgeu/pgeu-system | e5216d5e90eec6c72770b88a5af4b3fd565cda59 | 885cfdcdadd4a721f72b699a39f26c94d1f636e0 | refs/heads/master | 2023-08-06T13:03:55.606562 | 2023-08-03T12:47:37 | 2023-08-03T12:47:37 | 161,434,221 | 15 | 27 | MIT | 2023-05-30T11:21:24 | 2018-12-12T04:48:14 | Python | UTF-8 | Python | false | false | 6,001 | py | # Generate invoices for discount codes. That is, sponsors that have ordered discount codes,
# that have now either expired or been used fully.
#
from django.core.management.base import BaseCommand
from django.utils import timezone
from django.db import transaction
from django.conf import settings
from datetime import... | [
"magnus@hagander.net"
] | magnus@hagander.net |
4a9de25ca11e00c67d838a2589d66d6418e577d4 | 900b8dbfbd8a9a7899b3da3a0b24c03721b1ac49 | /daopilot/daophot.py | 280b7078aad4aa18760038ee3bb987b5c8993b98 | [
"BSD-3-Clause"
] | permissive | jonathansick/daopilot | e9735956b43428fe38db0656b06e246546e09efc | d1757f3df61b715606d2027bea0d71c85b8fab07 | refs/heads/master | 2021-01-10T18:40:17.811411 | 2014-05-30T23:39:30 | 2014-05-30T23:39:30 | 6,196,022 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,474 | py | #!/usr/bin/env python
# encoding: utf-8
"""
Class wrapper to daophot.
2012-05-05 - Created by Jonathan Sick
"""
import os
import sys
import pexpect
class Daophot(object):
"""Object-oriented interface to drive daophot.
:param inputImagePath: is the path to the FITS image that will be measured.
... | [
"jonathansick@mac.com"
] | jonathansick@mac.com |
3fd932279804d8d778f6c54d1e6481c85aea76df | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/containerservice/latest/outputs.py | 98aae238eabc64dcdf8cf187997aef870b01307b | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98,356 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
b7868249902bfe1fb69ee6e3267b9e1aab3b8417 | 6b247e365d97951ae7137bb8140447fe72100ff6 | /app/urls.py | c942d1ca3e5b888307b6d9ccafa4f13c869944b5 | [] | no_license | tharcissie/Discussion_Board | 27f251875218174b3285a48b5d1de58653930e5a | 42b3c14b9993a906dc6bfa142dab0d3ddfac66b8 | refs/heads/master | 2023-02-27T18:03:36.251799 | 2021-02-10T15:57:33 | 2021-02-10T15:57:33 | 336,992,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | from django.urls import path
from .views import home, topics, new_topic, signup, topic_detail,reply_topic, profile, delete_topic,update_topic
urlpatterns = [
path('', home, name='home'),
path('topics/<id>', topics, name='topics'),
path('topics/<id>/create_topic', new_topic, name='create_topic'),
path... | [
"tharcissieidufashe@gmail.com"
] | tharcissieidufashe@gmail.com |
d23690b10700d834432702a5b133c61e359439af | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-sql/azure/mgmt/sql/models/restorable_dropped_managed_database_paged.py | d6e432c2c35188bdfa6c829f58d7c60fe70a9ab3 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,036 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
a42b874d58734949d3b054019a599a8224df6ec5 | 216e6e4957e02780129ab4e917e94cfb975dbfcb | /chapter_6/es148.py | 22764021b34b3dcfda7b4d40ffc5d138be098555 | [] | no_license | DamManc/workbook | d7e72fd1ed098bd7bccb23fa5fd9a102cfff10db | 2103dbdc8a6635ffd6a1b16b581c98800c9f21a2 | refs/heads/master | 2023-04-19T21:26:23.940011 | 2021-05-23T22:37:27 | 2021-05-23T22:37:27 | 335,064,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | # Exercise 148: Play Bingo
from es147 import *
import copy
def main():
print('Welcome to the Bingo Game!!')
print('------ Your card ------')
card = bingo_card()
print_bingo_card(card)
n_calls = []
for i in range(0, 1000):
copy_card = copy.deepcopy(card)
gamble = False
c... | [
"damiano.mancini1@gmail.com"
] | damiano.mancini1@gmail.com |
fb5fd8b8750934092164597d06bd43e67d19e4c4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_97/768.py | 789102ddeb40b07f44f85d54dd152798feab35b8 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | import sys
def nbValidPermutation(i, maxi):
strF = str(i)
nb = 0
finded = []
for j in range(len(strF))[:-1]:
other = int(strF[j+1:]+strF[:j+1])
if other > i and other <= maxi and not other in finded:
finded.append(other)
nb += 1
return nb
def buildKelem(i, maxi):
strF = str(i)
nb = 0... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
7937ed53104fe047714bf6e587ccd85bf22f019c | 0437ec3526cc39af1d8d87c2e3c0928b9740e7b9 | /Node.py | 19436774365bebf7a66124db81ab1caa08a93e7e | [] | no_license | wkcn/Flow | b5b2c15a72e2407fcce3e8d2535705acf9f11bb1 | 461b8c181b8bca68c41bb69d20e2a0083596cef9 | refs/heads/master | 2021-06-07T07:37:49.633042 | 2016-09-11T14:55:19 | 2016-09-11T14:55:19 | 67,905,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | #coding=utf-8
class Node:
def __init__(self, x, y):
self.x = x
self.y = y
self.ox = 0
self.oy = 0
self.edges = []
self.neighbors = []
self.redgreen = False
| [
"wkcn@live.cn"
] | wkcn@live.cn |
deec09e0baf2531114f192fdb1aba714d03af881 | 2a266dda00578ea177b231e8f0dfd14a1824d2e6 | /pw_ls/pw_ls_AB/test_decompress.py | 1ad25097f68c7ea5778186d55d9da1735b9235dd | [] | no_license | sanskrit-lexicon/PWK | fbb51c19d9169e4c28d5c9056484c4a53def78eb | 57d07725b828a95b22b859422287474bfd858ffe | refs/heads/master | 2023-08-17T04:32:37.387691 | 2023-08-15T18:34:46 | 2023-08-15T18:34:46 | 15,903,957 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | #-*- coding:utf-8 -*-
"""make_numberchange2b.py
"""
from __future__ import print_function
import sys, re,codecs
from make_numberchange2b import lsnumstr_to_intseq, decompress
if __name__=="__main__":
x = sys.argv[1]
seq,flag = lsnumstr_to_intseq(x)
print(flag,seq)
if flag:
d,flag1 = decompress(seq)
print(flag1... | [
"funderburkjim@gmail.com"
] | funderburkjim@gmail.com |
3c6efaa9740b328d1508fc75df89820d4fa4ed29 | 7c01cd1df700a68965a22a041fcf0425fb5b8d2e | /api/tacticalrmm/apiv3/urls.py | 934da836b1079809c5346d405b12aac2207b14af | [
"MIT"
] | permissive | socmap/tacticalrmm | 61de15244c61edfb343314bd9e7d832b473df38e | 72d55a010b8a55583a955daf5546b21273e5a5f0 | refs/heads/master | 2023-03-17T23:50:37.565735 | 2021-03-05T23:05:17 | 2021-03-05T23:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | from django.urls import path
from . import views
urlpatterns = [
path("checkrunner/", views.CheckRunner.as_view()),
path("<str:agentid>/checkrunner/", views.CheckRunner.as_view()),
path("<str:agentid>/checkinterval/", views.CheckRunnerInterval.as_view()),
path("<int:pk>/<str:agentid>/taskrunner/", vie... | [
"dcparsi@gmail.com"
] | dcparsi@gmail.com |
32370305956bdaa9a3226650e42697ee227b1f90 | 9ac405635f3ac9332e02d0c7803df757417b7fee | /cotizaciones/migrations/0042_auto_20191019_0954.py | 236d57369a78000a98643a41cf309646161b8d74 | [] | no_license | odecsarrollo/07_intranet_proyectos | 80af5de8da5faeb40807dd7df3a4f55f432ff4c0 | 524aeebb140bda9b1bf7a09b60e54a02f56fec9f | refs/heads/master | 2023-01-08T04:59:57.617626 | 2020-09-25T18:01:09 | 2020-09-25T18:01:09 | 187,250,667 | 0 | 0 | null | 2022-12-30T09:36:37 | 2019-05-17T16:41:35 | JavaScript | UTF-8 | Python | false | false | 838 | py | # Generated by Django 2.2.6 on 2019-10-19 14:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cotizaciones', '0041_cotizacion_revisada'),
]
operations = [
migrations.AlterField(
model_name='cotizacion',
name='e... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
017d19b97fd8f6aab8a08babe66bec2918da227a | 233928d206e13e068cf8cb5ff7888c9a2d84ad61 | /swea/D5/swea_1242_암호코드스캔.py | 36d01ac84b27da5410b011fd26f7544b5e741c33 | [] | no_license | Jinwoongma/Algorithm | 7f6daa2d3c2c361059c09fb4fe287b1cce4863e2 | 78803f4572f1416451a9f4f31f53b7d653f74d4a | refs/heads/master | 2022-10-07T22:53:20.333329 | 2020-06-07T13:27:47 | 2020-06-07T13:27:47 | 237,114,107 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | py | hcode = {'0':'0000', '1':'0001', '2':'0010', '3':'0011',
'4':'0100', '5':'0101', '6':'0110', '7':'0111',
'8':'1000', '9':'1001', 'A':'1010', 'B':'1011',
'C':'1100', 'D':'1101', 'E':'1110', 'F':'1111'}
scode = {211:0, 221:1, 122:2, 411:3, 132:4, 231:5, 114:6, 312:7, 213:8, 112:9}
TC =... | [
"jinwoongma@gmail.com"
] | jinwoongma@gmail.com |
7f18b56489ef36f4e2391878671a569f4252027d | 1ac9f756c5bab3ae8ae2df8daa596b6fc55b63d1 | /backend/accounts/views.py | c3104129fe20c9ad274477dc8f541600ce56fc03 | [] | no_license | woorud/facebook_clone | 6520adbf5e5aaeb3f517abe7920a0b90096e4f89 | a5b96f215c74e2960465cd2a96568e57db92043c | refs/heads/master | 2022-12-11T18:26:07.648768 | 2020-08-29T14:45:43 | 2020-08-29T14:45:43 | 277,793,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,907 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib.auth import authenticate, login
from django.contrib.auth import logout as django_logout
from .forms import SignupForm, LoginForm
from django.shortcuts import get_object_or_404
from django.contrib.auth import get_user_model
from djan... | [
"woorud96@gmail.com"
] | woorud96@gmail.com |
f06a21f022b3d3742cee8df6c8048fcc34022202 | a51854991671a4389902945578288da34845f8d9 | /libs/UserInterface/TestPages/LampHolderTest.py | e9567659c28b0e4822d07ddbb3702556f7e9276b | [] | no_license | wuyou1102/DFM_B2 | 9210b4b8d47977c50d92ea77791f477fa77e5f83 | 69ace461b9b1b18a2269568110cb324c04ad4266 | refs/heads/master | 2020-04-13T18:54:20.045734 | 2019-06-17T12:46:23 | 2019-06-17T12:46:23 | 163,387,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | # -*- encoding:UTF-8 -*-
import wx
import logging
import Base
from libs import Utility
from libs.Config import Font
from libs.Config import Color
from libs.Config import String
logger = logging.getLogger(__name__)
class LampHolder(Base.TestPage):
def __init__(self, parent, type):
Base.TestPage.__init__(s... | [
"jotey@qq.com"
] | jotey@qq.com |
a22ffc16dfff771c3f037f2cf3410d17066bbd79 | 1f080333f1714ba88d4f41d6ce2676f0b299e05e | /.venv/bin/maf_extract_ranges_indexed.py | 011751629233c72c0d998a7fdd8de77cfa72ed42 | [] | no_license | venice-juanillas/EIB-hackathon | b66bf128144dcef893c91af84dc28ff48be08e1b | 6b73babff2b88dccbd5ec2e74bd5737ff0a4270b | refs/heads/master | 2022-11-17T23:52:24.365210 | 2018-04-05T01:56:17 | 2018-04-05T01:56:17 | 120,545,413 | 0 | 1 | null | 2022-10-25T18:54:52 | 2018-02-07T01:19:48 | Python | UTF-8 | Python | false | false | 4,702 | py | #!/home/galaxy/data/galaxy_17.09/.venv/bin/python2.7
"""
Reads a list of intervals and a maf. Produces a new maf containing the
blocks or parts of blocks in the original that overlapped the intervals.
It is assumed that each file `maf_fname` has a corresponding `maf_fname`.index
file.
NOTE: If two intervals overlap... | [
"v.juanillas@irri.org"
] | v.juanillas@irri.org |
dcda4ae98e5ceea8422c2a9d5b281462addc5b6e | 4047b91585245c3ee5ea6c50a620dadf74636bc3 | /phylobot/phylobot/admin.py | e38df56d65328e8a83b088332fe4a4404c4facb6 | [] | no_license | httang12/phylobot-django | fd371cc870f444cf94179d6a3cc6d23e9895186c | b535edfd1ee09dab02421ba22d96d48b3f611dad | refs/heads/master | 2020-04-15T12:53:13.349661 | 2018-02-15T08:46:08 | 2018-02-15T08:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from django.contrib import admin
admin.autodiscover()
from phylobot.models import *
from phylobot.models_aws import *
print "\n\n\n phylobot admin\n\n\n"
admin.site.register(UserProfile)
admin.site.register(AncestralLibrary)
admin.site.register(AWSConfiguration)
admin.site.register(ViewingPrefs)
admin.site.register(An... | [
"victorhansonsmith@gmail.com"
] | victorhansonsmith@gmail.com |
5dd9789f49b6bf5e26968ad8d2ac344ebc993ed3 | fcca7ebb332ae400b82f7d75d424ace30e35963c | /apps/elasticity/stegoton/plot_comparison.py | 6f3eaab6264e7dee56852f1672d4f2d87a7f8564 | [] | no_license | clawpack/sharpclaw | 5d2812149b28a09bfb626daf057fd27e4ab2f6a5 | 7c9782d932a449b92c875ff341a16bf00f0cc630 | refs/heads/master | 2021-01-04T14:06:42.001372 | 2013-11-28T15:19:26 | 2013-11-28T15:19:26 | 1,613,567 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | from pyclaw.data import ClawPlotData
from pyclaw.plotting import plotframe
plotdata = ClawPlotData()
plotdata.outdir = '.'
# Figure:
plotfigure = plotdata.new_plotfigure(name='Solution', figno=1)
plotfigure.kwargs = {'figsize':[5,3]}
# Axes:
plotaxes = plotfigure.new_plotaxes(name='Strain')
#plotaxes.xlim = [73,79]
... | [
"dketch@gmail.com"
] | dketch@gmail.com |
fead5b51476cb0ee7d01cbd4d92adfe47ece5082 | 32a6ac6cbec63296ba68838ad4699b995810c6cd | /compiled/construct/debug_enum_name.py | f557f7c82a5e810c80400f8ac4c1aa17e88d975e | [
"MIT"
] | permissive | smarek/ci_targets | a33696ddaa97daa77c0aecbdfb20c67546c729bc | c5edee7b0901fd8e7f75f85245ea4209b38e0cb3 | refs/heads/master | 2022-12-01T22:54:38.478115 | 2020-08-10T13:36:36 | 2020-08-19T07:12:14 | 286,483,420 | 0 | 0 | MIT | 2020-08-10T13:30:22 | 2020-08-10T13:30:21 | null | UTF-8 | Python | false | false | 914 | py | from construct import *
from construct.lib import *
def debug_enum_name__test_subtype__inner_enum1(subcon):
return Enum(subcon,
enum_value_67=67,
)
def debug_enum_name__test_subtype__inner_enum2(subcon):
return Enum(subcon,
enum_value_11=11,
)
debug_enum_name__test_subtype = Struct(
'field1' / debug_enum_na... | [
"kaitai-bot@kaitai.io"
] | kaitai-bot@kaitai.io |
39f1ab98e67afeba433bba71016769cf604ee099 | b7e6cdf094baaee9d6e5034c2355641fbf9138d7 | /824. 山羊拉丁文.py | fcd4e950c0e3c85ebf53f970708644e021c0f2ce | [] | no_license | heshibo1994/leetcode-python-2 | 04296c66cd6d1fe58880062aeafdbe9d474b7d2e | 3ea32f03bd453743b9b81de9871fad7ac67ced90 | refs/heads/master | 2020-05-23T21:49:01.367969 | 2019-09-30T03:31:27 | 2019-09-30T03:31:27 | 186,961,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | # 给定一个由空格分割单词的句子 S。每个单词只包含大写或小写字母。
#
# 我们要将句子转换为 “Goat Latin”(一种类似于 猪拉丁文 - Pig Latin 的虚构语言)。
#
# 山羊拉丁文的规则如下:
#
# 如果单词以元音开头(a, e, i, o, u),在单词后添加"ma"。
# 例如,单词"apple"变为"applema"。
#
# 如果单词以辅音字母开头(即非元音字母),移除第一个字符并将它放到末尾,之后再添加"ma"。
# 例如,单词"goat"变为"oatgma"。
#
# 根据单词在句子中的索引,在单词最后添加与索引相同数量的字母'a',索引从1开始。
# ... | [
"csuheshibo@163.com"
] | csuheshibo@163.com |
c74363ec7f3ffb330ff7eb6cc99754b2dfbc69e4 | 0e7be557833f38fef17b5eaa57c331a96148ad5e | /Assets/Python/StrategyOnly/Heroes.py | 895ee42ac8234f910d9e6bebc4e54df85577387d | [] | no_license | Thunderbrd/Caveman2Cosmos | 9f38961c638b82099b0601c22f8e90a1c98daa1e | b99aca8e56fb2a1fae48abd424dc0060a1d1fc1a | refs/heads/master | 2022-01-12T19:40:32.586456 | 2019-07-21T22:00:09 | 2019-07-21T22:00:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,886 | py | ## By StrategyOnly converted to BUG by Dancing Hoskuld
from CvPythonExtensions import *
import CvEventInterface
import CvUtil
import BugUtil
import PyHelpers
import Popup as PyPopup
import SdToolKit as SDTK
gc = CyGlobalContext()
localText = CyTranslator()
PyPlayer = PyHelpers.PyPlayer
PyInfo = PyHelpers... | [
"raxo2222@8bbd16b5-4c62-4656-ae41-5efa6c748c97"
] | raxo2222@8bbd16b5-4c62-4656-ae41-5efa6c748c97 |
f7e3e4d0eb43e1b66081962b0ee6cdd9d6a3694b | 39c80306080defbde999f1af05ae5993f22d7fd7 | /oxford_astrazeneca/tests/q_calc_efficiency.py | 07076b1e2e93744fc876d8399910625d47330256 | [] | no_license | uob-cfd/spe | 47931d724792fbe812de49ac489a7e88cca52e1d | f7c76b766bffec71b80febd0dbc79e12aec3a11c | refs/heads/master | 2023-02-04T20:45:44.411481 | 2020-12-27T19:03:52 | 2020-12-27T19:03:52 | 321,508,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | test = {
'name': 'Question calc_efficiency',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> # You need to define the function 'calc_efficiency'
>>> 'calc_efficiency' in vars()
True
""",
'hidden': False,
'locked': Fal... | [
"matthew.brett@gmail.com"
] | matthew.brett@gmail.com |
fbbbc52eab2329bda34461328893fba1754e20a0 | 70934fe6d0feed93994a98650a543832897e69ae | /sinaweibo.bak/weibo_factory.py | 95cfe4e1548a4d14a120107301c0a8c022bd7623 | [] | no_license | zy-sunshine/sunblackshineblog | d1d3f0f69d6b8c006e70a0601bc0d520ec5002bb | ea7d1e2f8477a238501cecf8e63fd3d7a2a945c9 | refs/heads/master | 2021-01-01T16:19:52.954701 | 2011-10-29T17:12:59 | 2011-10-29T17:12:59 | 2,570,586 | 1 | 0 | null | null | null | null | GB18030 | Python | false | false | 1,878 | py | #encoding=utf8
#file:weibo_factory.py
#@author:carlos
#@date:2011-2-13
#@link:tieniuzai.com
from weibopy.auth import BasicAuthHandler
from weibopy.api import API
class SinaWeibo:
def __init__(self,username,password):
self.username = username
self.password = password
self.source ="app key" #在申请新浪微博开发者帐号并创建应用后获得
... | [
"zy.netsec@gmail.com"
] | zy.netsec@gmail.com |
71cf86c96f1ba847636eea61053d0a0c4d035bb1 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/desktopvirtualization/v20201102preview/host_pool.py | c86dab27732d65d459e1b272f33ec2f1fec05f50 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,255 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
1b167d908b1dbbae705befe87ecfb250c84f4b2a | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_14606.py | 992a0ac036c6de7ae67a625b61486cbe6bb0fc17 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | # keep a Python script running even when the user tries to exit out
.pyw
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
918bf5948ed9490633028cdeed9ea000c19a2374 | 560af8e32aa77bfb6c5d837e93d0dc2dd7c9142c | /client_project/wsgi.py | fec9bea087df286ce54366f90bbc4c61b4f9094f | [] | no_license | anirudhasj441/Fake-Api | c7a4aef6bf9eadc16709fe10f4cd3b526664cd4e | 86b6e496cbecf314ef6e6366a84b8f93ce7c775b | refs/heads/master | 2023-06-26T00:00:00.914657 | 2021-07-29T06:35:39 | 2021-07-29T06:35:39 | 390,625,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for client_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"anirudhasj441@gmail.com"
] | anirudhasj441@gmail.com |
e4a88b54323db57cc2d1b09b8b6560d91291a6cd | 0bfb55b41282803db96b90e7bba73d86be7e8553 | /administration/migrations/0011_auto_20161109_1845.py | fad5aaa70cdd3596ffe76dba25b75bc51d8583f1 | [
"MIT"
] | permissive | OpenFurry/honeycomb | eebf2272f8ae95eb686ad129555dbebcf1adcd63 | c34eeaf22048948fedcae860db7c25d41b51ff48 | refs/heads/master | 2021-01-11T01:52:40.978564 | 2016-12-29T18:08:38 | 2016-12-29T18:08:38 | 70,649,821 | 2 | 2 | null | 2016-12-29T18:08:39 | 2016-10-12T01:22:38 | Python | UTF-8 | Python | false | false | 465 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-09 18:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('administration', '0010_auto_20161109_0552'),
]
operations = [
migrations.Al... | [
"madison.scott-clary@canonical.com"
] | madison.scott-clary@canonical.com |
b0173056cf09e20ef265ae0bf916c84bfd972b1a | 86cd22354f2431087c9b3ff06188f071afb3eb72 | /383. Ransom Note.py | cf3b994fb40efd594dc1c7d269120b8b5583c390 | [] | no_license | tlxxzj/leetcode | 0c072a74d7e61ef4700388122f2270e46c4ac22e | 06dbf4f5b505a6a41e0d93367eedd231b611a84b | refs/heads/master | 2023-08-31T11:04:34.585532 | 2023-08-31T08:25:51 | 2023-08-31T08:25:51 | 94,386,828 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | class Solution:
def canConstruct(self, ransomNote: str, magazine: str) -> bool:
letters = {}
for c in magazine:
if c in letters:
letters[c] += 1
else:
letters[c] = 1
for c in ransomNote:
if letters.get(c, 0) == 0:
... | [
"tlxxzj@qq.com"
] | tlxxzj@qq.com |
b307447339363ba5a9bc02068f4df4126d5e6527 | bb824786f095fbf6e6cf627ef9c04afdb5152477 | /apps/pages/migrations/0013_partnerspage.py | e96243788314b36b0fda1ef2712514fcbd92c772 | [] | no_license | Emilnurg/anas.ru | 19000063c7db98c15261056bb9590382db362d42 | 20cee1aee02da192c9c79a51bd0898c1dba0c98f | refs/heads/master | 2021-05-20T12:09:08.155749 | 2017-12-26T13:49:12 | 2017-12-26T13:49:12 | 252,287,670 | 0 | 0 | null | 2021-03-31T19:34:29 | 2020-04-01T21:10:48 | JavaScript | UTF-8 | Python | false | false | 6,865 | py | # -*- coding: utf-8 -*-
# flake8: noqa
# Generated by Django 1.10.7 on 2017-06-08 15:27
from __future__ import unicode_literals
import ckeditor_uploader.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0012_auto_20170531_1612'),
]
... | [
"wizzzet@gmail.com"
] | wizzzet@gmail.com |
71c44b270f1029386b8c8079cc4f51467a806a60 | 8690ca0028c54b62d68badf1753fc6151ae03525 | /Part3 Levels of Aggregation/esem_data/Act/tpot_mnist_pipeline_triangulateAggregationLevelParticipantSplitaggr_5_groups7.py | d83ecdf48b217bda826b409cdf96307576b5488a | [] | no_license | brains-on-code/conducting-and-analyzing-human-studies | fd74ee77fdc56cc61bdc1e0cf9bf423780f5dddc | 548e7443f4d2bdb2db1f2858289b7d3518593c59 | refs/heads/master | 2021-06-26T21:30:56.386121 | 2020-12-22T13:49:16 | 2020-12-22T13:49:16 | 195,975,817 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | import numpy as np
import pandas as pd
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
# NOTE: Make sure that the class is labeled 'target' in the data file
tpot_data = p... | [
"fmriml@fmriml.com"
] | fmriml@fmriml.com |
9b8b6f9bda493cd1e8800f462021606cf91863d6 | 641f76328bfeb7e54f0793a18c5b7c00595b98fd | /apps/sms/serializers.py | 4d653e2794abcb0dbb3ce297e9d2919f02b8d8f4 | [
"Apache-2.0"
] | permissive | lianxiaopang/camel-store-api | 1d16060af92eb01607757c0423377a8c94c3a726 | b8021250bf3d8cf7adc566deebdba55225148316 | refs/heads/master | 2020-12-29T13:23:18.118617 | 2020-02-09T08:38:53 | 2020-02-09T08:38:53 | 238,621,246 | 0 | 0 | Apache-2.0 | 2020-02-07T14:28:35 | 2020-02-06T06:17:47 | Python | UTF-8 | Python | false | false | 207 | py | from rest_framework import serializers
from .models import SmsRecord
class SmsRecordSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = SmsRecord
fields = '__all__' | [
"lyh@gzqichang.com"
] | lyh@gzqichang.com |
b7750a59ddd97731a3db15d7ff43b162bbc4a22b | b9ca99a0244e5d5a07e0b27be8192ad01c4eda6c | /EIP/EIP系统所有流程.py | fad26b441598bfd879662694afe6d03b21d1d15c | [] | no_license | Boomshakal/spider | c3fdbf18f874ec9953509e4ce984b5476d25839f | e6779a3961f48325dd4992d88f88b8b3938225d7 | refs/heads/master | 2021-06-17T06:22:19.679444 | 2021-03-05T06:33:36 | 2021-03-05T06:33:36 | 154,489,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | import requests
import json
from lxml import etree
url="http://eip.megmeet.com:8008/km/review/km_review_index/kmReviewIndex.do?"
maxpage=5
headers={
"Cookie": "j_lang=zh-CN; JSESSIONID=40ABBC9A619C5860068184B1E339BC4D",
"User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chro... | [
"362169885@qq.com"
] | 362169885@qq.com |
5692e1461442776306fc415db227d24cb23bc350 | e89693a2906534fa4a9d180b404cb96751302e8c | /Timing_Panel.py | 40755d697cc5406b4f8fed9f34ce2b8208e85f42 | [] | permissive | friedrich-schotte/Lauecollect | e278e00692d109e98450c27502986673bf59db6a | acfc5afe34b4df5891a0f8186b8df76625afb51d | refs/heads/master | 2022-09-12T02:59:04.363963 | 2022-08-18T16:39:01 | 2022-08-18T16:39:01 | 186,062,944 | 0 | 2 | MIT | 2020-07-20T02:04:07 | 2019-05-10T22:42:26 | Python | UTF-8 | Python | false | false | 11,389 | py | #!/usr/bin/env python
"""
Graphical User Interface for FPGA Timing System.
Author: Friedrich Schotte
Date created: 2015-05-27
Date last modified: 2022-07-31
Revision comment: Cleanup: self.timing_system.sequencer, self.timing_system.composer
"""
__version__ = "7.3.3"
from logging import warning
from traceback import f... | [
"friedrich.schotte@gmail.com"
] | friedrich.schotte@gmail.com |
fd337b75f0eb10484074e08ba64c0b939849c29f | ed756885498f009618c4be880f255e5c2402d537 | /web/feeds.py | d65fd10180cb506fc5739ed0d781aa1940d95fda | [] | no_license | GunioRobot/BlancoWeb | c6d1d242960918a6170ed0b1432ac36ea686546f | cff8540c8f5bc0a372cc3500b035f1fdbbc7eab8 | refs/heads/master | 2021-01-20T11:31:50.434756 | 2011-02-21T22:43:42 | 2011-02-21T22:43:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # -*- coding: utf-8 -*-
from django.contrib.syndication.feeds import Feed;
from web.models import Evento;
class EventoFeed(Feed):
title = "Blanco Irish Tavern";
link = "web/feeds/eventos/";
description = "Suscríbete para conocer todas nuestras fiestas"
def items(self):
return Evento.object... | [
"jneight@gmail.com"
] | jneight@gmail.com |
943eb7ef872e91eecdf173c1d2bcf133d8a02938 | 484f9502f2d1fa35df77df8d3a08bd2bfd2d253d | /src/testers/unittests/test_ast_utils.py | 3debbde14f5a9683c67c251be3268860790f2dd6 | [
"Apache-2.0"
] | permissive | pmeerw/Triton | 5d1c58e93ed257f06f1586a1aa542d1ba307dcbb | 82f11d6b15302e7900ed7f9eb3d686b6313d5b37 | refs/heads/master | 2020-08-04T17:01:47.442181 | 2019-09-30T08:16:44 | 2019-09-30T08:16:44 | 212,212,395 | 0 | 0 | Apache-2.0 | 2019-10-01T22:38:58 | 2019-10-01T22:38:58 | null | UTF-8 | Python | false | false | 1,494 | py | #!/usr/bin/env python2
## -*- coding: utf-8 -*-
"""Test AST utils."""
import unittest
from triton import *
class TestAstUtils(unittest.TestCase):
"""Testing the AST utilities."""
def setUp(self):
self.ctx = TritonContext()
self.ctx.setArchitecture(ARCH.X86_64)
self.astCtxt = self.... | [
"jonathan.salwan@gmail.com"
] | jonathan.salwan@gmail.com |
c4a35b1184ddc9951b0bf9e8a1ceeaccd2c708a0 | b951ee6d2de741e84f7bfe2dc5a66853c1d5cd4e | /Array/LinkedInstead.py | 5960eaa4dc231e2a7ddbf5349c752a8df806be84 | [] | no_license | Chongkai-Ma/Fundamentals-of-Python-Data-Structures | e78569f79dfad16ebc18121c250c25d91bb94754 | 170e58d23d9ee73c53b2ab596d7fcfc3e63eccc9 | refs/heads/master | 2020-09-21T03:46:04.980838 | 2019-12-04T14:18:27 | 2019-12-04T14:18:27 | 224,669,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | #!/usr/bin/python3
from node import Node
head = None
for count in range(1, 10):
head = Node(count, head)
probe = head
targetItem = 5
while probe != None and targetItem != probe.data:
probe = probe.next
if probe != None:
probe.data = 88888
print ("The item has been changed")
else:
print ("The it... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
da2c797441188d198de8c57c9a59473cbd5ed769 | c36fdb4d07aeaf0b1e568c45e8020b34c6fa5aca | /usps_integration/models/__init__.py | 136e6ed2d4acabb36fa173d1a7051621eeeb8395 | [] | no_license | planetodooofficial/usps_integration_v13 | c6cf33c49d753c44831d3f6e1da10271d37f0e82 | ad69aa442b0ee65d1b7589b7f7ca409313f908aa | refs/heads/master | 2022-12-24T10:05:39.397215 | 2020-09-30T19:14:55 | 2020-09-30T19:14:55 | 258,160,591 | 0 | 3 | null | 2020-09-30T19:14:56 | 2020-04-23T09:52:32 | Python | UTF-8 | Python | false | false | 1,098 | py | # -*- encoding: utf-8 -*-
##############################################################################
# Copyright (c) 2015 - Present Planet Odoo. All Rights Reserved
# Author: [Planet Odoo]
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Pu... | [
"https://Anjeel@bitbucket.org"
] | https://Anjeel@bitbucket.org |
7e57dcbf4f48f8fcfe88cb68a3ebfbe549f6d2ab | e944d912def98d7546d17c4303169f52517348ca | /interview_questions/basic/sum_of_rows_1.py | 046b5461ff003408ecb4ae700d527c671bb16873 | [] | no_license | balajich/python-crash-course | 0710854de3cd04695f969cbfe774ef336f707f48 | e62b578f7dc93f6a47fbae00dac2d496b985fe8d | refs/heads/master | 2021-07-30T16:00:45.392119 | 2021-07-29T11:41:49 | 2021-07-29T11:41:49 | 192,034,679 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | '''
Take matrix as input and returns sum of rows`
'''
import numpy as np
def rowsum(matrix):
"""
:param matrix (list): A list of lists where each inner list represents a row.
:returns: (list) A list containing the sum of each row.
"""
result=[]
for sub_list in matrix:
result.append(sum(... | [
"balaji.chopparapu@gmail.com"
] | balaji.chopparapu@gmail.com |
e7a6da8b913047441c8ecbd61af44920ea566c1b | 95d20fe737d711cf92d68130eb59b6aef4435ec2 | /pyecharts数据可视化/中国国内生产总值.py | 20106c170698be17ce82f33a10baa3719363738d | [] | no_license | CCH21/Python | d11b93851579d85f972828c760a96c5be1f79531 | 33e218810856971f3f1f97a2b8a4c8dce761362e | refs/heads/master | 2022-04-29T11:48:01.816283 | 2022-03-17T11:53:01 | 2022-03-17T11:53:01 | 226,452,057 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | #!/usr/bin/env python3
import csv
from pyecharts import Line
Quarter = []
GDP = []
Primary_industry = []
Secondary_industry = []
Tertiary_industry = []
with open('中国国内生产总值.csv', 'r', newline='') as csv_in_file:
filereader = csv.reader(csv_in_file)
head = next(filereader)
for row_list in fil... | [
"1398635912@qq.com"
] | 1398635912@qq.com |
7b10e1771bc7133cd12e42ff4ced75617ba3270c | 826cdefb3554e6bbc7b5e5fa9bc6f55268cd58dd | /src/main/python/basics/itertools.py | 4c731ae4d27d12208d8fbb8b22bcd656bceb3a3f | [] | no_license | lj015625/CodeSnippet | 67d1f556497948b3db51c67af07f16a21751427e | 73e9375c5d7edcc50170569c0bd99fd415557d85 | refs/heads/master | 2023-09-01T14:59:57.162553 | 2023-08-24T11:07:37 | 2023-08-24T11:07:37 | 61,499,418 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | import itertools as it
def combinational_dice_rolls(n, m):
return list(it.product(range(1, m+1), repeat=n))
combinational_dice_rolls(2,2)
def cartesian_product(arr1, arr2):
print(*it.product(A, B))
A = [1,2,3]
B = [1,2,3]
cartesian_product(A,B)
s, n = 2, 3
s = sorted(str(s))
n = int(n)
for i in it.permutati... | [
"leonardo.ji@cerner.com"
] | leonardo.ji@cerner.com |
684e78d298475edf5350934fbb380bb497a3bb7e | 0cc9ba497efeae7de808b3063f932cee9449bc20 | /akshare/fx/currency_investing.py | 41abf6485117ce7ccd18ebed6240baa7a5dd72a6 | [
"MIT"
] | permissive | louis100/akshare | 08dc7d71c194e973092174dabc307e28a2aaf7d6 | 0b2ad15982dc1e4081929ed634e96c559bf3ef7e | refs/heads/master | 2022-12-12T16:26:38.294899 | 2020-09-16T04:25:46 | 2020-09-16T04:25:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,907 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Date: 2020/9/9 11:56
Desc: 英为财情-外汇-货币对历史数据
https://cn.investing.com/currencies/
https://cn.investing.com/currencies/eur-usd-historical-data
"""
import re
import pandas as pd
import requests
from bs4 import BeautifulSoup
from akshare.index.cons import short_headers, lon... | [
"jindaxiang@163.com"
] | jindaxiang@163.com |
6b2e29155e7989d4f19247ee43a3ae011cd71080 | a3c662a5eda4e269a8c81c99e229879b946a76f6 | /.venv/lib/python3.7/site-packages/pylint/test/functional/line_endings.py | 0b6e795e3f2c9b2e9ec6f93c33469324e1ea67ba | [
"MIT"
] | permissive | ahmadreza-smdi/ms-shop | 0c29da82c58b243507575672bbc94fb6e8068aeb | 65ba3f3061e2ac5c63115b08dadfe7d67f645fb6 | refs/heads/master | 2023-04-27T19:51:34.858182 | 2019-11-24T20:57:59 | 2019-11-24T20:57:59 | 223,616,552 | 6 | 2 | MIT | 2023-04-21T20:51:21 | 2019-11-23T16:09:03 | Python | UTF-8 | Python | false | false | 107 | py | "mixing line endings are not welcome"
# +1: [unexpected-line-ending-format, mixed-line-endings]
CONST = 1
| [
"ahmadreza.smdi@gmail.com"
] | ahmadreza.smdi@gmail.com |
8c66385405873707fcd3fa458d8f11637899adb4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/323/usersdata/278/89121/submittedfiles/mdc.py | 3185a3f53219a38653c6a227ae7e28e217f85f66 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | # -*- coding: utf-8 -*-
import math
n1 = int(input("Digite o primeiro número inteiro: "))
n2 = int(input("Digite o segundo número inteiro: "))
mdc=1
if n1>n2:
for i in range (2,n2,1):
resto1=n1%i
resto2=n2%i
if resto1==0 and resto2==0:
mdc=mdc*i
if mdc==1:
print(mdc)
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b2b57465fe49db3db5b58fef26c370a7f74985ee | ba88cd6db28f160fec810d69e27fdd42c84b753a | /prep_model.py | f87cdab4ae43ca39ff5f905f99fd5e81bf0681b1 | [
"MIT"
] | permissive | erhanbas/imgclsmob | 02057ceabf863ce571507abbee89d7d4fd3431b3 | 5eacf51b96c8e715f73a77261395f0fac35dfffc | refs/heads/master | 2023-03-11T05:43:02.358759 | 2021-02-11T17:56:22 | 2021-02-11T17:56:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,378 | py | """
Script for preparing the model for publication.
"""
import os
import argparse
import subprocess
import shutil
import re
import hashlib
import zipfile
import pandas as pd
def parse_args():
"""
Parse python script parameters.
Returns:
-------
ArgumentParser
Resulted args.
"""
... | [
"osemery@gmail.com"
] | osemery@gmail.com |
e48a135645e3ef4e54e636050eed7af1fa14972e | 9d1c260ff8e58335e0f373cfdd530e637ea803a8 | /EVENT.py | 963c1b66313d4f3a5b72fbc09ebc1ccffb81b482 | [
"MIT"
] | permissive | rambasnet/EVENT | e52931e3224b712e8b044e58382e4d170a835dc4 | dd3a6507112e4adc054481608d8968706f80d23f | refs/heads/master | 2020-06-01T23:39:28.843906 | 2019-06-09T20:07:02 | 2019-06-09T20:07:02 | 190,967,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | #-----------------------------------------------------------------------------
# Name: event.py
# Purpose:
#
# Author: Ram Basnet
#
# Created: 2009/10/10
# RCS-ID: $Id: event.py $
# Copyright: (c) 2009
# Licence: All Rights Reserved.
#-------------------------------------------... | [
"rambasnet@gmail.com"
] | rambasnet@gmail.com |
fb329b172f65df3eda2304e0d4b90c8211e3863f | 30816710f64515d9af98b19da522ecdd2a745258 | /origin/faster_rcnn/core/loader.py | 4281edcfaa68aef9a31cdc9bc02c5122ecfb40b4 | [] | no_license | unsky/Feature-Pyramid-Networks | 457a441a500b1b552b5a89c11384e96f8cf60dd5 | 890e9c74a8fcea20bd33b90bac6c58e42294298d | refs/heads/master | 2021-06-26T00:59:50.874246 | 2017-09-06T02:57:19 | 2017-09-06T02:57:19 | 101,043,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,702 | py | # --------------------------------------------------------
# Deformable Convolutional Networks
# Copyright (c) 2016 by Contributors
# Copyright (c) 2017 Microsoft
# Licensed under The Apache-2.0 License [see LICENSE for details]
# Modified by Yuwen Xiong
# --------------------------------------------------------
impor... | [
"2081264@qq.com"
] | 2081264@qq.com |
e8a823a890546c56c66c3bb0dbf0a510a17cf622 | 13f7adf576114c51f9f806a6fc5797b276d93f97 | /devel/lib/python2.7/dist-packages/autoware_msgs/msg/_traffic_light.py | 90177962beab0e196bf6f3c7b6ff861fedd20be4 | [] | no_license | yunjeongkim/keti_ws | a72a5ebc367b208654bdffb5bb9e8372cd959d33 | aaac717c15a7be7431b22fb4ec7a96a734f2e03c | refs/heads/master | 2020-04-05T06:18:52.334522 | 2018-11-21T01:47:34 | 2018-11-21T01:47:34 | 156,633,425 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,252 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from autoware_msgs/traffic_light.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class traffic_light(genpy.Message):
_md5sum = "a4931ba214a0e37e220d... | [
"dallddungi@kaist.ac.kr"
] | dallddungi@kaist.ac.kr |
66a9052b381170d325564e1f868643a4dbafd533 | ad5d38fce4785037c108186f17eb1c64380355ef | /sddsd/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/billingbudgets/v1beta1/billingbudgets_v1beta1_messages.py | 703342bc274d39c84cc7f65280b83732457e9420 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | saranraju90/multik8s | 75864b605a139ddb7947ed4de4ae8466bdd49acb | 428576dedef7bb9cd6516e2c1ab2714581e1137c | refs/heads/master | 2023-03-03T21:56:14.383571 | 2021-02-20T14:56:42 | 2021-02-20T14:56:42 | 339,665,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,295 | py | """Generated message classes for billingbudgets version v1beta1.
The Cloud Billing Budget API stores Cloud Billing budgets, which define a
budget plan and the rules to execute as spend is tracked against that plan.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from __future__ import absolut... | [
"saranraju90@gmail.com"
] | saranraju90@gmail.com |
4e3448bfeb4bf56e2ff41fc71a1727b619f401e6 | 526b6454565583700866463e46f66ede67165e2b | /expenses/pagination.py | d231586502537a64f68fbb878914834860e78b17 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | thangadurairajapandiyan/django-expenses | a0f04ac41d1b02be82642a084545a2b356fd5a59 | 4a463052a67ac080427857d3fec16cf78eb70c3b | refs/heads/master | 2023-03-30T04:24:01.096399 | 2021-03-31T20:30:17 | 2021-03-31T20:30:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | # Pretty Pagination
# Copyright © 2018-2021, Chris Warrick.
# All rights reserved.
# License: 3-clause BSD
from itertools import zip_longest
def pagination(num, maxpage):
"""Generate a pretty pagination."""
if maxpage <= 5:
return list(range(1, maxpage + 1))
page_range = []
if num == 1:
... | [
"kwpolska@gmail.com"
] | kwpolska@gmail.com |
a332729be8de4ce9a7e33437066ae82c80110be0 | bf7ad5c52e5be4fbf34816b95932d520e0f579d4 | /repeat.py | 0419ac8f22b5134ed7e2a5bb1e9e31d10d076841 | [] | no_license | veronicarose27/vero | 4722381a6598e3fc6f87596d52f6ca860219ad19 | c943344596dc4398accdd81bd9936ff114b8d738 | refs/heads/master | 2020-06-11T21:13:32.613495 | 2019-07-19T17:20:46 | 2019-07-19T17:20:46 | 194,087,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | y,z=map(int,input().split())
p=list(map(int,input().split()))
count=0
for i in range(0,len(p)):
for j in range(1,len(p)):
if(p[i]==p[j]):
count=count+1
if(count==z):
print(p[i])
break
| [
"noreply@github.com"
] | veronicarose27.noreply@github.com |
6110d7d86503b01878af17b0f37d98e5097fece2 | f4b7d327581e500dc79079c834cc23af9939737e | /moonlight/models/base/glyph_patches.py | 263b33c17cd0a8a9c7f22e54295ce5b1953d0b75 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | abc3436645/moonlight | 095eea2b892528b9a3fe5d05af39e4a023c55628 | 7f8a3ab4e55570dd120e3965f8049dd866d12a6b | refs/heads/master | 2020-03-25T19:37:01.849371 | 2018-08-07T17:42:56 | 2018-08-07T17:42:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,031 | py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"ringwalt@google.com"
] | ringwalt@google.com |
04b61e88739ffadc8d675c0b4f576b5f7122eb69 | 576cc83449e10fd3f98281970c46016ea7a5aea2 | /OpenCV相机标定/CalibrationTest.py | 658370ca975416804ff63dff37187d3bdaa30be3 | [] | no_license | HotView/PycharmProjects | 215ab9edd341e3293daebcf86d97537f8cd28d75 | 61393fe5ba781a8c1216a5cbe7e0d06149a10190 | refs/heads/master | 2020-06-02T07:41:53.608742 | 2019-11-13T08:31:57 | 2019-11-13T08:31:57 | 191,085,178 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,778 | py | import cv2
import numpy as np
import glob
# termination criteria
criteria = (cv2.TERM_CRITERIA_EPS+cv2.TERM_CRITERIA_MAX_ITER,30,0.001)
# prepare objects points,like(0,0,0),(1,0,0),(2,0,0),....,(6,5,0)
objp = np.zeros((6*7,3),np.float32)
objp[:,:2] = np.mgrid[0:7,0:6].T.reshape(-1,2)
# Arrays to store object points an... | [
"864773190@qq.com"
] | 864773190@qq.com |
d7dd88ecf67ac7b20922fbc9779a463ad3cd8297 | a6610e191090e216b0e0f23018cecc5181400a7a | /robotframework-ls/src/robotframework_ls/constants.py | c6291b1baf57cfc01ddad6b1554e8002b7fe2a95 | [
"Apache-2.0"
] | permissive | JohanMabille/robotframework-lsp | d7c4c00157dd7c12ab15b7125691f7052f77427c | 610f0257fdcd79b8c38107a0ecf600f60160bc1f | refs/heads/master | 2023-01-19T10:29:48.982578 | 2020-11-25T13:46:22 | 2020-11-25T13:46:22 | 296,245,093 | 0 | 0 | NOASSERTION | 2020-09-17T06:58:54 | 2020-09-17T06:58:53 | null | UTF-8 | Python | false | false | 74 | py | from robocorp_ls_core.constants import *
DEFAULT_COMPLETIONS_TIMEOUT = 4
| [
"fabiofz@gmail.com"
] | fabiofz@gmail.com |
b30f1b39fb3a2a1a6d9299203f6c492cd0e9aa87 | a7ca0a372a44bc9cee59a7e1e59734a4814a59b9 | /이것이코딩테스트다/병사배치하기.py | 8b38d29927c9fad4814ed5bac88c39daec9c4d28 | [] | no_license | schw240/Preparing-coding-test | 435d6dbdcf90fc8c0c408dfa032ad7f09fdc5a90 | 758a41270c409312a998152c5298369ec385bfdb | refs/heads/master | 2021-11-29T07:54:05.140178 | 2021-10-03T11:40:36 | 2021-10-03T11:40:36 | 245,345,693 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | N = int(input())
scores = list(map(int, input().split(' ')))
scores.reverse()
# 병사를 배치할 때 전투력이 높은 병사가 앞으로 오도록 내림차순 배치
# 이때 정렬을 쓰는게 아니라 열외를 쓰는 방법으로 배치
dp = [1] * N
# 남아있는 병사의 수가 최대가 되도록 하기 위해 열외시켜야 하는 병사의 수
for i in range(1, N):
for j in range(i):
if scores[j] < scores[i]:
dp[i] = max(dp[i], d... | [
"schw240@gmail.com"
] | schw240@gmail.com |
a52dfaac37bcd5fa128652b84d5b4b9904f40414 | 1974b3e9c5f2f677833e1608a41281f377fd331c | /dltesthttp_xuyalin2/www/testcase/dlmall/ts_couponx/getUseFulCoupons.py | e7f7c5c587deb28ea48f702a15f9161b6113a024 | [] | no_license | xyl00755/pythonLearning | ed0f540b61247c3560f347853da5886b2e2ba25d | c6aecff86ff34dcd7358d98201627ff84e9bf2cf | refs/heads/master | 2021-01-13T08:19:25.171016 | 2016-12-16T05:43:10 | 2016-12-16T05:43:10 | 71,764,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
from www.api.dlmall import *
from www.common.excel import *
from www.common.database import *
"""
/couponx/getUseFulCoupons.html
request:
get
http://123.57.244.205:9003/couponx/getUseFulCoupons.html?goodsId=f4bccbbd84e44f9ba839e082970dccca%2C9c02bcf9737d4... | [
"xuyalin@danlu.com"
] | xuyalin@danlu.com |
b9bcf064e318743a5c5030ddf2e243fa9c742794 | 8537ecfe2a23cfee7c9f86e2318501f745078d67 | /Practise_stuff/matplotlib/click_on_point_to_see_timeseries.py | d68c313bc04fa4ac8a3c2008391627668a605bd3 | [] | no_license | oolsson/oo_eclipse | 91d33501d9ed6c6b3c51bb22b635eb75da88e4e1 | 1828866bc4e1f67b279c5a037e4a6a4439ddb090 | refs/heads/master | 2021-01-01T20:17:12.644890 | 2015-11-30T09:49:41 | 2015-11-30T09:49:41 | 23,485,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | import numpy as np
class PointBrowser:
"""
Click on a point to select and highlight it -- the data that
generated the point will be shown in the lower axes. Use the 'n'
and 'p' keys to browse through the next and previous points
"""
def __init__(self):
self.lastind = 0
... | [
"o.h.olsson@gmail.com"
] | o.h.olsson@gmail.com |
7851381b34746f3487ce259477ca9681dcb2349a | 32cfd6a8df9b24059ed7bee0b7bf99b6c0268f6e | /framework/seocortex/utils/soupselect_old.py | 2498bc8d37f106ed475746dca6bdd246a3d6be44 | [] | no_license | blorenz/seocortex | 5cd7acb647fbc4908e6045d2a89bdd2ade922434 | 3f1f7e8ac4a12e24e7f2cb58407ce52babfe5cf8 | refs/heads/master | 2016-09-05T21:36:01.039128 | 2012-04-23T13:33:46 | 2012-04-23T13:33:46 | 3,951,299 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,621 | py | # -*-coding:Utf-8 -*
# Copyright 2012 - Peoplze.com <contact@peoplze.com>
# Python imports
import re
def attrInNode(node,atr):
for k,val in node.attrs:
if k == atr:
return True
return False
def htmlFind(node,selector,n,defaut=""):
l = list(node.findSelect(selector))
if len(l) >... | [
"blorenz@gmail.com"
] | blorenz@gmail.com |
e68e5d91b7780d3fad236dfa0ad58ca34d4e4f9e | 8b3ca44ee3d990233e74655b7131d616094f70c2 | /experiments/cross_validation/movielens_100K/poisson_gamma_gamma.py | cc0781ad2618e0f9db05184959fc4e28140035a0 | [] | no_license | zshwuhan/BMF_Priors | 8b8c54271285a72d2085a56a9475c0756f375e67 | 6a600da1c41f1ccde2f2ba99298b40e68fb9910a | refs/heads/master | 2021-05-13T19:10:07.203215 | 2017-12-01T13:30:21 | 2017-12-01T13:30:21 | 116,883,181 | 1 | 0 | null | 2018-01-09T23:36:13 | 2018-01-09T23:36:13 | null | UTF-8 | Python | false | false | 1,609 | py | '''
Run nested cross-validation experiment on the MovieLens 100K dataset, with
Poisson likelihood, Gamma priors, and Gamma hierarchical priors.
'''
project_location = "/Users/thomasbrouwer/Documents/Projects/libraries/"
import sys
sys.path.append(project_location)
from BMF_Priors.code.models.bmf_poisson_gamma_gamma ... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
f8dcb79496b226693eb440a4735a89a8bb445860 | 684b61f3405ed01b4184b222da342bd1533e4b90 | /shop/migrations/0002_auto_20200406_1505.py | 17c49a7cd1d4a26822a3030c54e37da8409a58fd | [] | no_license | Mubashar-javed/myshop | 6379d2568e969db9f8dc30354966d4054463959f | 0248c2cb6e26500b5fd1404dad45b14ebf1092ac | refs/heads/master | 2023-05-26T08:01:09.067626 | 2022-12-08T09:36:10 | 2022-12-08T09:36:10 | 254,266,547 | 0 | 0 | null | 2023-05-23T01:08:14 | 2020-04-09T03:57:41 | Python | UTF-8 | Python | false | false | 353 | py | # Generated by Django 2.2.5 on 2020-04-06 10:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='product',
old_name='cereated',
new_... | [
"mubasharbravo302@gmail.com"
] | mubasharbravo302@gmail.com |
aed11a2c4d13c0d479bf8465197e8185bcd75c06 | 14f0c423c109a75a8cbd10ca8c526f1482e3e385 | /Python/Django/multuple_apps/apps/blogs/views.py | 56e65b2b27072046cd5e9fc24cc6c724cda4ae09 | [] | no_license | thisolivier/dojo-master | 21fd5d13e25321cce0558cab3b0c0335774e173c | 9486f6b2af2148a296e2a238eee2b814fe0831fe | refs/heads/master | 2021-01-01T06:47:07.162851 | 2017-09-16T00:54:05 | 2017-09-16T00:54:05 | 97,511,225 | 0 | 0 | null | 2017-09-16T00:42:26 | 2017-07-17T18:51:47 | Python | UTF-8 | Python | false | false | 734 | py | from django.shortcuts import render
# Create your views here.
def blog_root(request):
print "---> Generating root template"
return render(request, 'blogs/index.html')
def blog_new(request):
print "---> Generating new blog template"
return render(request, 'blogs/index.html')
def blog_create(request):
... | [
"olivier.butler@gmail.com"
] | olivier.butler@gmail.com |
d0479fa248e992aff2046f147e18df724d37ad7f | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/AirSage_Petrel/Petrel-master/petrel/petrel/storm.py | bd46ee3d47e13255528269e2dc4ef4455261a969 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 16,718 | py | from __future__ import print_function
import sys
import os
import time
import socket
import logging
from collections import deque
import json
import six
storm_log = logging.getLogger('storm')
TUPLE_PROFILING = False
json_encode = lambda x: json.dumps(x)
json_decode = lambda x: json.loads(x)
BLANK_LINE_CHECK = T... | [
"659338505@qq.com"
] | 659338505@qq.com |
f1010cdff0106ff59ffa22b5b5d3ee835bf5829f | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/0689-Maximum-Sum-of-3-Non-Overlapping-Subarrays/soln-1.py | f62c0aa991d5e1a4c2f04b46e6f6e54a54e99d0f | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 996 | py | class Solution:
def maxSumOfThreeSubarrays(self, nums: List[int], k: int) -> List[int]:
idx1, idx2, idx3 = 0, k, k * 2
s1, s2, s3 = sum(nums[idx1:idx1 + k]), sum(nums[idx2:idx2 + k]), sum(nums[idx3:idx3 + k])
bests1, bests12, bests123 = s1, s1 + s2, s1 + s2 + s3
besti1 = 0
be... | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
94458562cd7bf5f91df8d4257fc676713c9cdb93 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Python wow/tests/models/spells/test_buff_schema.py | 86c88aee46e4d4ca161e2602ae7dee3c807b81df | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e63d9f081f022098267a17e7874b4d2fd1dcffedf91d27fcc4a3820700084f41
size 1940
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
6c01e0c87f1231c1a696e1b6cbdbd868b04e2a06 | 011a750fae8ade67f726a9749e05cc4afb8e360d | /text_file_analyser/test/main.py | 141c4ce62d4e23028bccb531ba11cf934d5e6550 | [] | no_license | MartinCarufel/PycharmProjects | c7e50b66a24d4a216b7a217192fcd446f5324d9f | aaa6c95b3e2e6525586fb6a03d1c9d484065899b | refs/heads/master | 2023-07-05T22:40:38.650892 | 2023-06-26T13:55:13 | 2023-06-26T13:55:13 | 150,859,642 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | from text_file_analyser import Text_File_analyser
import pandas as pd
def main():
tf = Text_File_analyser("usb_stress_testIO-04-000979.log")
csv_data = tf.data_spliter("\| Date :", " +")
df = pd.DataFrame(csv_data)
df = df[[3, 4]]
print(df)
def main2():
# Creating the dataframe
df = pd.... | [
"maccam6@gmail.com"
] | maccam6@gmail.com |
f0438fb43a911298fba48e71620bc3f5ff15ba8b | c16ab2c9c675bdbca43a4603a14106790d9e7da2 | /lib/gae_mini_profiler/appstats_profiler.py | d1e30d4d9a70e975ccedc29a5068b4e0987559b9 | [
"MIT"
] | permissive | y2bishop2y/microengine | 7e7e8b5852188fcceb9559f9d8d339bf6257a0d7 | 2322fdce0718a06bdc0332682e8ef9e393f8e7af | refs/heads/master | 2021-01-01T18:38:17.250888 | 2013-03-20T08:21:53 | 2013-03-20T08:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,136 | py | """RPC profiler that uses appstats to track, time, and log all RPC events.
This is just a simple wrapper for appstats with result formatting. See
https://developers.google.com/appengine/docs/python/tools/appstats for more.
"""
import logging
from pprint import pformat
from google.appengine.ext.appstats import record... | [
"eberenbaum@okta.com"
] | eberenbaum@okta.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.