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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
014373df5e1938c8b39fd5fcaacbbd0655dfd64d | 4a53ae5afb11850196ac08763afc637a81ce1dbd | /turbo-entabulator/turbo_entabulator/utilities.py | 2e1a8a52db3511f74cc1a59121cdb99fb9f55ff6 | [] | no_license | xinyli-cumulus/TE_update | 5983309ef66f5316f56298fc3d7b1ef4fb0719d7 | 4e5b9299d3159bbcdd715c33cc08820ad2c8e3fb | refs/heads/master | 2021-05-26T10:49:14.229467 | 2020-04-08T14:10:19 | 2020-04-08T14:10:19 | 254,102,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,936 | py | #!/usr/bin/env python3
"""
Turbo-Entabulator utilities.
This file contains utilities used by the Turbo-Entabulator suite that don't
fall under the 'detections' or 'discovery' categories.
"""
# Copyright(c) 2018, 2019, 2020 Cumulus Networks, Inc
# John Fraizer <jfraizer@cumulusnetworks.com>
import json
import os
impo... | [
"noreply@github.com"
] | xinyli-cumulus.noreply@github.com |
07e30b5ca44e0780d580e0e6e6bb3d6b3d5b027e | 031b1c5b0c404f23ccd61a08845695bd4c3827f2 | /python/pyfiles/算术运算符.py | 39efec4aa582072f142c44bd1bc23d687686d1e0 | [] | no_license | AndyFlower/zixin | c8d957fd8b1e6ca0e1ae63389bc8151ab93dbb55 | 647705e5f14fae96f82d334ba1eb8a534735bfd9 | refs/heads/master | 2022-12-23T21:10:44.872371 | 2021-02-10T07:15:21 | 2021-02-10T07:15:21 | 232,578,547 | 1 | 0 | null | 2022-12-16T15:41:14 | 2020-01-08T14:13:25 | Java | UTF-8 | Python | false | false | 795 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 1 22:57:02 2020
@author: sanglp
"""
# +运算符
print(3+5)
print(3.4+4.5)
print((3+4j)+(4+5j))
print('abc'+'def')
print([1,2]+[3,4])
print((1,2)+(3,))
# -运算符
print(7.9 -4.5) # 浮点数有误差
print(5-3)
num = 3
print(-num)
print(--num)
print({1,2,3}-{3,4,5}) #计算差集
# *运算符
print(3333*... | [
"1308445442@qq.com"
] | 1308445442@qq.com |
4b23d796e4e6e0eaf5c71897207ec14d8b6168c5 | 5dc20d163ac874bef45f8aeadbdc8bef1697ea64 | /python-asyncio/src/asyncio/basic.py | bdbc3208817df584096fd5999af8abb797074038 | [] | no_license | bartfrenk/sandbox | 67241860ea35437a0f032a1b656a63908289fe19 | 563fc0051e742cc735c5da4b58a66ccf926e2b16 | refs/heads/master | 2022-12-10T04:51:56.396228 | 2020-02-23T11:18:28 | 2020-02-23T11:18:28 | 60,007,554 | 0 | 0 | null | 2016-05-30T12:12:09 | 2016-05-30T12:12:09 | null | UTF-8 | Python | false | false | 427 | py | import asyncio
import sys
class Test:
def __init__(self, number):
self.number = number
async def run(self):
print("The magic number is...", end=" ")
sys.stdout.flush()
await asyncio.sleep(1)
print(self.number)
async def main():
print("Hello")
await asyncio.sl... | [
"bart.frenk@gmail.com"
] | bart.frenk@gmail.com |
bfd774f91b26d227ba70c15082fed0194b86585b | c02e5e0730a04b0a16c68d8aad928daedd770948 | /App/forms.py | 6803dbdd618672636a38b52907a07a83f6c8f902 | [
"MIT"
] | permissive | ashtonfei/flask-mini-app | 11c005f05496d655078a259cc70347c9664e0738 | 5a825665caef257d1f0fe3a670fcd1cea650688e | refs/heads/main | 2023-03-30T18:12:44.430341 | 2021-04-09T15:46:06 | 2021-04-09T15:46:06 | 355,441,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SelectField, SubmitField
from wtforms.validators import DataRequired, Length, EqualTo, Email
class LoginForm(FlaskForm):
email = StringField(label='Email', validators=[DataRequired(), Email()])
password = PasswordField(label='Pass... | [
"yunjia.fei@gmail.com"
] | yunjia.fei@gmail.com |
0ef417ef2ea2ab51e1240c4fc86e2f26be2e0302 | 509d717f18caad77e00c3261dcf1934f7e5bd95d | /venv/css_selectors/sports_bet_page_locators.py | 65e85e02577a73a8730a604977beb681bc7cbdcc | [] | no_license | Swingyboy/pronet_design_testing | 8aee2f42e2452ca178fbe34e7a51ce7377156e08 | ad3dc5a58983ed6d6c9cef91a40ea8160f699dd0 | refs/heads/master | 2023-05-06T05:34:47.438023 | 2020-09-15T09:17:36 | 2020-09-15T09:17:36 | 281,055,876 | 1 | 1 | null | 2021-06-02T02:56:51 | 2020-07-20T08:12:21 | Python | UTF-8 | Python | false | false | 403 | py | from selenium.webdriver.common.by import By
class SportsBetPageLocators():
UPCOMING_EVENTS_BAR =(By.CSS_SELECTOR, 'upcoming-events > div > div.modul-header')
LIVE_BET_BAR = (By.CSS_SELECTOR, 'live-at-now > div > div.modul-header')
ESPORTS_BAR = (By.CSS_SELECTOR, 'app-esports > div > div.modul-header')
... | [
"kedonosec@gmail.com"
] | kedonosec@gmail.com |
bda1259acf1f9e58440de1958bf26bb65f5b568f | 144590772aaa89e5ead8936512b0bd035c215c7b | /resilient-circuits/tests/selftest_tests/mocked_success_script.py | 3ea0cb2eea6c0d23aebd1c0b1c2c4e1b72008c59 | [
"MIT"
] | permissive | ibmresilient/resilient-python-api | f65dad3f3c832581127026fa3e626eaf3d4749a7 | 84e8c6d9140ceac0bf47ce0b98e11c7953d95e61 | refs/heads/main | 2023-07-23T12:36:49.551506 | 2023-07-11T15:15:43 | 2023-07-11T15:15:43 | 101,414,862 | 37 | 31 | MIT | 2023-09-07T14:00:34 | 2017-08-25T14:59:45 | Python | UTF-8 | Python | false | false | 276 | py |
def selftest(opts):
"""
Placeholder for selftest function. An example use would be to test package api connectivity.
Suggested return values are be unimplemented, success, or failure.
"""
return {
"state": "success",
"reason": None
} | [
"Ryan.Gordon1@ibm.com"
] | Ryan.Gordon1@ibm.com |
7b330a04a2dde22bdff089a6ed4a3ec386cbc41c | a78fa01825c57797d45d57f7e7143ef91024aa1e | /db_tools/import_category_data.py | 970b412ad79f732fb880182e770e6ca7a2c8a308 | [] | no_license | giwatest/MxShop | 8e68fb917d7ccc3f6cca24bc654cb1868f0c1409 | 4500eb6d4c85110ed3c97209c007be35ceb1cd6b | refs/heads/master | 2020-07-19T01:53:49.427411 | 2020-02-23T14:58:34 | 2020-02-23T14:58:34 | 206,355,008 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | # encoding: utf-8
__author__ = 'GIWA'
#批量导入商品类目
#
#
import sys
import os
pwd = os.path.dirname(os.path.realpath(__file__))
sys.path.append(pwd+'../')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "MxShop.settings")
import django
django.setup()
from goods.models import GoodsCategory
from db_tools.data.category_da... | [
"bingna.liu@xinchan.com"
] | bingna.liu@xinchan.com |
b9ac3eaf94bdd09fd0832248e58d306bcfe3a66b | d8f44692c9f9f0a9a391a49db0f4f659a2ef6fe8 | /jsBuilds/jsBuilder.py | c6d54a0f8bcd6b1b48141c786117bd378dc21f5d | [
"MIT"
] | permissive | skylarkgit/sql2phpclass | 045e71963574b719313fc98882f5c710435f101f | a79e7f3cfda8cb41ba00e8cbba0de33e9be759d6 | refs/heads/master | 2020-03-19T02:34:34.229287 | 2018-07-04T18:58:28 | 2018-07-04T18:58:28 | 135,640,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,062 | py | import sys
sys.path.append('..')
from jsBuilds.jsTemplates import *
from jsBuilds.jsSupport import *
from lib.fileOps import *
from dtfSupport import *
import jsbeautifier
tables=None
DEPENDENCIES="$scope,archonAPI,ToolBag,$http,$window,$filter,$mdDialog"
def getSelectServices(tableSurface):
tableName=tableSurface.a... | [
"abhay199658@gmail.com"
] | abhay199658@gmail.com |
c69507f367aefa1127fc150a6f8ecc701ddc571a | 6aed964b224292fb1d76f9b5dacb0883abe929fc | /ablog/theblog/migrations/0006_auto_20200927_2319.py | 2a457ec8fc67c8216b10e0e78141980f6a740de7 | [] | no_license | satish-313/OurBlog | e575585c4e0960a552628164f1cd8dee7d99a0c5 | ce497682ba1f6be725be7cdb1d1e02241059843f | refs/heads/master | 2023-02-09T22:33:47.816592 | 2020-12-22T16:22:18 | 2020-12-22T16:22:18 | 319,668,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Generated by Django 3.1.1 on 2020-09-27 17:49
import ckeditor.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('theblog', '0005_auto_20200926_2239'),
]
operations = [
migrations.AlterField(
model_name='post',
name... | [
"pradhansatish53@gmail.com"
] | pradhansatish53@gmail.com |
c27426914cd5012c8f9639773cee57f0c16aeee3 | 57972581decd1707834a58eefa3b77e9ed24bf28 | /service_2/__init__.py | 4e910ebf3bd4d91cd523d337209cb03068cfa80c | [] | no_license | abhyasgiri/milestone-serverless-project | 8e671288adf3abbf71217e42c3984152da967571 | 3e1a67859fd0289ae56772b4b5079fa43452a1a4 | refs/heads/main | 2023-02-23T01:30:23.132175 | 2021-02-02T16:44:01 | 2021-02-02T16:44:01 | 335,349,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | import logging
import random
from string import ascii_lowercase
import azure.functions as func
def main(req: func.HttpRequest) -> func.HttpResponse:
logging.info('Python HTTP trigger function processed a request.')
letters = ""
for _ in range(5):
letters += random.choice(ascii_lowercase)
... | [
"abhyasgiri@outlook.com"
] | abhyasgiri@outlook.com |
f91e0e107d8ae9b3d2e01fcae49d69d459b91219 | 4ac3571fed09a6f475448ce7555abfe0daf00151 | /lettercount.py | 562fd93c1e54f46ef9fca3b9d017397542448363 | [] | no_license | ThorHlavaty/pythondicts | fb21ffd490ae2c0faa6ea43abcda0cead3f7ba97 | d7bc47a28ce1d04b212da277e05a5c624dc1feec | refs/heads/master | 2022-12-12T08:24:39.300182 | 2020-09-04T18:15:46 | 2020-09-04T18:15:46 | 290,031,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | def letter_counter(a_string):
letter_count = {}
for letter in a_string:
letter_count[letter] = a_string.count(letter)
return letter_count
def word_histogram(a_string):
word_count = {}
this_thing = a_string.lower().split()
for word in this_thing:
word_count[word] = this_thing.c... | [
"thorthebore@gmail.com"
] | thorthebore@gmail.com |
79722b7ad6e4e2c4ed519da6d093a3f52c9824bf | f56d915f46d779b9ed07a8b6bb048b688865cd7b | /passette.py | 97f4c671482303943a387b2184856c6fc5a118fc | [] | no_license | deskofcraig/spotifyplayer | 42a252a92ab5d9cc3a1ed7bb68b886579bd1178a | 759deb180e345712c09a07e1d5e0fa55dd747e3a | refs/heads/master | 2020-04-11T05:42:33.882169 | 2019-01-19T02:47:32 | 2019-01-19T02:47:32 | 161,557,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,788 | py | #import the GPIO and time package
import RPi.GPIO as GPIO
import time
import os
#from mopidy import core
GPIO.setmode(GPIO.BOARD)
#yellow/back button
GPIO.setup(37, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
#red/pause button
GPIO.setup(36, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
#green/play button
GPIO.setup(33, GPIO.IN, pul... | [
"noreply@github.com"
] | deskofcraig.noreply@github.com |
b0af71064e926490ac415e9930d72e7cccec1d8c | 7464f15c33c74454f2a98dceb7f603919abba4d1 | /happy.py | 01383a2a50c7506bb341600a3deaf9076a692953 | [] | no_license | willingc/my-bit | 374bece797c59956e500504cd62940a2c1718013 | 535768dcb09297f1028e0e111fd062b91e8032c6 | refs/heads/master | 2016-08-08T21:26:22.119643 | 2015-11-30T03:23:59 | 2015-11-30T03:23:59 | 47,053,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | """
happy.py
by Carol Willing
November 28, 2015
Public Domain
Use this to display a 'Happy Face' image on micro:bit's 5x5 pixel grid of LEDs.
Remember... Writing a program is similar to planning a birthday party.
Program Birthday party
------- --------------
'Prepare' Prepare the room with balloons;... | [
"carolcode@willingconsulting.com"
] | carolcode@willingconsulting.com |
e9ad5aee994bfbdd74e6f30e6aa132036122e60b | 437b5b668d6d2c6f089bbeabb2676db46d8cdd07 | /temp_ach_multiprocess.py | 0037b9c2e1f8db810f86f2e2c4c54c41b7643c81 | [
"MIT"
] | permissive | marcelosalles/idf-creator | 4e53d185ab42b7f14dbd2d83e9ffe7e015ef07c3 | 399a68dbee9d275e79df75c55acdec5f246ff07f | refs/heads/master | 2020-03-18T13:03:40.804518 | 2018-12-21T19:33:49 | 2018-12-21T19:33:49 | 134,758,816 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,378 | py | # Return EHF from multiple simulation results of Operative Temperature
import argparse
import csv
import datetime
import glob
from multiprocessing import Pool
import os
import pandas as pd
FOLDER_STDRD = 'cluster'
LEN_FOLDER_NAME = len(FOLDER_STDRD) + 2
BASE_DIR = '/media/marcelo/OS/LabEEE_1-2/idf-creat... | [
"marcelosalles@github.com"
] | marcelosalles@github.com |
dc2a482aa68540bad4c20f140f3fc7b3df59ceef | 0712a5355fb7b2110df802f0630db3f421ffa08e | /MyoGrapher/__init__.py | 5637e8c629fbc81d87154322b678fdf91bbc7f9a | [
"MIT"
] | permissive | nullp0tr/MyoGrapher | 6f404bc29034ce585742b0eac7798981d82867ee | 153dc26a77585181e8a25f427c7c5493767e20ab | refs/heads/master | 2021-01-01T18:13:54.648687 | 2017-12-14T17:32:28 | 2017-12-14T17:32:28 | 98,281,130 | 1 | 1 | MIT | 2017-12-14T17:32:29 | 2017-07-25T08:06:36 | Python | UTF-8 | Python | false | false | 3,156 | py | import pygame
class MyoGrapher(object):
def __init__(self, width=1200, height=400):
self.width, self.height = width, height
self.screen = pygame.display.set_mode((self.width, self.height))
self.last_values = []
self.dlast_values = []
def dplot(self, vals, shifts, colors):
... | [
"ahmeds2000x@gmail.com"
] | ahmeds2000x@gmail.com |
88ed4535cc1d89f37f97af16d48dceabab6add6f | 1e39bbec23e4200d84237cb2446e4285736cbf98 | /options.py | b17459e6a9edea456a043196dec7c461421c41c3 | [] | no_license | JRiyaz/password-manager | 00617c4f16f7438c392baf972d66d77eca11e519 | 215947d5ce5934bd04d11f3cf1d035cf457a5fa9 | refs/heads/main | 2023-05-31T12:05:06.772659 | 2021-07-05T09:54:44 | 2021-07-05T09:54:44 | 379,824,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,787 | py | import sys
from colors import Colors
from security import PasswordManager
class Options:
# username of the user
__username = ''
# Show welcome message for first time
__welcome = True
@staticmethod
def __ask_username() -> None:
""" This method prompt the user to enter username through... | [
"j.riyazu@gmail.com"
] | j.riyazu@gmail.com |
5527d366f62eeca1618526aeba69c022f62e9b48 | fb887b712b05c5e2a3ab1a02d9349c246fc06922 | /app/migrations/0003_auto_20210316_2151.py | 5cba198802eba0fe273af13aee79f4ead5b43c65 | [] | no_license | kousik-prabu-git/SafeNest | 3347b139488053d42abd4997cf6f9e3a11542e1d | b9368a497e37b2076683eb00e7d8f8644647b903 | refs/heads/master | 2023-04-14T12:15:47.598980 | 2021-05-02T08:28:27 | 2021-05-02T08:28:27 | 347,817,753 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | # Generated by Django 3.1.3 on 2021-03-16 16:21
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),
('app', '0002_auto_2021031... | [
"uniqfocuz@gmail.com"
] | uniqfocuz@gmail.com |
96d06f52d129d45476dbb90da29283a0859e2776 | f6ff601089f678fecbfa22a4d95c1de225bc34b5 | /code12.py | eea027367cb9c55e95dee5542ce2b7d981997d76 | [] | no_license | Kumar1998/github-upload | 94c1fb50dc1bce2c4b76d83c41be2e0ce57b7fa6 | ab264537200791c87ef6d505d90be0c0a952ceff | refs/heads/master | 2021-07-05T10:14:13.591139 | 2020-07-26T15:47:30 | 2020-07-26T15:47:30 | 143,553,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | x=int(input("Enter 1st number:"))
y=int(input("Enter 2nd number:"))
sum=x+y
average=sum/2
print("Sum of the given two numbers is:",sum)
print("Average of the given two numbers is:",average) | [
"noreply@github.com"
] | Kumar1998.noreply@github.com |
be23dca58eab757909e1b01ac74a7f2f65028785 | ee9ddec6307ab76a567b4001cee47278d503b3da | /01. Naive Bayes/01. Spam filtering/classifiers/NaiveBayesClassifier.py | ba39bc3088615798e97486a6ab994a7f35f41607 | [] | no_license | Phil9l/probabilistic-graphical-models | ebf6f6366169f6e4cec72a0199a330a1e350818d | 9471b79ad7d8f0a511ae94a3719132592c5f79a7 | refs/heads/master | 2021-01-18T17:23:56.035485 | 2017-03-31T08:26:30 | 2017-03-31T08:26:30 | 86,793,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from collections import defaultdict
__all__ = ['NaiveBayesClassifier']
class NaiveBayesClassifier:
def __init__(self):
self._class_data = defaultdict(dict)
def train(self, data, cls):
raise NotImplementedError
def predict(self, data):
raise NotImplementedError
| [
"phil9lne@gmail.com"
] | phil9lne@gmail.com |
e5a9e28f6005491c144002425c212dd0d5803423 | a2e11ec88ef3c83b9f07129e76a3681a676d164f | /sessionproject3/sessionproject3/wsgi.py | a7a02fa35437ef303c13922290ff105dce0051b2 | [] | no_license | qwertypool/lofo | dadd7cd5b149a3a200b7111d803b1d0195d76642 | 3bc7bd125e7ea5a67f51dd6dd654e38a5f218055 | refs/heads/master | 2022-05-18T09:31:11.456634 | 2020-04-18T14:47:44 | 2020-04-18T14:47:44 | 256,773,858 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for sessionproject3 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"deepapandey364@gmail.com"
] | deepapandey364@gmail.com |
2bfaceaec7ad594a098bc8fdcd309b8ee2a0c70d | 6e42b85d0deb68eeddf18bb1849daf0ee6fc0df1 | /main/tests/test_views.py | 978e99dee0b28789949a209162916459f411d351 | [] | no_license | NotSecretEmmet/TipsCalculator | 8980be28412cf4c7353d5a3a4260c19c436a9a85 | 5251d1ddeaf56e9f968e8d45f265c97ddd328698 | refs/heads/main | 2023-03-13T06:51:31.422859 | 2021-03-03T16:32:19 | 2021-03-03T16:32:19 | 316,184,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | from django.test import TestCase, Client
from django.urls import reverse
from django.contrib.auth.models import User
class TestViews(TestCase):
def setUp(self):
self.client = Client()
self.user = User.objects.create_user('johnlennon', 'lennon@thebeatles.com', 'johnpassword')
def test_home_view_GET(self):
se... | [
"emmet@emkit.nl"
] | emmet@emkit.nl |
d3542bde55fffcec1c5d1a1f2685e6561647f06c | 616133580e0f01adaa6ac4117329e93e6f7ad931 | /Main.py | edb84ae88794d8a239d611b73066c6e7c6e636bc | [] | no_license | ckarnell/kings_cup_app | df09d0c94e9f288eee3df9da72f2b0f32dd52a98 | 9f1eb5ecf7ea6f1f8403887218f37c3d135150ec | refs/heads/master | 2021-01-19T11:26:25.571172 | 2017-02-17T01:33:35 | 2017-02-17T01:33:35 | 82,243,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | from Tkinter import *
from time import sleep
from controller.deck import Deck
from static.static import Static
class App:
def __init__(self):
self.deck = Deck()
self.player = 0
self.root = Tk()
self.root.title('King\'s Cup')
# Pack the initial card image.
logo = Ph... | [
"cohen.karnell@gmail.com"
] | cohen.karnell@gmail.com |
105ba1f6775de7f1b066de7bcf5b3977007dfca9 | 851763767750eea0565b46a339cee37c1273b457 | /Interview Questions/LinkedList/IntersectionPointTwoLinkedList.py | ccd068dd9751c34704630b385017c8ae544406f6 | [] | no_license | sunamya/Data-Structures-in-Python | f076e4b2febe24fee31b05b83574e4e1f344014e | 6c3eec7a4184b93bb18f54071bc0232cb0a76a08 | refs/heads/main | 2023-06-21T02:54:23.652347 | 2021-07-18T16:35:12 | 2021-07-18T16:35:12 | 379,672,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,503 | py | #User function Template for python3
'''
Function to return the value at point of intersection
in two linked list, connected in y shaped form.
Function Arguments: head_a, head_b (heads of both the lists)
Return Type: value in NODE present at the point of intersection
or -1 if no common point.
Con... | [
"sunamyagupta@gmail.com"
] | sunamyagupta@gmail.com |
c70b445d6d1bb1da816fcacacadb68decd13d563 | b424a13f032d5a607e6df4dd78bc47ad1d06a147 | /astroquery/simbad/tests/test_simbad.py | fe66d82dc76fea148ff9163e36a89ec61940870a | [] | no_license | EnjoyLifeFund/macSierra-py36-pkgs | 1e7eeb9b55415da6eb12465d67730d76e9cc619a | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | refs/heads/master | 2021-01-20T10:23:50.044019 | 2017-09-05T02:53:26 | 2017-09-05T02:53:26 | 90,333,987 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,899 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import os
import re
from astropy.extern import six
import pytest
import astropy.units as u
from astropy.table import Table
import numpy as np
from ... import simbad
from ...utils.testing_tools import MockResponse
from ...utils import commons
from ...exce... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
fdece734fd20e95f571e250da5d3d0bb56e27b8a | 5b029c81490df1cd2988108ed23e71aca40a9816 | /MusicPredictiveAnalysis_EE660_USCFall2015-master/Code/Machine_Learning_Algos/10k_Tests/ml_classification_simple_pca.py | a9f5f7a9d11effe0c958f66898e4d78676120bad | [
"MIT"
] | permissive | lianghaol/Machine-Learning | e9b9ea009629ee1a0e24a0e55d90a3ed3c92ec05 | e3353252ca54b62ff8f5ada87566bab4f373c260 | refs/heads/master | 2021-12-10T19:19:34.914637 | 2016-09-16T02:48:30 | 2016-09-16T02:48:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,835 | py | __author__ = 'NishantNath'
# !/usr/bin/env python
'''
Using : Python 2.7+ (backward compatibility exists for Python 3.x if separate environment created)
Required files : hdf5_getters.py
Required packages : numpy, pandas, matplotlib, sklearn
Steps:
1.
# Uses Simple PCA to find the most important features
# Uses Simpl... | [
"ozbekahmetcan@gmail.com"
] | ozbekahmetcan@gmail.com |
f8f8a93e2b53a4b74d0c41930fd04e417f2189c8 | 2f418a0f2fcca40f84ec0863b31ff974b574350c | /scripts/addons_extern/cut_mesh-master/op_slice/slice_datastructure.py | 6c86f20d47db1178d36c9ecde0f011a0e1296f6c | [] | no_license | JT-a/blenderpython279 | 57a81b55564218f3b1417c2ffa97f5161897ec79 | 04846c82f794c22f87d677d9eb8cec1d05c48cda | refs/heads/master | 2021-06-25T06:58:07.670613 | 2017-09-11T11:14:36 | 2017-09-11T11:14:36 | 103,723,697 | 4 | 2 | null | 2017-09-16T04:09:31 | 2017-09-16T04:09:31 | null | UTF-8 | Python | false | false | 7,750 | py | '''
Created on Oct 8, 2015
@author: Patrick
'''
import time
import bpy
import bmesh
from mathutils import Vector, Matrix, kdtree
from mathutils.bvhtree import BVHTree
from mathutils.geometry import intersect_point_line, intersect_line_plane
from bpy_extras import view3d_utils
from ..bmesh_fns import grow_selection_t... | [
"meta.androcto1@gmail.com"
] | meta.androcto1@gmail.com |
82a251d9f29c640dcd3ba0e0881292074c885c57 | caeedf133282db88bb11d5a4ae6fb20fee609103 | /AdvpythonDay3/demomutliprocessing/pshttpclient.py | d97fe5bdfba00f99929584fd95bea398c6a04b01 | [] | no_license | Shital-andhalkar/Advance_python_course | 81190bfdaaf6b4da1f43b592ebe496f65461a05c | d49e25efe52ae13713108572493f15cb4d96ea9d | refs/heads/master | 2020-04-03T20:36:25.822808 | 2018-11-01T07:07:33 | 2018-11-01T07:07:33 | 155,551,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | import requests
import multiprocessing
from requests.exceptions import ConnectionError
def web_crawler(q):
""""""
try:
p_name=multiprocessing.current_process().name
url = q.get()
payload=requests.get(url).content
print("{}:{}:{}".format(p_name,url,payload[:128]))
... | [
"noreply@github.com"
] | Shital-andhalkar.noreply@github.com |
42cb4acff470deea4ca9e3b4cc937a546a964c39 | dc75ed733ecd023aebc2989c1f956ca575bd9e14 | /load_testing/mixed_tomcat.py | 2828e6f44380488c2e1649f73646d64b6a838316 | [] | no_license | deven810/Web-Projects | fd5e9f1e5fd9c348f4731219052e6f680638e311 | 4e8cc3f889d95bf3a37513291da50bae7a704918 | refs/heads/master | 2020-04-17T04:55:20.054883 | 2018-12-05T22:38:29 | 2018-12-05T22:38:29 | 166,253,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # mixed_tomcat.py
import sys, random
from locust import HttpLocust, TaskSet
def readRequest(locust):
postid = random.randint(1, 500)
locust.client.get('/editor/post?action=open&username=cs144&postid='+str(postid), name='/editor/post?action=open')
def writeRequest(locust):
postid = random.randint(1, 500)
... | [
"devenagrawal.810@gmail.com"
] | devenagrawal.810@gmail.com |
ce51ad1ecc38aea688ceb967a158f3a5b6e99f01 | ed12b8d91b207d4bb5cd5bf114184e08c4a9237c | /pe033.py | bab1aa10b62766d72e4407e8447b1d4db87c8972 | [] | no_license | Rynant/project-euler | 544b4b48dda63913abf7d61201fe3ea0961b118f | c19090a6e0e8db3422c47dcce0fb886840493428 | refs/heads/master | 2021-01-10T20:43:16.782124 | 2014-06-11T18:11:28 | 2014-06-11T18:11:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | from primes import gcd
def answer():
numerator = denominator = 1
for i in range(10, 100):
if not i % 10: continue
for j in range(i+1, 100):
if not j % 10: continue
k, l = str(i), str(j)
if(k.find(l[0]) >= 0):
k, l = float(k[(k.find(l[0])+... | [
"rgrant@garnethill.com"
] | rgrant@garnethill.com |
90e46fcc82a3f160f8cd2bcfbc49f9442619ab7d | 10b43efca8647c86ac0ea9df1dd8368db5dff931 | /gen_data.py | 0d5b03686f6b71f86f251a59605ce223d2bdd756 | [
"MIT"
] | permissive | ruiyangio/latency-graph | ed0244c87d9b6d3d3bff7fa4aaaca1a07f9e40e2 | ba0414b11c31f565a5ca41b29e1d0aad9e545aa2 | refs/heads/master | 2020-03-25T03:36:41.982072 | 2018-08-03T04:20:27 | 2018-08-03T04:20:27 | 143,350,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | import csv
import random
import numpy as np
import string
nodes = []
for i in range(120):
nodes.append(''.join((random.choice(string.ascii_uppercase), random.choice(string.ascii_uppercase), random.choice(string.digits))))
edges = []
for i in range(15000):
edges.append( random.choice(nodes) + "\t" + random.cho... | [
"ruiyangwind@gmail.com"
] | ruiyangwind@gmail.com |
33a16862ec2f40db072c68c1e4c243096bce805a | abb614790bdf41c7db9d09dfdea4385f78c2be52 | /rtk-RQA/rtk/hardware/component/connection/Socket.py | c1454c5a9c43e324ac69b5e3c374fd2decff5864 | [
"BSD-3-Clause"
] | permissive | codacy-badger/rtk | f981bb75aadef6aaeb5a6fa427d0a3a158626a2a | bdb9392164b0b32b0da53f8632cbe6e3be808b12 | refs/heads/master | 2020-03-19T02:46:10.320241 | 2017-10-26T20:08:12 | 2017-10-26T20:08:12 | 135,659,105 | 0 | 0 | null | 2018-06-01T02:43:23 | 2018-06-01T02:43:23 | null | UTF-8 | Python | false | false | 5,321 | py | #!/usr/bin/env python
"""
######################################################
Hardware.Component.Connection Package IC Socket Module
######################################################
"""
# -*- coding: utf-8 -*-
#
# rtk.hardware.component.connection.Socket.py is part of the RTK
# Project
... | [
"arowland@localhost.localdomain"
] | arowland@localhost.localdomain |
4f2d80280f1710eb34ef81a47bbccef522f62c15 | af5f6d99a23711725ccf0431a62ca37b96acccf3 | /manage.py | 0b1d71a459fa7ee0fc39cd93cffd8801fdc5a6cf | [
"MIT"
] | permissive | nimowairimu/Django-IP1 | daa58f53c1d94e7d1d8dcbbead081be506c75343 | 0def901a0a2f34f644ed42bd4d1c8f883743cffe | refs/heads/main | 2023-03-23T17:21:50.203551 | 2021-03-23T17:23:30 | 2021-03-23T17:23:30 | 348,981,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "vetdaily.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are... | [
"nimowairimu25@gmail.com"
] | nimowairimu25@gmail.com |
a0e34d34734d4acd75e8ed1f3ea57119148e7c08 | 2b5cb00bda71b5e76843baa84a9ce1ca6be9e13b | /clustering/acquire_zillow.py | 930e20b94a5ce08c8b410da6e0c4e28d9207feef | [] | no_license | CodyBrettWatson/ds-methodologies-exercises | 07e851b2d08c6c889db4bd849d2d12cc4cc97ecc | 902e880b31d2b76eedca8d80ff0de9e0aa0dcd0f | refs/heads/master | 2020-05-02T15:29:39.784446 | 2019-05-20T12:58:06 | 2019-05-20T12:58:06 | 178,042,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,613 | py | ##########################################
## WILL NEED TO PIPE ALL THESE FUNCTIONS##
##########################################
# Getting data from SQL databases
from env import host, user, password
import pandas as pd
from sqlalchemy import create_engine
def get_db_url(
host: str, user: str, password: str, db_n... | [
"codywatson@codys-MacBook-Pro.local"
] | codywatson@codys-MacBook-Pro.local |
4c54b23822c77598fc8746f24f4c1bf18cdad087 | d9fb6c246965cbf290186268298859ddb913ee6e | /190813/03_mod.py | 3a21a5da1950eb762f029d3aa591e49c9be98f49 | [] | no_license | 91hongppie/algorithm | 1ca6d54de6eab252c708bf83835ace8a109d73fc | 4c2fa8178e0ef7afbf0b736387f05cbada72f95d | refs/heads/master | 2020-07-20T22:17:40.700366 | 2020-06-29T00:06:11 | 2020-06-29T00:06:11 | 206,717,677 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | import sys
sys.stdin = open('sample_input_03.txt', 'r')
N = int(input())
for i in range(1, N+1):
play = list(map(int, input().split()))
test_words = [[] for i in range(play[0])]
for j in range(play[0]):
test_words[j] = list(map(str, input()))
for m in range(play[0]):
for n in range(pl... | [
"91hongppie@gmail.com"
] | 91hongppie@gmail.com |
f407b06b2595c41745867f79d0c2bf69dedc166e | 638fa52ac8fc9439f3ad06682c98c21646baf317 | /LatinGlyphs.py | 30d438949c7076016bea617653261187307fa34f | [
"Apache-2.0"
] | permissive | DunwichType/mixer | 68c1965de0a30b34ce9e852fe9e7323e9cb2f6eb | 7b82ba851fdb5b3aa26092d5d54d5e5e47f9b8a1 | refs/heads/master | 2021-01-10T17:10:20.760847 | 2015-10-19T22:30:52 | 2015-10-19T22:30:52 | 44,567,912 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,631 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#Lists of Latin Glyphs for use with Mixer
# Basic Latin Alphabet
majbasic = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
minbasic = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k... | [
"junker@dunwichtype.com"
] | junker@dunwichtype.com |
a90e5a8ba7a2476925946904b9c73c06d09cfda9 | e7c8bcd6156956123c0ffcd1e3603e8b0ba0fcf8 | /tickTacToe.py | 0da1e458ef3a0aadf53bbbd2573513c697c80919 | [] | no_license | flow0787/python | 421efa9c3541d618778e2f7cd3f3aceed946ee6e | 38a995568c10ff31c516d85877cb9b0ad9596a3a | refs/heads/master | 2020-04-06T06:55:46.278080 | 2020-02-12T08:32:32 | 2020-02-12T08:32:32 | 63,419,040 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | theBoard = {"topL": " ", "topM": " ", "topR": " ",
"midL": " ", "midM": " ", "midR": " ",
"lowL": " ", "lowM": " ", "lowR": " "}
def printBoard(board):
print(board['topL'] + '|' + board['topM'] + '|' + board['topR'])
print('-+-+-')
print(board['midL'] + '|' + board['midM'] + '|' + board['midR'])
print('-+-+-... | [
"badeaflorien@gmail.com"
] | badeaflorien@gmail.com |
cd4f12206ec91523ba27cb33a771f3673c839cd1 | cc129db64fc64d1cb9a99526583771c10e245deb | /tests/test_det_next_michigan_development_corporation.py | da9a98ab1e31ab67be68a83440ae713aa016e955 | [
"MIT"
] | permissive | avelosa/city-scrapers-det | a42df36b7d2e98f7be68ae17e22c03af7a20280c | 964b941b67fb5113cda5e2bebd2ba288ac1422d7 | refs/heads/main | 2023-02-02T01:19:07.396737 | 2020-09-29T16:52:11 | 2020-09-29T16:52:11 | 300,441,174 | 1 | 0 | MIT | 2020-10-01T22:30:23 | 2020-10-01T22:30:22 | null | UTF-8 | Python | false | false | 4,826 | py | from datetime import datetime
from os.path import dirname, join
import pytest
import scrapy
from city_scrapers_core.constants import BOARD, PASSED, TENTATIVE
from city_scrapers_core.utils import file_response
from freezegun import freeze_time
from scrapy.settings import Settings
from city_scrapers.spiders.det_next_mi... | [
"pjsier@gmail.com"
] | pjsier@gmail.com |
258e2deac675e627b1e12054d8f0b720e887f41f | aa0fc44d694f2b971bbda827c755296faa44d86f | /test/py2neo/index_test.py | f253623c2f494e062c1e5909427d941f1080a0bb | [
"Apache-2.0"
] | permissive | fugu13/py2neo | 8f6a5065883c7eb96bb0d32c45bce2a9533d19a5 | d3fa87199b51b554d1d04c7334d1bc7b887f7273 | refs/heads/master | 2021-01-17T04:52:58.719996 | 2012-08-01T20:44:43 | 2012-08-01T20:44:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,211 | py | #/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
PY3K = sys.version_info[0] >= 3
__author__ = "Nigel Small <py2neo@nigelsmall.org>"
__copyright__ = "Copyright 2011 Nigel Small"
__license__ = "Apache License, Version 2.0"
from py2neo import neo4j
import unittest
def default_graph_db():
return neo4j... | [
"nigel@nigelsmall.name"
] | nigel@nigelsmall.name |
4212426d83cef5a31b6993b1859aa096f5a86957 | c7bb490ef96fda51a946478a4f584814e1665a6a | /backend/urls.py | 06c33f1ea3c2e43ed3c886400d353b67ec87d687 | [] | no_license | pawanpaudel93/motion-planning-dashboard | e70acc9737cdedf0fd0beac0a0700cc88f9c2559 | 642f5955d518747dfc14f1f22a93ef20784329d8 | refs/heads/master | 2023-03-11T14:33:31.643898 | 2021-02-28T11:26:16 | 2021-02-28T11:26:16 | 340,398,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | """MPD URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
"""
from django.contrib import admin
from django.urls import path, include, re_path
from rest_framework import routers
from .api import urls as api_urls
fro... | [
"pawanpaudel93@gmail.com"
] | pawanpaudel93@gmail.com |
966163ac218a00e186e1835d56634756e84143fb | cf72eced416ae5fee75e194b4da7728a00520c54 | /Chapter12SpreadSheetCellInverter.py | 1c1fd68ab2760d6d47d1bc1f4deba4c7b1928ea9 | [] | no_license | spencercorwin/automate-the-boring-stuff-answers | ed08080ec3c38a5cc84510e13995cb3cb95d5809 | e564658ae702672670e17c2989a58d75b9110d32 | refs/heads/master | 2021-09-19T02:50:39.541981 | 2018-07-22T22:09:13 | 2018-07-22T22:09:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | #! usr/bin/env python3
#Chapter 12 Challenge - Spreadsheet Cell Inverter
#This program inverts the row and column of cells in a spreadsheet
import os, openpyxl, pprint
os.chdir('/Users/spencercorwin/Desktop')
wb = openpyxl.load_workbook('testFile.xlsx')
sheet = wb.active
resultSheet = wb.create_sheet(index=2, title... | [
"noreply@github.com"
] | spencercorwin.noreply@github.com |
97cb339e8b6bfc2cd89e1ed0be47bb4f41d910d8 | 1feffdfcdc376ce007d64c911ebbe31826bf217e | /Core/CoreEngine.py | 9100c47f796a722de061abd7fb2c2871a97ad97e | [] | no_license | Zaladar/rpgmotor | 1c3bfae5c332351b0d69559575ebe5a8cd2fdc55 | dccc84f73008132be18a2a9c389d02d68b14b28d | refs/heads/master | 2020-12-30T11:38:56.071865 | 2017-10-20T12:32:47 | 2017-10-20T12:32:47 | 91,575,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,185 | py | #1 standard livraries
from random import *
#2 Third party
#3 Local
dices = {}
class Dice:
def __init__(self, name, sides, mod):
self.name = name
self.sides = int(sides)
self.mod = int (mod)
# här borde finnas decorator som kan applicera mod
def rolling(self, t):
#printout ... | [
"oscarjwhaglund@gmail.com"
] | oscarjwhaglund@gmail.com |
e8c4c60a57463e9f15f1b88dd4eda1629eea2dfc | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /2JHYavYqynX8ZCmMG_5.py | f3bd9ad800ee0f88625397c941672c01b7288b50 | [] | 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 | 126 | py |
def ascii_sort(lst):
if sum([ord(x) for x in lst[0]]) <= sum([ord(x) for x in lst[1]]):
return lst[0]
return lst[1]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0bc44e39ed3c0411a6484900df8dc4ccda28fa3a | 67b0379a12a60e9f26232b81047de3470c4a9ff9 | /profile/migrations/0042_auto_20170225_1639.py | 6f002bfd9f51f8ca97ff8153953db520d0afe6e9 | [] | no_license | vintkor/whitemandarin | 8ea9022b889fac718e0858873a07c586cf8da729 | 5afcfc5eef1bb1cc2febf519b04a4819a7b9648f | refs/heads/master | 2021-05-06T03:35:09.367375 | 2017-12-20T15:43:08 | 2017-12-20T15:43:08 | 114,904,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-02-25 14:39
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('profile', '0041_auto_20170217_1405'),
... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
272977aa9883b7e270a1e4aa51d6f4540f0c7ef8 | ada39040fa1e56fb7de6147ff62e6c8dee1f69bb | /Backend.py | 9d49833595073ea3e4fab7d29b580bc74cec35ea | [] | no_license | hendpraz/chatbot-pattern-matching | c18880fde6df9663768ee482c233e5804823b756 | 478c873f1e53398c6f37919cda9e0f77a0194a88 | refs/heads/master | 2020-05-09T21:09:52.091634 | 2019-04-25T01:13:50 | 2019-04-25T01:13:50 | 181,433,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,956 | py | #!/usr/bin/python
import sys
import re
from utils import stopwords, listSynonym, FAQs
#from Sastrawi.StopWordRemover.StopWordRemoverFactory import StopWordRemoverFactory
#from ntlk.corpus import stopwords
#from ntlk.tokenize import word_tokenize
numOfQuestion = 0
questionDB = []
answerDB = []
#factory = StopWordRemo... | [
"45161697+hendpraz@users.noreply.github.com"
] | 45161697+hendpraz@users.noreply.github.com |
c13f2224b2a218046e61fc2c3ce17a06270f3028 | d6a030dfacb63fcb7ede3b1ed97dd723e5aab478 | /plotfio.py | fad2a7454bd7ff152db230d88500db0c26b49071 | [] | no_license | ahlfors/FIO-scripts | 0adabf2ffc164de67b7757aeb7ed6a4eb999b711 | b8fcb4998d3516606da965f421a6f6f3c8957dc2 | refs/heads/master | 2023-03-16T14:53:40.037181 | 2019-03-18T19:32:32 | 2019-03-18T19:32:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py | #!/usr/bin/env python3
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import csv, argparse
matplotlib.use('Agg')
parser = argparse.ArgumentParser()
parser.add_argument('-f', dest="files", type=str, nargs='+', required=True, help='The out.txt files')
parser.add_argument('-... | [
"batsarasnikos@gmail.com"
] | batsarasnikos@gmail.com |
99b49fca33ce2929cfd1a125527e1ee432ccfad4 | 42d58ba3005263744a04e6eb6e5a7e550b4eef29 | /Day2_Tip_Calculator.py | b63dca6d2e892a1ae8ef34186a247a15cec8473e | [] | no_license | ShaneNelsonCodes/100Days_Python | 8828ccfba0873084316f46bc98a53c603de452ae | 4cea2ba5fe0459a4676c7d164b5402dd244ff11b | refs/heads/main | 2023-02-12T14:01:10.726683 | 2021-01-12T13:59:04 | 2021-01-12T13:59:04 | 317,283,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | #If the bill was $150.00, split between 5 people, with 12% tip.
#Each person should pay (150.00 / 5) * 1.12 = 33.6
#Format the result to 2 decimal places = 33.60
#Tip: You might need to do some research in Google to figure out how to do this.
print("Welcome to the tip calculator\n")
bill = float(input("What was the t... | [
"Shane.Nelson@kp.org"
] | Shane.Nelson@kp.org |
6eb0d30982c51c95fe8b185a70ce7a5e912cdd20 | 2da72c9f9bbb0b5db33710cddbdee28503e5a606 | /UCI/pyQT-matplot-example 2.py | 0228e2bce7c9d982c2ca7970f732c4860c0e6cc5 | [] | no_license | gddickinson/python_code | 2e71fb22b929cb26c2a1456b11dc515af048c441 | dbb20e171fb556e122350fb40e12cc76adbb9a66 | refs/heads/master | 2022-10-26T15:20:40.709820 | 2022-10-11T16:06:27 | 2022-10-11T16:06:27 | 44,060,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 23 16:50:19 2015
@author: George
"""
import sys
from PyQt4 import QtGui
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib import NavigationToolbar2QTAgg as NavigationToolbar
import matplotlib.pyplot as plt
import random
c... | [
"george.dickinson@gmail.com"
] | george.dickinson@gmail.com |
bf5bf6f46c12b9cda5cfa83050001a0e72113069 | 79e45fa0e495be5aa967b21467771a27970df99b | /178.py | c1be11f9ea4f1241ffac13ed1324ae98de88788d | [] | no_license | kisa77/Crawl | 7d3b6d7077e60a47f5336b2976b226646cfe2cdb | ec25b563007481b169165f06ca04560d64a1ea74 | refs/heads/master | 2016-09-02T11:19:14.152200 | 2013-07-16T10:12:09 | 2013-07-16T10:12:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,896 | py | #/usr/bin/python
#coding=utf8
import urllib2,urlparse
import os,sys,bs4,chardet,MySQLdb
import re
from datetime import datetime
from HTMLParser import HTMLParser
class Crawl:
""" Class Crawl crawl data from db.178.com """
__data = ''
__connect = ''
__retryMax = 3
def __init__(self):
self... | [
"lixiao@comsenz.com"
] | lixiao@comsenz.com |
4f9561b6707673dd54e154e177dcfd3d25aebf98 | 3d276b170ed2255e8cee3b05fca4c6f75ef5eaae | /Consective-evens/solutionB.py | 3028f13b47118968e7dfa7109a1f3575ac7ff28e | [] | no_license | xdatageek/math_and_physics | 0db5a9e86c54bc7355cb6b0c47189f5de5b097ba | 5f1fafce9995c3be6ee02a5f0f4d8c45358e234e | refs/heads/main | 2023-02-09T19:00:01.665490 | 2021-01-02T04:37:35 | 2021-01-02T04:37:35 | 324,129,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | f = open('input.txt', 'r')
next(f)
A = [int(i) for i in f.readline().split()]
for k in range(int(f.readline())):
c = f.readline().split()
c1 = int(c[1])
c2 = int(c[2])
if c[0] == '1':
S = 0
for j in range(c1, c2+1):
S += A[j]
print(S)
else:
A[c1] = c2
| [
"noreply@github.com"
] | xdatageek.noreply@github.com |
66c605b31758d9dc44858b8868ef503970bdaba6 | 4ea7855ef54e1a62df5d25aa30acfc564c676ab9 | /catalog/tests/test_models.py | dae7890e4f8af49e7b195ea6714413e628481aa5 | [
"CC0-1.0"
] | permissive | Novel-Public-Health/Novel-Public-Health | 00282b9d3801494f7fc25f5f44c33070fa119bef | fbb7dd0da64ae4fc9641097ca8056152129bd83b | refs/heads/main | 2023-04-29T19:27:51.440301 | 2021-05-07T03:42:10 | 2021-05-07T03:42:10 | 337,804,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,617 | py | from django.test import TestCase
# Create your tests here.
from catalog.models import Director, Genre, Language, Movie, Profile
class DirectorModelTest(TestCase):
@classmethod
def setUpTestData(cls):
# Set up non-modified objects used by all test methods.
Director.objects.create(name='Big B... | [
"haleau@live.unc.edu"
] | haleau@live.unc.edu |
0f983bfba296e9069d60f2ce24011761d28fcdc7 | fcfc18039d05878f6156536a6757832a3576147b | /Final_Project_Code_IS590PR_Functions.py | 47773ad62be23389aa8a872651a9c749d91fc25a | [] | no_license | rahulrohri/IS590PR-Spring-2020-Final-Project | 76fa6d8a0a56e39c155a0cc718ce0f06bd14d225 | f101cb2ceacf83c3e24fb07f63e5456497e8d116 | refs/heads/master | 2022-07-07T12:51:07.558538 | 2020-05-13T11:45:13 | 2020-05-13T11:45:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,195 | py | """
IS590 PR - University of Illinois - Urbana Champaign
This file is a list of functions that have been used for our project and are
Intended to support the jupyter notebook titled Final_Project_Code_IS590PR.ipynb
Name: NYC_Public_Safety_Functions.py
Team Members :
Megha Manglani (GitHub id – meghamm2)
Rahul Ohri (G... | [
"noreply@github.com"
] | rahulrohri.noreply@github.com |
bd8527aee37e224f869349bec2f6fb2bdadc1d5b | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/예외처리_20200709144804.py | 9b8a16ecb397905296a8e33b88abcd084eadb309 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | try:
print("나누기 전용 계산기입니다.")
num1 = int(input("첫 번째 숫자를 입력하세요 : "))
num2 = int(input("두 번째 숫자를 입력하세요 : "))
print("{0} / {1} = {2}".format(n)) | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
cc878c320008f8db66aa030c2f2f6bc3e205a9cc | 6d1728bf105a7d6481d0bbca2b88f4478e0632d9 | /study/ch1/area.py | 1a498690da37f4f891110371603717db2e529035 | [] | no_license | Phantomn/Python | 00c63aceb2d4aa0db71fe5e33fe8b5159b41aadd | 12808adf4b52c60cfe94befb6daa1e8187224beb | refs/heads/Python | 2022-11-09T16:49:49.165884 | 2019-08-05T07:30:07 | 2019-08-05T07:30:07 | 44,149,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | horizon=0
vertical=0
print("Input horizon length : ", end="")
horizon=int(input())
print("Input vertical length : ",end="")
vertical=int(input())
print("rectangle is %d."%(horizon*vertical))
| [
"tmdvyr123@naver.com"
] | tmdvyr123@naver.com |
0baadeafe82ed3f2330579af9aeb7806db738dc3 | 7f8c24fe161fee3f32e206e013ea89fc8eb9a50a | /example_api/urls.py | 4c07dd5d1421c42a6038b536a60b6f7e7826f9cc | [] | no_license | vnitikesh/rest-registration | a04f4cf643766d3844e7a63e0616157d1c1f1e9a | 0578589f6cb9b9138fa5915395bf616de57eaf0b | refs/heads/main | 2023-02-18T12:32:40.392439 | 2021-01-21T23:55:23 | 2021-01-21T23:55:23 | 331,453,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | from django.urls import path
from . import views
from rest_framework.routers import DefaultRouter
urlpatterns = [
path('category/', views.CategoryListView.as_view(), name = 'category-list'),
path('category/<int:pk>/', views.CategoryDetailView.as_view(), name = 'category-detail'),
path('product/', views.P... | [
"vnitikesh@gmail.com"
] | vnitikesh@gmail.com |
803d74d1d4c3dd4a3fb7412c178cd596d5ac7f41 | 2f3278709d2409a4a20b7f79d31dfed43aac6557 | /LiTS_Decide_Preprocessing/TumorNetAvgpoolRelu.py | 893eb9d11c26f76fac1a4be2dec161ac10e44d82 | [] | no_license | HaoW14/Preprocess-of-CT-data | 8678ff749c644a0881d8305d6c6b51d8bf87912a | 811d95f28c11abc2b4b0305806397602ab4d51ba | refs/heads/master | 2022-12-28T01:02:39.929089 | 2020-10-18T10:31:27 | 2020-10-18T10:31:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,773 | py | # TumorNet without source; Downsample by pooling; activation is relu
# Which can use transfer lerning directly
import torch
from torch import nn
import numpy as np
import SimpleITK as sitk
from medpy import metric
def saved_preprocessed(savedImg,origin,direction,xyz_thickness,saved_name):
origin = tuple(k.item() for ... | [
"lihuiyu23@gmail.com"
] | lihuiyu23@gmail.com |
91503fa1a7ffe5118597d43b74f8c1563b6bdca6 | b4c164c9c6f91badb305bae23246ab0c5ba5fcbe | /Problem Set 3/Motion.py | 3d2b43cec29e675115eb800b8faf2a7e42d0d3c2 | [] | no_license | KhrulSergey/AI_Robotics_Udacity | e2b25a5b9d752b2daaa5195b7b487738aae83231 | ff41e877f2af87348de8a0d44bc8f51ea29523f8 | refs/heads/master | 2021-04-26T22:31:06.456066 | 2019-03-30T20:33:49 | 2019-03-30T20:34:20 | 124,104,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,159 | py | # -----------------
# USER INSTRUCTIONS
#
# Write a function in the class robot called move()
#
# that takes self and a motion vector (this
# motion vector contains a steering* angle and a
# distance) as input and returns an instance of the class
# robot with the appropriate x, y, and orientation
# for the given motion... | [
"siberianodis@gmail.com"
] | siberianodis@gmail.com |
637aebc9dc0ee30985a63efc692a3f892fbed308 | c6f9a46393048add6fad888d382978b9be12dd4c | /python/ql/test/experimental/dataflow/strange-pointsto-interaction-investigation/src/urandom_problem.py | d4a06529cf60991084b7d954d234703134c192b9 | [
"MIT",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Python-2.0"
] | permissive | luchua-bc/ql | 6e9480e8c92cbb12570fcc7f65366bfdd54dad06 | a1d9228a66cb80329041fa8d95b08ce5697dec54 | refs/heads/master | 2023-01-23T17:11:54.776916 | 2022-07-20T14:36:37 | 2022-07-20T14:36:37 | 248,313,302 | 4 | 0 | MIT | 2023-01-16T09:13:30 | 2020-03-18T18:35:48 | CodeQL | UTF-8 | Python | false | false | 920 | py | # These are defined so that we can evaluate the test code.
NONSOURCE = "not a source"
SOURCE = "source"
def is_source(x):
return x == "source" or x == b"source" or x == 42 or x == 42.0 or x == 42j
def SINK(x):
if is_source(x):
print("OK")
else:
print("Unexpected flow", x)
def SINK_F(x)... | [
"rasmuswl@github.com"
] | rasmuswl@github.com |
929d4cbe14e60aaf7683f78e7b8e87aa8cf4d89d | a2490d50c85bc8385cdda1e2eaf88f02951dc808 | /client/verta/verta/_protos/public/modeldb/metadata/MetadataService_pb2.py | f7435b6df5e8379dcdef0246f8e30430db6a2fe6 | [
"Apache-2.0"
] | permissive | Atharex/modeldb | 2e379bc87df054dc5c1a9058620aef8a3ada9108 | 3a286d5861c1dd14342084793dd7d7584ff8a29b | refs/heads/master | 2022-11-08T09:23:37.799241 | 2020-07-01T12:16:31 | 2020-07-01T12:16:31 | 275,455,778 | 0 | 0 | Apache-2.0 | 2020-06-27T21:26:05 | 2020-06-27T21:26:05 | null | UTF-8 | Python | false | true | 16,824 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: modeldb/metadata/MetadataService.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import sym... | [
"noreply@github.com"
] | Atharex.noreply@github.com |
4ac613dc87fb37cf7e557918be4a06f39615bb70 | c3b5e412fd9479c046c09c251dd0688a4fec6130 | /solver.py | f360ff7d89db5f41f308259d807e7c2f16ec6ff5 | [] | no_license | Pazaak/NaoPickUp | edb45f8d4dbf392d0a4737c3d9e91b2dfd00b2a6 | 417a20e344fa57272a1481810571287a18c864a4 | refs/heads/master | 2020-05-20T00:48:28.326318 | 2015-07-08T08:21:03 | 2015-07-08T08:21:03 | 36,508,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,804 | py | __author__ = 'Luis Fabregues de los Santos'
import heapq as heap
import copy
import math
infty = float('inf')
def distance_2d(x1, y1, x2, y2):
x = x1 - x2
y = y1 - y2
return math.sqrt(x*x+y*y)
def value(list, robots, target):
result = 0
for path in xrange(len(list)):
for i in xrange(le... | [
"aggalem@gmail.com"
] | aggalem@gmail.com |
e2072af249848ec0134b8e52255016c3d1ed8c07 | 6270ed787bfa3080975ce4f0a27a733b391f4f84 | /22Septembre.py | 1adf9ba336df6550b653abf92fdcb14a6d3712dd | [] | no_license | lucasdavid47/IPT_Sup | b6a8aec625e32903af1704f95f356205e6d43ba4 | 72ee4fa79c8b5f305cbe82d72d5161d6da32e86d | refs/heads/master | 2023-01-07T19:04:15.092690 | 2020-11-04T07:10:05 | 2020-11-04T07:10:05 | 294,027,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | #Somme
A=[]
B=[]
n =len(A) #nombre de lignes de A
C=[]
for i in range(0, n):
L=[]
for j in range(0, n):
L.append(A[i][j]+B[i][j])
C.append(L)
for x in C:
print(x) #affichage ligne par ligne de C
#Produit
n = len(A)
D=[]
for i in range(0, n):
L=[]
for j in range(0, n):
S=0
... | [
"lucas.david44000@gmail.com"
] | lucas.david44000@gmail.com |
6b9e64cf6ae66302800054f71df69a98d2400cb1 | 44754d4b76b59c91ec700e4b07fc7c20930eedd2 | /app.py | 3a5cc4daa936e681a3271a060c3939094f3e2ce7 | [
"MIT"
] | permissive | ghostcat404/simple_ml_model | f18b8e18a06b30ffc46e7b709473a6793f2ff335 | 0a65fb4a376d1781d356dbcedd5335f3d6803ab1 | refs/heads/master | 2023-06-10T18:30:07.288304 | 2021-06-17T23:39:57 | 2021-06-17T23:39:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,539 | py | import logging
import argparse
from textwrap import dedent
import mlflow
from sklearn.pipeline import Pipeline
from dotenv import load_dotenv
from utils import ModelMapper, DatasetMapper, save_model, get_model_params
# TODO: дописать применение модели
def run_train(args):
if args.params_path is not None:
... | [
"aechesnov@yandex.ru"
] | aechesnov@yandex.ru |
e195f2cada6fd440c8ec551ec4c3ca40c8efe9b4 | f0af90e1a5e9cd73682a42f0295574d70450c62e | /test.py | a4640244851e505dad79503dd608447c9eebf3f1 | [] | no_license | k3ch-jo/mocha | 9c4899e1157ad547b60c5e86c6587b9f4e917899 | 4142da6dd12a866d3d82f0e311c023f00fed83a7 | refs/heads/main | 2022-12-23T08:37:37.497990 | 2020-10-05T07:38:03 | 2020-10-05T07:38:03 | 301,324,930 | 0 | 0 | null | 2020-10-05T07:38:04 | 2020-10-05T07:21:42 | Python | UTF-8 | Python | false | false | 44 | py | #says goodmorning
print("Good Morning")
| [
"noreply@github.com"
] | k3ch-jo.noreply@github.com |
bd1236dee44cc218e34f71aa057ce6aeaae640d8 | 4f365fbdfd4701c3a294dfba17c1377d4eb369d8 | /jinja2htmlcompress.py | 507c7509a9a3a8418fcb4ce187fb21809e76fc26 | [
"BSD-3-Clause"
] | permissive | Orvillar/jinja2-htmlcompress | 4e725f9b6ceb6f327d4247d7dab6f55d344039ea | b34dc409762aaf205ccd59e37ad4b3dc5331904d | refs/heads/master | 2020-04-07T16:06:54.607802 | 2018-11-21T08:31:21 | 2018-11-21T08:31:21 | 158,515,466 | 0 | 0 | NOASSERTION | 2018-11-21T08:29:20 | 2018-11-21T08:29:19 | null | UTF-8 | Python | false | false | 6,354 | py | # -*- coding: utf-8 -*-
"""
jinja2htmlcompress
~~~~~~~~~~~~~~~~~~
A Jinja2 extension that eliminates useless whitespace at template
compilation time without extra overhead.
:copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import re
from jinja2.ext import... | [
"armin.ronacher@active-4.com"
] | armin.ronacher@active-4.com |
803d49b2b49af27d2ac57b3a4e8ff335cdd579a8 | c96eab97976aa7fa60320d8b7de74f5148c7bf25 | /edf/g1997.py | 02cd9c1f7ee960c1bd6fc5b13dd077532754084c | [] | no_license | alexis-roche/scripts | 869eb9063e8b31a0e13284aeb777cc152f822f02 | aaae389a3fa5a0c6ff619034bdc5825a5f77a995 | refs/heads/master | 2021-01-02T23:07:33.730063 | 2012-05-08T06:59:06 | 2012-05-08T06:59:06 | 1,047,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | from game import Game
g1997 = []
#
g = Game('22 Jan 1997','portugal','f','away',2,0)
g.players = ['barthez','thuram','blanc','desailly','laigle','karembeu',
'deschamps','zidane','ba','dugarry','pires']
g.subs = ['ngotty','djorkaeff','loko','blondeau']
g1997.append(g)
#
g = Game('26 Feb 1997','netherl... | [
"alexis.roche@gmail.com"
] | alexis.roche@gmail.com |
f832144531d3e829e3b9637112237b07b3bc34c5 | 290e0f86fd9cd2881e82b44a308beb1b7f657fb7 | /assistant_utils.py | 577de88ddc415bc0298dcd7c491b48e2555c4adb | [] | no_license | essalj/ai_assistant | 0d2696a90a3a29e28461f95abec6fb8685298f1c | 5a592b86015a8e0fc6ea961eeddf1b885dbe900d | refs/heads/main | 2023-04-22T21:57:22.568114 | 2021-04-25T12:45:20 | 2021-04-25T12:45:20 | 325,210,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py |
import pyautogui
#screen_shot(file_name)
def screen_shot(file_name):
screenshot = pyautogui.screenshot()
file_name = file_name + ".png"
screenshot.save(file_name)
print("file saved here: " + file_name)
#screen_shot("test_fil")
| [
"noreply@github.com"
] | essalj.noreply@github.com |
8f1d3b33b6976f1a8d134f8df6ee8b3eb067f5b5 | 2ecc0f925df105282b5c725d5441f73ff7bf8317 | /py31파일처리/py31_17_encrypt.py | 5bf5c6f4f34a9da7baec6fa9c9b436b956584c32 | [] | no_license | anhduong2020/anhduong3202 | 8ed8e7cd7782fb7eec507d4abbbac7f64576a65b | e06e27d8dd56130fc66271f1013de61ceea89335 | refs/heads/master | 2021-01-13T20:09:02.994695 | 2020-03-15T09:08:22 | 2020-03-15T09:08:22 | 242,481,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | key = "abcdefghijklmnopqrstuvwxyz"
# 평문을 받아서 암호화하고 암호문을 반환한다.
# 암호문을 받아서 복호화하고 평문을 반환한다.
| [
"hdfj@naver.com"
] | hdfj@naver.com |
68bda07db08e3d6b58a8cbb0bf86ce63b584f900 | 5a1f77b71892745656ec9a47e58a078a49eb787f | /4_Backwoods_Forest/140-A_Fine_Mint/fine_mint.py | f17553bc8c35e99e05fe9b3bbd9916adfeaa85f8 | [
"MIT"
] | permissive | ripssr/Code-Combat | 78776e7e67c033d131e699dfeffb72ca09fd798e | fbda1ac0ae4a2e2cbfce21492a2caec8098f1bef | refs/heads/master | 2020-06-11T20:17:59.817187 | 2019-07-21T09:46:04 | 2019-07-21T09:46:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | def pickUpCoin():
coin = hero.findNearestItem()
if coin:
hero.moveXY(coin.pos.x, coin.pos.y)
def attackEnemy():
enemy = hero.findNearestEnemy()
if enemy:
if hero.isReady("cleave"):
hero.cleave(enemy)
else:
hero.attack(enemy)
while True:
attackEnemy()... | [
"katik.hello@gmail.com"
] | katik.hello@gmail.com |
c03e0187f206d06f07e5771f3ff8b322dcdba6cf | ce387fc31007f0616b6f2805bf998ae5f6288224 | /qubole_assembly/configure_airflow.py | aa05c8e46596fa8911dbf9ea0464dd358c76d091 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Python-2.0"
] | permissive | harishjami1382/test2 | d3466604209377e899a239c4f29446ffef06684e | f778cc7290904a84bed06f65fa5dbb49a63639f0 | refs/heads/master | 2023-02-25T18:44:21.114158 | 2021-02-04T10:19:50 | 2021-02-04T10:19:50 | 335,915,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,826 | py | try:
import ConfigParser
except:
import configparser as ConfigParser
import traceback
import sys
import os
from optparse import OptionParser
import base64
import subprocess
def handle_specific_config(overrides_map, options):
# Handle sqlalchemy settings
use_cluster_datastore = False
core_settings... | [
"jami.harish@accolite.com"
] | jami.harish@accolite.com |
203c4c5c65469b178d194de6b85feec2a5037e9a | 129941a1fb7c0bbd9969f0dd8843b057ce9f3666 | /VAJets/PKUTreeMaker/test/Wcrab/crab3_analysismu.py | 09dc3efeef0cc17499456da57454ef8dcc335da1 | [] | no_license | PKUHEPEWK/VBS_WGamma | 7cf43f136dd92777ab7a8a742c163e222b1f4dbf | 0f94abb2d4303b1c08d62971a74f25b100cbe042 | refs/heads/master | 2020-03-25T04:36:21.119377 | 2019-07-15T02:56:32 | 2019-07-15T02:56:32 | 143,404,007 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'SMu16B-v1'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles =['Summer16_23Sep2016BCDV4_DATA_L1FastJet_AK4PFch... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
ddeca087ba585f1d6f5c7bf63b5f45edb6aef713 | 0fee9fa700f769b8fbdbe0549d4b518a4a84b66e | /node/image_predict/image_predict2.py | b3bd45bb143b4f919421a68b3a6a414f33851551 | [] | no_license | KoGaYoung/2019_Capstone-design | c885b7fd31abf92cad303e26746eb310d5093a65 | 00e9815600157bb2f452a09f5e0c300a73deaf0b | refs/heads/master | 2020-09-15T17:45:41.785488 | 2020-04-27T14:46:46 | 2020-04-27T14:46:46 | 223,519,294 | 2 | 3 | null | 2019-11-23T02:31:13 | 2019-11-23T02:31:12 | null | UTF-8 | Python | false | false | 2,128 | py | import matplotlib
import numpy as np
import os
from PIL import Image
from keras.preprocessing.image import ImageDataGenerator
import operator
from keras.models import load_model
from keras.preprocessing import image
import base64
import ast
import sys
def recommand(predictions, class_dict):
# Recommend top 3
p... | [
"4723515@naver.com"
] | 4723515@naver.com |
6d36440509a5ce458028cddd6f11386e9c9f9b3e | 37c189ce1dfe146df449d61add792de639d04321 | /api/can_api_v2_definition.py | e4ceaddb9c7ebf78ed14e4f9807f171fc516f0fe | [
"MIT",
"CC-BY-4.0"
] | permissive | yangyijane/covid-data-model | 2f9d1db874e2b883f4c856989d1e0876ab293a77 | 3d7d8ec65fbabf1ce5e1749f328c96cdf6199905 | refs/heads/main | 2023-08-22T06:39:33.401142 | 2021-10-25T15:59:53 | 2021-10-25T15:59:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,290 | py | from typing import List, Optional, Dict
import enum
import textwrap
from libs.datasets.dataset_utils import AggregationLevel
from libs import base_model
from libs.datasets import timeseries
import pydantic
import datetime
from covidactnow.datapublic.common_fields import GetByValueMixin
CDC_TRANSMISSION_LEVEL_DESCRIP... | [
"noreply@github.com"
] | yangyijane.noreply@github.com |
ab90b58745ab3cc097586354bf150248a81ee6f9 | 6938ecea830f45abbef0218fa33be5ab21986eca | /ucpe/bcm_controller/bcm_controller.py | af406abae3955b4333e7333c1c19c771b0721204 | [] | no_license | AnEscapist/sdn-orchestrator | 16ea20d8cdcd817990bd34da071b03451a2cf3dd | f242bb2ab42864cde9f0bafb1a92acbb33173b24 | refs/heads/master | 2020-07-01T09:22:29.835594 | 2019-08-11T19:46:44 | 2019-08-11T19:46:44 | 201,121,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,367 | py |
from inspect import signature, Parameter
from ucpe.bcm_controller.utils import get_caller_function_name
import ucpe.bcm_controller.grpc.autobcm_pb2 as autobcm_pb2
import ucpe.bcm_controller.grpc.autobcm_pb2_grpc as autobcm_pb2_grpc
import grpc
hostname = "10.10.81.250:50051"
class BCMController:
@staticmethod... | [
"azhang307@gatech.edu"
] | azhang307@gatech.edu |
a7b174b85eba3c6f121e88eb9985de14f93428b9 | 14ac991bba2eb7d59a1d76db792b7689316f8060 | /leetcode/00179.py | 2097fd3046480dd7c91a1af857c955626b82b82d | [] | no_license | munagekar/cp | bde88fa565a7e2158ebe0f2611c4718a3d2970f1 | c25d29f68943e3721233e177abe13068e5f40e4b | refs/heads/master | 2021-07-04T05:00:02.511874 | 2021-05-30T14:30:05 | 2021-05-30T14:30:05 | 240,286,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from itertools import zip_longest
from functools import cmp_to_key
def cmp(a, b):
if a + b > b + a:
return 1
else:
return -1
class Solution:
def largestNumber(self, nums: List[int]) -> str:
nums = map(str, nums)
nums = sorted(nums, key=cmp_to_key(cmp), reverse=True)
... | [
"avm.abhishek@gmail.com"
] | avm.abhishek@gmail.com |
674c893b5c3d74c716ca8d94e1128a7f82ceea42 | fbf22c2f482f47d45f1ddd024cc2a12236c25dbe | /transfer/lib/gitCom.py | 146f8682c71806418ebca2a3ee96da78ba44e153 | [] | no_license | LofOWL/Jupyter-code-tracker | 3068e7e71ad9ecc43e8118257434b00fdb0cb9d9 | 2cdf55dc3d7f7f697ae57fe7661b23150b1a5edf | refs/heads/master | 2022-02-18T05:25:51.427151 | 2022-02-13T22:03:38 | 2022-02-13T22:03:38 | 234,213,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | import os
import subprocess
class git:
def __init__(self,path):
print(path)
os.chdir(path)
self.path = path
self.ipynb_commit = "git log --pretty=%H --follow *.ipynb"
self.commit_name_status = ""
self.commit_parent = ""
def set_commit_name_status(self,commit):
... | [
"jeffersonjjin@gmail.com"
] | jeffersonjjin@gmail.com |
fd8b43d4911e377665daaa891b42fdc5fbbe6787 | bff728cca48292af65e6c14ca942ba92f0161f0f | /wiki_search.py | 9354460dac59f44ecdc1dba005eb13e21b9eff58 | [] | no_license | enriched-uranium235/chatbot | 1520a68d2084c4b4b61136ce9da167786a5878d8 | e95f6dde49dc684b93b4f95ad8da085b95840dd3 | refs/heads/master | 2023-02-20T05:18:25.807488 | 2021-01-06T07:43:52 | 2021-01-06T07:43:52 | 327,227,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | import wikipedia
def wikipediaSearch(search_text):
response_string = ""
wikipedia.set_lang("ja")
search_response = wikipedia.search(search_text)
if not search_response:
response_string = "その単語は登録されていません。"
return response_string
try:
wiki_page = wikipedia.page(search_response[0])
except Exception as e:
re... | [
"hexanitrobenzene@gmail.com"
] | hexanitrobenzene@gmail.com |
62a61d7f251b2dd796c2a0864e338c6272236b1a | 87828431072e3c60a92dc274b078d7cf1e5705be | /back_python/account/migrations/0001_initial.py | 34d3acacd2cf509d472797922ba4727ed9535d39 | [] | no_license | cash2one/habit | 90adfd80427a0c0d04104ea5cf8123cf025b2d8b | 3782e498e1e40d6b638aaf2c7c1ac087c0739a36 | refs/heads/master | 2021-01-19T12:32:51.627847 | 2017-04-11T15:41:28 | 2017-04-11T15:41:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-25 08:49
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('activity', '0013_auto_20170125_1649'),
... | [
"jiangyong@qq.com"
] | jiangyong@qq.com |
57154970bf889cb5ae8637e4d25670f1909939ea | 1213a0cc401365556d488913693cde54281ef350 | /backup_fully_working_with_sensor/ai.py | 5f272f3508088f2185990cc42d95d0cc93923477 | [] | no_license | mkhetan/session10_endgame_exp | 188adf0a8dae15f7603cc40fdc3b2dc9de1d0424 | e6cd6066697c95825708f264f77a123622e10d5b | refs/heads/master | 2022-07-15T22:04:31.604956 | 2020-05-12T05:19:33 | 2020-05-12T05:19:33 | 261,933,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,067 | py | # AI for Self Driving Car
# Importing the libraries
import numpy as np
import random
import os
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import torch.autograd as autograd
from torch.autograd import Variable
# Creating the architecture of the Neural Network
class ... | [
"mkhetan@extremenetworks.com"
] | mkhetan@extremenetworks.com |
72e87ff5fac87b45a4fbe10d20bbd6dc95907e38 | 242ebcb7220c2e16c141a6bea4a09c7cb5e4287d | /accounts/forms.py | 83f3c4a31f7b0a3a43e78a73a2980318f2d55c71 | [] | no_license | olivx/estudos_crud | 06ed8c269a4c36db3579daf6d6aef5e7d49dc5f9 | 24af031ed44a7c6cf567368556d368fe58ab1090 | refs/heads/master | 2021-01-11T09:28:49.355388 | 2017-03-03T15:17:25 | 2017-03-03T15:17:25 | 81,199,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,126 | py | from django import forms
from django.contrib.auth import authenticate
from accounts.models import User
from django.utils.translation import ugettext_lazy as _
class RegisterForm(forms.ModelForm):
password1 = forms.CharField(max_length=30, widget=forms.PasswordInput, required=True)
password2 = forms.CharField... | [
"oliveiravicente.net@gmail.com"
] | oliveiravicente.net@gmail.com |
1cd644fe4370089fe5cf86ae2fc2d3fa316e8e2e | e629d61db2f08f66cf46d934ab0f87fa1666de05 | /backend/lively_heart_25130/urls.py | 5c32c3d6b9e17dce8e7eb899ed0a90b4b5455ae7 | [] | no_license | crowdbotics-apps/lively-heart-25130 | ec80559da8d6b168df1ce75415c5d6b916c97ee1 | ed33785297cbb8f794034de1bc3c7fb81bdbe048 | refs/heads/master | 2023-03-24T16:57:41.146127 | 2021-03-19T21:41:18 | 2021-03-19T21:41:18 | 349,561,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,235 | py | """lively_heart_25130 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c1f3f5ba64a7e7a7306a3bb2c2820a4dbb6a892e | 5a7b38ee398e4f63a26b2ec2f6fa1efbce025264 | /api/src/dao/commentDao.py | 64c4f0711be9c2461c689cf2af8510d641966f97 | [] | no_license | AJarombek/saints-xctf-api | f1e361bfc762dcc197cbc78b2b41f7cff18919b5 | c2812089ec0351fd72ef7b1581a48bc55d65fd0e | refs/heads/main | 2023-02-09T11:50:04.698394 | 2023-01-29T18:52:33 | 2023-01-29T18:52:33 | 190,956,043 | 5 | 2 | null | 2023-01-22T23:04:10 | 2019-06-09T02:35:46 | Python | UTF-8 | Python | false | false | 6,225 | py | """
Comment data access from the SaintsXCTF MySQL database. Contains comments posted on exercise logs.
Author: Andrew Jarombek
Date: 7/3/2019
"""
from datetime import datetime
from sqlalchemy import desc
from database import db
from dao.basicDao import BasicDao
from model.Comment import Comment
class CommentDao:
... | [
"ajarombek95@gmail.com"
] | ajarombek95@gmail.com |
b301f0492fba0e2d359e1d51edb2d2c889cdd464 | 7836becef5fce2c55bef3ac08765f856f1ab2689 | /lx_blog/api_v1/profile.py | e0d7fd6f9b83eef6a1333c73621f3eb50556aa1f | [] | no_license | 2218997647/Blog_Test_LX | b049acd392c146fc054c918d32aa8976aca70b9e | d5e0c3e16e10a22e1f9547375256785a86f055b7 | refs/heads/master | 2020-04-05T21:48:19.407676 | 2018-11-12T15:37:42 | 2018-11-12T15:37:42 | 157,233,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | # coding:utf-8
from . import api
from lx_blog.utils.commons import login_required
from flask import g, current_app, jsonify, request, session
from lx_blog.utils.response_code import RET
from lx_blog.models import User
from lx_blog import db, constants
@api.route("/users/name", methods=["PUT"])
@login_required
def cha... | [
"2218997647@qq.com"
] | 2218997647@qq.com |
dcd252960a1b08665c15f551c29bd9f9aacd0218 | 1abd12b1de8c92b5d6fa251544892d7f55c45ab1 | /MA-ConceptMining/inout/inputoutput.py | f0b680c5d5d92aadea071a5aaf8dc7cc3a01eedc | [
"MIT"
] | permissive | johannabi/MA-ConceptMining | fddd0511b71f664605e10ce33dad29055ba1239e | 5c257c234ee86ef10f3b358f623f342aa829df54 | refs/heads/master | 2023-07-15T15:22:02.003888 | 2021-08-30T09:58:33 | 2021-08-30T09:58:33 | 246,010,367 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,476 | py | import sqlite3 as sql
import re
import csv
def read_file_by_line(file):
"""
reads a text file line by line
:param file: path to file
:return: list of all lines
"""
word_list = list()
with open(file, mode='r', encoding='utf-8') as f:
for line in f:
line = line.strip()
... | [
"jbinnewitt@gmail.com"
] | jbinnewitt@gmail.com |
6af792a1f4600d4fa1047802376523a08b69a6c1 | 7f2b233462e38f7fd2094bd4e304ca1b7525ec24 | /practice sessin.py | 7cc2b376eca0f3676554c0f2627c86df150aab19 | [] | no_license | vin531999/vin531999 | 919ec99b8dc21a3a8e19357967b72d16211dd733 | 647fb7d4e91b8d6a966a61c150831168c67677be | refs/heads/master | 2021-04-12T18:35:29.594555 | 2020-03-24T04:31:55 | 2020-03-24T04:31:55 | 249,100,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | n = int(input("enter the numbers :"))
c = []
d = 1
for i in range (n):
i = int(input(" "))
c.append(i)
d = d*i
print(d)
| [
"noreply@github.com"
] | vin531999.noreply@github.com |
c3eaff4220b08fc56b7f529974b9922daf3908ab | 765e0744b33ee9e9b85829d8af542141ed0d1210 | /mproxy.py | c24eedd38d4254ff9ff84835e9aada4814eba6f5 | [] | no_license | tylerwowen/mitm_proxy | 0b5a0ebb13424c3993dce2c431b1ce54c5e8cd66 | 367d190b238c6f497ce4791abd3360e0c6447c1c | refs/heads/master | 2023-04-07T23:33:38.094417 | 2023-03-28T22:35:47 | 2023-03-28T22:35:47 | 55,040,650 | 2 | 0 | null | 2023-03-28T22:35:48 | 2016-03-30T07:07:37 | Python | UTF-8 | Python | false | false | 27 | py | import src
src.__init__()
| [
"ouyang@cs.ucsb.edu"
] | ouyang@cs.ucsb.edu |
62e62e7af49f8e9e5000474f3e2369b29eac4b01 | 76fd9a2d3b732a73b688a0c227bfe07219ca1ace | /wp3db/__init__.py | 951dc19a9d4263b1eba80b26bb6f304589845284 | [] | no_license | wp3-wearable/dbmodels | 61d1add4b09eae1f7be9d36a8db73df8bf9b240d | f881f98e6091649d8b8a79b5b9bc895792f23d54 | refs/heads/master | 2020-04-13T14:25:25.887785 | 2018-12-27T11:14:51 | 2018-12-27T11:14:51 | 163,262,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | from .db import Session
| [
"dev.trk.9001@gmail.com"
] | dev.trk.9001@gmail.com |
ef679fa89caf7d38e7aa2766c74680ff885e8be4 | ae9bb7babce2a0349ae932985cf418a03057c670 | /ProgramAndDataStructure/list/__init__.py | 50e5397d5291650f1e1f4a4e99a244b430ba0f89 | [] | no_license | Veraun/HogwartsSDET17-1 | d2592fcb4c9c63724c19bcf9edde349ebcd2c8af | 6648dbfb640b065ff2c76cb6889a8f9e4f124b91 | refs/heads/main | 2023-07-02T05:20:32.161248 | 2021-08-06T03:55:13 | 2021-08-06T03:55:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | '''
#!/usr/bin/python3
# -*- coding: utf-8 -*-
@author: wangwei
@project: HogwartsSDET17
@file: __init__.py.py
@time: 2021/5/20 19:54
@Email: Warron.Wang
''' | [
"wei1.wang@ximalaya.com"
] | wei1.wang@ximalaya.com |
0d1f8ac232ce4709e84ae40a42d8f4df1accaf4b | d6b4f2a17eacfda27a2823e180c45ae783cea43b | /introducao-python/knn/iris-knn.py | 6778b550102d6ea70867ead5f0fa9ce434993cc0 | [] | no_license | leonardoFiedler/data-science-course | ba31d9c4b0cced259d554b00786981c8b4a6f1c9 | fe7f576a66091bc9d2db4e28e9368d05575315cd | refs/heads/master | 2020-09-04T19:30:03.941010 | 2019-11-22T21:56:13 | 2019-11-22T21:56:13 | 219,868,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
import numpy as np
import pandas as pd
from sklearn.metrics import accuracy_score
(X, y) = load_iris(return_X_y=True)
data = train_test_split(X, y, test_size=0.2, random_state=1)
(X_train, X_test, y_train, y_test) = data
# Num... | [
"leonardo.fiedler.96@gmail.com"
] | leonardo.fiedler.96@gmail.com |
db1facd386d242b1b380c5534537494db308c88d | 002aca3621afbe787f5f2133d3dbe8af6e5e9e33 | /contraClientes.py | dfaa170150fe8c98060e42d61179b22d6a65867c | [] | no_license | Toti848/Joselyn | 5ce55f38ac3092b5f283ddad47a0351ad78eefe3 | 735e123ef7a80770d54a26afe8ef9f112b37e7be | refs/heads/master | 2022-12-02T06:59:42.999170 | 2020-08-20T03:35:21 | 2020-08-20T03:35:21 | 284,575,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | from tkinter import *
from tkinter import font
from tkinter import messagebox as msg
from tkinter import ttk
class Main:
def __init__(self):
#Pantalla
self.raiz = Tk()
self.raiz.title ("Acceso a los Clientes")
self.raiz.geometry('600x200')
#Fuente
... | [
"noreply@github.com"
] | Toti848.noreply@github.com |
337238a653f2c421c1f017238cbef58842b56a43 | 567ecf4ea5afbd7eb3003f7e14e00c7b9289b9c6 | /ax/storage/json_store/decoders.py | 7a586e03ddb3b32b0a5780c941e67e791e29d11a | [
"MIT"
] | permissive | danielrjiang/Ax | f55ef168a59381b5a03c6d51bc394f6c72ed0f39 | 43014b28683b3037b5c7307869cb9b75ca31ffb6 | refs/heads/master | 2023-03-31T12:19:47.118558 | 2019-12-02T16:47:39 | 2019-12-02T16:49:36 | 225,493,047 | 0 | 0 | MIT | 2019-12-03T00:09:52 | 2019-12-03T00:09:51 | null | UTF-8 | Python | false | false | 3,501 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from datetime import datetime
from typing import TYPE_CHECKING, Any, Dict, List, Optional
from ax.core.arm import Arm
from ax.core.base_trial import TrialStatus
from ax.core.batch_trial import AbandonedArm, BatchTrial, Gene... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
8f9f79f922e726902af3535889af3665812574bd | 63cf7b2d363d3d4a371f7214f20b5503b401b5ee | /ene-jun-2020/joe tareas y parciales/ordinario/ordinario_busqueda.py | 263816de6626eea036c7531f294391a226f47535 | [] | no_license | joeguerrero735/AlgoritmosSistemas | fdfb03b1072835c5b40e4c5f1e954d0f5c740d72 | ed3132d7738ee31af40c99b2811488ea84c04d6a | refs/heads/master | 2022-09-06T22:45:01.039420 | 2020-05-30T05:03:18 | 2020-05-30T05:03:18 | 263,782,689 | 0 | 0 | null | 2020-05-14T01:17:54 | 2020-05-14T01:17:53 | null | UTF-8 | Python | false | false | 1,481 | py | def binarySearch(arreglo, inicial, final, x):
medio = (inicial + final)//2
if inicial > final:
return -1
if arreglo[medio][0] == x :
if x < arreglo[medio][0]:
return binarySearch(arreglo, inicial, medio-1, x)
else:
return binarySearch(arreglo, medio+1, final, x)
ent... | [
"yoyom_wwe@hotmail.com"
] | yoyom_wwe@hotmail.com |
d56aaa1b76881e1998052b9a341d91955fab83a2 | 1dd6726ebfef9736fea9d4b69c18333909197417 | /New folder/project_test/manage.py | 3a32ab96c4075d09f7fb2b70bdb53957ec7a5dd6 | [] | no_license | Uday-Kiran/My-Scribbles | c7255371ef4c15172dc8acb511d13143533032f4 | fc2383c5877b78dfa4751d4c114762f84504cc48 | refs/heads/master | 2022-01-19T02:36:08.964361 | 2019-07-21T16:40:35 | 2019-07-21T16:40:35 | 198,078,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | 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', 'project_test.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"noreply@github.com"
] | Uday-Kiran.noreply@github.com |
070fec483cc8b3618847116669bce6bd58c2f158 | b290100dc3f40cc7867e21080c92135a75bca06b | /labwork/labwork/urls.py | 6b1f3561f1545c492a3cecbffcdb95dbef43ecd2 | [] | no_license | Kunduzha/labwork | a13d69eaff5ca3cad8a17bb038f85683648cc82f | 366af69bbbffcdf0422fe0ea83021e52ca82a61e | refs/heads/master | 2023-04-05T01:43:17.305601 | 2021-03-31T10:55:05 | 2021-03-31T10:55:05 | 353,324,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | """labwork URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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... | [
"kuzanai@mail.ru"
] | kuzanai@mail.ru |
278d818322d05275fb24dbbd4ce90fbb73f4aad5 | cbd347d69f4ae9725ec479795e21ef45d6ccf41a | /tests/constants.py | 968375f731522300035d26c8d7a6828c743fad50 | [
"Apache-2.0"
] | permissive | pyni/perception | 9d1e398964312d8ebdef0374e1e089fa7ff28397 | 81262bd05524e9d28568d55107718783023ae14c | refs/heads/master | 2020-03-24T02:23:21.647095 | 2018-07-19T20:05:00 | 2018-07-19T20:05:00 | 142,373,747 | 1 | 0 | Apache-2.0 | 2018-07-26T01:46:36 | 2018-07-26T01:46:36 | null | UTF-8 | Python | false | false | 122 | py | IM_HEIGHT = 100
IM_WIDTH = 100
NUM_POINTS = 100
NUM_ITERS = 500
BINARY_THRESH = 127
COLOR_IM_FILEROOT = 'data/test_color'
| [
"jmahler@berkeley.edu"
] | jmahler@berkeley.edu |
62098dedacaa8ca0444becbb5aa5a5b7341645ea | d11f36debe9c5c2b5af87221782eebb4d6968d2e | /lesson19.py | fa9276880d4cc7e112e9e6e78b74ae6fef529263 | [] | no_license | OmorovAzat/lesson1 | cde12fcc19d86b22139ca9ac0773b059fd1165f8 | ad1d113c56bbc0961b0543c45b4df94eea3c0314 | refs/heads/master | 2023-05-07T08:31:58.450064 | 2021-05-30T08:54:51 | 2021-05-30T08:54:51 | 372,166,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | #Решение домашнего задания
# a = [1, 2, 3]
# b = [i * 2 for i in a]
# print(b)
# l1 = [1, 2, 3]
# res = 0
# for num in l1:
# res += num ** 2
# print(res)
# time1 = 3
# time2 = 6.7
# time3 = 11.8
#
# print(time1 // 2)
# print(time2 // 2)
# print(time3 // 2)
# s = 'Hello,world'
# if ' ' in s:
# s = s.upper()
#... | [
"bdante025@gmail.com"
] | bdante025@gmail.com |
856043c72dfa18187c13e630e6c9e58fcc3c660b | a56a74b362b9263289aad96098bd0f7d798570a2 | /venv/lib/python3.8/site-packages/matplotlib/_pylab_helpers.py | 2407b573c4aabbe64132bc3a0ae71163132785bc | [
"MIT"
] | permissive | yoonkt200/ml-theory-python | 5812d06841d30e1068f6592b5730a40e87801313 | 7643136230fd4f291b6e3dbf9fa562c3737901a2 | refs/heads/master | 2022-12-21T14:53:21.624453 | 2021-02-02T09:33:07 | 2021-02-02T09:33:07 | 132,319,537 | 13 | 14 | MIT | 2022-12-19T17:23:57 | 2018-05-06T08:17:45 | Python | UTF-8 | Python | false | false | 3,445 | py | """
Manage figures for pyplot interface.
"""
import atexit
import gc
class Gcf:
"""
Singleton to manage a set of integer-numbered figures.
This class is never instantiated; it consists of two class
attributes (a list and a dictionary), and a set of static
methods that operate on those attributes... | [
"kitae.yoon@deliveryhero.co.kr"
] | kitae.yoon@deliveryhero.co.kr |
52e97583338ee135280976c809802e41e82f2615 | 4321285ff5eed67fbca253ba7647235032700dfe | /RequestService/liquid_requests.py | fd208f5fa6a8659798a0d78942ac7498d37a46d0 | [] | no_license | TheBigGinge/Analytics | e8fd5ce3f04ce8ce32458500a264c10682dfbdc5 | 27c82bfdd4f06b9e80ee8f7ac7226370c62c4eb2 | refs/heads/master | 2020-12-18T22:19:56.904634 | 2016-08-08T19:53:55 | 2016-08-08T19:53:55 | 34,743,144 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,305 | py | import requests
import json
import os
import getpass
import base64
class LiquidPlannerRequest:
base_uri = 'https://app.liquidplanner.com/api'
workspace_id = None
project_id = None
email = 'ryanm@payscale.com'
password = 'Huge-Large1978'
session = None
def __init__(self, email=None, passw... | [
"rphm78@gmail.com"
] | rphm78@gmail.com |
9b1e0c1c235c51767a012be75e7b2a6729897c0d | e9da16d2d1468a47de78c66e4397216038e7ba88 | /zscdumin/谷歌翻译/python代码/getICAPSUrlList.py | e8dee91a1bf115825a8623c2154bb110ff77687d | [] | no_license | ZSCDumin/Spider | 9b28beb5d5166365c3b954c32d28a409a79fb085 | ba63f7122ce8e530cdfaaee56670dd5624d4c864 | refs/heads/master | 2021-06-27T02:04:29.622633 | 2020-09-13T01:20:18 | 2020-09-13T01:20:18 | 137,719,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,269 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2018-01-28 20:30:54
# @Author : 杜敏 (2712220318@qq.com)
# @Link : https://github.com/ZSCDumin
# @Version : $Id$
import requests
from bs4 import BeautifulSoup
def getHTMLText(url):
try:
r = requests.get(url, timeout=30)
r.raise_for_stat... | [
"2712220318@qq.com"
] | 2712220318@qq.com |
6e615abdf2ddd030aea3917e7b4d7214899e693e | e249e4bb6e3cb2aabf592bcd3f7ec07b7c080eb8 | /cvp_modules/library/cv_server_provision.py | 2d2d507f668d27dc109e4d45be3d50c71cef71db | [] | no_license | arista-eosplus/ansible-cloudvision | c87e230e5286628c3a2f162efab585f4b16ab4c7 | abe124577d1ebeb3dd7b493102fd15795f4a4506 | refs/heads/master | 2021-01-19T08:23:23.139937 | 2017-07-21T03:15:41 | 2017-07-21T03:15:41 | 72,491,582 | 5 | 0 | null | 2017-06-06T13:31:26 | 2016-11-01T01:09:52 | Python | UTF-8 | Python | false | false | 24,752 | py | #!/usr/bin/env python
#
# Copyright (c) 2017, Arista Networks EOS+
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# Redistributions of source code must retain the above copyright notice,
# ... | [
"mhartzel@arista.com"
] | mhartzel@arista.com |
63d15beb9622fc5048da342646160ea270b446d8 | c4d379713ad8133c61d427c07b29f4121dcd86c5 | /workspace/root/topology/tani_utils.py | 1d93da9c1c42e8e0c77a07b025ee1c6ebc8e4cf3 | [] | no_license | agiulianomirabella/melanoma-detector | 80fe02d4ca18034ee0119e2c797df886a00ceb9e | 33ab38e3e559505f0225c86ba455a02636d3b839 | refs/heads/master | 2022-12-25T04:54:27.443543 | 2020-09-23T16:23:23 | 2020-09-23T16:23:23 | 292,315,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | py | from root.utils import * # pylint: disable= unused-wildcard-import
from root.utils import makeUnique, getGrayValueCoordinates
import numpy as np
from copy import copy
from scipy.ndimage.morphology import generate_binary_structure
'''
A helpful auxiliary permutation list for subcells computation
'''
#Maximum value fo... | [
"giulianomirabella@gmail.com"
] | giulianomirabella@gmail.com |
ef058a2f7e1c06430d246fe4dc5decaa6c3441d5 | 19e9939c91674b51c7574c7103d9abb12b3a56bb | /examples/BingAdsPythonConsoleExamples/BingAdsPythonConsoleExamples/v11/bulk_keywords_ads.py | 940766c36b292a5ada4817e24525b47af81bf4af | [
"MIT"
] | permissive | dariusmb/BingAds-Python-SDK | 0257225d304948aa41caff42d7dd7972e1bd7457 | bd5814ed66cf5ff809bea8f3231460cc3724c942 | refs/heads/master | 2020-04-01T14:22:15.911884 | 2018-10-16T15:45:26 | 2018-10-16T15:45:26 | 153,291,404 | 0 | 0 | null | 2018-10-16T13:36:08 | 2018-10-16T13:36:07 | null | UTF-8 | Python | false | false | 17,874 | py | from auth_helper import *
from bulk_service_manager_helper import *
from output_helper import *
# You must provide credentials in auth_helper.py.
def main(authorization_data):
errors=[]
try:
# Let's create a new budget and share it with a new campaign.
upload_entities=[]
bu... | [
"eur@microsoft.com"
] | eur@microsoft.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.