blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
7f34d309a138f6484ccd2dea3a29b16bc86bd2c6
65d31d51e609ce0dbad5dd6b8d54ac6cb87caa2d
/hacker_rank/sherlock_and_valid_string.py
7a493465e2f7dff74cd64ca8107e9c5fad861470
[]
no_license
cabaleirog/coding-challenges
1bb19cfe680b4bec93ae02f836a38ebdd1a1ff41
601414df4e3cb69a02fe04713decb6692d397a04
refs/heads/master
2021-05-12T11:33:24.798790
2018-09-26T20:41:28
2018-09-26T20:41:28
117,390,647
0
0
null
2018-09-26T20:41:29
2018-01-14T00:52:02
Python
UTF-8
Python
false
false
1,563
py
"""Sherlock and the Valid String. https://www.hackerrank.com/challenges/sherlock-and-valid-string/ - Difficulty: Medium Sherlock considers a string, s, to be valid if either of the following conditions are satisfied: - All characters in s have the same exact frequency (i.e. occur the same number of times). For exam...
[ "cabaleirog@gmail.com" ]
cabaleirog@gmail.com
53789d5e0a37a00dda8d6734f841a7ccebebff88
d63a429e6c6d8805cb7c029346478caed550f614
/src/stk/molecular/topology_graphs/cof/periodic_square.py
10e4262ea0a8a9b140a5e54eaa87957be6107b8c
[ "MIT" ]
permissive
yingli2009/stk
824c5aff04b465fcf7bb2e5322a0dff2a136b6c9
b01482650952ec96ed4e6beb2f98d8de17ad41df
refs/heads/master
2023-02-08T21:37:26.145334
2020-12-29T10:12:56
2020-12-29T10:12:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,992
py
""" Periodic Square =============== """ import numpy as np from ...reactions import GenericReactionFactory from .cof import Cof from .vertices import _LinearCofVertex, _NonLinearCofVertex from ..topology_graph import Edge from ...periodic_info import PeriodicInfo class PeriodicSquare(Cof): """ Represents a ...
[ "noreply@github.com" ]
noreply@github.com
d7e3544a60a294baed13bff76f5e0892d5b02f14
62951dfd242defd390a688c0d41c465c09b07141
/obstacle_pin.py
d2af5c2a4703900be1fff2d56a59e2e645aed975
[]
no_license
junseougku/2018-2dgp-project
781155533dd6984d3ceac78dc1b31a598f0e6e7d
d05b5dc37979ce4ecb05dae36a7f1d6414b621fc
refs/heads/master
2020-04-02T03:36:40.901417
2018-12-05T09:32:49
2018-12-05T09:32:49
153,974,999
0
0
null
null
null
null
UTF-8
Python
false
false
1,278
py
from pico2d import * import mygame import obstacle import random class Obstacle_Pin: def __init__(self): self.type = random.randint(0,2) self.image = obstacle.obstacle_list[self.type] self.x = 900 self.velocity = mygame.GRASS_SPEED_PPS if self.type == 0: self.y = ...
[ "jsg3001kr@daum.net" ]
jsg3001kr@daum.net
aeedf79574fb645c330f2c9285caa73a7e7cc84a
09cead98874a64d55b9e5c84b369d3523c890442
/py200703_python1/day18_py200830/if_ex_2_b.py
86d87ce269e727558d85bff7d25188b797e7433c
[]
no_license
edu-athensoft/stem1401python_student
f12b404d749286036a090e941c0268381ce558f8
baad017d4cef2994855b008a756758d7b5e119ec
refs/heads/master
2021-08-29T15:01:45.875136
2021-08-24T23:03:51
2021-08-24T23:03:51
210,029,080
0
0
null
null
null
null
UTF-8
Python
false
false
591
py
""" ex 2. write a program to find the smallest number among 3 given numbers """ a = 24 b = 15 c = 6 d = 78 max = a # 1st round if max < a: max = a # 2nd round if max < b: max = b # 3rd round if max < c: max = c # 4th round if max < d: max = d print("The max number is {}".format(max)) # num1 = ...
[ "lada314@gmail.com" ]
lada314@gmail.com
45552e82bfea7e2615183350dd4c9b96bcba23fc
988373da833e3876eef2545fa54ce3d13af8189e
/sample_wavegan.py
3d120f6a148f17dde1445939f85106b9eda62c23
[]
no_license
johndpope/latent_transfer
dfe697b4a3779288452b43b26f1b46087b327a6e
f4b10d188e8042e760b16ae5be2b3e1d32b11126
refs/heads/master
2020-03-27T16:31:01.888624
2018-08-30T16:58:19
2018-08-30T16:58:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,708
py
# Copyright 2018 Google Inc. 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 applicable law or ag...
[ "alan.yt.tian@gmail.com" ]
alan.yt.tian@gmail.com
dd464677af49266e8d83c2e15cea9dd86761714f
2c012eb26026cc46911c4512dadbd1d67d6e68b0
/AmList.py
70edfbb9224073b012bb01d1f2b6ca20dfb54b57
[]
no_license
masahorie/personal_project
3f11a9af0465e4edd6eae928d59be0c20d50ee69
24d72a6c11abcc953d47d4fe85687c855fefe37f
refs/heads/master
2022-12-11T23:43:38.696608
2020-09-26T23:46:48
2020-09-26T23:46:48
287,426,300
0
0
null
null
null
null
UTF-8
Python
false
false
4,981
py
import bs4 as bs import urllib.request import xlwt # Make workbook workbook = xlwt.Workbook() # Add sheet sheet = workbook.add_sheet("AM Frequency List", cell_overwrite_ok=True) #def excel_init(list_num): #Change col width third_col = sheet.col(0) third_col.width = 64 * 50 third_col = sheet.col(1) third_col.width ...
[ "masa@miraclemindpublishing.com" ]
masa@miraclemindpublishing.com
e7069539c2c206609404a137c4de6a233c054fe6
8684947c22eb0c50f618dde9ed959ddee469cc33
/datasets/crucial/evaporation_deficit.py
3a046481d1020261d6751a5f07355e602d3d7522
[]
no_license
openearth/dgds-backend
63f1a2547405f48a09062f06154d9a47d220eb8f
8022cbf152ff0fd437478390f6495691c0bda475
refs/heads/master
2023-08-09T06:21:56.989826
2023-07-20T14:44:48
2023-07-20T14:44:48
177,737,059
3
1
null
2022-09-23T22:08:00
2019-03-26T07:34:39
Jupyter Notebook
UTF-8
Python
false
false
1,865
py
from os.path import basename, exists, join import os import netCDF4 import numpy as np import rasterio from rasterio.transform import from_bounds from datetime import datetime def evaporation_deficit_to_tiff(tmpdir): for root, dirs, files in os.walk("."): for filename in files: if filename.startsw...
[ "noreply@github.com" ]
noreply@github.com
98c7e17e4451548aea292361f1e18eafd31218fe
6eb313e809a64c37bd92d1245b1a93bd9d66f4c9
/deslgn1.py
08acb634c4b322bc14990c7c9266e3a76a54c2c9
[]
no_license
hymanly/shiyanlou-code
23e2dcfda09bd00eec52e6bb778e856287ba3e99
501eeba2e3e4513740213a347ac26af7668a8fef
refs/heads/master
2023-01-05T14:52:28.175050
2020-10-29T10:48:26
2020-10-29T10:48:26
301,900,335
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
#!/usr/bin/env python3 row = int(input("Enter the number of rows: ")) n = row while n >= 0: x = "x" * n print(x) n -= 1
[ "hymanly@126.com" ]
hymanly@126.com
0473a796721e11d890b9e2f12ae37ede1d67775f
ae9602a052bfb1846934e726f5caa6ba920d4ecb
/practice8-1.py
bd778b40411be7f6f902a7b809565acf300f5992
[]
no_license
cactusHats/pythonLesson
28e9a1343c76265802778ffa24cd6a84cc712cad
24bae053cb8d724a6357adc7c1e77327112eb7a6
refs/heads/master
2022-06-06T11:09:40.109012
2020-05-05T15:11:52
2020-05-05T15:11:52
258,558,223
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
class Car: def __init__(self, num, gas): self.num = num self.gas = gas def getNum(self): return self.num def getGas(self): return self.gas car1 = Car(1234, 25.5) car2 = Car(2345, 30.5) print("ナンバーは", car1.getNum(), "ガソリン量は",car1.getGas() , "です") print("ナンバーは", car2.getN...
[ "mickeymasashi@gmail.com" ]
mickeymasashi@gmail.com
6bd179e5418c8abe7408d1b082cebf65c5341827
8d4a1762c6cb702b0cbc87db4dfd7fcd28ecef0d
/Referrence/code/PL/코드/전체코드/Ubuntu_server/File_Information.py
d81a4ca49566cb11257e98c5c146b73bd8bbf433
[]
no_license
JissuPark/binary-diffing-tool-1
f8433159603a78983e3be5710994e57adb713f2c
46fd8e966b315dae93b69fce814a469e7d248610
refs/heads/master
2023-01-25T01:59:14.539810
2019-12-21T06:52:16
2019-12-21T06:52:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,352
py
try: import hashlib import operator as op import binascii except: print("IMPORT ERROR") class STRINGS: def __init__(self): self.VECTOR='0x4a5b6c7d8f9a' self.blocksize=65536 def getHash(self,path): self.path=path self.afile = open(self.path, 'rb') ...
[ "41054743+dlehdwncy2@users.noreply.github.com" ]
41054743+dlehdwncy2@users.noreply.github.com
78d0048ef2d94290dae820705e1a609ceb4a76fe
e7a826d007d3e457839ab179422c27a3a25ac839
/src/connect/connector.py
787cdb3bacc3cc7ff6f84a570a3362b6d24f1d88
[]
no_license
szymon-rajewski/device-manager-desktop-client
d4b2e4d7a41a554ea58b15a59ceb49d3916f8979
1f822dc84e4009ed7e411be8ed1e1273cc399839
refs/heads/master
2022-08-05T10:01:35.083261
2020-06-02T05:59:21
2020-06-02T05:59:21
268,714,326
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
def listen_devices(): def connect(): def wait_to_establish_connection(): def stop_waiting(): def is_connected(): def retry_to_establish_connection(): def disconnect(): def send_request(): def store_request(): def is_error_occured(): def is_request_delivered_successfully(): def is_request_data_equal(): def g...
[ "szym.rajewski@gmail.com" ]
szym.rajewski@gmail.com
ec065b19864c19632e9a0097ef46410c61e76130
bb6494e18ccf0cc4697aca2ae3b8fa58fcb3689f
/dashboard/views/build.py
22803dbcc655a98f3351bb7d796d19dcd82f8547
[]
no_license
devendra104/log_analyzer_tool
ded118a6e247d403477213ac09db9363d6a3ea66
4df05444de90cc1f5f5bac34c450895c3401f862
refs/heads/master
2023-02-20T15:59:29.559253
2022-04-13T06:07:34
2022-04-13T06:07:34
233,526,880
9
0
null
2023-02-15T22:48:50
2020-01-13T06:29:42
Python
UTF-8
Python
false
false
2,397
py
from wtforms import Form from wtforms import SelectField from wtforms import SelectMultipleField from wtforms import StringField from wtforms import SubmitField from wtforms import TextAreaField from wtforms import validators from wtforms.validators import InputRequired class JobSearchForm(Form): job_name = Strin...
[ "desingh@redhat.com" ]
desingh@redhat.com
e5d72240975f0223254f65e6e8105a755a14c8ac
5ffde698f55dde1e09d20b57b6d7c6d45a85ae39
/GCN-MNIST/lib/pipeline/augment_test.py
acec95e5d80038188eed1ac407066e69d61b1740
[ "MIT" ]
permissive
catweld/GNN-Node-and-Graph-Embedding-Visualization
3b23cb121d39187063a7a1edc1ebc7412aa90479
fc91c1403e26f63e82d494a4f72652a90dc37ef1
refs/heads/main
2023-07-10T13:55:42.534371
2021-08-11T02:09:51
2021-08-11T02:09:51
377,009,251
2
0
null
null
null
null
UTF-8
Python
false
false
3,304
py
from unittest import TestCase import numpy as np from numpy import pi as PI from numpy.testing import assert_equal, assert_almost_equal import scipy.sparse as sp from .augment import (flip_left_right_adj, random_flip_left_right_adjs, adjust_brightness, random_brightness, adjust_contrast, ...
[ "cfw56@cornell.edu" ]
cfw56@cornell.edu
79ec8a3acce0c14851deb3f1c13c3ed4fc86487d
230ee9a4d0ca1820bf36ba8c3bfff5b5ef4b36bc
/__init__.py
7b2373bfd77108ed38f148ed656862f9d41b6253
[]
no_license
primalrun/chs_vmr
b12314dce0d190f3330d314bdef708e159f62026
e756b62e4decc4c0e35c75de0e0cae86e9bf9b3e
refs/heads/master
2021-05-09T20:05:56.185489
2018-03-14T22:46:12
2018-03-14T22:46:12
118,679,663
0
0
null
null
null
null
UTF-8
Python
false
false
2,518
py
import date_logic import coid_dept import clinician_demo import fin_data import common_functions import production import benchmark import pandas as pd import pathlib import contextlib import os #output file dir_path = r'c:\\vmr\\' pathlib.Path(dir_path).mkdir(parents=True, exist_ok=True) #default v...
[ "noreply@github.com" ]
noreply@github.com
e5a530fc5cf0c4e945782e013924a8ad746bce15
933376c11498a6567da8d7eb7d2675100895c3ba
/pyzoo/zoo/chronos/examples/auto_model/autoprophet_nyc_taxi.py
db4282b6e4d0bc5f4e012b570aa603848f11ebcc
[ "Apache-2.0" ]
permissive
intel-analytics/analytics-zoo
320a461765f86d41dd456b598b1cf1d51d57f4c4
7cc3e2849057d6429d03b1af0db13caae57960a5
refs/heads/master
2023-08-13T20:47:58.621714
2023-07-06T00:49:11
2023-07-06T00:49:11
90,328,920
3,104
996
Apache-2.0
2023-09-06T01:51:18
2017-05-05T02:27:30
Jupyter Notebook
UTF-8
Python
false
false
3,730
py
# # Copyright 2018 Analytics Zoo Authors. # # 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 agreed to...
[ "noreply@github.com" ]
noreply@github.com
399b913bc14a2124ecd382b1d44c22aafe51903b
465cbef982d4d3b8c653021475ce35810c390d2b
/src/data/train_test_split.py
cd2953ede8b6013887f7d243092eb32f2c9bf7dc
[]
no_license
ryersonburdick/sparse_rewards_transformer_games
d4cb06766ee4b8a49d5c8e5d198f92e71b79a000
7c25ad051030687d5ffcb77def0d14bbe4c109f4
refs/heads/main
2023-07-15T13:49:12.092939
2021-08-24T01:20:28
2021-08-24T01:20:28
395,064,779
0
0
null
null
null
null
UTF-8
Python
false
false
1,512
py
"""Split text file into train and test datasets.""" import os import argparse import random from math import floor parser = argparse.ArgumentParser() parser.add_argument("--data", help="Path to dataset text file.", required=True) parser.add_argument("--train", type=float, default=0.8, help="Proportion of sam...
[ "noreply@github.com" ]
noreply@github.com
2089eeeb5bdacdf59e6fcc8e10436103bd52925a
eeec110db61e9f07f97103c2c26a1b892b59e463
/6. Python program to calculate Area of Isosceles Triangle.py
3badc387015afbf5feeded4f41a08d3f64553562
[]
no_license
theblacksigma/Py9ft
117157d52f6cd6be30df6733177f9ded0e187583
bb741db606aa13b36d6fd9928984314078e0f96c
refs/heads/master
2022-03-08T06:45:28.691788
2019-11-15T11:15:08
2019-11-15T11:15:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
#Python progra to calculate area of Isosceles Triangle #Assuming side a= side b (For an Isosceles triangle two sides are equal) a=int(input("Enter length of side a:")) b=int(input("Enter length of side b:")) c=int(input("Enter length of side c:")) p=a+b+c a=(c/4)*(((4*a*a)-(c*c))**(1/2)) print("Perimeter of Isos...
[ "noreply@github.com" ]
noreply@github.com
3e28305929e282c5797408f3c181548c8a8a08c8
96c12b228696ed2ad30bf47ba68d918d6d1e001f
/news/migrations/0001_initial.py
5c443fcae5f891c20283bbac0c521945e4a36be3
[ "MIT" ]
permissive
Marionjames-ally/Galleria
ff6ca2e76ecab0788466a9b607807bb6ee1363dd
f2024e110002fafcd9055e361ac06eb4e5b5aaef
refs/heads/master
2022-12-11T02:40:47.643373
2020-06-06T12:24:57
2020-06-06T12:24:57
243,685,227
0
0
null
2022-12-08T03:42:32
2020-02-28T05:24:46
Python
UTF-8
Python
false
false
1,643
py
# Generated by Django 3.0.3 on 2020-02-29 10:56 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ...
[ "marionjames2018@gmail.com" ]
marionjames2018@gmail.com
9e274569e9a69cde12005a4f9cbda430d664a352
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/Trigger/TrigHypothesis/TrigBphysHypo/python/TrigMultiTrkFexConfig.py
7ff7c6851f577e90bd81bf44b82f5324d00b7fa9
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
21,996
py
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration # include the python fragment to set up the default bphysics vertex fitter from TrigBphysHypo import TrigBphysVertexingConfig from TrigBphysHypo.TrigBphysHypoConf import TrigMultiTrkFex from AthenaCommon.AppMgr import ToolSvc from TrigTimeMon...
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
d9d3b2122bca6e9582d8ac5431a3e25ca377008b
b4243ab6d12f061000a26b35b4c3c1db0db5bb62
/set_position/report/parser.py
0dd0052445a0f1d957320f34d54c8228bb582df3
[]
no_license
TommyU/set_position
4ad02e9ef00874f7f0c68a73b86338e7aaf9eefc
0cd4510b273235cf38359226c707e4e177c0d7d2
refs/heads/master
2016-09-05T09:41:41.162325
2014-09-28T11:49:23
2014-09-28T11:49:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,307
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
[ "lion_awake@163.com" ]
lion_awake@163.com
2293319b14560f5af362d8fe6b70ceec58c279ac
e717dd0d127c66229446c6eeec74c108b57fbc62
/orders/migrations/0007_auto_20180704_0201.py
43f7756f84b8ab36dbda24d3d1c8c8033bc88006
[]
no_license
jemartpacilan/Catr
ea71d9b22ad673a5413a76d53731224de653b899
316c674248a10060ceb22dbf9aaf29b5b1f5ea6a
refs/heads/master
2022-12-03T20:13:51.484498
2019-12-12T08:43:43
2019-12-12T08:43:43
227,428,111
0
1
null
2022-11-22T02:58:31
2019-12-11T17:58:07
Python
UTF-8
Python
false
false
371
py
# Generated by Django 2.0.6 on 2018-07-04 02:01 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('orders', '0006_course_course_unit'), ] operations = [ migrations.RenameField( model_name='history', old_name='points', ...
[ "jpacilan@fullscale.io" ]
jpacilan@fullscale.io
f4b8192004ce31ca02f48635c0dc4aecb46d2e7d
cb444d4dc14fd827a8638a57c70a109dd16295b6
/contar-objetos.py
60ea7a71ef5d748db8ec3a21742af037c2128702
[]
no_license
Erick-Pines/D.-Electronico-OPI-Epic-Crossover-
2b88e413d59804e4f67d6b816b8404fc54ba55be
d05b0a99937bc4700eec47cebea905e413f535bd
refs/heads/master
2020-03-20T22:18:42.021955
2018-07-03T03:15:10
2018-07-03T03:15:10
137,790,950
0
0
null
null
null
null
UTF-8
Python
false
false
2,837
py
import cv2 import numpy as np height = 286 #480 pixeles en grabacion width = 468 #640 visited = np.zeros((height, width), dtype=bool) # Arreglo de visitados dx=[0, 1, 0, -1] dy=[-1, 0, 1, 0] colors = [ # Definir el rango de colores en HSV (Matiz, Saturacion, Luminosidad) (np.array([45, 45, 40]), np.array(...
[ "afr102903@gmail.com" ]
afr102903@gmail.com
ac1a02180874316578da5105c9e75daad55408dd
9415e62e5347d8f3dae6f68b817fb3cb90310684
/scripts/get_token.py
48c501486a5392abfabfd0decd3be281b4403279
[]
no_license
devinho/uber-curbside
ce7292e061abb8ccb5ef454867fe5def55ece653
acf21e516e177f3b35d78413ecf613e3a8d2bf39
refs/heads/master
2020-04-15T16:08:58.087840
2015-08-11T20:05:41
2015-08-11T20:05:41
40,498,910
0
0
null
null
null
null
UTF-8
Python
false
false
656
py
import requests # Once your user has signed in using the previous step you should redirect # them here parameters = { 'redirect_uri': 'https://uber.com', 'code': 'iwMx1J0n215e4PtVncKTaeSC0MpsXD', # insert code 'grant_type': 'authorization_code', } response = requests.post( 'https://login.uber.com/o...
[ "ho.devin05@gmail.com" ]
ho.devin05@gmail.com
14e978bee112b9a3de2f2d0d9e896ef98050957b
1952b557253a8be67346aa043cce35d5bba0ce4c
/Ubuntu_V1/scripts/compute_recall.py
8346278c941360b3c31a4bd157d0862628256f28
[]
no_license
JasonForJoy/IMN
a127cba4546abc00aa26599891bed383bdd11c43
0595b67f146fcec9e4905968decbff9a57039914
refs/heads/master
2020-04-15T05:47:27.635754
2019-11-03T13:06:49
2019-11-03T13:06:49
164,437,386
92
17
null
null
null
null
UTF-8
Python
false
false
1,035
py
test_out_filename = "ubuntu_test_out.txt" with open(test_out_filename, 'r') as f: cur_q_id = None num_query = 0 recall = {"recall@1": 0, "recall@2": 0, "recall@5": 0} lines = f.readlines() for line in lines[1:]: line = line.strip().split('\t') line = [float(ele) for ele in line] ...
[ "noreply@github.com" ]
noreply@github.com
a0a3b9b675a2be13b66e294e41e133e675115ea0
a424742e3e784c33625bf29295483469d2a8962a
/eval.py
0056f8bcb5514f1b0642a7c179a71a5194665ab7
[]
no_license
eeyrw/PyTorch_YOLOv2
82b3b8bf6c9562a43367f7cfcbdea8954c685dd5
4ccf8fb8a61d484e70af611f021013fe53133178
refs/heads/main
2023-04-27T03:20:27.680365
2021-05-20T12:28:14
2021-05-20T12:28:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,541
py
import torch import torch.nn as nn from data import * import argparse from utils.vocapi_evaluator import VOCAPIEvaluator from utils.cocoapi_evaluator import COCOAPIEvaluator parser = argparse.ArgumentParser(description='YOLOv2 Detector Evaluation') parser.add_argument('-v', '--version', default='yolov2', ...
[ "1394571815@qq.com" ]
1394571815@qq.com
fb757335b80e5cbcca1b70289f016cded9ea0f02
11facacea2eda778c80a2472af4ee897d4997dde
/PSUCrypt.py
8b246f6079f7572782895e2dcf2d9ed67a541bac
[]
no_license
albicant/CS485_elgamal
d04cd4d9ce258e910e312e0415f926369aec3dec
a684be9b9ab9712f3969d20f7ba855a3ab8eec97
refs/heads/master
2022-04-28T23:18:17.295850
2020-05-02T02:25:42
2020-05-02T02:25:42
243,927,307
0
0
null
null
null
null
UTF-8
Python
false
false
991
py
# Gennadii Sytov - CS485 - Winter2020 - Project 2 import random class PSUCrypt: def __init__(self, pubkey, prikey, seed = None): pk = pubkey.split( ) if len(pk) < 3: raise ValueError("Error parsing the public key.") self.d = int(prikey) self.e1 = int(pk[0]) sel...
[ "silvics@protonmail.com" ]
silvics@protonmail.com
7a66aee98d157ad610a54ede9f6e6cd887b2c2e4
ddc46f93d33ab64d758bd2816e73e239754ef344
/resources/finance/python_trading_bots/bots_python/MultiPoloniex/common.py
950f1b43e98f99402b74583c4b57eeb07b75d6f4
[]
no_license
aceri/portfolio
06978bea698d8d149bbeb125a8e777fda15e7a6a
594fc3c53d0e413ca9e6b1ab1eacd7f88231b86f
refs/heads/master
2020-07-02T08:26:41.730443
2020-06-26T10:15:32
2020-06-26T10:15:32
242,775,074
1
4
null
null
null
null
UTF-8
Python
false
false
2,070
py
import math import numpy as np import talib def dx(a,b): k=(a-b)/((a+b)/2) return k def zs(arr,LRp,FL,STDp): valor=(arr[-1]-talib.LINEARREG(arr,LRp)+FL*talib.LINEARREG_SLOPE(arr,LRp))/talib.STDDEV(arr,STDp) return valor def zf4(CK,A1,LRp1,FL1,STDp1,B1,LRp2,FL2,STDp2,C1,LRp3,FL3,STDp3,D1,L...
[ "aceri@rbx.life" ]
aceri@rbx.life
538455c14cade9b6dbfe768490b038349e2fa29e
bcb2fb2345cb7110bee3e111614b44578e87db8b
/Group_13/uidai/service/sms.py
a0e3cf347cecc97d06aa4acf3c30497fcf583bf6
[]
no_license
DaaBomb/DBMS_Project
e0105378d8392e397f550e63232c3b344eefb56c
e9ca51c4be255b9005a35004881cb88ed6add4c9
refs/heads/master
2020-05-18T16:05:40.851336
2019-05-02T04:15:09
2019-05-02T04:15:09
184,517,381
1
0
null
2019-05-02T03:48:53
2019-05-02T03:48:53
null
UTF-8
Python
false
false
4,800
py
import requests from bs4 import BeautifulSoup #".*//" class Sms: def __init__(self, mobileNo, password): ''' Takes mobileNo and password as parameters for constructors and try to log in ''' self.base_url = "http://www.way2sms.com/" self.login_url = self.base_url + "re-login" self.msg_ur...
[ "noreply@github.com" ]
noreply@github.com
d2ca494478c1579956613547bc34864aa923f115
66ed99b78f106541c62e2d75c3698e51460e8430
/investgate/models.py
f17017bf64ac92d67671c3ce52029033abc472cd
[]
no_license
JoseJimmy/RegNewsScraper
b679f234bc37cc04e17b9b0fe7573f5a4b0d3832
548dcc97d6639677cedcfe39b683ecd86bc97276
refs/heads/master
2023-02-20T23:17:29.513368
2021-01-25T09:37:51
2021-01-25T09:37:51
314,899,599
0
0
null
null
null
null
UTF-8
Python
false
false
2,169
py
from sqlalchemy import create_engine, Column, Table, ForeignKey, MetaData from sqlalchemy.orm import relationship from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import (BigInteger,Integer, String, Date, DateTime,Numeric, Float, Boolean,Time,Text) from scrapy.utils.project import get_project_set...
[ "jose.jimmy@gmail.com" ]
jose.jimmy@gmail.com
be556717864cef43f8f86a065594f9bdbc36caeb
445b3c4e1b9a79d438f141a227b8f235d5b172e5
/day21_包/glance2/__init__.py
99c170d195583f23fdd57c967f9d6fdbf7e7050a
[]
no_license
fengzongming/python_practice
d835b1164041ac68e6cd8cb6cd8c370033da84fa
82d0449e46c41798d2361c37ed47f028a956439e
refs/heads/master
2020-04-09T19:42:18.076487
2019-01-17T17:36:14
2019-01-17T17:36:14
160,551,026
0
0
null
null
null
null
UTF-8
Python
false
false
52
py
from . import api from . import cmd from . import db
[ "956626817@qq.com" ]
956626817@qq.com
2d8f1205dd887ce96442a59c6b67c95c73400344
70b5c70d67dfed37c0317c605821c747516a3b13
/browser/sarafi/views.py
618372a1c7abb02e788df944d7bf05c7d9389ac6
[]
no_license
jaxman020/browser
ff153106ba12d0e74daa6cec388e283914e1cd41
fff8dff28a6437f8bde739e2bd91f86ad767d1e6
refs/heads/master
2021-01-10T10:36:12.154569
2015-12-15T16:18:09
2015-12-15T16:18:09
47,606,006
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
from django.shortcuts import render def sarafi(request): context = {'message':'Django 很棒'} return render(request, 'sarafi/sarafi.html', context)
[ "m516@m516" ]
m516@m516
eed3afbb97e48fae80a14a977c246d46fc89030a
0c469c4100fe9d352e83731688e388062a3c55c7
/Binary_Search/374. Guess Number Higher or Lower.py
48760947821ff471c3bde8720687f3f3cb131280
[]
no_license
asperaa/back_to_grind
9e055c7e6561384e5b7ae52f01063e4beb34a298
5ea1976b9d5c6d04800e296e45e8ff90fdde5001
refs/heads/master
2022-12-16T18:32:01.443743
2020-09-05T13:29:39
2020-09-05T13:29:39
254,910,528
1
0
null
null
null
null
UTF-8
Python
false
false
528
py
"""We are the captains of our ships, and we stay 'till the end. We see our stories through. """ """374. Guess Number Higher or Lower """ def guess(num): pass class Solution: def guessNumber(self, n): left, right = 0, n while left <= right: mid = left + (right - left) // 2 ...
[ "adityaankur44@gmail.com" ]
adityaankur44@gmail.com
48db6cc5d339d6c86941af1f2a90633836b31747
2bad7643eb93510652d7e6267a6840d1e7a40371
/pygameexample.py
d91f9db7c0e9e6a20b580d3333bd07a8b56354a0
[]
no_license
sarathrasher/Python_Exercises
9c033971cce4eb4ae894d987a16a524393a8d740
be5d7476b749a2205b3bc22ea7abdcf4f845b369
refs/heads/master
2020-03-22T05:57:10.198701
2018-07-03T15:00:21
2018-07-03T15:00:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
680
py
import pygame def main(): width = 500 height = 500 blue_color = (97, 159, 182) pygame.init() screen = pygame.display.set_mode((width, height)) pygame.display.set_caption('My Game') clock = pygame.time.Clock() # Game initialization stop_game = False while not stop_game: ...
[ "saramuntean@Saras-MacBook-Pro.local" ]
saramuntean@Saras-MacBook-Pro.local
1572e5579606a9957144da853c20f0c8c39c58bf
520fcbe076fb1e04187512ddd33802b5c30b2f1a
/blender/nodes/converter/seratate_vector.py
2fd1c13aae88a4b65d1eb496d93390704478ad49
[ "MIT" ]
permissive
LewisOrton/taichi_elements_houdini
c604fa85c662369ee3db94224c5e0166482b0512
50ef3232f080030213bcb7578a48d03647a9445b
refs/heads/master
2022-04-24T08:11:42.173539
2020-04-25T08:12:29
2020-04-25T08:12:29
259,212,298
1
0
null
null
null
null
UTF-8
Python
false
false
1,762
py
from .. import base def get_out_value_x(socket): node = socket.node vectors = node.inputs['Vector'].get_value() x = node.outputs['X'] # scene scn = bpy.context.scene key = '{0}.{1}'.format(node.name, x.name) res = [] for vector in vectors: res.append(vector[0]) scn.elements...
[ "stalkermodkytia@yandex.ru" ]
stalkermodkytia@yandex.ru
2bd8cd32bed4a8f740e40a2060a83cf5fca54860
7b0a2debefe86b9e74760d549adfbe281d54f96c
/admin/login/login.py
a1954ab46d5945145c2d2bc27d68088da0cc5425
[]
no_license
lunllee/web-page-tester
f54d09d016265683fd477c6e74f7adbfeb89aa15
4f751540794325e85319a3bc1806b9da9164928d
refs/heads/main
2023-07-01T03:12:15.231593
2021-08-05T23:26:37
2021-08-05T23:26:37
391,782,056
0
0
null
null
null
null
UTF-8
Python
false
false
1,500
py
from seleniumDriver import driver from util.randomTyping import random_typing import logging class Login: def __init__(self, login_id=None, login_pw=None, get_driver=None): self._id = login_id self._pw = login_pw self._driver = get_driver logging.info(f"Login ID: {self._id}, Login ...
[ "59350136+lunllee@users.noreply.github.com" ]
59350136+lunllee@users.noreply.github.com
95f2df8c536cc5993c11a3ea01acdfaf542d4a8a
f5eced6c8431d26e46d3814868bdfbe603784cd9
/app/db.py
0c9cbceeca59217c10f63ac8cf05a22916f3b01c
[]
no_license
nahidmbstu/Flask-Crash-Course
b0c28116787a4c5d9295bd774f6d2c989912db33
c4ac5ce5cc058e174164c6372acab9e8b8d60625
refs/heads/master
2022-06-09T03:54:47.362102
2020-05-07T18:43:42
2020-05-07T18:43:42
262,129,359
0
0
null
null
null
null
UTF-8
Python
false
false
1,194
py
import sqlite3 import click from flask import current_app from flask import g from flask.cli import with_appcontext def get_db(): """Connect to the application's configured database. The connection is unique for each request and will be reused if this is called again. """ if "db" not in g: ...
[ "nahid.mbstu.ict@gmail.com" ]
nahid.mbstu.ict@gmail.com
53782ebdaec5105beb96a0ea327db79cdcb20e31
52b5773617a1b972a905de4d692540d26ff74926
/.history/MinWindow_20200713232140.py
da9aae373aa9bf562d26a1905143fca258c24897
[]
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
850
py
# pseducode # "ADOBECODEBANC" # "ABC" # if n(string) is less than k then return false # have a left and right pointer where both start from the begining and right increases the window size and left reduces the window size # make a dictionart for the char in k and the count of unique char in k def small(n,k): ...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
2f485da556780c5d429d22445924d3107d98aaf3
09d55e4dfa1193560aa9350f1ea900064fc0966e
/manage.py
87a2561c119c783a1c7d6d3bb60edcbbcb72c119
[]
no_license
abakarEgrey/tutoriel_django
8725893bab7bf81045c902e94f99ca6e74139ecf
555b2f43807f637d04a1913409d846eba0ca62f9
refs/heads/master
2020-07-02T17:14:09.030657
2016-11-20T17:32:23
2016-11-20T17:32:23
74,291,285
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tutoriel_django.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "egreabakar@yahoo.fr" ]
egreabakar@yahoo.fr
8cb9392d7aaf14001d99362742c13407fb044952
71dab69e73f63c65605ac5c9b8de0bcb63f1479c
/digit-recognizer/1.py
c027ee4a98704b4ed686df71359711703dd77800
[]
no_license
hannnnk1231/Kaggle
00c1eaa593db348bc2800c587500b557f678e05e
b4b37e529973619138025c8dfda0183e298c425e
refs/heads/master
2022-10-04T13:15:28.139257
2020-06-09T04:38:39
2020-06-09T04:38:39
218,428,068
0
0
null
null
null
null
UTF-8
Python
false
false
2,797
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt from keras.utils.np_utils import to_categorical from sklearn.model_selection import train_test_split from keras import models from keras import layers train=pd.read_csv('train.csv') test=pd.read_csv('test.csv') Y_train=train['label'] X_train=train...
[ "cwhuangb1321@gmail.com" ]
cwhuangb1321@gmail.com
aa1680829b5d875979abf7bdcb40324cc71e2d92
083d82a538723cc512941056cd619b4b17b693c3
/simu_1_614/boolean_formulas/simu_parse.py
34c8b53837c4cdeac21d6e44abe9f8f50e7522c5
[]
no_license
bittdy/ProductFreeLinearTemporalLogic
511c49a6f5b9461cccce3ae5544672d6b4dc8bc0
7344561d60da981abc368ac87f8267497452b3e6
refs/heads/master
2020-03-26T10:59:30.593165
2019-05-10T15:14:40
2019-05-10T15:14:40
144,823,577
0
0
null
null
null
null
UTF-8
Python
false
false
7,163
py
import sys sys.path.append('/home/bittdy/own_code/simu_1_614/boolean_formulas') from lexer import get_lexer import itertools class Expression(object): name = "Expression" def __iter__(self): raise NotImplementedError() def check(self, label): raise NotImplementedError() def distanc...
[ "499801924@qq.com" ]
499801924@qq.com
da7d4652841ae291ed8e59b3fa98a269c2ccd164
1f9673d769dac5deb55f684215b6dbf5087695ad
/desafios/desafio77.py
e018015f8e676a95894d0f32eaba392b1e4f1443
[ "MIT" ]
permissive
JonasAraujoP/Python
bd3704fdc8ba5e0616102f6353e45ccbc7b7e727
4ce6d330af4d078ff8658c82b3f3fbf2c41722d5
refs/heads/main
2023-06-14T20:47:37.739454
2021-07-05T01:48:13
2021-07-05T01:48:13
382,213,313
0
0
null
null
null
null
UTF-8
Python
false
false
294
py
t = ('APRENDER', 'PROGRAMAR', 'LINGUAGUEM', 'PYTHON', 'CURSO', 'GRATIS', 'ESTUDAR', 'PRATICAR', 'TRABALHAR', 'MERCADO', 'PROGRAMADOR', 'FUTURO') #pa = for c in t: print(f'\nNa palavra {c}, temos ',end=' ') for letra in c: if letra in 'AEIOU': print(letra, end=' ')
[ "82325233+JonasAraujoP@users.noreply.github.com" ]
82325233+JonasAraujoP@users.noreply.github.com
eb3e549e3b4b155a018967890bed3f1d8b5ba1da
7233716fbf9fff94240d14770b3fc3f3ada10d9b
/devel/.private/gazebo_msgs/lib/python2.7/dist-packages/gazebo_msgs/srv/_ApplyJointEffort.py
6c9d00df1dcea2740ee6afbc680cd66255a1ae00
[]
no_license
shashankseth01/E-yantra
58d42dce90667ca37f31f2cf111ee98c39468617
23432e058fce7733bd1a8399fd6edc20967fa6a3
refs/heads/main
2023-02-04T00:36:57.230996
2020-12-21T09:55:23
2020-12-21T09:55:23
316,716,460
2
1
null
null
null
null
UTF-8
Python
false
false
11,825
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from gazebo_msgs/ApplyJointEffortRequest.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import genpy class ApplyJointEffortRequest(genpy.Message): _md5su...
[ "shashankseth3@gmail.com" ]
shashankseth3@gmail.com
fe2ee0f64ec32b9f652e28d29290c7c783b2b564
420c53a631ae6ed6d2836e46e1902206d56318eb
/Mylib2.py
61fcce544ec6bb348f1002482f71f284682bef34
[]
no_license
MrN1ce9uy/Python
9145a917702122fc9c1135f99e2499725ac09e01
a5d3569c8f65fd953ef531573486a9154c3ae0a9
refs/heads/master
2023-04-06T02:16:53.343146
2023-03-21T14:32:45
2023-03-21T14:32:45
195,478,408
0
0
null
2021-05-03T01:09:18
2019-07-05T23:49:47
Python
UTF-8
Python
false
false
2,044
py
#Define the main program function def main(): #Define input function def float_input(msg): while True: try: return float(input(msg)) except ValueError: print("You must enter a number!") else: break #Declare variables...
[ "noreply@github.com" ]
noreply@github.com
decad93eb0df344c42b6f1c37e0e86133221f1e3
cd323d09192ca9d8a9e258a0455ff6f07f874896
/src/map_module/tile_types/floor_tiles/list.py
b434cfe5c023aa1c8e863623b43e4e3cfedd34de
[]
no_license
matszach/wildrealm
d9cc03c4b71e79d074cd166242cc3143e67e254a
6e46a4b2de2c24fa18703fa1f482b95ef5114e8b
refs/heads/master
2020-08-07T12:53:32.412078
2019-10-24T21:28:56
2019-10-24T21:28:56
213,458,051
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
from src.map_module.tile_types.floor_tiles.types import * # ===== reference list ===== _FLOOR_TILE_LIST = [ DeepWaterFloorTile, ShallowWaterFloorTile, SandFloorTile, GrassFloorTile, SurfaceStoneFloorTile, DeepStoneFloorTile, PlankFloorTile, StoneBrickFloorTile ] # ===== allows for qui...
[ "lkaszubowski@gmail.com" ]
lkaszubowski@gmail.com
b9561d786c721e51bf86940970d80281b3072ca9
f080af809b618750033b805aac502cec52e7e41d
/Prospective/Set.py
2b2c52bd2e0409d9b980b1518fee66bdd31f47da
[ "MIT" ]
permissive
cos831-2017/DfA-PyWrapper
e7ab15f97d35ebeadece6a1601cfa57a1322dc02
ed4219cbf76e5357e9910703ffec89cf58567dae
refs/heads/master
2021-08-28T18:42:44.898844
2017-12-13T00:44:29
2017-12-13T00:44:29
113,388,171
1
0
null
null
null
null
UTF-8
Python
false
false
924
py
import json from ProvenanceObject import ProvenanceObject class Set(ProvenanceObject): def __init__(self, tag, type, attributes=None, extractors=None, extractor_combinations=None): ProvenanceObject.__init__(self, tag) self._type = type self._attributes = attributes self._extractors...
[ "silvcamposvinicius@gmail.com" ]
silvcamposvinicius@gmail.com
55b2bdc54e83600514c0cd6d09240c467148e50a
381b75fe68a4da258e2e60a97105b66ac47214e4
/qa/rpc-tests/mempool_packages.py
03e130496fdfc82e4e2f6487723ce8dc062aefde
[ "MIT" ]
permissive
lipcoin/lipcoin
3a5997dfc9193ee7dee6f9fa0adc1cb5fb8c92a3
7afc0a02d63620e5a5601474cca131cb0cf3bbe4
refs/heads/master
2021-01-24T07:57:56.248620
2018-03-17T19:04:38
2018-03-17T19:04:38
112,155,869
0
0
null
null
null
null
UTF-8
Python
false
false
10,344
py
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The LipCoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Test descendant package tracking code from test_framework.test_framework import LipCoinTestFramework f...
[ "support@lipcoins.org" ]
support@lipcoins.org
5e4d6876f4320b6102e4a1df480ec21250336434
51ba69ed04a9d923cf4879abd830b28d95da7047
/graphic_with_network/ConstantVariables.py
ba6a9bee883f1e5d54f9f1abe98a0e2e15f9ba74
[]
no_license
MaxenceGorbitz/Snake-Python
5ab3df7fb00b95ae180da1b056aac99fd96f0d45
bd14b3e5545c1410b7cf85c53ed3256348b8ec28
refs/heads/master
2020-12-21T15:03:54.216013
2020-02-03T09:26:27
2020-02-03T09:26:27
236,468,042
0
0
null
2020-02-03T09:26:28
2020-01-27T10:39:53
Python
UTF-8
Python
false
false
260
py
class ConstantVariables: WINDOW_WIDTH = 800 WINDOW_HEIGHT = 500 TILE_WIDTH = 20 NB_ROW = WINDOW_HEIGHT / TILE_WIDTH NB_COLUMN = WINDOW_WIDTH / TILE_WIDTH NETWORK_HEADER_LENGTH = 10 NETWORK_IP = "127.0.0.1" NETWORK_PORT = 5555
[ "maxence.gorbitz@gmail.com" ]
maxence.gorbitz@gmail.com
672e559ce98ab46a3ff2b2ad876c1f97881d2ed7
5869a8c99a2501c48901ac4a59f5532f85f9f77f
/custom_components/browser_mod/camera.py
59baad4e452a059dad0a7b2380b229a479cca298
[ "MIT" ]
permissive
SBado/hass-browser_mod
c7e343f18b50bc97c6db756eb144630f75cc84d0
bb292b2953a36f3f6dcc2c009b1f27210a507670
refs/heads/master
2023-01-04T05:27:39.970577
2020-10-28T08:28:53
2020-10-28T08:28:53
263,847,617
0
0
MIT
2020-05-14T07:37:53
2020-05-14T07:37:52
null
UTF-8
Python
false
false
1,212
py
import logging from datetime import datetime import base64 from homeassistant.const import STATE_UNAVAILABLE, STATE_ON, STATE_OFF, STATE_IDLE from homeassistant.components.camera import Camera from .helpers import setup_platform, BrowserModEntity PLATFORM = 'camera' async def async_setup_platform(hass, config, asyn...
[ "thomasloven@gmail.com" ]
thomasloven@gmail.com
81c14dc95fe92cb71fd3ab3323a7d30f3c721564
45d6b7739ef7e61779d778b16e2d2cb9b92a08c0
/test/run_in_parallel-200PU-grow/submit-49.py
dc64b6143eac91b619db28129379d724ba08a4f9
[]
no_license
isobelojalvo/phase2L1TauAnalyzer
40b545baec97bf287a8d8ab26bea70546bf9f6f8
98ef6d31a523698ba0de48763cadee1d5b2ce695
refs/heads/master
2021-01-22T08:38:17.965156
2019-07-25T17:25:51
2019-07-25T17:25:51
92,623,686
0
1
null
2019-07-23T19:43:55
2017-05-27T20:56:25
Python
UTF-8
Python
false
false
302
py
process.source.secondaryFileNames = cms.untracked.vstring( "/store/relval/CMSSW_9_3_7/RelValZTT_14TeV/GEN-SIM-DIGI-RAW/PU25ns_93X_upgrade2023_realistic_v5_2023D17PU200-v1/10000/6E64C932-2E2D-E811-86D5-0242AC130002.root") process.source.lumisToProcess = cms.untracked.VLuminosityBlockRange("1:24")
[ "ojalvo@wisc.edu" ]
ojalvo@wisc.edu
48b0d6e191faab362bd8ea9eb039791abbdc14f0
4aec44fe50fa5c40f80c45bfb160d2fa7a98a0a9
/students/JonSerpas/lesson01/activity/calculator/calculator.py
f145c34fadac6bc4a3d1d448903ffab2f09774c1
[]
no_license
UWPCE-PythonCert-ClassRepos/220-Advanced-Summer-2019
4e51fde79921e6e75f590bef223bc1b0f118ef41
6ffd7b4ab8346076d3b6cc02ca1ebca3bf028697
refs/heads/master
2022-12-13T01:22:01.063023
2019-09-22T10:21:37
2019-09-22T10:21:37
194,944,978
4
18
null
2022-12-08T01:22:40
2019-07-02T22:51:07
HTML
UTF-8
Python
false
false
887
py
from .exceptions import InsufficientOperands class Calculator(object): def __init__(self, adder, subtracter, multiplier, divider): self.adder = adder self.subtracter = subtracter self.multiplier = multiplier self.divider = divider self.stack = [] def enter_number(sel...
[ "serpasj@gmail.com" ]
serpasj@gmail.com
6d48f45d6eb3ac4fe3fe69c45bf0ec4b44276d16
176f2533c07323f3eccb13d576092c32c46428fc
/game/game.py
46f57da139764cbc2db7162a1541d4ddad3ab89f
[]
no_license
viciu/pyconpl-2014
3fbe382c5376cc54ca448efaca2777e6d242c607
4539ab8135c56cfbb2428c456ca182a86a2f46c9
refs/heads/master
2021-01-17T20:59:36.882412
2014-10-18T08:52:16
2014-10-18T08:52:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,441
py
import random APPLES = ['X', 'O'] ORANGE = '.' GRAPEFRUIT = ORANGE * 9 RAISINS = [ [0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [0, 4, 8], [2, 4, 6] ] def play(): banana = GRAPEFRUIT melon = None coconut(banana) for plum in range(9): prun...
[ "peter.inglesby@gmail.com" ]
peter.inglesby@gmail.com
b027a414e6a8359ade0d1d8142063d6d28000871
fe49660cd180a5fc1b1847880137b378ca92a452
/CompanyTargetsDictionary/PatentTargets.py
2649af82dd2c4559788ecf4c6c0317a21d8c6b7d
[]
no_license
bernie-zhu/sparx
c45833fdcb1b49ad13a2b8755206b46aec3debd3
c1bca13dbaf5c9aa6cd55b4c77c755252e8171d2
refs/heads/main
2023-07-20T17:50:18.656447
2021-07-28T04:36:05
2021-07-28T04:36:05
375,396,347
0
0
null
null
null
null
UTF-8
Python
false
false
8,775
py
from datetime import time import requests from selenium.webdriver.firefox import webdriver import Parsers.ParsePatent from selenium import webdriver import time import pandas as pd from openpyxl import load_workbook import xlrd from xlwt import Workbook class PatentTargets: def __init__(self, company): se...
[ "zaidbarkat174@gmail.com" ]
zaidbarkat174@gmail.com
8e0bdfe080a386857ee33afcf3d843ab104f6644
59d5a8c66e0f9366e46f795dd9224aa7aa253748
/Ticketing/models.py
9183e6588f9f62347692acc819b5ad30fe84cd9f
[]
no_license
kratinidh/denselightpmp
25f771b44e058fd683f428a10443865a02da4b7b
071cb69644fbd591e3230e3591ac9ba5f6d14881
refs/heads/master
2023-02-01T23:07:01.068145
2020-12-18T04:00:48
2020-12-18T04:00:48
314,800,136
0
0
null
null
null
null
UTF-8
Python
false
false
1,685
py
from django.db import models from Profile.models import Profile class Ticket_Comments(models.Model): ticket= models.ForeignKey('Ticket', null = True, blank = False, on_delete=models.CASCADE) user= models.ForeignKey(Profile, null = False, blank = False, on_delete=models.CASCADE) comment = models.CharF...
[ "foreigncollegeadi@gmail.com" ]
foreigncollegeadi@gmail.com
809dbdaf35c9f1d9c579f7c054c3957ee204aa1e
4e163aa4aa0f4c4ddc22f74ae21b6fb1c85a7a09
/238. 除自身以外数组的乘积.py
2e458c88617acdbc6d2816c027b1d9510b858e13
[]
no_license
dxc19951001/Everyday_LeetCode
72f46a0ec2fc651168129720ad0b1e7b5c372b0b
3f7b2ea959308eb80f4c65be35aaeed666570f80
refs/heads/master
2023-08-03T09:22:08.467100
2023-07-23T17:08:27
2023-07-23T17:08:27
270,723,436
1
0
null
null
null
null
UTF-8
Python
false
false
3,634
py
class Solution(object): def productExceptSelf_0(self, nums): """ :type nums: List[int] :rtype: List[int] """ # 核心思想: # 用两层for循环可以轻松解决,时间复杂度为n^2,不符合题目要求 # 核心:利用列表切片,每次循环将不参与计算的数组剔除 output= [0] * len(nums) for i in range(len(n...
[ "870200615@qq.com" ]
870200615@qq.com
35ad4c3c72786ffb20c1bbaf72b6a045ee814c8b
93a68323964981a4f21fc2f0d9717ad32df3ec6d
/sketches/180118-korona-post/plot.py
db34a36d729b0cf437711220a4b273ca7358d8e0
[ "MIT" ]
permissive
gronki/diskvert-old3
97890a7256dc586f23e37122acd66e7361fbfa38
da9fc71acbdaf48b67a372c51481b30f30c88d29
refs/heads/master
2021-03-27T19:46:38.559997
2018-06-26T14:03:28
2018-06-26T14:03:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,852
py
import numpy as np import matplotlib.pyplot as plt from diskvert import * clr = ['#93ABAA', '#09D6AB', '#CB2E13'] dd,pd = col2python('diskd.dat') dw,pw = col2python('diskw.dat') dc,pc = col2python('diskc.dat') kabs = lambda rho, T: pd.kabp0 * rho * T**(-3.5) yyc = pd.kappa_es * (4 * cgs_boltz * dd['trad']**4) / (cgs...
[ "gronki@gmail.com" ]
gronki@gmail.com
dc4ed08a977677281b4fc72a2953c82e79197e51
62bbce232507b0b19ecf1bf1c01205f3b86b7ae4
/opencvtest_andrew/old/cvdraw.py
218c004e7d8ebeba2ca50deac7eb3e3b5b2f6833
[]
no_license
dextaintern/hand_cv
2c30fc4422b7dde29692f5dabb2d45aede5c1d1e
3bec88457870b83c026214b0f684342b36510abc
refs/heads/master
2020-06-30T07:53:00.353618
2019-08-06T06:16:03
2019-08-06T06:16:03
200,771,064
1
0
null
null
null
null
UTF-8
Python
false
false
540
py
import cv2 import numpy as np drawing = False # mouse callback function def draw_circle(event,x,y,flags,param): global drawing if event == cv2.EVENT_LBUTTONDOWN: drawing = True elif event == cv2.EVENT_MOUSEMOVE: if drawing == True: cv2.circle(img,(x,y),5,(0,0,255),-1) eli...
[ "andrew.wang27@gmail.com" ]
andrew.wang27@gmail.com
5a4f9d92fe289722af76a5b98e72b1b8af39a4c6
25b2c02eaa98fa6de977509fa10c72218ba185f4
/backend/app/views.py
aa516179fe0245a07cc1dfe0272f757b28aa11d9
[]
no_license
felps-dev/qjj
37fe15d1a7377bc0c5b81fa70c55c1e2c983e884
1db84c87a52d5b63b26dc9688766150314f96616
refs/heads/master
2023-04-28T03:42:28.592240
2021-05-07T04:46:25
2021-05-07T04:46:25
363,560,606
0
0
null
null
null
null
UTF-8
Python
false
false
1,999
py
from rest_framework import viewsets from rest_framework.decorators import action, permission_classes from rest_framework.response import Response from rest_framework.permissions import AllowAny, IsAdminUser from app.serializers import FeedBackSerializer, JogoSerializer from app.models import Jogo, FeedBack import rando...
[ "pecolps@outlook.com" ]
pecolps@outlook.com
1f300503de778f672d7ebc06e4beda76bb4a1643
3e6307bcf6de602a58a144d504b37e8104f28139
/server/api/management/commands/importmetrics.py
5c074de6ee1c50322215557474dc5654ed8042ec
[]
no_license
kahihia/ccps
aaca0fa9324c8aa7c0d89365056994eb691af123
7b0ac1c9a1098469f99aa3d73c69978d4979a476
refs/heads/master
2020-04-09T18:59:34.998113
2018-01-28T16:13:20
2018-01-28T16:13:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
654
py
from django.core.management.base import BaseCommand from api.models import Profile, Metric class Provider(object): code = None def get_metrics(self, profile): raise NotImplementedError() class Garmin(Provider): code = 0 def get_metrics(self, profile): return [ Metric(p...
[ "stphivos@gmail.com" ]
stphivos@gmail.com
8d772b679d806c8bea1a828b73dc5203c43dd311
40bbf089bdd60e95e124bdf273f3d16480c9d568
/case/unittest/test_loaddata.py
bb258be9df16e914b54b034bba82d9b5204f6389
[]
no_license
wulimin523/webAutoTest
0449f61a7b3ea7e457923ff181ab4f6922604f5d
a5d7a57edf70de79c1b6f008be8027fd670fd98a
refs/heads/master
2023-02-19T04:24:51.813719
2021-01-18T09:20:13
2021-01-18T09:20:13
327,577,360
0
0
null
null
null
null
UTF-8
Python
false
false
932
py
# -*- coding: utf-8 -*- """ ------------------------------------------------- # @Project :webAutoTest # @File :test_loaddata # @Date :2020/12/23 13:11 # @Author :吴利民 # @Email :wulimin523@163.com # @Software :PyCharm ------------------------------------------------- """ import json with open( '../../data...
[ "wulimin523@163.com" ]
wulimin523@163.com
55599bd52b24a2dd6ac34e696da202ed6e1b70a0
65111620bd0687b49b62512e1a1648afa4ead7f2
/src/python/pants/backend/project_info/dependees.py
56608528a5f89dcedfa8761a3b199e0b32f8c05c
[ "Apache-2.0" ]
permissive
Spacerat/pants
97a371c44496914631ce020635a8fc471d044392
0410896adc9e68a2c2b9d67d62ae10712d0b4c27
refs/heads/master
2022-11-28T01:13:06.811633
2020-08-06T23:49:14
2020-08-06T23:49:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,399
py
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import json from collections import defaultdict from dataclasses import dataclass from enum import Enum from typing import Iterable, Set, cast from pants.base.specs import AddressSpecs, D...
[ "noreply@github.com" ]
noreply@github.com
76de8db7db7b116df2a653e92efdb7a12c91cddb
f4b60f5e49baf60976987946c20a8ebca4880602
/lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/actrl/rulehitparthist1w.py
8a6a3bb187bab86c4cfee202fd4bda3c43cf816b
[]
no_license
cqbomb/qytang_aci
12e508d54d9f774b537c33563762e694783d6ba8
a7fab9d6cda7fadcc995672e55c0ef7e7187696e
refs/heads/master
2022-12-21T13:30:05.240231
2018-12-04T01:46:53
2018-12-04T01:46:53
159,911,666
0
0
null
2022-12-07T23:53:02
2018-12-01T05:17:50
Python
UTF-8
Python
false
false
34,176
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "collinsctk@qytang.com" ]
collinsctk@qytang.com
d74e2f6b7e25d33c940d202582a80ec1c2364c49
ab9b527b246c63e4d932a3ef9e9dfabf2900858d
/venv/Lib/python3.6/site-packages/setuptools/_distutils/command/clean.py
9d897008c33e68d3ab41696fa549efb5e9cd6961
[]
no_license
UzJu/ShtermReUserExpireTime
56f8f8f829877366774cd0be33df7b71a3031149
255eb6c18ca8ee6cbfa39c541b1c40b2de2de17d
refs/heads/master
2023-08-14T18:51:09.958087
2021-10-12T02:17:40
2021-10-12T02:17:40
416,148,883
0
0
null
null
null
null
UTF-8
Python
false
false
2,778
py
"""distutils.command.clean Implements the Distutils 'clean' command.""" # contributed by Bastian Kleineidam <calvin@cs.uni-sb.de>, added 2000-03-18 import os from distutils.core import Command from distutils.dir_util import remove_tree from distutils import log class clean(Command): description = "clean up tem...
[ "uzjuer@163.com" ]
uzjuer@163.com
f308981b241322762654ff79f22b6c242d3d5c75
e4011110a82ec4db91dea9eb9d145a92a9228478
/MarkdownShortcuts.py
1bb2d70d242496fc01daf4317180d039e0d51bef
[ "MIT" ]
permissive
jonlabelle/SublimeMarkdownShortcuts
16fed2b1e7cecfe57d7a40d83883c2edf759152e
06126457682208a7412c5cbfe58bc0ce05770345
refs/heads/master
2021-11-20T06:26:18.542738
2021-08-11T04:43:22
2021-08-11T04:43:22
150,827,471
0
0
null
null
null
null
UTF-8
Python
false
false
6,128
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function import re import sublime import sublime_plugin ORDER_LIST_PATTERN = re.compile(r'(\s*)(\d+)(\.\s+)\S+') UNORDER_LIST_PATTERN = re.compile(r'(\s*[-+**]+)(\s+)\S+') EMPTY_LIST_PATTERN = re.compile(r'(\s*([-+**]|\d+\.+...
[ "contact@jonlabelle.com" ]
contact@jonlabelle.com
d4d5245341641c34552bed53652bd37bf02fb477
75b81988d5d2c703460eb5975e76d750ab30ecc5
/Arthematic.py
4b48a5aa90a061323c58788a1e1eb31f92cb5d91
[]
no_license
Charankatragadda/PYTHON
4a880ac6d7500dbb612d97d30c71a9053933cd3a
f366ae83069fc292fe55cc64ca4448e48fb18950
refs/heads/master
2023-01-20T02:42:21.627075
2020-12-03T09:52:14
2020-12-03T09:52:14
291,938,811
0
0
null
null
null
null
UTF-8
Python
false
false
566
py
#Perform all the arithmetic operations a=float(input("enter the first number")) b=float(input("enter the second number")) c=float(input("enter the third number")) sum =(int)(a+b+c) print("the sum of three number is",sum) #addition sub = (int)(a-b-c) print("the subtraction of three number is",sub) #subtraction ...
[ "noreply@github.com" ]
noreply@github.com
834e0bfb683d36df04fe7b02bd8bdcaf5a952402
2b2be9649489d124579e7510c6dc1d8e2bc310f6
/syn/types/a/base.py
58dcbe8554dcde048a35361c43702d158ef0bf7d
[ "MIT" ]
permissive
pombredanne/syn-1
b744d67addc434300bf54ba2d3fdf973dba48d1e
aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258
refs/heads/master
2021-06-16T07:34:30.950848
2017-04-21T06:02:48
2017-04-21T06:02:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,391
py
import six import operator as op from functools import wraps from collections import Iterable from syn.base_utils import nearest_base, is_hashable, tuple_prepend, \ get_fullname, get_mod, get_typename, AttrDict, hasmethod, import_module, \ quote_string, iteration_length, escape_for_eval, compose, safe_vars #--...
[ "mbodenhamer@mbodenhamer.com" ]
mbodenhamer@mbodenhamer.com
bde7fd8e4faeb641fc72497018549ed00f29b325
b756848e006f3426e3fe57646b4f7fb3692575e7
/server/backend/apiary/manage.py
55e113b812f794993a45a0e4388de297893872a5
[ "MIT" ]
permissive
harryjubb/bee_iot
e5bfc91a94b099d2ddda869d7e2dbb0ca5ab0c45
bb3265eeed3e008c1552318b5ccd0ea380854432
refs/heads/master
2023-07-10T20:48:51.509690
2023-06-29T12:08:01
2023-06-29T12:08:01
219,056,317
23
1
MIT
2023-02-15T20:26:39
2019-11-01T20:17:13
Python
UTF-8
Python
false
false
626
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'apiary.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportE...
[ "harry.jubb@gmail.com" ]
harry.jubb@gmail.com
08b801bbd6cc1908a6fa815823d803143607dc0c
27f6ed06c922eb19feb467ae9ad335b21da8795c
/infy/DSA in Python/Day3/enqueue.py
5c2755c71fccd39c67e8fdc14b74655e02a143b7
[]
no_license
kavya309/Codes
1a321f17d8867f2fa981b8e3c2cea04cf12a4b24
ba8895565e9c5a75085e186d3c3d57ea36cf06f6
refs/heads/master
2021-07-15T23:49:06.335101
2021-06-25T12:53:06
2021-06-25T12:53:06
243,979,362
0
0
null
null
null
null
UTF-8
Python
false
false
1,622
py
class Queue: def __init__(self,max_size): self.__max_size=max_size self.__elements=[None]*self.__max_size self.__rear=-1 self.__front=0 def get_max_size(self): return self.__max_size def is_full(self): if(self.__rear==self.__max_size-1): ...
[ "kavya238490@gmail.com" ]
kavya238490@gmail.com
463dcc5b3f6bd9f93ff40fc5eea5cc0d69680a9e
83a637ff77108f2582397c4ca4b2e7953ef4e137
/categorical_embedder/processors/DiscriminativeWrapper.py
09dac41aa0d8882e5556a2fbe6f7a17d8590bdee
[ "Apache-2.0" ]
permissive
erelcan/categorical-embedder
066e0e279826f27aae0e927744d745bd724ba340
376b8779500af2aa459c879f8e525f2ef25d6b31
refs/heads/master
2023-02-03T01:44:01.896677
2020-12-19T10:51:11
2020-12-19T10:51:11
322,824,753
3
0
null
null
null
null
UTF-8
Python
false
false
1,574
py
from categorical_embedder.processors.ProcessorABC import ProcessorABC class DiscriminativeWrapper(ProcessorABC): def __init__(self, feature_processor, label_processor): super().__init__() self._feature_processor = feature_processor self._label_processor = label_processor def process(s...
[ "erelcan89@gmail.com" ]
erelcan89@gmail.com
cbb6afd574b0d9d0d1ef2fffaf1b7608497b29ec
4519fe16b3b52d3385defccc81e3d9fa9237ff1d
/config.py
1a1940d29c423f2d87289b827f2d9bce12394c4b
[]
no_license
RedHatInsights/platform-component-tester
7ab45524764fd340374af3678979d3f5968dca31
190eccbb29d48ce71fcfaeb67c81f67e0c99f7d7
refs/heads/master
2021-06-17T15:38:31.302979
2019-08-23T13:12:16
2019-08-23T13:12:16
201,332,560
0
2
null
2021-04-30T21:17:37
2019-08-08T20:28:07
Python
UTF-8
Python
false
false
646
py
import os import logging APP_NAME = os.getenv("APP_NAME", "component-tester") logger = logging.getLogger(APP_NAME) def log_config(): import sys for k, v in sys.modules[__name__].__dict__.items(): if k == k.upper(): if "AWS" in k.split("_"): continue logger.info...
[ "tsadams@gmail.com" ]
tsadams@gmail.com
b2c757785296e8918cf5d1902b183aa7f69c27ff
fd119445a18cc5069a6101e7530c5a0f39d99508
/Workbook8A.py
6272c3c09fea783e1ff4fa54c15efe07fabc078c
[]
no_license
ajciancimino/ISM-4402
9b7a185e6ffbfeb00c0da5f480a37d54079e6d5c
674f332def2c77da45efe30a34e7c156fa8cd1a4
refs/heads/master
2020-07-11T15:23:35.479142
2019-12-03T03:03:10
2019-12-03T03:03:10
204,582,703
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
# coding: utf-8 # In[2]: import matplotlib.pyplot as plt import pandas as pd get_ipython().run_line_magic('matplotlib', 'inline') Location = "datasets/gradedata.csv" df = pd.read_csv(Location) df.head() df.hist(column="age", by="gender")
[ "noreply@github.com" ]
noreply@github.com
6314e5db93c1c261120606e156643342e1d9f3f8
2d2242961e9d77cff198277773fb1e3c51e922c1
/leaf/code/extr_feat_models.py
9321a0bb510ef9bbe660f2c7b2d006bbac2f0e61
[]
no_license
GAIYA2050/CNNplayground
0c9608f3f49dcdf50f7e31f223ee417dd50e6264
3fe803d2f7133bfe2409f043fc411142b91fbfdf
refs/heads/master
2021-06-12T22:21:15.203810
2017-01-26T22:57:29
2017-01-26T22:57:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,889
py
import tensorflow as tf from preparation_pipes import * import sys sys.path.append("/Users/Zhongyu/Documents/projects/CNNplayground") from cnn import * def MLP_model(train_X, train_y, test_X, test_y, epoches, num_neuron, learning_rate, dropout, logdir): """ A simple Multi-Logistic-Preceptron model: Architecture...
[ "dream.kuang@gmail.com" ]
dream.kuang@gmail.com
9c49e21e8fccfbd0b43c02b5ef63fdc32eccfdd4
9b7291d81a416bde2ec181229601eb2e33c7b8b2
/monophoton/spikes/collect.py
d0cf880677d760340d04e54dfd7cde2976bd94cd
[]
no_license
MiT-HEP/MonoX
ab1528e72dad2590a0ae64f1a1d47195139e1749
224ee01107a94cedf8563c497edb2f326b99d9b1
refs/heads/master
2021-01-24T06:04:16.645559
2019-11-15T09:18:40
2019-11-15T09:18:40
41,823,403
1
9
null
2018-07-19T17:05:30
2015-09-02T19:33:33
Python
UTF-8
Python
false
false
3,528
py
import os import sys import re import math import array thisdir = os.path.dirname(os.path.realpath(__file__)) basedir = os.path.dirname(thisdir) sys.path.append(basedir) import config import utils from datasets import allsamples import ROOT arun = array.array('I', [0]) alumi = array.array('I', [0]) aevent = array.ar...
[ "yiiyama@mit.edu" ]
yiiyama@mit.edu
c52ef4f04169a212d23ea5548aadb6fd42be7478
3f2873f7fb6fb16279d3e9f1b4cdab0963ff7a30
/tornado_server/server.py
1e7c04e1e5c523c4977e18c52200f275a9439899
[]
no_license
jesse7zhangjc/zip_status_board
290635c76a784dd17633b06fd0f9a1ea07efbcef
09d0bb714be38a553f57272444268d4eefae44f8
refs/heads/master
2020-04-06T07:34:09.920609
2018-11-14T19:16:02
2018-11-14T19:16:02
157,277,418
0
0
null
null
null
null
UTF-8
Python
false
false
823
py
""" Run the Server """ # coding=utf-8 import tornado.ioloop import tornado.options import tornado.httpserver from tornado.options import define, options from db_config.set_up_env import set_up_mysql_db from application import APPLICATION from methods.host_ip import HOST_IP define("port", default=8000, ...
[ "jesse7zhangjc@gmail.com" ]
jesse7zhangjc@gmail.com
b146b0e44d3ecc8da00ec54373f747b19c16da96
751d1e82ab81a028fc72d02609b0dac294d936a6
/chapter5/PrincipalComponentAnalysis.py
b1c77e53290a4c6252be3aef41680281cd334eb4
[]
no_license
pranavburugula/machine-learning-python-book-code
a941347b43fd9f98decfb7d377a0e36abd9620ea
eb94941c6c640dd156121b426543d73e57a5373e
refs/heads/master
2020-04-06T04:01:47.863980
2017-02-24T18:30:15
2017-02-24T18:30:15
83,069,902
0
0
null
null
null
null
UTF-8
Python
false
false
1,615
py
import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.cross_validation import train_test_split from sklearn.preprocessing import StandardScaler df_wine = pd.read_csv('https://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data', header=None) X, y = df_wine.iloc[:, 1:].values...
[ "pranav.burugula@gmail.com" ]
pranav.burugula@gmail.com
a3baaf1457757c8052cf7aecc5e346e925946739
69934910019f27e31b26a09be530407640c93bde
/starter_code/node_modules/bcrypt/build/config.gypi
a585517cbee169ac526e638bfa597ed5fc691841
[ "MIT" ]
permissive
AecDigitalHub/lab-authentication-with-passport
80196f85bb99173ad2d6574ccbd2ae09f195ba18
eacbbc5d9423cc58be2f1ebc7d09337c492ab522
refs/heads/master
2020-04-01T01:00:30.049852
2018-07-09T17:39:23
2018-07-09T17:39:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,657
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "coverage": "false", "debug_devtools": "node", "debug_http2"...
[ "aecdigitaltransformer@gmail.com" ]
aecdigitaltransformer@gmail.com
2ca0fac55fa66f6d34206280619eb6e5a2cb335a
7a30e60c1fedb9e03ef772e419a0b1258c605586
/superlists/urls.py
feb9e81f54a586dcf30294be1af0a3c74053954c
[]
no_license
ndjman7/TDD
1e6b5fb2210b48950c9ad1fc4d101ebf6e4fcce7
0950e2aab436ba00bf4a9b072930c8c2b225b9f0
refs/heads/master
2021-01-12T04:29:40.717412
2017-02-20T06:13:12
2017-02-20T06:13:12
77,623,426
0
0
null
null
null
null
UTF-8
Python
false
false
891
py
"""superlists URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
[ "ndjman7@gmail.com" ]
ndjman7@gmail.com
26591cf0c6446d0ec56368b1f6e560280d10c616
c01a58ecd6614128e3c29a70e3e768b220a2a4a2
/common/xrd-ui-tests-python/helpers/mockrunner.py
76c1f651e438d70bb1f13223c5d66af078e33553
[ "MIT" ]
permissive
nordic-institute/X-Road-tests
772a6d7485606c1f10b61a1260b8fb66111bf0be
e030661a0ad8ceab74dd8122b751e88025a3474a
refs/heads/develop
2021-06-03T01:38:20.542859
2019-03-18T12:16:18
2019-03-18T12:16:18
125,643,677
2
3
MIT
2018-06-14T15:09:21
2018-03-17T15:36:32
Python
UTF-8
Python
false
false
4,103
py
from helpers import ssh_client import re import time class MockRunner: ''' Class that tries to control the mock service script (SoapUI MockRunner) over an SSH connection. Uses ssh_helper.SSHClient component. Connects to SSH server, sends a one-liner command and then waits until a specified ...
[ "mardu@varuosakeskus.ee" ]
mardu@varuosakeskus.ee
2f0ced48b3dcaf0cc7581aa2ab4c1e49006e94a5
1c0427c08b5b68bd0992d93749e7ea15763fd9a4
/martingale.py
5e8d192cd38503b05ed25c62db93e03f34ae43ab
[]
no_license
njmanton/hocodeclub
4c5a298cb748b71377de1dbbbe0438189bf4b7fa
95fbd58fd5fea0516a7adcef04b007d048c81be4
refs/heads/master
2020-12-12T02:49:29.019777
2016-06-21T15:21:26
2016-06-21T15:21:26
41,221,082
0
1
null
null
null
null
UTF-8
Python
false
false
774
py
# TODO # plot the cumulative balance over time to show the taleb distribution # get the random package import random trials = 1000 # number of hands to play odds = 0.474 # chance of winning a hand (0.474 is the probability of choosing red/black in roulette) payout = 2 # payout stake = 1 # initial stake prev = None # ...
[ "nick@mantonbradbury.com" ]
nick@mantonbradbury.com
b8d5b8db70f4f43483b976ec824cbad88affe84f
c6fe3129828b1b990b0faf10ec5f35c778cf0278
/lineas_base_seguridad/app/migrations/0001_initial.py
28b6aed6ebc26db63dc547afe7c7450cd30d063b
[]
no_license
guillotefons/ScriptGenerator
c41639bfaf401170926ad1be0d9455d139ac4719
f74f20abba3288cb2b9658109072ac3aab7619e8
refs/heads/master
2020-03-23T22:42:30.406943
2018-07-24T17:45:53
2018-07-24T17:45:53
142,193,037
0
0
null
null
null
null
UTF-8
Python
false
false
2,240
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-04-29 22:10 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Create...
[ "noreply@github.com" ]
noreply@github.com
0ffcd09026f2a8b1327d97c4bfc0ae63dcfbf8bf
711756b796d68035dc6a39060515200d1d37a274
/output_exocyst_tags/optimized_8006.py
92f04b4eb65847eae8c1440af4a4a0c165c44645
[]
no_license
batxes/exocyst_scripts
8b109c279c93dd68c1d55ed64ad3cca93e3c95ca
a6c487d5053b9b67db22c59865e4ef2417e53030
refs/heads/master
2020-06-16T20:16:24.840725
2016-11-30T16:23:16
2016-11-30T16:23:16
75,075,164
0
0
null
null
null
null
UTF-8
Python
false
false
4,845
py
import _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
[ "batxes@gmail.com" ]
batxes@gmail.com
59545f00a35ecb164a0660624238d4959097d13b
1df61f97a398a4a4ce49cfabb3895732582e02a6
/hardware/tof.py
cdd399743da02d3ab43d8e5ed74eb84a4653b613
[]
no_license
christophviehoff/MagicWorxV1
e57edc80e28912e46c8373db206b5be5750a24a8
82ff06e22aa011d07fbd269446bb33b499ef2968
refs/heads/master
2021-01-16T21:05:07.701464
2017-08-13T22:24:45
2017-08-13T22:24:45
100,208,172
0
0
null
null
null
null
UTF-8
Python
false
false
19,173
py
#!/usr/bin/python import time import smbus # =========================================================================== # ST_VL6180x ToF ranger Class # # Originally written by A. Weber # References Arduino library by Casey Kuhns of SparkFun: # https://github.com/sparkfun/ToF_Range_Finder-VL6180_Library\ # =======...
[ "Christoph Viehoff" ]
Christoph Viehoff
773eb2b2855cc2e72050cf0e9201458dac35d5f1
9ddcb76c7526dd6ab0c1e9fd33a725fe7edf5698
/sender.py
3f5a988bdaafd89450e0113b87ca3081ac890bf6
[]
no_license
mohit266/Adhoc-Python
a3b7320b661ef14515197b2e8d311d67492ce09b
81fa422c049ce40113b3e39b1adcab31affe3dd8
refs/heads/master
2020-06-02T04:13:43.490157
2019-08-06T17:33:51
2019-08-06T17:33:51
191,032,512
0
0
null
null
null
null
UTF-8
Python
false
false
449
py
#!/usr/bin/python2 import socket recv_ip="127.0.0.1" recv_port=4444 # 0 - 1024 -- you can check free udp port netstat -nulp # creating udp socket # ip type v4 , uDp s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM) while 4 > 3 : msg=raw_input("plz enter your message : ") # send...
[ "16tec2cs012@vgu.ac.in" ]
16tec2cs012@vgu.ac.in
d438cfd61cf53bdcf4319f605cae16758111194f
77b3b3203948264af24d4b814e85c3944aa91ab8
/aureum/dao/rule_dao.py
430213c08c567999d7bf4fcde89962ca47195a5a
[]
no_license
wangxiaonan/aureum
0747547de7ff76285f79b8ec69309d5cdad854b1
45b60cb0dd3326e4c2ea4bdd612e64263af1d233
refs/heads/master
2020-03-11T18:38:41.111520
2018-04-19T08:45:10
2018-04-19T08:45:10
130,183,304
0
0
null
null
null
null
UTF-8
Python
false
false
878
py
# coding:utf-8 from aureum.config import logutil from aureum.config.db import db from aureum.model.rule import Rule logger = logutil.getLogger("ruledao") class RuleDao(object): def selbyrule(self,rule_name): logger.info("selbyrule %s" %id) data = [] try: x = db.session.query(...
[ "wangxiaonan@maizijf.com" ]
wangxiaonan@maizijf.com
6f8d32d5edb54124c33ce430cab6c9912bf6f97a
86ea030dd3edfdeb9cd1feb62bc710751e09aa49
/hep_nn.py
c32891d84f4a6e6868da596b3f92196c04e2be17
[]
no_license
remiBoudreau/high-energy-physics-signal-neural-network-classifier
c180ba7f460bc2f4553b19d1ef4227398f02936d
ecdf0f2b789084b0bf2e48a203268a1ec0bad86c
refs/heads/main
2023-04-14T14:52:13.728410
2021-04-29T05:50:18
2021-04-29T05:50:18
362,703,606
0
0
null
null
null
null
UTF-8
Python
false
false
2,327
py
# Filename: hep_nn.py # Dependencies: hep_nn_utilities, keras, matplotlib.pyplot, pandas, random, sklearn, tensorflow # Author: Jean-Michel Boudreau # Date: May 1, 2019 ''' Loads HEPMASS data set (must be colocated in directory with this script) and trains a deep neural network in the standard "funnnel-like" a...
[ "noreply@github.com" ]
noreply@github.com
1ce92cb8586b319900b53feddb26fdae6b890b35
6eacca90f4b0bc564ec97cd1b7adb09bd5a098f0
/CRUD/student/admin.py
648dec549a0100287de2b9c7003df597047e5687
[]
no_license
Sajeebdebnath/Student-info
fcf0b96c1b008bc63c616a91d2bde722491bf917
56fa664a0ce2158a6835b45a2b177fe5c56ea53b
refs/heads/master
2023-02-17T01:50:29.216409
2021-01-19T19:42:25
2021-01-19T19:42:25
331,085,805
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
from django.contrib import admin from .models import Student # Register your models here. class Admin_StudentInfo(admin.ModelAdmin): list_display = ['name','varsity_id','phone','address','email'] admin.site.register(Student,Admin_StudentInfo)
[ "sajeebdebnath336@gmail.com" ]
sajeebdebnath336@gmail.com
5018ffa7b9e38daf257735496640a8942a665651
0910a6ca39cba99f768e28e78056912db1d4b828
/mysite/settings.py
e5024f606317a4c1a9222b0c2a81b7699eb79cd1
[]
no_license
fsMateus/tutorialDjango
eebb980b2b4f3800870e6ef785ba69800ad01d04
e50ed1045ca5f11faae12c1be5da47a5e2f6cc2d
refs/heads/master
2021-05-19T07:19:43.048526
2020-03-31T11:35:00
2020-03-31T11:35:00
251,583,029
0
0
null
null
null
null
UTF-8
Python
false
false
3,187
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.2.11. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os #...
[ "mateusfsv90@gmail.com" ]
mateusfsv90@gmail.com
4e39d04ae307ec8f198dadd2625d8c61287ec16f
084160d1c0e7a34f502ca978b772a23626e35697
/dlink_utils.py
8d3a57c79c2a53f1e149f0c5c21079393791cfd6
[ "MIT" ]
permissive
syschmod/dlink_patch_utils
d5c08d9b97a9c6a1b69e54760535e52a416705e4
60fb47b048d8b955907309f35975e26f69182853
refs/heads/master
2022-04-22T07:25:32.604054
2020-04-23T21:15:55
2020-04-23T21:15:55
258,316,516
1
0
null
null
null
null
UTF-8
Python
false
false
1,278
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import sys import tempfile import subprocess if os.name == 'posix' and sys.stderr.isatty(): WARN_BEGIN = '\033[93;40m' WARN_END = '\033[0m' else: WARN_BEGIN = '' WARN_END = '' def warn(*args, **kwargs): print(WARN_BEGIN + "Warning: ", *args, WAR...
[ "noreply@github.com" ]
noreply@github.com
b2dcbad518e02a363f8d5ba7c30bfe5a7c22ce1e
2a54e8d6ed124c64abb9e075cc5524bb859ba0fa
/.history/1-Python-Basics/30-sets2_20200413211158.py
368c37538e1350070bdbcc7b3a0b51dc8b9c681f
[]
no_license
CaptainStorm21/Python-Foundation
01b5fbaf7a913506518cf22e0339dd948e65cea1
a385adeda74f43dd7fb2d99d326b0be23db25024
refs/heads/master
2021-05-23T01:29:18.885239
2020-04-23T19:18:06
2020-04-23T19:18:06
253,171,611
0
0
null
null
null
null
UTF-8
Python
false
false
1,001
py
# methods my_set = { 342, 23, 1, 2, 3, 9, 10, 9 } your_set = [ 342, 23, 42, 46, 53, 34, 10 ] print(my_set) #output {1, 2, 3, 9} print(my_set.difference(your_set)) #output {1, 2, 3, 9, 342, 23} my_set.discard(10) print(my_set) #output {1, 2, 3, 9, 342, 23} my_set.intersection(your_set) print(my_set) #output {1,...
[ "tikana4@yahoo.com" ]
tikana4@yahoo.com
4b4b24305074b7cb922c6bdd2f0969d741b4688d
1afed60ac172371c8e2bfc1aaf7cf9253bfb3b9e
/venv/IOL_Data.py
bee08d210a3fe84dc2cc630b214c659e9582fd13
[]
no_license
Tanner-Wills/Text_Data_Parse
6ede884e778ced24fb260e41e8690a4e9b5364b0
725fa8a7cec26e725e258943b852c5bb3a13451e
refs/heads/master
2023-08-01T13:08:25.029127
2021-09-17T17:53:50
2021-09-17T17:53:50
398,265,695
0
0
null
null
null
null
UTF-8
Python
false
false
36,217
py
from openpyxl import Workbook import os #Function for getting data from file def getEOL(myFile): input_file = open(myFile,'r') #Variable Setup #Master dictionary Master = {} #Initial Values for array battery, partNum, batType,testType, startDate, startTime, i_DTC_Count, initBCMe, initCMC1, ini...
[ "tannerwills1@gmail.com" ]
tannerwills1@gmail.com
53ff2b74b5b5cba69e4b7d456397b3af2102cda3
5b1020f9fb4cf25c5abd584156bd4ed3be9ab645
/main.py
08cc63db54be36038cffb3f48fce91cd6c08017d
[]
no_license
Lassepitkanen/ChartplotterLogger
0155b4769c6d53483460068cd61e064c7dff54de
e21848c8546611130f69e2a37574c7b7b5d959f1
refs/heads/master
2021-07-03T17:05:38.249505
2020-08-24T10:25:23
2020-08-24T10:25:23
144,606,410
0
0
null
null
null
null
UTF-8
Python
false
false
1,653
py
import csv import picamera import time import config import subprocess import multiprocessing import sys from button import ButtonEvent from gps_poller import GpsPoller from file_repository import createFileRepository from system_time import setTimeFromGps sys.path.append('./server') from server_app import ServerApp ...
[ "lassepitknen@gmail.com" ]
lassepitknen@gmail.com
09430c908759a2bb57555d5580d2431f59805637
6c0ec3fa56668b7b5c780803a72fdab649fcba6a
/2lesson/task7.py
61a6a409ca7f8a16bc971ddffdebe47cbcef4647
[]
no_license
yuriy-semesyuk/itea_adv
3bca18ff9b431b8ea8ff52e64a4f452082ec90a6
0989ec493b9247f0c6b7cdd9c086ade5143b8b30
refs/heads/master
2020-04-16T18:45:42.983063
2019-01-28T18:54:39
2019-01-28T18:54:39
165,834,543
0
0
null
null
null
null
UTF-8
Python
false
false
558
py
def logg(func): def inner(*args, **kwargs): with open('logg.txt', 'a') as logg_file: logg_file.write(str(args)+"\n") logg_file.write(str(kwargs)) result = func(*args, **kwargs) logg_file.write('Arguments are written\n') return result return in...
[ "semesyuk@MacBook-Pro-Semesyuk.local" ]
semesyuk@MacBook-Pro-Semesyuk.local
548729b714694f3ea75975b59c4157fccafd801a
223d6087fb99b10e763b5a24cb466747645710f7
/maps/map16.py
18c75386624ef369f400267a37f7339066dea763
[]
no_license
Hatchet2k4/Winter
7bee56c41d6c4fbf18783d4c73d0bf92ed64e579
4dba6465015024806acaf5ce81e622963de24fd4
refs/heads/master
2022-02-08T12:11:38.354398
2022-01-10T02:49:25
2022-01-10T02:49:25
210,244,319
0
0
null
null
null
null
UTF-8
Python
false
false
5,387
py
import system import ika import savedata import sound from yeti import Yeti from soulreaver import SoulReaver from thing import Thing from rune import WindRune import cabin from snow import Snow from caption import Caption def AutoExec(): system.engine.mapThings.append(Snow(4000, velocity=(-1, 1.5))...
[ "hatchet2k4@gmail.com" ]
hatchet2k4@gmail.com
6063ac49e1b928783643b11ac36053dbf051478d
2c1429a1bd2d0477fd88119d4d778fc68c82adcf
/python/DeepSeaSceneLighting/SceneShadowManagerPrepare.py
f17117f268680fdab051407968ae346b70024422
[ "Apache-2.0" ]
permissive
akb825/DeepSea
d7ac54f6d8243d43d6ea538159f3067ab7e79880
5a909b4f51717bc59682e51ad6aa598a25a9b965
refs/heads/master
2023-08-31T23:45:19.533393
2023-08-29T07:30:36
2023-08-29T07:30:43
142,716,767
10
2
null
null
null
null
UTF-8
Python
false
false
1,601
py
# automatically generated by the FlatBuffers compiler, do not modify # namespace: DeepSeaSceneLighting import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class SceneShadowManagerPrepare(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset=0): ...
[ "akb825@gmail.com" ]
akb825@gmail.com
058f953f4a920cbc906f6fb40ce3b032c210dd12
d606a487cd4522e51044dd0723026ddb95b0bdb5
/app.py
39b725feb342ec3f7fbd73e7f3d5127a51078005
[]
no_license
jasleen8713/TicketCategory
e9847b24722e024217b0a0f0e47ee1a8354128f7
76225d045c020107f03e6ce78c6c5f2e7fef6b98
refs/heads/main
2023-04-17T02:14:04.333107
2021-04-28T07:41:17
2021-04-28T07:41:17
361,531,944
0
0
null
null
null
null
UTF-8
Python
false
false
1,861
py
import flask import pandas as pd import tensorflow as tf import keras keras.__version__ from keras.models import load_model from keras.preprocessing.text import Tokenizer from keras.preprocessing.sequence import pad_sequences from textblob import TextBlob # instantiate flask app = flask.Flask(__name__) #sentiment a...
[ "noreply@github.com" ]
noreply@github.com
73cb0204c59ec00f7fa31464022a39efe44f2dd3
df05250d757eac3f53eac7bf69e74309523c1f1a
/scripts/visualization_testing.py
887282cba352bbf6e0e1e83f197c044c94c5d884
[ "MIT" ]
permissive
zencoding/dex
6a4a2f691992cd615e45c3407a2893fe5b26819e
a0bf1ad76ce97e938dcfc4c5644e46ddbc054f3d
refs/heads/master
2021-01-01T04:59:29.039316
2017-06-09T21:01:40
2017-06-09T21:01:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,827
py
# By Nick Erickson # Calls visualization.py import numpy as np import visualization from data_utils import loadMemory_direct from agent_a3c import Agent from parameters.hex import base_a3c_load import models from parameters.param_utils import Args, Hyperparam, Screenparam, Hyper_a3c args = base_a3c_load state_dim ...
[ "nickdean9@hotmail.com" ]
nickdean9@hotmail.com
f30402ae157379c0594034c7b68ddff927ae6e81
5cc61774171960b8420adab16ea39cae30916a00
/gencove/command/projects/import_existing_samples/utils.py
57542db08049a0364e7f44cc16e0590378a796a5
[ "Apache-2.0" ]
permissive
gncv/gencove-cli
268972ccb1c65a6334ff2589270b07d3ec0f5f15
fd63eb1b2ff388e9e6aac63989f81f37266dba9f
refs/heads/master
2023-08-09T13:56:43.093680
2023-08-01T19:48:43
2023-08-01T19:48:43
251,255,435
3
1
null
null
null
null
UTF-8
Python
false
false
442
py
"""Utilities for processing imported samples.""" def get_line(imported_sample): """Build a list of relevant data to be printed. Args: imported_sample (SampleImport): instance of SampleImport Returns: str: relevant data to be printed """ return "\t".join( [ st...
[ "zlatko.masek@gencove.com" ]
zlatko.masek@gencove.com
1b994a2be95d50152c5761e91816f512f0cd103d
1676168244eed1c5610b2c1c38f692f89990b112
/part4-ML/from_1021_Django/django_movie_second/movies/urls.py
a7004f938653e54f8ea8c49830a0f6a92dc15b22
[]
no_license
gtpgg1013/AI_docs
351e83f986d66224c82fff2de944753c98336d03
43f8eed8b2732314bd40ed65e1d7eb44dd28fc04
refs/heads/master
2022-12-09T17:32:02.992554
2019-11-20T09:03:56
2019-11-20T09:03:56
182,927,565
1
0
null
2022-12-08T06:50:23
2019-04-23T03:54:56
Jupyter Notebook
UTF-8
Python
false
false
533
py
from django.urls import path from . import views app_name = 'movies' urlpatterns = [ path('', views.index, name="index"), path('new/', views.new, name="new"), path('<int:movie_pk>/', views.detail, name="detail"), path('<int:movie_pk>/edit/', views.edit, name="edit"), path('<int:movie_pk>/delete/',...
[ "gtpgg1013@gmail.com" ]
gtpgg1013@gmail.com
48d6527c4a50129d15fc7458168a1924161a56dd
a2aedee6038e12db6e29e934e400ab9b085e7765
/defenses/no_defense.py
d86cde70cae6190f716c8dff1d2f33e52c65bc78
[]
no_license
theFool32/AT-Framework
d0a2f27f82e190e5f042055bd203d8fa3dc37bf4
92bdcb971d4e8d0b93aea7ff5c656cb6f131d88f
refs/heads/master
2023-08-20T07:56:05.036082
2021-11-01T02:15:50
2021-11-01T02:15:50
353,740,815
2
0
null
null
null
null
UTF-8
Python
false
false
434
py
#!/usr/bin/env python3 import torch from torch.nn import functional as F from .base import Defense class NoDefense(Defense): def __init__(self, _model, _attack): super(NoDefense, self).__init__(_model, _attack) def train(self, data, label): output = self.model(data) loss = F.cross_en...
[ "saber.rl32@gmail.com" ]
saber.rl32@gmail.com
31897fddbf078d67fe7a7dd9bcdde0b77693f709
905587e298a019495de975525e741ca8cd5012ec
/main.py
5fbbd613168c2e7d596b72064b93c91e6cc83303
[]
no_license
juschaef/rsl_stats
c056e380f19946f8001eb115a12114f46de5b927
8449a0f3aaae8a4fe25cb88a695a8911cba7e5f7
refs/heads/main
2023-04-12T03:32:51.691755
2021-04-22T16:21:47
2021-04-22T16:21:47
360,570,965
0
0
null
null
null
null
UTF-8
Python
false
false
1,612
py
from flask import Flask from flask import render_template from flask import request from flask import redirect import cv2 import pytesseract import numpy import re import sqlite3 import os from pprint import pprint app = Flask(__name__, static_folder='static') def match_stat(line): m = re.match(r"(.*...
[ "julien.schaeffer@gmail.com" ]
julien.schaeffer@gmail.com
abdafe161112ab293d182ea37b60e0b2175203e4
1eaa6c2500868d0c60b5b2cd552cd671b635de32
/Algorithm/sword of offer/2.替换空格.py
d830f7aee41e3cd0884252602f7cb3b806b7c3bc
[]
no_license
jiangyuwei666/my-study-demo
f85f14a599c328addb5af09078d404f1139e0a82
9e2baef2f36f071f8903768adb8d5a5a8c1123f6
refs/heads/master
2022-04-30T16:47:24.715570
2022-03-24T09:08:43
2022-03-24T09:08:43
152,565,041
5
0
null
null
null
null
UTF-8
Python
false
false
241
py
def solution_by_py(s): s = s.replace(' ', '%20') return s def solution_by_py1(s): s = s.split(' ') s = '%20'.join(s) return s # def solution_by_re(s): # print(solution_by_py('a b c')) print(solution_by_py1('a b c'))
[ "739843128@qq.com" ]
739843128@qq.com