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
13d5ff501856936d48c7481261ed51a44a688cff
faf005f0a01920f38ef9971e21e97d39da19e6ee
/experiments/rgb_pretrainedFlownet_laplace_ep400/params.py
8f9b70e839a9a7db00a14330987eafc9efe8d7a6
[]
no_license
CORaisch/DeepVO-pytorch
8524040042225e4b1c406ef343feeb89ad3db15f
7ac019cc60971dd45840ab1bab38a6e516afb429
refs/heads/master
2020-12-11T11:47:41.568603
2020-08-24T11:11:36
2020-08-24T11:11:36
233,840,415
0
0
null
2020-01-14T12:50:14
2020-01-14T12:50:13
null
UTF-8
Python
false
false
6,743
py
import os class Parameters(): def __init__(self, unpack_to = None): self.n_processors = 4 # Path self.data_dir = '/media/claudio/1AC5-C2D4/Datasets/KITTI/DeepVO-pytorch/' self.image_dir = os.path.join(self.data_dir, 'images/') self.pose_dir = os.path.join(self.data_dir, 'po...
[ "claudio.raisch@hotmail.de" ]
claudio.raisch@hotmail.de
94db2d21c6ea193c15fc2e11340acffb4bf510df
f7ded947c1ba3aed5e4f8c32a14d26ca66ad837a
/cogs/games/instances.py
df416d10e0347f715234188f6126cf1174988be9
[]
no_license
Project-Cerebrus/cerebrus-v2
307a5d881d404d76b805f7ffeaa4a35363078d46
214f9dbbf7387f91f5bc6ec32c2bbab954344af4
refs/heads/master
2023-07-02T14:17:42.381524
2021-08-04T05:16:33
2021-08-04T05:16:33
379,460,974
0
0
null
null
null
null
UTF-8
Python
false
false
1,167
py
import discord, random from discord.ext import commands import os import subprocess import asyncio import pickle devs = ['775198018441838642', '750755612505407530', '746904488396324864'] try: duckusers = pickle.load(open("static/duckusers/duckbuck.dat","rb")) except FileNotFoundError: print("run _instance <action> <i...
[ "57133270+Eris9@users.noreply.github.com" ]
57133270+Eris9@users.noreply.github.com
4faf8ce733700a649ba464af173b8566c1d2ca73
e670abf195fff3c4e6415775feb456b0cd38f42f
/Exercise.5.3.py
b6046d8cdb920973af1fade5fa32f025e2858095
[]
no_license
jryan0004/pythonBasicProjects
eae0af9429d429b4618b98b8e2dc49899966e9d9
9125baa96bc55bd001cc12a4a980ad3ff7187394
refs/heads/master
2021-08-31T12:07:26.343708
2017-12-21T08:02:38
2017-12-21T08:02:38
114,514,613
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
def is_triangle(x ,y, z): sum=x+z if(sum<y): print('No') sum=y+x if(sum<z): print('No') sum=y+z if(sum<x): print('No') else: print('Yes') def prompts_user(): sideone=input('Please enter side one') sidetwo=input('Please enter side two') sidethree=...
[ "jryan0004@gmail.com" ]
jryan0004@gmail.com
0b0ef11edb76922f627a568b5dc906cb5f7935dc
1de2ba9743e8b3f63f46c30bdeb57c65569e47e5
/train.py
abcfa6c7e9c6c1369a3dbb9d613454092104271f
[ "MIT" ]
permissive
ZuchniakK/bw_imagenet
b74a1a5eefe27553d7410c4fafbe8224cfb6c7aa
37d4d90d8e1985f2b0c03e9b00077fef1522464a
refs/heads/main
2023-01-23T16:37:13.672517
2020-11-19T17:21:31
2020-11-19T17:21:31
314,097,620
0
0
null
null
null
null
UTF-8
Python
false
false
3,155
py
import tensorflow as tf import numpy as np from os.path import join import os import sys import json from datasets_generator import BWImageNetDataGenerator from custom_calbacks import BackupAndRestore # DATA_DIRECTORY = '/net/scratch/datasets/AI/imagenet/data' DATA_DIRECTORY = 'data' MODEL_DIRECTORY = 'models' MAX_T...
[ "konrad.zuchniak@gmail.com" ]
konrad.zuchniak@gmail.com
8171f232b9307faed6cd6e928dd2c6672bcbc15a
2cd81d13739e7ae6b6e31a4ff96fb27a2f7621b5
/mbfmri/models/__init__.py
4df28220332af09c6d7eaeb24fb5232079fcc30e
[]
no_license
CCS-Lab/project_model_based_fmri
5076afebd6140afe8577127e84c308f6bec2b50d
5b4b5cc301585d614458edf12053d34258512db6
refs/heads/main
2023-07-25T20:52:45.536368
2021-09-09T05:22:51
2021-09-09T05:22:51
289,861,786
2
2
null
null
null
null
UTF-8
Python
false
false
70
py
__all__ = ["tf_cnn","tf_mlp","elasticnet", "mvpa_general", "tf_base"]
[ "cjfwndnsl@snu.ac.kr" ]
cjfwndnsl@snu.ac.kr
df3574704ca6de6c81f9b6c51a22941941257d42
1424812c4f211d3d5e356e8b3889a689162062f3
/arcade/core/11_extra_number.py
22d5506bb65bd3268eccb335015a9603f73e2e72
[]
no_license
nazomeku/codefights
cb7d3c40be0809695ec524a87c88dbebcf5b47bc
b23f6816f9b5b0720feac1c49c31163923e0a554
refs/heads/master
2021-01-22T12:49:35.905165
2017-11-21T19:03:37
2017-11-21T19:03:37
102,357,617
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
"""You're given three integers, a, b and c. It is guaranteed that two of these integers are equal to each other. What is the value of the third integer?""" def extra_number(a, b, c): if a == b: return c elif b == c: return a else: return b
[ "cols.nazo@gmail.com" ]
cols.nazo@gmail.com
74d5a6d33f7179d09e915ed96b207a22933ba675
ad408c6244d3474d7631acbbf38476a16ff80730
/LaonSill/src/log/decodeHotLog.py
c56eca330d01e8124ebcc8d6eb657ffa2fe06e15
[ "Apache-2.0" ]
permissive
alice965/LaonSillv2
e229cc9351bd4befb23a50820108f489125e18e7
826f664d5fd8a8625f2abfb9cd566e4f700c16d1
refs/heads/main
2023-02-16T16:57:06.699971
2020-11-30T06:44:43
2020-11-30T06:44:43
354,684,554
1
0
null
2021-04-05T01:25:49
2021-04-05T01:25:43
null
UTF-8
Python
false
false
5,858
py
#!/usr/bin/env python """decodeHotCode.py: """ import json import sys import os import struct def checkEventProperty(hotCodeDic, hotCode, propertyName): if not propertyName in hotCodeDic[hotCode]: print "ERROR: hotCode %s does not have %s property" % (hotCode, propertyName) exit(-1) # XXX: we o...
[ "12prog@naver.com" ]
12prog@naver.com
9e6f6d233693b155fa65d04a75733acc84d9bc0a
24b874d65c92487cf70bbb64d60b8f3979adb6eb
/app/user/views.py
784cf564da7335889f411ce23e952da9db5dfc03
[ "MIT" ]
permissive
JOsorio01/recipe-app-api
7e461ee535cb59ef1f7084e623d80873da4501ed
4ea9f8f178bf4f76c11553b0f328791f847ff91c
refs/heads/main
2021-07-02T19:13:53.064450
2021-05-10T19:17:20
2021-05-10T19:17:20
233,429,653
0
0
MIT
2020-01-12T19:20:22
2020-01-12T17:20:51
Python
UTF-8
Python
false
false
873
py
from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.settings import api_settings from rest_framework import generics, authentication, permissions from user.serializers import UserSerializer, AuthTokenSerializer class CreateUserView(generics.CreateAPIView): """Create a new user in the s...
[ "joseosorio001@outlook.com" ]
joseosorio001@outlook.com
d8d386e51d85e26f35ba5f58f8c383ce5dfd47cc
4fa1af506bca9d3f5b66bad379c49ec8b7f6e3a2
/src/meas_daily_roc.py
530d80ec477254004660a7f50f433e0a86626eb1
[]
no_license
SutronPyto/LinkPython
9e31dc9820fdbf678ac1bf7b62b828b32a184d6d
a7128da73012c0ba5d91133ab551bbadd5e704f2
refs/heads/master
2023-05-13T19:14:27.135039
2023-05-05T18:37:15
2023-05-05T18:37:15
146,764,795
4
4
null
null
null
null
UTF-8
Python
false
false
8,020
py
# Example: Rain during the last 24 hours, Rate of change measurements from sl3 import * @MEASUREMENT def precip_last_24_hours(inval): """ Computes rainfall during the last 24 hours. If called at 5PM today, it tells you how much rain fell since 5PM yesterday. If called at 8:15AM today, gives ...
[ "adi@sutron.com" ]
adi@sutron.com
a9143811595cdaa7b4a3a7168623fb0ccda77175
859b2f7c2426044c9d049e3cbf94907981fa6d33
/products/migrations/0002_offer.py
79ae44d253e9619baa14f089fd2245885f212a6a
[]
no_license
sjortiz/PyShop
984908c2003b2cba2bf0f74a251c7004c3086c3f
4b9656b39051931be453419bf9e589a70f1235d1
refs/heads/master
2022-04-25T13:30:56.194261
2020-04-01T17:07:39
2020-04-01T17:07:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
# Generated by Django 2.1 on 2020-03-29 16:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0001_initial'), ] operations = [ migrations.CreateModel( name='Offer', fields=[ ('id', mod...
[ "paola.rom.d@gmail.com" ]
paola.rom.d@gmail.com
7e8e9f7f360955e59b325d5aecb3d2f81b94fe51
9b41bd4d829b7b4b5fc7ea2f375089793f34beb0
/lib/googlecloudsdk/core/exceptions.py
5583df4ffd56b139284ece43063e8bfba35a3ac8
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
eyalev/gcloud
20a596f9cbf7873eaea652a0b2ad080678f1598c
421ee63a0a6d90a097e8530d53a6df5b905a0205
refs/heads/master
2020-12-25T14:48:11.142544
2016-06-22T08:43:20
2016-06-22T08:43:20
61,703,392
0
2
null
null
null
null
UTF-8
Python
false
false
3,161
py
# Copyright 2014 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...
[ "eyalev@gmail.com" ]
eyalev@gmail.com
462f4904a74ccfa7602b49f6f264443431f251d9
42d90670a17eca8d842f91064693d11cbbdf0055
/Day_19/main.py
7337b88bf86a60a0b8ff072daa0b9f673e0d916f
[]
no_license
Smithwill1/100_Days_Of_Python
9b7448ed3a930806f7b32775ab9c2cfb34b6bfa0
1e7323b371fbff14252c1a16537f3b9708e861c1
refs/heads/main
2023-05-07T09:08:27.402304
2021-05-24T13:42:13
2021-05-24T13:42:13
359,936,585
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
from turtle import Turtle, Screen bob = Turtle() screen = Screen() def move_forward(): bob.fd(10) def turn_left(): bob.lt(10) def turn_right(): bob.rt(10) def move_backward(): bob.bk(10) def reset(): bob.clear() bob.reset() screen.listen() screen.onkey(key='w', fun=move_forward) sc...
[ "williamssmith526@gmail.com" ]
williamssmith526@gmail.com
05c3b18d77e9010b88570d85d73ed0243daa71e4
d39a237efe0e722482772ca924b35fe08afb495f
/neptune_call.py
1431bd766f5ebefb071e1949b120b2680c9afb96
[]
no_license
rafajak/training_cnn
80374166f45651128d89b9a238fc71ccfead9cc5
2ff6a08cb7b6fd0e029eea322e1ca37f31f84278
refs/heads/master
2020-03-07T09:55:14.016020
2018-03-30T09:04:41
2018-03-30T09:04:41
126,157,531
0
0
null
null
null
null
UTF-8
Python
false
false
704
py
from keras.callbacks import Callback from deepsense import neptune ctx = neptune.Context() class NeptuneCallback(Callback): def __init__(self, x_test, y_test, images_per_epoch=-1): self.epoch_id = 0 self.images_per_epoch = images_per_epoch self.x_test = x_test self.y_test = y_test ...
[ "paulina.knut@pascal01.intra.codilime.com" ]
paulina.knut@pascal01.intra.codilime.com
920c9431ac19add6412fbf5a3cb1b54ba1426ec3
f6bba50fccc6fb0dae2f046193434cfb4b9d32d5
/M-SOLUTIONS/C.py
d6366993e299e934fa4ded2c7800c14cd8bee32f
[]
no_license
seven320/AtCoder
4c26723d20004fe46ce118b882faabc05066841c
45e301e330e817f1ace4be4088d3babe18588170
refs/heads/master
2021-11-22T22:57:32.290504
2021-10-24T09:15:12
2021-10-24T09:15:12
162,827,473
2
0
null
null
null
null
UTF-8
Python
false
false
312
py
# encoding:utf-8 import copy import random import bisect #bisect_left これで二部探索の大小検索が行える import fractions #最小公倍数などはこっち import math import sys mod = 10**9+7 sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000 N,A,B,C = map(int,input().split())
[ "yosyuaomenw@yahoo.co.jp" ]
yosyuaomenw@yahoo.co.jp
36f32166bf2196d2e242e489ddee2954524f846d
735bd7bde06afa5999a2a76ba0b5a11c70159524
/tensor_network/neural_net/fully_connected.py
0c5136777c57a53588fa4250fedb16fd003f6581
[ "MIT" ]
permissive
prithvinambiar/tensor_network
8f3c25e237153c600dc7c1ee6a7a4c38aea63d14
565cc834c2b7e59769e8fa30adae959f257bf85f
refs/heads/master
2021-01-02T23:08:37.383408
2017-09-10T06:51:28
2017-09-10T06:51:28
99,473,064
0
0
null
null
null
null
UTF-8
Python
false
false
5,260
py
import logging import tempfile import numpy as np import tensorflow as tf def initialize_network(input, arch, is_training): hidden_layer_output = input for output in arch[0:-1]: h2 = tf.contrib.layers.batch_norm(hidden_layer_output, center=True, scale=True, ...
[ "prithvinambiar@gmail.com" ]
prithvinambiar@gmail.com
07414b27e5c330d92b6289b40133449889b81b6e
48bcb11f671f983392f57d9a68a6716af54bdfbb
/D3/soundmaking4676.py
90acdfeecb7425e73af88b4fea6898e92fbfc852
[]
no_license
KimYeong-su/sw_expert
49d66f891da4f171b82201b8ad2c950c1e79949c
e5557f6df5dc4aa1ef1aa6a94cab0b58d2f77f58
refs/heads/master
2021-07-13T12:07:51.299710
2021-03-13T12:20:47
2021-03-13T12:20:47
235,712,899
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
T = int(input()) for tc in range(1,T+1): s = input() H = int(input()) place = list(sorted(map(int,input().split()),reverse=True)) for i in place: s = s[:i]+'-'+s[i:] print('#{} {}'.format(tc,s))
[ "suwon0521@naver.com" ]
suwon0521@naver.com
24d1ca99fb8dc86ffac3c88e0b1f4b7184893bae
2ffd6167697a417dfd78de0fe5a188768d93dab6
/ytpomodoroweb/ytpomodoroweb/urls.py
58cc57d16fa8268680c6d732b95e9ae0077dd204
[]
no_license
alikhundmiri/ytpomodoro
ef58904267c515b522cae21d0366cf9201cd4b47
d2234996b9a8cac1450d03a3fa3b402b1d41f605
refs/heads/master
2022-12-05T03:04:08.067489
2019-06-15T14:49:01
2019-06-15T14:49:01
191,381,468
0
0
null
2022-12-03T13:13:10
2019-06-11T13:50:54
JavaScript
UTF-8
Python
false
false
812
py
"""ytpomodoroweb URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class...
[ "salikhundmiri@gmail.com" ]
salikhundmiri@gmail.com
edbec072d7e749e091aeb1a3300e433f4fd278bd
35c1a31e21cf43dc594e5f11f3b67e2fa63bd2a9
/utils/temp.py
221c958b0fd706b74a9cacb5be402470db2da8cf
[]
no_license
smallsharp/mPython
6877cec933e1533c42636fdec4e725e22292a605
4696d592864d8f8c7e7ffcf72ab27ac396236811
refs/heads/master
2022-12-05T13:36:48.894360
2020-08-29T16:01:35
2020-08-29T16:01:35
119,930,200
0
0
null
null
null
null
UTF-8
Python
false
false
35
py
import Form2Json Form2Json.test()
[ "kai.li@baozun.com" ]
kai.li@baozun.com
4c65be3170be56f8abcc246658328d38d1c027df
1b6e7e55935c7ebe51674748a3405e29e666dd97
/agent.py
d39d0231358512913eeccebcde104a3f5376a830
[]
no_license
tanzeyy/DDPG
f13d2d04e06ac99277ebb370a0f2378e30f895cd
de32cfefd1b969616fd828614bc88ccf89e861e3
refs/heads/main
2023-01-06T05:42:10.653556
2020-11-09T13:08:47
2020-11-09T13:08:47
311,338,315
0
0
null
null
null
null
UTF-8
Python
false
false
3,119
py
from copy import deepcopy import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim class DDPGAgent(object): def __init__(self, model, config, device): self.model = model.to(device) self.target_model = deepcopy(self.model).to(device) ...
[ "tan_ze@outlook.com" ]
tan_ze@outlook.com
25737e432d9c21e059ad74753a8928679d5184e3
03e321ac2f9a1282b1c31e39508f1b21e3d2342d
/day 17 python.py
8595e263c5ed78d20636f6f3e3c3c05045a89f29
[]
no_license
Magendra-ssn/30-day-challenge-python-
2c0d3c58e9963b9d614520f66469040f47592e3e
8ca313aaac503aa6d082230873556d53458c3a61
refs/heads/main
2023-06-30T07:39:12.774076
2021-08-03T08:24:16
2021-08-03T08:24:16
376,813,997
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
import mysql.connector mydb=mysql.connector.connect(host="localhost",user="root",passwd="Magendra6the",database="employee") dbse=mydb.cursor() dbse.execute("SELECT * FROM emp") for i in dbse: print(i) dbse.close()
[ "noreply@github.com" ]
Magendra-ssn.noreply@github.com
734b32bb5662b6675f25830ad27aa18770ea7d46
d115ddc8be0086cf94ec3998a53616bea7b625da
/common/EmailMethod.py
c4bcaf98ff61f1f5efd3c2cc374139c3c351358a
[]
no_license
DaQianJiang/python-request
918d12bf12cd35e84d40d664f73468105787fde8
966b5c4b2d815afa773e98fc2cd93c4290665deb
refs/heads/master
2023-01-03T04:51:44.479230
2020-11-04T14:57:20
2020-11-04T14:57:20
257,204,512
0
0
null
null
null
null
UTF-8
Python
false
false
3,553
py
from common.config_reader import configReader from common.log import Log import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.header import Header import datetime from common.config_reader import ROOT_PATH import os REPORT_FILE = os.path.join(ROOT_PATH,"testRe...
[ "1404482005@qq.com" ]
1404482005@qq.com
3730fe7e084859788829b841d8f659cb3e767ca7
99e32ab1325a303f92457fc6e0615786c4944ef2
/accounts/migrations/0045_admin.py
89f9551bcb1290310266ca8d274723897489610f
[]
no_license
mafohoT/Threeness-Intelect
3936a43ed96ba5cefdcae965e923ccf003bb54b2
df64f02e9774b9e620eec1f0b15c21aa04818bf7
refs/heads/master
2023-08-17T22:46:09.742200
2021-10-20T13:33:27
2021-10-20T13:33:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,285
py
# Generated by Django 3.2.7 on 2021-10-10 07:47 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import phonenumber_field.modelfields class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL...
[ "thabo3111@gmail.com" ]
thabo3111@gmail.com
e3232181ab26b3496489c74e74fc52babb6b3a76
7eb7c263634a40b7397727854346f703e2be5a63
/core/estimators/models/omar_cnn.py
3296eb27919aeb8d258fde9727b86ff4d6df584c
[]
no_license
Iqra350/krock2_traversability
7b745d1664d9d14facc0d3fbff324bbaac2c391e
7dd5e03d768fd3218838417ac0f195b25a1b8efa
refs/heads/master
2022-07-17T04:59:35.529123
2019-09-02T14:07:40
2019-09-02T14:07:40
205,813,838
0
0
null
2022-06-21T22:42:16
2019-09-02T08:42:19
Jupyter Notebook
UTF-8
Python
false
false
1,237
py
import torch import torch.nn as nn def conv_block(in_channels, out_channels): return nn.Sequential(nn.Conv2d(in_channels, out_channels, kernel_size=3, padding=1, bias=False),...
[ "noorsyen@gmail.com" ]
noorsyen@gmail.com
bf1d1240627f1a4c67140e7e6a2fd53532cd3d68
d812e86676c88dd70d0d829cf507de7777502d72
/Django/zqxt_form2/zqxt_form2/urls.py
bc54e18f005ef54dc230520ba7b8f9011af35f4e
[]
no_license
MikeNg2018/PythonCode
020777d3620d1aeb7c03dd90d1452934eee9663f
683a6d3cb529ec2a92adc92c6cd6db6d1604fc3b
refs/heads/master
2021-08-22T08:15:50.083878
2018-07-23T15:05:05
2018-07-23T15:05:05
104,327,895
1
0
null
null
null
null
UTF-8
Python
false
false
859
py
"""zqxt_form2 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
[ "mikeng83@gmail.com" ]
mikeng83@gmail.com
071bfee000566985c17e29e87d6d225d8ee2deb3
16e3bda8d377753f14aaa58812fd36d6a7abb7cf
/examples/durations/components/takeslongtime/component.py
961733e9ca60e8085619eb9c25f6904cc2235c68
[ "BSD-2-Clause" ]
permissive
flyingcircusio/batou
942c08debd8a011bc7fe36fc630c6b8552ad9f3e
f87a00acc3ce256014d49bef2eac581e91009275
refs/heads/main
2023-08-31T07:20:17.450557
2023-04-14T12:14:52
2023-04-14T12:14:52
206,573,151
42
28
NOASSERTION
2023-09-12T13:32:40
2019-09-05T13:40:03
Python
UTF-8
Python
false
false
167
py
from time import sleep from batou.component import Component from batou.lib.file import File class Takeslongtime(Component): def verify(self): sleep(2)
[ "ct@flyingcircus.io" ]
ct@flyingcircus.io
f82cf90fe60daaa0440a23c3fff77d3f36ea6f32
21899ea0e94cb58f8ac99b7c731f59e0232839eb
/src/python/T0/WMBS/Oracle/SMNotification/UpdateOfflineFileStatus.py
d3bfae8976ed4a4f7831ef497cd82c240dac52e8
[ "Apache-2.0" ]
permissive
dmwm/T0
a6ee9d61abc05876fc24f8af69fe932a2f542d21
1af91d0b1971b7d45ea7378e754f2218ff9a8474
refs/heads/master
2023-08-16T10:55:27.493160
2023-08-11T09:38:03
2023-08-11T09:38:03
4,423,801
9
54
Apache-2.0
2023-09-14T11:43:30
2012-05-23T18:33:56
Python
UTF-8
Python
false
false
687
py
""" _UpdateOfflineFileStatus_ Oracle implementation of UpdateOfflineFileStatus """ from WMCore.Database.DBFormatter import DBFormatter class UpdateOfflineFileStatus(DBFormatter): def execute(self, binds, conn = None, transaction = False): sql = """UPDATE file_transfer_status_offline S...
[ "Dirk.Hufnagel@cern.ch" ]
Dirk.Hufnagel@cern.ch
37f310a3f5ec60c0871d9232dd93a28a7b4b7d30
af70d6e37c3b95c6a497ecb6b6b54dc56a9aced3
/config.py
638aeaba248783af2a124a63ae24391fac4311bd
[ "Apache-2.0" ]
permissive
TuringKi/Quantize_Project
b4357b9e1946e29318ce90ef72bca2f6aded4454
e3ba6bae8fff7e1981c93ce954a79987feddfe33
refs/heads/master
2021-08-30T20:02:24.938319
2017-12-19T08:04:12
2017-12-19T08:04:12
125,996,907
1
0
null
null
null
null
UTF-8
Python
false
false
5,031
py
#!/usr/bin/python all_para =['Variable', 'Variable_1', 'Variable_2', 'Variable_3', 'Variable_4', 'Variable_5', 'Variable_6', 'Variable_7', 'Variable_8', 'Variable_9', 'Variable_10', 'Variable_11', 'Variable_12', 'Variable_13', 'Variable_14', 'Variable_15', 'Variable_16', 'Variable_17', 'Variable_18',...
[ "noreply@github.com" ]
TuringKi.noreply@github.com
5517b266df69423eb51103ed7b51cea7cdb833ec
df8eeeb91a0dce2eb27911a61b40041da0ea55a3
/honda_janken/4_pygame.py
ba530b20dc2a57a7884f471ac55a738d21010d16
[]
no_license
dannyso16/Play-IT
89e8c60a3069ac6e678c8f9849a58d6cb9e38a79
14efa295e12ba208313beb655f57fb1ae8051a49
refs/heads/master
2020-06-23T21:38:28.183648
2020-02-26T05:03:37
2020-02-26T05:03:37
198,760,296
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
import pygame from pygame.locals import * import sys pygame.init() screen = pygame.display.set_mode((1200, 700)) image = pygame.image.load('assets/honda_paper.jpg') def main(): while True: screen.fill((0,0,0)) for event in pygame.event.get(): if event.type == QUIT: pyg...
[ "osatoshi.11@gmail.com" ]
osatoshi.11@gmail.com
9167dd129fd4984452144aa2a908ee2f67d171e1
1267670526be8a4669b0e724e2e0ebcd20c85a15
/users/apps.py
97315a96a3e7a750bb82d4b564b77f2967f63791
[ "MIT" ]
permissive
DPsalmist/Damios-Blog
46ba2bf2294d821e6656f7232170f389ca55c6b7
af711fc9ad8e581df166beb6c61c5514a14310f2
refs/heads/main
2023-05-06T08:24:39.208531
2021-05-24T02:40:30
2021-05-24T02:40:30
340,534,096
0
0
MIT
2021-02-20T02:35:05
2021-02-20T01:39:05
JavaScript
UTF-8
Python
false
false
133
py
from django.apps import AppConfig class UsersConfig(AppConfig): name = 'users' def ready(self): import users.signals
[ "sdamilare420@gmail.com" ]
sdamilare420@gmail.com
f18610e3ece9eeea21f5e15acef6c46718b270c4
87415616ce962e5ae09ce2afea14e821631232fb
/meeting_point/response.py
fd036fe9d55095ca8c80d993e42eee690e427de2
[]
no_license
proabhishek/meeting_point
33bbf715c965dc6c9ff406e46f8689784668912f
6f8166ef09b229e35fe966a249c675fd19895e4e
refs/heads/master
2022-05-11T08:09:54.802826
2021-06-23T16:52:16
2021-06-23T16:52:16
204,439,826
0
1
null
2022-04-22T22:13:59
2019-08-26T09:16:25
Python
UTF-8
Python
false
false
1,851
py
import traceback from rest_framework.views import exception_handler from rest_framework.response import Response def meeting_exception_handler(exc, context): response = exception_handler(exc, context) try: data = response.data message = "" for key, value in data.items(): ...
[ "theabhishek.srm@gmail.com" ]
theabhishek.srm@gmail.com
defb13f9aa31c99e117b8eacc4b05d56d393dc48
bf79252a8cbd297f3f8392f0a9c57eda61f336cc
/3 Triangle.py
b81a05e5efb8e8c70a7e7e3948c5afc7a7424144
[]
no_license
besteffects/Python_tutorials
5af8df8d6458d37f9d2f12e4b40b0cff2d07442b
cb7a525d70b87446a68e32ecb42bc56e3639d532
refs/heads/master
2020-05-07T05:50:46.458059
2019-05-28T02:57:24
2019-05-28T02:57:24
180,289,270
2
0
null
null
null
null
UTF-8
Python
false
false
3,041
py
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> def f(x) SyntaxError: invalid syntax >>> def f(x): return x**2 >>> f(3) 9 >>> result = f(3) >>> result 9 >>> def area(base, height): return base*height/2 ...
[ "besteffects@gmail.com" ]
besteffects@gmail.com
5c12dac608c49d1b596a81739abc27e3105323b7
ae93357b563cf602b207df92bce4cacaeb690534
/thisAndThat/387b.py
22bd1cc8a1a0850da802a59c1164dba3eafe4561
[ "MIT" ]
permissive
SnowOnion/CodeForcesLee
aed472769e6b1449f60b561d31d6150cdd027042
c2e964432ce9c2f6ca0c9038934c10f1bf1268b3
refs/heads/master
2020-04-06T06:58:25.082842
2016-06-21T14:00:00
2016-06-21T14:00:00
16,841,153
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
# @status AC n,m=map(int,raw_input().split(' ')) a=map(int,raw_input().split(' ')) b=map(int,raw_input().split(' ')) # a.reverse() # b.reverse() aptr,bptr=len(a)-1,len(b)-1 comeup=0 while True: if aptr<0: # end break elif bptr<0: # not enough aptr-=1 comeup+=1 elif a[aptr]>b[bptr]: # can't satisfy aptr-=...
[ "snowonionlee@gmail.com" ]
snowonionlee@gmail.com
33f29496027b2d49f9264bab1239e924a9f86347
a29c5402b81fe3026408755f793636ed389d6316
/tests/test_utils.py
2b7f181cb6e3219533d64c7cd92a2e978d15fd32
[ "MIT" ]
permissive
Originator2019/requestz
66f90b1ec38d89f77c2a5e60e8f385501ca37417
6ec81e4bf520ade2ed6537f24dc0a395b3af754b
refs/heads/master
2023-03-15T15:08:08.525057
2020-11-23T12:19:05
2020-11-23T12:19:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
679
py
import pytest from requestz.utils import double_split, parse_cookies, params_check def test_double_split(): line = 'BAIDUID=1874C759F48209DB07521C82EF9B6A77:FG=1; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2147483647; path=/; domain=.baidu.com' result = double_split(line, ';', '=') print(dict(result)) ...
[ "hanzhichao@secoo.com" ]
hanzhichao@secoo.com
26e7e3cf9621bfefc6acced6c9d8091d231ec685
a30588adcdaca87777142556e428e354b651de8c
/lib/config.py
8d04fd35e030189b042b4a989451e453544a85d9
[ "MIT" ]
permissive
ardegra/ardegra
8abde2aa4e13b51553e6a8ff10aa1e769346fc06
96b7840faa41d43fd5c20e0a26f4cd7cf58f3aa7
refs/heads/master
2022-12-10T17:32:17.520324
2018-02-14T03:26:34
2018-02-14T03:26:34
120,867,420
0
0
MIT
2022-06-28T14:37:23
2018-02-09T06:36:02
Python
UTF-8
Python
false
false
349
py
class Config: PRODUCTION = {"BASE_EXTRACT_API": "http://159.65.9.37:8000", "DATABASE_ADDRESS": "35.198.212.145:27017"} DEVELOPMENT = {"BASE_EXTRACT_API": "http://13.250.161.228:8000", "DATABASE_ADDRESS": "35.198.212.145:27017"} STAGE = PRODUCTION BASE_EXTRACT_API = STAGE["BASE_EXTRACT_API"] DATABASE_ADDRES...
[ "frans@zannete.com" ]
frans@zannete.com
afe785822353007a0e383a753e0a33698f083809
402d45a429fae0649bcbf82858e891cb3032da68
/migrations/versions/9b5b92f1c540_tasks.py
c9461593abe1f15847daabfd207d3ef7110fa65c
[]
no_license
awei82/microblog
548f2dae0709d3fce976a8ee9f8e8cab4e5ebdeb
b7b7c09563ae5b079c5acf7101c02b192d27d308
refs/heads/main
2023-02-12T12:14:10.585844
2021-01-11T22:03:49
2021-01-11T22:03:49
318,905,127
0
0
null
2020-12-23T03:36:37
2020-12-05T22:49:56
Python
UTF-8
Python
false
false
1,110
py
"""tasks Revision ID: 9b5b92f1c540 Revises: ddd5814a8c2f Create Date: 2020-12-13 19:47:11.847133 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '9b5b92f1c540' down_revision = 'ddd5814a8c2f' branch_labels = None depends_on = None def upgrade(): # ### comm...
[ "awei34@gatech.edu" ]
awei34@gatech.edu
27286200eb7bf4c3f812531f1265ffac62c024fd
17d5736896e79d4b8a11ed8d8ecddd6ede56b2a6
/day_30_PrimesNumberCount.py
444f0850b3aa82b07ef8dbe663d71ddb940aa701
[]
no_license
parulsharma-121/CodingQuestions
e733e5b24c30f137593267d8464721a83df3f241
9c3a99501878edd22052505b8bda9863e5855fd7
refs/heads/master
2021-04-23T19:19:13.651753
2020-10-22T16:30:29
2020-10-22T16:30:29
249,979,493
5
0
null
null
null
null
UTF-8
Python
false
false
541
py
''' Count the number of prime numbers less than a non-negative number, n. Example: Input: 10 Output: 4 Explanation: There are 4 prime numbers less than 10, they are 2, 3, 5, 7. ''' def countPrimes(n): if(n<=2):return 0 primes = [True]*(n) primes[0]=False primes[1]=False count = 0 for i in ran...
[ "contactparulsharma11@gmail.com" ]
contactparulsharma11@gmail.com
ec05d34177c32d090ae98a11348615565109dae7
c72ecc8414497d5e0711886737088de7f5ec4021
/Computer-Science/Lens_Slice.py
eb43afe21e72127937afb40af80832e375e5bd88
[]
no_license
gjholman/Codecademy
bf3557e6c64be5f3eb4b53ed2ffbcc8b1961ee3d
1f424ac39040c56bacab5a3925dc8926477b3342
refs/heads/master
2020-04-05T09:33:44.991984
2019-05-06T19:52:43
2019-05-06T19:52:43
156,763,252
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
toppings = ['pepperoni', 'pineapple', 'cheese', 'sausage', 'olives', 'anchovies', 'mushrooms'] prices = [2, 6, 1, 3, 2, 7, 2] pizzas = list(zip(prices, toppings)) num_pizzas = len(toppings) print('We sell %s different kinds of pizzas' % num_pizzas) pizzas.sort() cheapest_pizza = pizzas[0] priciest_pizzas = piz...
[ "gholman@wpi.edu" ]
gholman@wpi.edu
0fc8150de357aa26ebfde427639c7a4f5377e2b0
eea7d5b8b745c4865a32f1f14f2d0e80f7d1a1f0
/fetch-pmid-date_year.py
e101c0ae0d252debdad7b682f25a59b598642496
[ "Unlicense" ]
permissive
asadrazaa1/emails-extraction
c404372bc10115b082c578e40707878faa4bd04c
bb2b7b9f4caa9f62a81e6d9588c1c652d074dfde
refs/heads/master
2022-12-10T19:04:42.146796
2020-08-28T12:55:03
2020-08-28T12:55:03
291,040,979
0
0
null
null
null
null
UTF-8
Python
false
false
4,347
py
import psycopg2 import sys from nltk.tokenize import sent_tokenize import re import csv try: #connecting with database connection = psycopg2.connect(user="database-user", password="database-password", host="host-ip-address", ...
[ "noreply@github.com" ]
asadrazaa1.noreply@github.com
69ee3f8346b35e78155451d2a3a4225518fd34a0
40a20dee8c96ce4d3a8f351e33763c30f9dc3bd3
/apps/projects/migrations/0002_auto_20151205_2101.py
f6960971c3372875ce92ec9ac094efd2bcbc7d3a
[ "Apache-2.0" ]
permissive
theSoloBrewer/Project_Management
236553a4bbce46ea2c6928e02f09d5772f296f40
20db0abc400568da593bdea075b414dfde89f564
refs/heads/master
2020-05-25T14:20:06.311620
2016-10-06T09:53:05
2016-10-06T09:53:05
61,943,746
0
0
null
null
null
null
UTF-8
Python
false
false
682
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('projects', '0001_initial'), ] operations = [ migrations.AddField( model_name='project', name='lat', ...
[ "computerzombie@msn.com" ]
computerzombie@msn.com
8e1f86b970140ffd868c55fa1c235d8495f21f60
d5401d70cd380adf0f57553d5873ea7bf4b1f943
/bpproject/education/urls.py
50c3189a3384b2c883f030ebf843624e21fb5f0d
[]
no_license
Nima-Niroumand/bpproject
854b1192456f795bc87e736541b2256964d0f5e1
06489c29345674a734c35b4060b3d34074c8d1d0
refs/heads/main
2023-03-21T12:00:30.794387
2021-03-07T17:53:20
2021-03-07T17:53:20
344,255,737
0
0
null
2021-03-07T17:53:20
2021-03-03T20:31:12
Python
UTF-8
Python
false
false
1,477
py
from django.conf.urls import url,include from django.urls import path from education.views import dashboard, exerciseIndex ,exerciseUpload,VideoUpload,videoIndex,downloadExerciseFiles,sendExercise,videoPlay from education.views import submitExerciseIndex,sendExercise,downloadSubmitedExerciseFiles,accessdenied urlpatter...
[ "nimaniroumand80@gmail.com" ]
nimaniroumand80@gmail.com
1a1372d2a403d52f3d6ef2b3ffc42325961a89fe
609b6c5f1e5663055e3df96e75b58e7a7ad87e4f
/finddjangofiles.py
99b51e04ec353994f116dfbf5019c64fd56ed553
[]
no_license
rroyales/testing
a4028fe4b9ba6dafb8f1681a905d1f6fae9465b8
a011510c375cffefb08c0a0542967e8f4f9a4e14
refs/heads/master
2016-09-06T21:42:53.859393
2013-12-08T04:57:13
2013-12-08T04:57:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
75
py
import sys sys.path = sys.path[1:] import django print(django.__path__)
[ "rroyales@gmail.com" ]
rroyales@gmail.com
ac78fc59ed4c8357d5b5b442db111b99b0a4b56c
7df9872f1975f8a7b9f61b511c30b789b5462ebf
/examples/signal.py
7a1a8bb381a9c572a0f75038603dcec16e01d7cf
[ "Apache-2.0" ]
permissive
rtyler/graphy
02bab359b51e58657bcc7b793e329dda1fe6f591
b0a83588217fc15ffc728fa33de880a7e6658058
refs/heads/master
2020-04-06T03:42:19.531845
2009-06-26T22:35:13
2009-06-26T22:35:13
567,805
1
1
null
null
null
null
UTF-8
Python
false
false
1,383
py
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "zovirl@zovirl.com@30582518-8026-11dd-8d1c-71c7e1663bfb" ]
zovirl@zovirl.com@30582518-8026-11dd-8d1c-71c7e1663bfb
c7a18bf956c7f59fd07ed23f4cdcbf46870edcb1
6e0972dba67d369041894d9f59d22fa463528ff9
/orders/migrations/0016_auto_20200525_1610.py
dd927d61cad845c944d760b00dc57bc4f995331c
[]
no_license
tonywh/cs50w-project3
5d0efb4579d5dc6f30c3813322a52e3fb47d585b
7c5bf4df9a80658501091cbc18836a5870c26dc1
refs/heads/master
2023-05-27T23:42:38.764391
2020-06-10T06:54:06
2020-06-10T06:54:06
265,222,097
0
0
null
2021-06-10T22:56:57
2020-05-19T10:56:56
Python
UTF-8
Python
false
false
709
py
# Generated by Django 2.0.3 on 2020-05-25 16:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orders', '0015_auto_20200525_1428'), ] operations = [ migrations.AlterField( model_name='pizza', name='description',...
[ "tony.whittam@gmail.com" ]
tony.whittam@gmail.com
a0366ed314803e1af96ec9306d27d26d291e8153
c0eee87cbd58162315b4f51a2d64e45bb76401d2
/locations/spiders/chargepoint.py
24a9e1ebeca6e4a05e272fc8f5e3c230f232de88
[ "MIT", "CC0-1.0" ]
permissive
gmavian/alltheplaces
bdcbcbb851c8891c76fabce349cb7e071c2f3768
0fdd61e084a764dedf483a7074265956a38a3303
refs/heads/master
2023-08-03T19:46:17.734124
2023-07-31T12:36:38
2023-07-31T12:36:38
162,633,873
0
0
NOASSERTION
2018-12-20T21:37:18
2018-12-20T21:37:17
null
UTF-8
Python
false
false
6,642
py
import json import random import urllib.parse import scrapy from locations.categories import Categories, apply_category from locations.items import Feature class ChargePointSpider(scrapy.Spider): name = "chargepoint" item_attributes = {"brand": "ChargePoint", "brand_wikidata": "Q5176149"} def start_req...
[ "noreply@github.com" ]
gmavian.noreply@github.com
475328963d8e76328bb904c7636e6d0593e4cc1b
38258a7dd9acbfb7adf72983015de68a948a4826
/CodeUp/C_6066.py
f3668e5168ba85e8a1894b1865365b3f8f4bb72f
[]
no_license
kangsm0903/Algorithm
13a7fe5729039a1d0ce91a574c4755a8a92fb02b
7d713d1c9e2e4dc30141d4f409ac1430a357065b
refs/heads/master
2022-10-04T00:33:49.247977
2022-09-26T12:51:16
2022-09-26T12:51:16
219,265,010
5
1
null
null
null
null
UTF-8
Python
false
false
171
py
a = list(map(int, input().split(" "))) for i in range(0,3): if a[i]%2 == 0: a[i] = "even" else: a[i] = "odd" for i in range(0,3): print(a[i])
[ "kangsm0903@naver.com" ]
kangsm0903@naver.com
ef822a1e255fb2074b792181339c6da6256c78c3
f29293ba53d454d3c436db317f6b4e3fa11cbfd0
/arrangør/views.py
3ddb31c41be4ae8b54b62d014ef8f525eae4478e
[]
no_license
alfredronning/oldProject
375f3979da0aa8cdb5eaebd4ad268901eea3c0b9
9b099cdd3a5e4091242c7905588b8c5260970284
refs/heads/master
2021-01-22T07:32:06.735812
2017-02-13T12:29:06
2017-02-13T12:29:06
81,822,493
0
0
null
null
null
null
UTF-8
Python
false
false
2,618
py
from django.shortcuts import render, redirect from django.views import generic from band_booking.models import Concert, Technical_needs from bookingsjef.actions.concert_overview_term import get_current_term # Create your views here. class ConcertsView(generic.ListView): """ Generates a view for the query set...
[ "alfredronning@gmail.com" ]
alfredronning@gmail.com
477aca3a366ff7509d6341c4a3179e7feb47d413
a15c69fdbf4a3aab6ab816bb99f3161676b7569b
/src/srm/598/ErasingCharacters.py
ab60cd3e72b08ac4eb98ce3a32dba4cf1b14367f
[]
no_license
prstcsnpr/Algorithm
08bf5df5741af3e1b43830bf896e281a45a6ab94
4eeab0c3fdc3f488e7cf7b3554f82fb4c63899ad
refs/heads/master
2016-09-05T10:48:20.599794
2013-12-11T07:36:58
2013-12-11T07:36:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
994
py
import unittest class ErasingCharacters(object): def simulate(self, s): while True: result = s for i in range(len(s) - 1): if s[i] == s[i + 1]: result = s[0:i] + s[i+2:] if result == s: return result else: ...
[ "prstcsnpr@10.2.78.74" ]
prstcsnpr@10.2.78.74
6dc284c465d8262adfc99feaf1ce573a82accab7
126901616c8339139f4f880b9b0101e3505977e1
/backend/quickmed/models.py
b1c1bb4d872b91f90dd43b7e0e77f96129cecd34
[]
no_license
LordGhostX/QuickMed
51a8d27237b52a165161244620f5ea75eb28fa57
c5525a9804201f8c427d60caf27a040d9b225512
refs/heads/master
2023-05-25T00:04:25.998587
2022-12-02T17:31:54
2022-12-02T17:31:54
210,404,014
9
1
null
2023-05-22T23:15:22
2019-09-23T16:36:13
HTML
UTF-8
Python
false
false
836
py
from django.db import models from datetime import datetime from django.contrib.auth.models import User # Create your models here. class UserProfile(models.Model): user = models.OneToOneField(User, related_name="profile", on_delete=models.CASCADE) hospital_name = models.TextField(max_length=100) hospital_ad...
[ "chukslord1@gmail.com" ]
chukslord1@gmail.com
d30a87df7fb6fd525296fcf61ab27d40f79a5e80
3ac57e01e61e4216afeae6006c515eb02ecdcb76
/euler3.py
435da7947753f2e34db631f4386ae6371b982f0b
[]
no_license
akaruihoshi/project-euler
6ca4e8ef888110bf89c504d5a35e331e2f8bf8cf
f89cedca8a148f5f8cd4ec161e50c28edf1a5678
refs/heads/master
2022-08-21T18:38:36.580433
2020-05-22T09:59:50
2020-05-22T09:59:50
266,076,704
0
0
null
null
null
null
UTF-8
Python
false
false
556
py
a = 600851475143 x = 2 y = 2 while x <= a: is_prime = True # untuk nyari tau apakah dia prime apa ga if x > 3: x1 = x ** 0.5 if x1 % 1 > 0: x1 = int(x1) + 1 while y <= x1 and is_prime: z = x / y if z % 1 == 0: is_prime = False ...
[ "akarui.hoshi.6282742@gmail.com" ]
akarui.hoshi.6282742@gmail.com
ec24655e98ab05b42d1d54bedcb848c2fc90f07e
f2ec1298c00d813c7e973cac22184ea8f54eb60c
/MxShop/apps/trade/models.py
6b6549cbd73a281f4648faa11b75915f61274de1
[]
no_license
llf-1996/mx_drf
fcfaa028630eeb02be91af5e30fb2a200037400c
f4878c0d9857e7af7277d10cc32da5d9c522de0c
refs/heads/master
2020-06-05T06:51:49.629343
2019-06-17T13:20:29
2019-06-17T13:20:29
192,350,339
0
0
null
null
null
null
UTF-8
Python
false
false
2,760
py
from datetime import datetime from django.db import models from django.contrib.auth import get_user_model from goods.models import Goods User = get_user_model() # Create your models here. class ShoppingCart(models.Model): """ 购物车 """ user = models.ForeignKey(User, verbose_name=u"用户") goods = mod...
[ "2367746876@qq.com" ]
2367746876@qq.com
100da862027b8d2642d223ead728c151f3d438ab
84864f862dec9171e958920f2c8e7c920fcef056
/Undergraduate Thesis/NumericalSimulation/nzg.py
c1af37dc8752932e7fda2248be4c291a108fc3e9
[]
no_license
Orcuslc/Learning
7704950f8c09232dadbbde81ed82ddc0ca65172d
ffa856febd85235d17358178f1e288ffae7856cb
refs/heads/master
2020-03-26T11:59:54.093395
2018-05-29T04:19:36
2018-05-29T04:19:36
47,269,920
4
2
null
null
null
null
UTF-8
Python
false
false
2,234
py
import random as rd import math import numpy as np from matplotlib import pyplot as plt def walk_astep(memory, q, step = 1): u = rd.random() if u <= q: memory.append(step) else: memory.append(-1*step) def random_choice(k, alpha): u = rd.random() # if alpha == 1.0: # return math.ceil(alpha*k) # if k <= 2: ...
[ "orcuslc@hotmail.com" ]
orcuslc@hotmail.com
b8f080d2a6d43c4add9608c655522e1b65e86fe4
7020f68875af3f94b309c12bfe45d6c3520a7b3a
/Week3.py
c09cc3a6e0d67b2696c31673d661e6b204fa0e0f
[]
no_license
mgrddsj/MEMS-OpenCV-Heroku
a6326617ba373673dd82e5e0f09f7c2c157b6744
209d61bba568cb7d214c081d5f372f07c9efb655
refs/heads/main
2023-04-25T07:29:37.471350
2021-05-21T07:14:48
2021-05-21T07:14:48
359,997,557
0
0
null
null
null
null
UTF-8
Python
false
false
5,516
py
import cv2 import streamlit as st import numpy as np import glob def main(): st.markdown("**Note:** Images are compressed for web viewing.") st.markdown("Display and process results may be different from original images.") st.markdown("However, the images are still quite large, you may need a fast Internet...
[ "Jesse_Xu@live.com" ]
Jesse_Xu@live.com
67d07065a2938033112c73776b10b9ebf83e424d
bdda1ad015be505352a197d4d1066b13826a7a32
/core/migrations/0001_initial.py
e5fcef9501fd67ee8dedd31b6300c2d330b9d49c
[]
no_license
dowoncha/basa-test
8700428ea1ec14aa1e3c6f64beadda8b6ba4eab3
433477ccc7ab595f5db247792175cc5b88e368cf
refs/heads/master
2020-12-02T08:14:18.470664
2017-07-10T15:15:17
2017-07-10T15:15:17
96,791,646
0
0
null
null
null
null
UTF-8
Python
false
false
1,618
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-07-10 11:15 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.Creat...
[ "dowoncha@live.unc.edu" ]
dowoncha@live.unc.edu
b35488ea9f9a8ede3e0dd6a8dfbdd9d30d443b5f
19d58444437e2af0f143b77516702b5c2f5e3f61
/twin_pixels.py
5228cd496513b1632561da7192d46ddf57cd40f5
[]
no_license
simozmp/jes_exercises
8a8bf6cbecd426720b54a6ed179d807335c02f23
c95901171283ed64dcbc76b31fa2233b8a049830
refs/heads/master
2020-06-14T19:01:27.754651
2016-04-15T13:22:47
2016-04-15T13:22:47
54,203,050
0
0
null
null
null
null
UTF-8
Python
false
false
3,402
py
def areTwins(pix1, pix2) : # @param pix1: Pixel; # @param pix2: Pixel; # @return boolean; Two pixels are twin when the sum of the pix1 # components is equal to the sum of the pix2 components return getRed(pix1)+getGreen(pix1)+getBlue(pix1) == getRed(pix2)+getGreen(pix2)+getBlue(pix...
[ "simo.zmp96@gmail.com" ]
simo.zmp96@gmail.com
138f1eaf70bab179317bf09a3c49884ad2530e08
772a82205af92d2f2d2b490ac6bc23fdb7456124
/algorithm/luogu/P1540.py
8486a00f271d8dde0f15acdb3de6cc5abafe6eae
[]
no_license
atashi/LLL
4f777b3a06c6ed38eab4323d2072dbbec22eee92
857b8c7fccfe8216da59228c1cf3675444855673
refs/heads/master
2021-05-17T10:11:28.946779
2019-11-25T15:56:14
2019-11-25T15:56:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
m, n = [int(i) for i in input().split()] nums = [int(i) for i in input().split()] d = dict() buffer = [] i = 0 count = 0 for num in nums: if num not in d: d[num] = True count += 1 if len(buffer) < m: buffer.append(num) else: i = i % m tmp = buf...
[ "rebornwwp@gmail.com" ]
rebornwwp@gmail.com
5a819e9002a72dec33dd8777b6a34b3a92f4947c
67e55f481808fa307add29e2ad348492deef78a1
/03_Code_Forces/05_WordCapitalization.py
4eafedc495f12c35499542165902895447547ef1
[]
no_license
jpallavi23/Smart-Interviews
1dea8d28e6a7152205f2b680a2511824c74465df
91f0ff5414af02a49e1a75ef923cd5497e0e4bb8
refs/heads/master
2023-02-05T15:37:05.364713
2020-12-31T13:27:29
2020-12-31T13:27:29
310,283,727
5
0
null
null
null
null
UTF-8
Python
false
false
541
py
''' Capitalization is writing a word with its first letter as a capital letter. Your task is to capitalize the given word. Note, that during capitalization all the letters except the first one remains unchanged. Input A single line contains a non-empty word. This word consists of lowercase and uppercase English lette...
[ "pallavijampala112722@gmail.com" ]
pallavijampala112722@gmail.com
152639cc794a953f8943c70b86d1bfec8a78cb17
76d6f6f5e37521827b3d2a6a36bc137103075039
/module1-3/randomSearch.py
0a4b30d332245175d7dcb867492575b923c701e2
[]
no_license
honghuCode/cs231n-2
380988b54b54308abd35579dfef5e2f7d7f35784
1d5d7a6300f844cb96d5b483474edfd876dea9b0
refs/heads/master
2021-01-20T06:11:56.053810
2017-01-17T13:02:01
2017-01-17T13:02:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
#coding=utf-8 import numpy as np import loss import load_full_CIFAR10 as load X_train, Y_train, X_test, Y_test = load.load_CIFAR10('cifar-10-batches-py/') X_train = X_train.T; #增加一行,处理偏置值 bias = np.ones((1, X_train.shape[1])) X_train = np.vstack((X_train, bias)) bestloss = float('inf') #初始化为最大值 for num in xrange...
[ "897241687@qq.com" ]
897241687@qq.com
443d3474dda27cf501fe2763686bfdd2ee103c84
e15d63ccde04e7458bff5af1bdad63a5c699b489
/example/Transformer_vision/face/deep_vit/deepvit.py
02c77d650ad0aaa6b6f222c09be856f10291b8a1
[ "WTFPL" ]
permissive
ddddwee1/TorchSUL
775b6a2b1e4ab7aac25a3f0411de83affc257af5
6c7cd41b14fc8b746983e8b981d1ba4d08370ca2
refs/heads/master
2023-08-21T15:21:24.131718
2023-08-18T09:37:56
2023-08-18T09:37:56
227,628,298
13
1
null
null
null
null
UTF-8
Python
false
false
4,510
py
import torch from torch import nn, einsum import torch.nn.functional as F from einops import rearrange, repeat from einops.layers.torch import Rearrange class Residual(nn.Module): def __init__(self, fn): super().__init__() self.fn = fn def forward(self, x, **kwargs): return self.fn(x, ...
[ "cy960823@outlook.com" ]
cy960823@outlook.com
384216efe4438e75898ed7a6bb898d34f478d199
01a58a01045687b0e01f4119eab42c3af364d62f
/node_modules/better-sqlite3/build/config.gypi
971e9379328fcfcd68e62991d2aba24464230e8f
[ "MIT" ]
permissive
Flawani/zrobiehosting
ed280422ef55bc7a1ae788097fe44c92822b3c28
9613db4e2eeadb005e456d9c67a75bcf40dc6534
refs/heads/master
2020-12-04T20:00:05.859360
2020-01-05T08:15:44
2020-01-05T08:15:44
231,887,653
0
0
null
null
null
null
UTF-8
Python
false
false
5,613
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, "build_v8_with_gn": "false", "coverage": "false", "debug_ngh...
[ "46850608+Flawani@users.noreply.github.com" ]
46850608+Flawani@users.noreply.github.com
cf9ef7169a33bdadee7fd2ebbce7fd0ea9facd71
fb17d7a0754af8037f93382ffa90fb5374ba467e
/maboss/webx/test01.py
dc178e4c1d744bb60a3e764743dd0519daab850a
[ "MIT" ]
permissive
mabotech/maboss.py
becfd68c05c70ea214ce381d2d3b0e89fac8bb24
30c919d09c0a290772dde2f913c51843f0f88e26
refs/heads/master
2016-09-10T10:53:00.910707
2014-07-05T12:18:20
2014-07-05T12:18:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,526
py
# -*- coding: utf-8 -*- import os import logging import logging.handlers import logging.config #import profile import time from time import strftime, localtime from datetime import datetime from Cheetah.Template import Template from mabolab.core.base import Base from flask.config import Config settings = Confi...
[ "aidear@163.com" ]
aidear@163.com
9ce2baaeaa600af666164ded7fd55f0b40b30555
191863e86029b0e5866bf810ec7bf209fce88b6f
/sagemaker-lineage/visualizer.py
0412248090f8a4fc4a26fc394cf295e3d18a7fcf
[ "Apache-2.0" ]
permissive
EmilyWebber/amazon-sagemaker-examples
237efa2211a5d26854ece7da2356d627d4f5f225
fb5a8ba5298bb7879ee9b8c10cb0842ac078b84b
refs/heads/main
2022-04-06T10:29:56.728806
2022-04-05T14:54:25
2022-04-05T14:54:25
331,713,808
3
3
Apache-2.0
2021-01-21T18:13:20
2021-01-21T18:13:19
null
UTF-8
Python
false
false
2,017
py
from pyvis.network import Network import os class Visualizer: def __init__(self): self.directory = "generated" if not os.path.exists(self.directory): os.makedirs(self.directory) def render(self, query_lineage_response, scenario_name): net = self.get_network() for v...
[ "jeniya.tabassum@gmail.com" ]
jeniya.tabassum@gmail.com
c00f4e57fb45e35989e16e53a973497b38a0758e
d264958440e5963b9794d60f1b4c6f68584d4b9d
/test_calculator.py
e1cc546fe9ae9c873ce49b40cc3d01da9cc74f23
[]
no_license
rongzhen-chen/CalculatorLibrary
bc4780427dae2e579b99eb418587160ea568b12e
2ddaedbf41ce01bac50d7d4eb19f24bbf9e026ed
refs/heads/main
2023-01-22T22:00:46.467272
2020-11-23T10:45:52
2020-11-23T10:45:52
315,268,321
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
""" Unit tests for the calculator library """ import calculator class TestCalculator: def test_addition(self): assert 4 == calculator.add(2, 2) def test_subtraction(self): assert 2 == calculator.subtract(4, 2) def test_multiplication(self): assert 100 == calculator.multiply(10, ...
[ "rongzhen.chen@ericsson.com" ]
rongzhen.chen@ericsson.com
8950e2714021112a21c867cc6a8e8eef361a97e4
00cacf1a24b33e622c90ebd37d3f8e7ce291c7ba
/code/gen_fewrel_dataset_roberta_task_finetune_HEADandTAIL_updateRep_bottomANDtop_classifier_batch_AllLabel.py
f4e745f7c1d247f2935354111671dd5a0e391d76
[]
no_license
riyadhctg/CSS-LM
a1e94001713e7014e9eeceea186e87ce18fa5f3e
fbe6b974847f54307ee921f897e8e6e7a650326e
refs/heads/main
2023-07-05T14:16:30.244804
2021-08-13T04:02:37
2021-08-13T04:02:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
53,095
py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
[ "ky200120000@gmail.com" ]
ky200120000@gmail.com
3b6213786afb95e6f2aa8ff988d8ea7dc07ba8f8
31a766fcae3779b05796534c354286083502f74a
/python/onshape_client/models/bt_list_response_bt_friend_info.py
e0809604caadf4e9e7624dfd6fe9b747d952e44d
[]
no_license
nychang/onshape-clients
5ea21e73a05948f5e232d4851eb8ae8a6b8c75c8
9c97baae57f80e3922726443584e4cc50b99623f
refs/heads/master
2020-05-06T20:35:28.212953
2019-04-05T20:38:19
2019-04-05T20:38:19
180,243,972
0
0
null
2019-04-08T22:43:59
2019-04-08T22:43:59
null
UTF-8
Python
false
false
5,031
py
# coding: utf-8 """ Onshape REST API The Onshape REST API consumed by all clients. # noqa: E501 OpenAPI spec version: 1.96 Contact: api-support@onshape.zendesk.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class BTListResponseBTFriendI...
[ "ethan.keller@gmail.com" ]
ethan.keller@gmail.com
e80f2bcf6fc43eef822956011db151363d24a1e0
e749e94163a0e20c551875583baef4e02e72de5e
/StackOverflow/APIM-4/38243194-buggy/feeding.py
f3aea1f0d550f61c41001e815987fd3d72de076e
[]
no_license
tritims/TensorFlow-Program-Bugs
3445200179f4b7f5cc4ac1c6f076468ec19e51bb
158ba0a23e0cb74e73dbab08571b05fc36848f2a
refs/heads/master
2022-07-08T16:33:38.511696
2020-05-20T14:20:47
2020-05-20T14:20:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,214
py
import tensorflow as tf import numpy as np import time assert tf.__version__ == "1.8.0" np.random.seed(20180130) tf.set_random_seed(20180130) batch_size = 32 max_steps = 1000 def inference(x): x_ = tf.layers.flatten(x) W = tf.Variable(tf.truncated_normal([33 * 33, 21 * 21])) tf.summary.histogram("W", W)...
[ "zyhzyhzyh@pku.edu.cn" ]
zyhzyhzyh@pku.edu.cn
1782d05bf163995315dd1e189c464c57d5604142
eb2668b93899637f04e4c93e01063d0c8175ccde
/Irises_classification/iris_Random_Forest_GridSearch.py
76b1663e6c8020409fbc240a39e89b3110bcb459
[]
no_license
D-Katt/AI-Machine-Learning
aad1fe1c8f3f901cb7829919d1b69a106f0ddfab
1868c92366dccabf8c86c559eee640645b51bb51
refs/heads/master
2021-12-19T21:59:04.403188
2021-12-07T13:07:46
2021-12-07T13:07:46
235,104,866
3
2
null
null
null
null
UTF-8
Python
false
false
2,227
py
# Пример классификации объектов 'iris dataset' с использованием модели Random Forest. # Инструмент GridSearchCV используется для настройки гиперпараметра - кол-ва деревье. from sklearn.datasets import load_iris from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import train_test_spli...
[ "noreply@github.com" ]
D-Katt.noreply@github.com
3fae8319caaf596170050255b0cbf87a2d51e369
2094596506d1a930fa736946fb8959b60273872c
/rango/migrations/0005_userprofile.py
fc6137ad733293947e459305fcb5c277c2506b19
[]
no_license
KaijiaDong/rango
b93af24a1c8cc8ec8797b84de63c706ba0f54eb7
1ed77612fe10f883dc879319768563cfcf8d287d
refs/heads/master
2021-01-11T16:08:32.852551
2017-02-13T22:26:46
2017-02-13T22:26:46
80,016,427
0
0
null
null
null
null
UTF-8
Python
false
false
923
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.10 on 2017-02-12 22:47 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
[ "Kevin@glaroam2-130-133.wireless.gla.ac.uk" ]
Kevin@glaroam2-130-133.wireless.gla.ac.uk
71afaf605a6f9dd78f457fb4df7c3d357a80ad76
7cbdd8c4268ad6168ce4cd838c3fd96a269f2e5d
/pong_no_walls_CPSC386.py
d916b240cc33d6f46695f613fc7980b1b02e707a
[]
no_license
jakobpatino/CPSC386_pong_no_walls
5b20a8c8e2b128c3255c7a554464b1bb57edb3cc
75d5c36eddfd90d9bbedd3d54867a2e6f61e1bc1
refs/heads/master
2022-02-21T16:11:06.134964
2019-09-17T19:46:44
2019-09-17T19:46:44
208,929,565
0
0
null
null
null
null
UTF-8
Python
false
false
15,210
py
import pygame import sys import random from pygame.locals import* pygame.init() mainClock = pygame.time.Clock() # set up window WINDOWWIDTH = 800 WINDOWHEIGHT = 550 windowSurface = pygame.display.set_mode((WINDOWWIDTH, WINDOWHEIGHT), 0, 32) pygame.display.set_caption('Pong No Walls') # set colors and text font WHIT...
[ "jakobpatino@csu.fullerton.edu" ]
jakobpatino@csu.fullerton.edu
907b8197e25d556bb14e30c9fdde457f9cc9d5a0
83abb7f62d8e071bd6c6ad59dad26ccb8912fafe
/final_project/machinetranslation/tests.py
9f7a62e4681335efb98143d48bcd62b8852b04b7
[ "Apache-2.0" ]
permissive
Miczu80/xzceb-flask_eng_fr
9e7a393716d4ebc97994baa14892e5917afda829
f7052e9c3c4b3c30e79afd6649cf335640dff3a1
refs/heads/master
2023-08-18T07:38:19.466379
2021-10-13T13:33:41
2021-10-13T13:33:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
import unittest from translator import english_to_french, french_to_english class TestE2F(unittest.TestCase): def test1(self): self.assertEqual(english_to_french('Hello'),'Bonjour') self.assertEqual(english_to_french('Foot'),'Pied') #self.assertEqual(english_to_french(''),'') #se...
[ "zupa.cebulowa@gmail.com" ]
zupa.cebulowa@gmail.com
840a00c6cac4c9bf3dbc754935420be3c726f029
7a88b6a2fde31076a7fb9d61cb0f5b1837478d3e
/core/views.py
b5aa0511106b7aa99bb84238cc636612fb622afa
[]
no_license
0xmostafaa/portfolio
ebd3a65d3fe40ee60448b0ec5a2c490166ee6d57
30f09829a5df3e32955253fdd7b36b794d8db499
refs/heads/main
2023-03-20T16:49:43.380548
2021-03-17T16:04:13
2021-03-17T16:04:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
124
py
from django.shortcuts import render # Create your views here. def home(request): return render(request, 'core/base.html')
[ "67633637+mostafa218@users.noreply.github.com" ]
67633637+mostafa218@users.noreply.github.com
1a4c466e2dff4100a4f385c1e970f92e9d7b95c4
72f4cd2c48b2007e6ceb4fde5781a9f641d4f624
/delete_oparation_list.py
1c8ec5b8b698e411e0ba3d904cfc6e1a946c77d3
[]
no_license
haidarontor/python
8710391d03d5b449da21ab0b7c1976644994a5cc
2fe55a372b8712adf367278b69f45f79f8151b88
refs/heads/master
2021-08-08T21:41:07.772959
2017-11-11T09:56:44
2017-11-11T09:56:44
110,284,529
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
list_1=['physics','Chemistry','biology',1990,2000,2001] name=['DAHAKA','COMILLA','RAJSHAHI'] name1=['barisal'] print list_1 del list_1[4] print "after deleting value at index 1:" print list_1 print name + name1 print name1*4
[ "haidarontor@gmail.com" ]
haidarontor@gmail.com
874c5926d6d5481c64f223a05795ff06ed9e3ea5
1059bb7b11f424ebeaaf2ee3e8cddf99133b1989
/ssbn_neuron_model/test_ssbn.py
e0a41825d2a21c0778f2e029dd66fa1edaefd772
[]
no_license
jyotikab/stn_gpe_ssbn
2357b11d70e972030df656b0ff0a13b46a3155e0
1324ce2538e8042f6770b2353fdff1db60df0f6a
refs/heads/master
2021-07-17T13:29:14.364571
2020-11-02T14:35:40
2020-11-02T14:35:40
223,620,440
6
0
null
null
null
null
UTF-8
Python
false
false
2,181
py
#To test the SSBN neuron model import numpy as np import nest import pylab as pl labelsize = 14. ticksize = 14. tsim = 500000. # Custom chosen colors col_lis = [np.array([63.,25.,255.])/255., np.array([204.,99.,20.])/255.,np.array([178.,120.,76.])/255., np.array([200.,0.,0.])/255.,np.array([153.,88.,61.])/255., np.a...
[ "jyotika.bahuguna@gmail.com" ]
jyotika.bahuguna@gmail.com
89a605e60342463909ff57250928f34f0fa44704
9f7a1399e3577f402034eed4a88cf03af2a85445
/student/views/student.py
9cf3f48275acb6fd0a389e88174a87692f95eea4
[]
no_license
mohamedellakany/profs-studs
192784263e6dcadfb32942fa6678fae9dec74e18
25259c7fdba4be90a37f24b325b24cc67c4daa8a
refs/heads/main
2023-06-17T21:57:03.992413
2021-07-21T03:38:27
2021-07-21T03:38:27
387,981,123
0
0
null
null
null
null
UTF-8
Python
false
false
784
py
from django.shortcuts import redirect, render from django.views.generic import TemplateView from django.db.models import Count from student.models import Quiz class SignUpView(TemplateView): template_name = 'registration/signup.html' def home(request): if request.user.is_authenticated: if request.user...
[ "mohamed.ellaqany@gmail.com" ]
mohamed.ellaqany@gmail.com
945492db9a3d84385065953cc931392b9f7472df
8a27b48ebabb381f6e495cc7a1c35634136e10ad
/RC4.py
5acbb6ff18f9b9f1387dbff8931f1b4752834051
[]
no_license
camilacarwalho/cryptography-data-securityClass
131db63b9cfd2d5e18c06b3662dbf33c9dc734eb
786555fc84979654a3bf4e99f42718e8a40f1820
refs/heads/master
2020-05-25T05:38:22.797552
2019-05-27T02:14:37
2019-05-27T02:14:37
187,652,489
0
0
null
null
null
null
UTF-8
Python
false
false
2,364
py
import numpy as np # biblioteca Python para realizar cálculos em Arrays def KSA(key): #função que cria a lista S com valores de 0 a 255 tam_key = len(key) S = list(range(256)) j = 0 for i in range(256): j = (j + S[i] + key[ i % tam_key]) % 256 S[i], S[j] = S[j], S[i] r...
[ "camilacarwalho3@gmail.com" ]
camilacarwalho3@gmail.com
baffe740816552364ec2133b592c44a87646c925
bd45db89d88c6e78f9c5a1c36b3b0a05da437adf
/testrun.py
629d30b6bed0ffc1cb7b925b6732ee808d0632f8
[]
no_license
williamqin123/mandelbrot
90d8991b7c8d0bce2c3524352da204dde6d10b69
4a46b09b1fbee9d9b61f80adf5c0053fd80430ce
refs/heads/master
2022-12-21T21:00:24.839964
2020-09-10T23:41:30
2020-09-10T23:41:30
294,546,525
0
0
null
null
null
null
UTF-8
Python
false
false
337
py
import timeit, random def factored(): x = random.random() y = random.random() return (pow(x, 1 / 3) + (x - 1)**3 + 1) / 2 def expanded(): x = random.random() y = random.random() return (pow(x, 1 / 3) + x**3 - 3 * x**2 + 3 * x) / 2 print(timeit.timeit(factored, number=1000000)) print(timeit.timeit(expanded, ...
[ "williamqin@Williams-MacBook-Pro.local" ]
williamqin@Williams-MacBook-Pro.local
576bf9ca98955f15a9691b7a2aa05f7ea2cdbe8a
b212decbc0c5850cc462bf0cd6695c33863de521
/mainApp/models.py
aa3e1d9fc6ddb6b231e03ece0c24500921216fb7
[]
no_license
YusakuNo1/RumorBoard-Django
17bd7337db0a83d71ec05fcc149c9ce4fdb7e7df
0cdbd2a4ef1b3defa511d9bc8e7d1288a4a112bb
refs/heads/master
2021-01-25T12:02:19.064347
2014-03-16T14:00:01
2014-03-16T14:00:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,477
py
from django.db import models from django.contrib.auth.models import User, AbstractBaseUser, PermissionsMixin, BaseUserManager from django_boto.s3.storage import S3Storage import config import rumorboard.settings as settings s3 = S3Storage(bucket_name='babylyricsus') class UserProfileManager(BaseUserManager): de...
[ "YusakuNo1@hotmail.com" ]
YusakuNo1@hotmail.com
5e997385319a3c9eb565450d2b53be851a281dbf
570d3e7d3fd90e7173bc82ae6daf59a144d8c5e0
/Exe10.py
bbffffcf637d3e4273b922df37f03bb4755e1e5a
[]
no_license
mateusascacibas/Python-Collections
97a61cae737ec8e37603e879c09ce41db4b85aa8
d88cc66f7d16bb9f32d3578f76ef14fca4c8bf05
refs/heads/main
2023-03-02T05:37:59.179868
2021-02-10T17:05:36
2021-02-10T17:05:36
337,793,409
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
vet = list(range(15)) cont = 0 while cont < 15: vet[cont] = float(input("Digite um valor: ")) cont = 1 + cont media = (sum(vet)) / 15 print(media)
[ "noreply@github.com" ]
mateusascacibas.noreply@github.com
f54902e671cb0a84b84727de899d0b0cac79c611
1916d9c93e9c656a2d7f085001c8de46a7fc6f7b
/.svn/pristine/47/47b27eb4c4965e0c8076ec4b1ebcc2f47c3a76ae.svn-base
5d62d53cc0741e620ca2cbcae2e15d78bca06498
[ "Apache-2.0" ]
permissive
starryhwj/MobilePhone
ad09de82fd5037c9a9c01bfa054805b4e2e41e84
211c1367e193c4e2b4833afae56367fdf9ac1a53
refs/heads/master
2022-11-30T03:21:22.288819
2020-01-10T10:23:01
2020-01-10T10:23:01
233,017,246
0
0
null
null
null
null
UTF-8
Python
false
false
1,211
# Generated by Django 2.1.14 on 2019-11-16 12:08 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('Web', '0027_auto_201911...
[ "241964143@qq.com" ]
241964143@qq.com
6408af203bb56ea22931d42dab44069ede4d8c10
e88410fa2ab8415598eda8779895f5568bd0ea84
/function2.py
d662cae12e1a3f4e855f569d5a8181f3865a28c0
[]
no_license
songjingmin/No2.test
2369e6718a33d422faf7ff75782869652e049bda
5b957aeaa765ed16b116f0a3c7e9521def12ce09
refs/heads/master
2020-03-18T15:56:49.965938
2018-06-04T17:28:57
2018-06-04T17:28:57
134,938,874
0
1
null
null
null
null
UTF-8
Python
false
false
424
py
def printMax(a,b): if a > b : print("a,'is maximum'") else: print("b,'is maximum'") printMax(3,4) x = 5 y = 7 printMax(x,y) def func(x): print ("'x is', x") x = 2 print ("'Changed local x to', x") x = 50 func(x) print ("'x is still', x") #使用global语句 def func(): global x print ("'x is',...
[ "475949283@qq.com" ]
475949283@qq.com
bbcae70c304dfb85edd4bb595009b81eca55269c
1580b76258d67c3343f218e4c1c2bcc8dfa1954f
/application/register_form.py
339b96e0e1837fcd76e3255283ace176ab419564
[]
no_license
MeresaG/Learning-Management-System
6d41dfe8a489af7ad0e6c10366a22927af982622
d228afac3b4082a77366b20bfd77937a7c30d409
refs/heads/master
2021-05-23T14:55:46.223365
2020-04-05T22:00:38
2020-04-05T22:00:38
253,348,604
0
0
null
null
null
null
UTF-8
Python
false
false
1,026
py
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, HiddenField, SubmitField from wtforms.validators import ValidationError, DataRequired, Email, EqualTo from application.user_model import User class RegistrationForm(FlaskForm): username = StringField('Username', validators=[DataRequire...
[ "mera@wenam.fritz.box" ]
mera@wenam.fritz.box
805cf0dffaf8c4f48b31a1c03c15ac893f37b03a
97f026d0508b9f3e9cf82e4e4f5bb4c94222517e
/saleor/graphql/channel/tests/test_channel_availability.py
dd7d3ec4c686ceb51e28dd6de468d26bd85dea36
[ "CC-BY-4.0", "BSD-3-Clause" ]
permissive
ibutiti/saleor
caa8e1ae61ce053dd166ebc11b43ec32e0115518
fffe9a54c01aa07131102474dcb1519e0b59da74
refs/heads/master
2022-01-06T14:37:14.912046
2021-05-18T10:24:01
2021-05-18T10:24:01
111,393,664
0
0
BSD-3-Clause
2019-07-05T20:24:06
2017-11-20T10:09:41
TypeScript
UTF-8
Python
false
false
3,459
py
import graphene from ....channel.error_codes import ChannelErrorCode from ...tests.utils import get_graphql_content CHANNEL_ACTIVATE_MUTATION = """ mutation ActivateChannel($id: ID!) { channelActivate(id: $id){ channel { id name isActive ...
[ "noreply@github.com" ]
ibutiti.noreply@github.com
78d1fa5c5462ddf22271eca10fa662e2300d17e3
8c9a69e4fcf4b4e3706ae74fa018f2c91c763328
/web scrapping projects/flipkart.py
7af13de29cd42bfadcb0634921194a60c3336a57
[]
no_license
scottwedge/python-programs
cf77c65b3e7f326d9a8f56d07873006355e45556
105369d554e449b3dbad0a720590175f78137f13
refs/heads/master
2022-04-26T03:57:34.770147
2020-04-22T17:55:02
2020-04-22T17:55:02
257,976,440
0
0
null
2020-04-22T17:45:57
2020-04-22T17:45:57
null
UTF-8
Python
false
false
798
py
import bs4 import requests from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer page_url="https://www.flipkart.com/google-pixel-3a-just-black-64-gb/product-reviews/itmfgk4jfgstaack?pid=MOBFFGFP7UHHJUZU&page=" analyzer=SentimentIntensityAnalyzer() pros=0 cons=0 for i in range(1,2): page= requests.get...
[ "davesarath@gmail.com" ]
davesarath@gmail.com
5dcdcc372d61a6b94c3766d3bfd238c0d5d1be3f
7df24fb0c87c85afc3e524cd7330f12cc25c1e49
/Python HackerRank Problem Solution/Math/TriangleQuest2.py
e70b1704e377590cc993c0c65130222ff59f5f5c
[]
no_license
Jay28497/Problem-solution-for-Python
94d3a87a2643b4fce8ce62fe44a8f3fed920ca55
71930c0f78e0f9b2b5bf4b00c54505167703f11a
refs/heads/main
2023-02-05T04:17:09.188785
2020-12-22T09:17:35
2020-12-22T09:17:35
308,985,811
1
0
null
null
null
null
UTF-8
Python
false
false
68
py
for i in range(1, int(input()) + 1): print((10 ** i // 9) ** 2)
[ "jaykanjariya28@gmail.com" ]
jaykanjariya28@gmail.com
b954dadb11467f6ea3ca8136aa3763c885548741
921def078f93fe46b880b44a3fb3fcf4890e5d92
/odin/libs/regions_of_interest/shapes_manager.py
2f0d186e848a581a23fca58fb31265f55f523a98
[ "MIT" ]
permissive
lucalianas/odin
6979aab06658c75bd0b98d8148da3e8695838bd2
bdd598801b8d3dec94e621d914c812e6c466221e
refs/heads/master
2021-06-03T13:11:03.513907
2020-09-17T09:13:50
2020-09-17T09:13:50
98,536,675
0
0
null
null
null
null
UTF-8
Python
false
false
7,712
py
try: import simplejson as json except ImportError: import json # Copyright (c) 2019, CRS4 # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without...
[ "luca.lianas@crs4.it" ]
luca.lianas@crs4.it
6610c928d2235ba827735a632582cc6693081bcc
2d3a0ae30adfccabc2eddefe217ab4fca5541f91
/training/loss/losses.py
f540c693e87b2116ec853c516f3e91e3e4857361
[]
no_license
zabulskyy/PropaGANda
11083b3e0d92fccf70d871bed6d9769cdea968b5
d8c6398640207f911ef41e7a9591af6d21f2ef88
refs/heads/master
2020-04-04T12:18:34.178513
2019-05-20T10:45:28
2019-05-20T10:45:28
155,921,937
1
0
null
2019-04-28T06:23:48
2018-11-02T21:10:57
Python
UTF-8
Python
false
false
253
py
import torch.nn as nn def get_loss(loss_config): loss_name = loss_config["name"] if loss_name == "cross_entropy": loss = nn.CrossEntropyLoss() else: raise ValueError("Loss [%s] not recognized." % loss_name) return loss
[ "v.borsuk2000@gmail.com" ]
v.borsuk2000@gmail.com
23d3d9f9b503b373c1bee5486725554b265d7ef1
c40337ca035167e610d6599af236b2c6b1ba1fbb
/app/src/domain/color/repository.py
6bc9c91748056b0135bc5097a824e97022f29f25
[]
no_license
oksanaperekipska/staff-planning
a7f45af7dacadbdc59ee84b6d6e6b649bb23cbdf
898d866ce93b7023452c05c1a9e0abb18b764bb0
refs/heads/master
2023-03-23T09:30:37.772993
2021-03-24T21:38:55
2021-03-24T21:38:55
351,229,672
0
0
null
null
null
null
UTF-8
Python
false
false
835
py
from typing import Optional from config.database import db from config.logs import get_module_logger from domain.color.model import Color log = get_module_logger(__name__) class ColorRepository: @staticmethod def find_one_by_id(id: int) -> Optional[Color]: log.debug("Looking for color with id=%s", ...
[ "o.perekipska@idev-hub.com" ]
o.perekipska@idev-hub.com
a6a3f6888aa3295fa1701139c9bee2c015a0ec05
7ce58197aa5d86e78af9c5fccfec68754d18141e
/Practical1/program3.py
73c51d6b81025fae1736f3aa17915070e78a0599
[]
no_license
k08puntambekar/IMCC_Python
5187b0c0adeebd0d5caca7fbba21f30e9b10ed8b
815f0b8fd182826e6acb33710416fcbadb4ce5d4
refs/heads/master
2023-04-06T18:41:41.688360
2021-04-07T09:45:58
2021-04-07T09:45:58
355,428,674
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
def remove_duplicate(duplicate): new_list = [] for num in duplicate: if num not in new_list: new_list.append(num) return new_list MyList = [10, 10, 30, 30, 20, 60, 70, 70, 40, 55, 45, 45] print(remove_duplicate(MyList))
[ "k08puntambekar@gmail.com" ]
k08puntambekar@gmail.com
b3dc3a61e408b6e946b355b7049076e61aa384e3
7f7bf9a5827d1441f18f568fc75ed5bf0159ca6c
/12_Yandex_Final_Tasks/A/A.py
1d1a21e461e557099825af74a0350107317450a7
[]
no_license
KorsakovPV/yandex_contest
08bcff4eaf38d46a8348ac3abbb5f496857fe8e4
f67917ef710f5b138142b11ec4e6e4678b23e408
refs/heads/master
2023-01-06T13:04:07.955570
2020-10-24T20:22:41
2020-10-24T20:22:41
290,097,693
0
0
null
null
null
null
UTF-8
Python
false
false
5,408
py
""" A. Калькулятор Задание связано с обратной польской нотацией. Она используется для парсинга арифметических выражений. По сравнению с другим приемом, применяемым для данной задачи — использованием дерева операций, она является более компактной, так как в ней не используются скобки. Еще её иногда называют обратной по...
[ "pavelkpv@gmail.com" ]
pavelkpv@gmail.com
cfb882d319a71f29c43aa1e99601b8492dacfa4a
087448bda3808703ecd21c0a4dfa00ea144b4cb3
/finder.py
6577086b2e40deade1e524a6f8b6ea7c8703527d
[ "0BSD" ]
permissive
jcooper-korg/talon_user
bc61e546f8606a98731d6cdd87dde563b8501cbc
ef086f9890448f7d633a4f02b36a18de853581a8
refs/heads/master
2020-03-19T03:54:37.562042
2018-10-29T17:57:35
2018-10-29T17:57:35
135,774,042
1
0
null
null
null
null
UTF-8
Python
false
false
394
py
# Talon voice commands for interacting with the Finder # John S. Cooper jcooper@korgrd.com from talon.voice import Key, Context ctx = Context('Finder', bundle='com.apple.finder') ctx.keymap({ 'duplicate': Key('cmd-d'), 'collapse': Key('cmd-left'), 'expand': Key('cmd-right'), 'open': Key('cmd-down'), 'trash i...
[ "jcooper@korgrd.com" ]
jcooper@korgrd.com
6385cfcb8dcddb74d43b164af28a8e95dc918c8a
d5d0851e14e9c6d09774d6bf522ab3f05f1f1133
/keyboardAgents.py
c3cf14bdf5265105fde1e254b2fac8031b097e01
[]
no_license
ttaallll/PacmanAI
81a4cdbcc8fbe6baac574208944335cf11cbcc0f
3f6bc5019c492c4553b40807281edf866cbe820c
refs/heads/master
2021-01-17T14:32:23.608891
2015-04-12T12:35:20
2015-04-12T12:35:20
32,480,570
1
0
null
null
null
null
UTF-8
Python
false
false
2,680
py
# keyboardAgents.py # ----------------- # Licensing Information: Please do not distribute or publish solutions to this # project. You are free to use and extend these projects for educational # purposes. The Pacman AI projects were developed at UC Berkeley, primarily by # John DeNero (denero@cs.berkeley.edu) and Dan Kl...
[ "tal.pais@cmycasa.com" ]
tal.pais@cmycasa.com
5409baa66c3f61c28ab42b5fecacd06084bc0fb5
6612dd1c2836de492c0ca8a0f0f602683b2dbb89
/app.py
530378d495d6eaaa3637ee94e78cc2afc82d40ab
[]
no_license
anupam1525/movies-rest-api
8764da85c705805e9a14a113f5570f4ef5d115ed
6b3404bdeadba5904a8bd5868248576f8eda7aec
refs/heads/master
2020-12-31T10:52:07.547766
2020-02-07T19:51:53
2020-02-07T19:51:53
239,009,769
0
0
null
null
null
null
UTF-8
Python
false
false
3,095
py
#Import necessary packages from flask import Flask from flask_restful import Resource, reqparse, Api #Instantiate a flask object app = Flask(__name__) #Instantiate Api object api = Api(app) #Setting the location for the sqlite database app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///base.db' #Adding the configurat...
[ "anupam1525@gmail.com" ]
anupam1525@gmail.com
69d0ac1ed32f14223ede581eaa3b883621e15804
86686a684b8bfcdf8566bcef9a24e96cc8b647ef
/falcon/Queueing.py
d2df7bd979503114c774b7c36da6158b22862ecd
[]
no_license
yutapok/webapi-falcon
56ec5ad35032e80bc9dcffd7827ae628f84e7b5b
18680d17a2907649cfb0420ffab52ca94caf26f0
refs/heads/master
2020-03-18T17:08:08.828433
2018-06-02T16:44:09
2018-06-02T16:44:09
135,008,355
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
import redis def set_redis_cli(host='localhost', port=6379): return redis.Redis(host, port) def enqueue(self, key, value): #key_enq = key if key else self.key pass def dequeue(redis_cli): if not isinstance(redis_cli, redis.Redis): raise return redis_cli.lpop
[ "root@localhost.localdomain" ]
root@localhost.localdomain
0841d5b8dac5b5a3f0775607832af7009dd05f68
b8586515ca8d4106dfe07fc9cc16342c90a44cc1
/055-napa-county/final-results/parse_napa.py
0c51a67c3df1123bb2ca1ff4f12511bd042ab46e
[ "MIT" ]
permissive
mjtonetti/california-2016-election-precinct-maps
775929b88a9d09877f91b622f39e70cc6750c7fe
39e9a6e797aca1b5b5f5129294807dfadb5a795d
refs/heads/master
2020-05-31T21:15:54.434542
2017-01-10T00:51:26
2017-01-10T00:51:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,719
py
import sys import os import re import csv, time # import pandas as pd import numpy as np from subprocess import call fips = '055' # file and header outfile = open(sys.argv[1][:-4]+'.csv','w') outfile.write('pct16,candidate,total\n') # loop through docs for prop in range(53,68): call(['pdftotext','-layout',str(...
[ "gaufre@gmail.com" ]
gaufre@gmail.com
cd4bd2b824b89824cd76acfc8ca6380ffffce24d
96597359ecac8f99805fcb923663d3bd4bdf5582
/coaevnmt/modules/inference.py
2f69c8f8670aa2ec772936a5ab9c10aa010df562
[]
no_license
Rgerritse/AEVNMT-Co-training
a5a3c981ac770786d137e9d21dc36de20573be79
87dc88d227f3e68dc974abf28cd4cc90ae9603ef
refs/heads/master
2020-04-28T22:02:12.784008
2019-11-18T13:51:02
2019-11-18T13:51:02
175,603,538
0
0
null
2019-05-04T10:17:01
2019-03-14T10:53:31
Python
UTF-8
Python
false
false
2,273
py
import torch import torch.nn as nn import torch.nn.functional as F from .utils import rnn_creation_fn from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence class InferenceModel(nn.Module): def __init__(self, config): super(InferenceModel, self).__init__() rnn_fn = rnn_creation_f...
[ "rgerritse95@gmail.com" ]
rgerritse95@gmail.com
aba74070a91d99c3c734d1af057d0cbbd5ec02b9
6923f05fbb133dbb5b631062a501af66d911d25b
/pageSpeedTest/testWebsite.py
8e01c23c31b17fd8712cd49a9fdcd0dae46cd50f
[ "Apache-2.0" ]
permissive
appleseed-web/pyStagingTests
05797735451489500b8294f50a4e5b9d0cc2175c
950522dbff54ff15bea61227cae15dcade6f25d1
refs/heads/master
2021-01-23T05:57:12.751414
2017-03-27T14:40:16
2017-03-27T14:40:16
86,327,487
0
0
null
null
null
null
UTF-8
Python
false
false
727
py
import sys import json import urllib.parse import requests valid = True url=sys.argv[1] apiKey="AIzaSyA-ZkVp0wt8eBgLFTU22uKxfgmFCHsfx5A" vurl='https://www.googleapis.com/pagespeedonline/v2/runPagespeed?url='+ urllib.parse.quote_plus(url) +'&filter_third_party_resources=true&locale=it_IT&screenshot=false&key=' + apiKey...
[ "d.bizzi@appleseed-mail.it" ]
d.bizzi@appleseed-mail.it
5181041ef92804133ec031421b7012d0546037f2
02424d7618cefccafcefc166946b868f6c9b16f3
/create_data.py
c964bb009befa9a57bf266b0799aef383ac831b3
[]
no_license
Andryyyha/SSU-BigData-ETL
70cb38982a5fced79ed8b4cd4810e5490701623f
abc873567f849dcec097d490dce7988b6929508d
refs/heads/master
2021-03-18T16:33:26.085105
2020-04-14T11:19:26
2020-04-14T11:19:26
247,081,653
1
0
null
2020-04-13T10:55:57
2020-03-13T13:47:51
Scala
UTF-8
Python
false
false
1,916
py
import argparse import csv import os from oauth2client import client from google.cloud import pubsub_v1 def parse(): parser = argparse.ArgumentParser() parser.add_argument('--project_id', help='project name', dest='project_id', default='ssu-bigdata-etl') parser.add_argument('--path_to_data', help='path to...
[ "adrianvalir@gmail.com" ]
adrianvalir@gmail.com
d616ad3674ce8ea3c008c0b0b5ecf98f4046c2b6
f1ba365d7de711cfe766f43931b4a049e90f08b7
/hw14.py
3ad0d2ff3cda76b9790055b601fc629fbbf5dd40
[]
no_license
LevBaranov/pylearn
97115136e27c31d91d7d0cd2a9b5b28c6cf67df1
f35dc5995e8b10590892d8309c7f2f4ae824487b
refs/heads/master
2022-05-29T12:17:44.488384
2020-05-02T12:34:09
2020-05-02T12:34:09
256,698,725
0
0
null
null
null
null
UTF-8
Python
false
false
1,567
py
class Integer(int): 'Измененный int, чтобы 2+2 =5' def __add__(self, arg): return super().__add__(arg) + 1 class List(list): 'Измененный list, что больше 10 элементов нельзя положить' def __init__(self, arg): if len(arg) <= 10: return super().__init__(arg) d...
[ "lev.l.baranov@gmail.com" ]
lev.l.baranov@gmail.com
e2302c898e5a72d5eebbc82ec1dcc0b067e59dca
f3950ce26f75c9c352f781d59b9ab4d97deb14ac
/SCIE2100_Practical5/sequence.py
c6ca6092020915eb5a7e0c0c03a1e17043c927b4
[]
no_license
danielzhangau/Bioinformatics
74646673f2da93165121d69c7a15e8cfe302bb76
0bad61936856c2aa6e6b9416a971e22496ed0c1a
refs/heads/main
2023-06-04T14:41:48.740998
2021-06-07T08:22:56
2021-06-07T08:22:56
349,257,930
0
0
null
null
null
null
UTF-8
Python
false
false
55,107
py
""" Module *** sequence *** This module depends on the following modules sym -- defines an alphabet prob -- defines structures to hold probabilities (prob also depends on sym) This module incorporates classes for Sequence -- names and defines a sequence of symbols; computes various transformations and pairwise alig...
[ "740807262@qq.com" ]
740807262@qq.com
7c4ab82bd2bfc79be5fa29cf52330c7658613239
ef077253f652a7b2863a8f57a55b27ef9b630510
/optimize2points.py
520df8395d0062ce4f1a3eb091725c246eeb2a70
[]
no_license
PatrickC05/cmimc-2021
2386ef84fa20bee006966fe7f80f586b97a1a262
e8cc7c5e22f1885e123390f9f90a7a0d885ff167
refs/heads/main
2023-03-04T02:30:19.835142
2021-02-07T22:23:08
2021-02-07T22:23:08
334,438,443
0
0
null
null
null
null
UTF-8
Python
false
false
2,278
py
from ast import literal_eval import numpy as np INCR = 1 # edit to the name of the input file print(INCR) f = open('circlecovers4.txt', 'r') n = int(f.readline()) points = [f.readline() for _ in range(n)] m = int(f.readline()) radii = [int(f.readline()) for _ in range(m)] centers = [] # replace from here to line 18 w...
[ "53089989+PatrickC05@users.noreply.github.com" ]
53089989+PatrickC05@users.noreply.github.com
09bfcb8ce09e40bfd8fbf0812963f0eb4959c722
35f9ba79f017ad056235a7a33d6220c6ab5c88b5
/pylytics/conf/project_template/dimension/store/transform.py
bee025b370bf694c62b5f05c3c68df55146b3754
[ "Apache-2.0" ]
permissive
onefinestay/pylytics
1672f79bebe66919548c9f2c3eb447ff7a24107e
b6e77e5d9931244efa6120409a4b97cc73efa4c9
refs/heads/master
2021-06-08T21:25:06.120510
2016-07-14T16:13:50
2016-07-14T16:13:50
9,165,356
5
4
NOASSERTION
2021-03-19T21:47:17
2013-04-02T08:04:43
Python
UTF-8
Python
false
false
163
py
# Define your expansions here. def convert_str_to_int(data): """ An example expansion. """ data['employees'] = int(data['employees']) return data
[ "townsend51@gmail.com" ]
townsend51@gmail.com