blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25a966ceab5d2deb560acac18c7d2c9729e93236 | be999cad30c28d0370a57b73057cb734fdffbf23 | /workshop_corona19/corona19_07_์ฌํ๋ ฅ.py | 899ed6dd8d5552a0e7aa1dc68988569ffc65f5fa | [] | no_license | choicoding1026/ML | 341181d5b1088f48fa0336a6db773ed7cfbecc21 | 69db5fcd559a7a41ce9fb0ece543d3cf9b44d5bb | refs/heads/master | 2023-01-01T07:35:09.655664 | 2020-10-15T07:41:50 | 2020-10-15T07:41:50 | 303,907,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,833 | py | '''
์์ธ์ ์ฝ๋ก๋19 ๋ฐ์ดํฐ ์์ง ๋ฐ ๋ถ์
26. ์ฌํ๋ ฅ
'''
import pandas as pd
import numpy as np
file_name = "seoul_corona_10_11_.csv"
df = pd.read_csv(file_name, encoding="utf-8") # ํ๊ธ์ฒ๋ฆฌ
# 1. '์ฐ๋ฒ' ๊ธฐ์ค์ผ๋ก ์ค๋ฆ์ฐจ์ ์ ๋ ฌ
df = df.sort_values(by="์ฐ๋ฒ", ascending=False)
print("1. '์ฐ๋ฒ' ๊ธฐ์ค์ผ๋ก ์ค๋ฆ์ฐจ์ ์ ๋ ฌ:\n", df.head())
# 2. ํ์ง์ผ์ ๋น๋์ ==> ์ด๋ ๋ ์ง์ ๊ฐ์ฅ ... | [
"justin6130@gmail.com"
] | justin6130@gmail.com |
156d6f7fc512c8f3ba50b7135ffd548e1d30f08e | 8e75843fc2b27d50e1f8a95f0367a3a96a3dae30 | /Code/python_quote.py | a1cb9f69bbba8935805a704b36ca94ea7291b786 | [] | no_license | franklin-phan/CS-2-Tweet-Generator | 5f122e2aab7a6ee749feb888d094c8057671a7ee | fedb9ba46be3f31a1586f8d64986ec92c58296b6 | refs/heads/master | 2021-07-14T14:37:13.404088 | 2020-03-06T07:08:03 | 2020-03-06T07:08:03 | 236,772,553 | 0 | 0 | null | 2021-03-20T02:58:02 | 2020-01-28T15:47:39 | Python | UTF-8 | Python | false | false | 332 | py | import random
quotes = ("It's just a flesh wound.",
"He's not the Messiah. He's a very naughty boy!",
"THIS IS AN EX-PARROT!!")
def random_python_quote():
rand_index = random.randint(0, len(quotes) - 1)
return quotes[rand_index]
if __name__ == '__main__':
quote = random_python_quote(... | [
"franklin.phan123@gmail.com"
] | franklin.phan123@gmail.com |
7e6aaa5e69e03122dd3e0dec7476a9bc38d155c2 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Difference/trend_MovingMedian/cycle_7/ar_/test_artificial_128_Difference_MovingMedian_7__20.py | 3857b72f05dfa8e9071a105b318bb037455121e2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 268 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 7, transform = "Difference", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
e39687a83d7901840b63d3e947089e5c408f944d | 11137bde91389c04a95df6f6fdaf64f7f49f5f80 | /secondTest/introduction_MIT2/5_1.py | 47272dfbccb9fef4086d3fd1feaa61aff6aa3068 | [] | no_license | starschen/learning | cf3c5a76c867567bce73e9cacb2cf0979ba053d9 | 34decb8f9990117a5f40b8db6dba076a7f115671 | refs/heads/master | 2020-04-06T07:02:56.444233 | 2016-08-24T08:11:49 | 2016-08-24T08:11:49 | 39,417,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | #encoding:utf8
def findDivisors(n1,n2):
divisors=()
for i in range(1,min(n1,n2)+1):
if n1%i==0 and n2%i==0:
divisors=divisors+(i,)
return divisors
divisors=findDivisors(20,200)
# print divisors
total=0
for d in divisors:
total+=d
# print total
def findExtremeDivisors(n1,n2):
d... | [
"stars_chenjiao@163.com"
] | stars_chenjiao@163.com |
b3659978c254246c6d5f9ff0bb961a8029d82c3e | 30e2a85fc560165a16813b0486a862317c7a486a | /tensorflow/test/misc/graph.py | f141c134d6cf1435e3b25c0f9515954553e7ee26 | [] | no_license | muryliang/python_prac | 2f65b6fdb86c3b3a44f0c6452a154cd497eb2d01 | 0301e8f523a2e31e417fd99a968ad8414e9a1e08 | refs/heads/master | 2021-01-21T11:03:48.397178 | 2017-09-18T04:13:27 | 2017-09-18T04:13:27 | 68,801,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | import tensorflow as tf
g1 = tf.Graph()
with g1.as_default():
v = tf.get_variable(
"v", initializer=tf.zeros_initializer(shape=[1]))
g2 = tf.Graph()
with g2.as_default():
v= tf.get_variable(
"v", initializer=tf.ones_initializer(shape=[1]))
with tf.Session(graph=g1) as sess:
tf.ini... | [
"muryliang@gmail.com"
] | muryliang@gmail.com |
ad62f9feb1c07f0e0d3a9a0db8defb334439b636 | a2fdcd5252741bdd3ad96f20944c07d80bd57dc8 | /class_sample.py | ca23e1669eeab4e7a15a44c5a304dc1c92735155 | [] | no_license | chaossky/Python2019 | 7cd11aab7cecf23acb42b7635f8bfb506555c856 | fd63563f6a175a6aef1f3248aefb3f754f6658e1 | refs/heads/master | 2021-07-31T09:15:14.430835 | 2019-08-16T12:13:45 | 2019-08-16T12:13:45 | 200,347,544 | 0 | 0 | null | 2019-08-05T21:54:10 | 2019-08-03T07:43:34 | Python | UTF-8 | Python | false | false | 365 | py | class Ball:
color=""
speed=0
def setSpeed(self,value):
self.speed=value
ball01=Ball()
ball01.color="Red"
ball01.setSpeed(10)
ball02=Ball()
ball02.color="Blue"
ball02.setSpeed(20)
print("Ball01 color:%s" %ball01.color)
print("Ball01 speed:%s" %ball01.speed)
print("Ball02 color:%s" %ball02.col... | [
"user@email.mail"
] | user@email.mail |
38910cfa0d829421a6d14748e1081970a606abe0 | 2734b77a68f6d7e22e8b823418ad1c59fe1a34af | /opengever/dossier/upgrades/20170307184059_reindex_searchable_text_for_dossier_templates/upgrade.py | 436c02f98340c2800590927a5f6bf366f0ad4ab2 | [] | no_license | 4teamwork/opengever.core | 5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1 | a01bec6c00d203c21a1b0449f8d489d0033c02b7 | refs/heads/master | 2023-08-30T23:11:27.914905 | 2023-08-25T14:27:15 | 2023-08-25T14:27:15 | 9,788,097 | 19 | 8 | null | 2023-09-14T13:28:56 | 2013-05-01T08:28:16 | Python | UTF-8 | Python | false | false | 365 | py | from ftw.upgrade import UpgradeStep
class ReindexSearchableTextForDossierTemplates(UpgradeStep):
"""Reindex SearchableText for dossier templates.
"""
def __call__(self):
self.install_upgrade_profile()
self.catalog_reindex_objects(
{'portal_type': 'opengever.dossier.dossiertemp... | [
"david.erni@4teamwork.ch"
] | david.erni@4teamwork.ch |
445c2230f975dd0e1e6f4f7c980b766500609f3a | 6c37d1d2437a08e43b13d621d4a8da4da7135b3a | /yt_dlp/extractor/mirrativ.py | 0a8ee0c3a52eeff28f2d9e679e0ae5913bc34970 | [
"Unlicense",
"GPL-2.0-or-later",
"MPL-2.0",
"BSD-3-Clause",
"GPL-3.0-or-later",
"LGPL-2.1-only",
"BSD-2-Clause",
"MIT"
] | permissive | yt-dlp/yt-dlp | be040bde10cc40258c879c75ab30215686352824 | d3d81cc98f554d0adb87d24bfd6fabaaa803944d | refs/heads/master | 2023-09-05T21:15:21.050538 | 2023-09-05T20:35:23 | 2023-09-05T20:35:23 | 307,260,205 | 52,742 | 5,376 | Unlicense | 2023-09-14T05:22:08 | 2020-10-26T04:22:55 | Python | UTF-8 | Python | false | false | 4,880 | py | from .common import InfoExtractor
from ..utils import (
ExtractorError,
dict_get,
traverse_obj,
try_get,
)
class MirrativBaseIE(InfoExtractor):
def assert_error(self, response):
error_message = traverse_obj(response, ('status', 'error'))
if error_message:
raise Extracto... | [
"noreply@github.com"
] | yt-dlp.noreply@github.com |
4403759cc3a6535b10eb3e09928d293cb9555aad | bb151500b0fc5bb9ef1b1a9e5bba98e485b4b34d | /problemSet/591C_Median_Smoothing.py | 9436f6108c5e3ab88ea40e68a7cd92378f7749a0 | [] | no_license | yamaton/codeforces | 47b98b23da0a3a8237d9021b0122eaa498d98628 | e0675fd010df852c94eadffdf8b801eeea7ad81b | refs/heads/master | 2021-01-10T01:22:02.338425 | 2018-11-28T02:45:04 | 2018-11-28T03:21:45 | 45,873,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,697 | py | """
Codeforces Round #327 (Div. 2)
Problem 591 C. Median Smoothing
@author yamaton
@date 2015-11-06
"""
def reduce_consec(iterable):
"""
[1, 2, 3, 6, 7, 9, 10, 11, 12, 13, 20]
--> [(1, 3), (6, 2), (9, 5), (20, 1)]
Detect consecutive part and (starting_value, length) pair
:param xs: List of int
... | [
"yamaton@gmail.com"
] | yamaton@gmail.com |
c8bca5286d0a9ad049f59155f5a9114d8f06dd8c | b92eee41d665314bc42043d1ff46c608af5ffdfd | /sesion_3/prog.4.py | eda17bf266e753571861d3d45fc42db362032da6 | [] | no_license | badillosoft/python-economics | 40efe8326558a8fb93f84fdbd2137428844ee5f3 | 82af43c7a47297ce186dc0e23e30620d46e6693a | refs/heads/master | 2021-01-11T18:55:15.762752 | 2017-05-09T01:15:59 | 2017-05-09T01:15:59 | 79,656,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | from openpyxl import load_workbook
from geg import *
wb = load_workbook("puntos.xlsx")
ws = wb.active
puntos = automatic_load_data(ws, "A2")
def f(x, y):
return x**2 + y**2
for p in puntos:
x = p["X"]
y = p["Y"]
z = f(x, y)
print "%f, %f, %f" %(x, y, z) | [
"kmmx@hsoft.local"
] | kmmx@hsoft.local |
713e56b0dfc1b28ab55d67e75f8720cff692e593 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-mrsp.0/mrsp_ut=3.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=49/params.py | fcbfbdfe45d4c06dbfe8c250d00b2d4aa9ae3364 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.557024',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.5',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'RUN',
'trial': 49,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
c0cf0962495662ae563a1a6b07d1ec6c2b8f5619 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/9549174/snippet.py | 312f68f442a31f1ee8acc642c7594905cdeb8ac0 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 3,652 | py | import random
import sys
def print_grid(grid):
print ("\n%s\n" % "+".join([('-' * 4)] * 4)).join(
["|".join(["%4d" % item if item > 0 else " " * 4 for item in line]) for line in grid])
def get_available_cells(grid):
return [(y, x) for y in range(4) for x in range(4) if not grid[y][x]]
def insert_n... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
87481f971aab378f0cea55dabcddcedecfdce3f5 | 4c704c60dcd8bba658f4e0cdc85f299c01f2058e | /002/for1.py | 9727ffbd6c0fcc9cbb45013575fc2759408bb8fa | [] | no_license | steveq1/py2016 | acd6c80595637fb3be7f1f3378bbdca8d2dcf8cc | fb9b2708d49790efe03d84315442d7e93a7cc6d6 | refs/heads/master | 2021-01-17T13:00:25.787387 | 2016-07-18T16:28:07 | 2016-07-18T16:28:07 | 63,125,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | for x in range(0,10):
if x >=3:
is_break = False
break
print('x={0}'.format(x))
if is_break:
break
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
19a873e4e3896df4714cebbd65d8a78cd02da923 | 773aef0de494fde01ea5a444b0cfdf57deb88b10 | /puchowebapp/urls.py | 925ea082cf610643223dc59a8d2e26160968a8dc | [] | no_license | gk90731/Pucho_Web | 44c509f92950dc7f35cd5dfd6cf3e42fb6b2d720 | 041239934cd9303120e67d613b2ae90f23c17f20 | refs/heads/master | 2022-12-10T19:47:43.400760 | 2020-04-04T14:28:29 | 2020-04-04T14:28:29 | 253,017,818 | 0 | 0 | null | 2022-12-08T03:59:01 | 2020-04-04T14:26:52 | HTML | UTF-8 | Python | false | false | 383 | py | from django.urls import path,include
from . import views
urlpatterns = [
path('',views.index ,name="home"),
path('what_we_do/',views.what_we_do ,name="what_we_do"),
path('about/',views.about ,name="about"),
path('protfolio/',views.protfolio ,name="protfolio"),
path('gallery/',views.gallery ,name="ga... | [
"gk90731@gmail.com"
] | gk90731@gmail.com |
91f683f5ae10fa0d17fac5d8d2ed8efc7e5b63a8 | fc1c1e88a191b47f745625688d33555901fd8e9a | /meraki_sdk/models/universal_search_knowledge_base_search_enum.py | eeb90cdd62bbd16c19b2fcca21e1750437564fb5 | [
"MIT",
"Python-2.0"
] | permissive | RaulCatalano/meraki-python-sdk | 9161673cfd715d147e0a6ddb556d9c9913e06580 | 9894089eb013318243ae48869cc5130eb37f80c0 | refs/heads/master | 2022-04-02T08:36:03.907147 | 2020-02-03T19:24:04 | 2020-02-03T19:24:04 | 416,889,849 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # -*- coding: utf-8 -*-
"""
meraki_sdk
This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ).
"""
class UniversalSearchKnowledgeBaseSearchEnum(object):
"""Implementation of the 'UniversalSearchKnowledgeBaseSearch' enum.
The universal search box always... | [
"api-pm@meraki.com"
] | api-pm@meraki.com |
d0b8df90a505c6ce70739548052cf57d31f3c545 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/422/usersdata/328/89006/submittedfiles/lecker.py | 646555fee493b246ee37fbf271bb339645a2e877 | [] | 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 | 251 | py | n1=int(input('n1:'))
n2=int(input('n2:'))
n3=int(input('n3:'))
n4=int(input('n4:'))
if n1 >n2 and n4<n3:
print('S')
elif n2 >n1> n3 and n4<n3 :
print('S')
elif n3>n4>n2 and n1<n2:
print('S')
elif n4>n3 :
print('S')
else:
print('N') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
5f5b4e4172a9aafe394060657cf1b1bd9a055427 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5631572862566400_0/Python/ugo/c.py | fc210345694d8b61a3644358a93468fbce72a716 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,899 | py |
def get_candidates(bffs):
ret = []
for i in range(len(bffs)):
for j in range(i+1, len(bffs)):
if bffs[i] == j and bffs[j] == i:
ret.append((i, j))
return ret
def longest(n, dontgo, edges):
print 'longest', n, dontgo
ret = 1
for nb in edges[n]:
if nb != dontgo:
ret = max(ret, longest(nb, dontgo, ed... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
f59015df0fd96a8dc9105e2b9aec3f31d216ca8f | df7b40e95718ac0f6071a0ba571b42efc81cf6de | /configs/dnlnet/dnl_r50-d8_512x512_160k_ade20k.py | 5305689d09b944f6e37aa85567ce3f29fc6974a7 | [
"Apache-2.0"
] | permissive | shinianzhihou/ChangeDetection | 87fa2c498248e6124aeefb8f0ee8154bda36deee | 354e71234bef38b6e142b6ba02f23db958582844 | refs/heads/master | 2023-01-23T20:42:31.017006 | 2023-01-09T11:37:24 | 2023-01-09T11:37:24 | 218,001,748 | 162 | 29 | Apache-2.0 | 2022-11-03T04:11:00 | 2019-10-28T08:41:54 | Python | UTF-8 | Python | false | false | 249 | py | _base_ = [
'../_base_/models/dnl_r50-d8.py', '../_base_/datasets/ade20k.py',
'../_base_/default_runtime.py', '../_base_/schedules/schedule_160k.py'
]
model = dict(
decode_head=dict(num_classes=150), auxiliary_head=dict(num_classes=150))
| [
"1178396201@qq.com"
] | 1178396201@qq.com |
08e64277223c06c607a305f6816878e91c7112f9 | 3b6b76aae93eb8a2c738a1364e923d3bad20e0a6 | /articles/wsgi-intro/twill-wsgi-example.py | c8d9450fb8f6a4c7610666f7a9687e7e5a2e8ccb | [] | no_license | ctb/ivory.idyll.org | 24e4a0f67fbbde399118aff3c27a03bac304aa8f | 88df5f33361e6e13eda248ee55f1e4e460b998d9 | refs/heads/master | 2020-04-10T10:42:00.111811 | 2018-12-08T19:54:05 | 2018-12-08T19:54:05 | 160,973,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #! /usr/bin/env python
import twill
def simple_app(environ, start_response):
status = '200 OK'
response_headers = [('Content-type','text/plain')]
start_response(status, response_headers)
return ['Hello world!\n']
if __name__ == '__main__':
print '*** installing WSGI intercept hook ***\n'
twill.add_w... | [
"titus@idyll.org"
] | titus@idyll.org |
bd7f88508e67dbfcf5ecffbf0562f7a05eb1619b | e49a07ad215172e9c82cb418b10371bf0ce1c0f7 | /็ฌฌ1็ซ pythonๅบ็ก/Pythonๅบ็ก08/10-ๅผๅธธไผ ้.py | a53af9d709038f15ce320e9490696f4377f4e232 | [] | no_license | taogangshow/python_Code | 829c25a7e32ead388c8b3ffa763cb9cf587bfd7b | 4b3d6992ec407d6069f3187ca7e402a14d863fff | refs/heads/master | 2022-12-16T01:26:17.569230 | 2018-11-16T10:07:59 | 2018-11-16T10:07:59 | 157,832,985 | 0 | 1 | null | 2022-11-25T09:55:32 | 2018-11-16T08:00:13 | Python | UTF-8 | Python | false | false | 405 | py | def test1():
print("---test1-1---")
print(num)
print("---test1-2---")
def test2():
print("---test2-1---")
test1()
print("---test2-2---")
def test3():
try:
print("---test3-1---")
test1()
print("---test3-2---")
except Exception as result:
print("ๆ่ทๅฐไบๅผๅธธ๏ผไฟก... | [
"cdtaogang@163.com"
] | cdtaogang@163.com |
f4c50198426a22de4657d97af5065df4920d777b | 4f111dfacab0acc93900e7746538f85e0b3d8d78 | /day3/01ๅ
ณ็ณป่ฟ็ฎ็ฌฆ.py | 7daa883448340f101de2cd7477971865e50ce034 | [] | no_license | ljxproject/basecode | 5541f25cfe90d5fad26eac0b6e72802aa1fad1f4 | 485e4b41593839bfc61e67261247fb88dc80cc1d | refs/heads/master | 2020-03-26T16:16:26.422617 | 2018-08-17T08:05:11 | 2018-08-17T08:05:11 | 145,091,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | '''
ๅ
ณ็ณปๅ
็ฎ็ฌฆไธๅ
ณ็ณป่กจ่พพๅผ
ๅ
ณ็ณป่ฟ็ฎ็ฌฆๆ:
> < == != >= <=
ๆ ผๅผ: ่กจ่พพๅผ1 ๅ
ณ็ณป่ฟ็ฎ็ฌฆ ่กจ่พพๅผ2
ๅ่ฝ: ่ฟ็ฎ่กจ่พพๅผ1ไธ่กจ่พพๅผ2็ๅผ,
ๅผ: ๅฆๆๅ
ณ็ณปๆ็ซ,ๅ่ฟๅTrue,ๅฆๅFalse
'''
num1 = 2
num2 = 5
mum3 = num1 != num2
print(mum3)
print(num1 != num2)
| [
"403496369@qq.com"
] | 403496369@qq.com |
8e4afde0ad3d7cdf9500900a9d52568869e8ccec | b9d7194bb50a01e7e56d19ba2f3c048084af54b5 | /_OLD_/bottle.py | 8171ee3221df8251f6911cd57ccc179a1fc2edcf | [] | no_license | BernardoGO/TCC---2017 | 099e72d788974446b58fe5f409a2df25e3613cc5 | 75025e095956624470c22d8f3118441d5c28bdd7 | refs/heads/master | 2018-12-04T10:53:07.809161 | 2018-09-06T04:59:30 | 2018-09-06T04:59:30 | 64,803,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,571 | py | import numpy as np
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers import Dropout, Flatten, Dense
from keras import applications
from keras.models import save_model, load_model
# dimensions of our images.
img_width, img_height = 150, 150
top_model_weights... | [
"bernardo.godinho.oliveira@gmail.com"
] | bernardo.godinho.oliveira@gmail.com |
e7e3f19d55f167659b9939895e3c7c8b47ad52da | c6818c06aacb1eca1fffa8bbc51b6f3aac25c177 | /acre/asgi.py | 7a5ee240ac0ce6bd5657ed8a2e6ac3c7e5f609cc | [] | no_license | Acon94/ACRE | 2d0769780c9f81eba05085ffd8b0af225666d6de | 73622a6dc4ba0f30e8d3e90b02d23c8efd14a5e1 | refs/heads/master | 2022-08-02T02:07:53.004308 | 2020-05-29T15:25:50 | 2020-05-29T15:25:50 | 267,840,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
ASGI config for acre project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"andrew@Andrews-MacBook-Pro.local"
] | andrew@Andrews-MacBook-Pro.local |
def00a2abdbb12ba52b231da7124685b93516b93 | 23ef81cb94356fd321c07f06dab2877e04131b4d | /yiyuanduobao_shop/migrations/0058_item_proxy_sale_qr_code.py | da3d99780c61df4a84d1c939d53fdc4bb41fd205 | [] | no_license | dongshaohui/one_dolor | 0c688787d8cee42957bec087b74b5ea353cc80fc | 13dea458568152a3913c6f70ecd9a7e1f6e9514e | refs/heads/master | 2020-07-03T03:12:22.409542 | 2016-11-21T08:15:06 | 2016-11-21T08:15:06 | 74,202,604 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('yiyuanduobao_shop', '0057_item_winner_customer'),
]
operations = [
migrations.AddField(
model_name='item',
... | [
"405989455@qq.com"
] | 405989455@qq.com |
0b231fcc73526c6bd8bb5185239f91dd9e68d7cf | 13edd8f1bc3b86fd881f85fbeafe94811392d7fc | /fourth_module/ๅค็บฟ็จๅค่ฟ็จ/new/ๅค็บฟ็จ/01 ๅผๅฏ็บฟ็จ็ไธค็งๆนๅผ.py | cbdb541d1193f3e8f003cc5d85896cfbaa111812 | [] | no_license | ryan-yang-2049/oldboy_python_study | f4c90c9d8aac499e1d810a797ab368217f664bb1 | 6e1ab7f217d9bf9aa7801266dee7ab4d7a602b9f | refs/heads/master | 2022-07-22T23:49:28.520668 | 2019-06-11T13:26:25 | 2019-06-11T13:26:25 | 129,877,980 | 0 | 1 | null | 2022-07-18T17:12:54 | 2018-04-17T09:12:48 | HTML | UTF-8 | Python | false | false | 643 | py | # -*- coding: utf-8 -*-
"""
__title__ = '01 ๅผๅฏ็บฟ็จ็ไธค็งๆนๅผ.py'
__author__ = 'yangyang'
__mtime__ = '2018.02.07'
"""
from threading import Thread
import os,time
# def task(name):
# print("%s is running,PID: %s" % (name,os.getpid()))
#
# if __name__ == '__main__':
# p = Thread(target=task,args=('ryan',))
# p.start()
# pri... | [
"11066986@qq.com"
] | 11066986@qq.com |
00d288a2b6044bd45e41cb8a04842120a28cf531 | 90047daeb462598a924d76ddf4288e832e86417c | /chromecast/browser/DEPS | c273dc2c7d0751e9b9e547fd0285090933fa1b4b | [
"BSD-3-Clause"
] | permissive | massbrowser/android | 99b8c21fa4552a13c06bbedd0f9c88dd4a4ad080 | a9c4371682c9443d6e1d66005d4db61a24a9617c | refs/heads/master | 2022-11-04T21:15:50.656802 | 2017-06-08T12:31:39 | 2017-06-08T12:31:39 | 93,747,579 | 2 | 2 | BSD-3-Clause | 2022-10-31T10:34:25 | 2017-06-08T12:36:07 | null | UTF-8 | Python | false | false | 990 | include_rules = [
"+cc/base/switches.h",
"+chromecast/common",
"+chromecast/graphics",
"+chromecast/app/grit/chromecast_settings.h",
"+chromecast/app/resources/grit/shell_resources.h",
"+chromecast/media",
"+chromecast/net",
"+chromecast/service",
"+components/cdm/browser",
"+components/crash",
"+... | [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com | |
26e94e33c7d3dda0924333d6df8e6e72572d6ac1 | a842f224d1b0c2e74b2043e8d03f49e3298086df | /grep_scales.py | 2b83cfe14e04d138314104c9309a15a7056c7411 | [] | no_license | ronsengupta/grep-scales | 68f8037171cdfd3f43c02d3d77f4f633e4196856 | 5740902b4694ae8d1cdee04e213f41c3d99bc428 | refs/heads/master | 2020-06-12T23:00:48.071262 | 2016-04-10T08:48:04 | 2016-04-10T08:48:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,232 | py | from shutit_module import ShutItModule
class grep_scales(ShutItModule):
def build(self, shutit):
afile = r'''THIS LINE IS THE 1ST UPPER CASE LINE IN THIS FILE.
this line is the 1st lower case line in this file.
This Line Has All Its First Character Of The Word With Upper Case.
Two lines above this line is empty.
... | [
"ian.miell@gmail.com"
] | ian.miell@gmail.com |
f76d667d0fdea002d1fd512d3a7f98728174a0a4 | 2ece848b37f7fa6f13ce0e94ddfd0fbd46c72b8f | /backend/utils/crawl_mode.py | c0224bad7279761898d0187465fdb7edceb18649 | [
"Apache-2.0"
] | permissive | rockeyzhu/eastmoney | 1a2d2db18bd658abe8e65875bf863f1cfcefd545 | c8aa33a69ebee54c64f22a8edbcf30ed0f29b293 | refs/heads/master | 2023-03-06T12:20:03.896607 | 2021-02-20T07:20:53 | 2021-02-20T07:20:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import configparser
def get_crawl_mode():
config = configparser.ConfigParser()
config.sections()
config.read("config.ini")
return config['CRAWL_MODE']['crawl_mode']
| [
"1397991131@qq.com"
] | 1397991131@qq.com |
bc770a4a78f1a3e117c15af7a3ea4c7b4937bf1e | 63b0fed007d152fe5e96640b844081c07ca20a11 | /ABC/ABC200~ABC299/ABC291/c.py | 468e2709c60f01b71d7144cca09a88563e9ae6c3 | [] | no_license | Nikkuniku/AtcoderProgramming | 8ff54541c8e65d0c93ce42f3a98aec061adf2f05 | fbaf7b40084c52e35c803b6b03346f2a06fb5367 | refs/heads/master | 2023-08-21T10:20:43.520468 | 2023-08-12T09:53:07 | 2023-08-12T09:53:07 | 254,373,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from collections import defaultdict
N = int(input())
S = input()
d = defaultdict(lambda: False)
d[(0, 0)] = True
nx, ny = 0, 0
ans = 'No'
for i in range(N):
s = S[i]
if s == 'R':
nx += 1
elif s == 'L':
nx -= 1
elif s == 'U':
ny += 1
else:
ny -= 1
if d[(nx, ny)]:
... | [
"ymdysk911@gmail.com"
] | ymdysk911@gmail.com |
7fc78a96811a0f46faa2e7fdc489c6ccfdf5de20 | b7f1b4df5d350e0edf55521172091c81f02f639e | /components/arc/video_accelerator/DEPS | be1c9c99ce26a0e5b89f2611421f734fc2f70e77 | [
"BSD-3-Clause"
] | permissive | blusno1/chromium-1 | f13b84547474da4d2702341228167328d8cd3083 | 9dd22fe142b48f14765a36f69344ed4dbc289eb3 | refs/heads/master | 2023-05-17T23:50:16.605396 | 2018-01-12T19:39:49 | 2018-01-12T19:39:49 | 117,339,342 | 4 | 2 | NOASSERTION | 2020-07-17T07:35:37 | 2018-01-13T11:48:57 | null | UTF-8 | Python | false | false | 296 | include_rules = [
"+components/arc/common",
"+gpu/command_buffer/service/gpu_preferences.h",
"+media/video",
"+media/base/video_frame.h",
"+media/base/video_types.h",
"+media/gpu",
"+mojo/edk/embedder",
"+services/service_manager/public/cpp",
"+ui/gfx",
"+ui/ozone/public",
]
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
00728e4101b62fa2bf7ba2c3784d4576344c6cc3 | d5b3de6729e165bddcc17b8c3c285df808cd9fd0 | /application/modules/fonction/views_fct.py | 209fd03dd4976dbac54b11d2915ca69f51eb9231 | [] | no_license | wilrona/Gesacom | 907848d44d9fa1a285b5c7a452c647fc6cbbc2fa | 31ec26c78994030844f750039a89a43a66d61abf | refs/heads/master | 2020-04-06T15:00:36.522832 | 2016-09-08T13:19:06 | 2016-09-08T13:19:06 | 49,956,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | __author__ = 'Ronald'
from ...modules import *
from models_fct import Fonction
from forms_fct import FormFonction
# Flask-Cache (configured to use App Engine Memcache API)
cache = Cache(app)
prefix = Blueprint('fonction', __name__)
@prefix.route('/fonction')
@login_required
@roles_required([('super_admin', 'fonctio... | [
"wilrona@gmail.com"
] | wilrona@gmail.com |
da0c2a1cf4183a389e9a794b268a35920914e270 | 226be49a7396e7c6004ba4de567f6c22b5b245c0 | /packaging/fremantle/.py2deb_build_folder/gread/src/opt/GRead/views/basic/utils/toolbar.py | ce31b63c1a91f4abdca09d651a501e4d2d0b2425 | [] | no_license | twidi/GRead | 0e315c0c924fa169cb5d16e927c6b54e79e25bd9 | 51429189762b706fbe8ca1b927d89071a556d51e | refs/heads/master | 2021-01-10T19:54:43.098022 | 2010-11-23T00:41:17 | 2010-11-23T00:41:17 | 1,146,572 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,891 | py | # -*- coding: utf-8 -*-
"""
Lib to manage toolbars which appear on mousedown(maemo) or mousemove(not maem0)
and stay visible a few seconds
"""
from PyQt4.QtGui import *
from PyQt4.QtCore import *
import time
class ToolbarOwnerEventFilter(QObject):
def __init__(self, *args, **kwargs):
super(ToolbarOwnerEv... | [
"s.angel@twidi.com"
] | s.angel@twidi.com |
c5a5e944bd41c1e4cfadd2c3c620774ec34c22e1 | 31e41995dea5e4a41bc9b942da7e5266cd686757 | /learning/training/python/py2/pgms/sec4/outputparams.py | 5894f5ae44a48540fe4caeee5abca53df43f5154 | [] | no_license | tamle022276/python | 3b75758b8794801d202565c05d32976c146beffd | 4fec225d1e5e2bf0adac5048f7f9f3313ac76e23 | refs/heads/master | 2020-04-01T21:03:01.458768 | 2017-03-13T20:47:35 | 2017-03-13T20:47:35 | 64,878,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | #!/usr/bin/env python
# outputparams.py - simulate output parameters
def assign(m, n):
m = 10
n = [3, 4]
return m, n
a = 5; b = [1, 2]
(a, b) = assign(a, b) # updates a, b
print a, b
#####################################
#
# $ outputparams.py
# 10 [3, 4]
#
| [
"tam.le@teradata.com"
] | tam.le@teradata.com |
5ebdc3a4b1499d03dc0954911ba0248fd4c5dfb8 | e254a1124bbe6be741159073a22898b0824e2a4f | /customuser/admin.py | 6c225a0579ce6bb67949bffc24b32ad6df83f3a0 | [] | no_license | skiboorg/stdiplom | 0df83b8e42e999abc43a01157cb24cffd10d0666 | 13101381c7db8a4b949048e8cbfcf9673cf7ecde | refs/heads/master | 2022-11-12T23:55:21.136176 | 2020-06-29T05:57:03 | 2020-06-29T05:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin
from django.utils.translation import ugettext_lazy as _
from .models import User,Guest
@admin.register(User)
class UserAdmin(DjangoUserAdmin):
"""Define admin model for custom User model with no email field."""
... | [
"ddnnss.i1@gmail.com"
] | ddnnss.i1@gmail.com |
d6522db0345b146f5c997b5624fec7901716705a | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/zope.server-Zope-3.2.1/zope.server/linereceiver/linetask.py | b6e21554887b4b549e2db8b1c9d3414ff467116b | [
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
09748ed4d962cf5b7f4a079ab8e5b4811299f4c0 | 99b062cb9f5f3ff10c9f1fa00e43f6e8151a43a6 | /Django/PROJECT02/PROJECT02/jobs/models.py | 5d8ee670119eeaf75fc29f8879c7f9b7d6106061 | [] | no_license | HSx3/TIL | 92acc90758015c2e31660617bd927f7f100f5f64 | 981c9aaaf09c930d980205f68a28f2fc8006efcb | refs/heads/master | 2020-04-11T21:13:36.239246 | 2019-05-08T08:18:03 | 2019-05-08T08:18:03 | 162,099,042 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from django.db import models
# Create your models here.
class Job(models.Model):
name = models.CharField(max_length=20)
pastjob = models.CharField(max_length=30)
def __str__(self):
return self.name | [
"hs.ssafy@gmail.com"
] | hs.ssafy@gmail.com |
b1b17de27b17b10b04b0d215f31b42d2845350ab | c31ee8136a57a96649196081e1cfde0676c2a481 | /larcv/app/arxiv/arxiv/LArOpenCVHandle/cfg/mac/arxiv/analyze.py | 1ff1c17fba6bd79428e15f9dc424c3ee27064942 | [
"MIT"
] | permissive | DeepLearnPhysics/larcv2 | b12b46168e5c6795c70461c9495e29b427cd88b5 | 31863c9b094a09db2a0286cfbb63ccd2f161e14d | refs/heads/develop | 2023-06-11T03:15:51.679864 | 2023-05-30T17:51:19 | 2023-05-30T17:51:19 | 107,551,725 | 16 | 19 | MIT | 2023-04-10T10:15:13 | 2017-10-19T13:42:39 | C++ | UTF-8 | Python | false | false | 1,113 | py | from larcv import larcv
import ROOT, sys
from ROOT import std
if len(sys.argv) < 2:
print 'Usage: python',sys.argv[0],'CONFIG_FILE [LARCV_FILE1 LARCV_FILE2 ...]'
sys.exit(1)
proc = larcv.ProcessDriver('ProcessDriver')
print "Loading config... ",sys.argv[1]
proc.configure(sys.argv[1])
print "Loaded"
print sys.... | [
"kazuhiro@nevis.columbia.edu"
] | kazuhiro@nevis.columbia.edu |
c5c4b6f0b936cd29d654915642a877ac48a21b78 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03806/s696918602.py | 35f161589d7dd759d0031fd48f8415a6aae2215a | [] | 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 | 666 | py | def main():
INF = 100 * 40 + 1
MX = 4000
N, Ma, Mb = map(int, input().split())
dp = [[INF] * (MX * 2 + 1) for _ in range(2)]
i, j = 0, 1
for _ in range(N):
ai, bi, ci = map(int, input().split())
x = Ma * bi - Mb * ai # ฮฃai:ฮฃbi=Ma:Mb<->Ma*ฮฃbi-Mb*ฮฃai=0
for k in range(-M... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4b076855d9faf7d4b9b52c1ba3bcabde38de220d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/3477.py | 445b282b68ddf7bc5304da572da944985b261730 | [] | 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 | 2,508 | py | """
Problem B. Tidy Numbers
Problem
Tatiana likes to keep things tidy. Her toys are sorted from smallest to largest,
her pencils are sorted from shortest to longest and her computers from oldest to
newest. One day, when practicing her counting skills, she noticed that some
integers, when written in base 10 w... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
68e4482c14a3dab16659aa7b39e7e1d5f4c639ed | edd1adb88112045d16d3e6417117d45ceed4a634 | /classical/tidybot-opt14-strips/api.py | fb141663dc9a4e046bd1d3dc18576e2df06bd7ef | [] | no_license | AI-Planning/classical-domains | 26de25bf23622f95c877960c1d52f444922d8737 | 4bd0b42d89ea02bd38af6f93cf20a0ab0cbda9d9 | refs/heads/main | 2023-04-27T07:55:55.832869 | 2023-03-29T01:46:11 | 2023-03-29T01:46:11 | 253,298,999 | 24 | 12 | null | 2023-04-18T01:45:39 | 2020-04-05T18:02:53 | PDDL | UTF-8 | Python | false | false | 2,822 | py | domains = [
{'description': 'The Tidybot domain models a household cleaning task, in which one or more robots must pick up a set of objects and put them into goal locations. The world is structured as a 2d grid, divided into navigable locations and surfaces on which objects may lie. Robots have a gripper, which moves r... | [
"christian.muise@gmail.com"
] | christian.muise@gmail.com |
9704f2152ae475830dc15c917f3fe61bda494b73 | 55ceefc747e19cdf853e329dba06723a44a42623 | /_CodeTopics/LeetCode/201-400/000387/000387.py | f9281d3ccb22db12c9f847e92d1c3e8f262be557 | [] | no_license | BIAOXYZ/variousCodes | 6c04f3e257dbf87cbe73c98c72aaa384fc033690 | ee59b82125f100970c842d5e1245287c484d6649 | refs/heads/master | 2023-09-04T10:01:31.998311 | 2023-08-26T19:44:39 | 2023-08-26T19:44:39 | 152,967,312 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | class Solution(object):
def firstUniqChar(self, s):
"""
:type s: str
:rtype: int
"""
def str_to_dict(s):
dic = {}
for ch in s:
if ch in dic:
dic[ch] += 1
else:
dic[ch] = 1
... | [
"noreply@github.com"
] | BIAOXYZ.noreply@github.com |
eb6724585a47c16c7058930111a03405d5276fc7 | 69439004c494c2d56018468d3fec8c9e56036fc8 | /tests/zeus/utils/test_auth.py | 5c2197a339a137df799456193c58afdd897db536 | [
"Apache-2.0"
] | permissive | buchiputaobutuputaopi/zeus-1 | 6dbc54e65c925040b1c1e01683625cea49299b4e | 8a606642d9ef8f239df2e8d7079ea4d130d78cb3 | refs/heads/master | 2021-06-25T07:26:52.278251 | 2017-09-06T03:53:04 | 2017-09-06T03:53:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from zeus import auth
def test_login_user(client, default_user):
with client.session_transaction() as session:
auth.login_user(default_user.id, session=session)
assert session['uid'] == default_user.id
assert session['expire']
| [
"dcramer@gmail.com"
] | dcramer@gmail.com |
05a469cc480e500bf829d0d976976b2b96478216 | 2d4af29250dca8c72b74e190e74d92f1467120a0 | /TaobaoSdk/Response/SimbaAdgroupOnlineitemsGetResponse.py | f660d7d21eb7fabf204fd071e5a8506e12f10f55 | [] | no_license | maimiaolmc/TaobaoOpenPythonSDK | 2c671be93c40cf487c0d7d644479ba7e1043004c | d349aa8ed6229ce6d76a09f279a0896a0f8075b3 | refs/heads/master | 2020-04-06T03:52:46.585927 | 2014-06-09T08:58:27 | 2014-06-09T08:58:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,175 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief ่ทๅ็จๆทไธๆถๅจ็บฟ้ๅฎ็ๅ
จ้จๅฎ่ด
# @author wuliang@maimiaotech.com
# @date 2013-03-07 19:54:48
# @version: 0.0.0
from datetime import datetime
import os
import sys
import time
_jsonEnode = None
try:
import demjson
_jsonEnode = demjson.en... | [
"liyangmin@maimiaotech.com"
] | liyangmin@maimiaotech.com |
7b0209b5129a33a20957245a3ed25f1bda5ed1ce | e6d556d97081576da6469cf1e8c1dd14565db2da | /code/tkinter/icons.py | 32bdcc5c4a086dae60cb06cb946bb8bd9480cc34 | [] | no_license | Scotth72/codePractice | 0b7c795050d08a34dff2b99507b20094d233739a | 475482fab0d69f93d936dc1ba8c2511174089b7c | refs/heads/master | 2023-01-19T02:58:40.977634 | 2020-11-26T15:55:47 | 2020-11-26T15:55:47 | 313,863,106 | 0 | 0 | null | 2020-11-26T15:55:48 | 2020-11-18T08:00:39 | Python | UTF-8 | Python | false | false | 234 | py | from tkinter import *
from PIL import ImageTk, Image
root = Tk()
root.title("Learn to use Icons")
root.iconbitmap('../icons/mando.png')
btn_quit = Button(root, text="Exit Program", command=root.quit)
btn_quit.pack()
root.mainloop() | [
"you@example.com"
] | you@example.com |
96b9713d9cbdcfaf580b86638d5ce9c0f08f5285 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/GluGluToHToTauTau_M-100_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7C-v1/AODSIM/PAT_CMG_V5_16_0_1377467448/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_4/run_cfg.py | d8c7fb4def9e957dabac9d51c5ec12ae8fa44d92 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/GluGluToHToTauTau_M-100_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7C-v1/AODSIM/PAT_CMG_V5_16_0_1377467448/HTT_24Jul_newTES_manzoni_Up_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
1b2603db33a6d30fc510ef9b6fd941c16bf4721d | c4750ec6eeda0092e3a5515d4878cfe42e117e90 | /test/test_inference/test_compiled.py | d863528604a3ebdc39f003c9c320c12eab01a952 | [
"MIT"
] | permissive | phgn0/jedi | 6e5e83778fe699d9735ab52a46ee94dec2a8be99 | eb9af151ea0f447ab9d5d00d14e8fee542bc09d1 | refs/heads/master | 2020-09-02T23:38:36.442447 | 2019-11-10T14:03:49 | 2019-11-10T14:03:49 | 219,332,443 | 1 | 0 | NOASSERTION | 2019-11-03T16:42:27 | 2019-11-03T16:42:26 | null | UTF-8 | Python | false | false | 5,139 | py | from textwrap import dedent
import math
import sys
from collections import Counter
from datetime import datetime
import pytest
from jedi.inference import compiled
from jedi.inference.compiled.access import DirectObjectAccess
from jedi.inference.gradual.conversion import _stub_to_python_value_set
def test_simple(inf... | [
"davidhalter88@gmail.com"
] | davidhalter88@gmail.com |
6429ff3a5cdd451090741ad95d4eb7c834662443 | 7ae0f100b49763f79b276260bbc0e87bd904da3e | /src/wdf/management/commands/prepare_dump.py | e65ea353701bb3108f1a5dec39c80cfd359756f9 | [] | no_license | wondersell/wildsearch-indexer | d88a5b3bce17acc1cb61d365f55ab5d9f63f61ae | 67d5f29f6d405c055cfa211ddf0b70521382a671 | refs/heads/master | 2023-07-19T00:33:34.371231 | 2020-12-31T11:20:00 | 2020-12-31T11:20:00 | 285,488,583 | 2 | 0 | null | 2021-07-19T06:26:44 | 2020-08-06T06:09:51 | Python | UTF-8 | Python | false | false | 1,339 | py | import logging
from django.core.management.base import BaseCommand
from wdf.exceptions import DumpStateError
from wdf.indexer import Indexer
from wdf.tasks import prepare_dump
class Command(BaseCommand):
help = 'Prepares job for importing' # noqa: VNE003
def add_arguments(self, parser):
parser.add_... | [
"artem.kiselev@gmail.com"
] | artem.kiselev@gmail.com |
c4e8dbc6684184e78245deb69b8a5f098817f5d9 | f6f632bee57875e76e1a2aa713fdbe9f25e18d66 | /python/CrackingTheCodingInterview_6/01_08_zero-matrix-lcci.py | 064080aa330c0cdb7f50aa9177f2c29ebc6ce08e | [] | no_license | Wang-Yann/LeetCodeMe | b50ee60beeeb3661869bb948bef4fbe21fc6d904 | 44765a7d89423b7ec2c159f70b1a6f6e446523c2 | refs/heads/master | 2023-08-07T05:31:23.428240 | 2021-09-30T15:33:53 | 2021-09-30T15:33:53 | 253,497,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : Rock Wayne
# @Created : 2020-07-12 00:02:47
# @Last Modified : 2020-07-12 00:02:47
# @Mail : lostlorder@gmail.com
# @Version : 1.0.0
"""
# ็ผๅไธ็ง็ฎๆณ๏ผ่ฅM ร N็ฉ้ตไธญๆไธชๅ
็ด ไธบ0๏ผๅๅฐๅ
ถๆๅจ็่กไธๅๆธ
้ถใ
#
#
#
# ็คบไพ 1๏ผ
#
# ่พๅ
ฅ๏ผ
# [
# [1,1,1],
# [1,0,... | [
"wzy-511@163.com"
] | wzy-511@163.com |
0c9f915ad0956041421ba3152c8f1d36b03896a0 | b0a64cf2d36c7da2c81f920cab6f67e8a8e5b2d4 | /models/VGG_mini_BN_PReLU.py | c0390f9195d03450ae354830944220579419c08a | [] | no_license | OminiaVincit/chainer-cifar10 | 69407a114e35b9100af56142092ee9e14577a423 | 449c55f205ea5fd59313598af0f27feb51b18da4 | refs/heads/master | 2021-01-19T06:31:02.379472 | 2015-07-15T20:29:14 | 2015-07-15T20:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from chainer import Variable, FunctionSet
import chainer.functions as F
class VGG_mini_BN_PReLU(FunctionSet):
"""
VGGnet for CIFAR-10
"""
def __init__(self):
super(VGG_mini_BN_PReLU, self).__init__(
conv1_1=F.Convolution2D(3, 64, 3... | [
"shunta.saito@gmail.com"
] | shunta.saito@gmail.com |
d1e8d70b961b1be945693a91169e369f2646ef5b | ac216a2cc36f91625e440247986ead2cd8cce350 | /appengine/findit/pipelines/test/send_notification_for_culprit_pipeline_test.py | 511524ebf3afcb0224df7cc05d4923d14340ae07 | [
"BSD-3-Clause"
] | permissive | xinghun61/infra | b77cdc566d9a63c5d97f9e30e8d589982b1678ab | b5d4783f99461438ca9e6a477535617fadab6ba3 | refs/heads/master | 2023-01-12T21:36:49.360274 | 2019-10-01T18:09:22 | 2019-10-01T18:09:22 | 212,168,656 | 2 | 1 | BSD-3-Clause | 2023-01-07T10:18:03 | 2019-10-01T18:22:44 | Python | UTF-8 | Python | false | false | 1,037 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import mock
from common.waterfall import failure_type
from pipelines.send_notification_for_culprit_pipeline import (
SendNotificationForCulpritPipeline)... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
ee28104231e39d74f9252de0420dfa501e38557a | 6efacaed48c9c2015b20baae5b1e7812cf2614a0 | /Po/test/Abackground_mouse_one.py | 533335d6d971031ab7fe5f3398b20fcedabe8681 | [] | no_license | Felixshao/play | 53e12b7b592634a3e5515addde978e1b2a2a4591 | 4364cb91141bbbca835688d19bddb87aa0beb6b4 | refs/heads/master | 2021-05-23T19:49:56.095083 | 2020-04-07T06:09:10 | 2020-04-07T06:09:10 | 253,441,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | import pygame, os
from pygame.locals import *
from sys import exit
from config.GetProjectPath import get_project_path
path = get_project_path()
background_img_filepath = os.path.join(path, 'img', 'sushiplate.jpg')
mouse_img_filepath = os.path.join(path, 'img', 'fugu.png')
# ๅๅงๅpygame๏ผๆช็กฌไปถๅๅๅค
pygame.init()
# ๆฐๅปบ็ชๅฃ, ไผ ๅ
ฅๅ... | [
"shaoyufei1234@163.com"
] | shaoyufei1234@163.com |
b5ddb5c8af232999eb8ae226c25d305066c76157 | fddc2ed5301b00f668bcb772518e0348db459538 | /convokit/communityEmbedder.py | 143d36c2f5b9fefe78dddccf919d797401191a38 | [
"MIT"
] | permissive | deepthimhegde/Cornell-Conversational-Analysis-Toolkit | 289fd22a81d9d06c7aeb5270c11acc4ec40424bf | eb9a103f8d5e34d378b0b6d6bda3fa43587363a1 | refs/heads/master | 2020-05-29T11:16:01.765154 | 2019-05-17T18:29:27 | 2019-05-17T18:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,889 | py | import numpy as np
from sklearn.decomposition import TruncatedSVD
from sklearn.manifold import TSNE
from collections import defaultdict
from .transformer import Transformer
class CommunityEmbedder(Transformer):
"""
Must be run after threadEmbedder.fit_transform()
Groups threads together into communities... | [
"calebchiam@gmail.com"
] | calebchiam@gmail.com |
765478bbc01b00211d961da6d0bd4bdab237f828 | 208baab269ddffab1a93e7dc70b052d07bf50560 | /hood/migrations/0002_auto_20200120_1140.py | a6e6fe56c70f1ee382edb53a3eebe174b83a3671 | [] | no_license | marysinaida/Neighborhood | a1035f09515ae9a24bed74ddf1263e06db134c94 | a285df5528bb99d6cb69f9ab41e320682422fe9d | refs/heads/master | 2020-12-13T23:29:18.148498 | 2020-01-21T15:04:53 | 2020-01-21T15:04:53 | 234,562,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,691 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2020-01-20 08:40
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependenc... | [
"marydorcassinaida54@gmail.com"
] | marydorcassinaida54@gmail.com |
d33535490a49ccc63731773d42cd5a17f661d234 | a2948d87a8f1901c6faf922f7b8cfba825f84d9b | /resources.py | c5484e2f0cc861b20e66986f69bf1105fbfacb38 | [] | no_license | sourcery-ai-bot/4x2d | 03360fdcd5cfb135acbe0dfbdf571fb1e4d98a5a | 68a5daf2410ae6ffe1220bb7ce85b95647097157 | refs/heads/main | 2023-03-11T10:38:01.353467 | 2021-02-28T06:57:06 | 2021-02-28T06:57:06 | 344,102,678 | 0 | 0 | null | 2021-03-03T11:25:28 | 2021-03-03T11:25:27 | null | UTF-8 | Python | false | false | 412 | py | import os
import sys
def resource_path(relative_path): # needed for bundling
""" Get absolute path to resource, works for dev and for PyInstaller """
base_path = getattr(sys, '_MEIPASS', o... | [
"morganquirk@gmail.com"
] | morganquirk@gmail.com |
48d6e9a8f1cd30cb302f9c81eb5ca4370302e805 | c190538d85c00e03bf655af83629a5bddfd6d797 | /src/dcos_e2e_cli/dcos_vagrant/commands/install_dcos.py | 111fd161ceac49b9b4021c8e8b78de2ff50e1e44 | [
"Apache-2.0"
] | permissive | yankcrime/dcos-e2e | e8d52aa10ecfba029c28b269354fea9fe0f85f7b | 449ca9ebc98399efc00e424d9131d2634de0471c | refs/heads/master | 2020-05-30T00:00:07.725954 | 2019-05-30T15:57:37 | 2019-05-30T15:57:37 | 189,449,013 | 0 | 0 | Apache-2.0 | 2019-05-30T16:42:28 | 2019-05-30T16:42:28 | null | UTF-8 | Python | false | false | 2,927 | py | """
Install DC/OS on a provisioned Vagrant cluster.
"""
from pathlib import Path
from typing import Any, Dict, Optional
import click
from dcos_e2e.backends import Vagrant
from dcos_e2e_cli.common.arguments import installer_argument
from dcos_e2e_cli.common.create import get_config
from dcos_e2e_cli.common.doctor imp... | [
"adamdangoor@gmail.com"
] | adamdangoor@gmail.com |
52425699c2b0f3f4f3701d850f4388930fbaf38d | 62babb33b9bede95aac217db04636956279bb2e2 | /sort/topological sort/1385E Directing Edges.py | 269591b4f10d040c69bde6a7be642cc5a8b56613 | [] | no_license | tycyd/codeforces | 0322e31daf18544944c769fd2a50c6d006015e34 | e0773f069c6c5793f9d9a07b61878a589e375a5f | refs/heads/master | 2023-08-12T05:00:39.467404 | 2021-09-30T16:39:21 | 2021-09-30T16:39:21 | 266,847,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | from sys import stdin, stdout
if __name__ == '__main__':
def directing_edges(n, m, ind, dic, seq):
q = []
res = []
for i in range(n):
if ind[i] == 0:
q.append(i)
#while len(q) > 0:
while q:
#cnt = len(q)
#for i in range... | [
"tycyd@hotmail.com"
] | tycyd@hotmail.com |
51488b6af889fd61bcc3bde0f432eebce76ef284 | fb84e82ab80f2af43d3cdcf9a6c0351228d0f682 | /validate.py | e93c4b1bb4adf2936a69d41ba81724c3c0b0e580 | [] | no_license | doctorwk007/semseg | bf1ea79e8e5f9a0084de98e0bd588a2c46af30b0 | 39f7e642014a1e8e21a84d0ff1e0057469b5d8e4 | refs/heads/master | 2020-04-12T01:10:35.164155 | 2018-12-15T03:03:27 | 2018-12-15T03:03:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,095 | py | # -*- coding: utf-8 -*-
import torch
import os
import argparse
import cv2
import time
import numpy as np
import visdom
from torch.autograd import Variable
from scipy import misc
from semseg.dataloader.camvid_loader import camvidLoader
from semseg.dataloader.cityscapes_loader import cityscapesLoader
from semseg.datalo... | [
"guanfuchen@zju.edu.cn"
] | guanfuchen@zju.edu.cn |
68ac0eeb5d55a38888952d35a6cd32b67c9bde23 | d7b4e2e391e1f15fd7cb4fbf4d9aee598131b007 | /AE_Datasets/R_A/datasets/CWRUCWT.py | 66ff726731086772786eee97b0378a32b4c39b8e | [
"MIT"
] | permissive | wuyou33/DL-based-Intelligent-Diagnosis-Benchmark | eba2ce6f948b5abe68069e749f64501a32e1d7ca | e534f925cf454d07352f7ef82d75a8d6dac5355c | refs/heads/master | 2021-01-02T15:06:29.041349 | 2019-12-28T21:47:21 | 2019-12-28T21:47:21 | 239,673,952 | 1 | 0 | MIT | 2020-02-11T04:15:21 | 2020-02-11T04:15:20 | null | UTF-8 | Python | false | false | 5,887 | py | import os
import numpy as np
import pandas as pd
from scipy.io import loadmat
from sklearn.model_selection import train_test_split
from datasets.MatrixDatasets import dataset
from datasets.matrix_aug import *
from tqdm import tqdm
import pickle
import pywt
signal_size=100
datasetname = ["12k Drive En... | [
"646032073@qq.com"
] | 646032073@qq.com |
669a113c17fd1fe1e8f0256f0d625bbbc78a9be4 | 46404c77e04907225475e9d8be6e0fd33227c0b1 | /wildcard pattern matching.py | 0ed16783c406fd5ec5eaf2858e1c35ca373e0e95 | [] | no_license | govardhananprabhu/DS-task- | 84b46e275406fde2d56c301fd1b425b256b29064 | bf54f3d527f52f61fefc241f955072f5ed9a6558 | refs/heads/master | 2023-01-16T07:41:27.064836 | 2020-11-27T11:52:50 | 2020-11-27T11:52:50 | 272,928,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | """
Given two strings 'str' and a wildcard pattern 'pattern' of length N and M respectively, You have to print '1' if the wildcard pattern is matched with str else print '0' .
The wildcard pattern can include the characters โ?โ and โ*โ
โ?โ โ matches any single character
โ*โ โ Matches any sequence of characters (... | [
"noreply@github.com"
] | govardhananprabhu.noreply@github.com |
2ea59d15a88cd4a3cfba74fb74162da032c006d3 | d613fecbe4845ed4a0f1d667439640ed10c8922a | /app1/views/ajax.py | e9581d351b9923bc2a953751021d2bda01cc0396 | [] | no_license | AnyiYim/DjangoTeacherManagerDemo | e18bdb312237e39da00f62006e9e7a98d817d08c | eecfaac3bd5badfb3ac1aed5b2e3f034e505e26e | refs/heads/master | 2021-04-27T00:23:38.853148 | 2018-03-04T16:08:46 | 2018-03-04T16:08:46 | 123,805,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | from django.shortcuts import render, redirect, HttpResponse
from app1 import models
def ajax1(request):
return render(request, 'ajax1.html')
def ajax2(request):
u = request.GET.get('username')
p = request.GET.get('password')
return HttpResponse('ๆๆฟๆ')
def ajax4(request):
nid=request.GET.get('n... | [
"759502117@qq.com"
] | 759502117@qq.com |
3f84b9dcb1f883353278b6f06f472d8d32a06e47 | 1521332438d4e711b6fa4af825047a3466925511 | /WorkshopWeek8/problem5.py | 1925e67c31009097d9b36fdcb1b950cb256b497e | [] | no_license | JakeAttard/Python-2807ICT-NoteBook | df0907bdca9ff10f347498233260c97f41ea783b | 9a38035d467e569b3fb97f5ab114753efc32cecc | refs/heads/master | 2020-04-26T17:33:18.184447 | 2019-11-05T13:04:56 | 2019-11-05T13:04:56 | 173,717,675 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | def function(list, diff):
counter = 1
for a in list[::2]:
for b in list[1::2]:
if int(b) - int(a) == diff:
counter += 1
elif int(b) - int(a) == -1 * diff:
counter += 1
else:
break
return counter
def testString(a):
... | [
"jakeattard18@gmail.com"
] | jakeattard18@gmail.com |
a7f24ef184928de29cb7077c5a33eb6c01eae3b5 | d8422247ecbe450c75df45dcf2c92fb4438b65af | /horizon/openstack_dashboard/dashboards/admin/instances/forms.py | 9d2bf6d665256ffd420ae81e10ff16ed18c8cfd8 | [
"Apache-2.0"
] | permissive | yianjiajia/openstack_horizon | deb9beca534b494b587ae401904c84ddbed64c4a | 9e36a4c3648ef29d0df6912d990465f51d6124a6 | refs/heads/master | 2016-09-12T21:34:25.718377 | 2016-04-28T05:29:56 | 2016-04-28T05:29:56 | 57,273,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | # Copyright 2013 Kylin OS, Inc
#
# 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 agre... | [
"yanjj@syscloud.cn"
] | yanjj@syscloud.cn |
d893d6bda716d9a47904627e4d218b88be59669f | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/pytorch_pytorch/pytorch-master/test/test_sparse.py | 11b51eaf3f1f94a07eaf3d721684547d9a17be77 | [] | 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 | 6,617 | py | import torch
from torch import sparse
import itertools
import random
import unittest
from common import TestCase, run_tests
from numbers import Number
SparseTensor = sparse.DoubleTensor
class TestSparse(TestCase):
@staticmethod
def _gen_sparse(d, nnz, with_size):
v = torch.randn(nnz)
if isi... | [
"659338505@qq.com"
] | 659338505@qq.com |
d7ef8890a6ce56916383b518e78a04c723e683ff | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/BprimeBprime/BprimeBprimeToBHBZinc_M_950_TuneZ2star_8TeV-madgraph_cff.py | 425c01667e5ad92ae0b9a16636c284b2b8579120 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 6,054 | py | import FWCore.ParameterSet.Config as cms
#from Configuration.Generator.PythiaUEZ2Settings_cfi import *
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6HadronizerFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0)... | [
"sha1-5c9a4926c1ea08b633689ec734e2440da58b8c56@cern.ch"
] | sha1-5c9a4926c1ea08b633689ec734e2440da58b8c56@cern.ch |
035f2485d9238b11a68df3adc4d304e7add9874d | 2687412dd10032667e50e74d9d3f832133bc2536 | /code/disasters/reload_landslide_data.py | 9963d89459014edca49ca7efbc21837e02e92c30 | [
"MIT"
] | permissive | wfp-ose/sparc2-pipeline | 644e040c27517889c84598c34397c06f3d82ca96 | fdd3bd29426d9231956f449cb5e78afd33446a8a | refs/heads/master | 2021-01-17T18:07:58.641768 | 2016-12-02T12:40:54 | 2016-12-02T12:40:54 | 57,199,382 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | from geodash.enumerations import MONTHS_SHORT3
from geodash.data import GeoDashDatabaseConnection
print "Inserting Landslide Data..."
print "..."
print ""
prob_classes = [
{'input': 'low', 'output_text': 'low', "output_int": 1},
{'input': 'medium', 'output_text': 'medium', "output_int": 2},
{'input': 'high', '... | [
"pjdufour.dev@gmail.com"
] | pjdufour.dev@gmail.com |
19d2071c90dfbf39c31669b82ef26d4c0d376a89 | 4edd89e807ac9a70d4fb4a258015e6889b01ff27 | /md5decoder.py | f0610781b1f9b91c3f091c3120739488857dd15c | [] | no_license | karimmakynch/PYTHON | ca68576fb3079fdd56559959edb3b4e1ba8ccf04 | 4842269368d49a3954c39ce4e8f2a0bc03b2e99c | refs/heads/main | 2023-03-15T21:16:38.610893 | 2021-02-26T05:42:26 | 2021-02-26T05:42:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,191 | py | # -*- coding: utf-8 -*-
import hashlib
import sys
#variables
count = 0
tour = 0
tourclone = 0
tourx = 0
creds = ''
part = 1
inputfilelines = 0
try:
try:
inputfile = sys.argv[1]
dicfile = sys.argv[2]
outputfile = sys.argv[3]
fout = open(outputfile,'w')
fouttx = '[+] inputfile: '+str(inputfile)+' Dict... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
dfa52f8f4a5c08260ca6f9c4014300383b6ab5f7 | dd9571236f35807e130bb987b4f1f5f0b2676efb | /users/admin_user_api.py | 41fce13a4ea094ff16f8ec70ab22cde148d74c67 | [] | no_license | sekhorroy/bysterdjango | 58337e6ac1191ae945fcbd2ec1c47229e598a570 | fd016bcc3414875cd874a3c69733722815a84e05 | refs/heads/master | 2022-12-13T12:49:04.802319 | 2020-09-06T06:28:50 | 2020-09-06T06:28:50 | 292,861,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | from rest_framework.exceptions import ValidationError
from rest_framework.generics import CreateAPIView, RetrieveUpdateDestroyAPIView, ListAPIView
from rest_framework.permissions import AllowAny
from rest_framework import status
from rest_framework.response import Response
from rest_framework_jwt.authentication import ... | [
"apple@Apples-MacBook-Pro.local"
] | apple@Apples-MacBook-Pro.local |
1a7ee7ad25d703905a1b326105e18c566f03cf65 | d7cd51a7aaa9bd5a7c39409a39d1be1944ecb9c4 | /Assignments/Python_Stack/Django/Django_ORM/users_template/users_template/wsgi.py | 5725974a941c17bdca19fd76e2fc66d918edd371 | [] | no_license | Geneveroth/Coding_Dojo_Assignments | ae525e6d95e0f3fcf10b44a6734e8996b53ec7e1 | 9643845e237d5029de03dfe1ae2d43a49350ba22 | refs/heads/master | 2022-12-23T18:46:08.971696 | 2020-07-21T20:44:17 | 2020-07-21T20:44:17 | 251,153,510 | 0 | 0 | null | 2021-01-06T03:08:14 | 2020-03-29T23:10:09 | Python | UTF-8 | Python | false | false | 405 | py | """
WSGI config for users_template 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"black.samlh@gmail.com"
] | black.samlh@gmail.com |
f5ba807cf4377fe11e6a9eac40676eed893527a6 | fe1349a9bd25586f830f2a44618a4012ea20184a | /stanford_tf_research/01_plot_histogram_random.py | 838a63c687196773d418188816a03661ad3095dc | [] | no_license | EmbraceLife/LIE | cdca29b8308f2cd7740743cea379a72d7bde51db | 8c30b6aabc5842092c18dd97a0c20aa19f62000f | refs/heads/master | 2022-12-04T05:56:37.393552 | 2017-08-16T04:54:55 | 2017-08-16T04:54:55 | 87,597,172 | 4 | 3 | null | 2022-11-26T15:26:45 | 2017-04-08T00:39:27 | Python | UTF-8 | Python | false | false | 1,477 | py | """
=========================================================
Demo of the histogram (hist) function with a few features
=========================================================
In addition to the basic histogram, this demo shows a few optional
features:
* Setting the number of data bins
* The ``normed`` flag... | [
"1227561934@qq.com"
] | 1227561934@qq.com |
a2afcdbb25e5d5358991ecaf4ea9ef99624a88ba | 912021bc754e9b6f62efaf0d69e4179dda376d62 | /splatify/spopulate.py | 5d26f2fcf6d4c130bc7636eab1a4cff76fea7336 | [] | no_license | micnem/splatify | 5439cfb21ada1b194cea3f17661b9e02dd60d403 | 792e3be4bd9bcc2c34ace6dd0aea3acf512b8829 | refs/heads/master | 2023-07-22T02:39:34.123446 | 2023-02-18T21:55:37 | 2023-02-18T21:55:37 | 123,298,090 | 2 | 1 | null | 2023-07-15T00:54:42 | 2018-02-28T14:42:28 | Python | UTF-8 | Python | false | false | 7,334 | py | from django.shortcuts import render, redirect
import spotipy
from spotipy.oauth2 import SpotifyOAuth
from requests import Request, post
from .models import Artist, TopArtist, RelatedArtist, Profile
from django.utils import timezone
from datetime import timedelta
import requests as r
import json
import base64
from spla... | [
"michael.nemni@gmail.com"
] | michael.nemni@gmail.com |
04d6541daf0a5a782f444e495432b9f0bc9d80a1 | fcaa0395a7c6aa74cbc47c40f35fdc312e44b9c5 | /aok/comparisons/_basics.py | 30b87c970c9d3869bf7cb89261e8ca2a4506b453 | [] | no_license | rocketboosters/a-ok | b6f1a70d262123c2df5e4969a687cbcfdfbafc8c | 06f31404a4ce34d561253ba74b533ce3fb73c60c | refs/heads/main | 2023-09-02T19:18:18.158296 | 2021-11-03T01:54:36 | 2021-11-03T01:54:36 | 388,142,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,951 | py | import typing
import yaml
from aok import _definitions
from aok import _operations
class Equals(_definitions.Comparator):
"""Compares two values as an equality."""
def _compare(
self,
observed: typing.Any,
subset: bool = False,
) -> typing.Union[_definitions.Comparison, bool]:
... | [
"swernst@gmail.com"
] | swernst@gmail.com |
648e5ca36c4d9b01db5a8637ad045c23b07bf7f6 | 80aabbd44790ec4feee93624f61c29e87d691d6a | /drawBot/ui/drawView.py | 24fac94c74d4a3c9c44d2a34358e011c780327b5 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | asaumierdemers/drawbot | 546961ead63f71859725a87f190f7ebbd45995f2 | 9ba1ef902bdd5c8e291d5d6835e09f05bfa00261 | refs/heads/master | 2020-12-25T19:59:00.391766 | 2016-08-05T10:04:57 | 2016-08-05T10:04:57 | 29,844,501 | 0 | 0 | null | 2015-01-26T04:12:30 | 2015-01-26T04:12:30 | null | UTF-8 | Python | false | false | 2,955 | py | from AppKit import *
from Quartz import PDFView, PDFThumbnailView, PDFDocument
from vanilla import Group
epsPasteBoardType = "CorePasteboardFlavorType 0x41494342"
class DrawBotPDFThumbnailView(PDFThumbnailView):
def draggingUpdated_(self, draggingInfo):
return NSDragOperationNone
class ThumbnailView(... | [
"frederik@typemytype.com"
] | frederik@typemytype.com |
4ed7b0073e5f3f21e7883ee46de2d41af70f1429 | b00840e56173dc2a196442bd354b9e3cc13b17df | /code_util/createJobScript.py | c360a93fc09e90dace29b76e6b66c43797d94224 | [] | no_license | Sportsfan77777/vortex | 56c28fb760f6c98de4a7c8fdcf1168d78b4e57af | 780ec14937d1b79e91a367d58f75adc905b8eef2 | refs/heads/master | 2023-08-31T02:50:09.454230 | 2023-08-24T10:55:05 | 2023-08-24T10:55:05 | 41,785,163 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,804 | py | """
makes a new job script
"""
import argparse
def new_argument_parser(description = "Make a new job script."):
parser = argparse.ArgumentParser()
# File
parser.add_argument("fn",
help = 'job file name (.sh appended to the end) that must be included, error otherwise')
# Ba... | [
"mhammer44444@gmail.com"
] | mhammer44444@gmail.com |
d3be12214002bf0e8ed2b4e329795a1e62b70612 | b2f755bdb8c5a73cf28679b14de1a7100cd48b35 | /Interview/4/31.py | 398dfb0ecf5c8643733ea6c6524bdb8f8ed60db3 | [] | no_license | Futureword123456/Interview | cc50e1a3e4e85e4ac570469fc8a839029cdc6c50 | 5cb36dc5f2459abd889e1b29f469d5149139dc5f | refs/heads/master | 2023-03-25T15:24:23.939871 | 2021-03-13T08:15:54 | 2021-03-13T08:15:54 | 345,374,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # -*- coding: utf-8 -*-
# @Time : 2021/3/8 0008
# @Author : yang
# @Email : 2635681517@qq.com
# @File : 31.py
"""Python ่ทๅๆจๅคฉๆฅๆ"""
import datetime
def getyesterday():
days = datetime.date.today()
"""
datetime.timedeltaๅฏน่ฑกไปฃ่กจไธคไธชๆถ้ดไน้ด็ๆถ้ดๅทฎ
ไธคไธชdateๆdatetimeๅฏน่ฑก็ธๅๅฐฑๅฏไปฅ่ฟๅไธไธชtimedeltaๅฏน่ฑกใ
"""
day = datetime.time... | [
"2635681517@qq.com"
] | 2635681517@qq.com |
4238d3e59229db3f82e82deeaea7ce90768f81e6 | 036a41c913b3a4e7ae265e22a672dd89302d3200 | /ๆชๅฎๆ้ข็ฎ/LCP/LCP25/LCP25_Python_1.py | dafd8c2c8eabcccd19a5f5df0444b87409140e43 | [] | no_license | ChangxingJiang/LeetCode | e76f96ebda68d7ade53575354479cfc33ad4f627 | a2209206cdd7229dd33e416f611e71a984a8dd9e | refs/heads/master | 2023-04-13T15:23:35.174390 | 2021-04-24T05:54:14 | 2021-04-24T05:54:14 | 272,088,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | class Solution:
def keyboard(self, k: int, n: int) -> int:
pass
if __name__ == "__main__":
print(Solution().keyboard(1, 1)) # 26
print(Solution().keyboard(1, 2)) # 650
| [
"1278729001@qq.com"
] | 1278729001@qq.com |
aac36e5e97effc021d51bddce00836cf86108ad9 | e1fe1ed4f2ba8ab0146ce7c08d65bc7947150fc8 | /credit11315/pipelines.py | 6e80a0ff0684dd2011f6c21e58ced8a6f581ef7f | [] | no_license | yidun55/credit11315 | 0d88ceef314efa444de58eb5da8939c1acff3abe | b048ec9db036a382287d5faacb9490ccbf50735c | refs/heads/master | 2021-01-20T01:03:30.617914 | 2015-07-31T09:58:24 | 2015-07-31T09:58:24 | 38,853,611 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy import log
import os
os.chdir("/home/dyh/data/credit11315/infoDetail")
class Credit11315Pipeline(object):
def p... | [
"heshang1203@sina.com"
] | heshang1203@sina.com |
7f7be7515b49d2339d45739a3d6096151dc8de80 | 9381c0a73251768441dc45c7e181548742b9bdbc | /src/educative/fibonacci_numbers/house_thief_memo.py | dfe266791fa02380306c6208bd07804a7c2fbd97 | [] | no_license | Flaeros/leetcode | 45cc510ec513bfb26dbb762aa1bd98f3b42dce18 | 1dcea81a21bd39fee3e3f245a1418526bd0a5e8f | refs/heads/master | 2022-06-02T14:15:31.539238 | 2022-04-18T14:44:18 | 2022-04-18T14:49:05 | 250,183,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | def find_max_steal(wealth):
memo = [-1 for _ in range(len(wealth))]
return find_max_steal_rec(wealth, memo, 0)
def find_max_steal_rec(wealth, memo, index):
if index >= len(wealth):
return 0
if memo[index] == -1:
inclusive = wealth[index] + find_max_steal_rec(wealth, memo, index + 2)
... | [
"flaeross@yandex-team.ru"
] | flaeross@yandex-team.ru |
9ad86092e385a8f8238bb7bb27ac3740c79a39f7 | 1ecb282756c95d9ae19035761c6e4bb480fdaf26 | /python/lsst/ctrl/stats/records/generic.py | a07b96fbfc651a578c7b2e48c3f7924b5d26cf16 | [] | no_license | provingground-moe/ctrl_stats | 58cba09f95a30007fc5df10d6d8992719b0f5368 | 14790770765b3a167d0d9f318b40e12bbb5df0bb | refs/heads/master | 2020-06-10T20:42:34.260304 | 2017-08-24T21:26:34 | 2017-08-24T21:26:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | #
# LSST Data Management System
# Copyright 2008-2012 LSST Corporation.
#
# This product includes software developed by the
# LSST Project (http://www.lsst.org/).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free So... | [
"srp@ncsa.illinois.edu"
] | srp@ncsa.illinois.edu |
0ad73be05ea4a42a3b2118023282236427d3145d | 6a95112805b64322953429270a305d01fef3faea | /dist/weewx-4.3.0/examples/stats.py | 86a1e5c5b193afe5fb375e4eef30098d3dbc84b2 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"Apache-2.0"
] | permissive | tomdotorg/docker-weewx | c6d59dc492a9e53f3bc898f7b9f593717092d72c | 7085654f455d39b06acc688738fde27e1f78ad1e | refs/heads/main | 2023-06-08T17:57:44.184399 | 2023-01-30T11:21:23 | 2023-01-30T11:21:23 | 54,113,384 | 21 | 16 | Apache-2.0 | 2022-10-19T23:46:26 | 2016-03-17T11:39:29 | Dockerfile | UTF-8 | Python | false | false | 4,052 | py | # Copyright (c) 2009-2015 Tom Keffer <tkeffer@gmail.com>
# See the file LICENSE.txt for your rights.
"""Example of how to extend the search list used by the Cheetah generator.
*******************************************************************************
This search list extension offers two extra tags:
... | [
"tom@tom.org"
] | tom@tom.org |
8dd6db002b7cfee421083e2f1a14012671d69f19 | 3941f6b431ccb00ab75f19c52e40e5dad2e98b9b | /Dasymetric/dasym_tables.py | 41bc20d47b5ee4b9da2c2f6b66632d0c1d6ba20e | [
"Apache-2.0"
] | permissive | scw/global-threats-model | 70c375c1633e8578f1e41f278b443f1501ceb0ec | 11caa662373c5dbfbb08bb0947f3dd5eedc0b4e0 | refs/heads/master | 2016-09-05T11:25:13.056352 | 2013-08-22T22:10:13 | 2013-08-22T22:10:13 | 3,566,652 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,033 | py | # ---------------------------------------------------------------------------
# dasym_tables.py
# Created on: Wed Jan 11 2006
# Written by: Matthew Perry
# Usage: See the "script arguments" section
# ---------------------------------------------------------------------------
#==================================... | [
"perrygeo@gmail.com"
] | perrygeo@gmail.com |
5aae57fc607a70052c54ad09b04cbd25840d0f28 | 9fc6604ae98e1ae91c490e8201364fdee1b4222a | /eg_msg_base/models/msg_status.py | 4501bdc8b00a217bae754eaa0a5b5c32b395123c | [] | no_license | nabiforks/baytonia | b65e6a7e1c7f52a7243e82f5fbcc62ae4cbe93c4 | 58cb304d105bb7332f0a6ab685015f070988ba56 | refs/heads/main | 2023-03-23T21:02:57.862331 | 2021-01-04T03:40:58 | 2021-01-04T03:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from odoo import models, fields
class MsgStatus(models.Model):
_name = "msg.status"
name = fields.Char(string="Status", readonly=True)
is_last_status = fields.Boolean(string="Is Last Status")
sms_instance_id = fields.Many2one(comodel_name="sms.instance", string="Sms Instance", readonly=True)
| [
"ash@odoxsofthub.com"
] | ash@odoxsofthub.com |
3707942092f8a2717e1e159fd36fc8769e28c5ee | 5d22d9b2cb5cad7970c1055aeef55d2e2a5acb8e | /py/topcoder/TCCC 2003 Semifinals 2/TicSolver.py | a7805ff035c64217729de5ff4c0bd9d4ebc789e0 | [
"MIT"
] | permissive | shhuan/algorithms | 36d70f1ab23dab881bf1a15573fbca7b2a3f4235 | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | refs/heads/master | 2021-05-07T14:21:15.362588 | 2017-11-07T08:20:16 | 2017-11-07T08:20:16 | 109,799,698 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,968 | py | # -*- coding: utf-8 -*-
import math,string,itertools,fractions,heapq,collections,re,array,bisect
class TicSolver:
def whoWins(self, board):
return ""
# CUT begin
# TEST CODE FOR PYTHON {{{
import sys, time, math
def tc_equal(expected, received):
try:
_t = type(expected)
received = _t(... | [
"shuangquanhuang@gmail.com"
] | shuangquanhuang@gmail.com |
f095c17c392697ec5fb7da951dd4309508663a2f | c3d0a0b6336a3ff73724fe1615eb1809dbdaaed8 | /Hacker Rank/Day3_04_02_20.py | c7cd53f8193dae0cfdc503af27bf0d8b26745ef5 | [] | no_license | Silentsoul04/FTSP_2020 | db0dae6cd9c371f3daa9219f86520dfa66348236 | 7e603af918da2bcfe4949a4cf5a33107c837894f | refs/heads/master | 2022-12-21T20:44:32.031640 | 2020-09-20T12:29:58 | 2020-09-20T12:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 4 22:00:31 2020
@author: Rajesh
"""
def swap_case(s):
return s.swapcase()
if __name__ == '__main__':
s = input()
result = swap_case(s)
print(result)
#########################
a = "this is a string"
b = a.split(" ") # a is converted... | [
"sharma90126@gmail.com"
] | sharma90126@gmail.com |
175b341a56c39c15bc473eabefdea8436aba734f | 09d79c3509252cfccac35bb28de9a0379094823a | /alx/movies/migrations/0002_auto_20201123_1045.py | 1ac4f1ab4103dc7788ff628ea113fe1d93025510 | [] | no_license | marianwitkowski/python2311 | 73ad491016cd6d0010d0203db43aca2c6debe0ad | 9bbeca3fb6d8658a1321ab099ff2102cd7de76e0 | refs/heads/master | 2023-01-22T13:13:56.695680 | 2020-12-02T14:58:15 | 2020-12-02T14:58:15 | 315,350,865 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Generated by Django 3.1.3 on 2020-11-23 09:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('movies', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='movie',
options={'verbose_name': 'Film', 'ver... | [
"marian.witkowski@gmail.com"
] | marian.witkowski@gmail.com |
9252178bd560c85b23332610a4299b0ec0f71f57 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /q4bBcq5NET4CH5Rcb_16.py | 5f42fed2a73573979ea8acc56462e2f23301b0ed | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py |
def jay_and_bob(txt):
a={"half":"14 grams","quarter":"7 grams","eighth":"3.5 grams","sixteenth":"1.75 grams"}
return a[txt]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f0f7d898a452de3ce1b9a7940f8dcd61c38c6500 | 18f8abb90efece37949f5b5758c7752b1602fb12 | /py/django_tools/django-haystack/tests/simple_tests/tests/simple_backend.py | d9b5120d942eb0f05a4fcbd1769c58de0da181cd | [
"BSD-3-Clause",
"MIT"
] | permissive | marceltoben/evandrix.github.com | caa7d4c2ef84ba8c5a9a6ace2126e8fd6db1a516 | abc3fbfb34f791f84e9a9d4dc522966421778ab2 | refs/heads/master | 2021-08-02T06:18:12.953567 | 2011-08-23T16:49:33 | 2011-08-23T16:49:33 | 2,267,457 | 3 | 5 | null | 2021-07-28T11:39:25 | 2011-08-25T11:18:56 | C | UTF-8 | Python | false | false | 5,799 | py | from datetime import date
from django.conf import settings
from django.test import TestCase
from haystack import connections, connection_router
from haystack import indexes
from haystack.query import SearchQuerySet
from haystack.utils.loading import UnifiedIndex
from core.models import MockModel
from core.tests.mocks i... | [
"evandrix@gmail.com"
] | evandrix@gmail.com |
1031decef22a5f8e9fa6d0446887620f1a17bbd6 | cb95b3a2714f003e76c5e1db1d3e4726f87f14d8 | /pstests/launch_schevers.py | 50881808378a6bad2b948300e21df85af51ae09c | [
"Apache-2.0"
] | permissive | DMALab/Het | 5aaa9fda1b8c77c0db24a477fe1eccd9665a9fe0 | 81b7e9f0f593108db969fc46a1af3df74b825230 | refs/heads/main | 2023-03-30T13:22:03.085283 | 2021-04-04T05:31:43 | 2021-04-04T05:31:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | from athena import gpu_ops as ad
import os
import sys
import yaml
import multiprocessing
import signal
def main():
def start_scheduler(settings):
for key, value in settings.items():
os.environ[key] = str(value)
assert os.environ['DMLC_ROLE'] == "scheduler"
print('Scheduler sta... | [
"swordonline@foxmail.com"
] | swordonline@foxmail.com |
e538aa28b1bd9e8f0574539f2c5075b7eea00ec2 | ba962c2441572ba45ff97a97bb713eb8a603a269 | /lunchmap/models.py | 2c9b100ab61729344379c83188a3554f131dd623 | [] | no_license | melonpan777/my-first-blog | 8158104ba2b3c97a8e6350ac57aac77edf85be26 | 9ff5eee69523d8fbbbd004e566090ea715b043d5 | refs/heads/master | 2020-06-04T13:58:16.704685 | 2019-06-15T11:14:00 | 2019-06-15T11:14:00 | 192,051,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | from django.db import models
from django.urls import reverse
class Category(models.Model):
name = models.CharField(max_length=255)
author = models.ForeignKey(
'auth.User',
on_delete=models.CASCADE,
)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeFi... | [
"you@example.com"
] | you@example.com |
f6b131bbddadded5e915501ce5a719b1e74ce352 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/cloudformation/checks/resource/aws/APIGatewayXray.py | 79b7ec85c6b5ac40b0aaa6c2c422267e4a656db6 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 710 | py | from checkov.cloudformation.checks.resource.base_resource_value_check import BaseResourceValueCheck
from checkov.common.models.enums import CheckCategories
class APIGatewayXray(BaseResourceValueCheck):
def __init__(self):
name = "Ensure API Gateway has X-Ray Tracing enabled"
id = "CKV_AWS_73"
... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
fd9e1af03b971a1db1d6893bbd1eb4399fbcb3d6 | b6c09a1b87074d6e58884211ce24df8ec354da5c | /1720. ่งฃ็ ๅผๆๅ็ๆฐ็ป.py | 62dc31fa20f8ded1e4528d692e236b11be60047e | [] | no_license | fengxiaolong886/leetcode | a0ee12d67c4a10fb12d6ca4369762ab5b090cab1 | 4c0897bc06a297fa9225a0c46d8ec9217d876db8 | refs/heads/master | 2023-03-18T22:16:29.212016 | 2021-03-07T03:48:16 | 2021-03-07T03:48:16 | 339,604,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | """
ๆช็ฅ ๆดๆฐๆฐ็ป arr ็ฑ n ไธช้่ดๆดๆฐ็ปๆใ
็ป็ผ็ ๅๅไธบ้ฟๅบฆไธบ n - 1 ็ๅฆไธไธชๆดๆฐๆฐ็ป encoded ๏ผๅ
ถไธญ encoded[i] = arr[i] XOR arr[i + 1] ใไพๅฆ๏ผarr = [1,0,2,1] ็ป็ผ็ ๅๅพๅฐ encoded = [1,2,3] ใ
็ปไฝ ็ผ็ ๅ็ๆฐ็ป encoded ๅๅๆฐ็ป arr ็็ฌฌไธไธชๅ
็ด first๏ผarr[0]๏ผใ
่ฏท่งฃ็ ่ฟๅๅๆฐ็ป arr ใๅฏไปฅ่ฏๆ็ญๆกๅญๅจๅนถไธๆฏๅฏไธ็ใ
ย
็คบไพ 1๏ผ
่พๅ
ฅ๏ผencoded = [1,2,3], first = 1
่พๅบ๏ผ[1,0,2,1]
่งฃ้๏ผ่ฅ arr = [1,0,2,1] ๏ผ้ฃไน first = 1 ... | [
"xlfeng886@163.com"
] | xlfeng886@163.com |
47c3d8019181b00a4cc6f1e528455517694034d1 | 1662507ec7104531e4e54209fc32bfdf397b60cd | /backend/wallet/models.py | c0d4a9fbfaf096d0cda2c061ebe3a3c6041ebd63 | [] | no_license | crowdbotics-apps/home-trend-24478 | 4b2397fbefc9469e2d8f00240dff0b3fc3eaa368 | 850309d0bb282cf824f8b8d42ef8c6ab3c43bc1c | refs/heads/master | 2023-03-07T18:34:15.590576 | 2021-02-20T00:34:25 | 2021-02-20T00:34:25 | 338,431,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | from django.conf import settings
from django.db import models
class PaymentMethod(models.Model):
"Generated Model"
wallet = models.ForeignKey(
"wallet.CustomerWallet",
on_delete=models.CASCADE,
related_name="paymentmethod_wallet",
)
account_token = models.CharField(
max... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
bd40e87cf094c91dcb5d4c15d6fec0e2daf3068f | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/spaCy/2016/4/test_flag_features.py | 880704e28905500ee8aa5b21c6e60fc6e73fdc58 | [
"MIT"
] | permissive | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 1,333 | py | from __future__ import unicode_literals
import pytest
from spacy.orth import is_alpha
from spacy.orth import is_digit
from spacy.orth import is_punct
from spacy.orth import is_space
from spacy.orth import is_ascii
from spacy.orth import is_upper
from spacy.orth import is_lower
from spacy.orth import is_title
@pytest... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
24875a336f66ccd4c114ada3a3e42c2d603c2639 | e81d274d6a1bcabbe7771612edd43b42c0d48197 | /ๆฐๆฎๅบ/03_Redis/day48(ไธปไปๆๅกๅจ)/demo/02_pythonๆไฝredis/01.py | 9cef9a735360a75455cde6d390c9cebd36992a94 | [
"MIT"
] | permissive | ChWeiking/PythonTutorial | 1259dc04c843382f2323d69f6678b9431d0b56fd | 1aa4b81cf26fba2fa2570dd8e1228fef4fd6ee61 | refs/heads/master | 2020-05-15T00:50:10.583105 | 2016-07-30T16:03:45 | 2016-07-30T16:03:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | #ๆจ่็ฝ็ซ
#http://python.jobbole.com/87305/
import redis
#่ทๅ่ฟๆฅๅฏน่ฑก ๅฝๆไปฌ็จRedisๅStrictRedisๅๅปบ่ฟๆฅๆถ๏ผๅ
ถๅฎๅ
้จๅฎ็ฐๅนถๆฒกๆไธปๅจ็ปๆๅๅปบไธไธช่ฟๆฅ๏ผๆไปฌ่ทๅพ็่ฟๆฅๆฏ่ฟๆฅๆฑ ๆไพ็่ฟๆฅ๏ผ่ฟไธช่ฟๆฅ็ฑ่ฟๆฅๆฑ ็ฎก็๏ผๆไปฅๆไปฌๆ ้ๅ
ณๆณจ่ฟๆฅๆฏๅฆ้่ฆไธปๅจ้ๆพๅ
ณ้ญ็้ฎ้ขใๅฆๅค่ฟๆฅๆฑ ๆ่ชๅทฑ็ๅ
ณ้ญ่ฟๆฅ็ๆฅๅฃ๏ผไธๆฆ่ฐ็จ่ฏฅๆฅๅฃ๏ผๆๆ่ฟๆฅ้ฝๅฐ่ขซๅ
ณ้ญ๏ผ่ฟๆฅๆฑ ็ๆไฝไธ้่ฆ็จๅบๅ็ฎก็๏ผ็ณป็ปredisๆจกๅ่ชๅจ็ฎก็ๅฅฝไบใ
conn = redis.StrictRedis('127.0.0.1',6379,password=123456)
#ๅฆๆๆฏๅคไธชๅขๅ ๆน๏ผไฝฟ็จ็ฎก้ๅฏน่ฑก๏ผ้ป่ฎคๅ
ๅญๅจ็ฎก้ไธญ๏ผๅฝe... | [
"1025212779@qq.com"
] | 1025212779@qq.com |
794e2904caebb85aa81ccb41eaed66721843747f | 09301c71638abf45230192e62503f79a52e0bd80 | /besco_erp/besco_warehouse/general_stock_fifo/__openerp__.py | 7aa0010772448e6c5236add7f97c1eec77d47520 | [] | no_license | westlyou/NEDCOFFEE | 24ef8c46f74a129059622f126401366497ba72a6 | 4079ab7312428c0eb12015e543605eac0bd3976f | refs/heads/master | 2020-05-27T06:01:15.188827 | 2017-11-14T15:35:22 | 2017-11-14T15:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | # -*- coding: utf-8 -*-
##############################################################################
#
##############################################################################
{
"name" : "General Stock FIFO",
"version" : "9.0",
"author" : "Le Truong Thanh <thanh.lt1689@gmail.com>",
'category':... | [
"son.huynh@nedcoffee.vn"
] | son.huynh@nedcoffee.vn |
1a4a84046bb067d8317cba7a3dfb51fef729d588 | abf44e8ac8325e1c95b0d0569baee19b8f725b0a | /1_slide_window/7.py | 79fadc05e2ce3816ac627747f460e59868bd8734 | [] | no_license | terrifyzhao/educative2 | 05994b0e7f4e0c8d4319106eddd48ba1dfe5317d | 00e9d630da117fa9550f2efb2191709734c63c8a | refs/heads/master | 2022-12-24T02:51:18.671842 | 2020-09-24T07:43:08 | 2020-09-24T07:43:08 | 276,569,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | def length_of_longest_substring(arr, k):
start = 0
max_len = 0
count_1 = 0
for i in range(len(arr)):
num = arr[i]
if num == 1:
count_1 += 1
if i - start + 1 - count_1 > k:
num = arr[start]
if num == 1:
count_1 -= 1
... | [
"zjiuzhou@gmail.com"
] | zjiuzhou@gmail.com |
81f5316150af9c908dd4b3ef8628cca2b90db2b0 | 8fc7635b84b42e61b7efb9eaf7215394b5b5790a | /aliennor-backend copy/aliennorDjangoBackend/aliennorDjangoBackend/wsgi.py | 021b6e96cb9641200f626f50804bb038f497e40a | [] | no_license | phamcong/aliennor-platform | f1e8470aab7ed634859e071f6028931f576ddf3e | e1d71532426ac9414d2158d50ee34c32257618f0 | refs/heads/master | 2021-05-14T17:08:08.629564 | 2018-02-17T23:35:07 | 2018-02-17T23:35:07 | 116,038,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for aliennorDjangoBackend 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/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault... | [
"ccuong.ph@gmail.com"
] | ccuong.ph@gmail.com |
40f118a930e06e6edf455277d99dddcc1d85aa9a | 2e6c95871bd255873fb563347c0f070e6fcdde74 | /ngram_2_model_pca.py | 6b077e23c628515f969ffa99bba1c5e5f09cec87 | [] | no_license | MSBradshaw/BioHackathon2020 | 3203c5232bebd70d2c2a88b7f49063a09da023c4 | 31826b698a408541200b6f75bfe9c03217bf2d1a | refs/heads/master | 2022-08-05T11:57:32.221444 | 2020-05-29T17:30:29 | 2020-05-29T17:30:29 | 258,961,184 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,036 | py | import re
import pandas as pd
from bs4 import BeautifulSoup
import datetime
import time
from sklearn.decomposition import PCA
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import train_test_split
from sklearn import datasets
from s... | [
"michaelscottbradshaw@gmail.com"
] | michaelscottbradshaw@gmail.com |
5d701f0a48dd6c81ab978a9683db47f0cf9fb515 | 587ac0749473666c2bcdfe558bdba8517cb1c0a0 | /sp2020/j.py | 9470133d7c7fc37f2ee060305d69a2e6d4c99a9d | [] | no_license | katrinafyi/cpg | fc2f408baf19791fa7260561a55d29464a42b212 | 0631d1983ec6a45cbe1a8df63963ab8caac51440 | refs/heads/main | 2023-02-21T13:07:02.517306 | 2021-01-23T06:09:39 | 2021-01-23T06:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | def ints(): return [int(x.strip()) for x in input().split()]
# t is interval of measurement
# d is time considered
# p is percentile required
# r is response delay required for responsiveness
num_meas, t, d, p, r = ints()
num_attempts = ints() [0]
SUBMIT = 'S'
REPLY = 'R'
MEASURE = 'M'
timeline = [] # list of (time... | [
"kenton_lam@outlook.com"
] | kenton_lam@outlook.com |
4fe2f24ace7a19b1acc48f98e1b7555884e1392c | 6e2e476c5764d5e75c7afe5a531ac5b890ef0c64 | /Models_barAllExecutionTimes.py | 6dd46654dd04bc45d58214343e8245ce54d8db3f | [] | no_license | BrunoDatoMeneses/PythonPloting | d4611f62f2709465e32d3ab2dc4e0d5cef65e783 | b5bd1c7aa5a50144d2db82f29ab754b01084f230 | refs/heads/master | 2023-05-07T14:08:17.225336 | 2021-06-02T09:06:13 | 2021-06-02T09:06:13 | 297,996,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,065 | py | import _PLOT
from Utils import transpose
import os
import csv
# transpose.transposeFiles()
from _FIG import PLOTTING
from _PARAMS import PARAMETERS
figEndName = "-AllNCS"
#xlabel = 'Learning Cycles (#)'
ylabel = 'Times (ms)'
yStringLong ="ExecuyionTimes"
# figVaryingParamString = "learningCycles"
# varyingParamS... | [
"bruno.dato.meneses@gmail.com"
] | bruno.dato.meneses@gmail.com |
419bee1b9fe65c8d11a7d4b70693ec15423d958f | cc578cec7c485e2c1060fd075ccc08eb18124345 | /cs15211/24Game.py | ea18464f94d06f61725723f26fa46ca83987f4e3 | [
"Apache-2.0"
] | permissive | JulyKikuAkita/PythonPrac | 18e36bfad934a6112f727b4906a5e4b784182354 | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | refs/heads/master | 2021-01-21T16:49:01.482561 | 2019-02-07T06:15:29 | 2019-02-07T06:15:29 | 91,907,704 | 1 | 1 | Apache-2.0 | 2019-02-07T06:15:30 | 2017-05-20T18:12:53 | Python | UTF-8 | Python | false | false | 4,885 | py | __source__ = 'https://leetcode.com/problems/24-game/description/'
# Time: O()
# Space: O()
#
# Description: Leetcode # 679. 24 Game
#
# You have 4 cards each containing a number from 1 to 9.
# You need to judge whether they could operated through *, /, +, -, (, ) to get the value of 24.
#
# Example 1:
# Input: [4, 1, ... | [
"b92701105@gmail.com"
] | b92701105@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.