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
aa4b45c03c37c440887f601fdd49a108f1479990
83c2cfd249e2e3c6fce223c9279e7d99e1596eda
/tf_gan.py
1631a07f29bd815bd6c822c169bd0e59f810ae1c
[ "Apache-2.0" ]
permissive
hackthecrisis21/nist_differential_privacy_synthetic_data_challenge
ec5eff7102d65b3fc3406039eed80f587ef40062
09e93201e36e20f25bebd82cd68cd4c837789297
refs/heads/master
2022-02-16T19:31:44.739948
2019-05-30T00:55:32
2019-05-30T01:19:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,866
py
""" Author: Moustafa Alzantot (malzantot@ucla.edu) All rights reserved. """ import sys import pdb import math import numpy as np import data_utils import pandas as pd import json import matplotlib.pyplot as plt from sklearn.preprocessing import OneHotEncoder import tensorflow as tf from tensorflow.core.framewor...
[ "malzantot@ucla.edu" ]
malzantot@ucla.edu
c269d574e4600120c31cf809271f26f9fb1139e2
291cdc8de042c272fea74a10169cc3e7b3518dac
/console.py
0893b1d8f93dfec70c89a432ae6aa18b8f4d27dd
[]
no_license
sagarmsraozil/Python-Console
64007cba60b5a74b3a8f18fb9feb592e652e50e5
82db8833d558b1ed09456fe4f885dc180da5df95
refs/heads/master
2023-01-08T23:11:36.378184
2020-11-06T06:49:32
2020-11-06T06:49:32
310,515,240
0
0
null
null
null
null
UTF-8
Python
false
false
125
py
import random a={ 'sdas':[], 'sdasd':[], 'sdads':[] } keyA=[] for x in a.keys(): keyA.append(x) print(keyA)
[ "sagarcrcoc@gmail.com" ]
sagarcrcoc@gmail.com
91ad79fe802f8441997c7574f787866330f8fdaf
7a0334693cd31fe4fdef06324ede0d72c6530c40
/event_crud/migrations/0001_initial.py
414c9f942def602edac8017b35088131a4404944
[]
no_license
lilitotaryan/eventnet-back-end
7949668a4108b36a6e1a2f6439d6e966991d64ba
5828b1520b8feeb363fdac0b85b08e001572991e
refs/heads/main
2023-02-18T02:24:45.475978
2021-01-22T18:15:42
2021-01-22T18:15:42
332,027,025
0
0
null
null
null
null
UTF-8
Python
false
false
1,402
py
# Generated by Django 2.2.5 on 2020-02-26 19:01 import authentication.utils from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH...
[ "lilit_otaryan@edu.aua.am" ]
lilit_otaryan@edu.aua.am
adbedc8206330810c70cdc570b3140a5f632e51e
f7e5a206c5ca75043b662c8f9905a070b7e37060
/cart/views.py
54f1f59dc1f21f1a4b7c6b04e842911c7f358e15
[]
no_license
sweetmentor/Str4-eCommerce-App
4d22945f7b5dc0a40b577b8ed45caf22c9e644d4
e50edff9183a207c8e7daff16136059fcb5f9002
refs/heads/master
2020-03-22T00:26:36.973580
2019-01-29T01:13:56
2019-01-29T01:13:56
139,244,613
0
1
null
null
null
null
UTF-8
Python
false
false
1,193
py
from django.shortcuts import render, redirect, get_object_or_404, HttpResponse from product.models import Product from .utils import get_cart_items_and_total # Create your views here. def view_cart(request): cart = request.session.get('cart', {}) context = get_cart_items_and_total(cart) return render(requ...
[ "stephenafolabi@gmail.com" ]
stephenafolabi@gmail.com
af5f397e8cb4517e8407a5909c3e2701dcbc7068
7dfe9d88e81113c18f3feb11d1dd308483f5949d
/run_faces.py
5b96539f519fbb4a600dbb2a114840deccb7d2f6
[]
no_license
mahavir0/FACE-RECOGNITION-TENSORFLOW-ATTENDENCE
63b092c86a4f6bd8a15112ac78984663db0d8fc8
730880b982368e799d5e06329b776ee824c06c2b
refs/heads/master
2020-07-26T08:09:05.374261
2019-09-15T12:08:22
2019-09-15T12:08:22
208,585,446
2
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
import find_faces import cv2 import sys import sqlite3 import csv import json import pandas as pd from sklearn import svm from sklearn.externals import joblib from PIL import Image,ImageDraw,ImageFont import time from identify_face_video import face_video from identify_face_image import face_image from sql import * ...
[ "170010116034@adit.ac.in" ]
170010116034@adit.ac.in
b5694c0362e026890305fda0e8d8abc8c2aa85ab
f96318ff6cd12c23643a31c5385480535cc6e9cb
/307. Range Sum Query - Mutable/solution.py
aaf62ee58362e2dd5dbd82ba6305ec8b495c7845
[]
no_license
yz89122/leetcode
157156c463078fc2aeb98832a6c00f042cf9c7c4
95b03a7f5108dc839452361e1428649c382b8908
refs/heads/master
2022-03-28T12:46:28.565963
2019-12-03T14:24:11
2019-12-03T14:24:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,259
py
class NumArray(object): def __init__(self, nums): """ :type nums: List[int] """ self.n = len(nums) self.tree = [0]*self.n + nums for i in range(self.n-1, 0, -1): self.tree[i] = self.tree[i*2] + self.tree[i*2+1] def update(self, i, val): ...
[ "yanzhen610@gmail.com" ]
yanzhen610@gmail.com
ac60830bcb8ab8d05d3b4a995a1b9e7f2e93a2fa
2f2e9cd97d65751757ae0a92e8bb882f3cbc5b5b
/665.非递减数列.py
69ccfdcba89fb3679104b70233a147b4b5ee3c0d
[]
no_license
mqinbin/python_leetcode
77f0a75eb29f8d2f9a789958e0120a7df4d0d0d3
73e0c81867f38fdf4051d8f58d0d3dc245be081e
refs/heads/main
2023-03-10T18:27:36.421262
2021-02-25T07:24:10
2021-02-25T07:24:10
314,410,703
0
0
null
null
null
null
UTF-8
Python
false
false
594
py
# # @lc app=leetcode.cn id=665 lang=python3 # # [665] 非递减数列 # # @lc code=start class Solution: def checkPossibility(self, nums: List[int]) -> bool: c = 0 for i in range(len(nums) -1): if nums[i] > nums[i+1]: c +=1 if i > 0 : ...
[ "mqinbin@gmail.com" ]
mqinbin@gmail.com
ad240cbc0ee17f741fac4ba96dd63d341d91ab8b
f262085a295c6a12b5f4f86b1a36d92e2e254b3d
/simulator/lvgl/LVGL.Simulator/lv_examples/src/lv_ex_widgets/lv_ex_dropdown/lv_ex_dropdown_2.py
a85d54598d725021dbf1f2d7204ea754294e064d
[ "MIT" ]
permissive
fxsheep/8910DM_LVGL
a7419a0ec4ff8b0612200b0073759c7beb7fad5e
652a91d7ebda374be58fbb927714263234a78698
refs/heads/master
2023-07-09T16:37:09.962057
2021-08-11T07:18:47
2021-08-11T07:18:47
391,400,407
2
0
null
2021-07-31T15:55:06
2021-07-31T15:55:06
null
UTF-8
Python
false
false
642
py
# Create a drop down list ddlist = lv.dropdown(lv.scr_act()) ddlist.set_options("\n".join([ "Apple", "Banana", "Orange", "Melon", "Grape", "Raspberry"])) ddlist.set_dir(lv.dropdown.DIR.LEFT...
[ "864876693@qq.com" ]
864876693@qq.com
6126ef9b64f70bf1488569093bd468d09d33d3ec
7f338db1b0355937ceeff4084d10a99e2febf8d9
/Rotating bars/Rotating bars.py
e34427582d5d407736cb9cf9f2846ec541318810
[]
no_license
Artengar/Drawbot
d98c4cb501f940dd039de47a23a92a2ad148484d
fc65a63e197ad7597cb1bd32d0ae703ee71557be
refs/heads/master
2021-06-10T10:41:22.901281
2020-04-09T13:58:02
2020-04-09T13:58:02
108,984,281
1
1
null
null
null
null
UTF-8
Python
false
false
2,141
py
#---- #Maarten Renckens's Snares animation #Python script for Drawbot #For questions, please contact maarten.renckens@artengar.com #---- import math #from fractions import Fraction #Good explanation about sine, cosine and tangent: https://www.youtube.com/watch?v=VBygj7p0HKc #Input that can be changed: pageWidth=1000 p...
[ "contact@artengar.com" ]
contact@artengar.com
27d214b5b033cb21e812b5568854396b459d8ab9
bdd40ea113fdf2f04ef7d61a096a575322928d1d
/Rupesh/DjangoTutorial/TOdo/TOdo/Task/migrations/0002_auto_20200219_0600.py
56b743b8b63b2342fd7f88303c0256f187fcae5f
[]
no_license
rupesh7399/rupesh
3eebf924d33790c29636ad59433e10444b74bc2f
9b746acf37ab357c147cdada1de5458c5fc64f53
refs/heads/master
2020-12-22T05:01:29.176696
2020-03-03T10:32:36
2020-03-03T10:32:36
202,111,967
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
# Generated by Django 2.2 on 2020-02-19 06:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Task', '0001_initial'), ] operations = [ migrations.AlterField( model_name='task', name='lastDate', field=...
[ "rupesh7399@gmail.com" ]
rupesh7399@gmail.com
93218602b7a30997b8ff0defd0e336e8bd93427c
07acf11fadb7fbbf342e1f5005c9197d36b79f56
/aliyun-python-sdk-vod/aliyunsdkvod/request/v20170321/DescribeUserAvgTimeByDayRequest.py
9a798b69525f04e4ccee97970a5bb855ed2ec093
[ "Apache-2.0" ]
permissive
ccflying/aliyun-openapi-python-sdk
9ce8d43a39b8fa10a78fdf4f4831befbfc48ad4e
2ddb938c366c06526deeec0ec46f8266235e52f6
refs/heads/master
2020-04-19T09:18:02.597601
2019-01-29T05:02:01
2019-01-29T05:02:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,822
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "haowei.yao@alibaba-inc.com" ]
haowei.yao@alibaba-inc.com
fa4f6aaa05c0415156383cf731bbdd6dd0514bdc
56403ba98efb1e961e318b2a24e9fe7ee8ca77db
/Lehigh_race_Ver_3_1/scripts/Lehigh_Ver_3.py
a90a3f89b146381c1f374d8a6ed1705aa3402ea2
[]
no_license
Xiyuan-Zhu/Lehigh_race_Ver_3_0_0
013e2d47c6d7c59897f02964c5d840f6b88f5084
626d7344ff7d5fb7d8b99de0682e698fc0d94d0d
refs/heads/master
2022-11-20T08:16:23.867347
2020-07-10T01:47:46
2020-07-10T01:47:46
278,510,614
0
0
null
null
null
null
UTF-8
Python
false
false
3,199
py
#!/usr/bin/env python from __future__ import print_function import sys import math import numpy as np #ROS Imports import rospy from sensor_msgs.msg import Image, LaserScan from ackermann_msgs.msg import AckermannDriveStamped, AckermannDrive class reactive_follow_gap: def __init__(self): #Topics & Subscri...
[ "noreply@github.com" ]
Xiyuan-Zhu.noreply@github.com
7d5ff1926da52012ced9e9ebf96936e820b7484e
a41d72e8497fbf89e7f663814dde87f4d4138256
/lab5/database.py
59c97a76ded865bee8ee58ad4fc0ae8df9ec836b
[]
no_license
pteszka/concurrent-programming
95b7421654c9dd409bfcb5d41a6bfecdf01568df
e53f05d8872748c0718f48eb573256543ac6309f
refs/heads/main
2023-04-24T15:07:18.546816
2021-05-05T14:35:13
2021-05-05T14:35:13
347,689,391
0
0
null
null
null
null
UTF-8
Python
false
false
424
py
db = { 1: 'Nowak', 2: 'Kowalski', 3: 'Wiśniewski', 4: 'Dąbrowski', 5: 'Lewandowski', 6: 'Wójcik', 7: 'Kamiński', 8: 'Kowalczyk', 9: 'Zieliński', 10: 'Szymański', 11: 'Bąk', 12: 'Chmielewski', 13: 'Włodarczyk', 14: 'Borkowski', 15: 'Czarnecki', 16: '...
[ "pteszka98@gmail.com" ]
pteszka98@gmail.com
42d2ccd0a08c1520cae02783637eee771aedda4f
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_196/ch31_2020_03_14_15_42_06_957078.py
7229a92343174b1d0b472e5e5af883e664d7d8d9
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
def eh_primo(a): if a == 2: return True x=1 elif (a%2 == 0) or (a%x == 0): x+=2 return False elif (a==0) or (a==1): return False else: return True
[ "you@example.com" ]
you@example.com
2edda813a68b94ffdf1c3d6201c1cff73d0ddad3
aaad70e69d37f92c160c07e4ca03de80becf2c51
/filesystem/usr/lib/python3.6/asyncio/base_events.py
32b4f0adcd1093409fe44dc22121f8affc046568
[]
no_license
OSWatcher/ubuntu-server
9b4dcad9ced1bff52ec9cdb4f96d4bdba0ad3bb9
17cb333124c8d48cf47bb9cec1b4e1305626b17a
refs/heads/master
2023-02-10T18:39:43.682708
2020-12-26T01:02:54
2020-12-26T01:02:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
{ "MIME": "text/plain", "inode_type": "REG", "magic_type": "Python script, ASCII text executable", "mode": "-rw-r--r--", "sha1": "23f1c44c157099ef5d66c87ba91eb7128afa4867" }
[ "mathieu.tarral@protonmail.com" ]
mathieu.tarral@protonmail.com
1b791df01ad4e5c52889dcf50e1aa2acbc51742e
88b860c998d45097b5604e1d8a45ad9ec2040a43
/v_charge/wsgi.py
1aa8c205b9fb1656c4cb25c03ecd6d468a630a8e
[ "MIT" ]
permissive
xujpxm/v_charge
ac13fa54f41f04e05aa0b97d9b1c7f2050c9fa8f
abb1237eeca066cec435680e38ab6878a8d4ac27
refs/heads/master
2021-03-27T20:46:22.147595
2018-01-29T02:53:14
2018-01-29T02:53:14
100,686,236
3
0
null
null
null
null
UTF-8
Python
false
false
394
py
""" WSGI config for v_charge project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SET...
[ "329771774@qq.com" ]
329771774@qq.com
ff41a3a285dac60d7350452a24276e372ba98879
2ebe6ccf7e731c90dcb9da8adbf22a9053f6addd
/sumithack/apps.py
5acf235a7e10b009fc73757aead4fcb2c3d829d2
[]
no_license
Anurodhyadav/sumit
dda251af2d4035e262c5cba3c919190d40c45cd5
954499d4960eda012d7dfac17b0f3f590eb5cb01
refs/heads/master
2022-11-07T05:46:53.938797
2020-06-20T03:58:47
2020-06-20T03:58:47
273,634,562
0
0
null
null
null
null
UTF-8
Python
false
false
93
py
from django.apps import AppConfig class SumithackConfig(AppConfig): name = 'sumithack'
[ "anurodhyadav072@gmail.com" ]
anurodhyadav072@gmail.com
484e4be2de9b3edd790d88d2fe8f05a5f0df47c3
bbdfc358fc8c7d9bc5f2837d750dc2ff82ca4e69
/training/00_split_folds.py
e1af961b4cf4074b3994bd26acc48c06062808bd
[]
no_license
MikeMpapa/CityNet
70c03b48eb9b0e8837a1074b00a5777a1ee69def
d1178f1b008ac2cb94ce9e0b0c4e87bc8c914707
refs/heads/master
2023-06-14T06:39:27.752096
2021-07-11T09:27:47
2021-07-11T09:27:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,067
py
import os from collections import Counter import random import yaml base = yaml.load(open('../CONFIG.yaml'))['base_dir'] spec_pkl_dir = base + 'extracted/specs/mel/' files = [xx for xx in os.listdir(spec_pkl_dir) if xx.endswith('.pkl')] file_sites = [xx.split('_')[0] for xx in files] print len(files) print len(set(f...
[ "mdfirman@gmail.com" ]
mdfirman@gmail.com
84722925665ed9d37e7a1d4c38bcecb7563b2890
0747279a95b16b477084221cc52b8a5d8d7d96cc
/src/main-real.py
35716516b58f59660f0aaf2fe0766a7931ccc59b
[]
no_license
SijingTu/ideological-embeddings
98840015874cd0f02b4624a30dca2df9271dc6f2
1d301cd63d7db733c09b5cf2ad4d0f25844f71a8
refs/heads/master
2023-07-29T05:03:01.630335
2021-09-08T14:47:38
2021-09-08T14:47:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,094
py
import barberatfmodel import baselines import evals import tfmodel import reader import pandas as pd import sys from timeit import default_timer as timer TWITTER, REDDIT = 'twitter', 'reddit' EXECUTE_FULL_LOGREG_FOR_TWITTER = False def main(dataset): print("Dataset:", dataset) assert dataset in {TWITTER, R...
[ "corrado.monti@isi.it" ]
corrado.monti@isi.it
00015c61a48894a48a04743807bb33ea6344e7a9
3778ad04248d977a1833dc5115ec6200b47bae8e
/post/ru_urls.py
10d6e30e275585255cad0457f1257efc33841474
[]
no_license
Salamonk653/assosiation
7b31fd4b599b573924b564083ac1e2ba9b8330bd
dc0684aa638bfefa2db23d54699e2636bce79b9b
refs/heads/master
2020-08-07T10:32:11.019476
2019-11-01T09:26:01
2019-11-01T09:26:01
213,412,884
0
0
null
null
null
null
UTF-8
Python
false
false
1,249
py
# -*- coding: utf-8 -*- # Create your models here. from django.conf.urls import url from .ru_views import * urlpatterns = [ url(r'^$', News.as_view(), name='ru_news_list'), url(r'^contact/form/$', contact_form, name='ru_contact_form'), url(r'^category/news/$', NewsList.as_view(), name='ru_category'), ...
[ "salamonk653@gmail.com" ]
salamonk653@gmail.com
b432a24aed84a1483e21a42106c5112670155900
32743313138f0ad02b93694b25e480c4fe9c10dc
/Prac_01/loops.py
5637622e1475d61af879a7a893072a0305af13d4
[]
no_license
yoon1812/CP1404_practicals
2b855fbc4dd755df4dd8805f8497df77a99a68e3
872a3b9a23a33f3eef7f3f164b5d40af77682203
refs/heads/master
2023-02-17T09:38:15.222947
2021-01-13T09:11:49
2021-01-13T09:11:49
321,995,326
0
0
null
2020-12-17T06:45:19
2020-12-16T13:44:43
Python
UTF-8
Python
false
false
406
py
for i in range(1, 21, 2): print(i, end=' ') print() for i in range(0, 110, 10): print(i, end=' ') print() for i in range(20, 0, -1): print(i, end=' ') print() number = int(input('Number of stars: ')) for i in range(1, number + 1): print("*", end='') number = input('Number of stars: ') for i in range(1...
[ "yoon1812" ]
yoon1812
9ee11bd0601d37a6f4bffe5cbdb8fa671bdafcf2
53e0e35f58dc169d5b4e293ff073f46948fbe278
/pytorch_projects/fine-grained-image-recognition/Bilinear_pooling/bilinear_attention_pooling.py
935f28870467d302135460d0ebde022283d642a3
[]
no_license
Hoodythree/DeepLearningCode
25097227d512e80b233352ce2cc58b023591b165
3e2d30198956c9f01c5fc8f9df4667eef43c51e9
refs/heads/master
2022-08-30T09:08:09.760487
2020-05-17T13:35:05
2020-05-17T13:35:05
262,494,365
0
0
null
null
null
null
UTF-8
Python
false
false
1,495
py
import torch import torch.nn as nn ### Bilinear Attention Pooling class BAP(nn.Module): def __init__(self, **kwargs): super(BAP, self).__init__() def forward(self,feature_maps,attention_maps): feature_shape = feature_maps.size() ## 12*768*26*26* attention_shape = attention_maps.size() ...
[ "luoqiuhongthree@gmail.com" ]
luoqiuhongthree@gmail.com
832cecc66221149f457cd8750d9d2a8e12f7279a
825b2f981ef0d10376b1c0ab868b785f7db866d5
/recognise_district/recog.py
4ff1c2c3419e84a74b6e639a8eea6cfd087bc36e
[ "Apache-2.0" ]
permissive
waterblas/ROIBase-lite
fb5c7c8e24c021640a8dc9a97ca57d194d31c439
935c201c40d82310f4af8a62faf03302cf5d1a5b
refs/heads/master
2022-10-11T04:35:36.845742
2020-01-16T03:43:03
2020-01-16T03:43:03
234,224,526
2
0
Apache-2.0
2022-09-23T22:35:01
2020-01-16T03:12:40
Python
UTF-8
Python
false
false
1,484
py
import os import logging from . import detect try: import pkg_resources get_module_res = lambda *res: pkg_resources.resource_stream(__name__, os.path.join(*res)) except ImportError: get_module_res = lambda *res: open(os.path.normpath(os.path.join( ...
[ "dylanliang@tencent.com" ]
dylanliang@tencent.com
e3b3126e6676609e20aa10a8b485b3a059b0fd77
8787b2fbb5017b61dcf6075a5261071b403847bf
/Programmers/N으로 표현.py
21d160641aee1be033211795680b2a0e5c76564b
[]
no_license
khw5123/Algorithm
a6fe0009e33289813959553c2366d77c93d7b4b9
323a829f17a10276ab6f1aec719c496a3e76b974
refs/heads/master
2023-01-02T00:12:21.848924
2020-10-23T06:37:41
2020-10-23T06:37:41
282,162,235
0
0
null
null
null
null
UTF-8
Python
false
false
2,202
py
def calc(s, N, number): result = 0 start = 0 tmp = '' for i in range(len(s)): if s[i] != str(N): start = i result = int(tmp) break else: tmp += s[i] tmp = '' operator = [] for i in range(start, len(s)): if ...
[ "5123khw@hknu.ac.kr" ]
5123khw@hknu.ac.kr
122a05dc3115f6ed66c2747d3dc1e78c44cd4955
52e0e1ef7675d8bac51899f23b2722e7e7f58992
/core/data/base_collector.py
972479bf987185887d7e79d61ee4b166286f1b46
[ "Apache-2.0" ]
permissive
knowmefly/DI-drive
2c8963a04d00aa8b3c3354630b6df9e3e6a6770e
ade3c9dadca29530f20ab49b526ba32818ea804b
refs/heads/main
2023-07-08T14:40:39.625522
2021-07-21T15:54:48
2021-07-21T15:54:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,420
py
import copy from abc import abstractmethod from typing import Any, Dict from easydict import EasyDict from ding.utils import EasyTimer class BaseCollector(object): config = dict() def __init__( self, cfg: Dict, env: Any = None, policy: Any = None, ) -> No...
[ "sissure@qq.com" ]
sissure@qq.com
96005790378d6d9083513a1e624cac02aaf72eec
f4cdb0ac8b17d3605da61adad468d609b6558fe5
/PAM30.py
44072aec3910838b3f52cc33df38d171a5305aab
[]
no_license
ackdav/PAMIE
786e6a0b963b00a71ca30444fa54e66b0e6eefac
81e74df135a67770bbb207afc97b1ad4c9f3e970
refs/heads/master
2022-11-22T04:51:06.962588
2019-01-20T10:48:54
2019-01-20T10:48:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
81,256
py
""" PAMIE Build 3.0a Based on cPAMIE and PAM.py by RLM Revised: March 03, 2009 Developers: Robert L. Marchetti Description: This python class file allow you to write scripts to Automate the Internet Explorer Browser Client. This software is provided 'as-is', without any express or implied warranty. In no event will ...
[ "ack.dav@gmail.com" ]
ack.dav@gmail.com
39cef36bc0d58167ed758de24878b2696119c184
3f6681942d3fdc4b5944349298e434f9ddb24358
/binary_neuron/rnn/baseline.py
f17896668c22fb3e5503672a5454603292b45eff
[]
no_license
danhorvath/BNN
b4460fdf70ca5817d136e31f53310ba117f667a8
87bdb8803de94d8fbcb9a5439612c3fcf8c184cd
refs/heads/master
2022-02-17T06:19:14.480886
2019-05-28T21:15:24
2019-05-28T21:15:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,876
py
# LSTM for international airline passengers problem with regression framing import numpy import matplotlib.pyplot as plt from pandas import read_csv import math import tensorflow as tf from sklearn.preprocessing import MinMaxScaler from sklearn.metrics import mean_squared_error # convert an array of values into a dat...
[ "dhorvath19@gmail.com" ]
dhorvath19@gmail.com
ff018bb0afaa9350c99b5870f055c3ee688bedf9
3ab86d92139335f212dcb880a4047a20cc79d924
/library/visual_studio_code_install_extension.py
2f96b4173087aa67173ea1d6605be76a5fcb122f
[ "MIT" ]
permissive
sosheskaz/ansible-role-visual-studio-code
61c6f4bfbf2102b14633cc0f825e9e169ccb92ae
e17ecd5bdf956857a00f181e9dd773bf0cc8a54e
refs/heads/master
2020-04-04T12:51:07.918613
2018-10-31T13:03:29
2018-10-31T13:03:29
155,939,661
0
0
MIT
2018-11-03T01:43:35
2018-11-03T01:43:34
null
UTF-8
Python
false
false
2,688
py
#!/usr/bin/python # Make coding more python3-ish from __future__ import absolute_import, division, print_function import os from ansible.module_utils.basic import AnsibleModule __metaclass__ = type def is_extension_installed(module, name): rc, out, err = module.run_command(['code', '--list-extensions', name])...
[ "noreply@github.com" ]
sosheskaz.noreply@github.com
6855bfc73dbfcaccd2958b3fcf2df31a7a79e0a6
a6308fa4d2a92a1ee15f7dc2c403010108f0daa3
/Practice-TCA/Practice-TCA-2/Task-6.py
ec5d5b059fd753c53775b18691f5ca008babedbe
[]
no_license
IIvanov29/com404
57540d326fb532aa6a3cea06ebf6b92df9650638
94974add4a5688ba726d80dbcabf5b8a965c583d
refs/heads/master
2020-08-01T20:24:35.746513
2019-11-28T17:04:22
2019-11-28T17:04:22
211,105,007
0
0
null
null
null
null
UTF-8
Python
false
false
932
py
#Functions def is_league_united(Hero_1,Hero_2): if Hero_1 == "superman" and Hero_2 == "wonder woman": return True else: return False def decide_plan(Hero_1,Hero_2): league_is_united = is_league_united(Hero_1,Hero_2) if league_is_united == True: print("Time to save the worl...
[ "4Ivani51@solent.ac.uk" ]
4Ivani51@solent.ac.uk
6a049dd3ef506c79f51ddce14afacd9ef7f1dce0
3c4b1eb96173414492decec1872360bf8b920f71
/Chapter 15/mpl_squares.py
c130d7338bb1184f8b7afdbad6b09b09e78b51f5
[]
no_license
robbiecares/Python_Crash_Course
a7b4d97f6be919ae197c2216a883eb316acf6272
a481938bbbb0fba737db2b4a6b0420c0b2766d8a
refs/heads/master
2023-04-13T20:23:48.196930
2021-04-23T11:51:11
2021-04-23T11:51:11
360,775,932
0
0
null
2021-04-23T09:03:46
2021-04-23T05:45:18
HTML
UTF-8
Python
false
false
668
py
import matplotlib.pyplot as plt plt.style.available #input_values = [1,2,3,4,5] #squares = [1,4,9,16,25] x_values = range(1,5001) y_values = [x**3 for x in x_values] plt.style.use("seaborn") fig, ax = plt.subplots() ax.scatter(x_values, y_values, c=y_values, cmap=plt.cm.Blues, s=10) #ax.plot(input_values, squares, ...
[ "robbiecares@gmail.com" ]
robbiecares@gmail.com
2ad7f8907bd282c066e9db3e2553e053f204e9a8
a70778e730f6d3e3be04ba449e6ed0a9ff7d7e6d
/classifier_5b_rough_fine_tune_from3z.py
4e132cf8513dd1cd901bd4a0c5a2f1a6c88b44fc
[]
no_license
previtus/two_classes_ml
0351e62544cc46f9c09847de641fd84aac94d38b
0f780e2e3736e6280dddd25540911d60c9d721d8
refs/heads/master
2021-05-10T10:05:38.526602
2018-08-06T19:59:26
2018-08-06T19:59:26
118,946,345
0
0
null
null
null
null
UTF-8
Python
false
false
7,192
py
img_size = None #(20,20) img_size = (150,150) epochs_first = 10 epochs_second = 40 batch_size = 16 validation_split = 0.3 RESCALE = 1. / 255 # put data from 0-255 into 0-1 # GET ALL DATA # define the classes in here directly from data_handling import LOAD_DATASET, LOAD_DATASET_VAL_LONGER_THR2, sample_random_subset_fr...
[ "previtus@gmail.com" ]
previtus@gmail.com
f040cc2c3bcc0b27174802337d61601ed34c13a6
38c1e589388752100c4afcbe0b445bfff033bab2
/friend/migrations/0003_auto_20200819_1444.py
0bf415da2081910e1e2d42a9465ac80b351f2e6a
[]
no_license
ruhullahil/Codingwithmitch-Chat
02c83f17fd51329fb3e4c0af74f1890ffd7ac012
dd854e6357e98684c3fe7c87da028de1f356030b
refs/heads/master
2023-01-03T00:38:38.225127
2020-10-29T21:09:37
2020-10-29T21:09:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
538
py
# Generated by Django 2.2.15 on 2020-08-19 21:44 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('friend', '0002_auto_20200819_1443'), ] operations = [ migrations.AlterFie...
[ "mitch@tabian.ca" ]
mitch@tabian.ca
ae677af6e8fa264d763b3a65dddbae88139e63a9
fbe8a9f98d9256d47e51589c6d8fad7da07bbe28
/VeterinarioSW/ControlDeVeterinaria/forms.py
f83a79aad7e5f8b9bf8a56665a3deaeb6cb6fbc1
[]
no_license
BryanBonillaFraire/VeterinariaGPS
40d77ecf745f6eef3db56391d95e35a5e144d2bc
93f245d6a3a5119a4b0902be4ae3cfc3dbfc11b5
refs/heads/master
2023-02-13T01:00:19.487220
2021-01-17T21:51:14
2021-01-17T21:51:14
304,478,821
0
0
null
null
null
null
UTF-8
Python
false
false
8,097
py
from django import forms from .models import Mascota, Propietario, PagoServicio, Cita, Producto, PagoProducto, Proveedor, Comprador, Factura, Cirugias, Vacunas, Otros, Enfermedades, Account class MascotaForm(forms.ModelForm): class Meta: model = Mascota fields = ['nombreMascota', 'especie', 'raza'...
[ "EvilBBF@gmail.com" ]
EvilBBF@gmail.com
7c3de6ac23a5796d7675e6ed3bf8151de5a1c8c6
a6b6294dd573e7a8429f6e1817a0598c7b315c5e
/examples/finance_vix.py
d0a1e8139e68366c05b1e389003532561c2be261
[ "MIT" ]
permissive
openknowledge-archive/datapackage-bigquery-py
4bef9c960c4efc9131d4673fab1f999f5ae09221
f1d822a1846eac4cfcdfd0f9e94bc27d2458f00b
refs/heads/master
2021-05-31T09:52:09.884572
2016-01-30T16:23:02
2016-01-30T16:23:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
# -*- coding: utf-8 -*- from __future__ import division from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals import sys from pprint import pprint sys.path.insert(0, '.') from examples.base import run # Fixtures dataset = 'datapackage' prefix = 'finance...
[ "roll@post.agency" ]
roll@post.agency
7b2f3ffb266a6b73b251aa0bed91d044d1201bd4
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03162/s990109089.py
40f2258c0867493398fd6c13585706e99574813b
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
n=int(input()) happines=[list(map(int,input().split())) for _ in range(n)] solution=[[0,0,0] for _ in range(n)] solution[0][0]=happines[0][0] solution[0][1]=happines[0][1] solution[0][2]=happines[0][2] for i in range(1,n): for j in range(3): solution[i][j]=happines[i][j]+max(solution[i-1][(j+1)%3],soluti...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
98e2fd9aca40497bd38d0b356abb49cce8cce88d
6be81c38e28732321d4e321c684de833b7b8693c
/day_06/line_parser.py
06bc6357ab478ee6fd836c1e6912bf4c5cf89572
[]
no_license
matyasfodor/advent-of-code-solutions
9d8e278afb5b49403fdefba7df06985fdebee213
74d942e3e730e4b8363fe082b1026a22169f9a33
refs/heads/master
2021-01-10T07:25:58.554794
2015-12-31T12:33:12
2015-12-31T12:33:12
47,652,271
0
0
null
null
null
null
UTF-8
Python
false
false
1,035
py
import numpy as np INCREASE = TURN_ON = 0 DECREASE = TURN_OFF = 1 INCREASE_BY_TWO = TOGGLE = 2 line_part_to_instruction = { 'on': TURN_ON, 'off': TURN_OFF, 'toggle': TOGGLE, } class LineParser: def __init__(self, instruction, selector): self.instruction = instruction self.selector =...
[ "matyas.fodor@prezi.com" ]
matyas.fodor@prezi.com
838dcc0ff6a1660d838fe309bd0fbea2ee55a934
96facac081446dd7e903523d2514c3bcdebf51c0
/src/internal/migrations/0025_secret_extra_view_permissions_and_historicalsecret_extra_view_permissions.py
2133b5b4b38428e5f87868afd911b9ebaee6928f
[ "MIT" ]
permissive
MAKENTNU/web
f49d90cf3e0209edecd9c638bbcd5b01f7c4273a
a90ac79f5756721c9a3864658a87fa62633dbc6c
refs/heads/main
2023-08-09T05:35:21.048504
2023-05-10T17:19:40
2023-05-10T17:19:40
110,425,123
12
7
MIT
2023-09-11T16:23:40
2017-11-12T10:59:20
Python
UTF-8
Python
false
false
2,741
py
# Generated by Django 4.1.7 on 2023-03-24 10:16 from django.db import migrations, models import django.db.models.deletion import simple_history.models class Migration(migrations.Migration): dependencies = [ ("auth", "0012_alter_user_first_name_max_length"), ("internal", "0024_historicalmember_and...
[ "6058745+ddabble@users.noreply.github.com" ]
6058745+ddabble@users.noreply.github.com
7d1fe2d018dd144e5f2638caf6996debb07587d3
f93e5da9f78d3b8bcdd96d2314dd09c8cbaf2336
/FastAPI/main/sql_app/main.py
66eb5aa4b1bd7948d8ebe29d956e76b6a981ad75
[]
no_license
Bahat159/bahat159.github.io
f4f7e12031c86c39e358b0ad9f064facedfd1a88
ff2f0d037d8f469b69dcd6b9ec3135eab9dde87e
refs/heads/master
2023-03-15T19:00:40.125849
2023-03-11T20:59:09
2023-03-11T20:59:09
253,337,084
2
0
null
null
null
null
UTF-8
Python
false
false
1,954
py
from typing import List import crud, models, schemas from sqlalchemy.orm import Session from fastapi import Depends, FastAPI, HTTPException,Request, Response from database import SessionLocal, engine models.Base.metadata.create_all(bind=engine) app = FastAPI() @app.middleware("http") async def db_session_middleware...
[ "noreply@github.com" ]
Bahat159.noreply@github.com
84b6bcb36e6da3ca1f96cafb6d5fa93b4bfb895f
7a69dc9f5a2a1ce43d8f5fe6e9a33e4b6c44f154
/pdfsplit.py
95e00c1bc995907adcbd99ba2f223465a9a57d86
[]
no_license
whxb69/pdf_tools
26e21cedb8174aed94a707d54fbc43b2839d4df3
f7a2b7dc7a0e87cb23d57604e8049158b1e4aeda
refs/heads/master
2020-07-06T01:43:17.093634
2019-11-23T09:31:37
2019-11-23T09:31:37
202,849,841
0
0
null
null
null
null
UTF-8
Python
false
false
8,253
py
import PyPDF2 import os import time import traceback start = time.clock() f = open('outline.ml', 'w', encoding='utf-8') nameSplit = 'ProblemSolvingAndProgramDesignInC new.pdf' def getlaveNum(strTmp): for i in range(len(strTmp)): if '\t' != strTmp[i]: return i + 1 def setsu...
[ "noreply@github.com" ]
whxb69.noreply@github.com
e938435982e4bca35a3bbaf1e7c4c35be18545a9
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/182/usersdata/265/105453/submittedfiles/diagonaldominante.py
2a3603de9bfd26bb77e24473ed3f5a3d2574df4e
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
# -*- coding: utf-8 -*- import numpy as np def soma(A): somalinhas=[] for i in range (0,A.shape[0],1): cont=0 for j in range (0,A,shape[1],1): cont=cont+a[i,j] somalinhas.append(cont) return(somalinhas) linhas=int(input('digite a quantidade de linhas: ')) a=np.zeros(...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
f2aa22a6ef30dda30a0016764697e8e17c545936
c1451d5bd0b9b559b5742a9c7afd671c030606ec
/doc/conf.py
88b67367c040e2716cdcc9160f9ec15cae6ce00a
[]
no_license
frasanz/Furnivall
f9e94a026a28277216bb842acb16727bf9616937
b537d8fcfa7741e65cfc8046ae8b62005180cafa
refs/heads/master
2021-01-17T21:52:43.936793
2012-09-26T15:42:40
2012-09-26T15:42:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,049
py
# -*- coding: utf-8 -*- # # Furnivall documentation build configuration file, created by # sphinx-quickstart on Tue Jun 21 15:23:01 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
[ "xayon@xayon.net" ]
xayon@xayon.net
6d15ee1b51af0bfb10e9ece54993a82cb555e0dd
bf7e43ddc1f50773bb8558c29363c26bd3344727
/BlokusAgentSimple.py
dc3518fa64192e47b6ddc7e1d72c930f911d5f8e
[]
no_license
bananushka/ai2
a1c715b04aef1cd389b7599e875bc44af31c4ccd
cae32dc2048fdca2c3e26c7efe398d0503e5f349
refs/heads/master
2021-03-12T23:02:47.563876
2014-01-04T22:58:35
2014-01-04T22:58:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
from BlokusGameAgentExample import BlokusGameAgentExample class BlokusAgentSimple(BlokusGameAgentExample): def __init__(self, depth=2): self.fixedDepth = depth
[ "bananushka@gmail.com" ]
bananushka@gmail.com
60adcee8de6d52b0608dd96426bd377901eddd1d
2d48377ac0127fb8301dc1754e4fede8e4b5c6ef
/showtime.py
a71dcb6bc592624bbd843f65dc3407e02c195487
[]
no_license
konman1989/cinema
eadb41a367ede255c48d6e12d2f4d7932e0595d3
27cb1d2ed8a24f1636a92d47f4e90c69bbc443e4
refs/heads/master
2023-05-25T19:10:12.450532
2020-01-14T10:45:54
2020-01-14T10:45:54
231,745,371
0
0
null
2023-05-22T22:37:07
2020-01-04T10:31:56
Python
UTF-8
Python
false
false
1,316
py
import re import requests from bs4 import BeautifulSoup def fetch_cinema_and_session_id(data: dict) -> list: """Getting CinemaID, sessionID from the link provided""" request = requests.get(data.get('link')).content soup = BeautifulSoup(request, 'html.parser') # fetching cinema_id using cinema name...
[ "manoilo.blog@gmail.com" ]
manoilo.blog@gmail.com
8871896d5379ec5750e6fb6433622c846811c30b
b8fed8222b41e447cd5ce83513eb4d014c01742b
/ad_report_salesadmin/po/po_form.py
ae2a831ae88665d254b25eafbddb16d0e61cf761
[]
no_license
lajayuhniyarsyah/ERP-Supra
e993d8face6e022b6f863d1dff7cb51cda36be8d
5a64dbb57ee40070354926700091fb9025c1350c
refs/heads/master
2021-01-25T22:09:46.306990
2017-11-08T05:32:04
2017-11-08T05:32:04
23,605,825
0
10
null
2017-11-08T05:32:05
2014-09-03T03:58:28
Python
UTF-8
Python
false
false
2,035
py
import time from report import report_sxw from osv import osv,fields from report.render import render #from ad_num2word_id import num2word import pooler #from report_tools import pdf_fill,pdf_merge from tools.translate import _ import tools from tools.translate import _ import decimal_precision as dp #from ad_amount2te...
[ "lajayuhni@gmail.com" ]
lajayuhni@gmail.com
d073cf0e510babb4c2329508f3b0d549e0cf3cec
0bc2a2963cb72c09c0ec0b3e3b10911c7bc31342
/examples/manila/script.py
a5f6b5d55011b15a3bcca5fbe09c09f48968cb7b
[]
no_license
cloudify-cosmo/cloudify-openstack-plugin
eb5730d0b75442e6a49069164fde03020dcca1de
7d2cd4162897333adcaab4bd83361bbd369fcf17
refs/heads/master
2023-09-06T09:10:53.372638
2023-03-06T15:02:59
2023-03-06T15:02:59
18,327,738
19
75
null
2023-03-06T15:03:01
2014-04-01T11:52:24
Python
UTF-8
Python
false
false
391
py
# For development help: from manilaclient import client # Fill in with real values. manila = client.Client( client_version='2', username='admin', password='openstack', project_name='demo', auth_url='http://10.11.12.2/identity', user_domain_name='Default', project_domain_name='default') share...
[ "noreply@github.com" ]
cloudify-cosmo.noreply@github.com
23b5b8241c446c7369de7dc25044362f340ba19b
28b874b6c03f8b319cf3e8e87301337958f9a0be
/tests/test_variable.py
1b00227e78aed0c0cfb42a961aec541e5a7717af
[]
no_license
thar/sistema_ecuaciones_EACS_Programaci-n-Extrema
5e0467666b1c5005491362b4de34dbb1d217efb2
76a88533806b0a4fe1870ce1c6eb222de514fa2d
refs/heads/master
2020-03-19T06:37:43.403631
2018-05-27T11:03:40
2018-05-27T11:03:40
136,040,452
0
0
null
null
null
null
UTF-8
Python
false
false
4,284
py
import unittest from mock import patch, Mock from equationsolver.fraction import Fraction from equationsolver.variable_builder import VariableBuilder class VariableTestCase(unittest.TestCase): def testValue(self): variable = VariableBuilder().value(3.0).build() self.assertEqual(variable.value, 3...
[ "miguel.a.j82@gmail.com" ]
miguel.a.j82@gmail.com
248e026a58b25e727390dcc43ea0a4361135df82
cc6b33c24069d6934741d1abfee1b8499497535a
/products/forms.py
f66ce2c2a57e6e7f0be1d30032fe4dbcc119b589
[]
no_license
sukubhattu/django-style-guide
b85e34418926a7ec0330f802fa2e0b9f4dc82cd8
da4552405c6e1c5f445f30c5a69b64a4ed2b6d74
refs/heads/master
2023-03-15T06:32:22.814081
2021-03-29T07:28:24
2021-03-29T07:28:24
352,405,748
0
0
null
null
null
null
UTF-8
Python
false
false
571
py
from django import forms from django.forms import fields, widgets from .models import Product class ProductForm(forms.ModelForm): class Meta: model = Product fields = '__all__' widgets = { 'title': forms.TextInput( attrs={'class': 'heheBoi', 'placeholder': 'Ent...
[ "sukubhattusandesh8@gmail.com" ]
sukubhattusandesh8@gmail.com
7e1ccc3c0c0d628fe5629e0ba6ef33d3b0101291
bf0ecad5f2d9853944e6bbc1ab6160359e9a6803
/blog/migrations/0001_initial.py
d30bdf5599f3883def76510678e4cb1d43d9f3c0
[]
no_license
NiteshPidiparars/icoder-blog-post
9addc53a83ec916c421ee16de7b04b8035be5d6b
19c5a333faf520b4133a0fa5d5ccf37320ed4181
refs/heads/master
2023-05-28T01:41:11.114065
2021-06-16T07:05:48
2021-06-16T07:05:48
374,288,121
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
# Generated by Django 3.2.4 on 2021-06-04 06:36 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Post', fields=[ ('sno', models.AutoField(pr...
[ "niteshpidiparas76@gmail.com" ]
niteshpidiparas76@gmail.com
344513f40b84e70156a271a556a0a7afa60bb84b
6febc1719503d0f9dbc97f6b1202116370391b10
/public_holiday/models/hr_holidays_inherited_model.py
fa5c2a57f2e8a69880f076eb808b1dbb72e214ac
[]
no_license
arshakil/Odoo-Development
5c6a1795cd64a8ebef5abfdf7d6245804594bcd8
df37f6e8c2f7d89cdbdb36d0a8fd501ef8bfe563
refs/heads/master
2022-12-11T05:17:12.123339
2020-07-28T07:38:58
2020-07-28T07:38:58
248,154,189
0
2
null
2022-12-08T03:51:50
2020-03-18T06:20:59
Python
UTF-8
Python
false
false
3,029
py
from odoo import models, fields, api, _ from odoo.exceptions import ValidationError from datetime import date, datetime from datetime import datetime, timedelta class Hr_Holidays_inherited_Model(models.Model): _inherit = 'hr.holidays' public_holiday=fields.Float(string='Public Holiday In Between',compute='chec...
[ "azizur.rahman363410@gmail.com" ]
azizur.rahman363410@gmail.com
dd30c5254405af64ce994ba786c148924ddf521c
fd0194543a142c63812352e79c417e54a19d0cd5
/Auxiliary_Scripts/Plot_Relocate.py
7633b63d02c80b1e30093bd97aeca0eb93c5d1b2
[]
no_license
mwilensky768/MJW-MWA
2ac85b8f07577e3112c418595bf62902d720c3c2
ebda1e273a401c88f014bc698743547ec86a6f35
refs/heads/master
2021-05-02T00:51:48.591198
2021-03-31T22:34:06
2021-03-31T22:34:06
78,403,875
1
0
null
null
null
null
UTF-8
Python
false
false
324
py
import glob import shutil import os plot_dir = '/Users/mike_e_dubs/MWA/Catalogs/Wenyang_Phase2/data_eva/unflagged/' target_dir = '/Users/mike_e_dubs/MWA/Catalogs/Wenyang_Phase2/data_eva/frac_diff/' plots = glob.glob('%s*__INS_frac_diff.png' % (plot_dir)) print(plots) for plot in plots: shutil.copy(plot, target_d...
[ "mjw768@uw.edu" ]
mjw768@uw.edu
e8bed198e20aac524cdf4677fc17c963af31386c
dccd223528133fe27c809d10533956b796034412
/MyMgAcct.py
8e28698219ffea8d503fbe7ff6ae93ed1c563270
[]
no_license
gggrokthis/Twitter-
b22d79c1c7de2d285b48374ef212a1fb2d5c1325
f86c5ce365f7454af84baa6e07ba32fdd957a540
refs/heads/master
2020-03-27T23:11:25.657321
2019-07-29T18:30:55
2019-07-29T18:30:55
147,299,340
0
0
null
2018-09-04T06:59:44
2018-09-04T06:37:15
null
UTF-8
Python
false
false
6,491
py
# -*- coding: utf-8 -*- ####2017 #Check for twitter API and other changes if you are looking at this after 2017 #This script will delete tweets identified by tweetid listed in the input file #from the twitter specified account #Setup: # You will need to get the following # 1. consumer key # consumer secret toke...
[ "noreply@github.com" ]
gggrokthis.noreply@github.com
98fe6950dde4c613c1aa84004a4e88ae3fab25b0
a937f0263bc95069fa77463cd7b1fcd4c3a83afd
/Problem06/main.py
a014cb47bcf47d45b3ee5dbc77d37ebc6afd9d8f
[]
no_license
Aquarius314/Project-Euler
0a1c41e7c9a79c544d4e308eb61ccf391fd615ee
ad5b14d81598ce3a9a2d61cde8c007e6d93358b6
refs/heads/master
2021-01-23T03:42:46.562887
2017-06-16T20:48:34
2017-06-16T20:48:34
86,110,397
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
# The sum of the squares of the first ten natural numbers is 385 # The square of the sum of the first ten natural numbers is 3025 # Difference between them is 2640 # Find the difference between the sum of the squares of the # first one hundred natural numbers and the square of the sum. # BRUTE # Solution is 25164150 ...
[ "jakubwojcik.post@gmail.com" ]
jakubwojcik.post@gmail.com
29c7bbf44bdc8b73d1072eac1e09a2addf835026
44d88cbdfbe4af402e0323de5af94b96226e60b9
/decotimer/constants.py
e6f92b0a113b3412a35c4f1f635a7179c64a19dd
[]
no_license
Excp281/decotimer
3108f5d498f8257b923560d905c4a1481177a2fa
ca9789acba96bbbe88f84e53de52ee8871b012f7
refs/heads/master
2022-11-26T07:56:24.187094
2020-07-24T12:09:57
2020-07-24T12:09:57
282,195,360
0
0
null
null
null
null
UTF-8
Python
false
false
24
py
ENABLED = 0 DISABLED = 1
[ "pypcdev@gmail.com" ]
pypcdev@gmail.com
b50adbfdbf95e1fba92be2b60782ae7a2e3c2a03
cae00cf2d22208668a9df7b06efbb80e76146fd9
/HT3.py
8933eff7c63e15563cd09fdb96face129df5a423
[]
no_license
Leonel1098/Curso-Basico-Python
ea711f2569905ce92eac0624bb3893c8b92dfd82
cd8819899fb4d6d297e7aff008511dfaaf964f5b
refs/heads/main
2023-03-20T09:37:19.420754
2021-03-13T03:51:52
2021-03-13T03:51:52
344,327,413
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
print("Ingrese la contraseña") contraseña = input() print("Confirme la contraseña") contra = input() if(contraseña == contra.lower() ): print("Bienvenido al Sistema") else: print("Ingrese la contraseña de nuevo") print("------------------------------------------------------------") print("Ingrese su...
[ "noreply@github.com" ]
Leonel1098.noreply@github.com
eb61d968ba311fe56e5bfc26939fb22f35adfe4e
86896e2d29c44da3a0746ba631a63379005af038
/files.py
897cb73085571a770cf92581d91c52a312de2401
[]
no_license
pjburkeiii/beacons_f16
dfc423ef21dbe892b78b0454a9c9f076397fa3a0
f5e05dc60d6c07f96b8b1333b20058f32b64eeef
refs/heads/master
2020-07-29T11:49:29.322360
2016-12-07T00:01:07
2016-12-07T00:01:07
73,669,910
0
0
null
null
null
null
UTF-8
Python
false
false
5,268
py
import json import requests import datetime from flask import Flask, jsonify, request app = Flask(__name__) # YOUR CANVAS KEY canvasKey = '4511~U5CTjXuSLJKdaAoFTSRv7GeIFd1lGzDYVohzKHeHqUbfW1MTVQ0L1kFX1Fzkjx9Y' courseID_1 = 36417 #exploration of beacons #static data items = { 'b1cfd7baf1349880': 'pi', '0daad9c90f98...
[ "p.j.burkeiii@gmail.com" ]
p.j.burkeiii@gmail.com
8a7d55caa81a5c81fa616f5f2ed3c6f0142efd0a
69bc23a7baf65b276496d76d02645b5a76cfe083
/thu_python_16/program3.py
f3332c8639d67bd315206d183acabe04cb6c234d
[]
no_license
pylinx64/thu_python_16
a12e4ec8f82e6470b496116342b777e0a6676be1
617e75618a5a3117ec34278c41dadb38aa39fdb8
refs/heads/main
2023-04-23T03:17:31.347867
2021-05-05T10:09:57
2021-05-05T10:09:57
336,022,469
1
0
null
null
null
null
UTF-8
Python
false
false
568
py
#x=10 #print(x) #y=10 #print(x+y) #print('x+y') #x=20 #z = 10 #print(x+y+z) #x='Яготинское' #k='молоко' #print(x+' '+k) #print('Яготинское'+' молоко') #print(k * 143543543) #print(11 > 10) #print(8 > 9) #print(9 != 9) #print(9 == 9) #x = 8 #y = 9 #print(x >= y) #print('a' == 'a') #p...
[ "noreply@github.com" ]
pylinx64.noreply@github.com
ddd882154d6482285e5cf75620af0ca019e5af41
c00cea43929684d5a584a1d102bf081b3d6cd348
/19_rest/app.py
e8e8e7f44530311ca626bd7291ddca37a99fb769
[]
no_license
amelia-chin/achin10
2372baca901308115e5e1598c347988f73f66f6c
7b0e68d58720dd9e6d4647e09675fe63ba16a3f0
refs/heads/master
2023-05-02T22:17:53.499873
2021-05-18T01:17:54
2021-05-18T01:17:54
298,331,511
1
0
null
null
null
null
UTF-8
Python
false
false
827
py
""" Team Eggs and Bagels (Amelia Chin, Ari Schechter) SoftDev K19 -- A RESTful Journey Skyward // exploration into REST APIs 2021-04-05 """ from flask import Flask, render_template import urllib as url import json app = Flask(__name__) API_KEY = open("key_nasa.txt", "r").read() @app.route("/") def index(): # thi...
[ "achin10@stuy.edu" ]
achin10@stuy.edu
688324093ad3f13ec5d60a2ed5b09953f0e0d9d5
5d5d96e06aa643a8f2e868304e2f9e2e928bcfeb
/week10-lab/sorthema.py
f0c2d43b590d7391f7f8c42a864135e851ca3069
[]
no_license
natdjaja/qbb2019-answers
59334397a0b475b8e2f17d4f7e1bbd88ad44fbb2
0b154e159aae612fe146aed87ce238209e8cba0b
refs/heads/master
2022-04-13T17:27:12.896664
2020-02-14T19:52:29
2020-02-14T19:52:29
204,489,725
0
0
null
null
null
null
UTF-8
Python
false
false
3,819
py
#!/usr/bin/env python3 import sys import numpy as np import scipy as sp import matplotlib.pyplot as plt import pandas as pd from scipy.cluster.hierarchy import dendrogram, linkage, leaves_list import seaborn as sns from sklearn.cluster import KMeans import scipy.stats as sp hema = open(sys.argv[1]) df = pd.read_cs...
[ "nathaliedjaja@gmail.com" ]
nathaliedjaja@gmail.com
d3b6650494506a0738afea264cb7ca7077bc7d2f
22b9871352c6aa91b7c028d5ddcf7adaaeac09f9
/mbta/__init__.py
c7b1be083503a4d879cc25599e2c129b2524f798
[ "MIT" ]
permissive
JaredStufft/mbta
257e0122029844d27016b419789810eeaf3e2a9b
9c497d6718ddfbf8a69de7d3a7e043594d9cf0ef
refs/heads/master
2022-12-14T20:54:02.893588
2019-03-04T17:38:35
2019-03-04T17:38:35
143,295,378
2
0
MIT
2022-12-08T02:20:34
2018-08-02T13:01:11
Python
UTF-8
Python
false
false
15
py
name = 'mbta'
[ "jared@stufft.us" ]
jared@stufft.us
b5000ca9d75fbdbc1f3173b2d37b4b01952505f1
83d512f770a7af5de96f711b068095aae21f3875
/python/ph.py
63201f5d05acb02062ee8238a31edc594b7e71fc
[]
no_license
MonkeyTaolun/play_around
bcdf5172d03bffd527ac7f51426a205c40c75e29
39337c447379c21786788636f9af0557954c11d3
refs/heads/master
2021-01-10T20:04:11.126923
2012-02-28T20:28:04
2012-02-28T20:28:04
2,185,849
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
import urllib from lxml import html f=urllib.urlopen("http://www.python.org") s=f.read() tree = html.fromstring(s) [td.text for td in tree.xpath("//td")] #print tree
[ "ctcooll@gmail.com" ]
ctcooll@gmail.com
fdd37d7b786f3d9ca71aff75f5399b323327af37
d41d0f5a16dea31186d8e862c538489af91c57f9
/plot.py
d99c57f1882cb1be7fa6a07788cf7d93d949837a
[]
no_license
digitalscientists/scribe
7c906c2a8a1b663419bc922b242bc9b16be8766a
d6c83e36c5e9181387077bdfdb10433b86cb60b1
refs/heads/master
2021-08-08T07:51:22.709460
2017-11-09T23:12:10
2017-11-09T23:12:10
107,588,462
0
0
null
2017-10-19T19:19:38
2017-10-19T19:19:38
null
UTF-8
Python
false
false
758
py
import matplotlib.pyplot as plt import sys import os import xml.etree.ElementTree as ET fig = plt.figure() ax = fig.add_subplot(111) #os.getcwd() + '/' + file_path = sys.argv[1] tree = ET.parse(file_path) root = tree.getroot() stroke_sets = root.findall('StrokeSet') for stroke_set in stroke_sets: for stroke in stro...
[ "jerry.deng@digitalscientists.com" ]
jerry.deng@digitalscientists.com
cb743f7d80b535f3425bff1576c305628e2398ac
454b62b464c9fc280be3e2248eaeb3ea6a6676b1
/Tkinter-Asynchronous-Programming/tkinter-after/metodos.py
f73ed17ca3553945f9bd5e847c2fb250f64930d6
[]
no_license
afhernani/tk-gui-templates
2aea9a6cf95a144940656cddd729f1c83cf0ec3a
6b23209b7398377f3aa5403ffef0f680741aa469
refs/heads/main
2023-06-18T23:51:32.369247
2021-07-15T19:59:52
2021-07-15T19:59:52
376,554,045
0
0
null
null
null
null
UTF-8
Python
false
false
1,165
py
import tkinter as tk from tkinter import ttk import time class DigitalClock(tk.Tk): def __init__(self): super().__init__() # configure the root window self.title('Digital Clock') self.resizable(0, 0) self.geometry('250x80') self['bg'] = 'black' ...
[ "afernani@gmail.com" ]
afernani@gmail.com
dde36e2eae98fd6ebba3dc430abdd47affdd0f65
a3e7583b70584f62554c5969a9963ba79afd7ac3
/check.py
b7630edc09bab8c7a639472f47604386f4a53a32
[ "MIT" ]
permissive
foamliu/DeepRankIQA
4f677a2fe1912b16cf4bbcc05c8571d46260711f
7801cb4ff2c934a9d954ace9ad52600f96396125
refs/heads/master
2020-09-03T06:02:05.896210
2019-11-05T01:30:27
2019-11-05T01:30:27
219,402,631
4
0
null
null
null
null
UTF-8
Python
false
false
717
py
import os import pickle import cv2 as cv from tqdm import tqdm from config import data_file, image_folder if __name__ == "__main__": with open(data_file, 'rb') as f: samples = pickle.load(f) filenames = set() for sample in tqdm(samples): before = sample['before'] fullpath = os.p...
[ "liuyang12@focusmedia.cn" ]
liuyang12@focusmedia.cn
753f83705d4b14450b57358743f60359fde6545a
4a6a1e1ce876118bb0bda46181c457ad1dbc9320
/dataAugment.py
31a7c707934bce1e59f965f7b4abce42fc69b71d
[]
no_license
MDrance/Filbi-project
c9b143e8447516b0a23b12b346b878bd02c60864
0729748706b08c82aee0b80224153288f5553576
refs/heads/main
2023-01-10T03:21:38.350036
2020-11-17T17:03:05
2020-11-17T17:03:05
313,684,520
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
import glob import cv2 import os import random import shutil def data_augmentation(): print("DATA AUGMENTATION ...") target = "./augmented_data/" if os.path.isdir(target): shutil.rmtree(target) os.mkdir("./augmented_data/") for file in glob.glob("data/*.jpg"): shutil.copy(file...
[ "martindrance@hotmail.com" ]
martindrance@hotmail.com
053d272a8dd615e354067ac7a039ec23434eea10
3e4de43ddfef39f79c9e06e78c7789ded0855001
/thola_client/models/check_identify_request.py
19d6b5d4362f0bc176207aa734c1a86e8d276bfe
[ "BSD-2-Clause" ]
permissive
inexio/thola-client-module-python
9721f27b1305b25445c4e2594b134cfd17ed7641
f9a6812885738e33b1aed43ca55335b71e3d2b2d
refs/heads/main
2023-04-30T06:55:25.015950
2021-05-19T11:05:26
2021-05-19T11:05:26
358,176,683
1
0
null
null
null
null
UTF-8
Python
false
false
12,563
py
# coding: utf-8 """ Thola REST API for Thola. For more information look at our Github : https://github.com/inexio/thola # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from thola_...
[ "philipp.baus.studium@googlemail.com" ]
philipp.baus.studium@googlemail.com
be89afab0a0a8125be3fcc85bbcf78d59a8b7933
b7d61afe530f603e1f0d6e269e6cd46a4911c51f
/Basic.py
f068ba4f0bb1b03ee7a2b952f12279b4a0a7e222
[]
no_license
kashiv15/Cache---Performance
e98866a11101f3e12b3a04fd3352cb9e1ae7af25
99c33c5713b3d010bce1c4dc6f061635adfb95ad
refs/heads/master
2023-01-20T22:25:25.606853
2020-11-29T20:30:11
2020-11-29T20:30:11
289,562,473
1
1
null
null
null
null
UTF-8
Python
false
false
1,098
py
import m5 from m5.objects import * system=System() system.clk_domain=SrcClockDomain() system.clk_domain.clock='3.4GHz' system.clk_domain.voltage_domain=VoltageDomain() system.mem_mode='timing' system.mem_ranges=[AddrRange('8192MB')] system.cpu=TimingSimpleCPU() system.membus=SystemXBar() system.cpu.icache_por...
[ "noreply@github.com" ]
kashiv15.noreply@github.com
c5920946fc2c9d9c50f213f3b22487f73946bd0b
c4d7ae80706b8ee954e671df83de673b8ab4ec8b
/cms34/resources/themes/fields.py
0a452c68590f67c767dbc4eb40abf61af8cc23df
[]
no_license
motor23/cms34
b63c7cf6e493d78f25f7ee09510833570742cd8a
229887486bcb12af7ad70d764f05b73acb7eda81
refs/heads/master
2021-01-17T14:02:24.511669
2019-03-06T08:08:50
2019-03-06T08:08:50
31,367,780
0
2
null
2019-03-06T08:08:51
2015-02-26T13:16:30
Python
UTF-8
Python
false
false
243
py
# -*- coding: utf8 -*- from ...mixed import ( XF_StreamSelect, ) class XF_Themes(XF_StreamSelect): name = 'themes' label = u'Темы' model = 'Theme' stream_name = 'themes' multiple = True xf_themes = XF_Themes()
[ "motormen@gmail.com" ]
motormen@gmail.com
3749bb5ed6c01cc9d93af2315596fea184b724b5
a4838d7572b91427f62a62928764b3733b3362c8
/Chapter11/Exercise11.04/test_11_4.py
6630d15301782e70f233a0ead05ea5b75c6affd5
[]
no_license
Evgeneom/The-Statistics-and-Calculus-with-Python-Workshop
2648cc60bee446e56ffc90da7a00e80e2407c2c7
d57ef0f480ba1b418a904572bd18cd15ad8a837c
refs/heads/master
2023-03-18T23:43:19.971680
2021-01-21T12:11:33
2021-01-21T12:11:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
479
py
import unittest import sys import import_ipynb from Finding_the_Length_of_Insulation_in_a_Roll import * class Test(unittest.TestCase): def test_r(self): self.assertAlmostEqual(r(24*pi),7.6,1) def test_opposite(self): self.assertAlmostEqual(opposite(r(0),r(0.0001),0.0001),0.0002...
[ "noreply@github.com" ]
Evgeneom.noreply@github.com
fbcf5b7d508ad8a33e8e303f73759b7d5782c4e0
30a6975de792d613db836346ff758a7c0797d400
/lldb/test/API/lang/swift/parseable_interfaces/shared/TestSwiftInterfaceNoDebugInfo.py
075df0dd1fb74f689568a004da5f267648814dee
[ "NCSA", "Apache-2.0", "LLVM-exception" ]
permissive
WYK15/swift-Ollvm11
0a2aa1b216c8e3f38829ae16db846039e8de149e
b28dba1ebe1186790650c72d5e97d8b46f1bc6e0
refs/heads/main
2023-06-27T18:14:47.652175
2021-06-10T12:47:56
2021-06-10T12:47:56
367,350,198
6
0
null
null
null
null
UTF-8
Python
false
false
8,467
py
# TestSwiftInterfaceNoDebugInfo.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swif...
[ "wangyankun@ishumei.com" ]
wangyankun@ishumei.com
8e5ea75d19f8f20c402bd0ceccf491afa32e9d65
3d0e428be16d5bbabe7bfe57d6a42082ff815a38
/train/train_lr.py
ca7db0916b7464b4e269ceaf57ebcc76b5baa547
[]
no_license
obrown06/sentiment-oracle
eeaf75f42cabd65f0e5572b4d960fccd443e0475
14bab186ef73d845a7c836bb9b72d87798677486
refs/heads/master
2018-10-24T07:15:23.617279
2018-08-20T23:47:31
2018-08-20T23:47:31
117,775,007
1
0
null
null
null
null
UTF-8
Python
false
false
3,237
py
import sys sys.path.insert(0, '../test/') sys.path.insert(0, '../data/') sys.path.insert(0, '../classifiers/') import data_handler import test_utils import logistic_regression import pickle import numpy as np print("#################################################################### \n") print("GENERATING INPUT: LOGI...
[ "nicholas@athenaeg.com" ]
nicholas@athenaeg.com
0982815fa6e2febe3f979f4b6f47031da010b787
fa7f72fe2369733f8f97d2324d8e236deb6eab39
/Python/Face Detection - OpenCV/F_D_Video_Final.py
299614479ea83f6d8a9577cfecd9527584045da7
[ "CC0-1.0" ]
permissive
Gulnaz-Tabassum/hacktoberfest2021
bd296832f7ff07712b0b4671a8bd841d645abc29
ffee073f6efa4090244b55966fd69dde51be12f1
refs/heads/master
2023-08-17T13:18:17.557965
2021-10-08T09:52:19
2021-10-08T09:52:19
414,930,631
2
0
CC0-1.0
2021-10-08T09:52:20
2021-10-08T09:47:37
null
UTF-8
Python
false
false
1,146
py
import cv2 face_cascade=cv2.CascadeClassifier('haarcascade_frontalface_default.xml') eye_cascade=cv2.CascadeClassifier('haarcascade_eye.xml') cap = cv2.VideoCapture(0) while 1: ret, img = cap.read() gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) # Detects faces of different sizes in the input ...
[ "noreply@github.com" ]
Gulnaz-Tabassum.noreply@github.com
d9c4a1f54e371582e9a10bf13e6af9007a39e2dd
acfdf9a8ebca7d58d420c19e02fb7efb7bd7674b
/day-27.py
0e67aae2e8b6cab7fe87d9cb527c9ca0f2827643
[]
no_license
Kuljeet-123/Hackerrank-30-days-code-with-python
9758112a7c622fc37a1818c3868e318ac13b5b99
028c43aafe52eb7ac17a16a2ac07cb421820f4d3
refs/heads/master
2020-05-21T01:03:49.486910
2019-09-19T08:14:54
2019-09-19T08:14:54
185,846,208
0
0
null
null
null
null
UTF-8
Python
false
false
4,046
py
This problem is all about unit testing. Your company needs a function that meets the following requirements: For a given array of integers, the function returns the index of the element with the minimum value in the array. If there is more than one element with the minimum value, the returned index should be the sma...
[ "noreply@github.com" ]
Kuljeet-123.noreply@github.com
cc83365f6c3ba8b9e1b461f4f40ee02ce4e5a9d3
d0e45ba04838518dd3e86bfecffe9e955c602be2
/01_Basic/app.py
0229e319f69e47f66d93a2aa4a2e9223556edb75
[]
no_license
hieutrinhds/flask
97c2ff8e4fe32273d59988bd864c6458e47a2198
9cb2c7396885b3f7a2055ea4106352daa8fb4c10
refs/heads/master
2022-12-16T11:41:10.373542
2020-09-08T07:00:25
2020-09-08T07:00:25
293,274,948
0
0
null
null
null
null
UTF-8
Python
false
false
3,041
py
from flask import Flask, jsonify, request, redirect, url_for, session, render_template, g import sqlite3 app = Flask(__name__) app.config['DEBUG'] = True app.config['SECRET_KEY'] = 'Thisisasecret' def connect_db(): sql = sqlite3.connect('data.db') sql.row_factory = sqlite3.Row return sql de...
[ "hieutrinh.au@gmail.com" ]
hieutrinh.au@gmail.com
e7d0dab25ef173459d313189465f2ad65048d5ce
37b8eb5e5d2640537d99100358d4b5132eb4e922
/plot_OMI_assimilate.py
0f0493c8805b9879788376a5172db0b873892a35
[]
no_license
YellowruiAccount/Arctic_codes
94392ac9bcc1874dd3529d2bd59566c23a2130b2
2075efca802c645f99b4f4191a50ea112103c394
refs/heads/master
2023-05-11T01:18:58.306824
2021-05-19T15:06:54
2021-05-19T15:06:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,855
py
#!/usr/bin/env python """ NAME: PURPOSE: SYNTAX: EXAMPLE: MODIFICATIONS: Blake Sorenson <blake.sorenson@und.edu> - 2018/09/07: """ import sys import glob import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Polygon from mpl_toolkits.basemap import Basemap import matp...
[ "bsorenson4244@gmail.com" ]
bsorenson4244@gmail.com
2d1ab9f2d3eadfb2a69ad816402402ec65cfb51d
d3a1e42bf4c895242229571cb2c013a06f437210
/.gitignore/fsdfv.py
bc85caf0e780b4b46e519d45b5b11f784d4cf6fb
[]
no_license
mohanramofficial/rtfr
2b165cf72e6a2f12104027d0f633d3ca1bcdaecb
b9983377ef8757e7f1bf7e1fcda319551bcb59a1
refs/heads/master
2021-04-15T15:19:55.130692
2018-03-24T05:01:26
2018-03-24T05:01:26
126,567,439
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
ERROR: type should be string, got "https://github.com/mohanramofficial/fgfd/blob/master/.gitignore/gvdhc.py\n\nnum = 407\n\n# take input from the user\n# num = int(input(\"Enter a number: \"))\n\n# prime numbers are greater than 1\nif num > 1:\n # check for factors\n for i in range(2,num):\n if (num % i) == 0:\n print(num,\"is not a prime number\")\n print(i,\"times\",num//i,\"is\",num)\n break\n else:\n print(num,\"is a prime number\")\n \n# if input number is less than\n# or equal to 1, it is not prime\nelse:\n print(num,\"is not a prime number\")\n"
[ "noreply@github.com" ]
mohanramofficial.noreply@github.com
403e6aea999f4b8b857e6ebb24ff679f68a607af
46e50a1bd93569a0f945b65b6e84c927fb256f53
/mtpy/utils/modemMakeModel.py
36128ecdce8a38fc29194a3dd6cc3fa86d367988
[]
no_license
lucasc15/mt3py
d3afed2527b1bc49e4e4cd4ec1d24b5083a5942d
734fc551e87cd30261e7d648d79d6d0e5885b85d
refs/heads/master
2021-01-19T00:35:44.069960
2016-07-03T14:03:54
2016-07-03T14:03:54
62,498,631
1
0
null
null
null
null
UTF-8
Python
false
false
14,929
py
#!/usr/bin/env python #build ModEM input Model from ModEM data file import numpy as np import sys,os #============================================================================== #plot model geometry plot = True # parameters: n_xpadding = 10 n_ypadding = 6 #number of vertical padding layers is set to 3 ! #facto...
[ "currahl@yahoo.ca" ]
currahl@yahoo.ca
2cb15cb8f534bf7210f79940336fca5337a3874d
ec405878d93e554338cf6e0b58ba36453a036f90
/workflow_package_creator.py
6b872fbf7d999e1b1db7999bab4da9be4a7a3162
[]
no_license
vadimsmilgin/check_automation
f794b5cc2255d46754315776053830292e8e10b7
dac3b640012027681a12be83894cb8ee2d595bfc
refs/heads/master
2022-10-29T16:36:26.608936
2020-06-12T10:28:37
2020-06-12T10:28:37
271,249,646
0
0
null
null
null
null
UTF-8
Python
false
false
1,513
py
#!/usr/bin/python import os import platform import re from lxml import etree from context import Context, Windows, MacOS from work_with_s_objects import WorkWithSObjects def create_package_xml(): if platform.system() == 'Windows': _context = Context(Windows()) if platform.system() == 'Darwin': ...
[ "vadimsmilgin64@gmail.com" ]
vadimsmilgin64@gmail.com
2f4b4624a70b3f7b58565625cf554142d9c0c3c4
ec8fa3b2436ed17a3e703deec80a414bb5306b08
/huxley/python/2045-inversion-sort.py
922229aeb5f2619f579e26bceb19a3959748629b
[]
no_license
pmba/algorithms
3c3f89a0eae9b3144325ec719d1db3109aa707db
2c15b1bc18645bc2cc24b7b8b615134066845e6b
refs/heads/master
2020-03-27T00:41:27.816090
2018-10-05T12:05:48
2018-10-05T12:05:48
145,646,130
0
0
null
null
null
null
UTF-8
Python
false
false
853
py
def inversion(array): inv = 0 if len(array) > 1: pivot = len(array)//2 left = array[:pivot] right = array[pivot:] inv = inversion(left) inv += inversion(right) i = j = k = 0 left.append(float('Inf')) right.append(float('Inf')) ...
[ "pmba@ic.ufal.br" ]
pmba@ic.ufal.br
fd23272afb6040f22d495da6f1ccc4cde2e7d91e
245a9d9fbfde70c33afe39769d7a93b2d6c3e3ad
/map_bn2conv.py
2f8cf103de3d33a5dddb7a4050a06d393a4bdf15
[]
no_license
wjc852456/pytorch-practice
dc9b1cb8d8d85778307e772556a1703f04bd551a
dc90620d8aa06d7c16c6c7d0f06e0d2ef16a7741
refs/heads/master
2020-03-24T21:06:20.389522
2018-07-31T12:56:13
2018-07-31T12:56:13
143,013,775
0
0
null
null
null
null
UTF-8
Python
false
false
1,902
py
import torch import torch.nn as nn from torch.nn.parameter import Parameter import sys import os sys.path.append(os.path.expanduser('~/pytorch-quant/utee')) sys.path.append(os.path.expanduser('~/pytorch-mobilenet-v2')) import quant import MobileNetV2 def bn2conv(model): r""" conv layer must be arranged before bn ...
[ "wangjichen2012@163.com" ]
wangjichen2012@163.com
7cc991b3cfe972ac5fd124fd8d9f3ec6ca838eb5
64bffe2a7934c012195dd46ce3873c74c4ed20dc
/likes/models.py
5ada38830c94576ea38cc13488fbf927c73b27f5
[]
no_license
Power2hang/mysite
f01c0ca3b074676cbe8911069a943f0deb594f91
c37f2dd2c70821cda4fa76c992d4fb6225506662
refs/heads/master
2022-11-25T19:20:48.874809
2020-01-06T01:54:49
2020-01-06T01:54:49
159,321,263
0
0
null
null
null
null
UTF-8
Python
false
false
810
py
from django.db import models from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.contrib.auth.models import User class LikeCount(models.Model): content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE) object_id =...
[ "1247637039@qq.com" ]
1247637039@qq.com
53347068559ac6f5dcd89d0d775da298fbf13504
b1a9fa233492aef3d983a3c4c7ca70105b2d1ad2
/cw2/twitter_clone/bin/wheel
0cd317ec5daad0431dcf072926e33936116afde5
[]
no_license
milkos14/nikolaou_andreas_set09103_cw2
7f7c9096f18eedb4d9fe0a7fc5bced2259634d07
73cbbc9cd636736032deb49732b9527c170adf10
refs/heads/master
2020-04-07T06:06:32.927181
2018-11-27T19:29:19
2018-11-27T19:29:19
158,122,602
0
0
null
null
null
null
UTF-8
Python
false
false
239
#!/home/40211330/cw2/twitter_clone/bin/python2 # -*- coding: utf-8 -*- import re import sys from wheel.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "40211330@live.napier.ac.uk" ]
40211330@live.napier.ac.uk
fe608fb9ba98f0f1ab8f1ae85fec8b54b345a900
d930e060542a569dec217d099e387d396ed3ca8d
/our_contacts/models.py
7f6037f2da302b3302327698b9ee1a17fd5bbcab
[]
no_license
dzhem911/t_kontakta
9eab09e6491a3e906b6aab34991b06f9d97ac07e
f404517501dddb505c8ad8e4d13a316afdd47190
refs/heads/master
2022-09-29T14:59:40.026628
2020-05-24T15:39:54
2020-05-24T15:39:54
255,593,759
0
0
null
null
null
null
UTF-8
Python
false
false
574
py
from django.db import models from tinymce.models import HTMLField class OurContacts(models.Model): title = models.CharField(max_length=100, verbose_name='Заголовок') description = HTMLField() img = models.ImageField(upload_to='media/', verbose_name='Изображение', null=True, blank=True) phone_number = ...
[ "dzhemal911@mail.ru" ]
dzhemal911@mail.ru
26deb937ebee71f0637a6fce55598cea3e7c0140
a01ec17189abf5333a9fddba771b1c96c335e64b
/src/viewer/urls.py
4ecee086ea828fe65e388b0d9fd2fea323ba2127
[ "MIT" ]
permissive
coderuz/WatchMeCode
c9d89e29f19dd114d4449e247f8d94d4b94deadd
96e3e20dcbedddd0e4823d90c87cbd644ec268d5
refs/heads/master
2020-03-30T16:10:22.557016
2018-07-17T07:19:29
2018-07-17T07:19:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
605
py
from django.urls import path from . import views urlpatterns = [ path('', views.show, name='welcome'), # TODO: Change <-this to welcome view or Register View for Auth Users path('edit/<str:room>/', views.edit, name='editable'), # TODO: either this room does not belong to you or does path('room/<str:room...
[ "mitazimjon@gmail.com" ]
mitazimjon@gmail.com
c6454d5ab12e01278e08734c2b1fc8c5cca23a85
23ed9e7f9f37204b991a4b8d37cb2a2620959814
/FRM_function_update.py
c3847b6e212012c4a7ec6ef4ae330e0eda4bb457
[]
no_license
Jojanna/geojo_tools
263b895d16c40621088bec1601f054ff0dc3a3f7
5403b203df036e6ad95f995ece4eee1b3cb60d7b
refs/heads/master
2023-06-01T18:44:57.820566
2021-06-13T20:11:46
2021-06-13T20:11:46
376,630,112
0
0
null
null
null
null
UTF-8
Python
false
false
4,024
py
import numpy as np import pandas as pd from rppy.fluid import batzle_wang """ Contents: * k_wet * fluids_calc * reuss fluids *rho_dry_calc """ def k_wet (k_dry, k_fluid, phiT, k_HS): # gassmanns #print ("k_fluid") #print (k_fluid) rhs = k_dry / (k_HS - k_dry) + k_fluid / (phiT * (k_HS - k_fluid)) ...
[ "j.wallis@dunelm.org.uk" ]
j.wallis@dunelm.org.uk
b23143408eae95819c6760c853c06db075ea9987
d62e01ee1b50b8228d25736daceae0e822f3a0a0
/examples/user_guide/add_tasks.py
e323c771d0a918d6b08a4f1fc852134d93c6e40d
[ "MIT" ]
permissive
dalg24/radical.entk
b6f34ae1b2075f638fbdfd5fc397ea4c0d87cb93
4aa68d8de7804e09ca64629035ccda0b79ac0b76
refs/heads/master
2020-04-03T17:25:37.548618
2018-10-16T12:06:30
2018-10-16T12:06:30
155,444,172
0
0
null
null
null
null
UTF-8
Python
false
false
1,916
py
from radical.entk import Pipeline, Stage, Task, AppManager import os # ------------------------------------------------------------------------------ # Set default verbosity if os.environ.get('RADICAL_ENTK_VERBOSE') == None: os.environ['RADICAL_ENTK_REPORT'] = 'True' # Description of how the RabbitMQ process is ...
[ "b.vivek91@gmail.com" ]
b.vivek91@gmail.com
190402e6dd636bf2f4fa9578042f043ce51c8530
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/wtBko8Bc8o8Tmra3q_11.py
93df75889df3f71ae56c4f1e24530b81e184ba11
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
135
py
def halflife_calculator(mass, hlife, n): mass_left = mass/(2**n) years = hlife * n ​ return [round(mass_left,3),years]
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
d25b847438a89a2ef7907ccbe7bd97416f294e59
9edf6efa74b211a50db1767d7cbfbc885942a161
/spatialnde/dataguzzler/dg_3d.py
1abeb18c444bc7871ffe6d16bc11d4bac8547d64
[ "Apache-2.0" ]
permissive
isuthermography/spatialnde
42a49118a3f7cd62c27b6d317b60faff0a55b279
983de2e68139c33ab5eb8df59ac0aaa84bad096a
refs/heads/master
2022-05-03T13:00:35.981337
2021-06-23T15:26:11
2021-06-23T15:26:11
197,398,055
0
0
null
null
null
null
UTF-8
Python
false
false
5,623
py
import copy import json #try: # from cStringIO import StringIO # python 2.x # pass #except ImportError: # from io import StringIO # python 3.x # pass from io import BytesIO import numpy as np import dg_file as dgf import dg_metadata as dgm import dataguzzler as dg from ..exporters.vrml import VRMLSeri...
[ "sdh4@iastate.edu" ]
sdh4@iastate.edu
3310e6775faa200891070352b482f64fce2ea800
54abd03baf2424343a56d11deae58516f9620c94
/backend/src/api/migrations/0015_auto_20190121_1917.py
7aa5536fce00bd5e6854725bda34bb3eef18354d
[]
no_license
krskibin/zpp
ce590fee81edf5ba1a565b6be302be7aea2e69f1
76572557435ba9583d46ae6f841d37d484c7c04e
refs/heads/master
2021-06-10T23:45:09.280420
2019-06-24T13:46:23
2019-06-24T13:46:23
153,451,428
1
0
null
2021-03-30T10:31:18
2018-10-17T12:14:52
Python
UTF-8
Python
false
false
457
py
# Generated by Django 2.1.2 on 2019-01-21 19:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0014_auto_20190121_1917'), ] operations = [ migrations.AlterField( model_name='image', name='name', ...
[ "noreply@github.com" ]
krskibin.noreply@github.com
478dec05c29f554e8d1effc63ad7264f99e95538
c236e0c3b34a81e75acb9591423b6aad9d6a22dd
/unitTestRunner.py
451a956edaed0cee0386f60f3b60470f1b9a6a7c
[]
no_license
abhijeetdtu/heimcharge
2cd68c9eaaf5b94206d310c8b8348133b5d4e77b
569a9d22916808ba8b67169a2822a91e05a051e9
refs/heads/master
2021-06-06T02:55:29.913134
2019-06-11T03:07:20
2019-06-11T03:07:20
131,433,168
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
import unittest from UnitTests.ChartPlotTest import * from UnitTests.GeoOpsTest import * from UnitTests.FileOpsTest import * if __name__ == '__main__': unittest.main(exit=False)
[ "abhijeetdtu@gmail.com" ]
abhijeetdtu@gmail.com
817651586fec5e60a2d025e0fd50748f7b3c55c8
ebcf0d04f6e8545891b3552deff2aa5abd833871
/authentication/migrations/0001_initial.py
67b8587dff175c204f5ecc17bd713555b3706968
[]
no_license
rpascual0812/webpay
0d854d2a47cb9cae7c7ba64d989abb309f2f4cfa
8c607c24662292a884e1ee31b7424bd7c00908a0
refs/heads/master
2021-01-10T04:29:37.221743
2016-01-03T15:29:21
2016-01-03T15:29:21
48,950,530
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Account', fields=[ ...
[ "rafael.pascual@team.acquireap.com" ]
rafael.pascual@team.acquireap.com
44c569b36803775a0c36187b8503777aef16b0ec
fa7790c45dbc1ee804011e9dff2d4ff424b9f3d6
/Searching and Sorting/Counting sort/Implementation.py
63a5b8f34c85215b5c59e2ea21c34fde374752dc
[]
no_license
KuroKousuii/Algorithms
bcdf75e58e20287e3162ef3302f8051604d7b7d6
3bf0250780c9d11c69546ca0da130fbbcada7e40
refs/heads/main
2023-05-31T07:41:07.399881
2021-06-16T09:32:16
2021-06-16T09:32:16
368,274,761
0
0
null
null
null
null
UTF-8
Python
false
false
1,177
py
# Python program for counting sort # The main function that sort the given string arr[] in # alphabetical order def countSort(arr): # The output character array that will have sorted arr output = [0 for i in range(len(arr))] # Create a count array to store count of inidividul # characters and initiali...
[ "84732337+KuroKousuii@users.noreply.github.com" ]
84732337+KuroKousuii@users.noreply.github.com
a1440a3c4c685e9974daa780c9e4a8ce9e887701
0517a6bb332d35e4a3ccb05ae2f4b692b2b4d297
/lesson_5/dz_1.py
5f5cecf14250790898099fb6ef8b599db78c5711
[]
no_license
VitalyBorin/GB
4a404c1a5ce6d54c85b8e87550bf61e215673e56
f8e09565c4adc41b88043f88c7185656aaecf44c
refs/heads/master
2023-02-24T10:24:47.034976
2021-01-19T21:51:07
2021-01-19T21:51:07
328,787,193
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
a = ' ' with open("file.txt", "w") as f: while a != '': a = input('Введите строку и нажмите Enter для записи строки в файл. При вводе пустой строки запись в файл прекратится') print(a, file=f)
[ "vitaly.borin@gmail.com" ]
vitaly.borin@gmail.com
a4cbfef2228e9ff39aa8907031dc7bb505c0b1da
4f72a15d3f922b2a526d6646dec7394212fb0b2d
/Foodie/download_data.py
52828fed853c742c16d07159394f0b9cd0c140ee
[]
no_license
panchenhui/Foodie
876c24580b829fda2274662a4ccad3d72a2c41b2
d5636d6b38a4cbf0623a577785860b2c64a062a0
refs/heads/master
2021-03-30T16:25:37.959942
2018-04-26T02:39:56
2018-04-26T02:39:56
120,586,280
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
from firebase import firebase class download(object): def __init__(self): self.firebase1 = firebase.FirebaseApplication('https://inf552-69068.firebaseio.com', None) self.data = self.firebase1.get('/business', None)
[ "pan.558@osu.edu" ]
pan.558@osu.edu
6d951c40f76555e0280a5e182bb2a631fa8b7936
a242274ab48b13785ac0a78bbc353c30b6eb7fd2
/MyLighthouse/lighthouse/parsers/drcov.py
a6321f6a1932f2ecccfff3ff63fafb067151a1ae
[ "LicenseRef-scancode-mulanpsl-1.0-en", "MulanPSL-1.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cbwang505/DIYDynamoRIO
da48c6a57ba6b21088e4bbd36804131de56f6f36
93efa58e802e17115f7623ef4e38a1e2ac856822
refs/heads/master
2022-07-28T23:58:11.929087
2021-08-27T00:45:53
2021-08-27T00:46:10
323,505,098
26
7
null
null
null
null
UTF-8
Python
false
false
15,625
py
#!/usr/bin/python import os import sys import mmap import struct import re from ctypes import * #------------------------------------------------------------------------------ # drcov log parser #------------------------------------------------------------------------------ class DrcovData(object): """ A drc...
[ "cbwang505@hotmail.com" ]
cbwang505@hotmail.com
f55af3d8a9ae98e223e9c99bf7e61ae465ce3918
2b70516185e8b102cf1a90d730bb068461fb7af8
/book/migrations/0018_auto_20191225_0718.py
a65a4fa4830fa4550943a9b6ef10abdbf81c0643
[]
no_license
KeeperNight/Roronoa
c4eb083e6e2c7311b0aca8e699df01dfd1028ae6
ffff84a4c95483a742806314004678002401fafc
refs/heads/master
2020-11-29T21:23:33.841854
2020-01-03T19:00:44
2020-01-03T19:00:44
230,218,681
0
0
null
2020-01-03T19:00:46
2019-12-26T07:39:30
HTML
UTF-8
Python
false
false
549
py
# Generated by Django 3.0.1 on 2019-12-25 15:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('book', '0017_auto_20191225_0716'), ] operations = [ migrations.RemoveField( model_name='collection', n...
[ "noreply@github.com" ]
KeeperNight.noreply@github.com
008880df49eaa648acea8a9abf9ffaa149112098
85c0813d837b0e0f189020a52348db1deffb0b11
/public/db/coupon_db.py
80daaa213acc609f25eb27d5f2237e1696469652
[]
no_license
reb00t2018/flask-reptiles
2d49fb27e718e305a7127e05047d865a1e7a6157
ac3832340219f922e3b9451c2e2b1e18773938c1
refs/heads/master
2020-07-03T03:05:56.991764
2019-06-11T01:19:14
2019-06-11T01:19:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,051
py
# -*- coding: utf-8 -*- __author__ = 'Apple' from public.db.participle_db import DataBase_PD class CouponDB(DataBase_PD): def __init__(self): super(CouponDB, self).__init__() def save_coupon(self, coupon): ''' 保存一条商品信息到数据库 :param coupon: :return: ...
[ "1991585851@qq.com" ]
1991585851@qq.com
f60ea6fc3ab345db095269b7fab77201af8d0c01
81da50f44ac78f99ab78125d36a7d508e07bea63
/old_approach/selection.py
7f3c4f51b05e29faf195f988240fc4812d3822ef
[]
no_license
pnovais/granada_2016
ebb859370921489e95dafcf21d58757f87ff53f5
11ad3d44b4f50606608fd89f8e295949818ffd3e
refs/heads/master
2021-03-22T04:36:25.768426
2016-12-02T16:42:21
2016-12-02T16:42:21
70,143,649
0
0
null
null
null
null
UTF-8
Python
false
false
1,648
py
import pandas as pd import numpy as np import time import sql as sql from sys import exit from astropy import units as u from astropy.coordinates import SkyCoord ini=time.time() #dfs = pd.read_table('califa_objs.txt', delim_whitespace = True) #dfs.columns = ['name', 'id', 'ra', 'dec', 'v500','v1200', 'comb', 'ned', ...
[ "patynovais@gmail.com" ]
patynovais@gmail.com
810d67acdeb4bd7d114d76c3722eb2212d1920c3
debb70d11887c636ad90c5cabb01e0933e66d642
/Thys/GUI Stuff/v3/Mayflower_v3.py
01038acdfa2196c6cd9004bf31a695b4210dd149
[]
no_license
james-barrett-44/COMP2100FinalProject
68a4bc31c618d3d2d5d75bd3ac581c6a39a25e19
36572c7bc7f0c8bbfdc2d48a1f04a647f59dd065
refs/heads/master
2020-08-24T20:11:46.533634
2019-12-12T22:08:09
2019-12-12T22:08:09
216,897,441
0
0
null
2019-11-23T03:05:48
2019-10-22T19:49:46
Python
UTF-8
Python
false
false
2,974
py
import tkinter as tk import socket from threading import Thread """ The class setup and frame switching is copied from https://www.youtube.com/watch?v=jBUpjijYtCk """ def get_own_ip(): """https://stackoverflow.com/questions/166506/finding-local-ip-addresses-using-pythons-stdlib?rq=1""" s = socket.socket(socke...
[ "thys.nadema@gmail.com" ]
thys.nadema@gmail.com
01e347f7f20a1e1ee957aee5bb968aca54863c14
0d09fb71910f1d9d625c7573f2f1f6e98bc3a3a4
/myblog/myblog/urls.py
39204b4f81e0f6e201bf79e07a635f99a99d8775
[]
no_license
jayhchoi/django-blog-project
0e28037885b9662839d98c4d8258be20e5405f68
5e6548b55a0b64908381e23588b8475f260b544f
refs/heads/master
2020-03-30T18:52:16.628981
2018-10-05T11:30:13
2018-10-05T11:30:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
876
py
"""myblog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/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-based ...
[ "33884497+jaychoi1619@users.noreply.github.com" ]
33884497+jaychoi1619@users.noreply.github.com
60b6c78bf5554244f344ae127983fba5b3b0324c
8de775551031c80337cdd978f1cfa6368ffba03d
/437_pathsumIII.py
a0b91d553c1205dc9d30de639b792412cb15a74e
[]
no_license
evilwarlock/leetcode
6ba531ae5dbe818c9ba87b5122c66d2cc8e2729e
819855b2d388e3ddd77f072d3108af7b4b902047
refs/heads/master
2022-11-30T03:58:41.199365
2020-08-18T18:07:07
2020-08-18T18:07:07
260,012,580
0
0
null
null
null
null
UTF-8
Python
false
false
515
py
class Solution: def dfs(self, root, sum, root_sum): if not root: return None root_sum += root.val self.result += self.count[root_sum] self.count[root_sum + sum] += 1 self.dfs(root.left, sum, root_sum) self.dfs(root.right, sum, root_sum) self.count[r...
[ "ceaxyz@gmail.com" ]
ceaxyz@gmail.com