blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
cd2e908fa2051c2286f673c0666bb709854d6945
564d6a4d305a8ac6a7e01c761831fb2081c02d0f
/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_06_01/aio/operations/_private_endpoint_connections_operations.py
1bc316723af7557d717797d60243efab5a65bdf7
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
paultaiton/azure-sdk-for-python
69af4d889bac8012b38f5b7e8108707be679b472
d435a1a25fd6097454b7fdfbbdefd53e05029160
refs/heads/master
2023-01-30T16:15:10.647335
2020-11-14T01:09:50
2020-11-14T01:09:50
283,343,691
0
0
MIT
2020-07-28T22:43:43
2020-07-28T22:43:43
null
UTF-8
Python
false
false
18,249
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
paultaiton.noreply@github.com
23d85ee54462c005ae289bf372738995317e1cce
a17940af2be6e7c67264174faecdefa1a3105f44
/stock/strategy/StrategyManager.py
b8985f99038058a64856911a1c69267cdb164118
[]
no_license
jacegem/stock-py
ea1c338ab3415b87f7649168e62d4f2b617fd9d2
74febf21206638940312b158543513cbcd8fc73d
refs/heads/master
2021-01-25T11:44:10.638863
2017-06-19T06:55:10
2017-06-19T06:55:10
93,945,070
0
1
null
null
null
null
UTF-8
Python
false
false
843
py
from .BuyRA_5 import BuyRA_5 from .BuyGC_5 import BuyGC_5 from .SellDC_5 import SellDC_5 from .SellMAX_10 import SellMAX_10 from .BuySupportLevel_3M import BuySupportLevel_3M from .BuyMomentum import BuyMomentum from .SellMomentum import SellMomentum class StrategyManager: def __init__(self): self.buy_ma...
[ "jacegem@gmail.com" ]
jacegem@gmail.com
25f5826c6fa77f2baeb027c010aae4dd3814867b
439468d3f5f0fdf85f591a37f3dc7cea0ffcc0f5
/trade/migrations/0001_initial.py
a3e40353ae8464c244c2af2c377f1c069e994d0e
[ "MIT" ]
permissive
moewahed/trade_cycle
b8b2b371e2ca1a0f4d7af27201838940d81e2c9c
8ace51f08781a568ef087234b65a7864236dfcaf
refs/heads/master
2022-12-02T17:08:01.808874
2020-08-17T01:21:25
2020-08-17T01:21:25
288,055,227
0
0
null
null
null
null
UTF-8
Python
false
false
1,956
py
# Generated by Django 2.2 on 2020-08-16 16:23 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
[ "moewahed@gmail.com" ]
moewahed@gmail.com
95d7d954bf9140193d8d1c74e59af032b1efdcaa
b82af11310120c28b1897bf8f8003198cdeebe05
/AIShooter/classes/Game.py
51bdadee16d47c76d745e85f541897fa179ae720
[ "Apache-2.0" ]
permissive
SanteriHetekivi/AIShooter
72fb487ea51a26098e0326f595b5af76d5f032f0
f73461c9075cf5b0789679782fe21dee54f2775e
refs/heads/main
2023-02-05T21:46:27.545650
2020-12-19T16:53:26
2020-12-19T16:53:26
322,720,277
0
0
null
null
null
null
UTF-8
Python
false
false
3,869
py
from __future__ import annotations import pygame import math # Exceptions from .Exceptions.End import End # Helpers from .Helpers.Cords import Cords from .Helpers.Timer import Timer # Elements from .Elements.Screen import Screen from .Elements.Player import Player class Game(): """Game class that houses main ...
[ "santeri@hetekivi.com" ]
santeri@hetekivi.com
99d281da6484b8a817d5c5fbe357d4afde32a498
6627c834ec5bc1c559866bb5f0cb7b7211521c54
/covid/urls.py
5acb882d8c120637efb3886ae12ec5bc3646d423
[ "MIT" ]
permissive
care2donate/care2donate
955c182dd0db617f7b442dd27fd6ff029dab6f70
5f99e7169653a96b6e6db44f90afee17758a4480
refs/heads/main
2023-05-14T08:26:55.745208
2021-06-07T18:38:19
2021-06-07T18:38:19
366,801,553
2
0
null
null
null
null
UTF-8
Python
false
false
155
py
from django.urls import path from covid.api.home import CovidHomeAPIView urlpatterns = [ path('', CovidHomeAPIView.as_view(), name='covid home'), ]
[ "arjuntheprogrammer@gmail.com" ]
arjuntheprogrammer@gmail.com
24564c4712ce48a666376c8554ce77319d247e09
bb3f59785ab029ed3545110ef8a2a0462160d7e8
/Train/train.py
cb73248de7546c4c100ee03a5f74d86565d8ae70
[]
no_license
Taoooo9/SMP2020v1
638599092ccc6f0fb5df92b015e6a180de6270f0
1cc232921bf00557961111d8625ef98bad1f307c
refs/heads/master
2023-01-06T19:46:02.312998
2020-10-29T07:56:29
2020-10-29T07:56:29
308,256,137
1
0
null
null
null
null
UTF-8
Python
false
false
10,604
py
import json import torch import numpy as np import os import time import torch.nn as nn from transformers import AdamW, get_linear_schedule_with_warmup from DataProcessing.data_batchiter import create_tra_batch, create_eval_batch from Model.loss import * from Model.vat import VATLoss def train(bert_model, domain_mo...
[ "taoooo9@gmail.com" ]
taoooo9@gmail.com
88a5a1067b423e15e1d15501ce064c6b96938b33
5ed3c397cd5ed7969eb4800f3fd24cc237f0ee4a
/Face Eye Nose Smile detection/face_eye_smile detection.py
39dc666c53ea2ea4dda468198b2eee6ad2c2cb68
[]
no_license
Abheenav/Computer-Vision-projects
c8b0f4855583725282f42515f5642d4b1c1692d8
a9207e21dc61ff2c05a3270e8d200cc94a1c65c7
refs/heads/main
2023-01-28T01:56:29.023595
2020-12-11T15:06:16
2020-12-11T15:06:16
320,330,021
1
0
null
null
null
null
UTF-8
Python
false
false
1,128
py
import cv2 import numpy as np face_cascade = cv2.CascadeClassifier("haarcascade_frontalface_default.xml") eye_cascade = cv2.CascadeClassifier("haarcascade_eye.xml") smile_cascade = cv2.CascadeClassifier('haarcascade_smile.xml') cap = cv2.VideoCapture(0) while True: ret, img = cap.read() ...
[ "noreply@github.com" ]
Abheenav.noreply@github.com
60607275cfa0745e5d06c72bd59b9cdb435ba236
8644a009e5d54f4fe61d2c69709550f6beb6af43
/templates/venv/bin/pip3
05651f1e028c606f522533377950a467dbd2245c
[]
no_license
AmiAsmarino/RegWebApplication
3cbbbb783022ead604d8f4e6303a494f881c6b86
464cbc614b5a4788fbade15cd22dda2fac816832
refs/heads/master
2020-04-25T00:23:10.720808
2019-03-25T11:59:13
2019-03-25T11:59:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
271
#!/home/amelonbetty/Desktop/lecture0/Taxi-web-application/templates/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "aha176@post.uit.no" ]
aha176@post.uit.no
25ecb94f9f0e5d019fb5f3cf19a40f75d0a454f4
4565e3096be7a0948419ff7c272d3bd80152f014
/contrib/bitrpc/bitrpc.py
d8db628ccefd2e605bd689861ffbe55b0f5b7250
[ "MIT" ]
permissive
DIBBITSDEV/DIBBITS-src
1b8f47051ba12592fc0ebd5d97a16da467948927
852e38e40a79f5dacf52def4dda65951cb74d388
refs/heads/master
2020-12-24T16:43:03.797360
2015-06-17T00:06:19
2015-06-17T00:06:19
37,562,552
0
0
null
null
null
null
UTF-8
Python
false
false
7,835
py
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:7332") else: access = Ser...
[ "theDIBBITSdev@gmail.com" ]
theDIBBITSdev@gmail.com
af35bbaaee6c3c655a02a6c2c1e4ad644e4079eb
a047e29d8ac746e6ff90ee2b46c7ae5ced01b091
/src/lightgbm_pred_fare.py
4c171d8ad48ab23921208927dc671c625e890771
[]
no_license
xf37/nyc-taxi-fare
e637948e251bcfcbe1047c2704eff127158d6884
89d76acff34fecace6e82ecf2f71fb41c686d2a6
refs/heads/master
2020-04-26T16:15:35.740797
2019-05-16T23:20:59
2019-05-16T23:20:59
173,672,726
0
0
null
null
null
null
UTF-8
Python
false
false
3,766
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import pandas as pd from sklearn.model_selection import train_test_split import lightgbm as lgb import gc from sklearn.externals import joblib ############################################################################### ## set up parameter ############################...
[ "noreply@github.com" ]
xf37.noreply@github.com
7b6c76290c750c25b1d931dea7a3066b227643ae
801ee3ece7b42e5032f68a5a80b7d9145b1dce01
/Classification/DecisionTrees/treePlotter.py
eeff537f0e08575850ff199fefaee90f2cc76ace
[]
no_license
lakshmimohandevt85/MachineLearningInAction
a19423dcf2b1fc9fd1b193623f0b3052445f56ab
f658c3d957a1207ae15b46ff36c09b6276bb35aa
refs/heads/master
2020-03-16T09:04:28.701206
2014-12-11T23:12:55
2014-12-11T23:12:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,412
py
import matplotlib.pyplot as plt decisionNode = dict(boxstyle="sawtooth", fc="0.8") leafNode = dict(boxstyle="round4", fc="0.8") arrow_args = dict(arrowstyle="<-") def plotNode(nodeText, centerPt, parentPt, nodeType): createPlot.ax1.annotate(nodeText, xy=parentPt, xycoords='axes fraction', ...
[ "amine.benhalloum@gmail.com" ]
amine.benhalloum@gmail.com
0db7fdafd65677bdcb62704e84103ac5f931f197
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-dms-enterprise/aliyunsdkdms_enterprise/request/v20181101/DeleteProxyAccessRequest.py
50c17619b4d0a9effdb2c3f786c49b901fd3ef1d
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
1,659
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
9ea2a48ff14efbd8b2f62bffba30f9d5e9e98747
4f4846bf58fd1eeaa491326d699a8e07e471faed
/cart/migrations/0001_initial.py
157dc104032331dc839c3c435ba34d2a06fda0dc
[ "MIT" ]
permissive
Code-Institute-Submissions/coachs-plan-1
f3d7c1ceccd8b1ce7c6d9a01bec576a748f45ff6
f522ed57436970cabf8007de3bd6cd9f2931e752
refs/heads/master
2023-01-15T10:15:30.409617
2020-11-22T18:43:43
2020-11-22T18:43:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,811
py
# Generated by Django 3.1.1 on 2020-10-25 11:38 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ('plans', '0001_initial'), migrations.swappable_depen...
[ "ronanmcclelland@gmail.com" ]
ronanmcclelland@gmail.com
02697ca8ee4df1a5ee8dcd1f41edb051ec9f8c45
9fcbc1abf7d512d61164f6807c2a3206a9e45aa9
/Wolptinger/utils.py
0eb78c3b6213d133aac5f9bdbb2bb79e7f7f49e6
[ "MIT" ]
permissive
siriusctrl/Storm-auto-scheduler
2b862ec662c6284b8d6cbf49cdef9cc6239aa008
36fddf50e51b023d346e44b979e50c47f46fb177
refs/heads/main
2023-08-31T20:26:14.359968
2021-07-08T02:51:00
2021-07-08T02:51:00
359,676,451
0
1
null
null
null
null
UTF-8
Python
false
false
2,536
py
import os import torch from torch.autograd import Variable USE_CUDA = torch.cuda.is_available() FLOAT = torch.cuda.FloatTensor if USE_CUDA else torch.FloatTensor # colorful print functions def prRed(prt): print(f"\033[91m {prt}\033[00m") def prGreen(prt): print(f"\033[92m {prt}\033[00m") def prYellow(prt): print(f"\0...
[ "morryniu123@gmail.com" ]
morryniu123@gmail.com
8fedd093e85de40992e82add29e5672a2ed72652
a63d907ad63ba6705420a6fb2788196d1bd3763c
/src/datamgr/datamanager/dmonitor/monitor/process_delay_alert.py
26e1cc4e376be900f097e0a1a7f157b7052bad35
[ "MIT" ]
permissive
Tencent/bk-base
a38461072811667dc2880a13a5232004fe771a4b
6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2
refs/heads/master
2022-07-30T04:24:53.370661
2022-04-02T10:30:55
2022-04-02T10:30:55
381,257,882
101
51
NOASSERTION
2022-04-02T10:30:56
2021-06-29T06:10:01
Python
UTF-8
Python
false
false
17,748
py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
[ "terrencehan@tencent.com" ]
terrencehan@tencent.com
867fded854c844c11bfafb50702d85bc8070ece4
e6e2172f39ecbeca5bdf599887cf3bc95479c029
/model.py
fcee46a3b27066f38cfcc230726b44c82711911a
[]
no_license
oscarsuen/vae
b78bb12aa523d84e6e9942027f2fb8c9376453bf
4606c3be010324d2b98e454b88e86bfad94af07c
refs/heads/master
2022-11-09T18:44:33.795240
2020-07-01T04:41:37
2020-07-01T04:41:37
276,277,856
0
0
null
null
null
null
UTF-8
Python
false
false
2,862
py
import tensorflow as tf import tensorflow_datasets as tfds import tensorflow_probability as tfp tfk = tf.keras tfkl = tfk.layers tfpl = tfp.layers tfd = tfp.distributions tf.enable_eager_execution() mnist, mnist_info = tfds.load(name='mnist', with_info=True, as_supervised=False) def _preprocess(sample): image = t...
[ "suen.oscar@gmail.com" ]
suen.oscar@gmail.com
24ac4bd5c923e9550e5ca2d112098516d7300877
90ccca2223ce2c17e9257495a3cd1fdc9bf2ddae
/blog/itblog/aic/urls.py
500123864531af51cedc00711e76325632a32796
[]
no_license
iTenis/itennis_webpy
9a3688b36030a3922062b85fd4df477c15f17490
d17a6bf8ecfe70091d62a0c6f3ae45a6da51bf6a
refs/heads/master
2020-03-25T21:12:09.739526
2018-08-09T16:00:05
2018-08-09T16:00:05
144,164,637
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
from django.conf.urls import url from . import views from django.views.generic.base import TemplateView urlpatterns=[ url(r'^$', views.Index), ]
[ "itennishy@qq.com" ]
itennishy@qq.com
2e9af2e99de997feb66abeffd26bd07c3bf4add5
0d9e8a57a523e145ccd2deb9413bfd6c3ea22232
/compare-skan-fiji1.py
600b2672e56c9b4a785c61eb51858a9ef9396178
[ "BSD-3-Clause" ]
permissive
jni/useful-histories
8e9cb3b6d026ebbe3e88a266c113dbe9bb675ca7
6a3e5a4bf831d97ffbb5b067d80f64ff6625306d
refs/heads/main
2023-04-08T12:34:28.923087
2023-04-04T10:21:05
2023-04-04T10:21:05
19,419,904
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
# IPython log file from skimage import io spacing = [3.033534 * 3, 3.033534, 3.033534] skel1 = io.imread('OP_1_Rendered_Paths_thinned.tif') from skan import csr df = csr.summarise(skel1.astype(bool), spacing=spacing) df2 = pd.read_excel('OP_1-Branch-information.xlsx') bins = np.histogram(np.concatenate((df['branch-di...
[ "juan.n@unimelb.edu.au" ]
juan.n@unimelb.edu.au
0e30fca07b05c6b52273e61a01c5e28d0c63bcca
02a9f866dcea377c25b1894628f203700ea9909f
/p02_bulls_cows.py
2e048e67e21077af47332936dcc57cc8f01eb175
[]
no_license
humpomar/pa_proj2
39bc66dfa153fe70526f9a6784b5f1039018df05
8b5aaf3c7a85de76e3226d5458d0e98f40f33e37
refs/heads/master
2022-11-26T15:13:01.647726
2020-07-31T19:44:21
2020-07-31T19:44:21
275,661,442
0
0
null
null
null
null
UTF-8
Python
false
false
4,715
py
from random import randint from time import time line = "*" * 70 def main() -> None: intro() number_of_digits = how_many_digits() total_rounds, total_points, total_time, total_attempts = 0, 0, 0, 0 active = True while active: round_points, round_time, round_attempts = game_round(number_...
[ "humpomar@gmail.com" ]
humpomar@gmail.com
0d1bdfd550423442380a1ddcf9fc6a915ee42eb2
9b20743ec6cd28d749a4323dcbadb1a0cffb281b
/12_Xgboost_with_Python/02/horse_colic_missing_imputer.py
96a95a5b6d0d200d1203178ab266141871a71bb4
[]
no_license
jggrimesdc-zz/MachineLearningExercises
6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178
ee265f1c6029c91daff172b3e7c1a96177646bc5
refs/heads/master
2023-03-07T19:30:26.691659
2021-02-19T08:00:49
2021-02-19T08:00:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,306
py
# binary classification, missing data, impute with mean import numpy from pandas import read_csv from sklearn.impute import SimpleImputer from sklearn.metrics import accuracy_score from sklearn.model_selection import train_test_split from sklearn.preprocessing import LabelEncoder from xgboost import XGBClassifier # lo...
[ "jgrimes@jgrimes.tech" ]
jgrimes@jgrimes.tech
8e5fb965f10bfc86c9000fb0abbaa39ad1b9528d
b9b83b870b00be690cd69521d1eddc74630301af
/mf6/test048_lgr3d_unconfB/postprocess.py
f97b3a3f0fb37d0d9a0a0d01474a818c5aaad3ec
[]
no_license
dsimonMMA/modflow6-testmodels
758d213d1e482a49789bb757623eed65cee66526
88ebaa9c0c983e91eb5f327e2f3b7729e20ee425
refs/heads/master
2023-05-31T20:28:34.079344
2021-06-24T21:34:13
2021-06-24T21:34:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,926
py
import os import sys import numpy as np import matplotlib import matplotlib.pyplot as plt matplotlib.rcParams['figure.figsize'] = (20.0, 16.0) import flopy import flopy.utils.binaryfile as bf # mf6 pth = os.path.join('.') # mf6 parent hnoflo = -999. headfile = os.path.join(pth, 'parent.output.hds') headobj = bf.He...
[ "jdhughes@usgs.gov" ]
jdhughes@usgs.gov
900d504e9740a80146b6859ae0bc27cfed4f315a
388a83be90c835d1d0e1808c94109bcf89a8a384
/08_Stability/generate_hale_stability.py
9994f0e579638bfc44d694bfae978ad022374af4
[]
no_license
ngoiz/hale-mpc
1d67e43c1a4222d058a9c4c5f5a21bbd346eb986
6aaab3d4c47faffce89de1d5234fdd8cc78df6ff
refs/heads/master
2023-01-09T13:51:41.618055
2020-11-07T16:33:22
2020-11-07T16:33:22
281,190,117
0
0
null
null
null
null
UTF-8
Python
false
false
42,262
py
#! /usr/bin/env python3 import h5py as h5 import sharpy.sharpy_main import numpy as np import os import sharpy.utils.algebra as algebra # alpha_deg = 0 for alpha_deg in [4.]: case_name = 'simple_HALE_uvlm_alpha{:04g}'.format(alpha_deg * 100) route = os.path.dirname(os.path.realpath(__file__)) + '/' # EXE...
[ "ng213@ic.ac.uk" ]
ng213@ic.ac.uk
d6bc1b786c3c3972df4b12cc22656baf7af2b670
b5b665097ef54459d85d4cc4bf0748f885a1ccdc
/ml-for-trading/04-incomplete-data/01-fillnan.py
7623adc1227d9cbc1d8c200f4efe3762f064f6ca
[]
no_license
dylanjorgensen/financial-engineering
76d769723fcc4eb26601e2abab9bcb8f60a49ef3
f66b47ee8fcc15b599eab3af5040975b1ec7add2
refs/heads/master
2021-01-13T07:28:43.790685
2016-10-19T05:18:34
2016-10-19T05:18:34
71,321,116
2
1
null
null
null
null
UTF-8
Python
false
false
1,931
py
"""Fill missing values""" import numpy as np import pandas as pd import matplotlib.pyplot as plt import os def fill_missing_values(df_data): """Fill missing values in data frame, in place.""" ########################################################## pass # TODO: Your code here (DO NOT modify anything e...
[ "dylan@dylanjorgensen.com" ]
dylan@dylanjorgensen.com
b87ba1691e9a6848f0ea54cfff155612e89f2ccf
66fa2059c1aaddf2141318a867919da404085d9a
/ch8/9-4.py
5567e3acd75bbc46bb85d0f89945ed81d9e88bde
[]
no_license
DX-ZZ/218341
c39733c21bd5f9234196100eaa776b3ddb71fe2a
7c47544ebe9841b6dd16e06d678d29e0c39edda0
refs/heads/master
2022-11-09T20:05:21.562849
2020-06-24T07:16:56
2020-06-24T07:16:56
274,601,632
0
0
null
null
null
null
UTF-8
Python
false
false
1,730
py
#9-4就餐人数 class Restaurant: def __init__(self,restaurant_name, cuisine_type): self.restaurant_name = restaurant_name self.cuisine_type = cuisine_type self.number_served = 0 def describe_restaurant(self): print("Restaurant Name:" + self.restaurant_name.title()) print("Cuis...
[ "648873230@qq.com" ]
648873230@qq.com
d98f23952fc745b69292d4f2ba0b6e6226c561f9
d98268be398fdaa8de4cdafc5051deb690fd250b
/data_processors/team_hash.py
1071bc1ef214f36db62e39354afde34504c35a68
[]
no_license
3dankateers/league
991181f5d7ff1fd453c89d851f525e7afe854830
93f5bd4a89472c974d0b51ac8a10162913c732eb
refs/heads/master
2021-05-07T18:07:51.858240
2018-08-09T07:09:28
2018-08-09T07:09:28
108,783,347
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
## returns hash value from a team class TeamHash: ## returns hash key from list of summoner ids @staticmethod def calc_hash_key(summoners): product = 1 for s in summoners: product *= long(s) return product
[ "andr1357@gmail.com" ]
andr1357@gmail.com
ca12a9af59ce7ffd8ee1dfc65f7a3c6fd730579d
5793ca31f8e52ccf0985c060017f65465da2392e
/network.py
a7d84ffcb620a988b6ab4a9f0df5c8b61f0cde65
[ "MIT" ]
permissive
aliyildiz/networkScan
16170978c48905a7f5d269aea0bc351215710995
a66e32c2db246f7d04dc20b3d391f0170e59dbea
refs/heads/master
2021-09-04T15:33:25.582916
2018-01-19T22:56:46
2018-01-19T22:56:46
112,882,785
0
1
null
null
null
null
UTF-8
Python
false
false
2,492
py
from scapy.all import * import sys import configparser config=configparser.ConfigParser() config.read('config.conf') mac=[] ip=[] def printConf(): for i in range(len(mac)): config['ARP'][ip[i]]=mac[i] i=i+1 with open('config.conf','w') as configfile: config.write(configfil...
[ "aliyildiz@outlook.com.tr" ]
aliyildiz@outlook.com.tr
9e688f5ff91456dc4ca53fe45fab7b9f51f2ada9
09059f9b1a52482257e3acf3fa21e3daca45bf89
/src/agents.py
e3ee7a762cfb8bec1004c1b3e13ae830c844e2fd
[]
no_license
HuangHam/CogSci2021-Epistemic-Reasoning
71faec912dacfdbeffcf97198b5d14618b2c26e0
ebf3d707a53be153968ea074f11d74cc0f592b40
refs/heads/main
2023-04-30T11:44:02.863469
2021-05-17T18:47:39
2021-05-17T18:47:39
368,110,338
0
0
null
null
null
null
UTF-8
Python
false
false
60,695
py
import numpy as np import networkx as nx import itertools as it from scipy.special import logsumexp from src.epistemic_structures import * import src.utils as f ''' All CompMods written as python class object Specific CompMod inherits a more general model category All models must inherit task_parameters ''' class tas...
[ "hamhuang@sas.upenn.edu" ]
hamhuang@sas.upenn.edu
f37d3bef9f5d2d1c9b7ed49e95a0cd213511193a
93a4023cc405b40cfc0be2e1b025ac7ed5b390fb
/benchmark/spark_benchmark.py
b310cec04a1f2563fc77a4367035b65c718375bd
[ "Apache-2.0" ]
permissive
autumnli11/data_model-1
e4a84778ab8c6fa27231405011d839ff96948ffb
c71b8272cf71f19504e4fcfa04b382ce9e68853a
refs/heads/main
2023-05-30T20:47:01.989647
2021-06-06T21:40:19
2021-06-06T21:40:19
337,819,677
1
0
Apache-2.0
2021-02-10T18:43:12
2021-02-10T18:43:11
null
UTF-8
Python
false
false
7,059
py
import time import copy from resource import getrusage as resource_usage, RUSAGE_SELF from time import time as timestamp from pyspark.sql import SQLContext from pyspark.context import SparkContext from pyspark.sql.session import SparkSession import pyspark import os from collections import defaultdict import statistics...
[ "qiushiautumnli@gmail.com" ]
qiushiautumnli@gmail.com
ea22e83cfc6232863a3aae1c2e2bd11e9e5be067
450afb9a0f57a24ce757f4c516b7966d4348d76d
/simple_port_scan/send_mail.py
50b346332dde715e9781ba13207d062f709591fe
[]
no_license
guytet/python
ea23566d869f8a12c235e2eba798428f2454e63e
46e07812b72ff263af63d28c413b24fef82d7281
refs/heads/master
2023-01-21T06:26:38.690185
2020-12-02T22:36:47
2020-12-02T22:36:47
300,088,190
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
#!/usr/bin/python3 import smtplib sender = 'result@example.com' receivers = ['user@example.com'] message = """From: result_message <result@example.com> To: <admin@example.com> Subject: SMTP e-mail test This is a test e-mail message. """ try: smtpObj = smtplib.SMTP('mail.example.com', 25) smtpObj.sendmail(sen...
[ "none@none.com" ]
none@none.com
87e3f472aaa03d95be771c8bcd0f93978095e714
eb9d19d210c29109bced619fd662eebd185c5047
/server.py
05a98dc2a833a63dd4286097d6c9d852a0f0a558
[]
no_license
CTMObservatory/socketprog
4f9caae5d12834476cf113dae2de5a0a0246e494
1877e599359b7df6de761f3844643ab2e5df1e78
refs/heads/master
2021-06-22T14:30:47.951599
2020-11-28T00:00:10
2020-11-28T00:00:10
142,206,422
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
# Echo server program import socket HOST = '' # Symbolic name meaning all available interfaces PORT = 50007 # Arbitrary non-privileged port with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.bind((HOST, PORT)) s.listen(1) conn, addr = s.accept() with conn: ...
[ "martinberoiz@gmail.com" ]
martinberoiz@gmail.com
62e304b4c5c2a8c545f88a22d1219fb47bb47029
be3bc396b580975970a7f323b91229ed5d4aad1c
/dft_workflow/job_analysis/prepare_oer_sets/write_oer_sets.py
33dd033658982cd7b408c1f1a2f7e2cfa1241277
[ "MIT" ]
permissive
raulf2012/PROJ_IrOx_OER
813ee91139b45f47acb980d1ebfacdf87c364996
b79fc490f598a48e405819bd6a788ca6d4af440e
refs/heads/master
2023-06-23T22:48:25.695679
2023-06-09T22:34:41
2023-06-09T22:34:41
269,264,743
2
1
null
null
null
null
UTF-8
Python
false
false
10,274
py
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.4.2 # kernelspec: # display_name: Python [conda env:PROJ_irox_oer] * # language: python # name: conda-env-PROJ...
[ "raulf2012@gmail.com" ]
raulf2012@gmail.com
81652a7659ac61dfcb918c5f892b8dffd49bb4ba
313e77e2cad3e2f50f4fa625893bd6c5ff1145a1
/test_network.py
228c54581264c53562f9eedff4175b1c47d6463a
[]
no_license
saima-h18/Communication-Network-Designer
09de79bd692e5ecea76baaad7a6f49a0e1ab3c07
7f998581870e11dc0750a198983d162f0bf2e39d
refs/heads/master
2022-08-03T17:52:14.720256
2020-05-28T17:55:14
2020-05-28T17:55:14
255,208,235
0
0
null
null
null
null
UTF-8
Python
false
false
690
py
def prodofList(arr): # multiplies values in an array - useful for reliability prod = 1 for x in arr: prod *= x return prod rel_ring = [1-pow(1-0.97,2), 1-pow(1-0.96,3),1-pow(1-0.94,3), 1-pow(1-0.91,3), 1-pow(1-0.93,3), 1-pow(1-0.91,3)] # rel_ring = [0.99,0.93,0.96,0.96,0.94] RelofLoop =prodofLi...
[ "yubei.xiong@mail.mcgill.ca" ]
yubei.xiong@mail.mcgill.ca
f99f8b5423d85d36619ec720ba43ddadd424f923
b1185625f5e3124fafd6c59858a1913811de2f98
/communication_proj/communication_proj/wsgi.py
fa82aa9c19adf046f397c318322578917f1d03b0
[]
no_license
afeefebrahim/mentor_question_api
1715cf46b7f7db4c9d1e2afa61eba0db5eec40fb
9e53db7f92186a81dfe020716bdf714a1c4f15cc
refs/heads/main
2023-03-02T05:48:18.341945
2021-02-07T10:46:27
2021-02-07T10:46:27
334,694,003
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
""" WSGI config for communication_proj 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.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('D...
[ "afeefebrahim@gmail.com" ]
afeefebrahim@gmail.com
8a1fdc176ceeabc8bbcda6039924735abbe05278
881041fab1b4d05f1c5371efed2f9276037eb609
/tasks/nyc-clean-heat-dataset/depositor.py
9ccda5f3ab4625576905b380703235e9d1582d78
[]
no_license
ResidentMario/urban-physiology-nyc-catalog
b568f3b6ee1a887a50c4df23c488f50c92e30625
cefbc799f898f6cdf24d0a0ef6c9cd13c76fb05c
refs/heads/master
2021-01-02T22:43:09.073952
2017-08-06T18:27:22
2017-08-06T18:27:22
99,377,500
0
0
null
null
null
null
UTF-8
Python
false
false
354
py
import requests r = requests.get("https://data.cityofnewyork.us/api/views/8isn-pgv3/rows.csv?accessType=DOWNLOAD") with open("/home/alex/Desktop/urban-physiology-nyc-catalog/catalog/nyc-clean-heat-dataset/data.csv", "wb") as f: f.write(r.content) outputs = ["/home/alex/Desktop/urban-physiology-nyc-catalog/catalog/...
[ "aleksey.bilogur@gmail.com" ]
aleksey.bilogur@gmail.com
2f378ba27c80a7f7edbd143cb0147c840416c445
03595a5d109e0f7d986c295a9b8041070566eec7
/ch6/invest.py
3712053accde8a8bf4bba424cce7cf6fbf6905df
[ "MIT" ]
permissive
cjadeveloper/real-python-course-bundle
d46e0736d8af20872c1feadabe2e9b2abc424d57
ce73f48855884f1b9dfc12fee4c9ae89e3f8152f
refs/heads/main
2023-01-11T12:29:50.070390
2020-11-15T18:33:30
2020-11-15T18:33:30
311,988,975
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
# 6.5 Challenge: Track Your Investments def invest(amount: float, rate: float, years: int) -> None: """ Tracks the growing amount of an investment over time. An initial deposit, called the principal amount, is made. Each year, the amount increases by a fixed percentage, called the annual rate o...
[ "cjadeveloper@gmail.com" ]
cjadeveloper@gmail.com
015875c929cb49a5aa91a776ede8e35d232db0b7
0b532a85b4c31de38ae5e371619653c75a762e3e
/src/homepage/migrations/0075_auto_20181207_2109.py
70ccf40c80087f42cb13b0240abd32c490ea561f
[]
no_license
pirate765/howdyfinal
4fd13044d62d05de70ceecb3c6dacbff537ad96f
0860bdb05fe10e04d77bcf477b022c4ecb92d1d8
refs/heads/master
2020-04-21T07:03:24.952788
2019-02-23T18:51:20
2019-02-23T18:51:20
169,382,630
0
0
null
null
null
null
UTF-8
Python
false
false
1,628
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-12-07 21:09 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import tinymce.models class Migration(migrations.Migration): dependencies = [ ('homepage', '0074_auto_20181207_1715')...
[ "tusharblogger12@gmail.com" ]
tusharblogger12@gmail.com
5b8987f9171654c2c99e935901b1480eb604ff3c
0384edeb54c45a4542de8787a4761c7f89d91d9e
/step-two.py
13820ee14fe4d1a931bb5c6a0234f7030263f8cc
[]
no_license
seantstacey/SODA
3d1a3dcfb3810b520b85b6cc6ea1200b4d44abec
fff14e9680414f0fd346a49aea06ad6a65ef289c
refs/heads/main
2023-01-09T09:51:07.292704
2020-11-05T14:32:00
2020-11-05T14:32:00
303,754,096
1
0
null
null
null
null
UTF-8
Python
false
false
354
py
import cx_Oracle import myConnectInfo connection = cx_Oracle.connect(myConnectInfo.usrnm, myConnectInfo.psswd, myConnectInfo.dsn) print("Database version:", connection.version) results = connection.cursor() results.execute('select * from dept') print('\nDEPT table contents:') for row in results: print (row) r...
[ "noreply@github.com" ]
seantstacey.noreply@github.com
4e8dcedcb2657e3ee8afd64d9d8926a0c5640eb4
f00331853234b558dd007c5b1e047fe727a810d6
/forms/optical_bench_form1.py
22682d080671b0ded3b3e027a1e04e6feb833e86
[]
no_license
dl495/ss2165.github.io
6154a8590a782936c64e0e598def852baa59a827
5f0de710921a0108583cbd0f84e268b1c26ab63a
refs/heads/master
2020-12-24T09:53:11.740095
2015-08-25T13:20:44
2015-08-25T13:20:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,872
py
from anvil import * import physics import draw import math from slits import slits from single import single from grating import grating class Form1(Form1Template): R = 6 W = 0.3 x_stp = 0.0005 line_width = 0.001 def canvas_mouse_move (self, x, y, **event_args): # This method is called wh...
[ "ss2165@cam.ac.uk" ]
ss2165@cam.ac.uk
2abb05fd7b0c94ae2d1719952139711abc569be0
d60f90decccc98bf70f8b90ff6d661a8c753ef37
/Les2/2_2.py
575a3ddb08f54bd4a94498b220033a67bcdf18e1
[]
no_license
stephaniepham/programming
a9d3c2f1d9a29174732c353e2a597bb6c8e681e8
fa94630f035f4ce8e62ec6c92a4df0b4be065e5a
refs/heads/master
2021-05-05T12:52:25.197190
2017-09-25T12:39:52
2017-09-25T12:39:52
104,776,437
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
cijferICOR=8 cijferPROG=6 cijferCSN=7 gemiddelde=((cijferICOR+cijferPROG+cijferCSN)/3) print(gemiddelde) beloning=(cijferICOR*30)+(cijferPROG*30)+(cijferCSN*30) print(beloning) overzicht= 'Mijn cijfers gemiddeld een' + ' ' +str(gemiddelde) + ' ' + 'leveren een beloning van'+ ' ' +str(beloning)+ ' ' + 'euro op!' prin...
[ "stephanie.pham@student.hu.nl" ]
stephanie.pham@student.hu.nl
8da59d7215b68fa429ef7860353575c6a60196f2
a709f24e86e01317ecc8402ca87085e1d3505257
/gh-clone-all
c1a170eb7fa6a2707eabf04a8b585e3140906278
[ "MIT" ]
permissive
dcoles/tools
eafeafddeb5138b9f36a5a6698f9cbcc495d251f
12b4c0bd0666fb0d7c5c415e1ae266e04eaed873
refs/heads/master
2022-11-08T11:20:00.805262
2022-11-02T04:43:57
2022-11-02T04:43:57
156,034,730
0
0
null
null
null
null
UTF-8
Python
false
false
2,398
#!/usr/bin/env python3 """Clone all repositories of a GitHub user/organization""" import argparse import getpass import itertools import os import subprocess import sys from urllib.parse import urlsplit, urlunsplit import requests GITHUB_API = os.getenv('GITHUB_API', 'https://api.github.com') def url_add_auth(url...
[ "coles.david@gmail.com" ]
coles.david@gmail.com
ee44db13b8317d57a62576d6699be42745fac18b
374d6e45a127184b6a30fe9987e782503f1cd061
/app/main/model/DataProcess.py
70ee26b72d0daebb08b311e9bbff271085e2d4a9
[]
no_license
FR-Team/FinancialRegulation
5b2a4ce5cf2bc1faaf1cd7b2ec2017b2129c686a
e01720855a9a2320289769cae3bddc94a00761e3
refs/heads/master
2020-03-17T00:48:17.840210
2018-05-14T06:19:08
2018-05-14T06:19:08
133,130,227
0
2
null
null
null
null
UTF-8
Python
false
false
1,648
py
import os import pandas as pd import numpy as np from sklearn.cluster import KMeans def read_data(filename): # Data文件夹路径 data_path = os.path.abspath('..') + '\\' + 'data' # 文件路径 current_path = data_path + '\\' + filename print("CurrentDataPath: " + current_path) # 读取csv文件为DataFrame df = pd...
[ "30664307+Cauchy-NY@users.noreply.github.com" ]
30664307+Cauchy-NY@users.noreply.github.com
b8241c215f9bb176d55fd4cfd3af879696346392
de01cb554c2292b0fbb79b4d5413a2f6414ea472
/algorithms/Medium/486.predict-the-winner.py
08f9322db63221f8993b5218cb85de500829d02d
[]
no_license
h4hany/yeet-the-leet
98292017eadd3dde98a079aafcd7648aa98701b4
563d779467ef5a7cc85cbe954eeaf3c1f5463313
refs/heads/master
2022-12-10T08:35:39.830260
2020-09-02T23:12:15
2020-09-02T23:12:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,818
py
# # @lc app=leetcode id=486 lang=python3 # # [486] Predict the Winner # # https://leetcode.com/problems/predict-the-winner/description/ # # algorithms # Medium (47.90%) # Total Accepted: 72K # Total Submissions: 150.3K # Testcase Example: '[1,5,2]' # # Given an array of scores that are non-negative integers. Player...
[ "kevin.wkmiao@gmail.com" ]
kevin.wkmiao@gmail.com
0a47a441b06dec8e2b65dd145888e2b14f2dd6cf
18d22cc4e4eb734514fb502832274bd16f82883c
/balloon_scan/__init__.py
6342c81f1e04b0c0ae9023afd788a5a36ba9cab9
[]
no_license
paganol/Balloon-Scan
0a6eacf3837449fced175568b1e49f8ceaae3dbb
844368126faa7a04d93b2c37976320dbe6b5d943
refs/heads/main
2023-08-14T14:18:37.658850
2021-10-01T09:10:07
2021-10-01T09:10:07
412,389,459
0
0
null
null
null
null
UTF-8
Python
false
false
35
py
from .balloon_scan import scan_sky
[ "lu.pagano@gmail.com" ]
lu.pagano@gmail.com
f5d6711d080adc6fb676ef082189f474314e59f3
abad82a1f487c5ff2fb6a84059a665aa178275cb
/Codefights/arcade/python-arcade/level-9/61.Math-Practice/Python/solution1.py
3d81845674377f4eff6a2cc884f732d5939eec47
[ "MIT" ]
permissive
RevansChen/online-judge
8ae55f136739a54f9c9640a967ec931425379507
ad1b07fee7bd3c49418becccda904e17505f3018
refs/heads/master
2021-01-19T23:02:58.273081
2019-07-05T09:42:40
2019-07-05T09:42:40
88,911,035
9
0
null
null
null
null
UTF-8
Python
false
false
236
py
# Python3 import functools # 有限制修改區域 def mathPractice(numbers): return functools.reduce(lambda x, y: x * y[0] + (y[1] if len(y) == 2 else 0), [ numbers[i:i + 2] for i in range(2, len(numbers), 2)], sum(numbers[:2]))
[ "d79523@hotmail.com" ]
d79523@hotmail.com
3a1ced5c24e818318c93075a58a918bdfd68a85e
c55c914325d047611a721d231a267bbbb6777fbc
/recursion_q/string_rev.py
0c357ec56eca2bf2f79e761279a42644d53a551d
[]
no_license
vkd8756/Python
80389b21e056fe5884d765fa45e6bc5057209e45
80defd50c6dffec8b7d0530d8d8dbcb711aefc8b
refs/heads/main
2023-07-24T10:24:18.300489
2021-08-26T16:30:53
2021-08-26T16:30:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
a='racecar' a=list(a) b='racecaar' def rever(s,start,stop): if start>stop: return elif start==stop-1: return s[start] else: s[start],s[stop-1]=s[stop-1],s[start] rever(s,start+1,stop-1) s="".join(s) return s print(rever(a,0,len(a))==b)
[ "noreply@github.com" ]
vkd8756.noreply@github.com
d46ce21c82e8f703bf761564097c5ac8ced9260a
1e09bc56bf2904b349df1873e11da3d527437880
/lecture-12/subseq.py
013d014af9d3cf68f028dc875375a3f40b58000a
[]
no_license
codeforcauseorg-archive/DSA-Live-Python-Jun-0621
f3444f5671cb4985644c7432517477c3585c70fb
e4fe544178d7851c24755242390f39675b99fabe
refs/heads/main
2023-08-09T08:31:41.449120
2021-09-14T16:44:39
2021-09-14T16:44:39
384,725,085
4
2
null
null
null
null
UTF-8
Python
false
false
210
py
def subseq(orig, proc, index): if index == len(orig): print(proc) return ch = orig[index] subseq(orig, proc + ch, index+1) subseq(orig, proc, index+1) subseq("abc", "", 0)
[ "anujgargcse@gmail.com" ]
anujgargcse@gmail.com
77148390d2f8ae4e9f8d74b4bc1900e45ba4f721
9e5353ba6e50f77a40a765bd494d8bfb990c8922
/stream_backend/api/migrations/0025_auto_20200801_1808.py
667c8efccd70ebe719d5f0c399e614972e6fceaf
[]
no_license
admiralbolt/stream-stuff
d9e24f1d78ac142416525b9b42cc53ef0bc4712a
29cfa96f9e8d40c531362aced47ebacadccbe759
refs/heads/master
2023-08-05T00:02:17.812991
2021-09-23T05:47:16
2021-09-23T05:47:16
261,022,447
7
0
null
null
null
null
UTF-8
Python
false
false
404
py
# Generated by Django 3.0.6 on 2020-08-01 23:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0024_twitchchatter'), ] operations = [ migrations.AlterField( model_name='twitchchatter', name=...
[ "aviknecht@gmail.com" ]
aviknecht@gmail.com
3d4908c197509ea8d5f9c284778592b418171b1b
3e51bdce6730240a243f95e1dfabe507b437af8e
/torch/testing/_internal/jit_metaprogramming_utils.py
e2485087122146d72d4918616028adf452205050
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
wang-xiaoyu23/pytorch
aa859f10ab36a6ea618cf0ac54211ce6e35dc83b
b0833533a779d656cd6e9f6d103956ff105e7ef5
refs/heads/master
2023-04-25T03:53:51.886859
2021-05-13T23:55:56
2021-05-13T23:57:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
25,553
py
# Torch from torch.jit.annotations import BroadcastingList2, BroadcastingList3 # noqa: F401 from torch.testing._internal.common_methods_invocations import non_differentiable, create_input, \ unpack_variables import torch.nn.functional as F import torch import torch.cuda import torch.jit import torch.jit._logging i...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
d4080cb4d6ab23fa0cfc8c988bcfb0c94de674e3
552c39141dab7cbc0c34245000291a46cdb41495
/lte_enb/src/acceptance/egtpu/cm_xta_checkfile.py
17866cd0b750df8241104cd9dc8348e032c20aec
[]
no_license
cmjeong/rashmi_oai_epc
a0d6c19d12b292e4da5d34b409c63e3dec28bd20
6ec1784eb786ab6faa4f7c4f1c76cc23438c5b90
refs/heads/master
2021-04-06T01:48:10.060300
2017-08-10T02:04:34
2017-08-10T02:04:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,171
py
# #/********************************************************************20** # # Name: SIP # # Type: Python File # # Desc: # # File: cm_xta_checkfile.py # # Sid: cm_xta_checkfile.py@@/main/tenb_main_ccb/1 - Wed Jul 22 18:59:08 2015 # # Prg: # #**************************...
[ "sriprasads@gmail.com" ]
sriprasads@gmail.com
b718ec692745d12a301e107267139b2f015d7c11
0f0c895825bacd8534d92e2443fc367d22e21740
/datasets/common_vision_dataset.py
4575209d9199b0ff164fe735f7e64f19649e35dd
[ "Apache-2.0" ]
permissive
zilongzheng/PaddleEBM
158594a9356f8e7a3e2b5f9417768cb641bd8bfc
44356e281a21093b8a4607543a67f7c0601772c1
refs/heads/main
2023-08-21T19:09:11.022995
2021-10-19T07:56:15
2021-10-19T07:56:15
336,972,437
7
1
null
null
null
null
UTF-8
Python
false
false
2,841
py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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 appl...
[ "zilongzheng0318@gmail.com" ]
zilongzheng0318@gmail.com
70beb40305519e58e9e5d0ad258edf348724804d
4df39234ad4ac37314513747d4b8977465650a20
/Binary_Search_Tree.py
f6fa1af6db63e6518f853626e1104e7ea12541dc
[]
no_license
kd1726/Data-Structures
6d6fc5f0d0968d59f9ee09037db78ab94816e73a
edf814d6e720a2a102f17a2dcdb119066acecbe5
refs/heads/main
2023-04-23T04:38:41.187669
2021-04-28T18:30:00
2021-04-28T18:30:00
355,355,336
0
0
null
null
null
null
UTF-8
Python
false
false
5,863
py
class Node: def __init__(self,data=None): self.data=data self.right_child = None self.left_child = None self.parent = None class BinarySearchTree: def __init__(self): self.root = None def append(self,data): if self.root==None: self.root = Node(da...
[ "kd1726@nyu.edu" ]
kd1726@nyu.edu
095b41aca370bf070f5a65753828b12ab111d65d
09fd456a6552f42c124c148978289fae1af2d5c3
/Easy/605.py
43ebae0908d0af11eedb5c4ad94e9b308d1d7b9e
[]
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,079
py
# 605. Can Place Flowers # Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots - they would compete for water and both would die. # Given a flowerbed (represented as an array containing 0 and 1, where 0 means empty and 1 means ...
[ "hoang2109@gmail.com" ]
hoang2109@gmail.com
9e004cd23f5ecd0d7d0ffe63290fe3f044e0e930
a124b7ef21f3d7ee3e4f27992963cd7205cb3ca9
/src/parser.py
0c1083dabfac83938b423fbd2070aade22f6a91b
[]
no_license
prabhuanish/cs170_project_gargsack
bf4c60fc9d24a3b41d0ee4a4c67dd530fb8b90e7
7631ceeca30f3b11a94e926bf52ba23dee7e5a49
refs/heads/master
2021-01-20T05:54:38.168652
2017-05-02T06:53:01
2017-05-02T06:53:01
89,823,035
0
0
null
null
null
null
UTF-8
Python
false
false
2,967
py
import numpy as np import pickle import gzip import os path = "../inputs/project_instances/" # Load in all the inputs (NOTE: Maybe turn into nparray?) def load_inputs(start_num, end_num): print("Loading the inputs...") inputs = [] for i in range(start_num, end_num + 1): print("Loading Input "...
[ "prabhuanish@berkeley.edu" ]
prabhuanish@berkeley.edu
c91c1c9eb60b042dbe652a3ec2782f8bdc897680
d51c587c0f9f91981adb68f59d65756a2828efec
/twitter_api_client/utils.py
dae8b01702aa1b3bcddcd64be204315536fb801e
[ "Apache-2.0" ]
permissive
owensengoku/twitter-api
fefbd37c5096ea2aca3c0a06c6b87409e2660063
564fbcfb76232251d7f6b73e47a630b5270c4ef0
refs/heads/master
2022-12-13T18:24:29.248906
2018-11-01T10:17:15
2018-11-01T10:17:15
154,934,389
0
0
Apache-2.0
2022-12-08T01:22:35
2018-10-27T06:40:42
Python
UTF-8
Python
false
false
1,650
py
# -*- coding: utf-8 -*- from .variables import * from datetime import datetime # URL foramt of the API # {SCHEME}://{subdomain}.{ROOT_DOMAIN}{version_path}/{path}?{parameters} def generate_url(endpoint): v = endpoint.get('version') # becasue some api url without version version_path = '' if v == NOVERSI...
[ "owen.wu@droi.com.tw" ]
owen.wu@droi.com.tw
3167f39dbf71aeba02f18fe37f0ee877fd3e7361
c23954da29144a7d75dde0a704748d886e02220b
/salt_main/salt/auth/yubico.py
6c787cc785a721c0bad9e58a0444e9ad7a27bc33
[]
no_license
pombredanne/usystem
5bac2db49057698d2cffb35e5977418bb85425a8
12527f14d61ca30e996368e65ba74931ed85e3c1
refs/heads/master
2021-09-24T10:44:22.261460
2018-10-08T14:19:35
2018-10-08T14:19:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,126
py
# -*- coding: utf-8 -*- ''' Provide authentication using YubiKey. .. versionadded:: 2015.5.0 :depends: yubico-client Python module To get your YubiKey API key you will need to visit the website below. https://upgrade.yubico.com/getapikey/ The resulting page will show the generated Client ID (aka AuthID or API ID)...
[ "igonchik@gmail.com" ]
igonchik@gmail.com
598ddb8f57c971e4027d139711f9e47259582a8b
a1bffcd8854e1843e56bb812d4d83b3161a5211e
/plugins/module_utils/docker/common.py
1818dc1419f946d1d6bbe74b38e253816d6889a6
[]
no_license
goneri/ansible.community
1a71f9d98c164b77f8ed2ed7f558b4963005ff8f
f26f612dd0a3154050d90b51a75502018c95f6e4
refs/heads/master
2020-12-29T07:47:35.353515
2020-01-22T17:43:18
2020-01-22T17:43:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
41,253
py
# # Copyright 2016 Red Hat | Ansible # # This file is part of Ansible # # Ansible 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 Software Foundation, either version 3 of the License, or # (at your option) any later version. # # ...
[ "ansible_migration@example.com" ]
ansible_migration@example.com
3432c669a205ebeb2183bb3ff7633ed17489ed0d
dd8879e3a9c076aa997bddbccf9ad05281d8842b
/data_processing.py
adea7f58d0af46472bc195907ae090cea3cf6b89
[]
no_license
Celinarabe/sentiment-analysis
90b57bd58d8213d2bf2154c89e4eef2aacd99972
15eef2dfe51dd3e30e56d6da106311f3eb0940c6
refs/heads/master
2023-01-24T10:34:57.246085
2020-12-06T03:13:15
2020-12-06T03:13:15
296,750,237
0
0
null
null
null
null
UTF-8
Python
false
false
832
py
# original data source: http://jmcauley.ucsd.edu/data/amazon/ import json import random import string data = [] file_name = 'Beauty' # select only reviews from 2012 or later with open(f'reviews_{file_name}_5.json', 'r') as f: for line in f: review = json.loads(line) year = int(review['reviewTime'].split(' ')[-1...
[ "noreply@github.com" ]
Celinarabe.noreply@github.com
1e27088833333373837b9ad5b27ea6ecbb1502c8
303416ce779a19dd37228d843f66b8466bba06fb
/benchmarks/framework_overhead_benchmark/C2Module.py
acd2f2b13bf94a0ba7ccc8a26c0aa568d1fe7c77
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
linziyi96/pytorch
dc3f5f4c7539a81e3a368c799065a5557af6bbd2
c362138f4380c11ddeb07d7e7e34d75300091597
refs/heads/master
2021-02-10T09:51:31.802098
2020-06-25T15:49:04
2020-06-25T15:54:05
256,582,228
4
3
NOASSERTION
2020-04-17T18:38:38
2020-04-17T18:38:37
null
UTF-8
Python
false
false
1,655
py
from __future__ import absolute_import, division, print_function, unicode_literals from caffe2.python import workspace, core import numpy as np from utils import NUM_LOOP_ITERS workspace.GlobalInit(['caffe2']) def add_blob(ws, blob_name, tensor_size): blob_tensor = np.random.randn(*tensor_size).astype(np.float32...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
1f7ea074d1dadb36eb277e74f417e24a9f0f7758
9143d8b843b387170f7146b3319bde6ad4183d7b
/nu_trans_detect_stable.py
10e0cff2c50b05c2c57096ec48301e2992f70014
[]
no_license
Konstancja/cta-neutrino
1e32640b8806f4dd3dba622f0fb9b7bf451fb144
52d5a6bacd6c42a8cf17a60792cbf707e1e1897a
refs/heads/master
2020-05-06T13:35:30.761631
2020-04-14T15:29:53
2020-04-14T15:29:53
180,145,142
0
0
null
2019-04-08T12:33:26
2019-04-08T12:33:26
null
UTF-8
Python
false
false
5,478
py
import gammalib import ctools import cscripts import numpy as np from ebltable.tau_from_model import OptDepth from random import randint, uniform import xml_generator as xml from astropy.io import fits import argparse tau = OptDepth.readmodel(model = 'dominguez') parser = argparse.ArgumentParser() parser.add_argumen...
[ "noreply@github.com" ]
Konstancja.noreply@github.com
7c52b096813c3427fc0f8ab76227863f9b0ca327
eafc721b3fc8adcaea1c0256cabc917874f102ec
/Networking/tcp_client.py
ab62ba261bbc16cd8b73b581b5b584ae41011fa6
[]
no_license
christophviehoff/LearnKivy
dd8f87374c87c1717503061c170ab80f5dbc191e
1eb90084f8bf755549246780c1f7c6e5a2066dd5
refs/heads/master
2021-01-19T02:55:54.074280
2016-07-01T20:04:24
2016-07-01T20:04:24
62,416,999
0
0
null
null
null
null
UTF-8
Python
false
false
824
py
import socket HOST = 'localhost' PORT = 12345 BUFSIZ = 256 if __name__ == '__main__': client_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) host = raw_input( "Enter hostname [%s]: " %HOST) or HOST port = raw_input("Enter port [%s]: " %PORT) or PORT sock_addr = (host, int(port)) ...
[ "christoph.viehoff@nike.com" ]
christoph.viehoff@nike.com
ac9e075280df7b0306320fdff44cdaed3f4b6246
0620cfc78914dd477b62f803be7a3dda6e9f5bc6
/log_FB_seq.py
4905e5b6e41fcea91705303800290b462a2e8c9d
[]
no_license
tylii/group_project_545
0f374c519a00279d100d1d3a45a8815afb753dc5
7e51d3a94fe7da00662b73edab805c184e36ccdd
refs/heads/master
2020-04-05T16:16:18.373600
2018-12-13T00:37:12
2018-12-13T00:37:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,729
py
### Log computation of the forward and backward probabilities import numpy as np from hmm import cal_b_matrix #%% define the extended helper functions def eexp(x): """ Extended exponential""" if np.isnan(x): out = 0 else: out = np.exp(x) return out def eln(x): """ Extended natu...
[ "SARL@ME-SARL.local" ]
SARL@ME-SARL.local
3e2582daa11ba24e8f0271fddf3a8ecde0c847ab
94589f1a3565022b28f6bdc2cd7b2dcf99c48e5c
/grouper.py
9bca8d7b54a1a4d25b76b695361de93b77d7d18b
[]
no_license
brat002/ExpertBilling
e8825c10487c2f5b179fa5548977c262982c4fc7
bb7e041b21736f16ee69759a9cce52c4ce544a95
refs/heads/trunk
2023-01-20T18:36:01.075704
2017-08-31T07:23:53
2017-08-31T07:23:53
39,003,439
8
9
null
2022-12-27T15:01:29
2015-07-13T09:36:11
PLpgSQL
UTF-8
Python
false
false
17,622
py
#-*-coding=utf-8-*- import signal import asyncore import isdlogger import threading import ConfigParser import psycopg2, psycopg2.extras import time, datetime, os, sys, gc, traceback from IPy import intToIp from marshal import dumps, loads from daemonize import daemonize from threading import Thread, L...
[ "sasha" ]
sasha
ff6a804bbce1c2bcc1756d3d6d227e721061bbd1
265af0af6ef3e99ae07aa59aadf9ee1f59785667
/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py
375b2cf16ee7873a547f7ca61135999242aa01c2
[ "Apache-2.0" ]
permissive
ingenovishealth/openapi-generator
0a936b884f7554639dd73eb389a14898101b819a
22beeaac4e9edac5c886a6b2078afbacfeaef102
refs/heads/master
2023-02-09T03:17:32.449794
2023-02-01T04:27:27
2023-02-01T04:27:27
218,272,372
0
0
Apache-2.0
2023-09-12T14:00:27
2019-10-29T11:35:27
Java
UTF-8
Python
false
false
16,647
py
# coding: utf-8 """ Generated by: https://openapi-generator.tech """ from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from petstore_api import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa...
[ "noreply@github.com" ]
ingenovishealth.noreply@github.com
8e51828497357d520d0a34c043e7316af144e587
1de32582d2092b11e3ae4fa3875c91d55146976f
/Blackjack.py
8367664603eedc956bd41802f9b8e84b1ba5799a
[ "MIT" ]
permissive
berkesenturk/Blackjack
b6c97b425bf468d9fc49c8e07410e3422534ba85
ea50f503b15b9703a65e48041eb5da9eca51a976
refs/heads/master
2022-07-15T00:18:26.912912
2020-05-17T21:27:55
2020-05-17T21:27:55
264,535,365
0
0
null
null
null
null
UTF-8
Python
false
false
5,911
py
from enum import auto, Enum #enum okundu # Tuple'larda keyler integer olarak tanımlanır. Enum burda bunun önüne geçer bir bakıma ve bize sembolik isimleri # değerler için atamamıza olanak tanır. from itertools import product """ #itertools -> product cartesian product, equivalent to a nested for-loop ex -> product('A...
[ "45045846+berkesenturk@users.noreply.github.com" ]
45045846+berkesenturk@users.noreply.github.com
65f356f05a10845b19da1aaec0dd4ee96c4112f9
4d5dedb096e64c4da22b0f044cfa11ac7cfab741
/python/skype_auto_answer_call.py
1c2715509f68966d2c8acb1e46d5e25fd69f2d71
[]
no_license
kitech/triline
4a1305265ad41fc7305075ad862bee9a3a27ee3b
65619eeab2a3ce516718ecb4eb3fadca1cd494de
refs/heads/master
2021-08-08T05:31:58.969551
2020-12-29T09:55:55
2020-12-29T09:55:55
133,601,942
4
4
null
null
null
null
UTF-8
Python
false
false
2,168
py
#!/usr/bin/env python2 import Skype4Py import time import re class SkypeBot(object): def __init__(self): self.skype = Skype4Py.Skype(Events=self) self.skype.FriendlyName = "Skype Bot" self.skype.Attach() def OnlineStatus(self, user, status): print(user, status) retur...
[ "drswinghead@163.com" ]
drswinghead@163.com
697c9c47ad94dc2c73ae4ef0df6e52bdefba26b3
8e69c85b70c1f8d2459eb40b07f0ce974ab2cdac
/itd/twitterbootstrap/tests.py
6511c5159942a2d1251e30d8bcfe55c8963007e2
[]
no_license
itd/itd.twitterbootstrap
041ec12f87e2879f79f4da2032b0c3ef9aecfbe8
c450f3c89595abdd7c26ffcd5c6e430980c4f2b7
refs/heads/master
2020-12-30T09:38:24.990752
2012-06-27T07:27:41
2012-06-27T07:27:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,425
py
import unittest #from zope.testing import doctestunit #from zope.component import testing from Testing import ZopeTestCase as ztc from Products.Five import fiveconfigure from Products.PloneTestCase import PloneTestCase as ptc from Products.PloneTestCase.layer import PloneSite ptc.setupPloneSite() import itd.twitterb...
[ "kurt@tool.net" ]
kurt@tool.net
4ff40d4f02cbdd4f1aca1f45e661382847291759
ac4391f978821206666036f091522b84ba1941a8
/reshape.py
16bf938bc86d6f414b50cf0c11a84a127e453b13
[]
no_license
sunil504/hackerrankpython
394c6e7684a546dd18189025b2264d985279ca70
4faf32e42e6537a2be88177122928671c87059fc
refs/heads/master
2021-08-22T04:56:17.441965
2017-11-29T10:35:22
2017-11-29T10:35:22
112,455,163
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
import numpy x = input().strip().split(' ') x = numpy.array(x,int) print(numpy.reshape(x,(3,3)))
[ "noreply@github.com" ]
sunil504.noreply@github.com
3e49a25a4de860622d8ba1b81856483455a22485
88e3b2782e3f9a7e62cb56ecf77d449da859c7d7
/mysite.venv/mysite_project/mysite_project/settings.py
1b2fb6538b02fd625d3e85b1e314934c0c3030c0
[]
no_license
scooterpie/scooter-blog
bf5b0d5db5b1e547dd5f28469504ea89e8ce16d4
f0a68dfaeec4e79d6454980ec584eabf45143083
refs/heads/master
2021-07-16T02:07:20.955921
2017-10-23T02:39:29
2017-10-23T02:39:29
107,924,334
0
0
null
null
null
null
UTF-8
Python
false
false
3,203
py
""" Django settings for mysite_project project. Generated by 'django-admin startproject' using Django 1.11.6. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ im...
[ "scooter@pie.com" ]
scooter@pie.com
c233e69f58a62cc1d2641bbac17878a9a683d2d3
549d7c0456f419c5ce8b90dc42193e61e3f3eb8c
/mysite/settings.py
e080faf3a09bfe94d31e5f436d73930fc3b59f15
[]
no_license
petitantom/my-first-tutorial
527a8fbe1eba69fae8d1e311646fc79530561e13
93cf8138d6f2be7b5e70b6a7fd6d09c673a1e81f
refs/heads/master
2020-12-31T07:54:37.342805
2017-06-19T13:54:22
2017-06-19T13:54:22
94,856,296
0
0
null
null
null
null
UTF-8
Python
false
false
3,201
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.11.2. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os ...
[ "szerviz.petitan.hu@gmail.com" ]
szerviz.petitan.hu@gmail.com
1c3de27813851250806d1504109c55ac8b152a2a
dd76697bc5fccb3637fc6056e395f96075f03d8c
/Day-002/exercise-3-bmi-calculator.py
af0331c722e714aa6ea93eab8ff40da386f04099
[]
no_license
georgggg/python-bootcamp
449f759ee339864e8e3bd4d00e06f32292616a9c
0edacb45bb05bf5622c457568a350ebb7ad4451b
refs/heads/master
2023-08-21T12:02:32.546186
2021-09-16T02:17:29
2021-09-16T02:17:29
358,429,006
0
0
null
null
null
null
UTF-8
Python
false
false
1,595
py
# BMI Calculator # Instructions # Write a program that calculates the Body Mass Index (BMI) from a user's weight and height. # The BMI is a measure of some's weight taking into account their height. e.g. If a tall person and a short person both weigh the same amount, the short person is usually more overweight. ...
[ "giorgggg.napone@gmail.com" ]
giorgggg.napone@gmail.com
e202b6393527b1523ae9b1b7311cc6a32affe5e6
c56d36c10e52f569f3864790611fe9cf11bcb050
/lesson6/cases/test_contact.py
dacb0e3d606fd73bbc1dae6113b9a6790ef975f0
[]
no_license
yr-rui/LG7
c9ba3e062eba4e5444a2e82a5bba8648da3258c9
471318a2af4e1d9e8b964d73f12f8f7ab713495f
refs/heads/main
2023-07-30T15:47:47.702967
2021-09-15T12:48:09
2021-09-15T12:48:09
360,015,844
0
0
null
null
null
null
UTF-8
Python
false
false
1,160
py
import pytest import yaml from lesson6.pages.app import App def get_datas(): with open("./contact.yaml") as f: datas=yaml.safe_load(f) return datas class TestContact: def setup_class(self): self.app=App() def setup(self): self.main=self.app.start().goto_main() self.co...
[ "rui.yue@changhong.com" ]
rui.yue@changhong.com
0bd268cc0896e9f4c5d4387a7d8c6049a64b871f
5d4b2841619529f586d16ca64aa212c5a5d02a4c
/todo/main.py
e3069425de642ee9648a17c4d94ddfd5e5223c61
[ "MIT" ]
permissive
georgdonner/todo-cli
de7b4efa0201073c80c34d4646c97ca339823894
d4da43822f0697a2a5a44b31a1d421a616c91fa2
refs/heads/master
2022-12-12T03:52:52.817253
2018-03-26T21:31:44
2018-03-26T21:31:44
126,611,241
0
0
MIT
2022-12-08T00:55:26
2018-03-24T15:10:25
Python
UTF-8
Python
false
false
1,296
py
import argparse, os, sys from colorama import init from todo.commands.add import add_item from todo.commands.done import item_done from todo.commands.list import list_items from todo.helpers.defaultparser import set_default_subparser init() argparse.ArgumentParser.set_default_subparser = set_default_subparser def m...
[ "georgdonner98@gmail.com" ]
georgdonner98@gmail.com
f90a4c6e4150357b1a2e7523921b8389ac946930
1523054f4403e24764dc510fe4f3805a9194d2b0
/appdaemon/settings/apps/climate.py
37a1df4d228318f71583896a6ff2d08b1b94b5eb
[]
no_license
wjl198435/smart-home
47da685dec3785fa17888980e52217aac12448ac
643177d436669cbb516de87d2a9199e389d43b73
refs/heads/master
2021-07-18T02:30:40.405155
2020-05-29T05:11:02
2020-05-29T05:11:02
172,010,714
0
0
null
2020-05-29T05:11:04
2019-02-22T06:55:09
Python
UTF-8
Python
false
false
12,721
py
"""Define automations for climate control.""" from typing import Union import voluptuous as vol from const import EVENT_PRESENCE_CHANGE, EVENT_PROXIMITY_CHANGE from core import APP_SCHEMA, Base from helpers import config_validation as cv CONF_AQI_SENSOR = "aqi" CONF_AQI_THRESHOLD = "aqi_threshold" CONF_AWAY_MODE = "a...
[ "bachya1208@gmail.com" ]
bachya1208@gmail.com
1ba65457de73f9c92a3d3951e5639c8b6378f58c
c0ed04491bcc9894c33f8ca796b1043d8c29d8e5
/pdf_sanitizer/pdf_sanitizer.py
a73a2dac95a0968bc2e72dbdf84a75ab586cdda5
[ "MIT" ]
permissive
lucasmrdt/pdf-sanitizer
64a6dbb819645b93740003286f44877b3d20ac38
c09c2232c72ec27660b75727307e992733923248
refs/heads/main
2023-01-25T02:01:44.679434
2020-11-24T10:39:09
2020-11-24T10:39:09
314,557,875
0
0
null
null
null
null
UTF-8
Python
false
false
3,663
py
import difflib import pathlib import argparse from .utils import fail_with_message, progress_with_message, success_with_message try: import PyPDF2 except ImportError: fail_with_message( 'Please install required dependencies before using this package.\n\t> pip3 install -r requirements.txt --user') de...
[ "lucas.mrdt@gmail.com" ]
lucas.mrdt@gmail.com
8464880c154574ab8a1935128eab8e73e36e945b
4b8ebedccb97cb7d7d23d0f798a0ba290695e8aa
/code/37_inspect_currentframe.py
35946c5e3446c372ade38d60b795cd378bad729d
[]
no_license
danilobellini/wta2017
19fce7c20865eae8615b3d6a02fc94cbfb95e5c3
5963dd48b46813988def356aa13aca3b6959d050
refs/heads/master
2021-01-11T14:53:19.983517
2017-01-27T20:49:16
2017-01-27T20:49:16
80,243,964
1
0
null
null
null
null
UTF-8
Python
false
false
193
py
from inspect import currentframe def caller(): data = [1, 2, 3] change_data() return data def change_data(): currentframe().f_back.f_locals["data"].append(5) print(caller())
[ "danilo.bellini@gmail.com" ]
danilo.bellini@gmail.com
522ff5caf9d61b505a992daf3e536468393e4998
afa59644777f5cd8ae59d0b4b29f91c45d1264a9
/Arya/action_list.py
bf4801cc54e4d6d9e507bd3da9e72df6eb072382
[ "Apache-2.0" ]
permissive
yezimai/oldboyProject
aa76beca46be29e164f65b45dda35924d8fa5bbb
889eebc2e6158b07ac0964b25eb01df743ad0117
refs/heads/master
2021-05-13T17:52:45.623762
2018-01-09T16:03:56
2018-01-09T16:03:57
116,824,907
0
0
null
null
null
null
UTF-8
Python
false
false
110
py
# -*- coding:utf-8 -*- from plugins import cmd,state actions = { 'cmd':cmd.CMD, 'state':state.State, }
[ "41815224@qq.com" ]
41815224@qq.com
c2fecdba7d84b5999661f7fc80b389f418cc05d8
c6f357f7769d2d873d36946c8d35fd520d2ce07e
/Apriori/del.py
a7ddc17b3d16a56adc912fde9c9bbf31fc0f06e6
[]
no_license
mdmuneerhasan/python
9cc4c50af6668da849919b09cd31193904e3bf96
3dc267499aad23cfd6b966748f87b9f8064e14d4
refs/heads/master
2023-01-28T07:11:16.785162
2020-12-10T13:11:40
2020-12-10T13:11:40
306,046,414
0
0
null
null
null
null
UTF-8
Python
false
false
2,156
py
data = [ ['T100', ['I1', 'I2', 'I5']], ['T200', ['I2', 'I4']], ['T300', ['I2', 'I3']], ['T400', ['I1', 'I2', 'I4']], ['T500', ['I1', 'I3']], ['T600', ['I2', 'I3']], ['T700', ['I1', 'I3']], ['T800', ['I1', 'I2', 'I3', 'I5']], ['T900', ['I1', 'I2', 'I3']] ] table = {} fCount={} ms=2 c...
[ "md.muneerhasan@gmail.com" ]
md.muneerhasan@gmail.com
30345da423017d960f32d58366f5333f389f08a6
9beecfd2062691fb12f45fe59144b9b47c365d12
/temp.py
49b1673afa66fcadd9a745d7443b1a4600d65ae0
[]
no_license
wufanwillan/leet_code
6440ea110cf77828005c17c16f5c79787f255f92
e8c07c0ad68870c89a2598c85d3d4211ee177d73
refs/heads/master
2021-09-09T13:47:10.284460
2018-03-16T17:30:59
2018-03-16T17:30:59
103,131,224
0
0
null
null
null
null
UTF-8
Python
false
false
636
py
class Solution: def isToeplitzMatrix(self, matrix): """ :type matrix: List[List[int]] :rtype: bool """ if not matrix: return False l=len(matrix) for i in range(l): matrix[i]=matrix[i:]+matrix[:i] import...
[ "noreply@github.com" ]
wufanwillan.noreply@github.com
f62dcd373e600ccfb3f63f242651f99a0a4806a6
16f0846af81fb6030423f1812d482447b0c8b9ac
/smart/forms.py
53c694c0a3b93f412fdbf8f5775ef0e204758110
[]
no_license
emma564/smarthealth
5c53c5356723fc32085f9331d4e8546b4eac22f5
9800139b6c5b3122575cde434db692f7df9328c8
refs/heads/master
2021-04-15T05:48:13.233650
2018-03-23T14:23:57
2018-03-23T14:23:57
126,494,890
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
from django import forms class GuessDiseaseForm(forms.Form): disease1 = forms.CharField()
[ "35333972+emma564@users.noreply.github.com" ]
35333972+emma564@users.noreply.github.com
a0eb5d3d1707c88fdb8d35ae045786088e86ebcb
e4f08f52f36dc903858586caea3071710673f018
/projet python/EXO1.py
de8805a0ef7bfb09382b4f28743fbe26a9d1112c
[]
no_license
AEJ-FORMATION-DATA-IA/EXO_python_Konan_Yassoi
60d93afc2fa3e2b4d137de79d2c83ec50c4323d5
e2cefea06c9da7b3f688ab2e8e5f67191dcd38f8
refs/heads/main
2023-08-16T03:48:26.284698
2021-10-10T22:34:30
2021-10-10T22:34:30
415,713,956
0
0
null
null
null
null
UTF-8
Python
false
false
1,390
py
A=15 B=4 C=A+B D=A*B E=A**B F=A/B G=A//B H=A%B #******* LES DICTIONNAIRES ******* dico ={ "A":15, "B":4, "C":19, "D":60, "E":50625, "F":3.75, "G":3, "H":3 } print(dico) dico["I"]=154 print(dico) del dico["I"] print(dico) for i in ...
[ "noreply@github.com" ]
AEJ-FORMATION-DATA-IA.noreply@github.com
26d531843326aa9914e7f70c9c24e9a2c300a3c7
0604be693be468ffa3bd9c51a6720dbd052f9eac
/my_env/bin/django-admin
44497584193af444875932eeeb293482ff81c7d0
[]
no_license
anoopnagotra/frames_from_video
581951b81edcad149914293518b0d3f95574a908
8872cb7b9f4d201c014adefae74407a49157ecf8
refs/heads/master
2022-12-09T11:27:24.635026
2020-09-07T15:02:35
2020-09-07T15:02:35
274,234,115
0
0
null
null
null
null
UTF-8
Python
false
false
296
#!/home/meetu/p_p/file_management/my_env/bin/python # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "dwelinfo@gmail.com" ]
dwelinfo@gmail.com
15ff81a21b836d6ba044187ed2c69b94d5c260cb
ab4a19a55b7e951a96faaa68a842cb58a123f31b
/Codeforces/381a_sereja_and_dima.py
2aa6439f1ab6383b026bcdbc641bfb89ea4989d6
[]
no_license
vsseixaso/competitive-programming
765c299c2f1a3e46b2b4d2f4e041e2b8413f7476
8ce81ad69d145c6cb39e49f669af690e2d1c1356
refs/heads/master
2020-03-14T20:44:50.102327
2018-05-02T01:27:43
2018-05-02T01:27:43
131,781,523
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
n = int(raw_input()) l = map(int, raw_input().split()) sereja = 0 dima = 0 flag = True # True = sereja | False = dima while len(l) > 1: if flag: if l[0] > l[-1]: sereja += l[0] l.pop(0) else: sereja += l[-1] l.pop(-1) else: if l[0] > l[-...
[ "seeixas98@gmail.com" ]
seeixas98@gmail.com
ceb66e687310bdba66c6402c4b4f6bdca72fdaae
87f9901774bcf12ee6735d4f4053635037e75a0c
/qa/rpc-tests/dao-consultation-consensus-cycle-length.py
892576c5c84e04adf8c0288e772c45b2dd513d96
[ "MIT" ]
permissive
0x2830/navcoin-core
92f9b0185cff37acca3068524ef2e11e17b6a620
6d4c580efa1e73791a18d8d2d8e9c9e90fd8e780
refs/heads/master
2022-01-29T06:15:22.672048
2020-05-18T20:41:05
2020-05-18T20:41:05
240,787,904
0
2
MIT
2020-07-03T15:41:25
2020-02-15T21:07:09
C++
UTF-8
Python
false
false
4,310
py
#!/usr/bin/env python3 # Copyright (c) 2019 The Navcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import NavCoinTestFramework from test_framework.cfund_util import * import...
[ "noreply@github.com" ]
0x2830.noreply@github.com
d9f4b747560741a4072aa3c57d2f03cfdf8e67fb
f1917c5662231c1dd51d34c739f1c9065b41f424
/c3_project_healthcheck.py
c880fba9f53c8b8fbaf5ff42bbde5fb86a82248e
[]
no_license
jcardenaslie/c3_healthcheck
348a9390a702b2dfe97d2edbeeca20fa6bc2410a
3befc7f12f26cc90887ef80daf468d38f8bda30e
refs/heads/master
2020-09-27T02:17:28.023360
2019-12-06T20:09:46
2019-12-06T20:09:46
226,401,571
0
0
null
null
null
null
UTF-8
Python
false
false
1,902
py
import os, json import glob import pandas as pd pobjects = list() # Get existing items in project with open('project.c3proj') as f: d = json.load(f) objects = d['objectTypes'] if 'items' in objects: o = objects['items'] pobjects.extend(o) if 'subfolders...
[ "noreply@github.com" ]
jcardenaslie.noreply@github.com
c329db22ce0ca92600792af0a7e6e9fa278434aa
52b5773617a1b972a905de4d692540d26ff74926
/.history/file_20200811093334.py
928cfa231a0fcf7070cf6a70554e18fc7494d258
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
744
py
# a,b --> 2*3 == 2 + 2 + 2 = 6 # use for loop or a while loop # 217856 = 2*1*7*8*5*6 import sys def product(a,b): # print('number',sys.maxsize) if a == 0 or b == 0: return 0 total = 0 btimes = abs(b) while btimes > 0: total +=abs(a) btimes -=1 if b < 0 and a > 0: ...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
bc511d1c201616bb528c913c8a82cfed0708d6a7
83a426cc5b8c52e95c4a5770119048b973a28521
/python/bin/wheel
c33835cf8d558016a4326931cf4dd6faa0d455b0
[]
no_license
Seanie96/ProjectEuler
af6d3432771bcbacb5ce4445fb2097f98aba76f6
cf6219573ff95bbe28a51f7098bce338150aafd6
refs/heads/master
2020-07-05T20:21:49.278297
2020-05-11T01:32:16
2020-05-11T01:32:16
202,762,739
0
0
null
null
null
null
UTF-8
Python
false
false
242
#!/Users/neuro/Documents/ProjectEuler/bin/python # -*- coding: utf-8 -*- import re import sys from wheel.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "semcdona@tcd.ie" ]
semcdona@tcd.ie
b4a328b85dffb3f2069a882adb700865a0968ed7
d13ec1afcf80d0805a3c0f9891b078ff762767ea
/users/forms.py
9f88dcba51dc8f836013c56aaaf28ce4835d0719
[ "BSD-3-Clause" ]
permissive
Karina-karina/home
16903b849559f93d3a58f442dd50175f00de64c7
55ab529be965cf93f3fc39fcdf954be67ff2f885
refs/heads/master
2022-08-01T07:49:48.775888
2020-05-21T01:46:25
2020-05-21T01:46:25
265,726,999
0
0
BSD-3-Clause
2020-05-21T01:46:18
2020-05-21T01:39:56
Python
UTF-8
Python
false
false
319
py
from django.contrib.auth.forms import UserCreationForm from django.contrib.auth import get_user_model from django import forms User = get_user_model() class CreationForm(UserCreationForm): class Meta(UserCreationForm.Meta): model = User fields = ('first_name', 'last_name', 'username', 'email')
[ "karinax@bk.ru" ]
karinax@bk.ru
55e43dae5c6af26eee520a141df3b47254a87dc0
15b73703241d286a87ca127ff3265f379ad8450e
/publisher.py
aff1607b593cab099270e0409f8f226f55af48bc
[]
no_license
aditi-govindu/MQTT-Paho
3f0246c76c3ef42868f32e3706e0c8f085e686fb
ed9baf571ea8d8cfa7172ffeee4a6b9d9bedbdb5
refs/heads/main
2023-08-01T07:31:24.745173
2021-09-19T11:47:11
2021-09-19T11:47:11
408,106,937
1
0
null
null
null
null
UTF-8
Python
false
false
1,003
py
# Import modules import time import paho.mqtt.client as paho import random broker = 'broker.hivemq.com' # Function to connect to Mosquitto server, where rc = 0 indicates success def on_connect(client1, userdata, flags, rc): print('Publisher connected with result '+ str(rc)) time.sleep(2) # Cre...
[ "noreply@github.com" ]
aditi-govindu.noreply@github.com
cf12187c447dc3631d014c75ea2822a55d590620
2d25e842c04ed7352bd1f714080b882c77ea7d21
/form/hello.py
c2746e3011dd11394a6cdeb647daa61302229e4a
[ "MIT" ]
permissive
mikalegall/flask
67fbbd8083c2b12a15446980a7282d171456c4e5
743faaf5ef6ef165612bbbc1b451613e522a5326
refs/heads/main
2023-05-31T04:19:24.866396
2021-07-03T16:35:24
2021-07-03T16:35:24
370,290,480
0
0
null
null
null
null
UTF-8
Python
false
false
1,167
py
from flask import Flask, render_template, request, redirect from flask_sqlalchemy import SQLAlchemy from flask_wtf import FlaskForm from wtforms.ext.sqlalchemy.orm import model_form app = Flask(__name__) app.secret_key = "mikalegall" db = SQLAlchemy(app) class Vieraskirja(db.Model): id = db.Column(db.Integer, p...
[ "mika.legall@live.fi" ]
mika.legall@live.fi
1bb8bc0a218b5f3577ca94c36224116dca1c7d9b
28abdd49560018ee70382a6c49d2ee8e674f184e
/domains/school/trapthings.py
450c0d9b551f8f11a05daf9796be36f82c67d5b5
[]
no_license
davedotluebke/old-skool-text-game
27a5b7f88f67812fefeb4c8c2815ab188d987dc7
6a900b3d93c661a4d01adc8a18e3a69b7c6686a2
refs/heads/master
2023-01-14T13:12:21.222911
2023-01-08T23:52:23
2023-01-08T23:52:23
66,109,727
7
5
null
2022-12-27T23:25:51
2016-08-19T20:17:48
Python
UTF-8
Python
false
false
577
py
from thing import Thing from room import Room import gametools class TrapThing(Thing): def __init__(self, default_name, path, trap_message, trap_location, ID): super().__init__(default_name, path, ID) self.trap_message = trap_message self.trap_location = trap_location def take(self...
[ "gitbot@luebke.us" ]
gitbot@luebke.us
b845b1a61876fd712c50d5ddd345e78b0817e97f
d8e4120d3d474beba2f57ae2841a30bc8b87a5d6
/app.py
e0bfb1d882f99bfbe52ef1a7b5502a016c4d0665
[]
no_license
HugoOrtega1/-Heroku-Absenteeism---Predictor
87fb7c2e805fe925d466f5d7f2c7f2aa062ea166
819b1f86c358f63ecb800b4245a992046b8c3d70
refs/heads/main
2023-04-13T01:48:42.584357
2021-04-19T17:28:15
2021-04-19T17:28:15
358,901,916
0
0
null
null
null
null
UTF-8
Python
false
false
1,152
py
# -*- coding: utf-8 -*- """ Created on Thu Apr 8 16:35:06 2021 @author: Hugo """ from flask import Flask, render_template, request import pickle import numpy as np import pandas as pd from sklearn.utils import check_array app = Flask(__name__) model = pickle.load(open('model', 'rb')) @app.route...
[ "noreply@github.com" ]
HugoOrtega1.noreply@github.com
cbcb9c1c622fa89f49a8a6150586914a54029877
128e2652e2f0a4b4be57894bffab461c90170657
/tej_python/demo2.py
d7f366dc07e7ee111659d69ec9bf0ad697778280
[]
no_license
tejadeep/Python_files
ec2695ec844e723d0784a67bd13c9a178c0aa601
43fde84dd62543e5ed9896177949cca877fdb858
refs/heads/master
2020-06-11T04:35:55.850108
2019-08-08T07:23:23
2019-08-08T07:23:23
193,851,082
0
0
null
2019-06-26T07:19:34
2019-06-26T07:19:34
null
UTF-8
Python
false
false
597
py
from Tkinter import * import Tkinter import tkMessageBox top = Tkinter.Tk() L1 = Label(top, text="My calculator",).grid(row=0,column=1) L2 = Label(top, text="Number 1",).grid(row=1,column=0) L3 = Label(top, text="Number 2",).grid(row=2,column=0) L4 = Label(top, text="Operator",).grid(row=3,column=0) L4 = Label(top, t...
[ "you@example.com" ]
you@example.com
5a1cc1af7053037f9662afa8d9d6a339cd2117dd
c3d60b498fc47ed64b4f8292ce41f061ec61aff9
/category/admin.py
dd2cffcca72e9f1c8f982ec2c27ad03f9da8c3e6
[ "MIT" ]
permissive
VikrantKumar121/kart
b92838526fd5c3035be836c163789a54a80c4f04
a330349b68c6ecfedcbf3b9ccf5890237009bfbf
refs/heads/main
2023-08-11T19:42:34.632786
2021-09-14T21:02:50
2021-09-14T21:02:50
398,318,146
0
0
MIT
2021-09-07T11:14:58
2021-08-20T15:18:26
JavaScript
UTF-8
Python
false
false
312
py
from django.contrib import admin from .models import Category # Register your models here. class CategoryAdmin(admin.ModelAdmin): prepopulated_fields = { 'slug': ('category_name',) } list_display = [ 'category_name', 'slug' ] admin.site.register(Category,CategoryAdmin)
[ "vikrant.kumar@namasys.co@gmail.com" ]
vikrant.kumar@namasys.co@gmail.com
c829a6eddd44dfeaeec21155f8639212cceb2a8c
62d068cf827f909b84de196ad73195ff868568e0
/docs/sphinx/source/conf.py
ccb762c0ef639b3a0e418f5b0bf8d204e92a0291
[]
no_license
Kexin-Zhang-UCAS/alchemistbook
e2e71655a4f533c5f63398a4a6e5503050962da0
d7882fd2ea21d140139e5b2ed2449df1cf4ddaf5
refs/heads/master
2023-08-06T00:39:06.495706
2021-09-17T14:48:11
2021-09-17T14:48:11
406,634,882
0
0
null
null
null
null
UTF-8
Python
false
false
2,302
py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
[ "1033477342@qq.com" ]
1033477342@qq.com
1590637fb6d44e2dfd174e0fc491b295bdb63ba6
1a13a22db3cc21d260bf41e26c14ca7339adeed1
/bkit/__init__.py
db7790daabea628ea7e313f49518ad76733f870e
[ "MIT" ]
permissive
rahmanhpu/bkit
26b960ee00b95969a5ebb63db01e26a4ae6a0dd9
35b0c5738a8a77d3113701d371b9811888f341c9
refs/heads/master
2023-03-13T12:43:49.699412
2021-02-28T19:28:01
2021-02-28T19:28:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
46
py
from . import milestoning from . import ctmc
[ "jpthompson17@gmail.com" ]
jpthompson17@gmail.com
94064235e906eeb34671bd302d9351cdc6579a28
94c1aef818f7a44792407f889b960d08a05f9f1d
/script/03_plots.py
ce7e412e253befdc05b9a1262ac86cc7c4275a39
[]
no_license
JenniferJoerissen/python-novice
6e25a179db9be03ba093850ae59891fc66ecb736
f073475ff2191ecc78c0fc295bd4f9b556e07943
refs/heads/master
2020-04-02T17:45:41.824831
2018-10-25T17:05:30
2018-10-25T17:05:30
154,670,834
0
2
null
2018-10-25T17:01:14
2018-10-25T12:55:25
Jupyter Notebook
UTF-8
Python
false
false
1,509
py
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas #import library needed to read in csv files # In[4]: anz = pandas.read_csv("../data/gapminder_gdp_oceania.csv", index_col = "country") europe = pandas.read_csv("../data/gapminder_gdp_europe.csv", index_col = "country") # In[5]: get_ipython().run_li...
[ "Jenni-Joerissen@hotmail.com" ]
Jenni-Joerissen@hotmail.com
603c02c9caff8ea51ad51d3a55e4821cad4a9f6b
d61056dfc89703368656f403913693e20269b954
/inventario.py
230ccc5c8ee2c4f733342aa7a1265d7ad7881ec4
[]
no_license
antocaroca/inventario
592eadc6d42458f1fb1c8d1eecbeb60f380c7d44
2f351b8a8eb98c9abd006d3b98ef340e38f73e32
refs/heads/master
2022-04-23T17:38:10.901036
2020-04-22T00:12:16
2020-04-22T00:12:16
255,771,595
0
0
null
null
null
null
UTF-8
Python
false
false
4,129
py
from tabulate import tabulate class Producto: def __init__(self, nombre, cantidad, precio, id_producto, categoria, peso): self.nombre = nombre self.cantidad = cantidad self.precio = precio self.id_producto = id_producto self.categoria = categoria self.peso = peso ...
[ "antonella_caroca@hotmail.com" ]
antonella_caroca@hotmail.com
4553b6d5bf64bbd8f49554b47d959e627a89ee18
421e68516f517902ebe29621ad54924094ffd13b
/create_setting_keys.py
e935b0ac14b33f7c0d72efd65439fb154354d210
[]
no_license
andreaskuepfer/cross-lingual-product-matching
a53e7dd5df9b495b444a4a931bdf05c76395794a
0bd5d92e4f6d41a5224756a5c4dad3d495e7dcf9
refs/heads/main
2023-04-28T23:16:50.206376
2021-05-20T09:05:02
2021-05-20T09:05:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
770
py
import json from argparse import ArgumentParser from util import create_config_key def create_keys_from_configs(input_path: str): """ :param input_path: Path to settings.json (must be placed in the same directory as the "datasets"-folder) :return: """ # Read settings file with open(...
[ "noreply@github.com" ]
andreaskuepfer.noreply@github.com
cad6a5ac1ef1f08fe5dd284357f21c7db199bdf5
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/genfragments/EightTeV/Qstar/QstarGIToQZ_M_2500Fs05_8TeV_pythia6_cff.py
b6d1de12d41f4e2ba6ff9090c8292704ed18df5f
[]
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
2,499
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.PythiaUEZ2starSettings_cfi import * generator = cms.EDFilter("Pythia6GeneratorFilter", pythiaPylistVerbosity = cms.untracked.int32(0), filterEfficiency = cms.untracked.double(1.0), pythiaHepMCVerbosity = cms.untracked.bool(False), co...
[ "sha1-481a5a2ac9973b7cab990140e7a395466f50a31e@cern.ch" ]
sha1-481a5a2ac9973b7cab990140e7a395466f50a31e@cern.ch
064a15eca31adf22e6991b9aac56c471247760b2
a84f5b92c5c9b7d280362fab75f7ebc7c06f70d3
/myTorch/nn/Padding.py
1388d2cef9ec8bbe6fdbd716531bdb15d5781e4a
[]
no_license
cubayang/DeepLearningForWallShearStressPredictionAndImageSegmentation
f3cb416d3ebc1505f64b87364a73c838f797d808
dbb5e6a58b0ecfdb4ed3b05e5ca1841a321bd11b
refs/heads/master
2023-06-30T04:55:18.208681
2021-02-26T06:29:47
2021-02-26T06:29:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,992
py
try: from myTorch.nn import Layer except ImportError: from .base import Layer import torch as _torch class _periodic_pad_controller: """ controls the way in which padding is performed [extended_summary] Returns: [type]: [description] """ def __init__(self, padding_tuple, switches...
[ "38807452+hj40@users.noreply.github.com" ]
38807452+hj40@users.noreply.github.com