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
005852383cf1e3ae176206e5dd95e2754cd001ce
006341ca12525aa0979d6101600e78c4bd9532ab
/CMS/Zope-3.2.1/Dependencies/zope.app-Zope-3.2.1/zope.app/container/browser/find.py
ee744f8239d12401177ed371c83a4a3a56c523fe
[ "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
1,567
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
064b469872ad95e7487c3cf649ca3cfa62170bdd
6f05f7d5a67b6bb87956a22b988067ec772ba966
/data/test/python/068d64a694460d83bc9a67db9e2e5f1e4e03d3c3urls.py
068d64a694460d83bc9a67db9e2e5f1e4e03d3c3
[ "MIT" ]
permissive
harshp8l/deep-learning-lang-detection
93b6d24a38081597c610ecf9b1f3b92c7d669be5
2a54293181c1c2b1a2b840ddee4d4d80177efb33
refs/heads/master
2020-04-07T18:07:00.697994
2018-11-29T23:21:23
2018-11-29T23:21:23
158,597,498
0
0
MIT
2018-11-21T19:36:42
2018-11-21T19:36:41
null
UTF-8
Python
false
false
717
py
from django.conf.urls import url from . import views SITE_SLUG = "(?P<site_slug>[-_\w]+)" IMAGE_SLUG = "(?P<image_slug>[-_\w]+)" urlpatterns = [ # Manage url(r'^$', views.manage_redirect, name='manage_redirect'), url(r'^manage/$', views.manage, name='manage'), url(r'^manage/archives$', views.archives,...
[ "aliostad+github@gmail.com" ]
aliostad+github@gmail.com
94e1bcfdf5adabec1171a6844867b600be9ef5e8
c93b0f008d0977e0b9327ad8b930489f5cccae97
/platfrom/testdata/RawQosBuffering.py
3dbfb80b4f23f72c376766ece3d0dc34e83de492
[]
no_license
ParkPan/ATCasePackage
15caa664bd94c014ccbd1780353bfc5fcc0caa87
edad6c1d5a343c740e251821fee0c29336f3d435
refs/heads/master
2020-06-16T02:44:06.323352
2016-12-01T03:46:44
2016-12-01T03:46:44
75,251,843
0
0
null
null
null
null
UTF-8
Python
false
false
1,336
py
import random import sys import os import datavars import dataprovider sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/' + '..')) from commonfunc import get_timestamp_by_time class RawQosBuffering(dataprovider.Dataprovider): tablename = 'raw_input_qos_buffering' @classmethod def gettablena...
[ "panpan@cloutropy.com" ]
panpan@cloutropy.com
ceab03c4764ad7cac99e7e1fcadaca2cdc5da95a
159d4ae61f4ca91d94e29e769697ff46d11ae4a4
/venv/lib/python3.9/site-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_custom_frames.py
94cabd744e1d3785ac2a728ff2ac0c584fccdf39
[ "MIT" ]
permissive
davidycliao/bisCrawler
729db002afe10ae405306b9eed45b782e68eace8
f42281f35b866b52e5860b6a062790ae8147a4a4
refs/heads/main
2023-05-24T00:41:50.224279
2023-01-22T23:17:51
2023-01-22T23:17:51
411,470,732
8
0
MIT
2023-02-09T16:28:24
2021-09-28T23:48:13
Python
UTF-8
Python
false
false
4,397
py
from _pydevd_bundle.pydevd_constants import get_current_thread_id, Null, ForkSafeLock from pydevd_file_utils import get_abs_path_real_path_and_base_from_frame from _pydev_imps._pydev_saved_modules import thread, threading import sys from _pydev_bundle import pydev_log DEBUG = False class CustomFramesContainer: ...
[ "davidycliao@gmail.com" ]
davidycliao@gmail.com
ea30277fdda4769bc035c83cf910f8660e83b049
421f6ce9490876be113e5ed1ac173b1f6d70cb66
/newYork/new_york_analysis/recursive_top_level/u_craigslist4237915975/craigslist4237915975scraper/craigslist4237915975scraper/items.py
2ed8d4fb8cf4de54768e328577d307baa7ea0dfc
[]
no_license
EricSchles/humanTraffickingTalk
a1f4770c4380ea0424663baac79686be5b74733a
f399e6e6188601f34eab3fd8e7fc4a3ca30d9b14
refs/heads/master
2021-01-01T06:11:24.424134
2014-08-14T18:51:23
2014-08-14T18:51:23
14,879,906
17
5
null
2019-10-15T11:10:13
2013-12-03T01:15:11
Python
UTF-8
Python
false
false
134
py
from scrapy.item import Item, Field class craigslist4237915975Item(Item): title = Field() link = Field() desc = Field()
[ "ericschles@gmail.com" ]
ericschles@gmail.com
a4e44762a7511ec359dd8e19c070b721d03e6d4c
ce6fc44470dcb5fca78cdd3349a7be70d75f2e3a
/AtCoder/Panasonic 2020/C.py
df4a723d90f0c2af78b234c8e09df7cc7078f4ca
[]
no_license
cormackikkert/competitive-programming
f3fa287fcb74248ba218ecd763f8f6df31d57424
3a1200b8ff9b6941c422371961a127d7be8f2e00
refs/heads/master
2022-12-17T02:02:40.892608
2020-09-20T11:47:15
2020-09-20T11:47:15
266,775,265
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
a, b, c = map(int, input().split()) if (c - a - b) >= 0 and 4 * a * b < (c - a - b) * (c - a - b): print("Yes") else: print("No")
[ "u6427001@anu.edu.au" ]
u6427001@anu.edu.au
566bdadc52d20472b63a9220e98e6d64c70af204
12fb02e7d946002beee4e095ea23f4d98c968afa
/tscripts/yunwei/operate/compress.py
2322013f32616938001a146dfb17314ba7e2ad9c
[]
no_license
cash2one/yunwei-1
0ab4ec0783c061739dc9a6c3db2f9379605746fd
b929fe23fd95ea1f18bd809b82523101eb414309
refs/heads/master
2020-07-02T14:31:00.776030
2016-09-09T05:31:52
2016-09-09T05:31:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,511
py
#!/usr/bin/env python #-*- coding:utf-8 -*- ''' date: 2016/08/20 role: 压缩解压 usage: cmb = compressBase(log_path) 实例化 cmb.zipp(source_dir,zipfile_path) cmb.tar(source_dir,tarfile_path) cmb.unzip(zipfile_path,target_dir) cmb.untar(tarfile_path,target_dir) ''' from __future__ import absolut...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
308f47876d956e476994e9c9fe6924bde8b25f3c
22e9d7c194cf22513d68b61b97c49405a47e8708
/Number_Theory/sieves_primality_test.py
ef64fdf8d48dbf9a21543d0f6f5e2a11e959499b
[]
no_license
SandeepPadhi/Algorithmic_Database
44c26f9300a99539781c5beb5587997b3ecadfe1
ab8040a7dad94c84ec88f40e44b8520edcbe2443
refs/heads/main
2023-06-22T02:04:29.362315
2021-07-19T17:48:40
2021-07-19T17:48:40
338,329,340
3
0
null
null
null
null
UTF-8
Python
false
false
295
py
import math maxn=1000000 spf=[i for i in range(maxn+1)] def sieve(spf): for i in range(2,int(math.sqrt(maxn))+1,1): if spf[i]==i: for j in range(i*i,maxn+1): spf[j]=i def isPrime(x): return True if spf[x]==x else False sieve(spf) print(isPrime(31))
[ "padhisandeep96@gmail.com" ]
padhisandeep96@gmail.com
b74c7a408b72582b81de14ddae925d60aa364fdf
86cf79436659ff8d69d6d7a8d9cb358f0d1b4f1c
/AOJ/0383/0383.py
366208a7d42f41637177a43b9108f38835ec689a
[]
no_license
pombredanne/problem-solving
d96a367851a34fb4f947b3b7a95ad364cf94ea8f
fefdbfb89ba04dbcd7df93c02968759ea970db06
refs/heads/master
2020-05-20T12:34:23.654253
2019-03-31T09:57:55
2019-03-31T09:57:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
A,B,X = map(int, input().split()) ans = a = b = 0 if X % 500 != 0: X += 500 - X%500 if A < B: a = X//1000 + (1 if (X%1000>0) else 0) elif A > 2*B: b = X//500 else: a = X//1000; X %= 1000 b = X//500 print(A*a + B*b)
[ "y.watanobe@gmail.com" ]
y.watanobe@gmail.com
54a92741481e50fdde73c533ad52c1b313d363a4
cb3bce599e657188c30366adb0af3007ff9b8f96
/src/note/test_proxy.py
bd9bcba2da944244a78ca5f41ac1a3c0cc431346
[]
no_license
skk4/python_study
534339e6c378d686c29af6d81429c472fca19d6d
4bdd2a50f4bdfd28fdb89a881cb2ebb9eac26987
refs/heads/master
2021-01-01T04:36:52.037184
2017-12-08T01:04:27
2017-12-08T01:04:27
97,207,719
0
0
null
null
null
null
UTF-8
Python
false
false
574
py
# -*- coding:utf-8 -*- #import socket import random import urllib2 iplist = ['111.13.7.42:81'] url = 'http://www.whatismyip.com.tw/' proxy = {'http': random.choice(iplist)} proxy_support = urllib2.ProxyHandler(proxy) opener = urllib2.build_opener(proxy_support) opener.addheaders = [('User-Agent', 'Mozilla/5.0 ...
[ "skk_4@163.com" ]
skk_4@163.com
6d594e11da8a7b220ea7286f7fb5b4a2a98c0b15
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/16/usersdata/78/6015/submittedfiles/triangulo.py
8f53086208c10d248c43bc38a441462edf00389a
[]
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
427
py
# -*- coding: utf-8 -*- from __future__ import division import math a=input('digite o valor de a:') b=input('digite o valor de b:') c=input('digite o valor de c:') if a>=b>=c>0: print('s') if a>b+c: print('n') if a**2==(b**2)+(c**2): print('Re') if a**2>(b**2)+(c**2): print('Ob') if a**2<(b**2)+(c**2)...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
e8f6627e5ca6c6c236f176ab86c0fa1405ddd68d
691d3f3e04d354e11772335064f33245e1ed8c28
/lib/galaxy/tools/test.py
ec7c7c7d1a8913c9ba7ecbcc555ce0d7d27eba56
[ "CC-BY-2.5", "MIT" ]
permissive
dbcls/dbcls-galaxy
934a27cc13663549d5208158fc0b2821609399a8
6142165ef27f6a02aee42f26e0b94fed67ecc896
refs/heads/master
2016-09-05T22:53:27.553419
2009-09-09T06:35:28
2009-09-09T06:35:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,997
py
import new, sys import galaxy.util import parameters from parameters import basic from parameters import grouping from elementtree.ElementTree import XML class ToolTestBuilder( object ): """ Encapsulates information about a tool test, and allows creation of a dynamic TestCase class (the unittest framework...
[ "h-morita@esm.co.jp" ]
h-morita@esm.co.jp
835ae6671986312e9febcc5c4269d9c60e34366d
32cba9d6b0cb420e13a2a26c9e8c3d07e2c127b6
/附录A 梯度下降法/最速下降法(原生Python+scipy导数计算实现).py
cee687d26b7245cfa1b086e591ae59819bbce477
[]
no_license
wanglg007/Lihang-Statistical-learning-methods-Code
bed22551a2883b40e93340d3f96cf2fcf9e19ef2
190d16310be154282550e1f55eaadd8c4dd83263
refs/heads/main
2023-07-03T17:00:35.809206
2021-08-02T08:37:33
2021-08-02T08:37:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,826
py
from scipy.misc import derivative def partial_derivative(func, arr, dx=1e-6): """计算n元函数在某点各个自变量的梯度向量(偏导数列表) :param func: [function] n元函数 :param arr: [list/tuple] 目标点的自变量坐标 :param dx: [int/float] 计算时x的增量 :return: [list] 偏导数 """ n_features = len(arr) ans = [] for i in range(n_featur...
[ "1278729001@qq.com" ]
1278729001@qq.com
e894a478cf49f5d808333ba19573bf3ba9434e8e
13f5984be7be77852e4de29ab98d5494a7fc6767
/Exam/商汤/环形赛道小游戏.py
cfeda51c8d56cb04a31ed5a4d36ff1e03e2acc17
[]
no_license
YuanXianguo/Python-Interview-Master
4252514763fc3f563d9b94e751aa873de1719f91
2f73786e8c51dbd248341559de171e18f67f9bf2
refs/heads/master
2020-11-26T18:14:50.190812
2019-12-20T02:18:03
2019-12-20T02:18:03
229,169,825
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
def get_sum(nums): n = len(nums) nums.extend(nums) dp = [nums[0]] * len(nums) for i in range(2 * n): dp[i] = max(dp[i]+nums[i], nums[i]) return dp[-1] n = int(input()) nums = list(map(int, input().split())) print(get_sum(nums))
[ "736913978@qq.com" ]
736913978@qq.com
be490d67d8abd9e56665d7b6ef9536c0352d1325
fd62d8096dc95923341cfac29f0209bfbea887b4
/models_evaluation/xgboost/grid_search/jobs_test/5.0_0.03_0.0_200.0_10.0.job.py
9abbc493eabf624713f7efad4e08eff3f17a4fed
[]
no_license
Eulerianial/premise-selection-deepmath-style
06c8f2f540bc7e3840c6db0a66c5b30b5f4257f9
8684a59b5d8beab1d02a3a7c568a16c790ea4b45
refs/heads/master
2021-07-17T17:04:13.472687
2017-10-25T13:54:44
2017-10-25T13:54:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,637
py
import xgboost as xgb import argparse import sys import os from saving_loading import * ##################################### p = { "max_depth":int(5.0), "eta":0.03, "gamma":0.0, "num_boost_round":int(200.0), "early_stopping_rounds":int(10.0) } ##################################### if __name__ == ...
[ "bartoszpiotrowski@post.pl" ]
bartoszpiotrowski@post.pl
5a37f7eb85b6bd929fabe005a19a2a43d41f15d5
da5bc6efaebc9ff015938d207b25c7804bc03b33
/11_class/quiz03/quiz03.py
58c5273addfe4332aba0c15c597067916327331e
[]
no_license
codud0954/megait_python_20201116
b0f68f50a1e0d41c3c35535e718d5a236a7b1a98
a71f57d4332027406953599612cd014de2d26713
refs/heads/master
2023-01-31T11:14:27.611468
2020-12-18T09:03:11
2020-12-18T09:03:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,127
py
# 제품관리 설계도 class Product: # 생성자 def __init__(self, name, price, expired_date): self.name = name self.price = price self.expired_date = expired_date # 제품 정보 def product_info(self): print("이름:", self.name) print("가격:", self.price) print("유통기한", ...
[ "noreply@github.com" ]
codud0954.noreply@github.com
ef9173cfa8a6c3ee550b53d9ab4739412550077e
567b880347a4ace3a64060753bf9bfadb42fb242
/demo/app.py
e158c660ac3904f01488022ac78189149d5840be
[]
no_license
land-pack/intuition
7b8335a8c0a07975c862d8e0daaa1f814bd9f63b
bc0a4e847ebe2b4c80c18d6a7e6e16a828c2a712
refs/heads/master
2020-03-23T07:03:36.530012
2018-07-18T06:26:09
2018-07-18T06:26:09
141,245,462
1
0
null
null
null
null
UTF-8
Python
false
false
414
py
import requests from flask import Flask, render_template app = Flask(__name__) @app.route("/") def index(): r = requests.get('http://127.0.0.1:5001/api/preview') data = r.json() images = data.get('images') return render_template('index.html', images=images) @app.route("/upload") def upload(): ...
[ "landpack@sina.com" ]
landpack@sina.com
fc07856387a10a3a8dbed500fe7a51d73eaeb050
e59273ecf45ddc40af8f51607e3ca1fb46632bb1
/Payload_Types/apfell/mythic/agent_functions/download.py
fcfff9bf3b21b6ee4794053ec13673c5fa3ac9f6
[ "BSD-3-Clause", "MIT" ]
permissive
thiagomayllart/Mythic
62ae01a42027ac1a71564775c8cc7ac8d0e88aa4
bb1a90fb3c3e37c284fc812548b8f7ae5ffc1fb1
refs/heads/master
2023-06-02T08:12:09.099400
2021-06-19T23:30:26
2021-06-19T23:30:26
326,127,766
0
1
NOASSERTION
2021-06-20T03:20:21
2021-01-02T06:59:04
Python
UTF-8
Python
false
false
1,829
py
from CommandBase import * import json from MythicResponseRPC import * class DownloadArguments(TaskArguments): def __init__(self, command_line): super().__init__(command_line) self.args = {} async def parse_arguments(self): if len(self.command_line) > 0: if self.command_lin...
[ "codybthomas@gmail.com" ]
codybthomas@gmail.com
ec6fcf9d5ab20c814125e6ac6e0b78fc36051033
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p4VQE/R1/benchmark/startPyquil196.py
6360a951c9bd056e2dd8006aa958ef69a2c7c95e
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
1,184
py
# qubit number=4 # total number=12 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=1 pr...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
a2a54db18153e09c2bdd4306052b808031bbdae2
eba5e5ff22bcba73001fba729218c02cd257759f
/assets/utils/webssh.py
2cb35bc81b8a867099b45e74389da231bd5cb930
[]
no_license
duoyichen/Ops-1
d04ea66aa37c0732ddeff08889819d8ca830985e
56d3838a40dc0644a0fe8e58f40be421eaddc693
refs/heads/master
2020-04-29T11:48:34.329401
2019-03-14T10:29:38
2019-03-14T10:29:38
166,679,958
0
1
null
2019-01-20T15:59:18
2019-01-20T15:59:18
null
UTF-8
Python
false
false
5,155
py
# -*- coding: utf-8 -*- import paramiko import threading import time import os import logging from socket import timeout from assets.tasks import admin_file from channels.generic.websocket import WebsocketConsumer from assets.models import ServerAssets, AdminRecord from django.conf import settings from utils...
[ "zm_world@163.com" ]
zm_world@163.com
55a9e15caa3390bc0770bedd2dfc2dc21ce45dea
43204546c687d7ec6bba04dc925eb07fc3f938e7
/angrdbg/server.py
478c2e72b3c3c6f84679b0c78a5ca6077afea852
[ "BSD-2-Clause" ]
permissive
jhscheer/angrdbg
5ac4a278b02e4009442e1033a1cbd9bb5d024806
50f257fcfea1dde8e4e76625fe64e3ac4e5eca51
refs/heads/master
2020-03-29T05:38:19.115641
2018-09-17T10:15:26
2018-09-17T10:15:26
149,591,381
0
0
BSD-2-Clause
2018-09-20T10:20:11
2018-09-20T10:20:11
null
UTF-8
Python
false
false
7,990
py
#!/usr/bin/env python """ classic rpyc server running a SlaveService + angrdbg + IPython shell usage: angrdbg-srv.py # default settings angrdbg-srv.py --host HOST --port PORT # custom settings # ssl-authenticated server (keyfile and certfile are required) angrdbg-srv.py --...
[ "andreafioraldi@gmail.com" ]
andreafioraldi@gmail.com
9ae8d7ce445ae3cc95832b024c28c453579539ec
2b7c7e9b00ed9b2dbbac943ee4b79865a96d10de
/Figure_script/Figure_Sobol_env_heatmap.py
c9d4513a3b6f3d83f0f93bf2429b86ad119e7dbf
[]
no_license
YaojieLu/Plant_traits_inversion
ad973e60bb32717d9d718f774c2ec77433c38ced
ec83642ae2a2e6ef96502e58f8074bffdadfefe8
refs/heads/master
2021-06-21T15:22:00.225498
2020-12-13T22:12:21
2020-12-13T22:12:21
140,017,309
1
1
null
null
null
null
UTF-8
Python
false
false
1,163
py
import pandas as pd import matplotlib.pyplot as plt import seaborn as sns # import data df = pd.read_csv('../Results/Sobol_env.txt', sep = ',', index_col = 0) df = df[df['T'] == 30] df['D'] = round(df['D'], 4) # labels paras = ['c', 'L', 'p50', 'ps'] latex = ['$\\mathit{c}$', '$\\mathit{L}$', '$\\psi_{x50}$...
[ "=" ]
=
479c2117988d2ed2dca6b2805202adc6d5027b9d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02397/s357415256.py
f7d7f986e5b38a58810ae61c71f351e5d8d9603c
[]
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
165
py
while True: c = input().split() x, y = int(c[0]), int(c[1]) if x == y == 0: break if y < x: x, y = y, x print("%d %d" % (x, y))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
081a8a4aa09d2eafd182ca6436c7c72218f6dcc5
3efee0cf2bd9e0c34bfdd94ab24a15cb88c04509
/TMM_examples/TMM_fabry_perot.py
13a671883453a7e29f38c3f94209049946a45615
[ "MIT" ]
permissive
luwl85/Rigorous-Coupled-Wave-Analysis
bf5016ec70525f5e7bf59dfa93a03902afdfac12
a28fdf90b5b5fc0fedacc8bb44a0a0c2f2a02143
refs/heads/master
2023-04-25T20:46:45.397976
2021-05-20T22:17:54
2021-05-20T22:17:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,761
py
''' TMM applied to a single uniform layer should recover the analytic fabry perot solution ''' import os import sys module_path = os.path.abspath(os.path.join('..')) if module_path not in sys.path: sys.path.append(module_path) import numpy as np import matplotlib.pyplot as plt; import cmath; from TMM_functions im...
[ "nzz2102@stanford.edu" ]
nzz2102@stanford.edu
6a6762c469e81d373c201c6a168dd6ee3e4c665c
ed75b99e824b5724746d72f2d529781eccf8ef0d
/biostar/celeryconfig.py
8b2c7b42b8db811498eb7a13032c3e9671c2e8aa
[ "MIT" ]
permissive
satra/biostar-central
6799c4df4d12de1278f60fb2b29623acf8cc7640
794c67d2972a4fe700c79841f5f3c0c562352738
refs/heads/master
2021-01-12T20:32:14.356389
2014-03-20T15:37:27
2014-03-20T15:37:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,202
py
from __future__ import absolute_import from datetime import timedelta from celery.schedules import crontab CELERY_RESULT_BACKEND = 'djcelery.backends.database:DatabaseBackend' BROKER_URL = 'django://' CELERY_TASK_SERIALIZER = 'pickle' CELERY_ACCEPT_CONTENT = ['pickle'] CELERYBEAT_SCHEDULE = { 'p...
[ "istvan.albert@gmail.com" ]
istvan.albert@gmail.com
325a93e9027f90d97fe0431288393f2f293520c7
90b8d12660adc7dcf63bffce20ba1b7ede64386a
/official/vision/beta/serving/export_saved_model.py
95027be136a8209c9e2a438072cf195c7d18771c
[ "Apache-2.0" ]
permissive
thalitadru/models
7109797ed536ccb10e17bba6add0f571a1c1c96d
7faaa572db44621f8e2998abd8dc6a22e86001f2
refs/heads/master
2022-05-05T15:04:01.683629
2022-03-23T16:20:46
2022-03-23T16:20:46
82,706,460
3
0
null
2017-02-21T17:14:13
2017-02-21T17:14:12
null
UTF-8
Python
false
false
3,850
py
# Copyright 2022 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
a3bfa9e158ba5fe5b5a7697cfc74d1a729aefa2a
65c616c59ae005debf91d82f4efc7f7cdcc2a7a4
/news_recommendation/home/forms.py
a4274fbc39b814ece457b077eceefcf942431907
[]
no_license
nghiatd16/most_cb
28db8b0c52cc391f6890f2a56c8dee308a6dfc85
46d91016b20d57f3f43b63813f7fbccd5626a848
refs/heads/master
2022-12-25T17:33:04.896024
2020-09-19T08:34:15
2020-09-19T08:34:15
296,822,425
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
from django.forms import ModelForm import django.forms as forms from django.conf import settings import os import glob import shutil
[ "nghiatd.proptit@gmail.com" ]
nghiatd.proptit@gmail.com
c30e22ee2d9981b49022661bd8c8de23908ce27e
78d7d7aeb78a8cea6d0e10b89fc4aa6c46c95227
/448.py
d69d285b5d87d18b1e029474dd35d050e1364dcc
[]
no_license
GenryEden/kpolyakovName
97db13ef93061a8c2afc6cc5acd91337f79063f1
c5d7f631ae7ec8770e56170574b82ea2b7d8a4d9
refs/heads/master
2023-05-23T21:22:51.983756
2021-06-21T08:56:49
2021-06-21T08:56:49
350,466,773
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
def f(x): if x < 1: return 0 elif x == 1: return 1 else: ans = f(x-1) if x - 1 != 7: ans += f(x-2) return ans print(f(12))
[ "a926788@gmail.com" ]
a926788@gmail.com
4105691310284155e93357df83d7741f403738fd
a6f4e2e2b2e25f7af509598327aaaa5c795433ac
/django_gocardless/views.py
7208815d058b283889ea24034697e84804b85aa8
[]
no_license
adamcharnock/django-gocardless
4042e9dc6a179cf2030064855b82411adc960470
ac126fcb12baf8a33472f0e22b29ede2b92e27ed
refs/heads/master
2021-01-18T13:24:22.265030
2014-05-08T17:56:35
2014-05-08T17:56:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,746
py
import json import logging from django.conf import settings from django.http.response import HttpResponseBadRequest from django.views.generic.base import View, logger from gocardless.utils import generate_signature class GoCardlessPayloadMixin(object): def get_payload(self, request): if not hasattr(self, ...
[ "adam@omniwiki.co.uk" ]
adam@omniwiki.co.uk
0e5dc5c575994fb9d51f5fd31c55ef92cd32e3f8
ddadba7ebb64c2f341280728fd50e62369d6251e
/apps/notes_app/models.py
d5bba0cd359c70e4d2e127891182602fdd6e7910
[]
no_license
LisCoding/Notes-App
0f630b8229553d6cac278650f5649a9737ce1285
21bd8d0177ecf69335ec24e52c49df81f555f7a5
refs/heads/master
2021-06-22T10:44:25.755893
2017-08-31T19:33:49
2017-08-31T19:33:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
from __future__ import unicode_literals from django.db import models # Create your models here. class Note(models.Model): title = models.CharField(max_length=255) description = models.TextField(default="") created_at = models.DateTimeField(auto_now_add = True) updated_at = models.DateTimeField(auto_no...
[ "cardozoliseth@gmail.com" ]
cardozoliseth@gmail.com
761eeaa6e8e18f8112e281af167a7ccbc3748013
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03837/s920938245.py
3aeb662f91dd2f46bbfdb9f9b7edc7cc0fdcb132
[]
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
650
py
def warshall_floyd(): for k in range(N): for i in range(N): for j in range(N): d[i][j] = min(d[i][j], d[i][k]+d[k][j]) N, M = map(int, input().split()) d = [[10**18]*N for _ in range(N)] for i in range(N): d[i][i] = 0 edges = [] for _ in range(M): a, b, c = map(in...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
74fc280f27c08e1336a10b2c6a6e61901d2387e1
cd2ea0b9f0f8e01950ea4dd629a325ef26f914ad
/topics/Trees/BinaryTreeTraversal.py
b180ed30d3f5c5183418e0a9355c08ce008c8282
[]
no_license
akhandsingh17/assignments
df5f1af44486ffefe1fefcccc643e6818ac1c55d
c89f40dcd7a8067fa78ed95d3fecc36cb1ca7b5d
refs/heads/master
2023-08-24T18:00:32.938254
2021-10-06T06:01:32
2021-10-06T06:01:32
305,913,409
1
0
null
null
null
null
UTF-8
Python
false
false
1,913
py
""" 1 / \ 2 3 / \ / \ 4 5 6 7 \ 8 """ class Node: def __init__(self, val, left=None, right=None): self.val = val self.left = left self.right = right class BinaryTreeTraversal: def __init__(self, root): ...
[ "akhans@amazon.com" ]
akhans@amazon.com
22dfaba28c59c06bab37c8db0df174e75f3bf706
bd9278423bb215dcdbf9f56a948210db044bdba2
/tests/test_01_main/test_env_vars_1.py
501ad06fecc21417b497a0cafa4e66f9cbcc5426
[ "MIT" ]
permissive
dungnv2602/uvicorn-gunicorn-docker
77fd5e0d07a94c7acc0876a773e6b1262619fb6d
37dbc188e555c22cf9b2dd0f3f6ab3e122e32c24
refs/heads/master
2020-04-26T16:40:32.749609
2019-02-08T10:44:24
2019-02-08T10:44:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,250
py
import time import pytest import requests import docker from ..utils import CONTAINER_NAME, get_config, get_logs, remove_previous_container client = docker.from_env() def verify_container(container, response_text): config_data = get_config(container) assert config_data["workers_per_core"] == 1 assert ...
[ "tiangolo@gmail.com" ]
tiangolo@gmail.com
781ee264796e64ff53334b63df8e2b3568dff462
7e0393251012e91213dddfd9c93f6b6b73ca2bfe
/cloudnetpy/products/drizzle_error.py
6ac4ba7a3ba679b8c9adeb0aead54d7fe56fdbce
[ "MIT" ]
permissive
josephhardinee/cloudnetpy
ff4cc0303d7f2ae40f2d3466298257659ff3ccde
c37760db3cdfe62ae769f8090ba621803ec9a92c
refs/heads/master
2021-03-06T15:37:51.529776
2020-02-13T09:05:29
2020-02-13T09:05:29
246,207,849
0
0
MIT
2020-03-10T04:29:48
2020-03-10T04:26:16
null
UTF-8
Python
false
false
5,294
py
import numpy as np import numpy.ma as ma import cloudnetpy.utils as utils def _get_drizzle_indices(diameter): return {'drizzle': diameter > 0, 'small': np.logical_and(diameter <= 1e-4, diameter > 1e-5), 'tiny': np.logical_and(diameter <= 1e-5, diameter > 0)} def _read_input_uncertainty(c...
[ "simo.tukiainen@fmi.fi" ]
simo.tukiainen@fmi.fi
6475c7715d2ace925da77b437721147f76ea65b2
d1d79d0c3889316b298852834b346d4246825e66
/blackbot/core/wss/ttp/art/art_T1218.011-1.py
ae3f24301b8519e5fd2ff913044f9b62c72f2ce2
[]
no_license
ammasajan/Atomic-Red-Team-Intelligence-C2
78d1ed2de49af71d4c3c74db484e63c7e093809f
5919804f0bdeb15ea724cd32a48f377bce208277
refs/heads/master
2023-07-17T12:48:15.249921
2021-08-21T20:10:30
2021-08-21T20:10:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,920
py
from blackbot.core.utils import get_path_in_package from blackbot.core.wss.atomic import Atomic from terminaltables import SingleTable import os import json class Atomic(Atomic): def __init__(self): self.name = 'DefenseEvasion/T1218.011-1' self.controller_type = '' self.external_id = 'T121...
[ "root@uw2artic201.blackbot.net" ]
root@uw2artic201.blackbot.net
0021c7e9e93f3bb30c1d2f4511b9a15aee101958
a00c487d88c50401ebf8505cd267c70b42e3c362
/bangla/soup/MSR.py
9c488a0e43064bf12f84eebfbeb665415f8376dd
[]
no_license
sharif1302042/A-news-Agrregation-system
9aca07ed29f13b5da8e93a2aabe03281d6b66365
5e48a726f5fedba686d18601d561784c6ceddd5a
refs/heads/master
2020-04-01T11:00:39.088387
2019-11-09T15:05:24
2019-11-09T15:05:24
153,142,416
2
1
null
null
null
null
UTF-8
Python
false
false
936
py
import requests from bs4 import BeautifulSoup news=[] r=requests.get('https://bangla.bdnews24.com/politics/') soup = BeautifulSoup(r.text, 'html.parser') r1=soup.find_all('li',attrs={'class':'article first '}) r2=soup.find_all('li',attrs={'class':'article '}) l=0 for r in r1+r2: if l<10: txt=r.find('a')['href'] ...
[ "sharifulcsehstu@gmail.com" ]
sharifulcsehstu@gmail.com
5102a13c1af192205b49132a170a820a1c33ee47
a799a105ab2aba39a475bf2ce086405def0351c2
/test/model/tpp/common.py
4fd78b174d605ac5736f5e09c8c9e575b42dfa7b
[ "Apache-2.0" ]
permissive
mbohlkeschneider/gluon-ts
d663750d13798624eca5c9d6f12a87e321ce7334
df4256b0e67120db555c109a1bf6cfa2b3bd3cd8
refs/heads/master
2021-11-24T06:09:49.905352
2021-10-14T09:30:38
2021-10-14T09:30:38
192,546,557
54
10
Apache-2.0
2022-08-31T18:36:44
2019-06-18T13:33:36
Python
UTF-8
Python
false
false
2,364
py
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
[ "noreply@github.com" ]
mbohlkeschneider.noreply@github.com
94edf1ad6adc7d8a3551c8b9103bf294c8afc731
cd23b0457bc02a60b89f1f52783e56cc36d85b5e
/oop/getitem.py
1bff5722f8bb3e1db032216968dc42463cf0a724
[]
no_license
cluo/learingPython
65c7068613e1a2ae0178e23770503043d9278c45
54609288e489047d4dd1dead5ac142f490905f0e
refs/heads/master
2020-04-01T13:04:15.981758
2015-02-23T13:21:31
2015-02-23T13:21:31
28,440,969
4
0
null
null
null
null
UTF-8
Python
false
false
401
py
#!/usr/bin/evn python #-*- coding:utf-8 -*- __author__ = 'admin' class Indexer: def __getitem__(self, index): return index ** 2 X = Indexer() print X[2] for i in range(5): print(X[i]) class stepper: def __getitem__(self, i): return self.data[i] X = stepper() X.data = 'spam' for item in X: print(item) pri...
[ "luosheng@meizu.com" ]
luosheng@meizu.com
087e92e25d5452f986b22430ce4fffefb538f075
0b49c40162e15b5e0c551e548d865c4105e8df7d
/koopmanInvertedPendulum.py
23a2317318f8c0da4234581463207c14b2bd54f1
[]
no_license
jiemingChen/DeepKoopman
654a47922e4d7d6161c032a5e7ac7374d6999917
2e6ce8218c0bf5b7bcb072a6983a8f6870ec6186
refs/heads/master
2023-03-27T22:39:24.992333
2020-09-28T23:11:40
2020-09-28T23:11:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,539
py
import numpy as np import torch import torch.nn as nn import gym from torch.utils.data import Dataset, DataLoader import control import os from ReplayBuffer import ReplayBuffer import time import argparse parser = argparse.ArgumentParser() parser.add_argument("--env_name", default='InvertedPendulum-v2') parser.add_arg...
[ "csj15thu@gmail.com" ]
csj15thu@gmail.com
01e1441294cda302a160e5771d99e199e575a62e
90cdfc6ff827c8334c81f6f896b1081cbb4d4f7a
/07GUI/08Pyqt5/06QtLearning/main.py
67e007139e350075c02c31f2644d82b77e45fcbe
[]
no_license
HBU/Jupyter
c79883f329efd2426c5c8fde1364266ed8b5059f
b3d5d08c89c26c68027409c2b466ac64aeb1af39
refs/heads/master
2022-07-06T22:00:43.694050
2020-12-22T09:53:02
2020-12-22T09:53:02
123,717,897
3
3
null
2022-07-06T19:20:58
2018-03-03T18:04:01
Jupyter Notebook
UTF-8
Python
false
false
3,190
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'main.ui' # # Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectNam...
[ "8584751@qq.com" ]
8584751@qq.com
902b8d163053965b0fd5ccb0bccc4093f6735a82
0adf94fc39a02018165b62e93dd83edddd041230
/.history/Jobs/views_20190225164613.py
81e0cf17f2f0704d47a0e7fa8441b3d22cbb48ad
[]
no_license
SabitDeepto/BrJobs
1e3baa143331cf46b9c70911c6644d1efd4fffd6
1a458c8c667f8093a2325d963e5542655467c7aa
refs/heads/master
2020-04-24T08:02:26.350007
2019-03-17T05:53:30
2019-03-17T05:53:30
171,818,024
0
0
null
null
null
null
UTF-8
Python
false
false
2,304
py
from django.contrib.auth.forms import UserCreationForm from django.shortcuts import redirect, render from django.urls import reverse_lazy from django.views import generic from .forms import UserForm, ProfileForm from django.contrib import messages from django.db.models import Q from django.shortcuts import get_object_o...
[ "deepto69@gmail.com" ]
deepto69@gmail.com
612247c1e53605ffa741a2fd8c545e5aee1047b8
1c2a9ce62301d5342113f2fdea8faefe807877c3
/weekly/models.py
95cda273c45b342928bebd15c878c21b9bdd4218
[]
no_license
Jillelanglas/weekly
782c03595118bb110c6d4ef3cda182d4b750ce30
b4b5bd373b7b9a07198c1354ea2f9a7854ffa75b
refs/heads/master
2021-01-15T23:07:08.495235
2013-10-05T18:01:51
2013-10-05T18:01:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,524
py
from weekly import db import cryptacular.bcrypt import datetime import mongoengine from flask import url_for from misaka import Markdown, HtmlRenderer rndr = HtmlRenderer() md = Markdown(rndr) crypt = cryptacular.bcrypt.BCRYPTPasswordManager() class User(db.Document): _password = db.StringField(max_length=102...
[ "isaac@simpload.com" ]
isaac@simpload.com
91844c1ed6cc7e36ae4119c9586f5fb82f28822b
e204cdd8a38a247aeac3d07f6cce6822472bdcc5
/.history/app_test_django/models_20201116133107.py
2523c8d06c874130fa411ddfea0a2aa8bcbbfe7e
[]
no_license
steven-halla/python-test
388ad8386662ad5ce5c1a0976d9f054499dc741b
0b760a47d154078002c0272ed1204a94721c802a
refs/heads/master
2023-04-08T03:40:00.453977
2021-04-09T19:12:29
2021-04-09T19:12:29
354,122,365
0
0
null
null
null
null
UTF-8
Python
false
false
2,940
py
from django.db import models import re class UserManager(models.Manager): def user_registration_validator(self, post_data): errors = {} EMAIL_REGEX = re.compile( r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$') if len(post_data['first_name']) < 3: errors['first_na...
[ "69405488+steven-halla@users.noreply.github.com" ]
69405488+steven-halla@users.noreply.github.com
c462bafef5399e8f9cd37b8a37573720063ab2c2
306d2a92fb331aec6ddf0794b538d6e3385a0df9
/app/api/account/urls.py
21f884031d1962d2ca3574afe6cc2097735a669d
[]
no_license
Zarinabonu/ForceApp
f343d3a52aee08890230c5425c9e238df99c5a7f
13f8e8613999c4850fc6f0bfcec66f897eecbe4a
refs/heads/master
2020-12-10T08:00:25.072289
2020-01-20T13:14:07
2020-01-20T13:14:07
233,540,795
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
from rest_framework.serializers import ModelSerializer from app.model import Account class AccountSerializer(ModelSerializer): class Meta: model = Account fields = ('id', 'f_name', 'l_name', 'm_name',)
[ "zarinabonu199924@gmail.com" ]
zarinabonu199924@gmail.com
19e9eb6c0f0128d8724b3f15dc2aeca49e1f211b
2d921bb03eade0763ddb3a9cc5cb637730ecbde1
/bdt/misassign_masses.py
21339aff913311d7f6730d9ba3d5c46fd49fded9
[]
no_license
rmanzoni/WTau3Mu
10c57971b80f9769578284abd69009008901eea7
5ad336df976d5a1b39e4b516641661921b06ba20
refs/heads/92X
2021-01-18T15:10:41.887147
2019-05-09T12:48:00
2019-05-09T12:48:00
84,342,825
0
7
null
2018-07-19T09:08:19
2017-03-08T16:35:42
Python
UTF-8
Python
false
false
4,883
py
import ROOT import root_pandas import numpy as np import pandas import root_numpy global m_k global m_pi m_k = 0.493677 m_pi = 0.13957061 # tree = ROOT.TChain('tree') # tree.Add('/Users/manzoni/Documents/tau3mu2018/16april/ntuples/data_enriched_16apr2018v16.root') print 'loading dataset...' dataset = pandas.DataFr...
[ "riccardo.manzoni@cern.ch" ]
riccardo.manzoni@cern.ch
727fc97005633da5105c31d875de048d679cb327
17268419060d62dabb6e9b9ca70742f0a5ba1494
/pp/samples/191_mirror_h.py
5d5f8caa93016a9121b917401e02a52f9b2ade76
[ "MIT" ]
permissive
TrendingTechnology/gdsfactory
a19124423b12cbbb4f35b61f33303e9a012f82e5
c968558dba1bae7a0421bdf49dc192068147b776
refs/heads/master
2023-02-22T03:05:16.412440
2021-01-24T03:38:00
2021-01-24T03:38:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
if __name__ == "__main__": import pp c = pp.Component() m1 = c << pp.c.mmi1x2() m2 = c << pp.c.mmi1x2() m2.reflect_h(port_name="E1") m2.movex(10) pp.show(c)
[ "noreply@github.com" ]
TrendingTechnology.noreply@github.com
8813f6544d2ccea3832683f456c77c7e969252cd
11d697345808e3630985d70600fd6f2bed1ac7e5
/slacktheme/models.py
519400c4f6b64e846e1d9bf5d6e8f82435b917a8
[]
no_license
openhealthcare/opal-slacktheme
ce97ddac3c490ed19a3ab96dd85a17eec010cff5
c819e02f9e4a45a554ae5b49d28b95a812a86bca
refs/heads/master
2021-01-19T22:52:41.572813
2017-06-08T13:21:42
2017-06-08T13:21:42
88,879,256
2
1
null
null
null
null
UTF-8
Python
false
false
251
py
""" Models for slacktheme """ # # Warning - even if you don't have any models, please don't delete this file. # Some parts of Django require you to have something it can import called # slacktheme.models in order for us to let you be a Django app. #
[ "david@deadpansincerity.com" ]
david@deadpansincerity.com
9667e86b4ca07c2e6716741e6cf0e9de4b7bdee6
4ad04de638ccfed398adb5496826c0d19e755d9e
/models/hr_contract_wage_type_period.py
50c5042a81dece83a28e3107e503007f66523598
[ "BSD-2-Clause" ]
permissive
aroodooteam/aro_hr_payroll
2f399a0f2e45652d2791df48a95e5ad66a051d71
dd95d500827566f1444e32760dda5b5b69a8906e
refs/heads/master
2021-01-22T13:47:46.272642
2018-01-29T11:25:35
2018-01-29T11:25:35
100,686,534
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
# -*- coding: utf-8 -*- from openerp.osv import fields, osv import time import logging logger = logging.getLogger(__name__) # Contract wage type period name class hr_contract_wage_type_period(osv.osv): _name = 'hr.contract.wage.type.period' _description = 'Wage Period' _columns = { 'name': field...
[ "aroodoo@asus.aro" ]
aroodoo@asus.aro
27d25a48451ddf4fd37788f53f17ab7d7bbbb843
b71f656374293c5f1238fcb449aa4dde78632861
/eudplib/eudlib/memiof/byterw.py
c6a45de2f0bcb03d62c384d553512caacbd340cb
[ "MIT" ]
permissive
tobeinged/eudplib
ce1cdc15f7ec6af857b4b64b5c826b3dd95d3e48
066c0faa200dc19e70cdb6979daf8f008b8ae957
refs/heads/master
2023-05-04T08:49:01.180147
2019-03-18T14:30:29
2019-03-18T14:30:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,708
py
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Copyright (c) 2014 trgk Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mo...
[ "phu54321@naver.com" ]
phu54321@naver.com
dcf9d83ba4bfa75b310253049edaadb0ac26101c
5c056604ecbfdd6e3d20c6d3b891855767c431b8
/CIFAR-10/DRE-F-SP+RS/models/ResNet_extract.py
c0f759d4aeba34d997dc7326df08db4232fb134d
[]
no_license
pkulwj1994/cDR-RS
135d1fc9504304ba0303fe5acc3594ea27531557
661d694d6a8dfb44885271bdfd92d6dc150a40f8
refs/heads/main
2023-08-30T05:37:07.449304
2021-11-16T03:17:42
2021-11-16T03:17:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,346
py
''' ResNet-based model to map an image from pixel space to a features space. Need to be pretrained on the dataset. codes are based on @article{ zhang2018mixup, title={mixup: Beyond Empirical Risk Minimization}, author={Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, David Lopez-Paz}, journal={International Conference ...
[ "dingx92@gmail.com" ]
dingx92@gmail.com
d2d53550d8562b31f2ef00de641a54b3c591e3fd
5bb8b4c7faeebd16da16ecbcd4a98aabaf688e8f
/data_tools/walker/src-cikm/build_graph/preprocess_venue_word.py
3d7fc4f53a23214e5cb8bba6ec763cd94551ca7c
[]
no_license
xiaoqinzhe/vrdetection
014fc2b61c9b30dd2699fdba41089b18b7f060be
604a812a21a98d72ba8e23a716eb72153bdaa7c4
refs/heads/master
2023-07-04T07:44:12.141404
2021-08-01T06:21:17
2021-08-01T06:21:17
150,063,473
0
0
null
null
null
null
UTF-8
Python
false
false
942
py
#coding:utf-8 file_name = '../dataset/paper_title_venue.txt' venues = set() word_df = {} with open(file_name) as file: for line in file: paper_id, title, venue = line.strip().split() words = title.split('-') for word in words: if word not in word_df: word_df[wo...
[ "xiaoqinzhe@qq.com" ]
xiaoqinzhe@qq.com
cc997c66aa7c0603bbc734ce62e689cd06b97a65
1b5d39f9dd5126b6f21e83efe58b7e86ef8d94f2
/CodeChef/LTIME80B/CARR.py
22f1cdd88dba474004c0ee9865be462ca2cd7494
[]
no_license
jai-dewani/Competitive-Programming
dfad61106a648b80cc97c85cc5c8bc5d1cd335d9
a2006e53b671ba56d4b0a20dd81fd0e21d0b0806
refs/heads/master
2021-07-03T16:08:02.466423
2020-09-24T16:22:28
2020-09-24T16:22:28
178,812,685
1
2
null
2019-10-18T14:43:19
2019-04-01T07:51:47
Python
UTF-8
Python
false
false
489
py
from random import randint mod = 10**9+7 for _ in range(int(input())): n,m = map(int,input().strip().split()) # n = randint(1,10**10) # m = randint(1,10**10) answer = 0 fact = m*pow(m-1,n-1,mod) # for i in range(n-1): # fact *= (m-1) answer += fact if(n>2): fact = m*pow(...
[ "jai.dewani.99@gmail.com" ]
jai.dewani.99@gmail.com
5a0f58aac33d8bad2c16cd0bc92a93704417daad
4cdc9ba739f90f6ac4bcd6f916ba194ada77d68c
/剑指offer/第五遍/32-2.分行从上到下打印二叉树.py
cac8702eac2082f33f6071a4d95e0ccd60552e50
[]
no_license
leilalu/algorithm
bee68690daf836cc5807c3112c2c9e6f63bc0a76
746d77e9bfbcb3877fefae9a915004b3bfbcc612
refs/heads/master
2020-09-30T15:56:28.224945
2020-05-30T03:28:39
2020-05-30T03:28:39
227,313,730
0
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
""" 从上到下按层打印二叉树,同一层的节点按从左到右的顺序打印,每一层打印到一行。   例如: 给定二叉树: [3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7 返回其层次遍历结果: [ [3], [9,20], [15,7] ]   """ class Solution: def levelOrder(self, root): # 首先判断输入为空的情况 if not root: return [] res = [] queue =...
[ "244492644@qq.com" ]
244492644@qq.com
311729967843c5ec8099011965d0fc07f899187d
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/model/container_configs_dto.py
5f77f61d48e99914c232542c25d08d3c747de972
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
6,284
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ContainerConfigsDTO: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribut...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
e5f657f8585b64e8ca97392387cbc8e5ea4a0f7d
4c9c2940ef3a07e2756fcceddf01acd384ebde01
/Python/[7 kyu] Ordered count of characters.py
da36015440ad03be1c025a725b9cca4d2ae3af47
[ "MIT" ]
permissive
KonstantinosAng/CodeWars
7d3501a605f7ffecb7f0b761b5ffe414e2f1983a
157818ece648454e882c171a71b4c81245ab0214
refs/heads/master
2023-04-11T09:44:27.480064
2023-03-26T21:37:07
2023-03-26T21:37:07
245,296,762
6
6
null
null
null
null
UTF-8
Python
false
false
578
py
# see https://www.codewars.com/kata/57a6633153ba33189e000074/solutions/python def ordered_count(inp): counts = {} for letter in inp: if letter not in counts: counts[letter] = 1 else: counts[letter] += 1 return [(key, value) for key, value in counts.items()] tests =...
[ "kwstantinos.agelopoulos@outlook.com" ]
kwstantinos.agelopoulos@outlook.com
a80cf6d1ddfc46a4bc219908bc8145a82db73edb
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_naturalism.py
8c5e9015f19160ff616ae4d4cd686e3352b59c9f
[ "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
442
py
#calss header class _NATURALISM(): def __init__(self,): self.name = "NATURALISM" self.definitions = [u'showing people and experiences as they really are, instead of suggesting that they are better than they really are or representing them in a fixed style: '] self.parents = [] self.childen = [] self.prop...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
bf5dc29023067b377e9be2c8a51b47247ca9a81a
5da5473ff3026165a47f98744bac82903cf008e0
/packages/google-cloud-dialogflow-cx/samples/generated_samples/dialogflow_v3_generated_environments_deploy_flow_async.py
ade1585fbfce343c1ef8b1d490219dca511c0ddb
[ "Apache-2.0" ]
permissive
googleapis/google-cloud-python
ed61a5f03a476ab6053870f4da7bc5534e25558b
93c4e63408c65129422f65217325f4e7d41f7edf
refs/heads/main
2023-09-04T09:09:07.852632
2023-08-31T22:49:26
2023-08-31T22:49:26
16,316,451
2,792
917
Apache-2.0
2023-09-14T21:45:18
2014-01-28T15:51:47
Python
UTF-8
Python
false
false
1,997
py
# -*- coding: utf-8 -*- # Copyright 2023 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" ]
googleapis.noreply@github.com
79afdf13c61a200d338ede0d864a956c63fabe3f
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/little_person_or_time/year/be_long_woman/part_and_thing/same_fact.py
4a49f93faba8dbcc80ef785b249febee2ff44e24
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
#! /usr/bin/env python def public_company(str_arg): life_or_long_week(str_arg) print('tell_part') def life_or_long_week(str_arg): print(str_arg) if __name__ == '__main__': public_company('want_next_thing')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
dce33266677a3e01c6ff99c2c720c7dfc65d296c
d7d7873d0bea9185a252916e3599b33e301d394c
/setup.py
8f0a378e044d453b35d69a16563e88fab08a6dcc
[]
no_license
KennethJHan/pip_test
b16a3248a50025075cc3db916d07ee9761cc9b9f
89e957d7059e303e5b640a1f2e514c437b616c10
refs/heads/main
2023-01-12T02:00:35.976500
2020-11-18T07:36:52
2020-11-18T07:36:52
313,856,656
0
0
null
null
null
null
UTF-8
Python
false
false
570
py
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="gitandpip", version="0.0.1", author="kenneth joohyun han", author_email="kenneth.jh.han@snu.ac.kr", description="It's pip... with git.", long_description=long_description, url="htt...
[ "kenneth.jh.han@gmail.com" ]
kenneth.jh.han@gmail.com
1d477bdc2d24efe805ae12ada9589a200b99ac7d
f2658c4bd7f833ace25ac2b63e88317b05f4602d
/2017 July/2017-July-11/st_rdf_test/model2/RelationsConstruction.py
80db921a3a777c4028c6f12a17dbc2aa3c535f55
[]
no_license
xiaochao00/telanav_diary
e4c34ac0a14b65e4930e32012cc2202ff4ed91e2
3c583695e2880322483f526c98217c04286af9b2
refs/heads/master
2022-01-06T19:42:55.504845
2019-05-17T03:11:46
2019-05-17T03:11:46
108,958,763
0
0
null
null
null
null
UTF-8
Python
false
false
3,410
py
#------------------------------------------------------------------------------- # Name: RelationsConstruction model # Purpose: this model is used to mapping the # columns: [ ] # # Author: rex # # Created: 2016/01/20 # Copyright: (c) rex 2016 # Licence: <your licence> #-----------...
[ "1363180272@qq.com" ]
1363180272@qq.com
9f3a4c72756e26bb17b1fe4a87c755b5e04cd441
ab174d6a1c5effdaab4a49015987c44909680792
/p4/solve.py
cf24db71cb7964f30b8b21b561e3433d28b73124
[]
no_license
carrdelling/AdventOfCode2018
2b26ed6cae8e48f473243e156d528b17fcb71584
c42f29d684ca7fb1954c3c1d45031e837d8c818a
refs/heads/master
2022-01-14T10:01:14.460444
2022-01-02T16:35:59
2022-01-02T16:35:59
160,434,068
0
0
null
null
null
null
UTF-8
Python
false
false
1,569
py
import datetime as dt from collections import defaultdict, Counter log = [] with open('input_data') as in_f: for row in in_f: timestamp, action = row.strip().split(']') _time = dt.datetime.strptime(timestamp[1:], "%Y-%m-%d %H:%M") log.append((_time, action.strip())) log.sort() guard_id...
[ "carrdelling@gmail.com" ]
carrdelling@gmail.com
a3f2a5a005d26ab9af467662fd50ff955da9a329
381612e57ef807e573b40b2dfaf062c8fe7a43f7
/nesi/softbox/api/models/route_models.py
7aea30390ad3f30d7155b1f369e6370d70560810
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
zcf900/NESi
1635a405660bb9390843468f34105dd2ef45bd75
0db169dd6378fbd097380280cc41440e652de19e
refs/heads/master
2023-01-31T23:21:02.799923
2020-12-18T13:37:43
2020-12-18T13:37:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
# This file is part of the NESi software. # # Copyright (c) 2020 # Original Software Design by Ilya Etingof <https://github.com/etingof>. # # Software adapted by inexio <https://github.com/inexio>. # - Janis Groß <https://github.com/unkn0wn-user> # - Philip Konrath <https://github.com/Connyko65> # - Alexander Dincher <...
[ "janis.gross.jg@gmail.com" ]
janis.gross.jg@gmail.com
208410d3e358a10f563e5f103349fd22130cf43d
aae3d55b9d2004e04c5917a31408384a4269a425
/astrodash/save_binned_templates_as_arrays.py
46d645225b46ac3a4d4829533285989d5f651758
[ "MIT" ]
permissive
daniel-muthukrishna/astrodash
5b1ee330d2ae2d9cc43f5c52d0765359aa40673f
acc241ad73133894d93ef16733cf0f1fb4ca7b87
refs/heads/master
2023-04-04T03:27:07.480846
2023-03-22T17:02:08
2023-03-22T17:02:08
75,250,754
23
12
MIT
2019-04-26T15:27:30
2016-12-01T03:19:18
Python
UTF-8
Python
false
false
4,018
py
import numpy as np import pickle import os from astrodash.create_arrays import AgeBinning from astrodash.helpers import temp_list from astrodash.combine_sn_and_host import BinTemplate def create_sn_and_host_arrays(snTemplateDirectory, snTempFileList, galTemplateDirectory, galTempFileList, paramsFile): snTemplates...
[ "daniel.muthukrishna@gmail.com" ]
daniel.muthukrishna@gmail.com
4db43b3627ce71b65078c3610a3ad71319c4c739
a512b8893b0d2de827d6292e810f3a98b41e132c
/Week4/Day6/Solutions/Python/prog3.py
e8ebb18c93788e86255dbf1b31875bd34116bfa1
[]
no_license
Audarya07/Daily-Flash-Codes
d771079fd0d470e2d3e05679f17f32fb64b4f426
cf96ca2b1676b038e243fac67be778381492ffeb
refs/heads/master
2022-11-06T15:37:47.180729
2020-06-25T16:20:55
2020-06-25T16:20:55
274,960,651
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
for num in range(1,101): sum = 0 for i in range(1,num): if num%i==0: sum+=i if sum==num: continue else: print(num,end=" ") print()
[ "audiuttarwar2000@gmail.com" ]
audiuttarwar2000@gmail.com
fb30f63ea2395b0dcca9405b88c567a7a4bb60d6
e7dd192123f404367e9623a357366643742fa723
/kubernetes/test/test_scheduling_v1beta1_api.py
700a3b463994104380586917c18869a0959fe020
[ "Apache-2.0" ]
permissive
itholic/python
1772725582f28af445efb233eca6c9139da3ae49
dffe577a062e17057270ae80fa677ffd83e9d183
refs/heads/master
2020-09-12T08:59:16.847326
2019-11-15T20:40:32
2019-11-15T20:40:32
222,375,164
0
0
Apache-2.0
2019-11-18T06:05:45
2019-11-18T06:05:43
null
UTF-8
Python
false
false
1,718
py
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import kube...
[ "haoweic@google.com" ]
haoweic@google.com
c288c52f8ee60885fe587a639279c2976ed3966e
9d67cd5f8d3e0ffdd4334a6b9b67c93f8deca100
/configs/example_old_map_1228.py
5fa96132f84104c6dbd4a5e0ca228a05b0c82a8a
[]
no_license
SiyuanLee/caps
0c300a8e5a9a661eca4b2f59cd38125ddc35b6d3
476802e18ca1c7c88f1e29ed66a90c350aa50c1f
refs/heads/master
2021-06-20T22:48:16.230354
2021-02-22T13:21:57
2021-02-22T13:21:57
188,695,489
1
2
null
null
null
null
UTF-8
Python
false
false
5,754
py
""" This is the example config file larger lr beta no bias lower explr comment: too small! not target beta """ import numpy as np # More one-char representation will be added in order to support # other objects. # The following a=10 is an example although it does not work now # as I have not included a '10' object yet...
[ "lisiyuan@bupt.edu.cn" ]
lisiyuan@bupt.edu.cn
07ff6980884d70cacc711dfc287bfbf96c7c733e
f4b694982027ac362de1e9d6755f2943d0355a06
/DECSKS-03 -- Convergence of FD formulation of high order CS/pyfiles/plots_df9_comparison.py
6ef2da6f2b41cabe799772b8df49ec3244e370d7
[]
no_license
dsirajud/IPython-notebooks
55275e44191c16f5393571522787993f931cfd98
6ad9d978c611558525fc9d716af101dc841a393b
refs/heads/master
2021-01-15T15:33:57.119172
2016-07-13T20:08:29
2016-07-13T20:08:29
35,054,473
0
0
null
null
null
null
UTF-8
Python
false
false
645
py
import matplotlib.pyplot as plt import numpy as np from convergence_routines import * Nx = 2488 x, dx, L = domain(_Nx = Nx) L2error, df9_approx = FD_derivative_matrix_formulation(_dn = 9, _p = 3, _Nx = Nx) df9_exact = df9(x) plt.plot(x,df9_exact, label = 'exact df9', linewidth = 3) plt.hold('on') plt.plot(x,df9_appro...
[ "sirajuddin@wisc.edu" ]
sirajuddin@wisc.edu
d59800358316a58679932c187a9225e40f43364e
b08d42933ac06045905d7c005ca9c114ed3aecc0
/src/learningCurve/leaveOneOut/lrClassifierF.py
36c020e785dfac7d8a00613b3398404787143651
[]
no_license
TanemuraKiyoto/PPI-native-detection-via-LR
d148d53f5eb60a4dda5318b371a3048e3f662725
897e7188b0da94e87126a4acc0c9a6ff44a64574
refs/heads/master
2022-12-05T11:59:01.014309
2020-08-10T00:41:17
2020-08-10T00:41:17
225,272,083
1
0
null
null
null
null
UTF-8
Python
false
false
5,134
py
# 9 September 2019 # Kiyoto Aramis Tanemura # I modified the rfClassifier.py script to implement a logistic regression classifier. This classifier runs faster than the random forest classifier and Jun previously observed comparable results between logistic regression and random forest classifiers for the protein fold...
[ "tanemur1@msu.edu" ]
tanemur1@msu.edu
18a28d5e4e839646f65336d3d49006c5a957223d
de0584cdd6a0b452efa3c8bd0e1e43286853c814
/preprocess/huff/clean_huffpost.py
a2a2d91bc756e5a1c5826ea7fe1277733daea635
[]
no_license
johnsonice/triplet-loss
a325ecd229b5346aaca4cb0556bbc18e9e4eae26
71c13dfa7631ec93c564d9dc9da4fcf667eb9500
refs/heads/master
2023-08-24T17:49:01.593415
2021-10-23T16:27:26
2021-10-23T16:27:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,823
py
import json from random import shuffle #cleaning up text import re def get_only_chars(line): clean_line = "" line = line.replace("’", "") line = line.replace("'", "") line = line.replace("-", " ") #replace hyphens with spaces line = line.replace("\t", " ") line = line.replace("\n", " ") ...
[ "jason.weng.wei@gmail.com" ]
jason.weng.wei@gmail.com
3d725712e172cee8591768772262237bc21dcaae
830465731dfda87b4141546262f20d74c29297bf
/GENERAL/RADARCTF/Logo/sol.py
d32c2f2933fdf57751dd6485d243603bc52c9566
[]
no_license
jchen8tw-research/CTF
f559d7ca0e16a730335b11caeeae208c42e8bf17
f49615c24437a9cc6a2c20d6b30cb5abf7a32b71
refs/heads/master
2023-03-17T12:29:08.630613
2021-03-23T06:31:26
2021-03-23T06:31:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
import os import binascii import struct misc = open("logo.png","rb").read() for i in range(1024): data = misc[12:16] + struct.pack('>i',i)+ misc[20:29] crc32 = binascii.crc32(data) & 0xffffffff if crc32 == 0xB65879B0: print i
[ "cpr1014@gmail.com" ]
cpr1014@gmail.com
a0f042399c854efeeae2f22745708993359d89e0
8a11814f757b22cacd89ae618265d6705393ba78
/amplify/agent/data/statsd.py
8c17a990d29c16671f7bda85bf50d173b786d17e
[ "BSD-2-Clause" ]
permissive
ngonsol/nginx-amplify-agent
e763bfcc82cf103b4eb2ce49269dfccaec0cb9af
c711579208465578b03dda5db40ccc7dc8f31b81
refs/heads/master
2021-01-18T03:17:04.494068
2016-05-18T20:17:25
2016-05-18T20:17:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,307
py
# -*- coding: utf-8 -*- import copy import time from collections import defaultdict __author__ = "Mike Belov" __copyright__ = "Copyright (C) Nginx, Inc. All rights reserved." __credits__ = ["Mike Belov", "Andrei Belov", "Ivan Poluyanov", "Oleg Mamontov", "Andrew Alexeev", "Grant Hulegaard"] __license__ = "" __maintai...
[ "dedm@nginx.com" ]
dedm@nginx.com
0e37bf6580d3248893e8a1c0e5dd6d1ebbe57409
8efe56ee34c455a6b1336897f6d457acbc9c10f9
/tests/metarl/tf/models/test_cnn_model.py
6d8f599ade02b39db52ef608f933167b30287246
[ "MIT" ]
permissive
neurips2020submission11699/metarl
ab18d11e708bf569d76cb2fab2bcce089badd111
ae4825d21478fa1fd0aa6b116941ea40caa152a5
refs/heads/master
2022-10-15T22:03:09.948673
2020-06-11T19:22:55
2020-06-11T19:30:58
268,410,657
4
0
null
null
null
null
UTF-8
Python
false
false
6,567
py
import pickle import numpy as np import pytest import tensorflow as tf from metarl.tf.models import CNNModel from metarl.tf.models import CNNModelWithMaxPooling from tests.fixtures import TfGraphTestCase class TestCNNModel(TfGraphTestCase): def setup_method(self): super().setup_method() self.ba...
[ "neurips2020submission11699@gmail.com" ]
neurips2020submission11699@gmail.com
f38cf335b8fab60a2d1b2f67a4620fe3e0c47847
dfe3191eee14251b958589f9b383fd5f8798d47e
/habanero/__init__.py
7fae4d724c918f2b4ae26eb4c4d44980330b35cc
[ "MIT" ]
permissive
kyleniemeyer/habanero
39257428cc442ec764edd3616749db10af783262
6338f22f06912a4f1af5f0459ff8329906442489
refs/heads/master
2021-01-14T11:53:45.396972
2016-07-11T15:59:41
2016-07-11T15:59:41
66,299,090
0
0
null
2016-08-22T18:47:17
2016-08-22T18:47:16
Python
UTF-8
Python
false
false
1,192
py
# -*- coding: utf-8 -*- # habanero ''' habanero library ~~~~~~~~~~~~~~~~~~~~~ habanero is a low level client for the Crossref search API. Usage:: from habanero import Crossref cr = Crossref() # setup a different base URL Crossref(base_url = "http://some.other.url") # setup an api key Crossref(a...
[ "myrmecocystus@gmail.com" ]
myrmecocystus@gmail.com
6f4c7736b4f7b3b3be54a806fa5fed52f9e446db
e3c6dcf5a77ae0b930087bb5849352a088dbc2e4
/hamon_shu/segments/segment_03/.handlers.py
4687984f7cf378e302baf025675dc29baf63361d
[]
no_license
Catsvilles/hamon_shu
684cda44661ba18724af6719e4efc5f763c3cf61
35b377074cff9900193018446668aeb5440475be
refs/heads/master
2022-12-04T08:00:46.779614
2020-08-26T21:25:57
2020-08-26T21:25:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,913
py
import abjad handler_to_value = abjad.OrderedDict( [ ( 'violin_1_pitch_handler_three', abjad.OrderedDict( [ ('pitch_count', 38), ('chord_boolean_count', -1), ('chord_groups_count', -1), ] ...
[ "gregoryrowlandevans@gmail.com" ]
gregoryrowlandevans@gmail.com
f29f4d3f9eb00ed98d6c9da648caeb5da3c9d380
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/f3jX2BwzAuR8DXsy4_22.py
e469acc301be3f4807256f980cb528fa19e2fb93
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
""" Create a function that takes an integer `n` and returns the **factorial of factorials**. See below examples for a better understanding: ### Examples fact_of_fact(4) ➞ 288 # 4! * 3! * 2! * 1! = 288 fact_of_fact(5) ➞ 34560 fact_of_fact(6) ➞ 24883200 ### Notes N/A """ import math fr...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
5c11d0ef4c5a83f6c0d971af6f4730a9a6fe1a67
c1e488789b41a714cdd37525d7e71815753c21d9
/atcoder/beginners/chap1/PASTFILES/ABC088A_1.py
041c7c7cbb41d815d7d2848a46a3bce2ad8a670a
[]
no_license
happyhappyhappyhappy/pythoncode
638a0cbeb94ec04829c1c4e216fb200863cd7a4e
247b8346a503cab272043c20e6210ee03cfdd8c4
refs/heads/master
2023-08-31T20:54:06.144750
2023-08-30T08:33:15
2023-08-30T08:33:15
223,697,956
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
# Problem https://atcoder.jp/contests/abc088/tasks/abc088_a # Python 1st Try if __name__ == "__main__": yes = "Yes" no = "No" answer = "" N = int(input().strip()) A = int(input().strip()) chargeCoin = N % 500 if chargeCoin <= A: answer = yes else: answer = no print(an...
[ "ymnkkj@gmail.com" ]
ymnkkj@gmail.com
5937a083574b20b77de3073d1b7317e4f94be9ec
c9cf4e7acd3ff09412610965dc83988b3f501e5e
/utils/readWrite/read.py
2fe030fe3668a47d797bc8bc787023f8779bee51
[]
no_license
Noba1anc3/General-Doc-SemSeg
31df6cc0c747c5586fbbeb9dace6170d3fbef4bd
27d9761fd45b2d5d52cfe3ed50413f902912b238
refs/heads/master
2021-05-19T04:15:42.604378
2020-03-31T06:59:45
2020-03-31T06:59:45
251,524,481
0
0
null
null
null
null
UTF-8
Python
false
false
4,247
py
import os import sys from configparser import ConfigParser from utils.logging.syslog import Logger class Configuration(): def __init__(self): self.logging = Logger(__name__) Logger.get_log(self.logging).info('Start processing ConfigFile') self.config() Logger.get_log(self.logging).i...
[ "zxryhjp@yahoo.co.jp" ]
zxryhjp@yahoo.co.jp
f79103b6166bbcddf98f63d0c258951fb19b31eb
28280d1c7ca06f89906e811f3b7311a5e8a0046b
/ecoz2py/__init__.py
5bffc1a049e5d658a7b607a7b4e2c48e1360e361
[]
no_license
mbari-org/ecoz2py
e5e96ba127a397c7d319a15ca13889f724943ba5
00d17b1696debc3aff7da37f0e4be316de70c3a7
refs/heads/master
2022-09-03T20:59:18.927539
2020-05-03T02:06:51
2020-05-03T02:06:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,691
py
import os from _ecoz2_extension import ffi from _ecoz2_extension.lib import ecoz2_hmm_learn from _ecoz2_extension.lib import ecoz2_prd_show_file from _ecoz2_extension.lib import ecoz2_set_random_seed from _ecoz2_extension.lib import ecoz2_version from _ecoz2_extension.lib import ecoz2_vq_learn def get_version(): ...
[ "carueda@mbari.org" ]
carueda@mbari.org
bd37d6634f405523c79a877228689da80f242c6a
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_89/46.py
2b2b33f6462a2c18f37ba5fc20391f0621f9a50f
[]
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,842
py
#!/usr/bin/env python # encoding: utf-8 """ Waiters en LCM """ import sys, time, copy from pdb import set_trace as DEBUG def p(*s): print >> sys.stderr, s def gcd(a, b): while b: a, b = b, a % b return a def lcm(a, b): return a * b // gcd(a, b) def lcmm(*args): return reduce(lcm,...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
0fbaab7562dfc9e920f442142b34da9865161986
7fdff3ab45f5fef05cc76f97ee44e44779f87120
/peerloan/migrations/0018_auto_20160912_1536.py
e45c005b5ff05f11df1b1b9a437414fdb3067bda
[]
no_license
Calvin66der/project_peerloan
4a132c7464b21e75a80f091d44c389cbd10c2cc5
99a02843addbfcffec5c7d7a964f0b3347a03962
refs/heads/master
2021-01-12T07:45:00.811952
2016-12-20T08:44:42
2016-12-20T08:44:42
77,006,043
0
0
null
2016-12-21T01:47:48
2016-12-21T01:47:48
null
UTF-8
Python
false
false
425
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('peerloan', '0017_borrowrequest_overpay_amount'), ] operations = [ migrations.AlterField( model_name='loanschedul...
[ "15113029g@connect.polyu.hk" ]
15113029g@connect.polyu.hk
72c850969dfe5e6528309e706ffd673c82f7a44c
5b93930ce8280b3cbc7d6b955df0bfc5504ee99c
/nodes/VanderPlas17Python/E_Chapter4/E_VisualizingErrors/index.py
c2c770e9b709e97993efbbfb79962c767157f91e
[]
no_license
nimra/module_gen
8749c8d29beb700cac57132232861eba4eb82331
2e0a4452548af4fefd4cb30ab9d08d7662122cf4
refs/heads/master
2022-03-04T09:35:12.443651
2019-10-26T04:40:49
2019-10-26T04:40:49
213,980,247
0
1
null
null
null
null
UTF-8
Python
false
false
5,314
py
# Lawrence McAfee # ~~~~~~~~ import ~~~~~~~~ from modules.node.HierNode import HierNode from modules.node.LeafNode import LeafNode from modules.node.Stage import Stage from modules.node.block.CodeBlock import CodeBlock as cbk from modules.node.block.HierBlock import HierBlock as hbk from modules.node.block.ImageBlock ...
[ "lawrence.mcafee@gmail.com" ]
lawrence.mcafee@gmail.com
3037cc9f0d5675cef844ea03c08be30f015cdeb3
fe7996f7110211e8c2df7cd7a4d81cc572204a70
/synthetic-enumeration/sprint-12/03-collect-experimental-data-from-Lauren-assignments.py
afb9cf0e066c49396bcbc2bd77a5215fad858d7a
[ "MIT" ]
permissive
FoldingAtHome/covid-moonshot
78c2bc7e6d00f371d626fcb0a4381cf528413eef
814189c239f8f0189c6cc48afcbca1f96c87dd09
refs/heads/master
2023-02-23T04:23:00.064389
2023-02-19T23:18:10
2023-02-19T23:18:10
249,626,873
62
11
MIT
2022-03-01T20:43:56
2020-03-24T06:07:39
Python
UTF-8
Python
false
false
5,603
py
#!/bin/env python """ Collect experimental data from Lauren's reassignments via CSV file """ import numpy as np import json import math import itertools import datetime from rich.progress import track from openeye import oechem xchem_project = 'Mpro' creator = 'John Chodera <john.chodera@choderalab.org>' creation_d...
[ "john.chodera@choderalab.org" ]
john.chodera@choderalab.org
db61be2c3b26ca80b961f9b324f981d7de1be14a
99361c45166c3e39bdc1e5e7ff796b60e5edc20e
/setup.py
59352d3cc65d0277c567478e0470ebd9187c11c0
[]
no_license
wkcn/WorldCup
2b358b73aab5496b3f7e209dc615c97c0181abff
1acef2d2cadf5e8cbb911b05a8ecfd98aa43920d
refs/heads/master
2020-03-08T10:38:08.558059
2018-04-04T15:03:07
2018-04-04T15:03:07
128,077,995
1
0
null
null
null
null
UTF-8
Python
false
false
415
py
# -*- coding: utf-8 -*- from distutils.core import setup import py2exe import sys sys.argv.append('py2exe') setup( windows=[ {"script":"run.py","icon_resources":[(1,"logo.ico"),]}], options={ "py2exe":{"includes":["sip"],"dll_excludes":["MSVCP90.dll"],\ "bundle_files": ...
[ "wkcn@live.cn" ]
wkcn@live.cn
eca69742d6ec30ac047d2b79b46fa7b0ddc3cf56
237cc38de0cf7a6e3661ed552ae771bd972d7438
/base/obj2_demo.py
ce08920ba539aeb6829dc7a411f369bec63a4e60
[]
no_license
chydream/python
af5ad8a98c78de71e255f7b776f936c4b89c616e
e5bfef53a7770d4f323bd2877f93c8166c563695
refs/heads/master
2020-05-07T17:00:33.558178
2020-05-05T13:45:19
2020-05-05T13:45:19
180,708,509
0
0
null
null
null
null
UTF-8
Python
false
false
1,949
py
class Point(object): # 自定义Point类的构造(初始化)方法 def __init__(self, x, y): self.x = x self.y = y # 自定义Point类对象的格式化输出函数(string()) def string(self): print(print("{{X:{0},Y:{1}}}".format(self.x, self.y))) class Circle(Point): # 自定义Circle类的构造(初始化)方法 def __init__(self, x, y, radi...
[ "yong.chen@doone.com.cn" ]
yong.chen@doone.com.cn
f31a50aaf5650420eddc7d4b4b4b0b17edbae209
3fd7adb56bf78d2a5c71a216d0ac8bc53485b034
/experiments/cem_exp/benchmarks_goalimage/hor15_easygoal/mod_hyper.py
1060f0f55147f0e67cf53d1bef3020b1c04858e0
[]
no_license
anair13/lsdc
6d1675e493f183f467cab0bfe9b79a4f70231e4e
7760636bea24ca0231b4f99e3b5e8290c89b9ff5
refs/heads/master
2021-01-19T08:02:15.613362
2017-05-12T17:13:54
2017-05-12T17:13:54
87,596,344
0
0
null
2017-04-08T00:18:55
2017-04-08T00:18:55
null
UTF-8
Python
false
false
640
py
current_dir = '/'.join(str.split(__file__, '/')[:-1]) bench_dir = '/'.join(str.split(__file__, '/')[:-2]) from lsdc.algorithm.policy.cem_controller_goalimage import CEM_controller policy = { 'type' : CEM_controller, 'use_goalimage':"", 'low_level_ctrl': None, 'usenet': True, 'nactions': 5, 'r...
[ "frederik.ebert@mytum.de" ]
frederik.ebert@mytum.de
e17f92d3d343d5272ea4fbcebd7c5a86df5c6a2d
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2811/60768/235290.py
44942420c792f233946644b79e4acce40a08ea76
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
313
py
pAndn = input().split(' ') map = int(pAndn[0]) * [''] num = int(pAndn[1]) conflict = False for i in range(num): index = int(input()) if map[index % len(map)] == '': map[index % len(map)] = index else: print(i + 1) conflict = True break if not conflict: print(-1)
[ "1069583789@qq.com" ]
1069583789@qq.com
376f82bf1be280037aaad21374b43a1e4dce82eb
69889d51e933b4e8a1d4c8397a317aa1d1365a5a
/Stack/17299.py
3de2e8eff8d86d4a1485e3e058e23e566d2857dc
[]
no_license
ddraa/Algorithm
a35c87631420ceccec6f7094da6f2b22ddb66c8c
a97c6628d5389f7f93603a2e95ac3b569057f556
refs/heads/master
2023-06-25T17:12:39.925821
2021-07-18T05:53:28
2021-07-18T05:53:28
279,240,088
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
import sys input = sys.stdin.readline N = int(input()) F, stack = {}, [] arr = list(map(int, input().split())) res = [-1 for _ in range(N)] for n in arr: if n in F: F[n] += 1 else: F[n] = 1 for i in range(N - 1, -1, -1): while stack and stack[-1][0] <= F[arr[i]]: stack.pop() ...
[ "ruuddyd@gmail.com" ]
ruuddyd@gmail.com
bfb31bbaa48485e6c87d4b9683dbf6fc1c4d2f7b
91a9f5a7afb398f4238527708cbc155dc972cbfa
/older/Grapher_app0/Names_Module.py
1ff52a69c3e05a1e89a15ebd6b1cc78a4dd3597e
[]
no_license
bddmodelcar/kzpy3.2
cd6f9bf6b7b8b920c79b4ee36c2592b992ae4332
b044b26649b19b240bd580feca20424a237374b1
refs/heads/master
2021-01-19T21:01:58.687712
2017-08-23T22:39:56
2017-08-23T22:39:56
101,243,308
0
1
null
2017-08-24T02:04:50
2017-08-24T02:04:50
null
UTF-8
Python
false
false
1,681
py
from Paths_Module import * exec(identify_file_str) for _name in [ 'pts_plot','img','purpose','name','xyz_sizes','data_type','x','y', 'xmin','ymin','xmax','ymax','xscale','yscale','floats_to_pixels', 'pixels_to_floats','ysize','xsize','lines_plot','color', 'reject_run', 'left', 'out1_in2', 'dic', 'name', 'tes...
[ "karlzipser@berkeley.edu" ]
karlzipser@berkeley.edu
7540b3442e53b36dbb55bce5a3c058d967207818
296d4fec38b2a5ec2f4eb402d1b2145980dd184b
/aliens.py
ac6d5f3a8d3bb0c5203dcb6a7cf851111dbd07b3
[]
no_license
RayGutt/python
9464ae7c63850240df58ff78c6050bc6e1d35b3e
a9b68d43923f13b58e7d59fdabf649820d48bd52
refs/heads/master
2020-11-27T01:17:57.136062
2020-01-22T14:36:25
2020-01-22T14:36:25
229,254,199
0
0
null
2020-01-05T19:47:27
2019-12-20T11:39:53
HTML
UTF-8
Python
false
false
844
py
alien_0 = {'color': 'green', 'points': 5} alien_1 = {'color': 'yellow', 'points': 10} alien_2 = {'color': 'yellow', 'points': 15} aliens = [alien_0, alien_1, alien_2] for alien in aliens: print(alien) print("_________") # Make an empty list for storing aliens. aliens = [] # Make 30 green aliens. for alien_number ...
[ "le.caribou@gmail.com" ]
le.caribou@gmail.com
a232ab5e7b7b3938334e7d69911f01ae956a17eb
4fdaa61e2fb2d320a0903e17024598c6a67ab0fb
/python/Vaav/kitchen.py
9ffefc461390bce99d81d0b9e5536c9669c10b11
[]
no_license
khans/ProgrammingAndDataStructures
10d5cd5f30f703298ba132be4dfba828f3a0e9e1
58c1d822fa5eab17485369bc40dd1376db389f44
refs/heads/master
2021-01-25T14:03:40.616633
2018-06-19T23:02:44
2018-06-19T23:02:44
123,643,607
0
0
null
null
null
null
UTF-8
Python
false
false
894
py
from collections import deque,defaultdict class Table: capacity = 0 availability = True occupancy = 0 def __init__(self,number): self.number = number def addOccupant(self): self.occupancy += 1 self.availability = False def setCapacity(self,capacity): self.capacity = capacity de...
[ "isafakhan@gmail.com" ]
isafakhan@gmail.com
7fbc8d5ca1d93c1ff42c22beefc7772cb15d39ca
2f8f8171b3b996b0c866ede72367ec26f64eae39
/sampleproject/book/BeginningPython3_O_REILLY/chapter10/10-8.py
659dc821caed89f2f69b939227a7fca816939de1
[]
no_license
kabaksh0507/exercise_python_it-1
da46edce09301b03a5351ee1885fb01eb69d8240
2b6c80a79494c9981e51bd03696c3aa19d6625ec
refs/heads/main
2023-03-04T03:12:44.188468
2021-02-08T08:55:36
2021-02-08T08:55:36
337,014,697
0
0
null
2021-02-08T08:57:30
2021-02-08T08:57:30
null
UTF-8
Python
false
false
169
py
from datetime import date birth_day = date(1987, 8, 9) print(birth_day) fmt = 'year = %Y , month = %B , day = %d , day of the week = %A' print(birth_day.strftime(fmt))
[ "kazkitou9080@gmail.com" ]
kazkitou9080@gmail.com
597f6e44b90374e56fd32df848bc609cc1e37273
733496067584ee32eccc333056c82d60f673f211
/idfy_rest_client/models/signer_info.py
be68e6b47d5cff31143fcbe749d6914360bfe06d
[ "MIT" ]
permissive
dealflowteam/Idfy
90ee5fefaa5283ce7dd3bcee72ace4615ffd15d2
fa3918a6c54ea0eedb9146578645b7eb1755b642
refs/heads/master
2020-03-07T09:11:15.410502
2018-03-30T08:12:40
2018-03-30T08:12:40
127,400,869
0
0
null
null
null
null
UTF-8
Python
false
false
3,191
py
# -*- coding: utf-8 -*- """ idfy_rest_client.models.signer_info This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io ) """ import idfy_rest_client.models.mobile import idfy_rest_client.models.organization_info class SignerInfo(object): """Implementation of th...
[ "runes@unipluss.no" ]
runes@unipluss.no
bf6f30ccfa37f9d4acc212e1f4ec33d7b4457052
09fd456a6552f42c124c148978289fae1af2d5c3
/Greedy/1282.py
0aeb767815ec62b1439482c75e3f15c26f9a4fc9
[]
no_license
hoang-ng/LeetCode
60b4e68cbcf54cbe763d1f98a70f52e628ab32fb
5407c6d858bfa43325363503c31134e560522be3
refs/heads/master
2021-04-10T11:34:35.310374
2020-07-28T10:22:05
2020-07-28T10:22:05
248,932,393
0
0
null
null
null
null
UTF-8
Python
false
false
1,391
py
# 1282. Group the People Given the Group Size They Belong To # There are n people whose IDs go from 0 to n - 1 and each person belongs exactly to one group. Given the array groupSizes of length n telling the group size each person belongs to, return the groups there are and the people's IDs each group includes. # You ...
[ "hoang2109@gmail.com" ]
hoang2109@gmail.com
a728af285352f2bc6175af70b01b5f0761313a71
acf5a0ea75b92eb8d082f04961a7646d8ccf7b32
/passpie/database.py
cf67372c689b4ec9ef0d8045fd5348f847a064c1
[ "MIT" ]
permissive
mauriciovieira/passpie
6f9c98ba086bfe10a9d2c964c473507feba22586
bd0f5cca6ce12fc4469f4007199bef7ab3b8980e
refs/heads/master
2021-01-18T08:56:23.853489
2016-01-26T07:03:26
2016-01-26T07:03:26
50,439,403
0
0
null
2016-01-26T15:49:43
2016-01-26T15:49:43
null
UTF-8
Python
false
false
3,841
py
from datetime import datetime import logging import os import shutil from tinydb import TinyDB, Storage, where, Query import yaml from .utils import mkdir_open from .credential import split_fullname, make_fullname class PasspieStorage(Storage): extension = ".pass" def __init__(self, path): super(Pa...
[ "marcwebbie@gmail.com" ]
marcwebbie@gmail.com
11fad38dc34588ed44dd250c8b3bee034cee5107
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03495/s959914177.py
79888ecf7a1c1e5617d415a8a5f3fbe869a319b8
[]
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
206
py
from collections import Counter N,K=map(int,input().split()) A=list(map(int,input().split())) c = Counter(A) val = sorted(c.values()) if len(val) <= K: print(0) exit() print(sum(val[:len(val)-K]))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
9728d3469911e999ed53abd170b3c8608947e880
caaf9046de59559bb92641c46bb8ab00f731cb46
/Configuration/Generator/python/Upsilon1SToMuMu_forSTEAM_13TeV_TuneCUETP8M1_cfi.py
eaeffad1236fe5b17d942a6e9bfb79db3a17feaa
[]
no_license
neumeist/cmssw
7e26ad4a8f96c907c7373291eb8df205055f47f0
a7061201efe9bc5fa3a69069db037d572eb3f235
refs/heads/CMSSW_7_4_X
2020-05-01T06:10:08.692078
2015-01-11T22:57:32
2015-01-11T22:57:32
29,109,257
1
1
null
2015-01-11T22:56:51
2015-01-11T22:56:49
null
UTF-8
Python
false
false
3,453
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import * source = cms.Source("EmptySource") generator = cms.EDFilter("Pythia8GeneratorFilter", pythiaPylistVerbosity = cms.untracked.i...
[ "you@somedomain.com" ]
you@somedomain.com
0a3953d0402b818210f35ac3401f274eb0d96b78
cae8adc520ee71ffd9cfc82418152b4ec63f9302
/template_wsgi/demo1.py
98b1b0acbce69b38b641792d1f5dcb3850bfeb56
[]
no_license
dong-c-git/WSGIServer
55111c04f4bbefe239949ddaea16c71221b7f795
1f0b58977e2a951f3c6dec335854dd9d6e31cdfd
refs/heads/master
2020-08-01T17:03:30.307962
2019-11-09T01:45:30
2019-11-09T01:45:30
211,054,455
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
#coding:utf-8 import time def application(environ,start_response): status = '200 OK' response_headers = [('Content-Type','text/html')] start_response(status,response_headers) return str(environ)+'==Hello world from a simple WSGI application!-->%s\n'%time.ctime()
[ "dc111000@hotmail.com" ]
dc111000@hotmail.com
f8202764eacbf21b84e1afab879c8f6bea7c9820
ec6f83a3636fdb0d6f2266c56b58ac294eb2a945
/ntut python/associationRule.py
5c174b680a9cb0dfb518b5d31898b1cfb5313f2c
[]
no_license
jack20951948/Python-Learning
f65c2aacea6cbe61a8be2539f2959202546adb7d
d683790ba47b73c6360f5f804700c664d40777c9
refs/heads/main
2023-06-26T03:43:47.395088
2021-07-18T08:00:28
2021-07-18T08:00:28
387,111,521
0
0
null
null
null
null
UTF-8
Python
false
false
4,601
py
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import pandas as pd import networkx as nx from apyori import apriori #pip install apriori from wordcloud import WordCloud #pip install wordcloud def testTensorflow(): hello = tf.constant('hello tensorflow!') sess = tf.Session(...
[ "j20951948@gmail.com" ]
j20951948@gmail.com
fbee478ecc1dd477bdebf5a09cd472cb2d0ebc20
c42a085521cec895fac0021eb1638d6f077eadf7
/PYTHON_FUNDAMENTALS_May_August_2020/Exersice_Objects_And_Classes_26_06_2020/Storage.py
88a44072c4d4c8e1b26fab959fea06bf9c937ddf
[]
no_license
vasil-panoff/Python_Fundamentals_SoftUni_May_2020
f645ce85efa6db047b52a8b63d411d2e5bd5bd9a
daf1a27ff1a4684d51cf875ee0a4c0706a1a4404
refs/heads/main
2023-01-06T22:20:30.151249
2020-11-03T22:56:24
2020-11-03T22:56:24
309,818,123
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
class Storage: def __init__(self, capacity): self.capacity = capacity self.storage = [] def add_product(self, product): if len(self.storage) < self.capacity: self.storage.append(product) def get_products(self): return self.storage storage = Storage(4) storage....
[ "vasil.panov@gmail.com" ]
vasil.panov@gmail.com
0cd87e0d9eca96df30c68ee957e543ea4bf80730
08ee36e0bb1c250f7f2dfda12c1a73d1984cd2bc
/src/mnistk/networks/linearrelu_19.py
7b3a00c5cb35632a17f95048599dcdc9247a02b4
[]
no_license
ahgamut/mnistk
58dadffad204602d425b18549e9b3d245dbf5486
19a661185e6d82996624fc6fcc03de7ad9213eb0
refs/heads/master
2021-11-04T07:36:07.394100
2021-10-27T18:37:12
2021-10-27T18:37:12
227,103,881
2
1
null
2020-02-19T22:07:24
2019-12-10T11:33:09
Python
UTF-8
Python
false
false
1,091
py
# -*- coding: utf-8 -*- """ linearrelu_19.py :copyright: (c) 2019 by Gautham Venkatasubramanian. :license: MIT """ import torch from torch import nn class LinearReLU_19(nn.Module): def __init__(self): nn.Module.__init__(self) self.f0 = nn.Linear(in_features=784, out_features=75, bias=F...
[ "41098605+ahgamut@users.noreply.github.com" ]
41098605+ahgamut@users.noreply.github.com