blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
963ef364e7302a8abdfa88699d1651e909de9f20
fa9d96d3a648fef484a3603a25ff0d827515b351
/input_text.py
d45f18052b25f2829bfa80091a83eefe3671bc67
[]
no_license
Avanta8/OLD-Esolangs-Interpreter-IDE
04a93a736ede54a9c8c34c47ffda43fd42cc3105
025e8e1a2d1c2a654783101520ee0c7618e20e76
refs/heads/master
2020-11-24T17:21:11.429375
2020-01-13T21:09:57
2020-01-13T21:09:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,488
py
import codecs import re from string import printable from PyQt5.QtCore import Qt, QTimer from PyQt5.QtGui import (QTextCursor, QBrush, QTextCharFormat, QColor, ) from PyQt5.QtWidgets import (QPlainTextEdit, ...
[ "noreply@github.com" ]
noreply@github.com
bb7191718af6f79dcc797802896409e5072e9902
cd118552db7fdc384e91a6a6c0addc2d70e7055f
/virtual/bin/flask
2a0e7f139cc22cfdf49023d5b60fcc24916a961f
[]
no_license
IreriVIkki/BlogIP
f23098a059a75cb3dba0936b1e850b1aa292bf25
b2dc00e1ec15958efa78a7098cbc2ffdcdebc26e
refs/heads/master
2020-03-28T17:33:24.508120
2018-09-17T07:03:24
2018-09-17T07:03:24
148,800,977
1
1
null
null
null
null
UTF-8
Python
false
false
243
#!/home/vikki/Documents/BlogIP/virtual/bin/python # -*- coding: utf-8 -*- import re import sys from flask.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "wambsviki@gmail.com" ]
wambsviki@gmail.com
4306fb14cea7f5d7acac9f9cc96bc038fe9a694b
6b485bbee6d0a9ba8f877716b8484e092d1ef304
/Speedups Calculator/Version 1.0/GUI.py
82dab043390a161471fddb743d1b1009bb46be77
[]
no_license
ryan-superman/Python-Scripts
bd37a91221c302e52aa28df8c3d078ad157f8449
43928e136433c4252a73f6d7dbf7a6d28cbccf24
refs/heads/master
2022-01-29T03:24:56.493008
2022-01-13T18:38:45
2022-01-13T18:38:45
205,010,072
0
0
null
null
null
null
UTF-8
Python
false
false
4,192
py
import tkinter as tk from tkinter import font HEIGHT = 500 WIDTH = 600 root = tk.Tk() root.title("Speedups Calculator") canvas = tk.Canvas(root, height = HEIGHT, width = WIDTH) canvas.pack() def calculate(): one_min = int(e1.get()) five_min = (int(e2.get())) * 5 ten_min = (int(...
[ "noreply@github.com" ]
noreply@github.com
eac708ffa7a86cfb2738a99ca7a5cd8f18da40f5
8846510b8a3416d8ae078f9b96e16eab3e6ee34b
/labs/lab2/src/milestone1/crap/packets_crap.py
faa5360eb777c9ea172b24550f178d7536874b08
[]
no_license
wdpen/NetSecu
e0c994730a39715f518b6fc755a5ea59d996f078
d3739aba7122835e9fd6cea76473338a9324e894
refs/heads/master
2022-04-02T00:39:29.890307
2019-12-11T05:24:40
2019-12-11T05:24:40
222,706,258
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
from playground.network.packet import PacketType from playground.network.packet.fieldtypes import UINT8, STRING, BUFFER, UINT16, BOOL, UINT32 from playground.network.packet.fieldtypes.attributes import Optional class CrapPacketType(PacketType): DEFINITION_IDENTIFIER = "crap" DEFINITION_VERSION = "1.0" cl...
[ "noreply@github.com" ]
noreply@github.com
54a94dfcd4d95d38b10e6e6b2d07ebb61d543d05
bda35e0c098d7dc2b45933d630d663475ff2244a
/compiler/test_code.py
d4ea122cdec2a78d3f657043358b6cc7f5f1ec3f
[ "MIT" ]
permissive
ArquiII-2021-S1/ASIPVectorial
bd7e40705e546bb0d110759439c8fde5c01ea1e2
5567387a77243bb47517d4c1162f5a98071a8cf8
refs/heads/main
2023-05-09T05:54:44.676133
2021-06-03T19:20:55
2021-06-03T19:20:55
367,105,774
0
0
null
null
null
null
UTF-8
Python
false
false
2,186
py
from simulator import simulate, RAM, registers """ Loads file's data into the memory, starting with an offset """ def loadData(filename, offset): file = open(filename, "r") # Opens the file data = file.read().split(" ") # Splits the text for i in range(len(data)): RAM[offset + i] = int(dat...
[ "arturocv16@gmail.com" ]
arturocv16@gmail.com
6a87a1c59d93685e52fc879b8f92126541db910f
2aa3a739ce10c95013bd6b772eb4e5925d7890c7
/machin learning/lessons/qaos.py
e7ed56bf53f7998fd1b275af2a30474271916d51
[]
no_license
Arina-prog/Python_homeworks
6aab936baa398d8a0287b82c8f741c11bd1d3973
55dc05afb64789ad8f0115319f6f8ceeed415f6c
refs/heads/main
2023-04-27T17:02:59.351350
2021-05-18T19:56:05
2021-05-18T19:56:05
310,894,847
0
0
null
2020-11-07T18:02:47
2020-11-07T17:16:55
null
UTF-8
Python
false
false
1,092
py
import pandas as pd from sklearn.preprocessing import LabelEncoder from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeClassifier from sklearn import tree import matplotlib.pyplot as plt from sklearn.metrics import accuracy_score data = pd.read_csv("diabetes_csv.csv") print(data....
[ "arina.saiyan91@gmail.com" ]
arina.saiyan91@gmail.com
78c5ce3fa7858378ce2b339bb0791b8bab7f57ea
25716ac81005edffc52c22671b07dd56bc676761
/streaming-api/direct_message.py
f4607f316f8b67576350b5b04f7508821a6ee49b
[]
no_license
hartsick/twitter-py-sample-responses
23f1c5bedd0bd27592880c1bf37b71303be60ce8
286df4c2f72ecad6b1620e1bfe8a862005d2da40
refs/heads/master
2021-01-19T10:58:31.706115
2014-12-31T17:48:29
2014-12-31T17:48:29
28,671,214
5
0
null
null
null
null
UTF-8
Python
false
false
4,427
py
{ "direct_message": { "id_str": "545466373041029120", "text": "sfasf", "recipient": { "profile_text_color": "333333", "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", "name": "emotisponge", "verified": ...
[ "christa.hartsock@gmail.com" ]
christa.hartsock@gmail.com
7c98ed98894f64696da1143b824cb657d79d58ba
86dc940f511c5550447acb0a44b2fd845ad64db5
/dymos/utils/test/test_misc.py
312443e4853be677b0048270fef16831493b1f81
[ "Apache-2.0" ]
permissive
thearn/dymos
5900c9e456d4bed32082aa787baff63ab9caf8b0
1f36a4472fdeb93d337904955c012f254a5db06c
refs/heads/master
2020-04-06T15:23:05.374083
2019-11-26T14:51:01
2019-11-26T14:51:01
157,576,764
0
0
null
2018-11-14T16:20:44
2018-11-14T16:20:43
null
UTF-8
Python
false
false
682
py
from __future__ import print_function, division, absolute_import import unittest from dymos.utils.misc import get_rate_units class TestMisc(unittest.TestCase): def test_get_rate_units(self): rate_units = get_rate_units('m', 's', deriv=1) self.assertEqual(rate_units, 'm/s') rate2_units...
[ "noreply@github.com" ]
noreply@github.com
576e4dd9db1bd5772535f8baac36843c7d73ac12
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/codewar/_codewarsPython-master/[beta]Mysterious function.py
6b327c06bd9d4e69da3fa358319279e7d309c1f3
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
118
py
___ get_num(n r.. s..([2 __ c __ '8' ____ 1 ___ c __ s..(n) __ c __ ('0','6','8','9')]) print(get_num(300
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
5ead7ef70e8badab5c0180200730bd3653597dab
76133e27e5088c278ba0542a9e0bf998273067c1
/iZenAPI/models/retro.py
730a2e24c8bb37d5b3e826d4530a0d6c7e3516e9
[]
no_license
klb417/i-Zen-api
e17f546849f03947f77b3ff38324f72a31a1b4cb
c65c978370c51219344a631a94910083d291532f
refs/heads/master
2022-12-09T10:44:33.541192
2020-03-31T18:34:40
2020-03-31T18:34:40
245,912,363
1
0
null
2022-12-08T03:51:39
2020-03-09T00:42:18
Python
UTF-8
Python
false
false
636
py
from django.db import models from .progression import Progression from django.contrib.auth.models import User class Retro(models.Model): name = models.CharField(max_length=50) created_at = models.DateTimeField(auto_now=False, auto_now_add=True) progression = models.ForeignKey( Progression, verbose...
[ "klb417@gmail.com" ]
klb417@gmail.com
a9ba472f2edf7d86bd6237c5e0a8b230fd58eeb7
704da68062145c0e1d016256bbe86f2286c6d149
/tests/test_models/test_user.py
e14bb600f7e57395687239482e89920eacc3d550
[]
no_license
TMcMac/AirBnB_clone_old
bf39a4cb80fc39390d2af03861938954c24dc742
5130e5b08ca9d301600ea963f126d4e124b305cd
refs/heads/master
2023-01-03T15:09:53.609497
2020-10-29T20:04:41
2020-10-29T20:04:41
274,945,103
0
0
null
null
null
null
UTF-8
Python
false
false
4,533
py
#!/usr/bin/python3 """Unit test for User class""" import unittest from models.base_model import BaseModel from models.user import User class TestBaseModel(unittest.TestCase): """Unit test for User class""" @classmethod def setUp(cls): print('SetupClass') @classmethod def tearDown(cls): ...
[ "vietnamtran@gmail.com" ]
vietnamtran@gmail.com
30fd603a84924b08cde18f51e2f2dbdd96b2b4cd
9ce10d79db183df61c570c215ba91a7e38dc4101
/src/sync_worker.py
e1418a3305d589983cba8c16927572f4bda0fbb6
[]
no_license
mcqueenorama/jobz
f6493474c9884153fc891989571aae31a7d6987f
9eabb5edc7a3b7026a6dc8f11d05cae38e2770af
refs/heads/master
2021-01-10T20:29:55.248480
2013-11-04T01:17:57
2013-11-04T01:17:57
14,096,477
0
1
null
null
null
null
UTF-8
Python
false
false
3,655
py
#!/usr/bin/env python import os import re import sys import socket import syslog import signal import argparse import time from datetime import date import commands import json import yaml from mongrel2 import handler import mongrel2.tnetstrings from worker import load_job_db from worker import load_job_info from w...
[ "bmcqueen@walmartlabs.com" ]
bmcqueen@walmartlabs.com
c7f2640d95e49857192b2bea7c4f7780d63c66b6
a084384c78bce71117330d66c45e1c577f148f21
/bias.py
3a4476514a93b1a78dc453d5bf062c33eedea7bf
[]
no_license
hk3427/Sentiment-analyser-nltk-twitterAPI
7619546a9f0f33a51117ed44d32b21806b236483
28979e786fd91901332ff215f8ef123198b2a6d2
refs/heads/master
2021-09-27T05:21:41.634856
2017-05-01T05:58:02
2017-05-01T05:58:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,835
py
import nltk import random from nltk.corpus import movie_reviews import pickle from nltk.classify.scikitlearn import SklearnClassifier from sklearn.naive_bayes import MultinomialNB,BernoulliNB from sklearn.linear_model import LogisticRegression,SGDClassifier from sklearn.svm import SVC, LinearSVC, NuSVC from nltk.class...
[ "kumarkush36@gmail.com" ]
kumarkush36@gmail.com
7cd944fd839dbf5809fd7a374ef7fe7a49160f7e
57c6d71cb82f00d51705e25e1d8b1c2a130cf7f7
/ex02_02.py
c01fd01329827ccab6bfe22d43c20eac3015c111
[]
no_license
jgramelb/Python-learning
80fda893324ce13ebe2657f69452c8a41c573ba4
ecc371178846686a659b06af9b1336b3ee5aaa47
refs/heads/master
2021-09-07T16:07:56.935425
2018-02-25T20:26:51
2018-02-25T20:26:51
109,454,537
0
1
null
null
null
null
UTF-8
Python
false
false
153
py
#Exercise 2: Write a program that uses input to prompt a user for their name and then welcomes them. name=input("Enter your name:") print("Hello",name)
[ "noreply@github.com" ]
noreply@github.com
4d7ab131cdae3ec256805abdcdc119ec558eb76e
c4d9eb0ad60035bfb2824b83fd678264706a7397
/chp02_compiling/setup.py
01e3fe7369d025116cc2b83173c949bf477bf81a
[]
no_license
ccwang002/learn_cython
944156c49950a05ba85ad7e52cd9f896e8628398
30666eac159192511460c8afcabb674a25ee39a1
refs/heads/master
2016-09-05T18:06:10.258138
2015-08-01T02:20:59
2015-08-01T02:21:57
27,965,378
0
0
null
null
null
null
UTF-8
Python
false
false
1,199
py
# from distutils.core import setup from setuptools import setup, Extension from Cython.Build import cythonize exts = [ # C code self-contained Extension( name="fib", sources=['fib.pyx'], ), # statically link to lib/cfib.c Extension( name="wrap_fib", sources=["lib/cfi...
[ "ccwang002@gmail.com" ]
ccwang002@gmail.com
97743cb1f373612199548c0a7a0999c2a8642e77
c30e2b2e1b7876af01afc11e70b9bde66ebc6d6a
/conftest.py
9c646ac4834f556a9c633eecf8706d0f05ad49ad
[]
no_license
Jumas-Cola/stepik_selenium_test_project
7aad125be2623520c6bfe93b34438ffd12de4303
8bc920a25ff83883dc6dd653f3dec7ea25350f27
refs/heads/master
2020-06-11T10:49:45.344813
2019-06-28T20:04:08
2019-06-28T20:04:08
193,936,673
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
import pytest from selenium import webdriver from selenium.webdriver.chrome.options import Options def pytest_addoption(parser): parser.addoption('--language', action='store', default='en-gb', help='Choose language of browser.\ For example: --language="es"') @pyte...
[ "kbbyfl91@gmail.com" ]
kbbyfl91@gmail.com
8a6d88f130ae35ca9d5a27e32c5c8329b88f5926
a9792f3fcd958879db467ee6519443038cf7c783
/work-in-progress/basic_filtering.py
582c76e44d3d9075212efda15446b4072f677006
[ "MIT" ]
permissive
asukumari/Python-and-Microscopy
d29d37d01288b4ea0434c31cdd10fdb4e7eafd66
d2809beca1f140a45087be18041748249230cc0a
refs/heads/master
2022-07-08T01:01:58.641007
2020-05-15T14:03:47
2020-05-15T14:03:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
967
py
# -*- coding: utf-8 -*- """ Created on Thu Feb 20 15:31:30 2020 @author: ykrempp """ from skimage import io, img_as_float import numpy as np import cv2 import matplotlib.pyplot as plt #import image and convert to float img = io.imread('images/embryos_noisy.tif') float_img = img_as_float(img) #build kernels kernel...
[ "yannick.krempp@unil.ch" ]
yannick.krempp@unil.ch
b4e02b0acdf60bf8bfb4af0cb99e11749ca72fa5
1384435f0e0cf706db82d0672d5fe9e3bc0cf5a8
/agilo/scrum/burndown/model.py
00071987a48bf3f3696fb7530402572861bc68c7
[]
no_license
djangsters/agilo
1e85d776ab4ec2fa67a6366e72206bbad2930226
1059b76554363004887b2a60953957f413b80bb0
refs/heads/master
2016-09-05T12:16:51.476308
2013-12-18T21:19:09
2013-12-18T21:19:09
15,294,469
0
0
null
null
null
null
UTF-8
Python
false
false
16,677
py
# -*- encoding: utf-8 -*- # Copyright 2010 Agile42 GmbH, Berlin (Germany) # Copyright 2011 Agilo Software GmbH 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 # ...
[ "bastir@gmail.com" ]
bastir@gmail.com
e8ef76c8d5b11d2660a29db4545c394c2dfe6351
fe5b4f96a8dd6ba4fe0fe6de68db14f0abc4ff7f
/script/CAPITAL/upload.py
61ab4432f2ec1df0de9b7c8c8fd67f703639e0f7
[]
no_license
wangbo0316/new_ro
b3ec4eca0a5935820e228608a29969b129b10223
1141079a3ae68a44651d88110c8710ffbfc9b40b
refs/heads/master
2020-04-19T08:15:17.442576
2019-01-31T09:38:23
2019-01-31T09:38:23
168,070,679
0
0
null
null
null
null
UTF-8
Python
false
false
1,424
py
from util import MySQLConnector,ExcelLoader from xlrd.xldate import xldate_as_datetime def UploadCAPITAL(path,c): ''' 上传综资清单 :param path: :param c: :return: ''' c.p('正在启动校验程序...') c.sleep(1) E = ExcelLoader.ExcelLoader(path,0) first_row = E.row_values(0) capital_index = {} ...
[ "wangbo@lcservis.com" ]
wangbo@lcservis.com
a8ad2ad4050925e02f37ff0841869c81a863dd0c
14d8418ca5990217be67aee89fdaa310db03fbba
/models/collector_pagination_response.py
f8002358f1839b81d410471e69eb2cd75df52a25
[ "Apache-2.0" ]
permissive
sachanta/lm-sdk-python
3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0
e476d415c7279457f79b5d032a73d950af2fe96b
refs/heads/master
2023-08-03T08:39:42.842790
2021-09-13T07:20:56
2021-09-13T07:20:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,155
py
# coding: utf-8 """ LogicMonitor REST API LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account...
[ "bamboo@build01.us-west-1.logicmonitor.net" ]
bamboo@build01.us-west-1.logicmonitor.net
79960bd33991298f5de70c21caf54a83e517946c
4cc9d84c076c0001597c1187a05c1b8df79fa077
/link_analysis.py
0afd7c85ba917e876e1f7b3afef9b7a4778752d2
[]
no_license
NicolasBP/Banking-and-Finance-Team-Project-Link-Analysis
1978a2fd77adf08064fc57fe58fffa2dd6b3cb5c
b3f3eb204d25eabf656b8e8c15cf50f78c01cf5a
refs/heads/master
2020-03-07T18:35:34.921045
2018-04-01T15:51:29
2018-04-01T15:51:29
127,644,800
0
0
null
null
null
null
UTF-8
Python
false
false
4,272
py
import pandas as pd import numpy as np import json import requests #products_services = ['checking_accounts', 'credit_cards', 'investing', 'loans', 'wires'] products_services = ['loans'] key = 'XYZXYZXYZXYZXYZXYZ' cx = 'XYZXYZXYZXYZXYZXYZXYZ' number_of_batches = 5 number_of_queries_per_batch = 1 url = "https://www...
[ "nicholasbolanos@gmail.com" ]
nicholasbolanos@gmail.com
1f40a950463b7987030dd8e8eb8b668506c8e112
920f0fbb7064f2017ff62da372eaf79ddcc9035b
/lc_ladder/Basic_Algo/data-struture/Kth_Largest_Element.py
263f9c80c8d59cb0954144b77ec4601158323480
[]
no_license
JenZhen/LC
b29a1c45d8c905680c7b4ad0017516b3dca80cc4
85219de95e41551fce5af816b66643495fe51e01
refs/heads/master
2021-06-03T10:03:02.901376
2020-08-05T19:44:48
2020-08-05T19:44:48
104,683,578
3
1
null
2020-08-05T19:44:50
2017-09-24T23:30:35
Python
UTF-8
Python
false
false
3,106
py
#!/usr/bin/python # http://www.lintcode.com/en/problem/kth-largest-element/ # Example # In array [9,3,2,4,8], the 3rd largest element is 4. # In array [1,2,3,4,5], the 1st largest element is 5, 2nd largest element is 4, 3rd largest element is 3 and etc. """ Algo: QuickSelect D.S.: Heap, Array Solution1: Heap Find la...
[ "jenzhen.nyc89@yahoo.com" ]
jenzhen.nyc89@yahoo.com
4fd18aa08ea26bb71cfe0f3e50af1b3194892ff2
902dea88ec336851f2c325d44a0dd0eaf411fb87
/day1/strings/19.py
0e66b0d530e704999c4e711edd826992dae3e877
[]
no_license
shobhit-nigam/tsip_pydoge
34d8e03d0744c2eff7615ae94bd6998739ce2bfd
bff5b24e1e93b5b41dfcb913cee280d1ee53bbf5
refs/heads/main
2023-07-19T05:21:35.459518
2021-09-06T12:59:22
2021-09-06T12:59:22
399,728,155
0
0
null
null
null
null
UTF-8
Python
false
false
144
py
# double & single quotes # vara = "I'am Manish" varb = 'I\'am Manish' print("vara =", vara) print("varb =", varb) # error #varc = 'pushpa"
[ "noreply@github.com" ]
noreply@github.com
b6250476b579a0d0ee5585b0f82e06ea882db68d
de64154c4a968ab8c04390938edc300f2b52f129
/tests/lldb/runtest.py
71ee019c66d0c9c37232d6e655065a37bdde5e49
[ "Apache-2.0" ]
permissive
curliph/NyuziProcessor
7364a83a52b3f1d461c908a9ff88ee222be08c25
2d7cc748a8388a5be4c28d3cb34786bc9f0b801a
refs/heads/master
2020-04-10T15:16:51.874141
2018-12-09T22:40:55
2018-12-09T22:40:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,708
py
#!/usr/bin/env python3 # # Copyright 2011-2015 Jeff Bush # # 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 l...
[ "jeffbush001@gmail.com" ]
jeffbush001@gmail.com
aeecab367781f4878a1b6504d615a9708c4d828f
e9b2e13b2d3de7e551c22274ff24b3cd6d592c9f
/Task 2 - USA.gov Data from Bitly/[Script]Task 2 - USA.gov Data from Bitly.py
0078874d86b14e004a2dd7accf34aaf3882e192d
[]
no_license
FaridSharaf/Python-for-Data-Science
7b2359023b1dd64be02c2fba891125bdf26d66b8
70eea6409d5d479f71b0c2b7c403046054f5a978
refs/heads/main
2023-02-26T12:59:50.996859
2021-02-02T15:39:03
2021-02-02T15:39:03
327,413,575
0
0
null
null
null
null
UTF-8
Python
false
false
1,913
py
import pandas as pd from datetime import datetime import os import json # load json file into a list records = [json.loads(line) for line in open("usa.gov_click_data.json")] #convert the list to a dataframe data = pd.json_normalize(records) # getting web browser and operating systems information data['web_browser'] =...
[ "noreply@github.com" ]
noreply@github.com
a6e0a619fb8ccad6c68753739f72ef7217d9a4a8
95689182691599b2e74ca33b36d2828a01ec5889
/proyectos_de_ley/pdl/migrations/0002_proyecto_legislatura.py
f73ae0753f3b06383b38193a5fcf041fd0a05384
[ "MIT" ]
permissive
proyectosdeley/proyectos_de_ley
2392c6f3fdefc88d355f37e615ddb5ddc70c5321
aed3f09dd2e41711bdcb27aec66a1a0d7896bb35
refs/heads/master
2021-07-14T12:33:33.793325
2020-07-26T19:44:53
2020-07-26T19:44:53
23,754,905
13
10
MIT
2020-07-26T19:44:54
2014-09-07T07:32:53
Python
UTF-8
Python
false
false
492
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-09-02 20:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pdl', '0001_initial'), ] operations = [ migrations.AddField( mod...
[ "mycalesis@gmail.com" ]
mycalesis@gmail.com
7eabf17dbaccbfaf4b782657965ea1bc1aaebdf7
c317f99691f549b393562db200b1e9504ce11f95
/algorithms_learn/what_can_be_computed/src/convertSatTo3Sat.py
4ae664cf883f08c293e4acd4fed2ec99d750493a
[ "CC-BY-4.0" ]
permissive
RRisto/learning
5349f9d3466150dbec0f4b287c13333b02845b11
618648f63a09bf946a50e896de8aed0f68b5144a
refs/heads/master
2023-09-01T00:47:23.664697
2023-08-30T17:56:48
2023-08-30T17:56:48
102,286,332
15
24
null
2023-07-06T21:22:48
2017-09-03T18:42:58
Jupyter Notebook
UTF-8
Python
false
false
6,474
py
# SISO program convertSatTo3Sat.py # Convert an instance of SAT into an # equivalent instance of 3-SAT. # inString: an instance of SAT, formatted as described in the textbook # and sat.py. # returns: an instance of 3SAT in the same string format. # Example: # >>> convertSatTo3Sat('(x1 OR x2 OR NOT x3 OR NOT x4)') #...
[ "ristohinno@gmail.com" ]
ristohinno@gmail.com
51b36a04caec338e1885e9ea1791c5c6c0d3e2af
d8d1a9b2bec5b2679129c246cf58acc836e4355b
/pytest_resource_path/absolute_path_factory.py
117b373b80071080391d19d48136aa6e5f7f39ef
[ "MIT" ]
permissive
yukihiko-shinoda/pytest-resource-path
0ac0d612887f453b793ec114b65eb9613817b5cc
bc56c4b5f2c8f3138baeac7f145717f6a70af7b6
refs/heads/master
2023-04-15T21:05:18.643053
2021-05-01T04:27:12
2021-05-01T04:27:12
261,375,368
10
0
MIT
2021-05-01T02:45:39
2020-05-05T06:08:49
Python
UTF-8
Python
false
false
1,451
py
"""Implements creating process for absolute path to argument of constructor.""" from pathlib import Path from types import FunctionType, MethodType from typing import Union from pytest_resource_path.exceptions import LogicError from pytest_resource_path.path_factory import PathFactory __all__ = ["AbsolutePathFactory"...
[ "yuk.hik.future@gmail.com" ]
yuk.hik.future@gmail.com
96b8a94d383b050b46b5aab240707780aa912e09
31f1b0897d07b3db06714dc73a89e12cb156707a
/aoc2015/02.py
c35c657c03a38aedbdc4ff2859bb272f4959c288
[ "MIT" ]
permissive
0x8b/competitive-programming
d30bc2d28248ef0405c5223b25425415e5e940ba
45e1a0e2be68950505c0a75218715bd3132a428b
refs/heads/master
2021-06-27T17:23:48.431568
2020-12-01T08:47:33
2020-12-01T08:47:33
162,891,698
4
1
null
null
null
null
UTF-8
Python
false
false
397
py
#!/usr/bin/env python import fileinput dims = [tuple(map(int, line.split("x"))) for line in fileinput.input()] area = [] ribbon = [] for l, w, h in dims: l, w, h = sorted((l, w, h)) extra = l * w area.append(2 * (l * w + w * h + l * h) + extra) ribbon.append(2 * (l + w) + (l * w * h)) total = sum(...
[ "temporary.gumienny@gmail.com" ]
temporary.gumienny@gmail.com
bcf733d41c2f3e5cab5d6dbd0c43cb3ced925373
7265f3b6a35d3b96608f202a23b16899841c22b4
/748.py
3a84ef69d18ea021e4f4c6f5e70718cde11d6e65
[]
no_license
jiegusc/LeetCode
bbc4288f90194f0825ba75ea9c4ab028d232fa71
ae2a8c6875cafa1ab9bb3ac9c859fd4163b0d21e
refs/heads/master
2020-08-28T07:01:39.787345
2019-11-17T05:54:27
2019-11-17T05:54:27
217,630,401
0
0
null
null
null
null
UTF-8
Python
false
false
853
py
from collections import Counter from typing import List class Solution: def shortestCompletingWord(self, licensePlate: str, words: List[str]) -> str: plate = Counter([c for c in licensePlate.lower() if c.isalpha()]) ans = "" for word in words: b = Counter(word) a = pl...
[ "jieg@usc.edu" ]
jieg@usc.edu
da86bc277ea5aa544000df55b125f56557dac4ce
baf7f3d45c2a2e8b59e7cc738b7c63e05ee9a533
/www/arcade.py
63ac03e473829eddbf208eb4aac2454458320a92
[]
no_license
BrownBeard/ElGrupo
12fd5145dd8ff644a9fa2ddd83a432541b43b860
5957cd222ab0bea8dae11e8a277adfd538c8651f
refs/heads/master
2021-01-01T06:49:21.833885
2009-11-24T02:05:10
2009-11-24T02:05:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,341
py
#!/usr/bin/python import sys import cgi import cgitb; cgitb.enable() import MySQLdb import ElGrupo def main(): title='Arcade' # Set filenames conffilename = '/home/adam/ElGrupo/conf.txt' # Load it gs = ElGrupo.Session(conffilename) gs.db.connect() gs.accountCheck() gs.printHeader(title) games = g...
[ "adam.seyfarth@gmail.com" ]
adam.seyfarth@gmail.com
76e4ab7e2e7e0d79772955f2069c7b2dd918f719
878c2e1d14c6e5050ce48abaf269d0013a1501ee
/Project38.py
0d4a9580f000a5b3ca6e2b61df6d6844a8880409
[]
no_license
MichaelChristenson/Euler
5b3331a12bd0e6a75d20ce5133b183fa90405c44
fb4972ce66dca1b0e75d967def50d267da5ddf09
refs/heads/master
2020-12-01T10:11:09.505425
2016-08-28T17:42:12
2016-08-28T17:42:12
66,714,358
0
0
null
null
null
null
UTF-8
Python
false
false
476
py
from factor import * def test38(): ret = 0 for i in range(100000): digit = [] n = 1 while len(digit) < 9: digit += disassemble(i*n) n += 1 if digit != unique(digit): digit = [] break if 0 in digit: ...
[ "mochristenson@gmail.com" ]
mochristenson@gmail.com
82f52210db3d2ed623c1aa965475dfac4f433892
a3cc7286d4a319cb76f3a44a593c4a18e5ddc104
/lib/surface/config/configurations/list.py
a9236025e57f42c19c3d5a61550bb922e874e63a
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
jordanistan/Google-Cloud-SDK
f2c6bb7abc2f33b9dfaec5de792aa1be91154099
42b9d7914c36a30d1e4b84ae2925df7edeca9962
refs/heads/master
2023-09-01T01:24:53.495537
2023-08-22T01:12:23
2023-08-22T01:12:23
127,072,491
0
1
NOASSERTION
2023-08-22T01:12:24
2018-03-28T02:31:19
Python
UTF-8
Python
false
false
2,060
py
# Copyright 2015 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...
[ "jordan.robison@gmail.com" ]
jordan.robison@gmail.com
a48f5d7a47297a3004b4066f232a6791173b237c
7caa438706a423dd9779a81f8345fcf1ec11e921
/NXT-Python/pyglet-1.2.4/tests/window/WINDOW_SET_ICON.py
bdeac31fc404c7ca4aa58750eff8f810ef925d2f
[ "BSD-3-Clause" ]
permissive
tamarinvs19/python-learning
5dd2582f5dc504e19a53e9176677adc5170778b0
1e514ad7ca8f3d2e2f785b11b0be4d57696dc1e9
refs/heads/master
2021-07-15T13:23:24.238594
2021-07-08T07:07:21
2021-07-08T07:07:21
120,604,826
3
0
null
null
null
null
UTF-8
Python
false
false
990
py
#!/usr/bin/env python '''Test that window icon can be set. Expected behaviour: One window will be opened. It will have an icon depicting a yellow "A". Close the window or press ESC to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: WINDOW_SET_MOUSE_CURSOR.py 717 2007-03-03 07:...
[ "slavabarsuk@ya.ru" ]
slavabarsuk@ya.ru
85e08674352dd250a820ac26abf6ece42c94d8db
36f4f3a79b4eade166cea1d94f80c9498475a789
/confusionMatrix.py
9db8003e34a0113b9a8dee7a5ab377ee31c379f5
[]
no_license
fedetesone/text_comparison
1ba36c08a3d942a85d39bb21e3ac6abeae47d2b7
07e9bc30b930019287d29944d574a258c34510b8
refs/heads/master
2021-06-21T17:23:41.232778
2017-08-21T12:12:36
2017-08-21T12:12:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,019
py
import os, os.path, csv import numpy as np from argparse import ArgumentParser from datetime import datetime from multiprocessing import Array from utils import common_utils as cu from utils import general_utils as gu from comparators.ComparatorFactory import ComparatorFactory QUESTION1_COL = 1 QUESTION2_COL = 2 def...
[ "gleale@frro.utn.edu.ar" ]
gleale@frro.utn.edu.ar
2f2f37808d18c375de2161f33f361a7206bf124d
29d09c634ffdd8cab13631d62bc6e3ad00df49bf
/Algorithm/swexpert/1249_보급로건설.py
0f9f48542b53f0796bb44539d57d7850a9539998
[]
no_license
kim-taewoo/TIL_PUBLIC
f1d32c3b4f46344c1c99f02e95cc6d2a888a0374
ae86b542f8b1805b5dd103576d6538e3b1f5b9f4
refs/heads/master
2021-09-12T04:22:52.219301
2021-08-28T16:14:11
2021-08-28T16:14:11
237,408,159
2
0
null
null
null
null
UTF-8
Python
false
false
672
py
from collections import deque dr = (-1,0,1,0) dc = (0,1,0,-1) T = int(input()) for t in range(1, T+1): n = int(input()) board = [list(map(int, list(input()))) for _ in range(n)] chk = [[21470000 for _ in range(n)] for __ in range(n)] chk[0][0] = 0 q = deque((0,0)) while q: r, c = q.pople...
[ "acoustic0419@gmail.com" ]
acoustic0419@gmail.com
b4ca34cc14fe2f16d01b462a5870c0073ce4817b
3b2940c38412e5216527e35093396470060cca2f
/top/api/rest/TmcGroupAddRequest.py
0cfb70b6b6c82a626717aa0186205a08ca854def
[]
no_license
akingthink/goods
842eb09daddc2611868b01ebd6e330e5dd7d50be
ffdb5868a8df5c2935fc6142edcdf4c661c84dca
refs/heads/master
2021-01-10T14:22:54.061570
2016-03-04T09:48:24
2016-03-04T09:48:24
45,093,302
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
''' Created by auto_sdk on 2015-01-20 12:44:32 ''' from top.api.base import RestApi class TmcGroupAddRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.group_name = None self.nicks = None def getapiname(self): return 'taobao.tmc.group....
[ "yangwenjin@T4F-MBP-17.local" ]
yangwenjin@T4F-MBP-17.local
941083e324bb5e8f93f3c8d1192cd5dacd22c422
75566ef3423c72fe9e73075dfe29df172b65a28c
/src/scraper/database.py
f2d4c88d42deffe9bfa9459831dc37dae9483bca
[]
no_license
bicsi/cpaggregator
7020663305eeff8690e92da64fc796926b12fe31
b6459fe33c19dc2020b29470e457f0666b0ff212
refs/heads/master
2022-12-12T10:24:38.756844
2020-11-11T13:53:30
2020-11-11T13:53:30
153,731,264
2
1
null
2022-12-08T01:15:28
2018-10-19T05:33:06
CSS
UTF-8
Python
false
false
2,178
py
import os from pprint import pprint from pymongo import MongoClient, ReplaceOne from pymongo.errors import BulkWriteError from core.logging import log def __insert_many_silent(coll, iterable, unique_fields): requests = [] for elem in iterable: find_dict = {field: elem[field] for field in unique_fiel...
[ "lucianbicsi@gmail.com" ]
lucianbicsi@gmail.com
cacf6e76d8f397112c39a82885e33786e14d34f2
1f463eac68eb16355684a0809ece5ec6e202fd11
/ecom/migrations/0027_alter_user_date.py
36a92c4753c88ebec19245a80cc85582795c274c
[]
no_license
b-akhad/Bigbazar
3108627c14bfdbec366238433c99d7296aa2867a
717185333565279fc19e7c5448d963cc91dfc492
refs/heads/main
2023-09-03T07:29:51.441952
2021-10-20T04:35:43
2021-10-20T04:35:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
# Generated by Django 3.2.6 on 2021-08-22 12:53 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('ecom', '0026_alter_user_date'), ] operations = [ migrations.AlterField( model_name='user', ...
[ "bakhadiroff5101@gmail.com" ]
bakhadiroff5101@gmail.com
470f6d070221d4f565e9e41f2d7150528ee09a63
9a3075936c9e40b6b1544b65fed7137d4f1d27ea
/sample_info/scripts/compute_influence_functions_brute_force.py
bb1e6f728d7823fcc6c993eed6d43b109f0f3e8a
[ "Apache-2.0" ]
permissive
Seunghee-Koh/aws-cv-unique-information
7df77e0e640553e9a08f4d55a693b2fbacf07e47
8c3f87bb20fd32d80fc432ffd95251c3e1b76c6d
refs/heads/master
2023-03-21T03:04:39.751226
2021-03-09T19:20:44
2021-03-09T19:20:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,646
py
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
[ "aachille@amazon.com" ]
aachille@amazon.com
0e2667548768a98d8cd9639507b4e1630003b9ff
dd47f3cbdc1ca987dd30275d6612f34f7cd69885
/lesson_3/lesson_3_4.py
1cc4cf843fc155d93eca6b7378d86d6a458e5eea
[]
no_license
ek01012020/python_base
3c7a6db6dc5039b07e504eae4b78e171989d3e61
67ba00581361322bae151e61cf9e41bcaa3aa456
refs/heads/master
2023-01-20T02:33:43.434356
2020-11-20T10:14:07
2020-11-20T10:14:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,089
py
'''Программа принимает действительное положительное число x и целое отрицательное число y. Необходимо выполнить возведение числа x в степень y. Задание необходимо реализовать в виде функции my_func(x, y). При решении задания необходимо обойтись без встроенной функции возведения числа в степень. Подсказка: попробуйте ре...
[ "ek01012020@gmail.com" ]
ek01012020@gmail.com
b0d6a2ec5286b2035b5d8344894f88d42df75d1b
0f249fcf9a62da298332e1145547b62bac8f7e46
/joyce.py
d669d637a1d5d016ff7903e0021731983a07239f
[]
no_license
jleeeeee/repo-fork-exercise-2021fall-02
f8f3c2c51702b585bf0ad13d9aceebc29a6607db
338191f62389d0c3fa546bf27d14c0fed62b27e4
refs/heads/main
2023-08-13T13:45:59.917253
2021-09-09T22:59:16
2021-09-09T22:59:16
404,891,129
0
0
null
2021-09-09T22:52:51
2021-09-09T22:52:50
null
UTF-8
Python
false
false
20
py
print('hello hello')
[ "77594057+jleeeeee@users.noreply.github.com" ]
77594057+jleeeeee@users.noreply.github.com
ee912d86bc3a8ff0dd908f5b9416ea576231687d
e67f1c5f7ccda789b181ad9e306740972082a098
/imdbapi/imdbapi/urls.py
1c7f55a27c8c10d441e61febc0e1d2899b10643c
[]
no_license
pratik240890/django-imdb-api
753bbaa76fe4f90661e742bcb1cc830be5d1991e
6082044dc479c98afe2078ccbd6874e90b9e2a73
refs/heads/master
2022-12-15T21:57:19.456875
2018-09-10T03:46:37
2018-09-10T03:46:37
148,095,243
0
0
null
2022-12-08T02:52:36
2018-09-10T03:39:58
Python
UTF-8
Python
false
false
863
py
"""imdbapi URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
[ "pratik240890@gmail.com" ]
pratik240890@gmail.com
47e1ecab151286ba86f32ee92e763eee1308d024
5a0280c1925ee4c741bfa9a574cef345d9f0dc13
/python/p38.py
e45fe1288a1773a3bffb2a033cc380e91b26156e
[]
no_license
jmathes/projecteuler
dd3e6e2b8f4d38060d6712be99145050ec093dc4
709faf88cad420a82febf8313d0f4a8ebdcab4f1
refs/heads/master
2021-01-17T15:31:56.921712
2016-05-18T22:55:47
2016-05-18T22:55:47
1,917,800
0
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
""" Take the number 192 and multiply it by each of 1, 2, and 3: 192 1 = 192 192 2 = 384 192 3 = 576 By concatenating each product we get the 1 to 9 pandigital, 192384576. We will call 192384576 the concatenated product of 192 and (1,2,3) The same can be achieved by starting with 9 and multiplying by 1, 2, 3, 4, an...
[ "joe@saucelabs.com" ]
joe@saucelabs.com
bff4087253f06f32cd77d64126e7b46bca92add2
44db93e6790cb9a68b56d135cb84fbcad6bc00dc
/flashcards/models.py
b6222a5eb135aff004bfcb0bb5cb72295f824691
[]
no_license
Manlarge/djangocc
9e5181f84a8887eb00532fd56b7ee4f24271d1a8
377116d3360ffce773d11d13f2fe27d1c591c065
refs/heads/master
2020-03-22T01:11:18.408546
2018-07-06T14:41:03
2018-07-06T14:41:03
139,288,582
0
0
null
null
null
null
UTF-8
Python
false
false
827
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models # Create your models here. class Deck(models.Model): title = models.CharField(max_length=64, null=False, blank=False) description = models.CharField(max_length=255, null=False, blank=True) is_active = models.Bool...
[ "apple@APPLEs-MacBook-Pro.local" ]
apple@APPLEs-MacBook-Pro.local
df7bbd618433c6328e650d4aeb1be8cb777bf4e3
4df6b6beec22644e432489c39ced9ef4891d695f
/tests/provider/test_core.py
043ecca32673c594d0d553482289ddcb0fac45aa
[]
no_license
lnrsoft/chroma-feedback
6c2143600ca4befb6d2abd7ba42676b5b1f846ef
d0860819633f75ff893839f5cc4e9d97c11a7001
refs/heads/master
2020-07-23T19:55:06.638772
2019-08-20T09:22:11
2019-08-20T09:22:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
from argparse import ArgumentParser import sys from chroma_feedback import provider def test_process(mocker): program = ArgumentParser() program.add_argument('-P', '--provider', action = 'append', required = True) sys.argv.append('--provider') sys.argv.append('travis') sys.argv.append('--travis-slug') sys.argv.a...
[ "info@redaxmedia.com" ]
info@redaxmedia.com
33af0f838f1394d785cf9abcaf863aad6e74f013
33a5b1a80dfb1260bd73758db44a042ebc7e3105
/loginRegDjango/urls.py
060ed66afa4333a08458ec6599fa61a89caa9c9b
[]
no_license
bhkangw/LoginRegDjango
b50fa16134fcc1d90ccac64a8bce6f572d7d9c8f
d9b0667320b694b78c42f1c13345b46496382b65
refs/heads/master
2021-08-14T22:55:49.766698
2017-11-16T23:35:59
2017-11-16T23:35:59
111,034,417
0
0
null
null
null
null
UTF-8
Python
false
false
788
py
"""loginRegDjango URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') C...
[ "bhkangw@gmail.com" ]
bhkangw@gmail.com
72e5cb327a73c34c5dcbfcd627d6a72be460e2df
c214b577cd6801edd6ce1a4c12370e830bcfef26
/inpgen-nw.py
3c0d6040c3860d413aaa937865d52f699733ea00
[]
no_license
aeberso2/5d-Ln-An_ioparse-nwchem
1afa1ee7f31bc312340db2a26451b062950a67c3
8d58271119ecd271bcfc361440b945981f4499cd
refs/heads/master
2021-01-23T07:44:07.241135
2017-09-27T17:33:48
2017-09-27T17:33:48
102,515,327
0
1
null
null
null
null
UTF-8
Python
false
false
14,028
py
import os, re, string import sys, argparse from numpy import * import pandas as pd top_direc = os.getcwd() def data_sync(): # commentted out for now until I reimplement the alternative files # os.chdir('basis') # primitive_basis_db = [] # indexer = [] # for i in os.listdir(): # basis_r = open(...
[ "noreply@github.com" ]
noreply@github.com
7a73d23951e7d7d1345e584df9ae95b3a3cae6b7
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/genfragments/FourteenTeV/SmuonToMuonNeutralino_M_2000_ctau_10_cff.py
4b9be99f8384f2be51bee014b5e1f7f05c0d660b
[]
no_license
cms-sw/genproductions
f308ffaf3586c19b29853db40e6d662e937940ff
dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4
refs/heads/master
2023-08-30T17:26:02.581596
2023-08-29T14:53:43
2023-08-29T14:53:43
11,424,867
69
987
null
2023-09-14T12:41:28
2013-07-15T14:18:33
Python
UTF-8
Python
false
false
50,288
py
COM_ENERGY = 14000. # GeV # this is the closest thing I could find: # https://twiki.cern.ch/twiki/bin/view/LHCPhysics/SUSYCrossSections13TeVslepslep CROSS_SECTION = 1 # pb CTAU_POINT = 1. # mm SLHA_TABLE = """## Important note! ## This file has been modified by hand to give the gluino and the ## stop_1 a very ...
[ "saptaparna.bhattacharya@cern.ch" ]
saptaparna.bhattacharya@cern.ch
f16cb2b2eb09c45e00ee72cf4b0db2242214be03
857386309804e40c6f8abe04c473b9eb9ce66d68
/Sort/heapsort.py
f93c9107ce4552d105d87d8631a417af47015025
[]
no_license
WinterFu/DataStructure-Algorithims
d53c939e28dd55576a67b2d4b67c118c6f1af7f4
cc8f6a44cbe9a164fa3820fbb7b454c8d386617a
refs/heads/master
2021-04-27T03:19:37.779342
2018-04-19T14:40:16
2018-04-19T14:40:16
122,711,886
0
1
null
null
null
null
UTF-8
Python
false
false
1,348
py
#-*- coding:utf-8 -*- def adjust_heap(input_list, i, size): lchild = 2*i + 1 rchild = 2*i + 2 max_index = 1 if i < size / 2: if lchild < size and input_list[lchild] > input_list[max_index]: max_index = lchild if rchild < size and input_list[rchild] > input_list[max_index]: max_index = rchild if max_ind...
[ "fuwinterdong@gmail.com" ]
fuwinterdong@gmail.com
decb7860e102c6c6a41bc0cb03770a81f9d70b2e
aeaaef5637d8dd03abce59909bf1bcc2f04649e2
/Compare_Approaches/venv/Lib/site-packages/pyramid/arima/stationarity.py
ad434b5c81c50e5e309b92cfd09179663cec30db
[]
no_license
Jiangqiaoqiao/Autoencoder_Gru
08df52e3077b3d5816a1905b58c455ef20e1e2ec
16abd9c64b65f61dda9df8d5f872840a20cff74a
refs/heads/master
2021-02-14T21:11:08.097944
2020-06-01T02:14:17
2020-06-01T02:14:17
244,834,510
0
0
null
2020-03-04T07:24:32
2020-03-04T07:24:31
null
UTF-8
Python
false
false
14,951
py
# -*- coding: utf-8 -*- # # Author: Taylor Smith <taylor.smith@alkaline-ml.com> # # Tests for stationarity from __future__ import absolute_import, division from sklearn.base import BaseEstimator from sklearn.utils.validation import column_or_1d, check_array from sklearn.linear_model import LinearRegression from sklea...
[ "jiangqiao@whut.edu.cn" ]
jiangqiao@whut.edu.cn
023a448e65f13fa1aa110f94679a9a53c6e6c840
3506d8c9a8391be52d24cff54f27537a92a7228c
/HackerRank/Strings/Palindrome_Index.py
e01f253f9a8217c583a0c47373b035d3b04a1d7b
[]
no_license
saumya-singh/CodeLab
04ef2c61c516c417c03c6a510e8b5e6e498fbe5d
9371f0d6bd45e5592dae25b50f0d04ba45ae67cf
refs/heads/master
2021-09-12T05:01:17.491312
2018-04-14T19:48:40
2018-04-14T19:48:40
81,596,628
1
0
null
null
null
null
UTF-8
Python
false
false
742
py
#!/bin/python3 #https://www.hackerrank.com/challenges/palindrome-index/problem import sys def palindromeIndex(s): length = len(s) counter = length//2 i = 0 j = length -1 flag = 0 while i < counter: if s[i] == s[j]: i += 1 j -= 1 else: if s[i...
[ "saumya.singh0993@gmail.com" ]
saumya.singh0993@gmail.com
1f5c588c0b03b7c1d62190e4c818bcc2e853807d
d0bc9226eada12cb881b71af2fb693c1c5cbd6de
/exercise39.py
56a4f7d5f045b7554253698559004ddc8e2ff3ac
[]
no_license
rebht78/Python-Exercises
648aeb5d93bb51812010d19a559795e84267a997
e2c5924f8f8591c8bfc16cc93f801b28bb422466
refs/heads/master
2020-04-01T02:10:59.265586
2018-11-17T16:20:08
2018-11-17T16:20:08
152,768,158
1
0
null
null
null
null
UTF-8
Python
false
false
385
py
""" In this exercise, I'll introduce to you range() function. range() function is the most important function in python and one of the most useful in data science. range syntax: range(start,end[not inclusive]) You can generate numbers using range(). """ # let's use range() function in print print(range(0,9)) # you'...
[ "rebht78@gmail.com" ]
rebht78@gmail.com
98c7acd6912e8bc5c371f591667dc2220b9071e9
f10230c09860f1e01dcef56daab30a9200d7eb60
/common/admin.py
170b802e29c547aedb5673fa213fe83ff9dd05ac
[]
no_license
DentiQ/test_web
08280ff506439e9bd1565fb502a9780b3c79707d
b7bceab1edd670a8cf60ecf882a466c26e68fb63
refs/heads/master
2023-01-23T14:43:17.420477
2020-12-01T13:54:18
2020-12-01T13:54:18
316,973,878
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.models import Group from django.utils.translation import ugettext_lazy as _
[ "dentiq0414@gmail.com" ]
dentiq0414@gmail.com
4c49ddf6a3224bc642267e24b285e2a9da8767ed
6b6e20004b46165595f35b5789e7426d5289ea48
/endpoints/appr/__init__.py
c998d8a958ab8159696191c64e114b0ac4e6902c
[ "Apache-2.0" ]
permissive
anwarchk/quay
2a83d0ab65aff6a1120fbf3a45dd72f42211633b
23c5120790c619174e7d36784ca5aab7f4eece5c
refs/heads/master
2020-09-12T18:53:21.093606
2019-11-15T19:29:02
2019-11-15T19:29:02
222,517,145
0
0
Apache-2.0
2019-11-18T18:32:35
2019-11-18T18:32:35
null
UTF-8
Python
false
false
1,796
py
import logging from functools import wraps from cnr.exception import Forbidden from flask import Blueprint from app import metric_queue from auth.permissions import (AdministerRepositoryPermission, ReadRepositoryPermission, ModifyRepositoryPermission) from endpoints.appr.decorators impo...
[ "jimmy.zelinskie+git@gmail.com" ]
jimmy.zelinskie+git@gmail.com
6b1a3c6752fb987270983195e5489c049ddefa3c
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/file/formats/xar/XARUtil.pyi
cc17580bacec6487f3d70bd74261a9a2bf5e6add
[ "MIT" ]
permissive
kohnakagawa/ghidra_scripts
51cede1874ef2b1fed901b802316449b4bf25661
5afed1234a7266c0624ec445133280993077c376
refs/heads/main
2023-03-25T08:25:16.842142
2021-03-18T13:31:40
2021-03-18T13:31:40
338,577,905
14
1
null
null
null
null
UTF-8
Python
false
false
765
pyi
import ghidra.app.util.bin import ghidra.program.model.listing import java.lang class XARUtil(object): def __init__(self): ... def equals(self, __a0: object) -> bool: ... def getClass(self) -> java.lang.Class: ... def hashCode(self) -> int: ... @overload @staticmethod def isXAR(_...
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
cb1d431b5080dba2976cf7febed54bab2e41ac6a
8a5f62fc771864bc304f38a45a56b53caffc8c10
/P45/Clase20/tresEnRaya.py
25ddd941e8f4d2b1436cf99cbce3fb732627d234
[]
no_license
alexangupe/clasesCiclo1
c57a8af589a9dd8b34f39796e3478c0a119cca0d
fcf122753b99ce06d5892cd3282dd9b051481e15
refs/heads/master
2023-05-30T06:22:58.547726
2021-06-19T20:02:51
2021-06-19T20:02:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,018
py
#Requerimiento general -> simulación de dos robots jugando tres en raya #Requerimientos específicos -> Jugador O # -> Jugador X # -> Sistema que controla el tablero que modifican los jugadores (bots) #Librerías de soporte import numpy as np import random #Codificaci...
[ "luismescobarf@gmail.com" ]
luismescobarf@gmail.com
2ef363ededa023eb6f443f5748066deee98c1dce
7137161629a1003583744cc3bd0e5d3498e0a924
/airflow/providers/google/suite/hooks/sheets.py
ce4218c36fbd5f124924350771ee3660db5f0c29
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
jbampton/airflow
3fca85975854eb916f16143b659a9119af143963
dcfa14d60dade3fdefa001d10013466fe4d77f0d
refs/heads/master
2023-05-25T22:31:49.104069
2021-09-18T19:18:32
2021-09-18T19:18:32
247,645,744
3
0
Apache-2.0
2020-03-16T08:12:58
2020-03-16T08:12:57
null
UTF-8
Python
false
false
18,662
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...
[ "noreply@github.com" ]
noreply@github.com
bebe72a56f5001f3b4531a76ec85a29cd426bdc3
ef90177e771264398eba4a66ca5e77dd3ddb1fb9
/pythonblog/wsgi.py
9d2e43261bc963ddae6931bda13a1f1765d530af
[]
no_license
shamiths-uc/pythonblog
51318167f9516f8ba180c2c1be89023db16d0452
23cae91e45000823b2bf2bcfae5a7c318ea3b4a9
refs/heads/master
2023-02-17T09:57:16.302088
2021-01-22T08:44:51
2021-01-22T08:44:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" WSGI config for pythonblog 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
[ "shamiths@unicourt.com" ]
shamiths@unicourt.com
088740864d07a9ca84e89627a1bab44538e4be33
847273de4b1d814fab8b19dc651c651c2d342ede
/.history/Sudoku_II_003_20180618134857.py
2745c76be92765bcf40268fd8a5d34aac92e1b25
[]
no_license
Los4U/sudoku_in_python
0ba55850afcffeac4170321651620f3c89448b45
7d470604962a43da3fc3e5edce6f718076197d32
refs/heads/master
2020-03-22T08:10:13.939424
2018-07-04T17:21:13
2018-07-04T17:21:13
139,749,483
0
1
null
null
null
null
UTF-8
Python
false
false
3,466
py
from random import randint # Sudoku1 almost solved sudoku1 = [ [5, 9, 8, 6, 1, 2, 3, 4, 7], [2, 1, 7, 9, 3, 4, 8, 6, 5], [6, 4, 3, 5, 8, 7, 1, 2, 9], [1, 6, 5, 4, 9, 8, 2, 7, 3], [3, 2, 9, 7, 6, 5, 4, 1, 8], [7, 8, 4, 3, 2, 1, 5, 9, 6], [8, 3, 1, 2, 7, 6, 9, 5, 4], [4, 7, 2, 8, 5, 9, 6,...
[ "inz.kamil.wos@gmail.com" ]
inz.kamil.wos@gmail.com
3e462510a93a9f4624ff7096c876c7e18f2fd954
64ce1850c481d5ce3a7515d6220d18566f603998
/run_mp.py
ab082f62589d196c7813b28f1a30e31eb483c2fb
[]
no_license
mvleandro/desafiohu1
6b70a956f7a6ab055aad7c91eb5becffa238c571
bd94a43e3f90f0495864e1be65e8f4cdb31d4352
refs/heads/master
2020-12-29T00:56:12.104209
2015-08-03T00:54:25
2015-08-03T00:54:25
39,531,632
0
1
null
2017-11-11T17:05:53
2015-07-22T21:38:44
CSS
UTF-8
Python
false
false
1,222
py
# -*- coding: utf-8 -*- __author__ = 'mvleandro' import socket import multiprocessing import resource from MegaRest import * from pymongo import MongoClient import redis HOST = '127.0.0.1' PORT = 8000 MAX_CONCURRENT_JOBS = 100 CURRENT_RUNNING_JOBS = 0 CONNECTIONS = 3000 def handle_connection(connection, client): ...
[ "mvleandro@gmail.com" ]
mvleandro@gmail.com
c1d89ef856b8f7f7da2a264bf22b9995730f2293
14a04a8dbb57d49efe9f7d464b8fb5df19c1a128
/env/lib/python3.8/site-packages/deep_translator/constants.py
bc7b905676f9936d577aa2fffa41c7e5b742d54d
[]
no_license
mlab817/python-dv1
54b044a18954cb94e5fb0bba1815e51b137cf1b5
c642ec710c44bb9fa3752174e9c61f69b9a975e7
refs/heads/main
2023-03-28T20:10:04.421680
2021-03-27T07:38:31
2021-03-27T07:38:31
352,011,241
0
0
null
null
null
null
UTF-8
Python
false
false
4,700
py
import requests BASE_URLS = { "GOOGLE_TRANSLATE": "https://translate.google.com/m", "PONS": "https://en.pons.com/translate/", "YANDEX": "https://translate.yandex.net/api/{version}/tr.json/{endpoint}", "LINGUEE": "https://www.linguee.com/", "MYMEMORY": "http://api.mymemory.translated.net/get", "...
[ "mlab817@gmail.com" ]
mlab817@gmail.com
4608ae59213d7f9244324bf795f88d6104c60aaa
a2d7ae4f68185f53f2c3de6f8dee78614d06b327
/mySchool/settings.py
6b7ecb91470076b07afd274a115ae937fc9bdd65
[]
no_license
chuhx1024/mySchool
2ba63eec2d07005078c2aa504dc94c0bbccdb2d9
4a92cd104231215af471039ee640a8eb75866eb4
refs/heads/master
2022-12-07T02:43:11.462172
2020-08-17T07:47:49
2020-08-17T07:47:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,124
py
""" Django settings for mySchool project. Generated by 'django-admin startproject' using Django 3.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib ...
[ "hx.chu@clustar.ai" ]
hx.chu@clustar.ai
93fdedb61fe267ee143d483ddb74ccf6f208bfe3
875e2b60fceecc8c4fb25dfce98dacb94204ef4e
/backend/app/lib/util/json_encoder.py
5c4afd66d5d5b519bcdb465c77b91bab250a800d
[]
no_license
shirakiya/jaaxman
740df3c22acb35d53548440680e6b6b6be8137b6
424a1a1be9885365796db8bb453e2dc5af14f968
refs/heads/master
2021-08-19T09:07:00.672805
2020-05-16T11:15:05
2020-05-16T11:15:05
99,437,629
16
1
null
2021-01-05T07:17:08
2017-08-05T17:25:53
Python
UTF-8
Python
false
false
314
py
import json from datetime import datetime class OriginalJSONEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, datetime): return obj.isoformat() if isinstance(obj, set): return list(obj) return super(OriginalJSONEncoder, self).default(obj)
[ "shirakiya.pv@gmail.com" ]
shirakiya.pv@gmail.com
5b486edeb0a53ee99cce49acf1ccf340efeb98c3
daec8649373c76786e076f0015b56c9b930161eb
/venv/Scripts/django-admin.py
5b1d715dec151c8965311ca76168ae470d188549
[]
no_license
muhsinwarfa/lazznet
b516ce82890ae5f072503d2cdb5371c1b25456bc
019ff50854314f4f93331ed48ba49f78d4605f56
refs/heads/master
2022-12-10T14:24:04.178523
2019-09-24T13:22:26
2019-09-24T13:22:26
208,906,804
0
0
null
2022-07-06T20:16:46
2019-09-16T22:08:30
Python
UTF-8
Python
false
false
171
py
#!C:\Users\Ramla\PycharmProjects\Lazznet\venv\Scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "muhsin.warfa@gmail.com" ]
muhsin.warfa@gmail.com
594840a1230e989a0903678c4308812b815ff3e6
66f037cc0bf8683a814eb610d06edd3667f962e0
/escpos/tests/test_epson_genericescpos.py
baf3acf4f890528e24d17c60035b042ca09644d7
[ "Apache-2.0" ]
permissive
cemsbr/pyescpos
6118e7fcf4b5e85b94639be42cfb6fe87f084ba9
58ebc1b544458803c4235f3fa80e8fa376b18ec2
refs/heads/master
2020-12-08T07:20:24.977694
2019-12-30T00:33:08
2019-12-30T00:33:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,428
py
# -*- coding: utf-8 -*- # # escpos/tests/test_epson_genericescpos.py # # Copyright 2015 Base4 Sistemas Ltda ME # # 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/li...
[ "daniel@base4.com.br" ]
daniel@base4.com.br
4dd5b1eaa1764f01e4378dbcc56d999b294355e3
d38ccf9fc4c929074a67cc3d1aeae1746cf8f6c2
/math/0x00-linear_algebra/6-howdy_partner.py
c47ef3f70be8c354b79746fbd1e9a8e7971a2153
[]
no_license
eyadev/mundiapolis-math
e447c1c33bcca02a680a5abb04a7058444f3c29b
09454a95dc5778bd384b566b3ba98e2cd98238f4
refs/heads/main
2023-03-21T20:28:08.774011
2021-03-19T07:55:10
2021-03-19T07:55:10
345,433,381
0
1
null
null
null
null
UTF-8
Python
false
false
175
py
#!/usr/bin/env python3 """ function that concatenate 2 arrays """ def cat_arrays(arr1, arr2): conc = arr1.copy() for i in arr2: conc.append(i) return conc
[ "noreply@github.com" ]
noreply@github.com
6f404c323b2a0e599e8e95dad74f6c3e8e8c376c
3ace3f29bc52c419b5f37fe7e63fc0c653f05010
/A1.2.py
687ed6338e8485a0f4de036a326db1f4ca390a96
[]
no_license
Snehal3798/Python-Automation
fed52bbf388384a0c955ddd410b1a2ba2b3b9d3d
4b59b5c7d52bf9ea872cd51a6ce6a656875bae20
refs/heads/master
2022-11-29T20:44:45.536033
2020-08-14T09:11:06
2020-08-14T09:11:06
221,743,866
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
def fun(no): if no % 2 == 0: print("Even Number") else: print("Odd Number") fun(8) fun(11) output:/root/PycharmProjects/hello/venv/bin/python /root/PycharmProjects/hello/Hello.py Even Number Odd Number
[ "noreply@github.com" ]
noreply@github.com
49b4c72d60002f8743f356cd2cd8ecf6c4924205
b2bf486ee1e7383d568682820fc7dfc40cdf136f
/example_code02.py
a01b06f1659b7bf81632bce0a0c497a937b89a48
[]
no_license
Sayna83/poulstar
d05dca2b982304a100ea8e330d44b93ae198ec4a
6da33292d5314a37cfe5707487080e0ed543f52d
refs/heads/master
2023-01-13T21:15:41.295578
2020-11-21T12:23:06
2020-11-21T12:23:06
311,324,954
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
number01 =input("please enter number1")
[ "sayna.atashin@gmail.com" ]
sayna.atashin@gmail.com
757c83c09d9a63c7e07a8ce62f3e008a7d1d516b
1515be3015ad988278d5a095416c0a0066a02757
/src/users/models/microsoftgraphentity.py
b0f43ecc2a37e01c3384617b3fbb889435ca08b5
[ "MIT" ]
permissive
peombwa/Sample-Graph-Python-Client
2ad494cc5b5fe026edd6ed7fee8cac2dd96aaa60
3396f531fbe6bb40a740767c4e31aee95a3b932e
refs/heads/master
2020-12-29T09:50:38.941350
2020-02-05T22:45:28
2020-02-05T22:45:28
238,561,578
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
[ "peombwa@microsoft.com" ]
peombwa@microsoft.com
be5306049fed1701ff84c2b725f19d30dc048bd9
a36501f44a09ca03dd1167e1d7965f782e159097
/admin/views/celery.py
0045559263cc795693771411bf703a74286ad244
[ "Apache-2.0" ]
permissive
ssfdust/full-stack-flask-smorest
9429a2cdcaa3ff3538875cc74cff802765678d4b
4f866b2264e224389c99bbbdb4521f4b0799b2a3
refs/heads/master
2023-08-05T08:48:03.474042
2023-05-07T01:08:20
2023-05-07T01:08:20
205,528,296
39
10
Apache-2.0
2023-08-31T00:18:42
2019-08-31T10:12:25
Python
UTF-8
Python
false
false
3,026
py
# Copyright 2019 RedLotus <ssfdust@gmail.com> # Author: RedLotus <ssfdust@gmail.com> # # 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 # # Unles...
[ "ssfdust@gmail.com" ]
ssfdust@gmail.com
4e8597dec45baa3938bf15b1e79a872005a57d06
c8c10b1d8cad9d8e1bae1906715265575a27f081
/p1_table/wsgi.py
aa8f4dc87fe709f967822480e0cab22d43503fc3
[]
no_license
elllkk/courseWork3
b12c72f08c7e745ebfbe3b044b9772be53f75e8e
009f0bfa81af7bb6e0bde9fa9fc5172417800a74
refs/heads/master
2021-07-12T13:31:50.020077
2017-10-12T17:17:43
2017-10-12T17:17:43
105,434,849
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
""" WSGI config for p1_table 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...
[ "elina2241@mail.ru" ]
elina2241@mail.ru
a3f6469ccef6536d7376f117b7d7d89f7a1e1e5e
0610f030f5d00bef040f5074f68e162a54b7e5a9
/collect_all_trails_data.py
9fc6b9bd7c98be27f48db951bdcd51c91d3ca334
[]
no_license
amydrummond/weekend_plans
0def7900d2fd7aa9ede21c0ddc410356405d376f
c53cdd2e075bfe2a34c6d288b1ac54217f0d8008
refs/heads/master
2021-05-04T10:56:36.728321
2018-04-24T21:22:02
2018-04-24T21:22:02
53,605,313
1
1
null
null
null
null
UTF-8
Python
false
false
5,599
py
import urllib2, json, requests from lxml import html # For removing all of an unwanted value from a list def remove_values_from_list(the_list, val): x = 1 item = the_list[x] if item == val: the_list.remove(item) x = x else: x +=1 return(the_list) def string_clip(whole_string, start, fini...
[ "noreply@github.com" ]
noreply@github.com
1001fb67f03779ee907aa3f75dd6fe909b3b3a26
cafd27bc22a8898b59cf8466cc8429f801e517e9
/funcoes.py
ffd168f5368226d6a9a57d83f7f990813baffc0f
[]
no_license
uniceub-ltp2-201901/prova-p2-ltp2-201901-LinsGB
a2e7f298039020b8be47950320c10e641320c967
1bba63f5d809871a4d55acb8107ef6c6ffd8be58
refs/heads/master
2020-05-27T05:07:43.030273
2019-05-25T00:58:48
2019-05-25T00:58:48
188,494,876
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
from random import randint def gera_numeros(numeros_emuso): num_ok = False while (num_ok==False): numero_gerado = str(randint(0,9))+str(randint(0,9))+str(randint(0,9))+str(randint(0,9))+str(randint(0,9)) if (numero_gerado != numeros_emuso): return numero_gerado
[ "linsgb2@gmail.com" ]
linsgb2@gmail.com
a5c0a8cd54ef132144b01f7651f010b3106c0ef3
7102adebe786a2d1c22ac99a99a13e5c85a56ffc
/prepare_dataset.py
a573a05514f2e92351eb67a20f584509bb84ea6a
[]
no_license
BasilMinkov/HSE-Experiment-in-Cognitive-Science-Course-Project
e2d2c9dc89cf2c7a276939d04507230561ad9f12
08436d2157c9709a7f387b98f71d35a31271a9ec
refs/heads/master
2021-10-21T17:44:30.849487
2019-03-05T12:10:12
2019-03-05T12:10:12
112,867,690
0
0
null
null
null
null
UTF-8
Python
false
false
1,781
py
"""This code is used to prepare data to run an experiment with expyriment package""" import os def split_after_point(phrase): n = phrase.count(".") if n > 1: index = phrase.find(".") return phrase[:index + 1], phrase[index + 2:-1] else: index = phrase.find(":") return phra...
[ "proveyourselfmail@gmail.com" ]
proveyourselfmail@gmail.com
9ddcad34573b7820371866b8e69b69bf8d41eb28
e2d308e7dafc8a85068c0226e217ef0756902e61
/vocab/archive/createsql4.py
a43dc6ba2eae2599394bed65eeafa02ae4977f63
[]
no_license
zameji/ExperimentServer
197e7fa12460f6020102709a8e804ed5595071f9
139f7e6fa520813718e039d9a9ff314e18813e93
refs/heads/master
2022-05-09T22:51:48.682778
2022-04-27T11:34:01
2022-04-27T11:34:01
197,384,409
2
0
null
null
null
null
UTF-8
Python
false
false
472
py
import sys query = "CREATE TABLE vocabB (prolific_id VARCHAR(24) PRIMARY KEY NOT NULL, " for i in range(60): i += 1 query+= " vocabB_q" + str(i) + " VARCHAR(16)," # remove the last comma query = query[0:-1] query += ");" # Finally, we write the PHP code to the PHP file with open("sql4.txt", "w+") as f: ...
[ "jerry.zamecnik@gmail.com" ]
jerry.zamecnik@gmail.com
29b89f6a959fa23aef182523f894f478e23535a6
30f96a254ec9724bdaad59a38a2acf31ee1bcd67
/mean7.py
25d697e96fcd299c7207aaf1f5ac5418573c022d
[]
no_license
NeymarL/Tianchi-PopularMusicPrediction
f14911394fa8877e941fb09ec443daeac5013523
196e5fdca2f64aa285974b4ce1d90d21121d1fd7
refs/heads/master
2021-06-28T09:38:33.613205
2017-09-17T11:43:04
2017-09-17T11:43:04
103,823,786
0
0
null
null
null
null
UTF-8
Python
false
false
2,683
py
# -*- coding:utf-8 -*- # # 研究均值 # import pandas as pd import numpy as np import math import matplotlib.pylab as plt # origin data dateparse = lambda dates: pd.datetime.strptime(dates, '%Y%m%d') ''' ua = pd.read_csv('datas/p2_mars_tianchi_user_actions.csv', parse_dates='Ds', date_parser=dateparse) so ...
[ "lh57506155@qq.com" ]
lh57506155@qq.com
0504aec00e9084b73d2a425c4cc7c4d65c24b1d6
8a6cb35fbce496cbed20305f027d02cfbafbe3e3
/codingbat/not_string.py
76390d16fd9a6a2e5f2fae190ae962680c29203f
[ "MIT" ]
permissive
ismk/Python-Examples
ca770ee8aabe12bfe9155cf695978d6bd44777e3
9aaf019cb24186a084838b68b6bdd4f94f776aad
refs/heads/master
2021-03-12T23:33:24.122052
2014-09-17T18:44:23
2014-09-17T18:44:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
122
py
def not_string(str1): if str1[:3] == "not": return str1 else: str1 = "not " + str1 return str1
[ "ismailkalimi@gmail.com" ]
ismailkalimi@gmail.com
c3f378c4f18b6e1d3736b46c38160842b43e318f
ace2ca06c64d1e50a067737111f8bc0ae290c188
/ordaDeploy/ORDA_practicals/primeFinder.py
a44a19e55ab04f6b5ea5cc4669e19f3c41bc7019
[]
no_license
Ragemon/iknow-master
93235ea310a3ef2964adc0d096e1ddf0a6c2cb1b
1bed74191d06e5ede0d8927932df6c372f4abdb1
refs/heads/master
2022-12-11T16:53:44.141227
2020-04-09T15:19:41
2020-04-09T15:19:41
254,406,877
0
0
null
2022-12-08T01:52:01
2020-04-09T15:19:09
Python
UTF-8
Python
false
false
332
py
from math import sqrt from itertools import count, islice def primer(): raw = int(input('Enter to check primality: ')) if raw < 2: print(False) for number in islice(count(2), int(sqrt(raw) -1)): if raw % number == 0: print(False) else: print(True) primer() ...
[ "couragejahmon1@gmail.com" ]
couragejahmon1@gmail.com
8b713da0cfcc94e2c8cdf0b51d8ef8712137cf4f
6e99f8a0c3ebf1c2637fedccc9d1620c05712cd0
/APIlend/migrations/0002_auto_20200511_0253.py
07e7525e86ea11de95d0b38a0b3c5e176e6cc525
[]
no_license
BasiaZakrzewska/aplikacjaLendBorrow-
5301f810d1ab7af699f8bd491227c2216c6c5007
9cffc6d4519caed4a421ed9c445855f549ac8f96
refs/heads/master
2022-07-22T18:24:44.830331
2020-05-21T09:05:34
2020-05-21T09:05:34
265,824,489
0
0
null
null
null
null
UTF-8
Python
false
false
618
py
# Generated by Django 3.0.4 on 2020-05-11 02:53 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), ('APIlend', '0001_initial'...
[ "piotrek1009@gmail.com" ]
piotrek1009@gmail.com
08cbe72b24ab26ebbaa47bba0d4a571ae2e8fd06
93720fa8240ed31835d53480a1db31519e5f22ea
/src/contest/migrations/_005_usersByItemId_Class.py
e6524e76e0afd046a166e4f62dc61e2f970518bd
[]
no_license
riccitensor/contest-py
788075916bbc6d78c8280977d542f78446151bef
c32f0321bd5819df9658cbeeb368aa70f3245af2
refs/heads/master
2021-01-25T08:55:23.822311
2012-06-11T19:44:05
2012-06-11T19:44:05
9,649,980
1
0
null
null
null
null
UTF-8
Python
false
false
2,587
py
''' Created on 10.01.2012 @author: christian.winkelmann@plista.com testing the migrations for user by id. Each migration is supposed to test the models and expected queries right at instantiation time ''' import time import cql import random import datetime from contest.packages.helper.getTimestamp import getTimesta...
[ "christian.winkelmann@plista.com" ]
christian.winkelmann@plista.com
b59758a8b768f5ae340cea73ece19a82d57f62fd
5d70c1d1a89d4e86df4fd643bef1ed38ba053c80
/downloader4.py
41841717018ec9f6b39c0149d9f52cccb024a8a5
[ "MIT" ]
permissive
markauty/CovidDashboard
b00312ec81e632e95f52c103b44147a1961049e8
02c527ce2da6e4a06828aafd6856011b85ab8747
refs/heads/master
2021-05-23T11:26:16.892686
2020-08-05T13:01:04
2020-08-05T13:01:04
253,265,185
0
0
null
null
null
null
UTF-8
Python
false
false
1,121
py
import pandas as pd from io import StringIO import requests import datetime datestr=datetime.datetime.now().strftime("%Y%m%d") url = 'https://coronavirus.data.gov.uk/downloads/csv/coronavirus-cases_latest.csv' headers = {"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefo...
[ "noreply@github.com" ]
noreply@github.com
6d35ff8ff3c6737289e4c00e8be3360f52f6ca99
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02773/s910963404.py
d617638ace116c73c96cf5a65311b85b85f81d23
[]
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
351
py
import sys N = int(input()) input = sys.stdin.readline lis = {} for i in range(N): s = input().rstrip() if s in lis: lis[s] += 1 else: lis[s] = 1 lis2 = sorted(lis.items(), key=lambda x:x[1], reverse=True) x = next(iter(lis2)) keys = [] for i in lis2: if i[1] == x[1]: keys.append(i[0]) ans = sorted...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e77f77e6e8b1902369fbbc8ced606fd6f7c5674b
3e938687861241e6c6cb49ef05f686812dba3f7f
/Examples/compute/bagging_boosting_of_chains_GA/tests/add_classifier_merge.py
658a7853d757cd6f9b8082d7754547740d98ff9b
[ "MIT" ]
permissive
marcortiz11/FastComposedModels
35427c13756b2ef294587ebf5f37762d2b5b0569
9fed869298746c3ed78b57737c0d0392599711e9
refs/heads/master
2023-03-28T03:34:43.421898
2021-03-28T03:50:45
2021-03-28T03:50:45
209,519,696
0
0
null
2020-06-04T20:51:34
2019-09-19T09:55:18
Python
UTF-8
Python
false
false
783
py
import merge_two_chains import os merger = merge_two_chains.merged from Source.genetic_algorithm.operations_mutation import add_classifier_to_merger add_classifier_to_merger(merger, 'Merger', '2_PNASNetA', os.path.join(os.environ['FCM'], 'Definitions', 'Classifiers', ...
[ "mrk.22.10@gmail.com" ]
mrk.22.10@gmail.com
f3819f708b3cf6ec87c2e85aaf10cfb68b1a76b0
f00e413f6a995858980876bb419a6c223fd1bf8a
/Work.py
5910d3a774f2c37525a8289ed604ea3a27b743d3
[]
no_license
VladYakovets/lab1
6fff99464cfcf7c13c3dfca3ccdd9943d03f463e
075b0f6e4665a9a9c566cc53e8b5b2762aa9d933
refs/heads/master
2022-08-05T09:01:10.529756
2020-05-22T13:42:55
2020-05-22T13:42:55
266,119,885
0
0
null
null
null
null
UTF-8
Python
false
false
1,545
py
import random import math a0=5 a1=3 a2=2 a3=6 n=20 y=[0]*8 x1=[0]*8 x2=[0]*8 x3=[0]*8 for i in range(8): x1[i]=round(random.random()*20,2) x2[i]=round(random.random()*20,2) x3[i]=round(random.random()*20,2) y[i]=round(a0+a1*x1[i]+a2*x2[i]+a3*x3[i],2) x01=round((max(x1)+min(x1))/2,2) ...
[ "noreply@github.com" ]
noreply@github.com
7155ddeed0264c894b5647283f07e1c0c8e5eb09
eb46691c5261f2af612ed8ab4303a055ec5fe185
/chatPro/urls.py
c2559bac459ee446021d5f56a93b998185e00f34
[]
no_license
verje/chat
1c972c9a2bf28ef892ce7b9d1bfb415406f1cf6d
c83d2a4cf00df6a102e715e75995160ef551accd
refs/heads/master
2023-03-14T00:59:04.500280
2021-03-03T11:29:46
2021-03-03T11:29:46
341,590,426
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
from django.contrib import admin from django.urls import path from chatApp import views urlpatterns = [ path('admin/', admin.site.urls), path('', views.chat, name='app-chat'), path('chat/', views.chat, name='app-chat'), path('login/', views.login, name='login'), path('logout/', views.logout, name='...
[ "jesus_jarm@yahoo.com" ]
jesus_jarm@yahoo.com
6795e95d4cfc862463cae12faa598966ede81a2b
0790c57c181b6f412eb7e8a8f2d20255a24fd9ee
/api/serializers/tareaserializer.py
2f7de7e27349cd0531b1069c8f8c320b8a601d28
[]
no_license
anhs/AulaVirtualANHS
9ff653ec54bb4b36d80a1907eb9bbaf2b03cc9de
718ac255ba827e273a5b0803651b523182ea4576
refs/heads/master
2023-05-04T22:47:03.059072
2021-05-19T20:10:29
2021-05-19T20:10:29
368,976,978
0
0
null
null
null
null
UTF-8
Python
false
false
886
py
from rest_framework import serializers from api.models import Tarea class TareaRegisterSerializer(serializers.Serializer): asignacion = serializers.IntegerField() nombre = serializers.CharField(max_length=45) descripcion = serializers.CharField(style={'base_template':'textarea.html'},allow_blank=True, all...
[ "79850465+anhs@users.noreply.github.com" ]
79850465+anhs@users.noreply.github.com
b114f3d71ebdae2a74750a2f0d56ad7bd8da3155
27f6c33ad3f0240e64aad809d4bd57af3ecda498
/Day06/8_Q10.py
0ddb90dfa64678823f9b0d3c8f5988ce857c4809
[]
no_license
bigdata202005/PythonProject
26ce3c0ed3e47cd727606455e6ca95561907dbe4
4e0377fdb86db294483fb7a347429bf299e44ce5
refs/heads/main
2023-01-08T01:48:22.271143
2020-11-06T05:15:22
2020-11-06T05:15:22
310,498,085
0
0
null
null
null
null
UTF-8
Python
false
false
703
py
""" Q10 사칙연산 계산기 다음과 같이 동작하는 클래스 Calculator를 작성하시오. cal1 = Calculator([1,2,3,4,5]) cal1.sum() # 합계 15 cal1.avg() # 평균 3.0 cal2 = Calculator([6,7,8,9,10]) cal2.sum() # 합계 40 cal2.avg() # 평균 8.0 """ class Calculator: def __init__(self, data_list): self.data_list = data_list def sum(self): prin...
[ "bigdata202005@gmail.com" ]
bigdata202005@gmail.com
b9f0baeebc8d4b94123687fe81bfc4cf1a2819cd
7e7091a684c5b6770b2fc39d1c7610b70879f6dc
/DrabSport/manage.py
2414ad26f6174771c6b436cbfb541d715007fcbd
[]
no_license
Patryk-Baracz/DrabSport
25e7db32a9c39aab7aa2f891eb1d2f87c32179ec
beb69b4149761282f95c1a5d875cee3230b60de7
refs/heads/main
2023-03-04T00:21:39.371287
2021-02-17T11:12:06
2021-02-17T11:12:06
333,072,449
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DrabSport.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Impo...
[ "p.baracz1990@gmail.com" ]
p.baracz1990@gmail.com
96e20d4131f5317dff89c74611053c3b8918cdf8
82fce9aae9e855a73f4e92d750e6a8df2ef877a5
/Lab/venv/lib/python3.8/site-packages/OpenGL/GLES2/NV/conservative_raster_pre_snap.py
df58883753676dd6158183e136d4f6c4516af278
[]
no_license
BartoszRudnik/GK
1294f7708902e867dacd7da591b9f2e741bfe9e5
6dc09184a3af07143b9729e42a6f62f13da50128
refs/heads/main
2023-02-20T19:02:12.408974
2021-01-22T10:51:14
2021-01-22T10:51:14
307,847,589
0
0
null
null
null
null
UTF-8
Python
false
false
972
py
'''OpenGL extension NV.conservative_raster_pre_snap This module customises the behaviour of the OpenGL.raw.GLES2.NV.conservative_raster_pre_snap to provide a more Python-friendly API Overview (from the spec) NV_conservative_raster_pre_snap_triangles provides a new mode to achieve rasterization of triangles that...
[ "rudnik49@gmail.com" ]
rudnik49@gmail.com
a4080a7404a99836de352ed8a0d32120f99c2fdc
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/6YN2ww3B4cQZ6rTmN_4.py
065864678599624588b72aab946bb9938cea33ba
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
839
py
""" Write a function that returns `True` if a year is a leap, otherwise it returns `False`. A year is a "leap year" if it lasts 366 days, instead of 365 in a typical year. That extra day is added to the end of the shortest month, creating February 29. A leap year occurs every four years, and will take place if the...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
253aa95b971032804048120ff1cfdb28608f6cba
16e266cf50a712ed29a4097e34504aac0281e6cb
/Functions/venv/lib/python3.6/site-packages/BaseExtensions/Logging.py
99776019d50ef0f45a7210eaff3874df85494d98
[]
no_license
felix-ogutu/PYTHON-PROJECTS
9dd4fdcfff6957830587b64c5da3b5c3ade3a27e
8c1297dbda495078509d06a46f47dc7ee60b6d4e
refs/heads/master
2023-06-05T04:41:36.727376
2021-06-25T20:36:52
2021-06-25T20:36:52
380,348,911
0
0
null
null
null
null
UTF-8
Python
false
false
7,704
py
import logging import logging.config import os import sys import tarfile from logging.handlers import RotatingFileHandler from typing import * __all__ = [ 'logging', 'LoggingManager', 'Error_Handler', 'Info_Handler', 'Console_Error', 'Console_Debug', 'Console_...
[ "you@example.com" ]
you@example.com
ff8998aa563a6b4af13334181d38b02ff3f50163
09b8f5861a279a576d1f7605314e96364fd93cfa
/aoc_2016/day7a.py
dfc46c143c6bb0eea92f53397f6d29ed79fa4233
[]
no_license
bchamby/adventofcode
b109d3acaef58fca04beba19834f528c3bc45d9e
bc1494bab02f7169b4fb3982317de5c56ba5f5e4
refs/heads/master
2021-01-10T14:08:13.654902
2017-04-06T00:28:07
2017-04-06T00:28:07
48,324,542
0
0
null
null
null
null
UTF-8
Python
false
false
2,139
py
import re # import csv file = open('/Users/chamby/Projects/adventofcode/aoc_2016/day7inputa.txt') # file = 'lcototgbpkkoxhsg[erticxnxcjwypnunco]notoouvtmgqcfdupe[hubcmesmprktstzyae]unuquevgbpxqnrib[egalxegqwowylkdjkdg]spqmkzfjnzwcwgutl' index = 0 valid = [] encl = [] # print delimiters for line in file: # de...
[ "chamby@gmail.com" ]
chamby@gmail.com
5f22fb24d71936d1e05a0ce3519a2e4931cc3383
51f914cee1eb6612bebee21b2c64405b30c450a0
/Merging DataFrames with Pandas/4. Case Study - Summer Olympics/1. Medals in the summer olympics/Loading IOC codes DataFrame.py
0ffa50cd5961483edcd058bbd8dc37eae64bc589
[]
no_license
ppjjhh0515/datacamp-ds-python
b777d8b036caedeba411284888f4dfa749a82300
f0e3a438a7a82d40bbd888c4a6d34d512dc019d8
refs/heads/master
2022-12-30T02:48:56.012168
2020-10-19T22:08:50
2020-10-19T22:08:50
279,430,303
0
0
null
null
null
null
UTF-8
Python
false
false
1,250
py
''' Loading IOC codes DataFrame Your task here is to prepare a DataFrame ioc_codes from a comma-separated values (CSV) file. Initially, ioc_codes has 200 rows (one for each country) and 3 columns: 'Country', 'NOC', & 'ISO code'. For the analysis that follows, you want to keep only the useful columns from ioc_codes: '...
[ "noreply@github.com" ]
noreply@github.com
393df51822a4e25553dfc5130fbde0ab93e78e44
e7efae2b83216d9621bd93390959d652de779c3d
/datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/common/validator.py
20fd40589bb3d617df172095fcf04742cd2fc9a9
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT", "BSD-3-Clause-Modification", "Unlicense", "Apache-2.0", "LGPL-3.0-only", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "CC0-1.0" ]
permissive
DataDog/integrations-core
ee1886cc7655972b2791e6ab8a1c62ab35afdb47
406072e4294edff5b46b513f0cdf7c2c00fac9d2
refs/heads/master
2023-08-31T04:08:06.243593
2023-08-30T18:22:10
2023-08-30T18:22:10
47,203,045
852
1,548
BSD-3-Clause
2023-09-14T16:39:54
2015-12-01T16:41:45
Python
UTF-8
Python
false
false
12,459
py
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import abc import json import os from typing import Dict # noqa: F401 import six from ...datastructures import JSONDict from ...git import git_show_file from ...utils import get_metadata_file, has_logs...
[ "noreply@github.com" ]
noreply@github.com
a7a3c574f559605b827426b88383a43711079bb1
3b50605ffe45c412ee33de1ad0cadce2c5a25ca2
/python/paddle/fluid/tests/unittests/test_fleet_base.py
fe24c8838ec6c2ac41dde0d8f7ac9911509942b0
[ "Apache-2.0" ]
permissive
Superjomn/Paddle
f5f4072cf75ac9ecb0ff528876ee264b14bbf8d1
7a0b0dab8e58b6a3b28b3b82c43d55c9bd3d4188
refs/heads/develop
2023-02-04T20:27:54.244843
2023-01-26T15:31:14
2023-01-26T15:31:14
66,896,049
4
1
Apache-2.0
2023-04-14T02:29:52
2016-08-30T01:45:54
C++
UTF-8
Python
false
false
7,727
py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "noreply@github.com" ]
noreply@github.com
34eb9f9c335f563a8dabddcad33d1527899bcf40
209fefd58a4fcb538f1dbfdd148586aaa53f9d71
/decode/decode.py
b88eac602cee0f056ee3acd1a710d50be215e209
[]
no_license
korhov/qr-decode
f6efabf132eec7059c4acf9c43b1342378127d63
ed1149885dcc682bc624259b8760753f51d21888
refs/heads/master
2021-04-11T14:43:34.374956
2020-03-21T17:48:16
2020-03-21T18:38:11
249,029,697
0
0
null
null
null
null
UTF-8
Python
false
false
2,760
py
import cv2 from pyzbar.pyzbar import decode class Decode: def __init__(self): pass def decode(self, im): dec = self.decode_im(self.decode_blur(im)) if dec: return dec im = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY) kernel = cv2.getStructuringElement(cv2.MORPH_RE...
[ "s.kornoukhov@carprice.ru" ]
s.kornoukhov@carprice.ru
82fb38bb18d236b42e6c64b4e84af56061e9a111
f06d9c0d6c111e9fc65a8762ec9048d69e240c57
/venv/Lib/site-packages/tests/dfm_app/documents.py
5bc80972dda945c7f9bab2ee23f4ffe1ffbb7b51
[]
no_license
Pegondo99/Plantilla
4ec962c46f6d5a9f1cad45715053e61dcc8aefe3
35362709830594ce2ef5bc6c7136717ec7084ba1
refs/heads/main
2023-02-14T03:31:21.029664
2021-01-14T22:40:39
2021-01-14T22:40:39
329,666,673
0
0
null
null
null
null
UTF-8
Python
false
false
882
py
from mongoengine import fields, document from .constants import PROFILE_TYPES, PROFILE_TYPE_FREE, GENDERS, GENDER_MALE __all__ = ("Person",) class Person(document.Document): name = fields.StringField( required=True, max_length=255, default="Robot", verbose_name="Name" ) age = fields.IntField(req...
[ "pegondo99@uma.es" ]
pegondo99@uma.es
f10aed79b41024fb7da97f1022e91e6c06625933
5e5a92974eee4a655b353f9a874947bbec68d585
/examples/cifar100_resnet_dopamine.py
30085763966e9102f5ebbc86d117f2145b8fe7c8
[ "BSD-3-Clause" ]
permissive
zyq5945/dopamine
1094b9da5669e434d588eaab137695ab085f2423
98e9946e73328b40d2133db16f66bffcfe720197
refs/heads/master
2020-12-30T05:53:21.702222
2020-04-25T03:21:28
2020-04-25T03:21:28
238,882,646
4
0
null
null
null
null
UTF-8
Python
false
false
7,591
py
import tensorflow as tf from tensorflow.keras import layers, optimizers, datasets, Sequential, regularizers from resnet import ResNet18 import numpy as np import random import os import sys sys.path.append("../src") from dopamine import Dopamine, dopamine assert tf.__version__.startswith('2.') tf.random.set_seed(2...
[ "329587848@qq.com" ]
329587848@qq.com
44df53811bd284fc2f42a99e5ab2dd4568d2c005
2a3c0d083fa73d89e3ca9a86928a98f738c07055
/aws_utils/aws_utils/s3_ctl.py
0e9d39bed78c7d9648a58663ed26756af4e05afc
[]
no_license
hacchuu0119/pip_packages
8ebef92f9196c57aedb4e9cb60ec3623f534c10f
e79ee0ca6f76d7ebce33d0de02280cd58ea809f7
refs/heads/master
2020-08-29T08:25:25.911142
2019-12-17T07:44:50
2019-12-17T07:44:50
217,981,027
3
0
null
2019-11-07T03:00:38
2019-10-28T06:34:33
Python
UTF-8
Python
false
false
766
py
def s3_put_object_with_partition(s3_resource, bucket, key_and_prefix, partition_column, file_body, key_name='object'): """ :param s3_resource: boto3.resource :param bucket: bucket name :param key_and_prefix: save path :param partition_column: ex) register_date=yyyy-mm-dd :param file_body: text.o...
[ "kudokana33@gmail.com" ]
kudokana33@gmail.com