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
1c04b93099c88eb2c8cfcb1ac710a1df24727bce
6e74881361ffb2d76a28c7f52e4d4031f86c89ad
/0330/Code05-08.py
2a1eb5e4f7e465eb5841b1b2a217aac29954e1a9
[]
no_license
YoungSeok-Choi/Open-Source-Basic-Project
f5d09899ce9b228e5d6f5e10dcb3a9561acad9c0
8d3269ce30ea241c95cb3df41459b51282e7ce5e
refs/heads/master
2022-10-23T13:23:37.832363
2020-06-15T06:02:47
2020-06-15T06:02:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
score = int(input("์ ์ˆ˜๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š” : ")) if score >= 90 : print("A") elif score >= 80 : print("B") elif score >= 70 : print("C") elif score >= 60 : print("D") else : print("F") print("ํ•™์ ์ž…๋‹ˆ๋‹ค. ^^")
[ "58320695+dydtjr1515@users.noreply.github.com" ]
58320695+dydtjr1515@users.noreply.github.com
61958a15003fa27f422fe61169705ba3de6d4016
5f247136f6d937998fd85e48a2bcaf34f80aeee0
/storeinfo/spiders/c1_towncaredental.py
def94e4073a3b0f991684342edcb6b7eadbdb9a4
[ "BSD-3-Clause" ]
permissive
mikeym88/Store-Information-Crawler
9e631429887d3bcb056fe5c634f0f6702701dba2
7290acc793a6cf64edd5b95146eb9e2cdf3527e2
refs/heads/master
2023-07-15T02:15:38.512530
2021-08-28T17:07:54
2021-08-28T17:07:54
275,984,664
2
0
null
null
null
null
UTF-8
Python
false
false
1,082
py
from __future__ import unicode_literals import scrapy from scrapy.spiders import Spider from scrapy.http import Request from storeinfo.items import StoreItem class towncaredentalSpider(scrapy.Spider): name = "towncaredental" start_urls = ['https://www.towncaredental.com/locations/'] def parse(self, respo...
[ "mikey.x88@gmail.com" ]
mikey.x88@gmail.com
a60a5159a109716744ac0cbd30f38ff6674cdbdc
c803866a4c71442320ef5a9cfe48797af94c5e61
/app/auth/views.py
e7a4971f92a7d43c4049ae8699008a0942149842
[]
no_license
ombima452/pitchcave
6c451a53752da54116ca6033ed9b11b1e0638f85
89c6696ff423fe0e63011d527423880e9c54edb9
refs/heads/master
2022-09-19T18:22:50.893232
2019-10-01T05:59:11
2019-10-01T05:59:11
208,234,848
0
0
null
2022-09-16T18:09:45
2019-09-13T09:34:52
Python
UTF-8
Python
false
false
1,382
py
from flask import render_template, redirect, url_for, flash, request from . import auth from ..models import User from .forms import RegistrationForm, LoginForm from .. import db from flask_login import login_user, login_required, logout_user @auth.route('/login',methods=['GET','POST']) def login(): login_form = ...
[ "christineombima452@gmail" ]
christineombima452@gmail
e8eeb9fdc04bea633a0a29177b1beb4d70dbf976
07c267e23c7bdf1b991e58f60da961d7190dc076
/python/SSH_CLI_automation.py
1f095d3d89e65ad795aff8757a656abaed7eee5c
[]
no_license
rdm750/rdm750.github.io
5817ee07761a992244786e739f1effe66abe4e1b
ce8bab6bf24a3ccda1613449ef6a6b87bbb613cc
refs/heads/master
2020-04-15T13:36:05.212316
2018-11-03T02:04:22
2018-11-03T02:04:22
58,693,525
0
0
null
null
null
null
UTF-8
Python
false
false
436
py
import paramiko import sys ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect('127.0.0.1', username= sys.argv[1], password = sys.argv[2]) list_of_cmds = ['date','pwd','uptime','uname'] test2=["ps -ef | awk '{print $1,$2,$3}' ",'iostat','ifconfig','lpq','netstat -r...
[ "rdm750" ]
rdm750
b4f1da558005169fa15bd764349dd3cb1fe14b66
c3162bbdc94acbe16ecd2fffb4b163e398e7f640
/Phonebook_Project/LRCphonebook_func.py
a1d8e2da1fbef93f250eac8d3d7d9d49ecf202f6
[]
no_license
lenniecottrell/Python-Projects
e8496277f0fffa34f892563ddc3cd6408a11451b
4a2e84a97bd87ea23741a24913c21c18e05357ea
refs/heads/master
2023-02-13T23:35:01.975359
2021-01-08T19:57:36
2021-01-08T19:57:36
277,906,109
0
0
null
null
null
null
UTF-8
Python
false
false
11,476
py
import os from tkinter import * import tkinter as tk import sqlite3 #import other modules to access them import LRCphonebook_main import LRCphonebook_gui def center_window(self, w, h): # pass in the tkinter frame (master) reference and the w and h #get user's screen width and height screen_width = self.mast...
[ "64614859+lenniecottrell@users.noreply.github.com" ]
64614859+lenniecottrell@users.noreply.github.com
a0fe504dc7c1f9b916085038b62f0c6730b2f12e
4f1144a15ba86cc183c5c69e578db8019133e660
/src/official/transformer/v2/optgen_v13.py
4d5704a53d28e02a0633f5fa29f6e7462359e4ca
[ "MIT" ]
permissive
AspirinCode/cmg
244b718c64659cde505cedc449a5b65e5ede7c6d
fe5b4d8778df7bd85f78ec463d85185415a1c591
refs/heads/main
2023-01-03T09:42:47.433393
2020-10-26T21:39:29
2020-10-26T21:39:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
30,494
py
# Copyright 2018 The TensorFlow 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 applica...
[ "nomolos79@gmail.com" ]
nomolos79@gmail.com
677f1c9ab1b95908a04a6846f55392ab078d38ed
7e2ae02c7d7a00479c79c57df3b4b5a67680b9f8
/CrazyPython/05/transfer_test.py
5ec3629437f39271bc014bac62e2e4008d72f92a
[]
no_license
ahao214/HundredPY
32f8e149475e0d07a910ae82a1725de10eeaf5eb
67a941b15b51dfbf933c61a35efa85ed84d441b8
refs/heads/master
2021-09-30T02:45:50.583381
2021-09-18T09:33:36
2021-09-18T09:33:36
196,845,087
0
0
null
null
null
null
UTF-8
Python
false
false
614
py
# ๅ‡ฝๆ•ฐ็š„ๅ‚ๆ•ฐไผ ้€’ๆœบๅˆถ def swap(a, b): # ไธ‹้ขไปฃ็ ๅฎž็Žฐaใ€bๅ˜้‡็š„ๅ€ผไบคๆข a, b = b, a print("ๅœจswapๅ‡ฝๆ•ฐ้‡Œ๏ผŒa็š„ๅ€ผๆ˜ฏ๏ผš", a, ";b็š„ๅ€ผๆ˜ฏ๏ผŒ", b) a = 6 b = 9 swap(a, b) print("ไบคๆข็ป“ๆŸๅŽ๏ผŒๅ˜้‡a็š„ๅ€ผๆ˜ฏ๏ผš", a, ";ๅ˜้‡b็š„ๅ€ผๆ˜ฏ๏ผš", b) def swapdict(dw): # ไธ‹้ขไปฃ็ ๅฎž็Žฐaใ€bๅ˜้‡็š„ๅ€ผไบคๆข dw['a'], dw['b'] = dw['b'], dw['a'] print("ๅœจswapๅ‡ฝๆ•ฐ้‡Œ๏ผŒdw['a']็š„ๅ€ผๆ˜ฏ๏ผš", dw['a'], ";dw['b']็š„ๅ€ผๆ˜ฏ๏ผŒ", d...
[ "haochen214@163.com" ]
haochen214@163.com
4f2a818799590c4fbc98ecdb6e382a0efee81dbc
006141b07c6bcd0a693a13f51cbb6d7c6009ccdd
/cgi-bin/update.py
41cdc322b6a55497db29af8efb737ed8d42de66c
[]
no_license
exilaus/3dhome
7e54181f84cf9cca1c4422217479e7869485eed4
e07f168da539e2edb3ddf047215825ce8c6a9010
refs/heads/master
2021-01-18T20:21:40.674334
2013-07-24T17:05:32
2013-07-24T17:05:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
911
py
#!/usr/bin/pythonRoot import cgi, os,sys import subprocess import urllib2 print """Content-Type: text/html;charset=utf-8\r\n\r\n\r\n\r\n\r\n <html> <head> <title>Update</title><link rel="stylesheet" type="text/css" href="/WEB/style.css"> <script type="text/javascript"> function go...
[ "exilaus@hotmail.com" ]
exilaus@hotmail.com
ee57158af40112b19388d679d38127b30806d32a
c9ad6ad969de505b3c8471c6f46dfd782a0fb498
/0x05-python-exceptions/0-safe_print_list.py
16119623870bda212d1982f12fcd78d50aa22dde
[]
no_license
enterpreneur369/holbertonschool-higher_level_programming
002fd5a19b40c8b1db06b34c4344e307f24c17ac
dd7d3f14bf3bacb41e2116d732ced78998a4afcc
refs/heads/master
2022-06-20T00:57:27.736122
2020-05-06T14:26:10
2020-05-06T14:26:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
#!/usr/bin/python3 """ safe_print_list Python function to print the elements of a list """ def safe_print_list(my_list=[], x=0): i, p = 0, 0 try: for i in range(x): print("{}".format(my_list[i]), end="") p = p + 1 except IndexError as err: pass finally: ...
[ "jose.calderon@holbertonschool.com" ]
jose.calderon@holbertonschool.com
5d9c86ea45fce01a9865a3fa70adb03dbe1e9476
0a2a795c01d83f18d43d90da404231e4f9f921e1
/src/models/seeds_only.py
a1f0d6b6c2bb620ab74badcab09a8341040a6294
[]
no_license
aritche/PointCloudExperiments
609d738800d03adb09a28d855395364a59eb97d0
ec6905a3dc55a239b0943b9e754b27cdec18deb0
refs/heads/master
2022-12-27T01:48:07.315674
2020-10-06T15:06:24
2020-10-06T15:06:24
293,429,844
0
0
null
null
null
null
UTF-8
Python
false
false
7,855
py
""" A model for generating streamlines for a single tract Uses 3D TOM input This is an adaptation of HairNet (Zhou et al. 2018) https://doi.org/10.1007/978-3-030-01252-6_15 """ import os import numpy as np import random import cv2 import nibabel as nib from glob import glob import torch import torch.nn as nn from cha...
[ "11988281+aritche@users.noreply.github.com" ]
11988281+aritche@users.noreply.github.com
7df7be595ce8ffd2733101ec5fb928582a128286
85431b353749dd8f6ea308b439b9e5c42b2a7352
/UnicornLog/users/urls.py
2de4fefe0f2aed0d126c148fa75e4804122b7173
[]
no_license
evansimmons/DjangoUnicorn
d018b229f7468e371a939ffb8fbf6a4afc2f1903
5e5c5fb6401daeabeb12404ebc390248cb29324d
refs/heads/main
2023-06-19T19:36:57.036735
2021-07-14T19:52:38
2021-07-14T19:52:38
381,471,923
0
0
null
null
null
null
UTF-8
Python
false
false
291
py
'''defines url patters for the users app''' from django.urls import path, include from . import views app_name= 'users' urlpatterns = [ #default auth urls path('', include('django.contrib.auth.urls')), #regitration page path('register/', views.register, name='register'), ]
[ "etscodelancer@gmail.com" ]
etscodelancer@gmail.com
e14c3e8ca645ab5648ae1080ad7080f8db18abef
c0377e118c629965a42a05198bb9f2faa789db5f
/ABS/test.py
81dbaf08cfcd6679e1aef3d0c325f0c6710575a4
[]
no_license
Craft055/AtCoder
0e3a078951b1cc3c991d3d18b15b6ddc697c8f1f
40011b7033717726de593f2781331d4c67b10dd1
refs/heads/master
2023-03-01T11:08:29.611377
2021-02-07T17:27:35
2021-02-07T17:27:35
240,670,681
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import math import fractions print(math.cos(10)) print(math.sin(10)) a = 6 b = 4 print(fractions.gcd(a, b)) #print(math.gcd(a, b))
[ "craftsman.jvyeu@gmail.com" ]
craftsman.jvyeu@gmail.com
d6a0249802c2b4ec54d3455f60c9a2bcede0ef1d
5b9f98b59dbade41fc06303623a410c6064d7f1e
/web/admin.py
df2a5fc143fa8646a26272aabf3270570d01778b
[]
no_license
neilus/hello-django
250c9020fb88ed760dbf0fb0fae3feec7357b046
6f768766b10131c33a1c6411240381fd30c86957
refs/heads/master
2023-02-17T23:27:39.665641
2020-11-20T19:34:40
2020-11-20T19:34:40
247,371,311
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from .models import Question, Choice class ChoiceInline(admin.TabularInline): model = Choice extra = 0 class QuestionAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['question_text']}), ...
[ "neilus@elte.hu" ]
neilus@elte.hu
cee3e4fc0e62ec435f4307f8189967c2b0311e8f
117e2fab53a39e14d4aa1c8c60d146c942118ac6
/gcase/views/da_report_views.py
270e5e71d7a1d42275aa0ee489808fd47035b9c3
[]
no_license
j1210030/case-portal
6e46ae3adf9c7d0905de27c78a4aba830d8eccb3
257ca1bdc7760db60a4c9102e59920574ec3975d
refs/heads/master
2020-03-27T15:14:25.504719
2018-08-30T06:53:10
2018-08-30T06:53:10
146,705,839
0
0
null
null
null
null
UTF-8
Python
false
false
8,761
py
# -*- coding: utf-8 -*- """ @File: da_report_views.py """ from .common_views import * from gcase.models import BacklogReport, PartnerReport,LanguageReport, Partner,ReviewRequestReport from gcase.views import BacklogReportView, LanguageReportView from django.utils.functional import lazy from django.db import Da...
[ "noreply@github.com" ]
noreply@github.com
3550302238ab612a294100eb4da88fd18255c303
9e1a5cbe2612301018761741a8b2fc8b298d3b4d
/main/view/comment.py
1daaa8afa45a58f9fc8abd43b2c87f9feea8a0a4
[ "MIT" ]
permissive
FlyAndNotDown/Blog
dcf4bf37f601b434560e3f6343a497c549d358d2
8abf504060e7c0d4942a6763c4e8f34c7ef903ce
refs/heads/master
2018-12-19T00:54:42.814636
2018-09-15T04:50:53
2018-09-15T04:50:53
118,254,269
9
2
null
null
null
null
UTF-8
Python
false
false
1,101
py
from main.models import Comment class CommentPublishRequest: """ ๅ‘่กจ่ฏ„่ฎบ่ฏทๆฑ‚ """ def __init__(self, sender, post, context): """ ๆž„้€  :param sender: ๅ‘้€่€… pk :param post: ๆ–‡็ซ  pk :param context: ่ฏ„่ฎบๅ†…ๅฎน """ # ๅฐ†ๆ•ฐๆฎๅญ˜ๅ…ฅๆ•ฐๆฎๅบ“ comment = Comment( send...
[ "461425614@qq.com" ]
461425614@qq.com
db5b4fb0b932d623194070822ee8ae6be653aed4
1f6a3165c02238e109c7cd6fd67aa17291b3418d
/create_stage_tables.py
c5bbb7487ad66620a0ad78071618984deb70ff3a
[]
no_license
avlam/TtA
45dfacf6d74a9f30d06af46daa237ebef4df3232
9efe0db72db2554fea51f2d47a2ac7678be8a202
refs/heads/main
2023-08-11T23:16:43.180234
2021-09-19T14:29:29
2021-09-19T14:29:29
384,590,402
0
0
null
2021-09-17T19:07:58
2021-07-10T02:06:56
Python
UTF-8
Python
false
false
6,574
py
#!/usr/bin/env python # coding: utf-8 # Setup import pandas as pd from pathlib import Path import re from parameters import locations, SPACING_CHAR from journal_phrases import journal_phrases output_dir = locations['staging'] game_list = list(locations['raw'].glob('*.csv')) searches = { 'outcome': re.compile(r'(...
[ "14320735+avlam@users.noreply.github.com" ]
14320735+avlam@users.noreply.github.com
8a1230827541d821262fb3f1280ea53c87565736
8c618e16b15ad33a6ab6dcc4e0511e7a3acba094
/remcall/schema/__init__.py
8eb3a63f088ff55fb93ab052c031ca2d24a80f9d
[ "MIT" ]
permissive
luphord/remcall
0bef9bbf13be697645f7b93fbd9a5e3ee9afd97b
31419ff0f5c21ea2d90f9cabdaec85b6eebcaa12
refs/heads/trunk
2021-12-25T23:44:39.888706
2021-12-03T08:15:58
2021-12-03T08:15:58
165,920,464
0
0
MIT
2021-12-03T08:15:59
2019-01-15T20:42:12
Python
UTF-8
Python
false
false
634
py
from .core import Type, Interface, Enum, Record, Primitive, Method, \ string, int8, int16, int32, int64, uint8, uint16, \ uint32, uint64, float32, float64, void, boolean, \ date, datetime, time, primitive_types, Array, Schema from .base import assert_name __all__ =...
[ "luphord@protonmail.com" ]
luphord@protonmail.com
53789cb282c13c39b41a5a7f45aec84fa89e69b1
fa8e268778bc6a86eb62dbc6460714a052c286fc
/leetcode/two_sum.py
b5ff1942444b84d783ee8fddd7fa8c16fa64836a
[]
no_license
Cardenaz/codegym
f4da4b1d95611cb8ac80d23f2779f6e468f8d466
cf6718c0dcd59f435b666c6f31a9633b6172121e
refs/heads/master
2023-02-18T23:48:39.371988
2021-01-19T10:20:38
2021-01-19T10:20:38
325,789,737
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
def twoSum(nums, target): pointers = [] numsIdx = 0 numsNextIdx = 1 while numsIdx < len(nums) -1: if nums[numsIdx] + nums[numsNextIdx] == target: pointers.append(numsIdx) pointers.append(numsNextIdx) numsNextIdx += 1 else: numsN...
[ "william@cardenas.se" ]
william@cardenas.se
fef0f186e3b388ef8dbb58d698766de6b8a4cbb0
dee9432b12b8d5667ba3f58889344f89a032229d
/food/robots.py
62e74a1df46393c50327b29f48029c5a8199bdf9
[]
no_license
rolllyroman/lucas
a39743d697483f962617428bc61bfc053e9b4095
e219ed3fc69ad36132ac4361c1766b279269323c
refs/heads/master
2020-04-16T06:48:55.329438
2019-01-24T06:20:44
2019-01-24T06:20:44
150,229,829
0
0
null
null
null
null
UTF-8
Python
false
false
7,006
py
#coding:utf-8 import requests import time from lxml import etree import json # import MySQLdb import pymysql import random import sys reload(sys) sys.setdefaultencoding( "utf-8" ) from constant import USER_AGENT from selenium import webdriver from selenium.webdriver.chrome.options import Options chromeOptions = w...
[ "1983654762@qq.com" ]
1983654762@qq.com
78191fe526f5ea9adcdf791fd3a27433f46ea781
c1dd4501e134e3cfef5b7dc82d0e022e3ec7e9b6
/project/celery.py
616e6f5f026f581e9deffe767328d2b21c6846bc
[]
no_license
artemmj/set_up_jwt_django
a189cd1d59eac5fe9d02772284f794480f7525f7
8ba80f83b8516e5a2226e005ec22a821997c319f
refs/heads/master
2023-04-25T01:22:41.274238
2021-04-28T11:47:50
2021-04-28T11:47:50
362,447,798
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
from __future__ import absolute_import, unicode_literals import os from django.conf import settings from celery import Celery os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings.common') app = Celery('config') app.config_from_object('django.conf:settings') app.autodiscover_tasks(lambda: settings.INSTAL...
[ "webep4@gmail.com" ]
webep4@gmail.com
9dcc562873902522127abfd68618df28662b37b9
ca3cb1e721d8efab78f099f0d0b52e5248e3a89f
/merge_img.py
efcc54d3578397c7dea3f8d4f79b088c8f3dd5cb
[]
no_license
CyrusVorwald2/dashcam-poc
6ac669700f4891fbab65fe10e6c924a1218d68f4
41675aeb2a8e3f59a0afad7e766f2cdbd50f4ec1
refs/heads/master
2022-12-06T06:30:19.405527
2015-12-18T16:14:15
2015-12-18T16:14:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
import cv2 img1 = cv2.imread('e_profile.jpg') img2 = cv2.imread('e_caption.png') # img1 = cv2.imread('img1.png') # img2 = cv2.imread('logo.png') # height, width, depth = img1.shape # print height, width, depth # # height, width, depth = img2.shape # print height, width, depth dst = cv2.addWeighted(img1,0.7,img2,0....
[ "Eugene.Chung@mezocliq.com" ]
Eugene.Chung@mezocliq.com
62a21b6c0ce11b03bd02fca8f1dd74e4aa7d8bc2
94c18fb640dbd4108a69f0446af0ad85db05aa9a
/python_quizzup/pyquiz/templatetags/sub.py
48e3a9c6a5f119584e43809eadf070b43f045b25
[ "MIT" ]
permissive
viveksoundrapandi/iamvivek
4ecec6595c93e1dc664255fcea0bfe74b047825f
ad4a1b2e55302bfb5c55bdf73c5480536b0dcd91
refs/heads/master
2022-03-20T18:36:19.887110
2019-10-19T12:41:39
2019-10-19T12:41:39
107,754,880
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
from django import template register = template.Library() @register.filter def sub(value, arg): return int(value) - int(arg)
[ "vivekhas3@gmail.com" ]
vivekhas3@gmail.com
7dd54bed4c22108fdd325ab8efa1459e4fdd1d11
a47192d5abd5f34f63b2c0e27b954ae07de47302
/day20/range.py
d17de1cba89cc621b63647419a191c9a16be7aa0
[]
no_license
Godsmith/adventofcode2016
46639af6e015f0a024cde32ba0a1f98268899f4f
e036fb68bb53b9c79aa143b6c4645db218f77862
refs/heads/master
2020-06-15T04:21:21.012830
2017-01-10T21:52:30
2017-01-10T21:52:30
75,330,889
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
class Range: def __init__(self, low, high): self.low = low self.high = high def __repr__(self): return 'Range<%s-%s>' % (self.low, self.high) def __hash__(self): return hash(tuple([self.low, self.high])) def __eq__(self, other): return self.low == other.low and...
[ "filip.lange@gmail.com" ]
filip.lange@gmail.com
17204f9e5d9bc658b029fb4341dd4d71a9ad058a
2544d05926c8cdfa28d5104ad566e49a36ebeb0c
/Plots/stackedbarchartOlympic.py
341b49eb9c752e30629c42d3f56bd256c43e2311
[]
no_license
Gingerhouse/ITSC_3155_VisualizationLab
002946cda06bb9e4289be2a6eca0b1a01c1e06cf
8efd15277b0ff4cdf5d4423c652fe6fc6649d662
refs/heads/master
2023-03-29T18:23:20.920831
2021-03-31T00:37:55
2021-03-31T00:37:55
350,495,790
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
import pandas as pd import plotly.offline as pyo import plotly.graph_objs as go # Load CSV file from Datasets folder df = pd.read_csv('../Datasets/Olympic2016Rio.csv') # Removing empty spaces to avoid errors df = df.apply(lambda x: x.str.strip() if x.dtype == "object" else x) # Creating sum of number of cases group...
[ "abelvillape@gmail.com" ]
abelvillape@gmail.com
cc748c6aadec1a2627e7132cfd476d19c690933c
f7127398e6bc60cdece53014dfebb58aa99c0fbd
/aiogram_dialog/widgets/kbd/checkbox.py
b6a4e010a29614fdc9277b51a146f248f8d6f885
[]
no_license
drforse/aiogram_dialog
25fcae2579e9b37c43a41303232d009e04316c6a
984496ee7818d7896235d20f30bb662f56293385
refs/heads/master
2023-02-28T21:39:53.331894
2021-02-05T05:50:15
2021-02-05T05:50:15
336,158,550
0
0
null
2021-02-05T03:58:44
2021-02-05T03:58:43
null
UTF-8
Python
false
false
1,300
py
from typing import Callable, Optional, Union, Dict, Awaitable from aiogram.types import CallbackQuery from aiogram_dialog.manager.manager import DialogManager from aiogram_dialog.widgets.text import Text, Case from .button import Button OnStateChanged = Callable[[CallbackQuery, "Checkbox", DialogManager], Awaitable]...
[ "tishka17@mail.ru" ]
tishka17@mail.ru
911fa601ad7bdf4df8cdd0b0452942bd3b675e77
38697ac1686dc523dc03e74c0b526847a7724742
/webapp/flota/admin.py
ba2f57c5d5a06b0f3fe453967abe14fe83697c44
[]
no_license
giovannyc28/flota
94edaf03090d720016e662874399c2e310751b0a
7b757c0fca3e6ead7eb9ce40460b8ac8f34039a4
refs/heads/master
2020-03-28T10:03:55.397326
2018-09-10T06:51:54
2018-09-10T06:51:54
148,080,445
0
0
null
null
null
null
UTF-8
Python
false
false
828
py
from django.contrib import admin from .models import Vehiculos, Propietarios class VehiculosInline(admin.TabularInline): model = Vehiculos extra = 0 fields = ["placa", "tipo_vehiculo", "marca", "modelo", "cilindraje", "tipo_servicio"] class PropietariosAdmin(admin.ModelAdmin): inlines = [VehiculosInl...
[ "giovanny@localhost.localdomain" ]
giovanny@localhost.localdomain
f9b20190b7c9f4fd3c83e3e9cc298a4768dcfc86
50da3cfb8cc7c0acc8c4348a5647651e08e65fe9
/doc-dcm/SAMPLEZ/albertca-NanScan-cd0decd/NanScan/__init__.py
a8ddb19c8cc8944603201128586619ba59887123
[]
no_license
hpcgam/dicomimport
f8692520e6b4a7c76efed39acc831541ddf6d502
1f265b1a5c9e631a536333633893ab525da87f16
refs/heads/master
2021-03-12T19:57:51.078509
2011-06-08T05:25:01
2011-06-08T05:25:01
1,189,259
1
0
null
null
null
null
UTF-8
Python
false
false
816
py
# Copyright (C) 2008-2009 by Albert Cervera i Areny # albert@nan-tic.com # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) an...
[ "hpcgam@gmail.com" ]
hpcgam@gmail.com
891bc1be4c906960cbcbcdf7103c5f48108c1a41
848ddb87d475c2ef65f1221a8c0bf0fa71dd1dfd
/maindnc (copy).py
03b06c86c41ba56b28d7c6d0055f58c628edfaee
[]
no_license
XSMUBC/Lifelong-learning_xsm
03d404b21e597c4a085b44e964e7a479ec28993b
b74d6d841b1f590616f85e442463c20868855441
refs/heads/master
2022-04-17T12:42:06.597115
2020-04-18T19:26:10
2020-04-18T19:26:10
256,835,323
1
0
null
null
null
null
UTF-8
Python
false
false
1,920
py
import torch import tensorflow as tf import numpy as np import statistics from torch.nn import functional as F import torch.distributions as tdist import visual_visdom import visual_plt import utils import matplotlib.pyplot as plt ######################################################### ## maindnc xsm code ...
[ "noreply@github.com" ]
noreply@github.com
b783d5bf51d4bb8dd0b44dab30f43382f53dfeb2
bb9ab2b88c990377e58fd2b719a60f2e4a4689ce
/est-sfs/01_vcf_to_estsfs.py
8304ae2a0ee0641c79e0ee2e8fe764171fc6c5b3
[]
no_license
silvewheat/biocal-cli
7ded0e05c134c932a7dd45130c546cd607b443b9
134a0bf4f0d318de50a92a1e72d18c13580e64e2
refs/heads/master
2022-12-11T21:04:25.240272
2022-11-28T02:40:02
2022-11-28T02:40:02
147,090,111
4
0
null
null
null
null
UTF-8
Python
false
false
3,551
py
# -*- coding: utf-8 -*- """ Created on 2022 10-14 @author: Yudongcai @Email: yudong_cai@163.com """ import re import typer import numpy as np from cyvcf2 import VCF from collections import Counter, defaultdict def convert_gts(gt_bases): gt_split = re.compile(r'[/|]') bases = [] for base in gt_bases: ...
[ "silverwheat@163.com" ]
silverwheat@163.com
b32a8968f5ecf5ed069b54be4452c5c54f3954c0
a35f464d49dd892f26acffa22ade7d4c622ddf5f
/wheat/wallet/did_wallet/did_wallet_puzzles.py
50e6ea91f658c1be3b934b753164a0cee89b7312
[ "Apache-2.0" ]
permissive
Jsewill/wheat-blockchain
7b2cffd97cf5fabc68c7b0fd7c34ec21640f1fa5
75e412edd095ed1e51b3b70f6238dda7241f6456
refs/heads/main
2023-06-20T05:56:00.842418
2021-07-13T23:51:39
2021-07-13T23:51:39
385,761,992
0
0
Apache-2.0
2021-07-13T23:44:33
2021-07-13T23:44:32
null
UTF-8
Python
false
false
3,484
py
from clvm_tools import binutils from wheat.types.blockchain_format.sized_bytes import bytes32 from wheat.types.blockchain_format.program import Program from typing import List, Optional, Tuple from blspy import G1Element from wheat.types.blockchain_format.coin import Coin from wheat.types.coin_solution import CoinSolut...
[ "86817720+wheatnetwork@users.noreply.github.com" ]
86817720+wheatnetwork@users.noreply.github.com
7e50f3a8f442d6fed03fbf5af82ec1695c6de101
3268ece38499e4d2f2604eada8c05c6cc77c3071
/provisioner/src/singleton.py
24c29c2179e5f06049a6db318b8fd7d4088afde5
[]
no_license
nicwaller/provisioner
3b04fb3d875155c945b9d2669c3777fbc9e4cdc5
5bcc66711a7b7590bc28609bb6d3a523601ec5ee
refs/heads/main
2023-07-27T20:48:38.989974
2021-08-31T23:40:32
2021-08-31T23:40:32
369,907,603
0
0
null
null
null
null
UTF-8
Python
false
false
1,616
py
""" It would be bad to have two provisioners running at once on the same system. So let's try to be sure we're the only one around. """ import logging import os logger = logging.getLogger("Singleton") class Singleton(object): pidfile = "/var/run/provisioner.pid" def __enter__(self): logger.info("Sta...
[ "code@nicwaller.com" ]
code@nicwaller.com
bc7f5da07b7c4f1adc6515a085503a7bbb62b5ae
679af513b9051ce9fca1ba998210fea12a277556
/runTests.py
9698834d08d4dabb7bcc9ac537ff8392525b8c3b
[]
no_license
umbertoDifa/SequentialRecommenderSystem
5ba75fb398810e9b6a5d2919de700273ace7aa60
38a8c50a6762d777b9f205d097caeafde1fea649
refs/heads/master
2020-12-31T00:03:59.668344
2017-03-29T10:13:29
2017-03-29T10:13:29
86,566,676
6
3
null
null
null
null
UTF-8
Python
false
false
186
py
from tests.FPM_tests import FPM_recommender_tests from tests.Markov_tests import Markov_tests from tests.data_expansion_tests import Data_expansion_tests import unittest unittest.main()
[ "lupen4th@hotmail.it" ]
lupen4th@hotmail.it
b423a890a31fd737e8602dfbfd3438058faf4964
d8ec038cc8b2a49a779fdeb668c34058b4b11db1
/ecm/urls.py
6e2f85f0567f33a5776f8098b4f698dbffef3e58
[]
no_license
ngoctutrang/Django-Shopping-Cart
d619ee2217d202513d639f882bbe5a6e5d12a2b7
308b0e3214d3c64be97f720fc4e876f5eeb881c1
refs/heads/master
2022-12-01T01:06:18.082535
2020-08-06T04:24:23
2020-08-06T04:24:23
284,867,365
0
0
null
null
null
null
UTF-8
Python
false
false
944
py
"""ecm URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
[ "tdngoctu@gmail.com" ]
tdngoctu@gmail.com
4707d1638995a2fd49ac8ec1d7bb1cd1c54ed94b
fd5b3e587fb41e595946324bf3293331180bcbdd
/www/apis.py
2c72544a764932bb9fda103823920c2f33fa7e06
[]
no_license
labulaka6/webapp
48890fd0b4f8a49d60acf9d5f95d8c5b890319bd
221dfbbb205ea9a4c127aeafea6df10fb66e9875
refs/heads/master
2021-03-03T12:45:28.197166
2020-03-09T09:09:43
2020-03-09T09:09:43
244,323,112
0
0
null
null
null
null
UTF-8
Python
false
false
2,780
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' JSON API definition. ''' __author__ = 'labulaka6' import json import logging import inspect import functools # ็ฎ€ๅ•็š„ๅ‡ ไธชapi้”™่ฏฏๅผ‚ๅธธ็ฑป๏ผŒ็”จไบŽ่ท‘ๅ‡บๅผ‚ๅธธ class APIError(Exception): def __init__(self, error, data='', message=''): super(APIError, self)...
[ "13399226198@163.com" ]
13399226198@163.com
6d3042bd052f2e41a4cd141a774a174ab4c4cf9d
2272daa9ace06ad9c043bacce089c3285d4a8dfd
/0.49_4_exercise_while_loops.py
9a65e1352e61636c5ccc2756fdac51ffef2d5983
[]
no_license
Eddy-Arora/Hello-world
1c522aa010bc656ad6ff61b38f9b60212c81b710
7b903af7360bf014cfa5138f68946a4c237f2d3a
refs/heads/main
2023-04-12T00:39:33.627847
2021-04-13T11:30:51
2021-04-13T11:30:51
351,726,619
0
0
null
null
null
null
UTF-8
Python
false
false
75
py
n = int(input("Enter n: ")) i = 2 while i <= n: print(i) i = i + 2
[ "rajeev.arora1908@gmail.com" ]
rajeev.arora1908@gmail.com
1939165261e9bc871d33a3d26d3408e0baaf61a6
cd0591c773702d66d964e325f494b17918617949
/hgvs/utils/altseq_to_hgvsp.py
f47725b71196b3a2abc09f81931572745eaf3ced
[ "Apache-2.0" ]
permissive
SunbyMoon/hgvs
9de0f1a2ddc134f072e490b989982d6e90bd164a
2f348d53ee542576d0035a54757daa5dcd077e6b
refs/heads/master
2020-03-22T15:51:35.995761
2018-07-03T04:19:09
2018-07-03T04:19:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,292
py
# -*- coding: utf-8 -*- """Utility class for creating an hgvsp SequenceVariant object, given a transcript with variants applied. Used in hgvsc to hgvsp conversion. """ from __future__ import absolute_import, division, print_function, unicode_literals import hgvs from ..edit import (AAExt, AAFs, AARefAlt, AASub, Dup)...
[ "reecehart@gmail.com" ]
reecehart@gmail.com
8c8b678d13701ba585b3238bd029821548cc4783
f7550c4964dc8f3c59dbcebe39e947bd6a264dba
/1.Recorsions - 1/String into Int.py
49eb468cd5f79f87fb2aa7dff14c15aa4c47eb1d
[]
no_license
Jashwanth-k/Data-Structures-and-Algorithms
db5e2e30932e0a35db578c19ae6cff9f147b7c3d
1ebf9986999a474cb094f3ab04616a46f2887043
refs/heads/main
2023-08-25T02:57:17.394322
2021-10-11T15:27:56
2021-10-11T15:27:56
402,448,718
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
def str_to_int(s): l = len(s) if l == 1: return ord(s[0]) - ord('0') a = str_to_int(s[1:]) b = ord(s[0]) - ord('0') output = b*(10**(l-1)) + a return output s = '' print(str_to_int(s))
[ "noreply@github.com" ]
noreply@github.com
80c66729e6cbcb7721e17efef2dc1381872cf87d
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_minefields.py
9a6f4d39f05827d2da9dbb885032211575fb3e49
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
#calss header class _MINEFIELDS(): def __init__(self,): self.name = "MINEFIELDS" self.definitions = minefield self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['minefield']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
078e44a48834d3337ead8e1e1c6507f4e79f8e16
b9538a3f41d3cf983a19ef432ed8d125cd5a9e5e
/di5cheng-IT-PaaS/venv/Lib/site-packages/pip-19.0.3-py3.7.egg/pip/_vendor/chardet/cli/chardetect.py
ae5b452050890a535b2dd7aec999cfea9b6a8bf2
[]
no_license
xutusheng/di5cheng
61997c473bed5eb78b646447bdbfb13bd930cb02
5d8dcefe8967ba4d238623f54f6775bc8c188e85
refs/heads/master
2023-03-13T20:57:47.190609
2020-04-10T07:56:55
2020-04-10T07:56:55
197,309,931
0
0
null
2021-03-25T23:37:50
2019-07-17T03:42:00
Python
UTF-8
Python
false
false
2,775
py
#!/usr/bin/env python """ Script which takes one or more file paths and reports on their detected encodings Example:: % chardetect somefile someotherfile somefile: windows-1252 with confidence 0.5 someotherfile: ascii with confidence 1.0 If no paths are provided, it takes its input from stdin. """ from...
[ "576265944@qq.com" ]
576265944@qq.com
20dd8bac432917f44ec65e02ad42a37c002d8dc7
dd6c759081c1490c624de00f9519216613de5293
/src/ui/__init__.py
02186177946aec017837c2690ac545a6690800ea
[ "MIT" ]
permissive
forcemain/SwarmOps
76151fd31dff5288f3bc66a24c03547c6d9bb142
07675b362c83ce74bae13cb1c9ee627dc4ee25ed
refs/heads/master
2021-06-18T12:41:11.960706
2017-05-10T01:04:44
2017-05-10T01:04:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,826
py
# -*- coding:utf-8 -*- # # SwarmOps views for ui # from flask import Blueprint, render_template, url_for, redirect, g, abort from utils.public import logger, login_required ui_blueprint = Blueprint("ui", __name__, template_folder="templates", static_folder='static') ''' swarm route''' @ui_blueprint.route("/") @ui_bl...
[ "staugur@vip.qq.com" ]
staugur@vip.qq.com
8ce177826d5aee9c149d47b05f96be769a59424f
ec733aa667eab2a925bb09b55f8a2d13f431ad94
/youtbenew.py
c06942fc55c30f24aeed37cf9eebe68cbf740a81
[ "MIT" ]
permissive
ChavdiTrending/Youtube
1a51594db1431b6107713f6151e26c737dcda444
4dc5addc894effd351213a5fdc72110d1b65e4cd
refs/heads/master
2021-01-24T01:58:47.693127
2018-04-14T15:20:46
2018-04-14T15:20:46
122,828,527
0
0
null
null
null
null
UTF-8
Python
false
false
756
py
import requests import json cnt = 0 nextpage = '' links = [] while cnt<2: payload = {'part': 'snippet', 'key': 'AIzaSyA46dBqdBBtnfgxr8aRvSBE2Q7qiNyhWrk', 'maxResults': '50','chart':'mostPopular','regionCode':'IN','pageToken':nextpage} l = requests.Session().get('https://www.googleapis.com/youtube/v3/videos', pa...
[ "savannahar68@gmail.com" ]
savannahar68@gmail.com
789e14b2928fb55c758fdba579f23eae73d39023
2ed188020fbf744185102b1f76084e4ca90dc08f
/elements/element.py
a20794700fdec2c9cc78a0e333d07449a66a0ba0
[ "MIT" ]
permissive
Sage-Bionetworks/GENIE-FMI-converter
ddfe02bcb23027dbbf133b37de03c06b8607d866
fed7d05a5b0b01a6f5cbcf0df14a63eecdbc5471
refs/heads/master
2022-10-01T08:15:50.445156
2022-08-30T21:17:08
2022-08-30T21:17:08
220,875,930
0
1
null
null
null
null
UTF-8
Python
false
false
2,515
py
import re rr = "{http://integration.foundationmedicine.com/reporting}" vr = "{http://foundationmedicine.com/compbio/variant-report-external}" schema = "{http://www.w3.org/2001/XMLSchema}" instance = "{http://www.w3.org/2001/XMLSchema-instance}" matches = [(val, re.compile(r"^{}".format(val))) for val in ...
[ "jlb152@duke.edu" ]
jlb152@duke.edu
7119d5cf9fe49a141201fecf3ee52c63d62af40c
47925a3da43b0136f34bfebadd0c8eb3536cfba3
/Problem_048.py
8d4007ba9eb2a9a4d6d80230353911051d4c1471
[]
no_license
arm-out/ProjectEuler
a1a8801eb45cdd9b3d595f11292c85e8f0e1adc6
2fdf5b4096bc2a479086794b656cd205359ceeae
refs/heads/master
2021-07-10T13:24:20.668103
2020-07-03T00:00:48
2020-07-03T00:00:48
161,202,031
2
0
null
null
null
null
UTF-8
Python
false
false
75
py
a = 0 for i in range(1, 1001): a += i ** i print(str(a)[-10:])
[ "noreply@github.com" ]
noreply@github.com
2aa7e05f460ae0b7d0f6ea6a66312db082a1ce07
da052c0bbf811dc4c29a83d1b1bffffd41becaab
/core/serial_number_expired_date/models/stock_picking.py
6b51aa2baf397a198e54c46a84b406b3800e23da
[]
no_license
Muhammad-SF/Test
ef76a45ad28ac8054a4844f5b3826040a222fb6e
46e15330b5d642053da61754247f3fbf9d02717e
refs/heads/main
2023-03-13T10:03:50.146152
2021-03-07T20:28:36
2021-03-07T20:28:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,983
py
# -*- coding: utf-8 -*- import logging from odoo import models, fields, api , _ import datetime # from dateutil.relativedelta import relativedelta from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT, float_compare, float_round class PackOperation(models.Model): _inherit = 'stock.pack.operation.lot' expi...
[ "jbalu2801@gmail.com" ]
jbalu2801@gmail.com
d697ab63f80e3a49fe00bec7ff8ce8df45f20e9d
f3646538e70fa52e55ebfcb85d9bf5e131cb158d
/Cryptopals Set 4/set4_challenge32.py
0fce97d203d674209c52e8dd5e00bf967512f2f5
[ "MIT" ]
permissive
rajKarra69420/CryptoPals
76f1342e72235137b83504691d74c4594c7cd7ee
6ade402ed652a902249a82cce53aedf2081a5db9
refs/heads/master
2023-02-10T23:36:12.708235
2021-01-06T10:31:27
2021-01-06T10:31:27
294,879,718
2
0
null
null
null
null
UTF-8
Python
false
false
386
py
import set4_challenge31 as break_hmac # we still use the server from challenge 31 but change the delay time # when challenge 31 breaks, we can increase the number of samples we collect per byte if __name__ == "__main__": # we may not need to increase samples to 100 but it does guarantee that our attack works at lo...
[ "noreply@github.com" ]
noreply@github.com
469e38e83b1d2afb5cf82b1f1a90849485818ff4
fa08376603d6136ec81f958510a363192c8ced83
/site-packages/amuse/community/huayno/interface.py
b5b2c5802b0f60328edef50762add7d292694ac4
[]
no_license
BrianTCook/amuse_env
e8da14e0bfd917179c3973e54daab1f980ae434c
2e7eff89e82a859020604b692fb94bdd67ed7798
refs/heads/master
2021-05-18T21:14:52.897911
2020-04-04T16:11:58
2020-04-04T16:11:58
251,420,587
0
0
null
null
null
null
UTF-8
Python
false
false
10,952
py
from amuse.community import * from amuse.community.interface.gd import GravitationalDynamicsInterface,GravityFieldInterface from amuse.community.interface.gd import GravitationalDynamics,GravityFieldCode class HuaynoInterface(CodeInterface, LiteratureReferencesMixIn, Gravita...
[ "btcook@umich.edu" ]
btcook@umich.edu
67aa6f8fa5bdeb12b1ed91673b7baa7322637490
0608a5858ad9b7804c68de57abe9be0e278a9897
/venasaur.py
a4aada9d48f3f507c0ab498dd4a5d41a3909b22c
[]
no_license
ryanpoon/Pokemon-Battle-Game
b95f268a5af5e95f6626c8ce812394d221879299
46fae9d0a2b1129a380389e5784b7b64adae623f
refs/heads/master
2020-06-10T20:21:18.623957
2017-01-18T22:25:12
2017-01-18T22:25:12
75,884,829
0
0
null
null
null
null
UTF-8
Python
false
false
1,499
py
import random class Venasaur: poketype = ['Grass', 'Poison'] description = "There is a large flower on Venusaur's back. The flower is said to take on vivid colors if it gets plenty of nutrition and sunlight. The flower's aroma soothes the emotions of people." pokemon = 'Venasaur' def __init__(self, nam...
[ "ryanpoon2004@gmail.com" ]
ryanpoon2004@gmail.com
37fab74a8dd7f9a2728b0b9ef84f75a1d3b6d256
2904b0b42ff2b93b2834fdc79a0e2af9ed733f59
/source/tests/py_tests/take_operator_test.py
d8b5c6160ea70c84fb0d5c6fdc9a91fb6cf10fba
[ "BSD-3-Clause" ]
permissive
web-slave/U-00DC-Sprache
02e9a04c31323310b93ecbed1c7d89b762162942
9576f93d8cb2abffded1071f9f0328c2385446a8
refs/heads/master
2022-10-09T06:16:26.759090
2020-05-30T09:09:16
2020-05-31T15:51:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,732
py
from py_tests_common import * def TakeForPart_Test0(): c_program_text= """ // Take from struct. struct S { i32 x; fn constructor() ( x= 0 ) {} fn constructor( i32 in_x ) ( x= in_x ) {} fn destructor() { x= -1; } fn constructor( mut this, S &imut other )= delete; op=( mut this, S &imut other )...
[ "AntiPanzerschrek@yandex.ru" ]
AntiPanzerschrek@yandex.ru
5333d7458b459a6a072ba62c4edc50cabd724bff
9af64bf1d6a9fb05f314ae3949e10c1699251491
/question1_etl.py
2b2c4e2f4eda78c05d58481876a11a54fb00704f
[]
no_license
Spoetnik1/werkspot_de_assignment
1e5b9c6a0aa623df30bda3bc6c81c243366133a5
cb30c0357594689db2071a31ed989fb335fcf46e
refs/heads/main
2022-12-30T10:45:59.899531
2020-10-22T20:23:44
2020-10-22T20:23:44
306,448,357
0
0
null
null
null
null
UTF-8
Python
false
false
2,189
py
import mysql.connector from sqlalchemy import create_engine import pandas as pd # sqlalchemy and pymsql for running Pandas integration. db_connection_str = 'mysql+pymysql://root:root@127.0.0.1/professional_activity' db_connection = create_engine(db_connection_str) ### Extract data and apply basic transformati...
[ "noreply@github.com" ]
noreply@github.com
7c96592c9fbdbb9b5aaf8888bb01b0f067723362
0480be6e95e56afefed53299352d952f6539d57a
/spe-py-nwsim/event.py
fa110c6330235df4dc3e012ba640a8d9ed34e2e1
[]
no_license
AntonioLonga/Spe_second_assignment
e077c6db15276355e7f0788ba3d29893b964ae8b
ca879a6e561f987a4461eeae982ef4f64e650639
refs/heads/master
2021-09-14T15:56:10.624773
2018-05-15T19:47:26
2018-05-15T19:47:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,735
py
# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # bu...
[ "longaantonio@gmail.com" ]
longaantonio@gmail.com
0d8023f60e892e1cd8258b5296c92061892d15dd
0ba1ca59a95f3bfbb395aac00d0fb875b47f74d6
/main_app/migrations/0016_auto_20210208_1756.py
d8ce537aac997788e9d6a0405206544b1a44c8a2
[]
no_license
mcholbrook/seedling
8df5102ea259bd14659c802f5f999816ffa17c32
1ed160bbdf0dcd8da35feedb43e1572ee5d0c8be
refs/heads/main
2023-03-01T21:47:53.033588
2021-02-12T02:19:25
2021-02-12T02:19:25
335,401,494
0
0
null
null
null
null
UTF-8
Python
false
false
622
py
# Generated by Django 3.1.6 on 2021-02-08 17:56 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), ('main_app', '0015_auto_20...
[ "mirandacholbrook@gmail.com" ]
mirandacholbrook@gmail.com
61e4c35990e787f9e9bb9d2878b778a677f464ba
fb66aa1174f7c2e204af1974b6dd45b7106317f5
/python_client/protocol/rainbow.py
b975e3f44deb95aa0aa52afeaa07a07970785ceb
[]
no_license
aboychen/xxd
5b20f21d907bf64c4ac000ece010ca199956b101
dcfd8fa6d5f7c49ee04dec350233c99a6f49e0d3
refs/heads/master
2020-04-08T19:39:43.039713
2016-11-11T05:11:27
2016-11-11T05:11:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,774
py
#!/usr/bin/evn python # -*- coding: utf8 -*- import struct import interface class InfoUp(object): _module = 23 _action = 1 def __init__(self): pass def encode(self): buff = bytearray() buff.extend(struct.pack('<B', self._module)) buff.extend(struct.pack('<B', self._...
[ "tangweichen@163.com" ]
tangweichen@163.com
5ed07c539c06aabbc980fc17582e082144b08f35
c59efda0f3aa08b2558d3d8390b807571a12cdb2
/python/sgdp/make_sgdp_contig_h5.py
44fbb46c0a580db9169563c28c6abc353f47edde
[]
no_license
gmcvicker/MHC
a6c534a98ca9eb635aa727b1c8020d8ed3632438
eed39f639cb2d59c10eb17419a1ec9373c12e1c0
refs/heads/master
2016-09-15T18:58:41.937586
2015-11-17T00:19:23
2015-11-17T00:19:23
40,500,807
2
0
null
null
null
null
UTF-8
Python
false
false
2,323
py
import sys import tables import pysam SAMPLES_FILE = "/home/gm114/data/SGDP/C-team-mag/261.samples" CONTIG_H5 = "/home/gm114/data/SGDP/mag_mhc_contigs.h5" DEPTH_H5 = "/home/gm114/data/SGDP/mag_mhc_depth.h5" MHC_START = 29000000 MHC_END = 34000000 N_SAMPLES = 261 def create_contig_h5_file(): # initialize H...
[ "gmcvicker@gmail.com" ]
gmcvicker@gmail.com
5a161ea6d1e896ed253bfc435f525d755fd47e55
15595ff491fbddf2518126c3aed1f8b360cbf923
/public/utils.py
471aad43606eb45e45032d12a1592a1ccd9deb0d
[]
no_license
TiannaLopes/skateSharpen
54e171b9347723a4f07eae0ace2f95c85c22dfde
32bd0b317ea3072364a6f75dcd56408bd17217b0
refs/heads/master
2023-06-06T05:22:47.486937
2021-06-13T21:32:57
2021-06-13T21:32:57
376,644,116
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
def jsend_response(success:bool, payload:dict): return { 'status': 'success' if success else 'failure', 'data': payload }
[ "63357829+TiannaLopes@users.noreply.github.com" ]
63357829+TiannaLopes@users.noreply.github.com
1b4daeedaade35bbdf704edc9591e83126e98f90
3805c40a5f037cb6439798f4ffc6babc5cddc004
/dogpile/__init__.py
345ce1cbe636b5f78423505e2638f10c3e99b39a
[ "BSD-2-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
thestick613/dogpile.cache
ba1df3a8e71b7f22cc4b3bc52f32a7d90555b125
a0939e132dc0964a315137787903a561f5fa5f06
refs/heads/master
2022-07-15T13:34:37.923493
2022-06-23T08:02:02
2022-06-23T08:02:02
205,935,922
0
0
NOASSERTION
2022-06-23T08:02:03
2019-09-02T21:00:39
Python
UTF-8
Python
false
false
106
py
__version__ = "0.7.2" from .lock import Lock # noqa from .lock import NeedRegenerationException # noqa
[ "mike_mp@zzzcomputing.com" ]
mike_mp@zzzcomputing.com
be5c2e81ae57b3cc706e183b70ee73451806702c
f74d1cb7119536594b1c167bec70fdcce9a4016f
/scrapyModel/scrapyModel/spiders/BookSpider.py
19f110cc649710e742b4c57acc92e5c453e58514
[]
no_license
Magicxiangye/python_crawler_demo1
22f4fe555f879ade8637509cbc73ded3397fe542
06aa2afba6797413c4eefa8a25616e615b7f754b
refs/heads/master
2023-06-05T00:12:42.062902
2021-06-29T16:03:13
2021-06-29T16:03:13
314,501,775
1
0
null
null
null
null
UTF-8
Python
false
false
2,386
py
# ไฝฟ็”จ็š„ๆ˜ฏScrapyๆก†ๆžถๆฅ่ฟ›่กŒbook็ฝ‘้กต็š„ไนฆ็ฑ็ˆฌๅ– import scrapy import os import sys # sys.path.append(r"E:\PycharmProject\python_crawler_demo1\scrapyModel\scrapyModel") current_directory = os.path.dirname(os.path.abspath(__file__)) root_path = os.path.abspath(os.path.dirname(current_directory) + os.path.sep + ".") sys.path.append(root...
[ "30616925+Magicxiangye@users.noreply.github.com" ]
30616925+Magicxiangye@users.noreply.github.com
614999da01d0970b0db97ba37e2e14bbb3af0abf
b6901ce5a4cd3fdcc2e4bdb29d54c34caf294fea
/eval.py
9136298ce347da4fee3a48d2b41860b357575546
[ "MIT" ]
permissive
ComputationalRadiationPhysics/InFlow
d00d22174b998602021ad4385bbf1b83820859ec
d10d219b26273029dab3d5ee7c422d839fbbdb2c
refs/heads/main
2023-06-14T06:02:56.953578
2021-07-01T13:33:07
2021-07-01T13:33:07
319,951,364
11
1
null
null
null
null
UTF-8
Python
false
false
21,184
py
# coding: utf-8 ###################################################################################### # ##################Out of distribution detection using InFlow########################## # This notebook will demonstrate the out-of-distribution (OoD) detection using InFlow # ###################################...
[ "nishant.kumar@mailbox.tu-dresden.de" ]
nishant.kumar@mailbox.tu-dresden.de
d1d9d03d08324df4aefc9c1fbbf15156ae007e15
6e437e2dff4ce620e181513d5327a2b271a08b0e
/sampleScripts/constantsLocalizer.py
ff6174cd343a1216b05dc4c72c14b9fa457bcfd9
[]
no_license
samyag1/ExperimentFramework
9b710c57aaa4116ac8fb2fe9716c8aa497312a9a
f2a7e74896d118d0457113766e698458906dbff2
refs/heads/master
2021-01-10T21:31:13.788196
2011-11-16T04:06:43
2011-11-16T04:06:43
2,784,625
0
0
null
null
null
null
UTF-8
Python
false
false
914
py
# Localizer constants OBJECT_LOCALIZER_RUN_NOS = [1,2] RETINOTOPY_LOCALIZER_RUN_NOS = [3,4,5,6] LOCALIZER_DUMMIES = 5 LOCALIZER_OBJECTS_PATH = 'objects' LOCALIZER_OBJECTS_ORIGINALS_PATH = "originals" LOCALIZER_OBJECTS_CREATEFILES_PATH = 'createFiles' LOCALIZER_RETINOTOPY_PATH = 'retinotopy' LOCALIZER_RET_CCW_PATH = 'co...
[ "samyag1@berkeley.edu" ]
samyag1@berkeley.edu
e2ad3046de681b93c653af54d57e2a3159bffe5a
3260f21b7d1508d50d6f790905355e48f9f97ac5
/zmeiduo/apps/verifications/views.py
cb29726a3b7ffd95d3ccb3842e47d81a31bc10d9
[]
no_license
qqqcai/md_project
75ee5e65cf8c04d2104b40a54ced7cb38fcf89e7
f375465fd07d5b3047602e99b8016be5c80711f9
refs/heads/master
2022-01-16T19:53:54.818362
2019-06-15T08:35:27
2019-06-15T08:35:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,460
py
from random import randint from django.views import View from django.http import HttpResponse, JsonResponse from django_redis import get_redis_connection from . import constants from verifications.libs.captcha.captcha import captcha from zmeiduo.utils.response_code import RETCODE # from celery_tasks.sms.tasks import s...
[ "qqqcai@126.com" ]
qqqcai@126.com
67a0bd9928efe52cd33a51befd468b75aed79b57
0a5d95b6d01465ddb68e94d426c2feee4c28bc64
/shi_tomasi_corner_detection.py
dbabc00a28c407624cd21c50c80eb123ace77e56
[]
no_license
vandita-chapadia/OPENCV_FUNDAMENTALS
f91bb49b477717f1da867d537030822566b61142
bcfd34f75e72f0a3ae5b2d6c4558b5de86f13ced
refs/heads/main
2023-05-08T00:50:15.281299
2021-06-10T09:54:42
2021-06-10T09:54:42
375,647,246
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
import cv2 import numpy as np img = cv2.imread('shapes.png') gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) corners = cv2.goodFeaturesToTrack(gray , 30 , 0.01 , 10) corners = np.int0(corners) for i in corners: x,y = i.ravel() cv2.circle(img , (x,y) , 3 , (0,225,255) , -1) cv2.imshow("image",img) cv2.waitKey...
[ "vanditachapadia296@gmail.com" ]
vanditachapadia296@gmail.com
df42fb81ab121a9776879d10e34a82753afc05d5
8cf5d738aa1bf604c1215bff0e57aef0218a5194
/0x1F-pascal_triangle/0-pascal_triangle.py
570ddb16f491d2e0ae1e2b7f26f319cb0f7f6d38
[]
no_license
PilarPinto/holbertonschool-interview
3493bdb41fbc437e4dcf58db99cebcc350c2029f
b58bbce825426e9a15fee67dec65768f0ae0d724
refs/heads/master
2023-07-13T09:28:56.071905
2021-08-27T03:29:44
2021-08-27T03:29:44
281,306,960
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
#!/usr/bin/python3 ''' Module where the integers representing the Pascalโ€™s triangle ''' def pascal_triangle(n): '''Pascal priniting functions''' if n <= 0: return [] pas_r = [[1]] if n > 1: pas_r.append([1, 1]) for ind in range(3, n + 1): pas_r.append([1] + list(ma...
[ "piapintoch@unal.edu.co" ]
piapintoch@unal.edu.co
12e23d45d86604712c62c27d9d5d24bbd21d6e2f
c325866c577343752f0d4394c3d96e599674df0e
/models/nosis_configuracion.py
b133bf8a84cf2a4d4f2ff5dd7f1a714f0cc0ee4e
[]
no_license
levislibra/financiera_nosis
ff11f4f8417917d48220d40c1524f91d5f1a4d24
3227e9258e2f8519880081232070734e929af3f8
refs/heads/master
2023-01-05T20:23:01.509995
2022-12-22T18:33:05
2022-12-22T18:33:05
236,527,122
3
0
null
null
null
null
UTF-8
Python
false
false
3,340
py
# -*- coding: utf-8 -*- from openerp import models, fields, api from datetime import datetime, timedelta from dateutil import relativedelta from openerp.exceptions import UserError, ValidationError import time import requests ENDPOINT_NOSIS = 'https://ws01.nosis.com/rest/variables' class FinancieraNosisConfiguracion...
[ "levislibra@hotmail.com" ]
levislibra@hotmail.com
3f0368c913e52dff7e4bfd737ca4028f9e25ee32
f4b7fce1c5277ab81e66a72746553554b9ae9a7b
/MothersVengeance/classes/enemy.py
5d35fd6beefdce236444b45d58628aaf22690a9d
[]
no_license
deco93/MomsVengeance
9bf468e57ad48e57357f5c37b574a63153abd0e5
c1ce281bf5e124667bd6d5e343f91c729f5fb00c
refs/heads/master
2022-12-12T08:06:00.830909
2020-09-13T13:48:24
2020-09-13T13:48:24
290,578,113
0
0
null
null
null
null
UTF-8
Python
false
false
2,548
py
import pygame class Enemy(object): def __init__(self, x, y, width, height, end): self.x = x self.y = y self.width = width self.height = height self.end = end self.path = [self.x, self.end] self.walkCount = 0 self.vel = 3 self.walkRight = [pygame.image.load('./imgs/R1E.png'), pygame.image.load('./img...
[ "saranshwali@yahoo.in" ]
saranshwali@yahoo.in
f10521bec9c35ed9de1f626cde80d9f4c3eccfd2
3b5c46ce2daa75e1e157838d0f6cfd92469471a0
/plastering/inferencers/scrabble/ground_truth_gen.py
06262e23e98f035aa786f957245812f56a341b1c
[ "MIT" ]
permissive
plastering/plastering
1b4e9c04fce4b26b22fe5ade05af9baf644b4eaa
26ffeecb38844ebb122fde5d9bd2276a7b4150a0
refs/heads/master
2023-04-04T07:50:59.087529
2021-05-17T23:31:40
2021-05-17T23:31:40
149,086,461
37
17
MIT
2023-03-24T23:19:24
2018-09-17T07:32:17
Python
UTF-8
Python
false
false
3,069
py
import pdb import json import argparse parser = argparse.ArgumentParser() parser.add_argument(choices=['ap_m','ebu3b', 'bml'], dest='building') args = parser.parse_args() import pandas as pd from brick_parser import equipTagsetList as equip_tagsets, \ locationTagsetList as location_tagsets,\ ...
[ "bk7749@gmail.com" ]
bk7749@gmail.com
2bfcd3ada8bcb27eca2b547c6824f1c5cae3645b
d51781836c4750d5e8116cc0d815ac9fb5fabe04
/pya/cli.py
56b565d2dc54e1a926f38365c0c1c8b522387191
[ "MIT" ]
permissive
gsemet/pya
1dc689752e96bb4107cfb59b1ed3f1647e51943b
578e1c0fef58fa6a97fc3bfba62d82c3cdb16828
refs/heads/master
2022-12-14T05:09:34.554969
2018-06-28T06:09:02
2018-06-28T06:09:02
138,974,579
0
0
MIT
2021-06-01T22:31:25
2018-06-28T06:15:39
Python
UTF-8
Python
false
false
523
py
# -*- coding: utf-8 -*- """Console script for pya.""" import sys import click @click.command() @click.argument('package') def main(package, args=None): """Console script for pya.""" click.echo("Python Application Installer") from subprocess import Popen, PIPE, STDOUT p = Popen(['pip', 'install', '--...
[ "gaetan@xeberon.net" ]
gaetan@xeberon.net
054fc7189e60b62900473e12995542239a2b4346
729d4da94810b2c8b09de7eacd62f6a3deb90cc6
/Day3/app.py
30d29ed7a00bedd661c4e65e560fb4d2974944d6
[]
no_license
vishwajeetsinghrana8/Flask_For_ML_7Days_Workshop
b09c90da991a231eb2c05f069c3858d3be7e7314
9d92bae818ae2236f14f21507c483387afbafe0f
refs/heads/main
2023-07-15T22:55:21.613338
2021-09-03T14:46:23
2021-09-03T14:46:23
402,436,243
1
1
null
null
null
null
UTF-8
Python
false
false
571
py
from flask import Flask, render_template, request app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/signup') def signup(): return render_template('signup.html') @app.route('/thankyou') def thankyou(): first = request.args.get('first') ...
[ "noreply@github.com" ]
noreply@github.com
563eba447c671fd512d395f592dacda7801a7acf
1b9075ffea7d4b846d42981b41be44238c371202
/2008/devel/applications/office/abiword/actions.py
e75fb6419d91ba18ae0f32bc78933b9d14e7ebfc
[]
no_license
pars-linux/contrib
bf630d4be77f4e484b8c6c8b0698a5b34b3371f4
908210110796ef9461a1f9b080b6171fa022e56a
refs/heads/master
2020-05-26T20:35:58.697670
2011-07-11T11:16:38
2011-07-11T11:16:38
82,484,996
0
0
null
null
null
null
UTF-8
Python
false
false
848
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 2 # See the file http://www.gnu.org/copyleft/gpl.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import get def setup(): autotools.configure("--with-x \ ...
[ "MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2" ]
MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2
b5a99dafbe66010b9ca89c8e85b7ff6848b672a2
6627d27fc69922f179b14b612b366bbf0bc4eff9
/old/robots/claymore/netconsole.py
8bb255b6187ac8cb4eeb6db65d0f2c73d2075da6
[]
no_license
errorcodexero/newarch
1a4773377197174ae58b6e4ef6d670bf197c643b
e69a864012e09548014ad208affeb8901835a654
refs/heads/master
2021-06-03T16:28:41.840622
2020-03-15T18:15:08
2020-03-15T18:15:08
139,747,384
9
6
null
2020-01-31T05:35:34
2018-07-04T16:54:36
C++
UTF-8
Python
false
false
2,488
py
#!/usr/bin/env python # Copyright (c) Robert Blair Mason Jr. (rbmj) rbmj@verizon.net # see LICENSE for license information. import socket import sys import threading import atexit import time import os #allow import in both python 2.x and 3.x try: from Queue import Queue, Empty except ImportError: from queue impor...
[ "butchg@comcast.net" ]
butchg@comcast.net
a0ef3ab113554de3c81c5dcf8b264d3133083b8b
6a8fd1d54d5c1ff7f8599d850fa12d2ee1b6cb87
/floorWall/blog/feeds.py
9c8ebfb4c4e8f52b294583d6c4e9b7212bf7c9c2
[]
no_license
Deathcharge/MASTER
6dde2c9924181b1531c3edd9918aa92e1a7904b7
7129111c21b98812a117a4372a28b9314567f9c6
refs/heads/master
2022-11-22T13:04:52.581713
2020-07-19T12:34:06
2020-07-19T12:34:06
280,714,733
0
0
null
2020-07-25T08:35:32
2020-07-18T18:23:13
Python
UTF-8
Python
false
false
802
py
from django.contrib.syndication.views import Feed from django.template.defaultfilters import truncatewords from .models import Post #from django.urls import reverse class LatestPostsFeed(Feed): title = "My blog" link = "" description = "New posts of my blog." def items(self): return Post.obje...
[ "ward.andrew32@gmail.com" ]
ward.andrew32@gmail.com
7512288e5822c7a47a7857cd42a28c73b87de179
1ee5060bca6c2138e9b933494cc98297f595b458
/tests/bq_test16.py
201a6b9672c724aaf4361aa0608a47a678c22ba0
[]
no_license
OmarKhayyam/UGym
e051acc474e88285301d23b8cf968d3b4109fe35
f8c9066c4a2a78fe24f9174cc657912cdbdbfaf3
refs/heads/main
2023-05-04T19:48:41.011630
2021-05-30T11:55:51
2021-05-30T11:55:51
372,201,204
0
0
null
null
null
null
UTF-8
Python
false
false
562
py
#!/usr/bin/env python import sys sys.path.insert(1, '../BQDetailsObject') from BQDetailsObject import BQDetailsObject b = BQDetailsObject() print("Testing getSumOfNumericStructMembers()...") b.getAllDatasets() for ds in b.dsls: b.getAllTablesForDataset(ds.dataset_id) for t in b.tblls: dtset = t.datas...
[ "shringar@amazon.com" ]
shringar@amazon.com
8d706c35396cf8ae9ce4978e5e8218b88d2004f6
1d2845117bf4ccc6af503d6133fc2fc1d31a8a1a
/pytorch_code/main.py
93c6ca782c42b2819fed7c736efddf5479ee3536
[]
no_license
wellimbharath/xmlcnn-public
54b19951703a02409f60e5213bec1730ea43df13
b75e7fe483735a31181c39ed71ce92c9babf2450
refs/heads/master
2022-05-01T22:38:56.035884
2018-05-01T07:30:51
2018-05-01T07:30:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,496
py
from datetime import datetime as dt import torch.optim as optim import torch.nn as nn import os import time import argparse import pickle import torch from IPython.core.debugger import Pdb from torch.utils.data import Dataset, DataLoader import utils import xml_dataset import cnntext import numpy as np import data_samp...
[ "yatin.nandwani@gmail.com" ]
yatin.nandwani@gmail.com
f0c3e3f7455a44a35b9adec11036b034f8b83fe1
be969df481f98b0094fff83eb6d78c7ff3673aba
/tool_error/error.py
ac2ab2764266969e6a3507aafc71ff7e5461ce7d
[ "Apache-2.0" ]
permissive
hustcsxg/pytools
68b6683209435d5e47741ee47b6299f360c21c75
2180509847a6a88906dd110a01164425ed902ac7
refs/heads/master
2021-07-03T17:29:36.336247
2020-12-03T09:45:23
2020-12-03T09:45:23
205,327,218
0
0
null
null
null
null
UTF-8
Python
false
false
7,070
py
""" ้”™่ฏฏ็ ๅฎšไน‰็คบไพ‹ๆ–‡ไปถ """ import copy ERROR_CODE_PREFIX_SYSTEM = '0' ERROR_CODE_PREFIX_THIRD_PARTY = '1' def wrap_error_code(code): """ ๅŒ…่ฃ…็ฌฌไธ‰ๆ–น็ณป็ปŸ่ฟ”ๅ›ž็š„้”™่ฏฏไปฃ็  """ return ERROR_CODE_PREFIX_THIRD_PARTY + str(code) class BaseException(Exception): pass class RequestThirdPartyException(BaseExcep...
[ "xigang@xsyxsc.com" ]
xigang@xsyxsc.com
970e9469619a802e49f76d3ff6847358c83718f2
95d9e1701d9c09188bb14ac9c9f34a553942e276
/venv/bin/melody_rnn_train
25a3191142235c6e51aa744d5f7c9b6215465030
[ "MIT" ]
permissive
abinayadinesh1/Expressiva
aef9c65b4a7c2d9cdf30574ce60b071f347e7321
1f97456ea183c1ceb4ccea7424e65b809b3d6d6b
refs/heads/master
2023-01-10T11:45:22.853552
2020-11-15T16:08:39
2020-11-15T16:08:39
312,972,727
0
0
null
null
null
null
UTF-8
Python
false
false
321
#!/Users/abi3/Downloads/aiexperiments-ai-duet-master/venv/bin/python # -*- coding: utf-8 -*- import re import sys from magenta.models.melody_rnn.melody_rnn_train import console_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(console_entry_point())...
[ "abi3@abinayas-mbp.lan" ]
abi3@abinayas-mbp.lan
9dd4e56b0b77bc9d2e0135a47038c8ea171a9e01
0c81a31bb625e30330a35c81794334f3720e80c3
/yield curve.py
a797f492829770bb59cbe06c053a1c5d5bb82b91
[]
no_license
Niels555/my_python_files
1aaa0668625379ded2fe6e89d8ba95df48700bf2
51190045eeb2acc419ad7bcf190b65aa523fc6f5
refs/heads/master
2020-08-29T01:31:19.304426
2019-10-27T16:13:11
2019-10-27T16:13:11
217,880,955
0
0
null
null
null
null
UTF-8
Python
false
false
4,926
py
# -*- coding: utf-8 -*- """ Created on Sat Jul 13 11:04:44 2019 @author: jonkm """ import numpy as np import matplotlib.pyplot as plt import scipy.stats as st import scipy.integrate as integrate import math def Theta(ita,lbda,t):#theta function return 0.06*t+0.15+0.06/lbda + (ita**(2)/(2*lbda...
[ "noreply@github.com" ]
noreply@github.com
98e0e1153c797c4af9dc93ebe684c88e04078fdb
848471f05a8df7e7fe0314b0ab5acaf3d075d0a6
/Komunikazioa/appBatuketa.py
bbce0ffc0899e8bf543fe536a2dca835b83addbb
[]
no_license
ekaitzhara/EkaitzHurtado_GrAL
bb04b6d13b7d2ae92f97e1da474435d3beb22314
560e7c2ca88b8147bc0de3155ee5a69562a3faa7
refs/heads/master
2022-11-09T20:15:20.537849
2020-06-24T22:14:49
2020-06-24T22:14:49
274,714,375
0
0
null
null
null
null
UTF-8
Python
false
false
1,157
py
from flask import Flask, request, jsonify import sys app = Flask(__name__) batuketaTotala = 0 kont = 0 @app.route('/', methods=['POST', 'GET']) def index(): global kont global batuketaTotala # Lortutako HTTP mezua POST motakoa bada if request.method == 'POST': zenbakia = request.j...
[ "noreply@github.com" ]
noreply@github.com
365d03142d2a760e74ebd64925d6f47d0a8f9b47
dad35c2e4e166f2e9271b9ace39727df5474cd5f
/Python/TCP/server_multi.py
4376b0242431df9d7cb5f0a3f3f27ab28f2b74fd
[]
no_license
MattMarti/Practice
60d43fa9f690fee12442ada88527236b37709749
48d06eaa0b45d447b160e8200875ec241d79f630
refs/heads/master
2023-03-14T14:20:53.867943
2021-03-13T21:24:51
2021-03-13T21:24:51
266,005,929
0
0
null
null
null
null
UTF-8
Python
false
false
2,275
py
# server_multi.py # # Opens TCP socket and accepts data from multiple clients and prints # to command line import socket import selectors import types def run(): host = "localhost" port = 65432 # AF_INET is IPv4 protocol # SOCK_STREAM specifies TCP sel = selectors.DefaultSelector() # Set lis...
[ "matthew.marti@gmail.com" ]
matthew.marti@gmail.com
250b1d292457924a49b4539472683815fd9263e8
0749fdebffc1dee69406174381305ab405c82f8b
/pydockerreg/shells/index.py
da087290259929651ecf60aef9c9199d9c641c4c
[]
no_license
woosley/pydockerreg
179733e7671ce543b1c43dd8715233246bd4f386
18c0c12499c40969336751821e0e67194c439eed
refs/heads/master
2021-01-20T18:27:51.369866
2016-06-27T13:27:20
2016-06-27T13:27:20
61,873,937
1
0
null
null
null
null
UTF-8
Python
false
false
976
py
from __future__ import unicode_literals import click from six.moves.urllib_parse import urlparse from .base import Base from ..utils import opt_manager, gather_opts, set_completer_var from .repo import Repo @gather_opts class Index(Base): """index commands for dockerreg""" def get_prompt(self): hos...
[ "woosley.xu@gmail.com" ]
woosley.xu@gmail.com
dc9d3cb48eb30aeeebe9eb2a807410065c170b8b
7f29c186de0b50d3829066b767e5082a6e9e5947
/truva_installer/config.py
1cdb36f7956617f051f8793e85e7c5955f881349
[]
no_license
caylakpenguen/anatolya
6ffbd30944ec11b178bc3284dd6626058cfe992f
6d95135ed1ce709ac1270cc8d00d4a8cd8f2d021
refs/heads/master
2020-05-18T19:30:15.319698
2015-03-14T18:53:59
2015-03-14T18:53:59
32,226,441
0
0
null
null
null
null
UTF-8
Python
false
false
851
py
#Kurulum sonrasi ayarlari yapiliyor setup_1 = ('chroot %s /sbin/ldconfig' %mntdir) os.system(setup_1) setup_2 = ('chroot %s /usr/X11R6/bin/fc-cache -f' %mntdir) os.system(setup_2) shutil.copyfile("/truva_installer/files/rc.keymap","%s/etc/rc.d/rc.keymap" %mntdir) setup_3 = ('chmod 755 %s/etc/rc....
[ "caylakpenguen@gmail.com" ]
caylakpenguen@gmail.com
f982f49bded21d3ec480ed23147785cb1e622b6f
e4007870b4d75ba23c2f12ac6646f272cf17865c
/Types/Detection_3D.py
33c52d337085600db6cc52e4e9c38d9631902223
[ "MIT" ]
permissive
knut0815/PythonUtility
385ce332ff34501be7ad21ac7948eb609770e72a
0062e1e60dc151776b963d13bc4c1763eb90d333
refs/heads/master
2023-01-10T09:58:14.619531
2020-11-10T12:22:47
2020-11-10T12:22:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,453
py
import numpy as np from Utility.Classes.Frozen_Class import FrozenClass class Detection3D(FrozenClass): def __init__(self, frame, track_id, detection_type, truncation, occlusion, obs_angle, bbox, dimensions, location, rotation_y, score): self.frame = frame self.track_id = track_id # detec...
[ "sebastian.bullinger@iosb.fraunhofer.de" ]
sebastian.bullinger@iosb.fraunhofer.de
c805b342485e670743486773449b5dfe5ee5d797
5c269629ca7d5ffb3a6035d056ae88f90fd8153a
/pandas/tests/series/test_dtypes.py
6864eac603ded8a41a02dd6bd6d298bf10d41607
[ "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "BSD-2-Clause" ]
permissive
bdrosen96/pandas
416e5cb1941b21cee38a30346056a257b7d2b0ce
506520bd35331aa82db50686c07d96594cac0c10
refs/heads/master
2021-01-15T09:20:22.851970
2016-07-19T02:06:18
2016-07-19T02:06:23
63,601,381
0
0
NOASSERTION
2019-11-21T13:08:56
2016-07-18T12:31:49
Python
UTF-8
Python
false
false
5,127
py
# coding=utf-8 # pylint: disable-msg=E1101,W0612 import sys from datetime import datetime import string from numpy import nan import numpy as np from pandas import Series from pandas.tseries.index import Timestamp from pandas.tseries.tdi import Timedelta from pandas.compat import lrange, range, u from pandas import...
[ "jeff@reback.net" ]
jeff@reback.net
e8b2650b9dc9cecf5f0c9ee376a71fc41204fd5f
f2a77ee7c886b4f09c73d6e67133953ee80f213a
/all7/all7.py
54933dc0db4b2f48dcec4922fdf85b970d402899
[]
no_license
pjpalla/new_movc
d4ac3ace71d9d1b319bb7d71f52951b6e00d4fa1
3559e5ff3fbab0da50c4b00f57ee4038bcfbb327
refs/heads/master
2021-01-19T14:24:20.719137
2018-05-30T08:45:37
2018-05-30T08:45:37
88,159,164
0
0
null
null
null
null
UTF-8
Python
false
false
9,181
py
__author__ = 'pg' from openpyxl import * from movc.province_data import * from all7.all7_consts import * import re class All7: def __init__(self, template_file_path, year, province): self.year = int(year) self.template = load_workbook(template_file_path) self.province = province def ...
[ "palla.pg@gmail.com" ]
palla.pg@gmail.com
952498fe3ce65449fb818515ea9a956611e27c3a
37f48a90a33015a6e51d8b4ad839f5741a0c320f
/NoSQL_Cassandra/4_where_clause.py
68a612d995a381451d49b6fabe6b8caf595c9534
[]
no_license
Hadryan/Data_Engineering
90376170a9a6a9700d1a1f32ea4b6efe6cdcbd98
f02db4f2ffb592277b44c2807884443c910725b1
refs/heads/master
2020-12-14T11:01:33.399933
2019-12-21T15:36:33
2019-12-21T15:36:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,248
py
# Since NoSQL has no JOINs, where becomes imperative import cassandra from cassandra.cluster import Cluster print('create connection to database \n') try: cluster = Cluster(['127.0.0.1']) session = cluster.connect() except Exception as e: print(e) print('create keyspace/database \n') try...
[ "noreply@github.com" ]
noreply@github.com
16671546e785ab5c884f8db12fe6dd201b9ae9e7
a3b36f0c29241e5d4f96b1bfb06a1edf7f44117d
/organizer/organizer/asgi.py
9373a72befcbee44b38a86c37c6bb1210b09ee3f
[]
no_license
druidmaciek/skillhq
48d75057aaa6b68d62725a3a375bad467339cadc
6be97540a32e58bcbd7273932ce3d1074b1c409e
refs/heads/master
2022-11-30T23:44:42.585938
2020-08-06T21:14:53
2020-08-06T21:14:53
280,944,400
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" ASGI config for organizer project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault("DJANGO_SET...
[ "maciekjanowski42@icloud.com" ]
maciekjanowski42@icloud.com
046a8a61f00b1937867df9402f663f9cc3f5cff4
ebf50a1aa0aa84a020a1e5a7dfdc8b4428e1eeb7
/reminder_app/manage.py
034315700cc1cb26ce8196c37cc1ca2740b5fd24
[]
no_license
puchmichal/reminder_app
c487d5304b3c4fec52ab6f5031fdc9c72011fbee
3aa6ff4f1f291f3ee763a3cb7119959cbffdb48f
refs/heads/master
2020-06-07T20:21:29.392208
2019-06-25T19:35:51
2019-06-25T19:35:51
193,086,956
0
0
null
null
null
null
UTF-8
Python
false
false
632
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', 'reminder_app.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise I...
[ "alicja.kocieniewska@op.pl" ]
alicja.kocieniewska@op.pl
823cdff25f1566335481806d80b1386c3ff00042
7b568c2420bb13be6978305d908e9b9561da5695
/Barcos.py
a28b7510cb1bd1c38b3d94c252e111a596c3550e
[]
no_license
alexdjukic/test
691d930add0e73e4de4f1d3ee02ca683e87e79bd
290be80a93ca745185b8b923d8cddb5d6b48524b
refs/heads/master
2021-03-15T13:00:26.079188
2020-03-12T14:23:29
2020-03-12T14:23:29
246,852,362
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
class Barcos: def __init__(self,pos_x,pos_y,vidas): self.pos_x = pos_x self.pos_y = pos_y self.vidas = vidas
[ "alejandrodjukic99@gmail.com" ]
alejandrodjukic99@gmail.com
4088843b646eab6f6b40d2158cddb8ac622154dd
f0acc407f95b758fa734f5ed5f6506a8b20d2706
/tests/test_tutorial/test_options/test_name/test_tutorial004_an.py
087b436d55d07adedb8c0365657f3f42ab29d946
[ "MIT" ]
permissive
shnups/typer
ede6d86c5b169e8caa7823b0552f8531ed041f84
e0b207f3f577cb2e59fdd60da39686a2f5ed0e77
refs/heads/master
2023-08-31T01:54:21.168547
2023-08-01T09:36:09
2023-08-01T09:36:09
313,047,732
0
0
MIT
2020-11-15T14:22:06
2020-11-15T14:22:05
null
UTF-8
Python
false
false
1,018
py
import subprocess import sys import typer from typer.testing import CliRunner from docs_src.options.name import tutorial004_an as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_option_help(): result = runner.invoke(app, ["--help"]) assert result.exit_code == 0 assert "-n...
[ "noreply@github.com" ]
noreply@github.com
02840fe2d32009474eb5ee755a0eebc44dec3007
80444ee4732e227e28e392d0cedbabc47445c32f
/Scripts/Tutorials/20-11-30-MLM_StableGAN.py
7904e788b6a02c30f836e9a92ebd70e5625f083a
[]
no_license
canafarci/MARCH_Repo
1432a9f4b99f99bc30280ef8a0a8035f62cd5fc1
5a061e8dd65c8bef66d8ec6883eba1ed4ba1b57a
refs/heads/main
2023-06-04T22:59:24.678920
2021-06-23T19:43:21
2021-06-23T19:43:21
320,902,216
0
0
null
null
null
null
UTF-8
Python
false
false
8,060
py
from os import makedirs from numpy import expand_dims from numpy import zeros from numpy import ones from numpy.random import randn from numpy.random import randint from keras.datasets.mnist import load_data from keras.optimizers import Adam from keras.models import Sequential from keras.layers import Dense from keras....
[ "ismetberke@gmail.com" ]
ismetberke@gmail.com
b89e80dfa0cc39a704abda127e10ede67b971951
9cdab664a653b70d61d4d453d5fd3e1e5f37af62
/89.py
3552c4a9fb3e1394952f3fea640c96e81619b31b
[]
no_license
Devikd/devi
5ca77ad2a60470b470434cd13c1cbf87757ec0f1
60f0f7cdb09c43456003f47c837a494545c19e7f
refs/heads/master
2020-12-25T15:17:40.053844
2019-01-23T06:32:24
2019-01-23T06:32:24
66,335,503
0
1
null
null
null
null
UTF-8
Python
false
false
58
py
print("".join(sorted(sorted(input()), key=string.upper)))
[ "noreply@github.com" ]
noreply@github.com
789b54608551ecc1777ca44be7846156b06717dd
c44e80bf9d3b12f22d87dabf005eda6e76ef651e
/tango_with_django_project/rango/migrations/0003_auto_20170121_0107.py
1b7ebdd89200944e22e7a0ad414ed984652a11e5
[]
no_license
TasosAg/rango
ba636fd45bc0934f4f50c23c3577e8f09d5cbda1
65677a77e8addd3a91ba7deb3339f35718a01c0c
refs/heads/master
2021-01-11T18:33:24.550363
2017-01-24T02:20:32
2017-01-24T02:20:32
79,568,172
0
0
null
null
null
null
UTF-8
Python
false
false
598
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-01-21 01:07 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rango', '0002_auto_20170121_0057'), ] operations = [ migrations.AddField( ...
[ "tasosagathokleous@gmail.com" ]
tasosagathokleous@gmail.com
0369784a34cd085bb1a8b0d7a1105c483726a2dd
552a29d8b2f8e4a035ae88275e02978e7c350970
/train/views.py
72be4944301568942767f01ef10c801f14db3e11
[]
no_license
arunraj753/chatbot
be6906acbfd557a5a2665bafe851da3cdb9a6478
444a72995ae907c2e0fbc644144a051a3c5c8d6f
refs/heads/main
2023-03-03T10:33:02.029447
2021-02-04T07:32:10
2021-02-04T07:32:10
333,600,268
0
0
null
null
null
null
UTF-8
Python
false
false
3,461
py
from django.shortcuts import render from rest_framework.response import Response from rest_framework.decorators import api_view import numpy as np import torch import torch.nn as nn from torch.utils.data import Dataset, DataLoader import json from .base import NueralNetWeb,tokenize,stem,bag_of_words def loadCustom...
[ "arunraj753@gmail.com" ]
arunraj753@gmail.com
eb6a8f7da9c4bcaff2db10a52426f6a119af66c9
a1c9c55e1520356113a320be18e8fcb31654a944
/archive/0.9/generated/seaborn-violinplot-1.py
87adeb3dba3ac608c3ceeb5db1a699327d0c16bb
[]
no_license
seaborn/seaborn.github.io
bac12a9255b41c7971e9e94ea393d372ef66ef62
f70445bc3456f0216169806c2daf03452ca1eba4
refs/heads/master
2023-01-06T10:50:10.789810
2022-12-30T19:59:55
2022-12-30T19:59:55
70,731,605
16
5
null
2022-06-28T00:32:07
2016-10-12T18:56:12
HTML
UTF-8
Python
false
false
123
py
import seaborn as sns sns.set(style="whitegrid") tips = sns.load_dataset("tips") ax = sns.violinplot(x=tips["total_bill"])
[ "mwaskom@nyu.edu" ]
mwaskom@nyu.edu
8f70fe0ad38628cf5ee741fd548122e15bd679dd
ed6591c2fe4d13c6f6f236b66f01c04ade8e717a
/rpi_sensehat_mqtt.py
f3cd620e152748a1deea45bbdd45fb6f70d89f1c
[]
no_license
mirkodcomparetti/rpi-sensehat_mqtt
77e3113a1f13bb54dcd95cd70835e1b455668725
d6fe4c50f287cad14f65815ec648bdfc0685b17d
refs/heads/main
2023-02-27T12:09:52.388579
2021-02-06T14:29:28
2021-02-06T14:29:28
334,609,204
3
1
null
null
null
null
UTF-8
Python
false
false
6,190
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # This scripts reads sensors from SenseHAT and streams them on MQTT from sense_hat import SenseHat import logging import os import paho.mqtt.client as mqtt import uuid import json from rfc3986 import urlparse import signal from threading import Event import socket import time...
[ "comparetti.mirko@gmail.com" ]
comparetti.mirko@gmail.com
4408f2da3cc0458926f976eb6d208f94a4dbb331
05a2097cbc167c0d8cfde5a039600c6994a34232
/custom/penn_state/constants.py
74aac3cb2025c0fd4a0abd1312f7931d10a6287f
[]
no_license
shashanks/commcare-hq
9c641a4d830cd523410be150c2d341c4edbce38a
44c2bd56bcb746f1f6c7b624ddefbe4215fc791c
refs/heads/master
2020-12-11T06:12:36.705418
2013-12-17T08:35:23
2013-12-17T08:35:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
DOMAIN = 'psu-legacy-together' DAILY_DATA_XMLNS = 'http://openrosa.org/formdesigner/B6E92793-CB42-449C-ACE7-99B0E65FE3AE' COACH_RESPONSE_XMLNS = 'http://openrosa.org/formdesigner/D42C8CAB-F17C-4E9C-921C-CA47E6AECE15' WEEKLY_SCHEDULE_XMLNS = 'http://openrosa.org/formdesigner/F2F7A739-BDEF-4D14-B60F-371AFE901B71'
[ "esoergel@gmail.com" ]
esoergel@gmail.com
d43603f5c98e5e8ab97362f215fce6ccdbfaa8b2
b43863a2d04e9000a411a488b42823092c65d067
/skeleton_code/configure_and_build.py
18d94139ada1d8c874bef3d1733221d15b8298ef
[]
no_license
elskorda/scifopyFinal
3d4a60295361a77fa64c4e99f0db01785e3309f1
58ac035d555492c3e811dfc19cc19237f6e0c2ae
refs/heads/master
2022-12-28T06:43:53.729754
2020-10-16T21:10:13
2020-10-16T21:10:13
296,747,966
0
0
null
2020-09-22T09:51:15
2020-09-18T23:17:02
Fortran
UTF-8
Python
false
false
2,803
py
#!/usr/bin/env python import os, sys, subprocess, platform, shutil pydistutils_cfg_template = """[build] compiler=mingw32""" def cmd(cmd): cp = subprocess.run(cmd, shell=True, capture_output=True) if platform.system() == "Windows": return cp.stdout.split("\r\n") else: return cp.stdout.spl...
[ "eleni.skorda@cern.ch" ]
eleni.skorda@cern.ch
b649bb21ea563e3765210bd62d99d5b730a5b950
8fb2668de046fb47ffb3e0964746b400e75b7c83
/crawl/fake_spider/tushare/kData.py
79515c39159d08946ce04bb198cc6e7d8deaf6af
[]
no_license
reinhardtken/backtest-py
5d8f080861851882d954f4bb944a8d374220498e
6d14b10918c018081ab228030d2b3ac38eea267c
refs/heads/master
2020-12-06T17:01:33.284011
2020-02-11T15:07:42
2020-02-11T15:07:42
232,512,884
0
0
null
null
null
null
UTF-8
Python
false
false
4,473
py
# -*- encoding: utf-8 -*- # sys import json import datetime # thirdpart import pandas as pd import tushare as ts from pymongo import MongoClient # this project ########################## import util.crawl as util import const.crawl as const #http://tushare.org/classifying.html#id8 # code :่‚ก็ฅจไปฃ็  # name :่‚ก็ฅจๅ็งฐ # date ...
[ "reinhardtken@hotmail.com" ]
reinhardtken@hotmail.com
88e53339a9db9c2268bfe7d1a0e74a0f75ea5325
c8b19983b149c8ac5418f745fd5c09d121542565
/2021/Day9/main.py
a66112cb0d7696c136fa506145cc5bcaecf9ea21
[]
no_license
nathan-castlehow/Advent-of-Code
33eb144f54e308c6bdcd4e764c84d044c22f8821
9bf2c05f159d25d3c7b5477441da43265ce7de12
refs/heads/master
2022-12-12T16:09:00.297495
2022-12-03T12:35:04
2022-12-03T12:35:04
160,012,205
0
0
null
null
null
null
UTF-8
Python
false
false
1,274
py
import os from read_input import read_input_as_string def part_one(): abs_file_path = os.path.join(os.path.dirname(__file__), "input") input_data = read_input_as_string(abs_file_path) height_map = [[int(height) for height in line] for line in input_data] low_points = [] for y in range(0, len(he...
[ "nathan_castlehow@me.com" ]
nathan_castlehow@me.com
e352ffcfee2d7d2105a792b34e0d2a1a53fbdbe9
3c7ffa1bbc840ed65e46e9c0d750d8d5aaaf98ce
/microblog/config.py
f9aef962180c7d1929268ffe307be88fee9409be
[]
no_license
Aiumi/flask_app
c304716bbd4a5b741bf0899f63667b66b3dd2940
cb42024646d1008ce58143bfc01c4fef60e3264a
refs/heads/master
2020-04-24T21:27:48.186963
2019-03-23T23:37:24
2019-03-23T23:37:24
172,278,861
1
0
null
null
null
null
UTF-8
Python
false
false
660
py
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess' SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \ 'sqlite:///' + os.path.join(basedir, 'app.db') SQLALCHEMY_TRACK_MODIFICATIONS ...
[ "brandonaiumiyen@gmail.com" ]
brandonaiumiyen@gmail.com
c0b21454b14d5c5f5a92746deb05883f597628c0
25f6a4f4f52ed4f20545b1568629d20688f70d3c
/measurement/hostname2ip_processor.py
80747165e9f89452bb6103baab350c245820cc66
[ "MIT" ]
permissive
akashlevy/CDN-Measurement
8ee6c4010e6e63d7606093f010d2e1bb06a2e3a0
9d862a9b8de62ebdcfc18daf04bc39b02952f413
refs/heads/master
2020-03-15T23:58:26.080163
2018-05-07T07:08:20
2018-05-07T07:08:20
132,404,775
0
0
null
null
null
null
UTF-8
Python
false
false
256
py
import json with open('hostname2ip_clean', 'w') as clean_out, open('ipaddrs', 'w') as ip_out: for line in open('hostname2ip'): spl = line.split() for ip in spl[1:]: clean_out.write('%s,%s\n' % (spl[0], ip)) ip_out.write('%s\n' % ip)
[ "akashlevy@gmail.com" ]
akashlevy@gmail.com
177511eb917f0c04de3ac00852473301adffedd1
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Scraper/scrapy/tests/test_command_version.py
f8c4ac141c2766133ad886ccb9a77791d7dbb1dc
[ "BSD-3-Clause" ]
permissive
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:73dce6f404541d9151c420cb22ff641258ce3d66e825df13aa289ff4a5c1f1ad size 1058
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
48fbf91914aa9dc043a228725ccfaf3904c3d812
d363ee05c8946166b4bb0cc4d74c737d4f2d7f44
/1.Tuples and sets/7.battles_of_names.py
270b16c7177b7b072d0c81da1479bc30027afc80
[]
no_license
Ivan-Ivanoff/SoftUni
bf0f2b8140fb9445774996eab4a672574dc3bc69
d2348a3269435de20c377de463c2d97e23b41e64
refs/heads/master
2022-10-22T12:22:33.066671
2020-06-16T17:58:54
2020-06-16T17:58:54
268,321,506
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
N = int(input()) odd_set = set() even_set = set() for i in range(1, N + 1): name = input() the_sum = sum(ord(char) for char in name) // i if the_sum % 2 == 0: even_set.add(the_sum) else: odd_set.add(the_sum) odd_sum = sum(odd_set) even_sum = sum(even_set) if o...
[ "noreply@github.com" ]
noreply@github.com