blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c55812681bffcd67f705310e9d3133f402e043f6 | 9d8a3a2c0a15dbf1f90d801e6d705d1212cf09af | /services/web__morningstaronline_co_uk.py | ac5fc53d8d59be5e0045ca7297f649f07c83b74c | [] | no_license | rudolphos/NewsGrabber | f9bddc9a9b3a9e02f716133fd746f48cee635b36 | 86354fb769b2710ac7cdd5bd8795e43158b70ad2 | refs/heads/master | 2021-01-12T12:07:55.335079 | 2016-10-09T22:39:17 | 2016-10-09T22:39:17 | 72,316,773 | 0 | 0 | null | 2016-10-30T00:35:08 | 2016-10-30T00:35:08 | null | UTF-8 | Python | false | false | 417 | py | refresh = 5
version = 20160312.01
urls = ['https://www.morningstaronline.co.uk/britain',
'https://www.morningstaronline.co.uk/world',
'https://www.morningstaronline.co.uk/editorial',
'https://www.morningstaronline.co.uk/features',
'https://www.morningstaronline.co.uk/sport',
'https://www.morningstaronline.co.uk/a... | [
"Arkiver@hotmail.com"
] | Arkiver@hotmail.com |
1ddcd5557d75e12aacac8b96c81f84d3742dcb9c | 7a0b5b4315f7059fab4272c54d8c31b0fe956dbd | /Attributes.py | 3502604e17d2e7b22ba62b8464ccce4a26026ed2 | [] | no_license | welkerCode/MachineLearning-SVM | 94400d2a540d38e14f95ab0d14985e234b88b4cc | 3d3ef3e71e0186816903754bd676ad9c1535bb47 | refs/heads/master | 2020-03-11T16:51:51.124393 | 2018-04-23T23:08:20 | 2018-04-23T23:08:20 | 130,130,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | # I learned to parse workbooks with https://www.sitepoint.com/using-python-parse-spreadsheet-data/
class Attributes:
def __init__(self):
self.values = []
def addValue(self, newValue):
if self.values.count(newValue) == 0:
self.values.append(newValue)
def getValues(self):
... | [
"taylormaxwelker@gmail.com"
] | taylormaxwelker@gmail.com |
4ad9eb923372792981a00e9cb69f041884f5aec9 | 5e3cbf8bfded9d719f2af2256121bd17c2d53e84 | /GPUCheck.py | 462223c40c8635854b6e87e3c3a73372aa75d130 | [] | no_license | UnrealPawn/3d-mask-gan | dca929ab2828fa74e7db7ead685f4c00dc0c404e | 142f1705f1c5e9915593a9fe789d7fb8bf21beaf | refs/heads/master | 2020-04-24T07:47:03.243999 | 2019-02-21T07:05:55 | 2019-02-21T07:05:55 | 171,809,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | import os
os.environ["THEANO_FLAGS"] = "device=gpu%d,lib.cnmem=0"%(0)
from theano import function, config, shared, sandbox
import theano.tensor as T
import numpy
import time
vlen = 10 * 30 * 768 # 10 x #cores x # threads per core
iters = 1000
rng = numpy.random.RandomState(22)
x = shared(numpy.asarray(rng.rand(vle... | [
"183827350@qq.com"
] | 183827350@qq.com |
57055c02b52144a20b3dc308a1a65e5d180c2744 | 5c70f2e44f915d42240d5283a6455417eb8182e4 | /skills/views.py | 47537b9e89c5675cc54981aa69a7e45513d50b0d | [] | no_license | Lairion/MainAcadProg | 3aafd788609a8aeae8598b97a576f18b37995751 | 62870f704938008571044120a8e07466ead7bff9 | refs/heads/master | 2021-04-06T20:36:07.727625 | 2018-04-09T14:13:23 | 2018-04-09T14:13:23 | 125,405,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render,redirect
from .models import Skill,Project
# Create your views here.
class SkillsViews(object):
"""docstring for SkillsViews"""
@staticmethod
def skills(request):
skills = Skill.objects.all()
print(request.user)... | [
"nunyes_m_a@ukr.net"
] | nunyes_m_a@ukr.net |
427c47514b38a992a79fd0148c3b909718f39386 | 82aaf5317c6c5009548da0b0e440c5dfb38d1fb8 | /SConstruct | c5641fe6243c20cfb9ebfcaeab1717dc1f2e98a4 | [] | no_license | listentowindy/to_silicon_valley | 62835f1cf256ccf65c845482117e4f5350e06624 | 876a6db9c5cbc2c6c613d468abd5807908364093 | refs/heads/master | 2021-01-10T08:45:49.744093 | 2015-12-19T07:59:55 | 2015-12-19T07:59:55 | 47,193,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | env = Environment(tools=['default', 'packaging'])
env.Append(CCFLAGS = Split('-g -ggdb -Wall -Wextra -DBTDEBUG'))
#env.Append(CCFLAGS = Split('-g -O2 -Wall -Wextra -DNDEBUG'))
#set include path
comroot='../../../com/'
cpppath=[
'./',
comroot+'thirdparty/gflags-2.0/include',
comroot+'thirdparty/glog-0.3.3... | [
"hongchunxiao.360.cn"
] | hongchunxiao.360.cn | |
529e1d1dcbc6ea47584217f70df3e62ca984ad37 | 7f3802c03f27fe61d9cdf9140385bee158a7f436 | /coma/interfaces/mrtrix3.py | 64464b2ce1b8aab6dc5213308fd641e63bab9a83 | [
"MIT"
] | permissive | GIGA-Consciousness/structurefunction | 0157e88f12577f7dc02b40e251cc40ee6f61d190 | 5c5583bb26d6092fa3b7a630192d8e79199f8df0 | refs/heads/master | 2023-07-11T20:01:58.844183 | 2015-01-05T09:06:48 | 2015-01-05T09:06:48 | 14,110,584 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,826 | py | def inclusion_filtering_mrtrix3(track_file, roi_file, fa_file, md_file, roi_names=None, registration_image_file=None, registration_matrix_file=None, prefix=None, tdi_threshold=10):
import os
import os.path as op
import numpy as np
import glob
from coma.workflows.dmn import get_rois, save_heatmap
... | [
"erik.ziegler@ulg.ac.be"
] | erik.ziegler@ulg.ac.be |
2fa80adb5365c206c46eb8da749aa6e4b59a116f | c6838a47be5b22f1202867e577890ab76973184b | /polyphony/compiler/verilog_common.py | 36572a37cf5497b2df899d14577bbe3fe78bf903 | [
"MIT"
] | permissive | Chippiewill/polyphony | 2d129fc26d716d5b989dff085120b7303ca39815 | 3f7a90779f082bbc13855d610b31d1058f11da9c | refs/heads/master | 2021-09-13T11:48:56.471829 | 2017-08-31T01:47:15 | 2017-08-31T01:47:15 | 112,966,318 | 0 | 0 | null | 2017-12-03T21:44:12 | 2017-12-03T21:44:11 | null | UTF-8 | Python | false | false | 1,457 | py | PYTHON_OP_2_VERILOG_OP_MAP = {
'And': '&&', 'Or': '||',
'Add': '+', 'Sub': '-', 'Mult': '*', 'FloorDiv': '/', 'Mod': '%',
'LShift': '<<', 'RShift': '>>>',
'BitOr': '|', 'BitXor': '^', 'BitAnd': '&',
'Eq': '==', 'NotEq': '!=', 'Lt': '<', 'LtE': '<=', 'Gt': '>', 'GtE':'>=',
'IsNot': '!=',
'USu... | [
"kataoka@sinby.com"
] | kataoka@sinby.com |
32509504483d88e28dab7859a56a2999d721accc | 4a0c58dfeef5e444b9f3d78f9d13d597ebc87d6b | /exercise_48_all_lines/exercise_48_all_lines.py | 29809e0f2fed1e27273bb63f3b29841710f7af2c | [] | no_license | jahokas/Python_Workout_50_Essential_Exercises_by_Reuven_M_Lerner | e2dc5a08515f30b91514c8eb9b76bb10552ba7a2 | 96ddabda7871faa0da9cd9e0563b16df99f0c853 | refs/heads/master | 2023-06-21T11:54:41.794571 | 2021-07-20T08:46:49 | 2021-07-20T08:46:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | import os
def all_lines(path):
for filename in os.listdir(path):
full_filename = os.path.join(path, filename)
try:
for line in open(full_filename):
yield line
except OSError:
pass
| [
"dmitriyrubanov1988@gmail.com"
] | dmitriyrubanov1988@gmail.com |
2138801a48a4de3e3f328339e1a0f23bbedcdf77 | 32d6370fe51c42cd99af52b03f81a82d687e5bb3 | /Desafio073.py | c73ea9d3a3a68dad7fa5feb6d681f879f71d1e3e | [] | no_license | AndreLovo/Python | a5f4b10c72641048dfd65b6c58bce3b233abeb07 | ea98a2ca572dfebf9be32502f041016ec14ac0d5 | refs/heads/master | 2022-05-03T13:08:37.178401 | 2022-04-10T16:41:54 | 2022-04-10T16:41:54 | 157,377,691 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | # Crie uma tupla preenchida com os 20 primeiros colocados da Tabela do Campeonato Brasileiro de Futebol, na ordem de colocação. Depois mostre:
# a) Os 5 primeiros times.
# b) Os últimos 4 colocados.
# c) Times em ordem alfabética.
# d) Em que posição está o time do São Paulo.
times =('Atlético-MG', 'Flamengo', ... | [
"noreply@github.com"
] | AndreLovo.noreply@github.com |
ab771edf0437105d900a63d8b5655d39a750a2ff | 121c583ac01aa6ad3d5e417fe764236ecb98deb7 | /src/Modeling and evaluation/NN-multi-targets/drawModel.py | 79bcecb094ccdc523253f1d3c8e27316ca9735b9 | [] | no_license | thangdnsf/ML_DVFS | e00b82294d35c314209bc56458e7980abc200884 | 908810969588cbcf7c784c0f3ad829eb15bbe0b4 | refs/heads/master | 2023-06-07T03:35:52.696587 | 2021-06-25T18:03:13 | 2021-06-25T18:03:13 | 380,318,849 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,135 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 8 16:46:31 2021
@author: ndthang
"""
import pandas as pd
import numpy as np
import sys
import os
import time
import random
from model import DVFSModel
from datagenerator import HPC_DVFS, labels,labelsZ, make_weights_for_balanced_classes
from sklear... | [
"thangdn.tlu@gmail.com"
] | thangdn.tlu@gmail.com |
040bb40356755d5212e78b84510e1694a8c54de4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03211/s451237439.py | f9efa41c7796ee9c183843e22d4cccb747349d8b | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | s =input()
m = 100000
for i in range(len(s)-2):
a=(s[i:i+3])
m=min(abs(753-int(a)),m)
print(m) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a44cdf5bac620404b03de57b61aafde1143c1c6c | c017800ec1ef8425ca74b6bcd9f33bbbb0c45181 | /client.py | 76ae12a2d0f874645ac58d608c5573e77fe88720 | [] | no_license | Ak47001/client-server | 2de4d21029d2149e5e7aa27f9df0c82e144ef0b0 | bc2705bed7c38588e3c4d2abe29b3ae226cdd404 | refs/heads/master | 2020-08-05T02:16:50.212121 | 2019-10-08T04:42:02 | 2019-10-08T04:42:02 | 212,359,856 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py |
import socket
import sys
#read file
filename = 'filename.txt'
# client program using python
s = socket.socket()
ip = ''
port = 8777
s.connect((ip,port))
print("Successfully connected to ",ip)
with open(filename,'r') as fd:
str = fd.read(1024)
s.sendall(bytes(filename,'utf-8'))
print("Last Modified time",s.recv(102... | [
"noreply@github.com"
] | Ak47001.noreply@github.com |
24de7c918a9da758aeae9ce57ebec7dee3270ce3 | dd4ea40348f994151e5d4279b483363526c54936 | /constants/search_page.py | 35c43a56c2e63eca3c835429c086381c9207ca89 | [] | no_license | myshkarus/qa-demo-shop | a0aed167f5febfc471100173bff03a3c1568a84a | 517f3e82f4632f8472564e155a0d121796101291 | refs/heads/master | 2023-08-02T21:24:52.248299 | 2021-09-14T18:52:28 | 2021-09-14T18:52:28 | 406,486,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | class SearchPageConstants:
"""Store constants related to the SearchPage object"""
pass
| [
"m.shpilenko@gmail.com"
] | m.shpilenko@gmail.com |
6a0f5439c7a515742c41b2b89a24418d3e311706 | 4b47c77e3bd7ac31f230bcc46f8a08c70fd66893 | /src/processing/test.py | b73d32aceb1db509bf4a9d1e650719bf56a990cd | [] | no_license | DaniilRoman/predictiveAnalyticsForTimeSeries | 1d48c7fde7c1c642e8304a9ee011ba49c81e1a8f | 362e7d0f743416f3685a1e4ffc4382df6505d6f4 | refs/heads/master | 2020-04-15T02:58:29.427886 | 2019-05-26T17:47:35 | 2019-05-26T17:47:35 | 164,330,957 | 0 | 0 | null | 2019-11-01T13:54:21 | 2019-01-06T17:46:17 | Jupyter Notebook | UTF-8 | Python | false | false | 2,743 | py | from multiprocessing import Pool, Process
import time
from src.processing.DataHolder import DataHolder
# def func(arg="check"):
# time.sleep(1)
# print(arg)
# if __name__ == '__main__':
# pass
# p = Process(target=func, args=("test",))
# p.start()
# p.join() # означает что мы присоединяем ... | [
"danroman17397@gmail.com"
] | danroman17397@gmail.com |
1eac67a4a0e78a788d99dc2ae97cc6d4071fe1e9 | 4986c32aa387a0231b4c9de9b32ddd5f62b41931 | /app/extend.py | 23cfce9697c46bb1db7366147c027f717059185b | [] | no_license | Mrdorom/Pluto | 08e8e03d0d0a3e265182b13bbe26acaffcf82e0d | cb0f6be168e4c182c06573b812fdc29c2dcf3076 | refs/heads/master | 2023-04-01T17:52:39.249643 | 2021-04-09T13:08:30 | 2021-04-09T13:08:30 | 349,041,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | """
-------------------------------------------------
File Name: extend
Description : 本文件主要使用一些扩展
Author : shili
date: 2021/3/11
-------------------------------------------------
Change Activity: 2021/3/11:
-------------------------------------------------
"""
__author__ = 'shili'
from flask_mongoeng... | [
"shili@yizhoucp.cn"
] | shili@yizhoucp.cn |
bec79e0333db1af0c3c99276cfa189282d7dd9c2 | 8e040542e4796b4f70352e0162b7a75b18034b6c | /blogapp/myblog/views.py | 9de86d4f964331945786fea38fc8d7247771b1b4 | [] | no_license | Atul18341/django-blog-app | 4e4e688a4e9559227db40b68824e7b69b6cffa80 | 149c1d9952da079d1764c11bd91f53e03930f299 | refs/heads/main | 2023-03-28T02:11:01.620590 | 2021-04-01T06:46:11 | 2021-04-01T06:46:11 | 347,375,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | from django.shortcuts import render,redirect
from .models import blog
from .forms import NewUserForm
from django.contrib.auth import login,authenticate
from django.contrib import messages
from django.contrib.auth.forms import AuthenticationForm
# Create your views here.
def blogs(request):
blogs=blog.objects.... | [
"atulkumar987613@gmail.com"
] | atulkumar987613@gmail.com |
9a83f9b0df96736170c0b233641592d12a80cb24 | 4fcf20223f971875c24c1be921ed86681063070a | /taco/migrations/0002_auto_20210227_1527.py | 6af811ad7aada9f01bea2363f3fe02024d6254d0 | [] | no_license | victorhausen/taco-api | 52ee266256d5e128f00b6ac2d045fe51ee1c7aa5 | 0596ba16cb454fef0cb4b56bea5b086b48e1ab98 | refs/heads/main | 2023-03-18T11:24:02.600897 | 2021-02-27T15:28:51 | 2021-02-27T15:28:51 | 342,873,953 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,546 | py | # Generated by Django 3.1.7 on 2021-02-27 15:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('taco', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Taco',
fields=[
('id', models... | [
"hausen.victor@gmail.com"
] | hausen.victor@gmail.com |
d15f3e485d2f5d87da7fe840c9e7b3791feac78f | 0b6dcd0135f50aa96f49e436e947927442450e19 | /scan.py | 1082eae9ce6e4f5639a481e4abab6441f7a2e2c3 | [] | no_license | Andarko/Micros | 922dc3dea6f9af22e00509e895c4c6ac985a743a | 62b342725ae6fd1f8795eade5d1dbcb1b6ae9337 | refs/heads/master | 2021-07-01T02:16:04.635700 | 2021-05-05T10:50:36 | 2021-05-05T10:50:36 | 230,379,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90,680 | py | # This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
import asyncio
# import shutil
import subprocess
import time
import os
import websockets
from PyQt5.QtGui import QImage, Q... | [
"Andarko@bk.ru"
] | Andarko@bk.ru |
bd889e11569d36e3109b85c5a0a51fcde69bafc1 | 14a853584c0c1c703ffd8176889395e51c25f428 | /sem1/csa/project-euler/1/1.py | 2781f342cd824654222ed7b2a8bc9e4e36f07637 | [] | no_license | harababurel/homework | d0128f76adddbb29ac3d805c235cdedc9af0de71 | 16919f3b144de2d170cd6683d54b54bb95c82df9 | refs/heads/master | 2020-05-21T12:25:29.248857 | 2018-06-03T12:04:45 | 2018-06-03T12:04:45 | 43,573,199 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | print(sum([x for x in range(1, 100000001) if x % 3 == 0 or x % 5 == 0]))
| [
"srg.pscs@gmail.com"
] | srg.pscs@gmail.com |
02fec4aed47becb9f92da777026cef2e2df0cec4 | 094639d004fd3c1342b53cd311e295fcc61c82ee | /inputBoxes.py | 66ed12032a546c5668edeeaefb9d2761f737cf4c | [] | no_license | IdanErgaz/Pytest | cd0d4420094c8f25cd9dc351d98a3ff7c667c0f7 | a501a2431a1a9973ea7ebaf85a23041a04a1c1e5 | refs/heads/main | 2023-02-05T05:55:02.858991 | 2020-12-31T11:53:54 | 2020-12-31T11:53:54 | 319,232,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver=webdriver.Chrome(executable_path="C:\Projects\Automation\Drivers\chromedriver.exe")
driver.get("https://fs2.formsite.com/meherpavan/form2/index.html?1537702596407")
status1=driver.find_element_by_id("RESULT_TextField-1").is_disp... | [
"noreply@github.com"
] | IdanErgaz.noreply@github.com |
1b2ba10d76817a94e1225ffb2400157c386d970e | b908c5116edc954342561663ee15f235562943a3 | /eih-raspberrypi-body-detect/draft/auth.py | 1364d2ef48081f9f616e881f286d8e1f32b8b113 | [
"CC0-1.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | OAbouHajar/projectEIH | 578465037f22aed6e13e5311629d7f52582cb501 | 2fcf072a03f8b0b86991abf26cfa9597db5560ff | refs/heads/master | 2023-04-13T18:08:19.788985 | 2021-04-26T10:47:16 | 2021-04-26T10:47:16 | 214,017,815 | 1 | 0 | MIT | 2020-07-02T09:17:45 | 2019-10-09T20:31:30 | Python | UTF-8 | Python | false | false | 202 | py | from firebase import firebase
firebase = firebase.FirebaseApplication('https://projecteih.firebaseio.com', authentication=None)
result = firebase.get('/users', None, {'print': 'pretty'})
print (result)
| [
"smsm.sy@hotmail.com"
] | smsm.sy@hotmail.com |
dcb914d3f2a8ae52a2f670667bd89a5fd0671f3c | e446918cc531f839706b63bf38269dd7b3c37432 | /scrapy_distributed/settings.py | 449546f2f8a2354986ec14124e31a1b88f073e28 | [] | no_license | leosudalv2010/scrapy-redis-distributed | 5a99547cc7f35a016f4242ddf92e4a11aaa5d59a | e790d5144088f325d0d52d85781081b8e0fa2bf2 | refs/heads/master | 2020-03-21T02:35:53.784444 | 2018-06-20T08:48:15 | 2018-06-20T08:57:25 | 138,006,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | # -*- coding: utf-8 -*-
# Scrapy settings for scrapy_distributed project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/l... | [
"leosudalv2010@163.com"
] | leosudalv2010@163.com |
207bee7e203e906fc119bb7df61d83adcdec1d35 | d49f28ea7867cf9ce9512c0521b136934e97b7d2 | /tests/backends/base/test_client.py | 4573bbe97bfb174d2998b800e8ce5e119a7d4da8 | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive",
"Python-2.0"
] | permissive | tamirverthim/django | cdbc198a055deeb526caff6b18ae874445f217c5 | 666b7048a0dc6b067c1e3f58653f3c7ca00371a2 | refs/heads/master | 2023-04-14T00:51:11.507226 | 2020-12-07T12:19:20 | 2020-12-07T12:19:20 | 319,310,225 | 0 | 0 | BSD-3-Clause | 2023-04-03T23:53:00 | 2020-12-07T12:17:41 | Python | UTF-8 | Python | false | false | 605 | py | from django.db import connection
from django.db.backends.base.client import BaseDatabaseClient
from django.test import SimpleTestCase
class SimpleDatabaseClientTests(SimpleTestCase):
def setUp(self):
self.client = BaseDatabaseClient(connection=connection)
def test_settings_to_cmd_args_env(self):
... | [
"felisiak.mariusz@gmail.com"
] | felisiak.mariusz@gmail.com |
a2fc15d839aa393c58038566f984b77acf7cd3c5 | ef5706049bc847cab93cd43a8ff42a5b987b2fbf | /poem.py | f3648d6a5ff2a5cfc50a85c593de49dddf2725c2 | [] | no_license | justakaigood/banana | 77ea89fc78b8557b444127312fbf95ce9671033f | a6994656fb5574f81ebbe977a1531ee96197f89f | refs/heads/master | 2020-08-04T18:44:25.023640 | 2020-06-08T18:12:19 | 2020-06-08T18:12:19 | 212,241,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | # coding: utf-8
from numpy.random import randint
for i in range(10):
print(randint(1,10))
words=""
dfj
aasf
afdefa
afefa
afdf
sgs
sgrfg
hjh
hbk
njbjb
| [
"108701036@nccu.edu.tw"
] | 108701036@nccu.edu.tw |
570d5e5d5fbd8600a45c78d01b6b02a8b09ce153 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/set_database_user_privilege_request.py | 150b872cab2546ae4611dfa32d9ac8d91350c989 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,906 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class SetDatabaseUserPrivilegeRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
7c77aa89634056fa43a39b2384cd8d53186bca2f | f264800326fe36503ea115861b4ebe4ebf4f22ef | /499proj/matrixMain.py | 21da14235b4a75873ffdcc24a3d3c029773ec13f | [] | no_license | Jett-Ma/499-Final-Project | c3b6d7908c98ba48e845b2b4457cb3c59058ff52 | 378fc24e04f127060c7fd04ecd4e98411493ff47 | refs/heads/main | 2023-03-19T12:48:10.314639 | 2021-03-24T01:17:47 | 2021-03-24T01:17:47 | 350,908,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,311 | py | # coding:utf-8
import sys
import numpy
import pandas as pd
from sqlalchemy import create_engine
import pymysql
import re
import nltk
from nltk.corpus import stopwords
from nltk.stem import WordNetLemmatizer
from nltk.tokenize import word_tokenize
from nltk.tokenize import MWETokenizer
from nltk.stem.porter import Port... | [
"68134569+Jett-Ma@users.noreply.github.com"
] | 68134569+Jett-Ma@users.noreply.github.com |
f0365d989dd7c876fa5c7fca77f76477b90906d6 | 44baa6621306c6b9810db48b3c1479cb8db294b3 | /test/test_summaries.py | 890a49aaf4ebb8b1bd8020b972c18679946c46be | [
"Apache-2.0"
] | permissive | codeninja/tensorforce | ecc216e2970194d086209fb726fc64b4b9cd8e93 | 212b115d10a21b8241e1d9df56c4851ffd370f34 | refs/heads/master | 2020-08-13T08:16:11.046478 | 2019-10-18T17:36:03 | 2019-10-18T17:36:03 | 214,937,969 | 2 | 0 | Apache-2.0 | 2019-10-18T17:36:04 | 2019-10-14T03:15:34 | Python | UTF-8 | Python | false | false | 2,058 | py | # Copyright 2018 Tensorforce Team. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"alexkuhnle@t-online.de"
] | alexkuhnle@t-online.de |
fc420d11845612290556385f4ef93a72a5b9d5d1 | 454365e5c77ff9e3c2fba0d60766e2ee0dac1ac6 | /noticias_ner/api/teste_clliente.py | 95d706990bf32127292eb16f18502afc54f7b6b2 | [] | no_license | SecexSaudeTCU/noticias_ner | 6aa48f9b076cb20a784244cef58ac270a53471c5 | 2d64041bc18c8c53d463d34e41553b5c2ad4f48e | refs/heads/master | 2023-05-04T00:30:53.364722 | 2021-05-25T19:28:31 | 2021-05-25T19:28:31 | 296,355,526 | 14 | 4 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | import requests
headers = {
'accept': 'application/json',
'Content-Type': 'text/plain',
}
params = (
('tipos', 'ORGANIZAÇÃO,INSTITUIÇÃO PÚBLICA,LOCAL,PESSOA'),
('buscar-cnpj', 'N'),
)
texto = 'O Tribunal de Contas da União é um órgão público sediado em Brasília, com atribuição de julgamento de contas d... | [
"moniquelouise@gmail.com"
] | moniquelouise@gmail.com |
760d04f4f37ec49446c5810324797d3ef73de59c | c947a71a16ed180c920d4b362347f980d93bd2fe | /src/Classes/MSDS400/Module 3/workout.py | c7f40dafdf59f5c1f52238d5010dc1fa5ddcbc10 | [
"MIT"
] | permissive | bmoretz/Python-Playground | b69cac015e95d97f46ebd678c4493a44befb556f | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | refs/heads/master | 2021-05-13T23:35:31.986884 | 2019-11-23T19:07:58 | 2019-11-23T19:07:58 | 116,520,816 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | # As part of a weight reduction program, a man designs a monthly exercise program consisting of bicycling, jogging, and swimming.
# He would like to
# exercise at most 28 hours,
# devote at most 6 hours to swimming,
# and jog for no more than the total number of hours bicycling and swimming.
# The calories bur... | [
"bmoretz@ionicsolutions.net"
] | bmoretz@ionicsolutions.net |
26a21150eb40414f26615bc32ee8f6ff76b8e9bc | 102f8a77f7e16d5df7775f97e741adf3fa43f8c3 | /practice-painting/painting.py | 20add441638a39bfc6b33f077ddf5dc29c69d390 | [] | no_license | Horgix/google-hashcode-2016 | f516d489d7b9a9af570e1ebfc6a7f7dea9ec7eb5 | 6b256ce9e9f23276fa1c03ae6979f77befb7e6e5 | refs/heads/master | 2021-01-20T11:23:24.646360 | 2016-02-19T11:07:30 | 2016-02-19T11:07:30 | 51,439,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | #! /usr/bin/env python3
from enum import Enum
class Cell(Enum):
painted = '#'
clear = '.'
class Surface:
def __init__(self):
self.rows = 0
self.columns = 0
self.matrix = {}
def import_from_file(self, filename):
with open('simple.in', 'r') as f:
self.rows, s... | [
"alexis.horgix.chotard@gmail.com"
] | alexis.horgix.chotard@gmail.com |
b01a5b2a81825618861d0c4319567fa150a4eb6b | c7b958c683f916b924e3f4e74e41561e037ef34c | /sneeu/apps/tumble/urls.py | 51565e3a303ad7295f4fdc58dab634b8b11bf0bf | [] | no_license | sneeu/sneeu_com | c32f6d044a598830d53e6334611f2b5a2c8b4c2f | 653388c50f00966369fd5a1a43bd4ff910300633 | refs/heads/master | 2021-01-25T04:08:53.556659 | 2009-04-26T19:45:06 | 2009-04-26T19:45:06 | 56,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | from django.conf.urls.defaults import *
from models import Log
import views
info_dict = {
'queryset': Log.objects.all().select_related(),
'paginate_by': 20,
}
urlpatterns = patterns('',
url(r'^$',
'django.views.generic.list_detail.object_list', info_dict, name='log_list'),
url(r'^tumble/upd... | [
"john@sneeu.com"
] | john@sneeu.com |
172d2609dd65bb545dff186364df94b7fd883faf | 4dca9fd1f26e7cb58cf6133c13acf585ca9fda66 | /LanaBackend/asgi.py | 4d8a67ca46cd9120225667ed6fa2e1de891dd7fe | [] | no_license | Codes-Cleans-Transports/LanaBackend | a2215036bbefded7509b6655a855b63d82f21c4e | cdb0c6be53ca726ea483b64d02fe65002ec1e7df | refs/heads/main | 2023-03-22T18:59:46.567104 | 2021-02-28T13:17:56 | 2021-02-28T13:17:56 | 342,724,184 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for LanaBackend 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"rrhubenov@gmail.com"
] | rrhubenov@gmail.com |
d7c32cef7fa6a9d3bb7a7a05a8ea899c77750ba8 | 90207cc0222440c069b261795bba1e902834f545 | /MAGIC-UNICORNS/project/main/apps/course/models.py | bf35453ec0a8d046ddcb4ece77d2ef64c1138387 | [] | no_license | Stormlight-Coding/random-projects | 13d1cc3d32cb86399296b923ab450034891979c0 | 605e196337dfa9bd5480b428a5a92ce193081871 | refs/heads/MASTER | 2021-06-14T09:44:03.150283 | 2020-04-09T22:25:35 | 2020-04-09T22:25:35 | 254,489,696 | 0 | 0 | null | 2021-06-10T22:45:08 | 2020-04-09T22:17:02 | Python | UTF-8 | Python | false | false | 300 | py | from __future__ import unicode_literals
from django.db import models
class Course(models.Model):
name = models.CharField(max_length=255)
desc = models.CharField(max_length=255)
created_at = models.DateTimeField(auto_now_add = True)
updated_at = models.DateTimeField(auto_now = True)
| [
"jonposo.music@gmail.com"
] | jonposo.music@gmail.com |
8cfd3c66b9a03394e87c6cbbac0e72ae02d96b6b | 77ae7c76d36009daa01b2317439c1f975f7932b2 | /exercicios/ex115/arquivo.py | dbcbd133583ca6ae2edba87857cfb65ef4e83003 | [] | no_license | MatheusOldAccount/Exerc-cios-de-Python-do-Curso-em-Video | 5f26b5a2867fa1a2e36b486a809dfbe8b107b8c2 | 5696c49d3caf5cae817217a2da0598d1cf794f5b | refs/heads/master | 2022-03-22T10:49:33.666660 | 2019-11-25T21:24:43 | 2019-11-25T21:24:43 | 224,052,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | def verPessoas():
print('-' * 30)
arq = open('lista.txt', 'r')
print(arq.read())
arq.close()
def adicionarPessoas():
print('-' * 30)
arq = open('lista.txt', 'a')
nome = str(input('Nome: ')).strip().capitalize()
válido = False
while True:
try:
idade = int(input('... | [
"matheustavares1165@gmail.com"
] | matheustavares1165@gmail.com |
3985abdfdeb1870b995aaeaa8ca347149181b77c | 0cf39bf6a4a5aee36c8229a2f527a77ea3cd3a3d | /notebooks/analysis.py | ef59efd2cb500d1ea589f25a85b4ceb931407462 | [
"MIT"
] | permissive | vipinsharma0586/Bank-deposit-predictive-model | 78812a8b37ceeeec2dc8b4ca0b976ecf60363a54 | 1916267e71b58ca2d5082ca36da6dc3765c09931 | refs/heads/master | 2022-12-10T23:18:56.248394 | 2020-08-29T09:53:13 | 2020-08-29T09:53:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,537 | py | # -*- coding: utf-8 -*-
"""Analysis.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1F77mSkc3dvmjKeeoW7o6CfEHZvJhH9uq
"""
# Commented out IPython magic to ensure Python compatibility.
import pandas as pd
import numpy as np
import seaborn as sns
i... | [
"lotomej12@gmail.com"
] | lotomej12@gmail.com |
4fa582c5ada4c2d880f47491a4e012018bc74dbb | 8c38028da7a6c9443c3b9163a1db64773e39e755 | /users.py | 2680f52e307d0118cb8595d737a3149390923672 | [] | no_license | Vanhatai/PWS-B4.12 | bf8e8f230c7f547256e7f8be4628dd3342769ae3 | a1061d7989e7c18bd9d6b84238a99a506cb91345 | refs/heads/master | 2020-07-06T18:54:06.837311 | 2019-08-19T06:16:24 | 2019-08-19T06:16:24 | 203,109,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,987 | py | import sqlalchemy as sa
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
# константа, указываюзая на способ соединения с базой
DB_PATH = "sqlite:///sochi_athletes.sqlite3"
# базовый класс моделей таблиц
Base = declarative_base()
class User(Base):
"""
О... | [
"noreply@github.com"
] | Vanhatai.noreply@github.com |
fb5e14362c54bc9ed160c239f7c153c7f418275d | 8d5fac378cb1f7c826996e442375c7ee8cb842d5 | /ExpressSuiteTools/ExpressSuiteCore.py | 260f425a82a9434266342c857f1a9fc2b60b8c4d | [] | no_license | ichar/Express-Suite-DMS | 6f4cf7064b774894995b2224a3ca1a13ac4aa64a | bdf3ad7c1ec4bcdec08000bf4ac5315ca6a0ad19 | refs/heads/master | 2021-01-11T10:59:15.101637 | 2018-02-16T02:09:12 | 2018-02-16T02:09:12 | 72,807,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,181 | py | """
ExpressSuiteCore and PortalGenerator classes
$Id: ExpressSuiteCore.py, v 1.0 2007/08/30 12:00:00 Exp $
*** Checked 09/06/2009 ***
"""
__version__ = '$Revision: 1.0 $'[11:-2]
import Zope2
import sys, os
from copy import copy
from locale import setlocale, getlocale, LC_ALL
from string import join
from urllib impo... | [
"ichar@g2.ru"
] | ichar@g2.ru |
b2329edad1a265e6327257d7b599655e15dc6cfd | 3015b07ab56da859507abc3881385f4995980600 | /fisher/spider/fisher_book.py | ca3eb35af32edf97a292eac9bc822d59581a2186 | [] | no_license | xuewen1696/fisher-book-practice | f65c559651f5a51d08cfdcb96a4fc8f96f481238 | 93ce16de333381196aaa2de4811559d5c27d7e0c | refs/heads/master | 2022-12-10T06:31:25.912229 | 2018-07-28T07:26:32 | 2018-07-28T07:26:32 | 142,654,555 | 0 | 1 | null | 2022-12-08T02:22:41 | 2018-07-28T06:53:34 | CSS | UTF-8 | Python | false | false | 1,277 | py | from fisher.libs.http_fisher import HTTP
from flask import current_app
class FisherBook:
pre_page = 15
isbn_url = 'http://t.yushu.im/v2/book/isbn/{}'
keyword_url = 'http://t.yushu.im/v2/book/search?q={}&start={}&count={}'
def __init__(self):
self.total = 0
self.books = []
def sea... | [
"xuewen1696@163.com"
] | xuewen1696@163.com |
bebb7ac47a7598ad344f55ae7d57daba858e56ea | c07380914a44df334194f234c33858f357365c19 | /ENV/lib/python2.7/site-packages/theano/sandbox/gpuarray/neighbours.py | 1f0c7529213f8f6c6d23f989bd3a641915b97fa9 | [] | no_license | damianpolan/Music-Genre-Classification | 318952ae7de5d0b0bdf5676e28071c7b38d0e1c5 | acd723ae1432ce798866ebb97ef3c484db37e971 | refs/heads/master | 2022-12-24T09:23:55.514337 | 2016-03-22T14:49:28 | 2016-03-22T14:49:28 | 42,965,899 | 4 | 4 | null | 2022-12-12T20:26:24 | 2015-09-22T23:05:37 | Python | UTF-8 | Python | false | false | 18,919 | py | import numpy
from theano import Op, Apply, config
from theano.gof import local_optimizer
from theano.tensor.nnet.neighbours import Images2Neibs
import theano.tensor as T
try:
import pygpu
from pygpu import gpuarray, elemwise
except ImportError:
pass
from theano.sandbox.gpuarray.basic_ops import (as_gpuar... | [
"damian.polan@gmail.com"
] | damian.polan@gmail.com |
b0dcde257cf60b3ff95c8d677121bbedec3ea846 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/cytoolz-0.7.5-py27_0/lib/python2.7/site-packages/cytoolz/tests/test_none_safe.py | 62f6280f931530d908a7249f648b54df00f1d677 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 11,403 | py | """ Test that functions are reasonably behaved with None as input.
Typed Cython objects (like dict) may also be None. Using functions from
Python's C API that expect a specific type but receive None instead can cause
problems such as throwing an uncatchable SystemError (and some systems may
segfault instead). We obv... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
4201aaf82a13c985bc5ed36fc69b99f462bf3731 | 7edbf1eb8a991e91192ab8ecf28d801080b2e230 | /english/models.py | 9072c4bef8292fd3cc1343d173be5d2012aa759f | [
"MIT"
] | permissive | johncadigan/myenglishcloud | 5b63d0d079ded93fbb539127a011ee17c3cb17d9 | c698243866ce3edf864ad0e0c9a126aee57a54c0 | refs/heads/master | 2021-01-10T09:55:30.506142 | 2015-12-21T00:06:22 | 2015-12-21T00:06:22 | 48,341,436 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,603 | py | # -*- coding: utf-8 -*-
import hashlib
import random
import string
import transaction
import json
import os
import datetime
import Image
import errno
from datetime import date
import re
from random import shuffle, randint
from cryptacular.bcrypt import BCRYPTPasswordManager
from slugify import slugify
import glob
fro... | [
"johnpaulcadigan@gmail.com"
] | johnpaulcadigan@gmail.com |
b0e487b584903313154d9dd72e6c085f2b3b95d9 | 4664328482163fd927603d66f47209b28471cf0f | /venv/lib/python3.7/site-packages/datalad/metadata/extractors/tests/test_datacite_xml.py | 30ed2525d0915a74e0f941dc65be94d72cbe0d4c | [
"MIT"
] | permissive | emmetaobrien/dats-validator | 08706ddab795d272391b3611cd3ba0de8c4a91a1 | fb25f97a32119c2bce4eb50dc080a93d5ee77141 | refs/heads/master | 2020-12-19T05:03:17.179117 | 2020-01-22T17:28:38 | 2020-01-22T17:28:38 | 235,626,049 | 0 | 0 | MIT | 2020-01-22T17:24:56 | 2020-01-22T17:24:56 | null | UTF-8 | Python | false | false | 2,982 | py | # emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license terms.
#
# ## #... | [
"giulia.ippoliti@mail.mcgill.ca"
] | giulia.ippoliti@mail.mcgill.ca |
075d28bc2668d9a7c0e17558b267dfb9c839c594 | 2fe37b71c486d4e2de6fb263d89993c9b99f0d37 | /02Backstage/Python/00Test/Utils/AutoUtils/Scp.py | dfb2a211b4ea76d7726b73a04bd840003be28233 | [] | no_license | smart-town/MyNotes | 87cb058753163ab7df41f73389af4e31f8288a52 | 87a0e689c1dcf9a79ef1059e6332c1a89a309ecc | refs/heads/master | 2022-07-19T19:48:15.055165 | 2022-07-17T00:15:09 | 2022-07-17T00:15:09 | 160,528,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | """ copy source files to destination """
import os
import OsOrders
class CopyBasic(object):
def __init__(self, source, destination):
self.source = source
self.destination = destination
def dealRemote(data):
if type(data) == dict:
return "{}@{}".format(data["user"], data["ho... | [
"luhh18@outlook.com"
] | luhh18@outlook.com |
d91d8ef9fcacbf89506605d4bc882aabff544142 | edc3a9f7bbaf119f44c4a7ff73fbcf26a2e05881 | /table/views.py | fe050c5eee7315d825597befc4bb61d6ae5947ec | [] | no_license | w39z/VM-Store | eb37a05a5bd2cf081980d5eba3d3d4cfbe4042c7 | 0c62f8999e9f83e0e96c5f8057a5337327709561 | refs/heads/master | 2023-09-04T21:37:13.976938 | 2021-10-22T16:35:06 | 2021-10-22T16:35:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | from django.shortcuts import render
from table.filters import *
def index(request):
items = Item.objects.all()
filter = ItemFilter(request.GET, queryset=items)
items = filter.qs
return render(request, 'index.html',
{'items': items,
'filter': filter})
| [
"w39z@mail.ru"
] | w39z@mail.ru |
42d1cac53d347072386f233fdab7116d0e8200e9 | 939ca9c100b2b8d7d4c2825a9ef16dd4d7267455 | /pageimages/templatetags/pageimage_tags.py | 68f9c371b5917631968437e3f38c07a41abc7264 | [
"Apache-2.0"
] | permissive | ethoos/mezzanine-pageimages | 523671cbe5fc9d0a04d697ad86ecaa1d859167f0 | b529b4acc204aa26734e3c9f9ffb5c68fae58cf1 | refs/heads/master | 2021-01-12T04:46:47.578968 | 2017-01-02T10:48:46 | 2017-01-02T10:48:46 | 77,791,604 | 0 | 1 | null | 2017-01-02T10:48:47 | 2017-01-01T18:40:34 | Python | UTF-8 | Python | false | false | 1,558 | py | #
# Copyright 2013, 2014
# by Arnold Krille for bcs kommunikationsloesungen
# <a.krille@b-c-s.de>
#
# 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:... | [
"a.krille@b-c-s.de"
] | a.krille@b-c-s.de |
3009068a1939ffcb3f8fec5364f73b3488b41100 | 55c1bcc5958b825a8a4208eca766729bba4b9722 | /samples/secrets-manager/secretLambda.py | d6be92d6e870e45510c1afb4a7ff4103c7c68cb7 | [
"MIT"
] | permissive | Derek-Ashmore/AWSDevOpsUtilities | 93683a49dc7c7481508c1246e975647c8f66346b | fd4cc98449a19b747335ca0dd874b4631439ee13 | refs/heads/master | 2020-03-10T21:42:16.648772 | 2019-01-19T20:10:18 | 2019-01-19T20:10:18 | 129,600,347 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | """
secretLambda.py
This lambda is a simple example of decrypting secrets using KMS to reduce exposure
for needed items like database passwords.
Environment Settings:
-- Secret_Name Secret name to use
Source Control: https://github.com/Derek-Ashmore/AWSDevOpsUtilities
"""
import sys
import json
import ... | [
"dashmore@force66.com"
] | dashmore@force66.com |
be26a348d616f0dddc10ae8c7ad0db166b68900d | 3b1bb402b4d11dfd6e3a6430b1275e6ee814ecf8 | /client/clustering/ClusterProceduralWeaponSingle.py | 9bf44ac25365898028388d16b3decba73731393a | [] | no_license | DanieleGravina/ProceduralWeapon | 546c6e966381717b2a7c2c2bd4fcdd14d05abb76 | d8b3289086f857f31349bac7edb12de313de4319 | refs/heads/master | 2021-01-10T20:54:38.864377 | 2015-04-03T15:33:12 | 2015-04-03T15:33:12 | 26,865,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,229 | py | import os,sys,inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0,parentdir)
from sklearn.manifold import MDS
from sklearn.cluster import DBSCAN
import numpy as np
from sklearn import metrics
import statistics
import ... | [
"daniele.gravina@mail.polimi.it"
] | daniele.gravina@mail.polimi.it |
7c3dcf56c5f50a0d2b92114c2556ecdb85840978 | a67676617c4777a3a9c6226624c0fd86557cb277 | /27_remove_element.py | 35a4a832b623ba749c14e457b64cf12e360abee5 | [] | no_license | AdditionalPylons/leetcode | 2599d3c67825d4a50eccc5ea2b56ae2e33e9fbf2 | b1873d8bb023d1e7182276692cb8c953a8bab8f6 | refs/heads/master | 2022-12-04T15:09:48.461400 | 2020-08-18T19:44:25 | 2020-08-18T19:44:25 | 288,321,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | """Given an array nums and a value val, remove all instances of that value in-place and return the new length.
Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
The order of elements can be changed. It doesn't matter what you leave beyond the... | [
"bill@popstack.io"
] | bill@popstack.io |
72d836455d93771000edfb04b38af3e3e1f679e1 | adbf3c67b8ebe1e74d70a7fd20328d26a2be7400 | /myparser.py | 9786e530cca43bc5309295f7bf70841375293e71 | [] | no_license | mejitos/stack-overflow-overflow | 3adc4eacfd92d406560243234a87687ea40bcdb1 | 1681864f51f4949fe2f63cbc682d43e63f013e94 | refs/heads/master | 2022-12-10T16:22:59.682860 | 2019-12-08T15:54:35 | 2019-12-08T15:54:35 | 226,351,427 | 0 | 0 | null | 2022-07-06T20:23:37 | 2019-12-06T14:53:51 | Python | UTF-8 | Python | false | false | 3,659 | py | from bs4 import BeautifulSoup
from config import Config
from result import Result
class Parser:
"""Class used for parsing wanted information from HTML"""
def parse_urls(self, resource):
"""Parses clean urls out of HTML resource
Args:
resource: HTML resource ... | [
"timomehto@gmail.com"
] | timomehto@gmail.com |
f5dc838839a6a1297a8ed33656fed6d294e04a4c | b2755ce7a643ae5c55c4b0c8689d09ad51819e6b | /anuvaad-etl/anuvaad-extractor/aligner/etl-aligner/service/alignwflowservice.py | 4621a73752a35a772c9831afdbb8a067d95dc515 | [
"MIT"
] | permissive | project-anuvaad/anuvaad | 96df31170b27467d296cee43440b6dade7b1247c | 2bfcf6b9779bf1abd41e1bc42c27007127ddbefb | refs/heads/master | 2023-08-17T01:18:25.587918 | 2023-08-14T09:53:16 | 2023-08-14T09:53:16 | 265,545,286 | 41 | 39 | MIT | 2023-09-14T05:58:27 | 2020-05-20T11:34:37 | Jupyter Notebook | UTF-8 | Python | false | false | 1,380 | py | #!/bin/python
import logging
from configs.alignerconfig import anu_dp_wf_aligner_out_topic
from utilities.alignmentutils import AlignmentUtils
from repository.alignmentrepository import AlignmentRepository
from validator.alignmentvalidator import AlignmentValidator
from kafkawrapper.alignmentproducer import Producer
... | [
"vishalmahuli8@gmail.com"
] | vishalmahuli8@gmail.com |
a1900950b36a1a0eeada9e202f153c8985039b65 | e342abb1306e4b083f235a2992ffb863c96c9a86 | /examples/user/user_playlists.py | f71f755bceeeb2c38e3122cc3e6f50cb403624cb | [
"MIT"
] | permissive | LorenzoCavatorta/spotify.py | 102422e6588cb6c49cff026562e37f28cb0650eb | 7f375f030fbac4ef3dbbd577a898b4d72f37b72b | refs/heads/master | 2020-08-01T17:09:06.795264 | 2019-09-30T12:24:57 | 2019-09-30T12:24:57 | 211,055,943 | 0 | 0 | MIT | 2019-09-26T09:50:46 | 2019-09-26T09:50:46 | null | UTF-8 | Python | false | false | 453 | py | import asyncio
import spotify
client = spotify.Client('someid', 'somesecret')
async def main():
# You can use a user with a http presence
user = await client.user_from_token('sometoken')
# Or you can get a generic user
user = await client.get_user(user_id)
# returns a list of spotify.Playlist ob... | [
"m3nta1@yahoo.com"
] | m3nta1@yahoo.com |
32fb9188aec819ccd91d7b952306ceb971f26b87 | 2d308f49fd8326173f2a1cf6ba1ab25b0abff302 | /rxbpn/testing/tobserver.py | 1f00d63ddba26fd7f0f8138d5487905f7b6dfcc4 | [
"BSD-3-Clause"
] | permissive | JIAWea/rxbpn | 6c407dd38524a2e6b2f800cf9b88ebd0287398c6 | 8760d086c802291398c25d7bd8e4e541962b191a | refs/heads/main | 2023-03-16T18:49:05.563516 | 2021-01-29T09:58:20 | 2021-01-29T09:58:20 | 333,379,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | from rxbp.acknowledgement.acksubject import AckSubject
from rxbp.acknowledgement.continueack import continue_ack
from rxbp.observer import Observer as AckObserver
class TASubscribe(AckObserver):
def on_next(self, value):
# if value[0] == 11:
# return AckSubject()
print("Received: {}, ... | [
"1552937000@qq.com"
] | 1552937000@qq.com |
7e61c3ab69667c4955fafc38691acf34ab01cb3a | 1f3e98e3bb36765f869ca3177a47c53ce302ec70 | /test/output/001.py | 909bc70c708589058665a3782d4e0a85027d506b | [
"MIT"
] | permissive | EliRibble/pyfmt | d73dec1061e93a28ad738139edf523e1678d0e19 | e84a5531a7c06703eddd9dbc2072b0c8deae8c57 | refs/heads/master | 2020-04-01T10:57:18.521463 | 2019-05-24T21:39:18 | 2019-05-24T21:39:18 | 153,139,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | def main():
print("hello world")
| [
"eli@authentise.com"
] | eli@authentise.com |
97632d9e7d7bf489360aea53ea24698165011038 | 8a1d0238e997e7c953a21fc397f76a6c145b5e09 | /configs/gb_SMALL_STIMS_LARGE_MATRIX.bcicfg.py | 401a3c23afe5d9edc2c565238ca773aaf19936c9 | [] | no_license | luciopercable/eye_loc | 8c39cb562bcbb46b6d9d01ac224ad77e91193559 | a30f9690246b1f9f69ccbdb9c53519e9d4677e94 | refs/heads/master | 2020-04-19T11:58:37.406875 | 2018-12-08T17:41:55 | 2018-12-08T17:41:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | # -*- coding: utf-8 -*-
import numpy as np
import itertools
r,c = 6,6
step_vert = 110
step_horiz = 110
names = [a for a in u'abcdefghijklmonpqrstuvwxyz_1234567890!@#$%^&*()+=-~[]{};:\"\|?.,/<>½¾¿±®©§£¥¢÷µ¬']
aim_word = 'neuroscience_158'
rows = [list(a) for a in np.arange(r*c).reshape((c,r)).T]
columns = [list(a) ... | [
"kriattiffer@gmail.com"
] | kriattiffer@gmail.com |
f96ecaafff5a7d64947e990639f494c299a6634b | 2c96ab7bef672279c55a9cc6cd64707e0d0362dd | /PopulationSnowVsSunGraph/pythondraft.py | 1e7bc3a484c9667b0bb401afd8b487fde00f656c | [] | no_license | kahmed1996/Project-2 | ac9185a6ba10a1c3966d75cd1d7f5202a4fe66b4 | 8f4265aa21b892f2fedcc2398fb637759afc6771 | refs/heads/master | 2022-09-25T15:44:57.988401 | 2019-09-23T11:35:28 | 2019-09-23T11:35:28 | 205,035,363 | 0 | 0 | null | 2022-08-23T17:52:30 | 2019-08-28T22:39:16 | Jupyter Notebook | UTF-8 | Python | false | false | 1,335 | py | from matplotlib import style
style.use('fivethirtyeight')
import matplotlib.pyplot as plt
import datetime as dt
import pandas as pd
# Python SQL toolkit and Object Relational Mapper
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine,... | [
"NBLaptop@Nicks-MacBook-Air.local"
] | NBLaptop@Nicks-MacBook-Air.local |
351b4eddb3f58e872e3497a9bea27b19aa4d720f | 4d89652acca24e0bc653e0b4cb5846ceb5b568e4 | /google-cloud-sdk/lib/surface/run/domain_mappings/list.py | ab9c9af7d8e8d0e25820072bf29df8501224e959 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | ibssasimon/LyricLingo | 410fcec94d2bd3ea75c975c55713f5b8fb913229 | 0dfc951b270912470b36ce0083afd9d4fe41b10a | refs/heads/master | 2021-06-25T10:00:18.215900 | 2020-01-09T00:35:46 | 2020-01-09T00:35:46 | 222,135,399 | 2 | 1 | null | 2021-04-30T20:54:14 | 2019-11-16T17:32:19 | Python | UTF-8 | Python | false | false | 3,061 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. 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 requir... | [
"ibssasimon@gmail.com"
] | ibssasimon@gmail.com |
48cbc1da28c514c7264777210b3ecea16d3f98c4 | 21ac48139cefea2bf9f4c49509d6c31b12061373 | /ELK/python_ex1.py | ca49a1e122b8e45a8c61ff6de6fa24bb8159e356 | [] | no_license | dkyos/dev-samples | 23e60a035c278a2d63c82d84182bfb642a97c5c2 | 61a6cb1d084c85df7c2127da47b6a2bca0cfb6e5 | refs/heads/master | 2020-05-21T23:42:36.002672 | 2019-12-04T14:11:36 | 2019-12-04T14:11:36 | 14,510,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | #!/usr/bin/env python
from datetime import datetime
from elasticsearch import Elasticsearch
es = Elasticsearch()
res = es.search(index="deraw", body={"query": {"match_all": {}}})
print("Got %d Hits:" % res['hits']['total'])
| [
"dk77.yun@samsung.com"
] | dk77.yun@samsung.com |
59fbf899cb91638c4c208f659ae96a918d587461 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/nltk/cluster/__init__.py | 38a9111e2204c7174d3bfbd82559e79570513835 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:59aceae689404a10cc3a170d5442209edea3f051e4f50c800fa557e86d234639
size 4271
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
d4434ec75f5e7002b51785f4507c97ae1014eb85 | 690ace6a6fe00db3dd0c799d9d7078d18f641daf | /graph1.py | 3e45f25fb01d024c06bad00934ddfb10502e0025 | [] | no_license | tom523/server-sample | 6abdcaa27e98954ac83c7835cf7fe55cd8475cff | f77228ac6da5ed45d562b3cc113af0e1cecb90c2 | refs/heads/master | 2022-08-02T05:28:45.228869 | 2020-05-22T08:14:32 | 2020-05-22T08:14:32 | 266,049,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | from collections import defaultdict
class Graph:
def __init__(self, vertices):
self.graph = defaultdict(list)
self.V = vertices
def addEdge(self, u, v):
self.graph[u].append(v)
def topologicalSort(self):
indegree_dict = defaultdict(int)
for _, adjancency_list in... | [
"358777330@qq.com"
] | 358777330@qq.com |
5bfc5f2cabecf0d946bad1504ba6985fda33a417 | 1b1144757634a9cab972ed5696199910ba762912 | /mysite/app/user/migrations/0005_auto_20210302_1918.py | dd505597b2f7558b46067bafbb80a58d77b59243 | [] | no_license | bair2503/Python | 67a44905c499c4cec1d29c090112fecd0e82e1c4 | 1ae168cbf269b781b8fd7d4b2fbcfa828362f3d4 | refs/heads/main | 2023-06-24T13:41:59.636586 | 2021-07-28T19:26:09 | 2021-07-28T19:26:09 | 390,099,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.1 on 2021-03-02 19:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0004_auto_20210302_1911'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='address',
... | [
"bairgatapov93@mail.ru"
] | bairgatapov93@mail.ru |
b442efd2544e3d179838e135dad1cad579f97c26 | ef9a176d58d6b6b5c3c135580bd2283dafe2047e | /product_catalogs/odbc_wrappers/MongoConnector.py | f178d61c62cc66d3079b6295c5591d7b49b48928 | [] | no_license | stevesette/DS_4300 | fe60f15e33be023697266afceb11949116ceaa55 | 9971036a4f67782f76eac736ea8cd7122c1e0100 | refs/heads/master | 2020-12-05T19:03:06.571948 | 2020-04-11T17:03:23 | 2020-04-11T17:03:23 | 232,217,392 | 0 | 0 | null | 2020-03-21T03:07:57 | 2020-01-07T01:28:28 | Python | UTF-8 | Python | false | false | 779 | py | import pymongo
class MongoConnector:
"""
We define the database as 'hw3' manually in this assignment to make the assignment simpler, we could have taken
that in as a variable when we defined the connection but with no other odbc connector to compare to in this assignment
it seemed a bit pointless.
... | [
"setteducati.s@husky.neu.edu"
] | setteducati.s@husky.neu.edu |
1b5142f366dc75a64591a6b27ee82c0362541e40 | 23052f3c9dcfecb3cf50e5593960d47d257a5579 | /praw_blog.py | 1aa3eaad6f3a15e13d8581447d4fc99a0e2ccc28 | [] | no_license | sergewh20/PRAW-blog | 77b4dcc121bbd0a4ce9e1f1fc956644874dd81e5 | 2567a3125a9317cdb20691cf78f4cf29b8eb67ca | refs/heads/master | 2022-11-14T03:25:21.099797 | 2020-07-02T12:40:48 | 2020-07-02T12:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | import praw
import pandas as pd
reddit = praw.Reddit(client_id = 'CLIENT_ID',
client_secret = 'CLIENT_SECRET',
usernme = 'USERNAME',
password = 'PASSWORD',
user_agent = 'PRAW Blog')
subreddit_list= ['india','worldnews','announ... | [
"noreply@github.com"
] | sergewh20.noreply@github.com |
4b766dd20dadec39d3f2a2f88debe30a8f290e2a | 4551ef7051f937af33908fdd0768bc7174caba97 | /dwh/pipeline.py | 5cca159ca5561ae71560c280bf61377f2d999c4b | [] | no_license | thangaiya/SelfService | 171163aba5d72053beaa55887b563fc7477b5292 | 7e6e2827b27fe81e29b06b546b880d9440912264 | refs/heads/master | 2021-04-09T14:51:30.211736 | 2018-03-18T12:27:08 | 2018-03-18T12:27:08 | 125,722,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,433 | py | import re
from csv import DictReader
from collections import *
from itertools import chain
from xml.parsers.expat import ParserCreate
from unidecode import unidecode
from pathlib import Path
from typing import *
from typing.io import *
from typing.re import *
from .utils import dispatch_function, XMLStack, Persisten... | [
"thangaiya@gmail.com"
] | thangaiya@gmail.com |
8b7e403a7ac3e0d9f15db32a34eb8da70fbb217a | 0e33e481ce9122b0d43ec033dc1d0c162b67d4ee | /blog/migrations/0001_initial.py | 49409277632f1fe3f1c46d98e394c58b70cb6477 | [] | no_license | lunnbag/my-first-blog | 1f2a69f9c6407fc775b925c41a60da1dcfb40bb2 | f3af52fa53f18793546847074066e559158c89ec | refs/heads/master | 2020-03-20T18:18:33.571922 | 2018-06-16T15:41:50 | 2018-06-16T15:41:50 | 137,582,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-16 12:20
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dep... | [
"lauralunn@hotmail.co.uk"
] | lauralunn@hotmail.co.uk |
c8c37c72b598f4e577de6c74001660675ab2e307 | a25aac80385265247c23c571463753b6b71051bf | /pre_traitement.py | 9967bd322995d35bfa97f911a19153f154d8695e | [] | no_license | XavierFarchetto/Hackathon | 3a6ccfc436a2657d5b7ce3edc84353b7560b6db4 | 42649d01d894bd7118fe03eb7327124677d68883 | refs/heads/master | 2020-04-06T14:03:59.457239 | 2018-11-14T15:14:32 | 2018-11-14T15:14:32 | 157,526,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | import os
input_directory = "annotated_job_offers"
output_directory = "jo"
def verify_annotation(current_line):
words = current_line.split("\t")
if len(words) < 2:
word = words[0]
if "\n" in word:
word = word[:-1]
line = "\t".join([word, "O"]) + "\n"
else:
annotation = words[1]
if annotation == "\n" o... | [
"xavier.farchetto@telecomnancy.eu"
] | xavier.farchetto@telecomnancy.eu |
8aa4afb7f7c82069446a0267272eef69cf23eb38 | 4c78f66b6f852fa4ad0729eebadc3ee96a65ed57 | /from_article_url.py | 0e9ca6d389f946421d08ce31c2e7e20fd5e6dd84 | [] | no_license | proteeti13/first-page-news | 04c933fc5a8c4dbfa70b7fa1e14a45369dab0bde | 50ffca23371c205a56d7d8b6a499a3822a175452 | refs/heads/master | 2020-07-30T20:40:22.603338 | 2019-09-23T10:45:38 | 2019-09-23T10:45:38 | 210,353,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,904 | py | import requests
from bs4 import BeautifulSoup
import articleDateExtractor
import dateparser
header = {
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
}
url_prothom_alo = "https://www.prothomalo.com/bangladesh/article/1614818/%E2%80%98%E0%A... | [
"proteeti13@gmail.com"
] | proteeti13@gmail.com |
9c90388d3381674e0cb41add4b6132118e241883 | 444970b3dda58e0feb7adb6faf94d024d4672749 | /Processor.py | fab2e317671631624bd55c2fbc719f1d57e4540a | [] | no_license | kyrie2014/CI-Test | 061eb494a115882a975afe79d3a17a52da3541e1 | 9244d3c8b904146baa4cd58c57a0c6ab5c87ed0a | refs/heads/master | 2020-03-31T20:03:15.559493 | 2018-10-11T05:16:45 | 2018-10-11T05:16:45 | 152,523,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,819 | py | # coding:utf-8
from xml.dom import minidom, Node
from os.path import *
import sys
import pandas as pd
import re
import os
import copy
class AutoProcessor(object):
xml_path = r'\\shnas01\publicshared\BM\BM_AutoTest\AutoTest_Case'
bug_path = r'\\shnas01\publicshared\BM\BM_AutoTest\AutoBugs\bm_bug.xlsx'
def... | [
"Kyrie.Liu@spreadtrum.com"
] | Kyrie.Liu@spreadtrum.com |
ad880090cfa86821407e0941820ac38bb2b6257a | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/cherrypy/cherrypy/lib/static.py | 730d86b5c8aca8450f7467f6e5d78d45615cc9e1 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/cherrypy/cherrypy/lib/static.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
15e3d0c90005d336f978715f7fa6b9fbb8df55ad | 1198238841bedc19e9cc16c2ba22b4c6861cad1f | /node_modules/watchpack-chokidar2/node_modules/fsevents/build/config.gypi | 9fc34374b9ad035291f3ad04b7ab44b64eeb9340 | [
"MIT"
] | permissive | henryfradley/relax_description | 1ba44bf25fe740c2c24c92215730faf4f01ab954 | c7617d06b14a6cb666c69bc0b1530d244fad8ac7 | refs/heads/master | 2023-01-19T08:10:24.230424 | 2020-11-21T03:34:38 | 2020-11-21T03:34:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,813 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"fradleyhenry@gmail.com"
] | fradleyhenry@gmail.com |
e940cbbc122b704ae013d728430934c12dab1aa9 | b4026496a66b0577c96e45c6e7b18faeb433f328 | /scripts/ci/pre_commit/pre_commit_check_order_setup.py | e94109c0469bfa3bedba6ec8703410a30a125bd2 | [
"Apache-2.0",
"BSD-3-Clause",
"Python-2.0",
"MIT"
] | permissive | dferguson992/airflow | 4beb2f970b77645d56546fb558953fe205d7355b | 3d52b3ed8e6ed7cd4298edc731d88e9de0406df9 | refs/heads/master | 2021-08-19T01:32:45.597782 | 2020-11-16T19:54:29 | 2020-11-16T19:54:29 | 311,678,786 | 1 | 0 | Apache-2.0 | 2020-11-16T19:54:30 | 2020-11-10T14:10:49 | Python | UTF-8 | Python | false | false | 7,657 | py | #!/usr/bin/env python
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "... | [
"noreply@github.com"
] | dferguson992.noreply@github.com |
ac30e12fa3d62c3d9eca81ef631868ac0afd7eac | ccd1c59f380326eaa7a5ec069e8bf49ceae5589a | /07_farangeit_to_celsium.py | 04c298e4caf8e3aa3f3259ddda4ee5d3fbded1e0 | [] | no_license | Froststorm/Codeabby_learn | bfc7c27797c4fe72b4657556c92e00535d1be7b9 | 9e00624a87db4990721897cb3b01675028d814e5 | refs/heads/master | 2021-01-19T19:02:30.937847 | 2017-11-30T19:05:22 | 2017-11-30T19:05:22 | 101,183,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | def toCelsium(a):
return round(5/9*(a-32))
listOfNums = [int(input())]
listOfNums = [int(x) for x in listOfNums.split()]
print(listOfNums[1::], end="\n\n\n")
# for i in range(34):
print(" ".join([str(toCelsium(i)) for i in listOfNums[1:]]))
| [
"andrey.paladin@gmail.com"
] | andrey.paladin@gmail.com |
d45ddbfb167176a465fa730c943239468eb2aa4a | d95699c77bfe9e74e358b277f1a2a72dd471cc73 | /train101.py | 124dbb628500e464a0fe8ca85125c5319ed55add | [] | no_license | ckfanzhe/HuaLuCup2020 | 61dffb29a7a0f41cf0607b6080c76a1a6cee2d26 | 307b3a741060db07df56d865ac8754663c089a69 | refs/heads/main | 2023-06-08T13:54:10.901945 | 2021-06-20T08:53:44 | 2021-06-20T08:53:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,429 | py | # -*- coding: utf-8 -*-
import argparse
import random
import numpy as np
import torch.backends.cudnn as cudnn
import multiprocessing
import time
import torch
import torch.nn as nn
from torchsummary import summary
import os
from cfg import _metrics, _fit, _modelcheckpoint, _reducelr, _criterion
from data_gen_train impo... | [
"ieluoyiming@163.com"
] | ieluoyiming@163.com |
208846eb714574f4adfe61167d1f7792766e06ec | be1d8fdaf2820d910799180aaee4772cfbf2cfb7 | /UndirectedUnweightedGraph_adjList.py | 34b93d151250f18696e046fc09f711f5f33924ac | [] | no_license | gerganzh/Python-Mini-Projects | 04dd612ffb56b64606409b1bef23c27c60ab91f5 | 5c4da489896c608aa43647aedf4f7147921d6018 | refs/heads/master | 2020-05-25T12:54:55.604746 | 2019-05-21T09:48:29 | 2019-05-21T09:48:29 | 187,809,132 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,509 | py | #Week 7, Task 1
'''
I implemented an unweighted and undirected graph data structure, where the nodes consist of positive integers. I
decided to use adjacency list approach.
'''
import sys
from collections import OrderedDict
class Node: #creating class node
def __init__(self, node):
self.name... | [
"noreply@github.com"
] | gerganzh.noreply@github.com |
ae003c75bee275054a1f41fbe04ff1af3abba836 | 24470bd278c86ce441015c4e1737d240d67f37a0 | /models.py | 44e3a92569245472f8563b8d6d85d42c9d2736b2 | [] | no_license | kevsersrca/graphql-flask | d8acaab43004aca9b763e811189c39bc7b6c3e17 | 88d11432dbff1fbcb93061f7093b31e8805bdfd2 | refs/heads/master | 2021-01-20T21:11:48.494715 | 2017-08-29T11:56:06 | 2017-08-29T11:56:06 | 101,755,776 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | from sqlalchemy import *
from sqlalchemy.orm import (scoped_session, sessionmaker, relationship,
backref)
from sqlalchemy.ext.declarative import declarative_base
engine = create_engine('mysql+pymysql://root:@localhost/tutorial', convert_unicode=True)
db_session = scoped_session(sessionmaker... | [
"kev@Kev-MacBook-Pro.local"
] | kev@Kev-MacBook-Pro.local |
89bb687edf42e8d1b56379fb9bdefa2543b5cfa9 | 852d549b766134aa7d2d25fbcaceb5f1e9017fc9 | /exam.py | 642515798c839d156e41b43ade02fb5cfbf8d56e | [] | no_license | python819/pythonfiles | 3ae570873ebe17e5b70d5e989294fc49143e74d6 | 033a76e11adc25d88f034f9bf82520d8f2a79cca | refs/heads/master | 2020-07-02T17:55:52.582633 | 2019-08-10T10:20:14 | 2019-08-10T10:20:14 | 201,612,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #module 1:--
#1
#for j in range(1,6):
# print('*'*j)
#2
'''
a=input('enter the password')
if len(a)>=6 and len(a)<=12:
if a.isalpha() is True:
print('should contain atleast one special symboland one number')
elif a.isalnum() is True:
print('should contain atleast one special symbol')
elif a.islower() is True :
... | [
"indraneilsai2@gmail.com"
] | indraneilsai2@gmail.com |
0a5b7be0c07c9be2e0443f4569ef24288a0b59c0 | a01a43157460788b9156e09a7985267afcb2438b | /Province/Beijing.py | a16aa27771a6af43b8392cc39a9e4f7939b6114b | [] | no_license | Ginchung/2020Wuhan | 4f4db7556712363e1173394ee5e1c273b68e3f37 | b9e9bdc8a326dfcc24a518229ac5c62490308188 | refs/heads/master | 2020-12-26T19:53:40.615462 | 2020-02-20T11:01:28 | 2020-02-20T11:01:28 | 237,622,642 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,513 | py | ### Project: 2020Wuhan@Github/Ginchung
## File: beijing.py
## Run with 'python beijing.py'
# object 'sdct'
# Function: stores the info from official message
# Key: YYYY-MM-DD-HH
# Web source: http://wjw.beijing.gov.cn/wjwh/ztzl/xxgzbd/gzbdyqtb/
province='beijing'
sdct={}
sdct['2020-01-21-18']='西城区1例、海淀区2例、丰台区1例、通州区... | [
"ljcone@qq.com"
] | ljcone@qq.com |
8bfb6e8d486ecbfa00ac77fffd5fed9b085007f4 | af7dbe519166b969d8af2a56e0ad2231aae80b44 | /generate/lib/generate_hash.py | d8f5af74f50e99ab55caae92a9a674d18ee697bd | [] | no_license | tevix/browser-extensions | 3e73d8fd5b39e0fd22e65ddb7d8cf59d726d34e1 | dd09f301096ef95ed8caaa6a939f3e12aaadec34 | refs/heads/master | 2021-01-22T03:49:01.688265 | 2019-12-07T17:12:10 | 2019-12-07T17:12:10 | 81,462,065 | 0 | 0 | null | 2017-02-09T15:05:20 | 2017-02-09T15:05:20 | null | UTF-8 | Python | false | false | 435 | py | import os
import hashlib
import json
os.chdir(os.path.dirname(os.path.abspath(__file__)))
hashes = {}
for root, dirs, files in os.walk('.'):
for file in files:
path = os.path.join(root, file)
with open(path, 'rb') as cur_file:
hash = hashlib.md5(cur_file.read()).hexdigest()
hashes[path.replac... | [
"james.colin.brady@gmail.com"
] | james.colin.brady@gmail.com |
3fc9a5f3265731caf8a21fd55c7b32f7899d4b42 | 035a3eebe2091897b942796781a192f67680b336 | /objects/queries/dboraashwevchoice.py | 3f919be71e6bb812c4a2453c10240c2196c7f0dc | [] | no_license | gduvalsc/kairos | 763eb8fa5daeefc5fd46ea066a47400d5be7b7f5 | 2bf863ba3f73fc16ef75842ad390eb55fb1906f1 | refs/heads/master | 2021-12-23T18:33:34.382989 | 2021-10-19T16:44:00 | 2021-10-19T16:44:00 | 77,072,517 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | null=None
true=True
false=False
class UserObject(dict):
def __init__(self):
object = {
"type": "query",
"id": "DBORAASHWEVCHOICE",
"collections": ["ORAHAS"],
"request": "select distinct event as label from ORAHAS where session_state = 'WAITING' order by label... | [
"gduvalsc@gmail.com"
] | gduvalsc@gmail.com |
b9913ec6af02ea14d2cc7fb4552be713477a0d1d | 5f55f05a2b115407e0703d1848c6f4681a16546d | /make_test_data.py | a2f390840aabdeda6cb958ed575cdbde1ebcd96c | [] | no_license | yanjj199609017239230/D-python-gy-api-1908A | d20f359dbe39a0f213da273ce762c19ee912aa0f | 0d188710438cd51f5c0afea5818fba115ed0b8af | refs/heads/master | 2020-07-30T06:03:36.655044 | 2019-09-22T08:53:49 | 2019-09-22T08:53:49 | 210,112,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#__title__ = ''
#__author__ = 'xuepl'
#__mtime__ = '2019/9/11'
import json
import os
import yaml
from config.conf import FILE_PATH
POST = 1
GET = 0
mode_name = "charge"
test_case = "扣款异常流1金额为空"
method = POST
url = "/acc/charge" #接口地址
data = None
params = None
status_c... | [
"1726550139@qq.com"
] | 1726550139@qq.com |
214e442be29616883451dca6b73800ab366555e6 | 8bccd1376213a9fe56ab7bd69815a309339e8ceb | /quickdrop/quickdrop.py | be95d836b7decbb1458b091af81941e2e584a249 | [] | no_license | zevaverbach/quickdrop | 0d2906fb3deb2fdb24b0f932347238676fab33b1 | 7017c1518f831515f331c715dcd5f5d24a1877f9 | refs/heads/master | 2020-04-23T12:44:27.704581 | 2019-02-17T22:20:15 | 2019-02-17T22:20:15 | 171,179,181 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,611 | py | import os
from pathlib import Path
import sys
import click
import dropbox
import pyperclip
DROPBOX_ACCESS_TOKEN = os.getenv('DROPBOX_ACCESS_TOKEN')
DROPBOX_ROOT_PATH = os.getenv('DROPBOX_ROOT_PATH')
LB = '\n'
@click.command()
@click.argument('filepath', type=click.Path(exists=True))
def cli(filepath):
check_fo... | [
"zev@averba.ch"
] | zev@averba.ch |
08436a0b3e5a7e257274990561662c86d8e96311 | 53d6fc1222eaba9f2c4d9883ab2093612ba6fa87 | /dicta.py | cc20977fbc23d9c8bcc83112b8e0c75312b7ab5b | [] | no_license | vinay-iyengar/Bootcamp-Projects | 0c1fcd266669f117f0710d8229c866d9649d1a43 | 5a414903c117947b0f47568ea0e4d448658c448b | refs/heads/master | 2021-10-12T00:56:27.342506 | 2019-01-31T09:24:09 | 2019-01-31T09:24:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | d={1:"Speckbit", 2:"World", 3:"Quiet"}
for key,val in d.items():
print(d)
print(key, "=>", val)
| [
"vinay2397@gmail.com"
] | vinay2397@gmail.com |
7276c06a92637c166751509d796fa9da93aaa076 | 78d035d98059909fa8546b65040432880d629e22 | /gunicorn.conf.py | 3702d784b774884ff291c145142b734a94780675 | [] | no_license | traffic-signal-control/TSCC-flask | 1c1e49043afd35e81ca5535ff1455f588fd91b4b | afcc4e5105a9966f1840e0605ce16315b50e80cf | refs/heads/master | 2020-05-04T07:55:48.889744 | 2019-04-17T09:59:14 | 2019-04-17T09:59:14 | 179,037,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | __author__ = 'Wingslet'
debug = True
workers = 5 # 定义同时开启的处理请求的进程数量,根据网站流量适当调整
worker_class = "gevent" # 采用gevent库,支持异步处理请求,提高吞吐量
bind = "0.0.0.0:8000" # 监听IP放宽,以便于Docker之间、Docker和宿主机之间的通信
| [
"wingsweihua@gmail.com"
] | wingsweihua@gmail.com |
b9e393ac52c6010d7045b8feb8aa0c3c7d0a91bd | e97ed793c12124203338ba26976e25059903daa8 | /statements/mkpdf_helper.py | b0558d5d1e14c544a95e2f5bbc822beb3123e9da | [
"MIT"
] | permissive | alex65536/contest-template | 26af256b5ed4b82b0101a0227726c03fdd31bde7 | 0a36269f792340a9a73b727159fd9ad220d96025 | refs/heads/master | 2021-06-21T06:18:01.482886 | 2021-01-05T01:08:03 | 2021-01-05T01:08:03 | 136,298,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | #!/usr/bin/env python3
import sys
import json
from os import path
if len(sys.argv) < 2:
sys.stderr.write("Usage: {} PROBLEM\n".format(sys.argv[0]))
sys.exit(1)
problem = sys.argv[1]
obj = None
tl = "??? секунд"
ml = "??? мегабайт"
infile = "???.in"
outfile = "???.out"
try:
obj = json.loads(open(path.joi... | [
"sh200105@mail.ru"
] | sh200105@mail.ru |
981f3b685443c1e8fabdc340684e1a4a52e41de2 | e15fb687990589783066669784912ea8ac5bacaf | /genome_designer/test_data/full_vcf_test_set/generate_full_vcf_test_set.py | 9dac81496c35a6bb2eaa6bc20477bb1f155f8606 | [
"MIT"
] | permissive | RubensZimbres/millstone | 74d32105fa54104d0597b6789fb2871cb4fbd854 | 898936072a716a799462c113286056690a7723d1 | refs/heads/master | 2020-03-16T18:57:55.174716 | 2018-03-07T16:40:14 | 2018-03-07T16:40:14 | 132,894,394 | 1 | 2 | null | 2018-05-10T12:01:34 | 2018-05-10T12:01:33 | null | UTF-8 | Python | false | false | 5,259 | py | """
Script for generating the test set.
This document describes how this test test was generated.
1) Select a region of the MG1655 genome to excise.
"""
import copy
import random
from Bio import SeqIO
import vcf
import simNGS_util
# Portion of MG1655 Genbank of size ~5.5 kB
EXCISED_GENBANK = 'mg1655_tolC_through... | [
"gleb.kuznetsov@gmail.com"
] | gleb.kuznetsov@gmail.com |
fa09d7b28df8eaa91203691c54a1efca37c983c9 | 71804d207ca012e5398117128f5a65eb50c69699 | /project4/task1.py | 5a06e063eb7f7589bb88346d783ecffbe41c877e | [] | no_license | rupadevan94/web-information-management | 134cc1ba2119ebeed60b75754a8ca7d964395ace | 963aafa48747ae35925a7a9cfc00bd3d73969f40 | refs/heads/master | 2020-06-28T06:34:14.633542 | 2019-08-02T04:37:36 | 2019-08-02T04:37:36 | 200,165,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | #!/usr/bin/env python3
import sys
import os
import numpy
import numpy.linalg
import scipy.misc
def getOutputPngName(path, rank):
filename, ext = os.path.splitext(path)
return filename + '.' + str(rank) + '.png'
def getOutputNpyName(path, rank):
filename, ext = os.path.splitext(path)
return filename +... | [
"rupadevan94@gmail.com"
] | rupadevan94@gmail.com |
657337bf90a24e453740657f6c0d434ef21313c9 | cf62f7a7f9e13205fe83957fb7bfcf1b097bf481 | /src/index.py | a2ae504efaedb021f53a79f53ead655fd59982c9 | [
"Apache-2.0"
] | permissive | biothings/mygene.info | 09bf19f481c066789a4ad02a0d2880f31dae28f6 | fe1bbdd81bc29b412ca4288d3af38e47c0602ab7 | refs/heads/master | 2023-08-22T21:34:43.540840 | 2023-08-08T23:25:15 | 2023-08-08T23:25:18 | 54,933,630 | 89 | 20 | NOASSERTION | 2023-07-18T23:53:49 | 2016-03-29T00:36:49 | Python | UTF-8 | Python | false | false | 757 | py | """
Mygene Web Server Entry Point
Examples:
>>> python index.py
>>> python index.py --debug
>>> python index.py --port=8000
"""
import os.path
import config
from biothings.web.launcher import main
ADDON_HANDLERS = [
(r"/demo/?(.*)", "tornado.web.StaticFileHandler",
{"path": "docs/demo", "default_fi... | [
"xzhou@scripps.edu"
] | xzhou@scripps.edu |
2a456d30c85a8c4ec540c3dfdb5ecdb022605603 | 51d54eecaef308fa2b1bfe6b5b0f15c9921c0e02 | /Fadi/svmRun/stopwordsfeature.py | 9696ce1a1efdb5e7c7649c9dec1859f3141a0299 | [] | no_license | chaitanyamalaviya/11761-Project | 8e9adb0c4ef8a908023a25274c2f4a032a428797 | eda750e5296786919ad6882a7db8d4bc2366f05f | refs/heads/master | 2021-05-01T00:31:25.292387 | 2016-12-03T18:07:07 | 2016-12-03T18:07:07 | 73,503,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,328 | py | from __future__ import division
import pickle
import os
import nltk
import nltk.tokenize
from nltk.corpus import stopwords
import logging
import numpy as np
FORMAT = "[%(filename)s:%(lineno)s - %(funcName)20s() ] %(message)s"
logging.basicConfig(level=logging.DEBUG, format=FORMAT)
STOPWORDS = set(stopwords.wo... | [
"fadibotros@Fadis-MBP.wv.cc.cmu.edu"
] | fadibotros@Fadis-MBP.wv.cc.cmu.edu |
db27264593236ca9c6e9701e619205b975ec714f | 7db2ff6c164bda9b4179f6314592a85020fb372d | /ex31.py | be53dc0e4a34c596848ee99f65437a49a7bd3a1b | [] | no_license | Takashiidobe/learnPythonTheHardWayZedShaw | 5e124bf9004a0d7d00f6b2cfd2d5df1f231da662 | cb73e9079c2b93221ed1857801ad6be6d0ee2615 | refs/heads/master | 2020-03-17T15:44:47.964103 | 2018-05-16T21:01:55 | 2018-05-16T21:01:55 | 133,722,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | print("""You enter a dark room with two doors.
Do you go through door #1 or door #2?""")
door = input(">")
if door == "1":
print("There's a giant bear here eating a cheesecake.")
print("What do you do?")
print("1. Take the cake.")
print("2. Scream at the bear.")
bear = input("> ")
if bear == "1"... | [
"idobetakashi@gmail.com"
] | idobetakashi@gmail.com |
d013fddbef0d5f30733064fb694bf1132b7eb341 | 78a3ba49a3aaea55431a41e72ff5297b069037fc | /neurokernel/LPU/InputProcessors/GaussianNoiseInputProcessor.py | f0c313149a6d3e50b379b499a7bf9c791a0f415b | [
"BSD-3-Clause"
] | permissive | mkturkcan/neurodriver | edb9f0d79f8eabb0f3bd06c35e2277c0be70e255 | dc5a10212e32ba1dee97af2cbc1b025917361b32 | refs/heads/master | 2021-04-27T00:27:41.903107 | 2018-03-04T19:08:36 | 2018-03-04T19:08:36 | 123,819,113 | 0 | 0 | BSD-3-Clause | 2018-03-04T19:00:03 | 2018-03-04T19:00:03 | null | UTF-8 | Python | false | false | 941 | py | import numpy as np
from BaseInputProcessor import BaseInputProcessor
class GaussianNoiseInputProcessor(BaseInputProcessor):
def __init__(self, variable, uids, mean, std, start = -1, stop = -1):
super(GaussianNoiseInputProcessor, self).__init__([(variable,uids)],
... | [
"mkt2126@columbia.edu"
] | mkt2126@columbia.edu |
cb9d222ef240028c7c2bb5e92e4ffa33f9a97b42 | 1ef667feb6d4653dab8bd2d0474bbce37a568900 | /perm/ops/user_perm.py | ad610982420a34e7be387fd8652d7079f1d1b884 | [
"MIT"
] | permissive | ni-ning/pauli | 02f05859b0285914f26a50b9b68344bfa72e7666 | 5fdcba9c0aa3bb3f960546ee078f417a0f772a84 | refs/heads/master | 2020-07-30T13:27:00.562980 | 2019-09-10T09:48:08 | 2019-09-10T09:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,502 | py | # coding:utf-8
import six
from ...auth.models import User
from ..models import UserPerm, RoleDesc
from . import perm_base
def get_or_create_user_perm(user_id):
user_perm = UserPerm.objects(user_id=user_id, soft_del=False).first()
if not user_perm:
user = User.objects(id=user_id, soft_del=False).first(... | [
"socrateslee@users.noreply.github.com"
] | socrateslee@users.noreply.github.com |
8cdd0bd9d537ad94f769df4f3a1faf52e3fb8895 | 5760ff9bca037a2e85dde8ad4d583139ab8e128a | /migrations/versions/20150624090637_3606d4a47663_update_answercomment_model.py | c4dcdcc74edfefac69c1499b71d92697c7e86322 | [] | no_license | dianchang/dianchang | 5b58cbfcf6dfcd9c2c9d55c0612a9327086b8b54 | 3414cd5af0a66facd6ec4eb787e7646d04d8c96c | refs/heads/master | 2016-08-11T11:24:49.322330 | 2015-07-30T05:18:09 | 2015-07-30T05:18:09 | 36,111,229 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | """Update AnswerComment model.
Revision ID: 3606d4a47663
Revises: 2040a458fc8a
Create Date: 2015-06-24 09:06:37.957787
"""
# revision identifiers, used by Alembic.
revision = '3606d4a47663'
down_revision = '2040a458fc8a'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated... | [
"hustlzp@qq.com"
] | hustlzp@qq.com |
005aa7160b9dcb3eb53b5920602371a013ae5a0c | 807d460fbb00db68c1eb1a1cb490ae74a7806df9 | /mysite/topic/admin.py | b1213bb354395c4a8a166f3cda781cba67c5ab67 | [] | no_license | modanhan/cpsc471 | 67fa6a68581efae5ebefac96e0e523b63c8e1edf | d1eabcc418d1d2c8d71b408a48394edabdeb80d0 | refs/heads/master | 2020-03-09T00:18:35.152083 | 2018-04-18T03:15:11 | 2018-04-18T03:15:11 | 128,484,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | from django.contrib import admin
# Register your models here.
from .models import Topic
from .models import ChallengeTopic, TopicRating
# Register your models here.
admin.site.register(Topic)
admin.site.register(ChallengeTopic)
admin.site.register(TopicRating) | [
"modanhan@live.com"
] | modanhan@live.com |
1f05d5c3403f2296215637c6ca97504a6c5fa394 | 0b6413fb9fda0bdb599dc79ec55259e461e18080 | /env/Scripts/django-admin.py | beaf0d2211e0cf7732b3bf8c34f5abc7d5170a71 | [] | no_license | VictorTherache/P10-Softdesk-API | bfd9e7f430fa2dbab35c0f9a93f36b2dcf982225 | 57acb53b5bdd172185b2c70ff040d33e5235e32b | refs/heads/main | 2023-09-01T22:25:41.136504 | 2021-10-29T13:06:34 | 2021-10-29T13:06:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | #!v:\code\medium_api_drf\env\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was deprecated ... | [
"codingvictor22@gmail.com"
] | codingvictor22@gmail.com |
899c5f0098afd90b2bbd71e177e514e42fe973d5 | 36d4c9a57b53f5e14acb512759b49fe44d9990d8 | /hackerrank/30-days-of-code/day-8.py | d6527ddafbd6b3abc73b984d4cbb1c5fe239558e | [] | no_license | yosef8234/test | 4a280fa2b27563c055b54f2ed3dfbc7743dd9289 | 8bb58d12b2837c9f8c7b1877206a365ab9004758 | refs/heads/master | 2021-05-07T22:46:06.598921 | 2017-10-16T18:11:26 | 2017-10-16T18:11:26 | 107,286,907 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | # # -*- coding: utf-8 -*-
# Objective
# Today, we're learning about Key-Value pair mappings using a Map or Dictionary data structure. Check out the Tutorial tab for learning materials and an instructional video!
# Task
# Given NN names and phone numbers, assemble a phone book that maps friends' names to their respecti... | [
"ekoz@protonmail.com"
] | ekoz@protonmail.com |
b7af57cfe3b70002b84576ef64c5255279fa4d72 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/meta/TankmanOperationDialogMeta.py | e1d2fcccb7f4552ec5aef843bb1b493e8473c8d1 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 386 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/TankmanOperationDialogMeta.py
from gui.Scaleform.daapi.view.dialogs.SimpleDialog import SimpleDialog
class TankmanOperationDialogMeta(SimpleDialog):
def as_setDataS(self, data):
return sel... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
cf386bf9e4f886259a355ae0d1237f0389fbdb0b | 19cb4e993c6d482e02ae7cf3fa521302483754bd | /setup.py | 849ff91c4f2292e4d01ef2aaf5b0a848f2f59186 | [
"MIT"
] | permissive | brimcfadden/stormed-amqp | b98414cbc1be5ae2fa25651cbd7ca21e08fa33e8 | 59e81bfa4632366dc3f20b3dff25df3331480798 | refs/heads/master | 2020-12-24T11:06:28.460936 | 2011-07-15T15:25:21 | 2011-07-15T15:25:21 | 2,053,652 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | import distutils.core
try:
# to enable "python setup.py develop"
import setuptools
except ImportError:
pass
distutils.core.setup(
name="stormed-amqp",
version='0.1',
packages = ["stormed", "stormed.method", "stormed.method.codegen"],
author="Paolo Losi",
author_email="paolo.losi@gmail.... | [
"paolo.losi@gmail.com"
] | paolo.losi@gmail.com |
79673a33e5eeef00b9b046e1a7b02efaaf6695b1 | 929f5bbde3c215c86649cbd22f8b29a74fe3f3bf | /server/LabManager/calendar/routes.py | 462b3f1c3f31c8c5769302f8efea9c687f95818b | [] | no_license | Fayhen/Laborator.io | 52f1a47f42a1bfa5cdfde2c55d25eacf20e76058 | e486b2f152e0291a4132ad6fcd5b157c812f9798 | refs/heads/master | 2021-06-13T17:35:43.701277 | 2020-03-29T19:56:50 | 2020-03-29T19:56:50 | 179,155,182 | 0 | 0 | null | 2021-06-02T01:18:06 | 2019-04-02T20:40:07 | Python | UTF-8 | Python | false | false | 81 | py | from flask import Blueprint
calendar = Blueprint("calendar", __name__)
# WIP
| [
"diego00alfa@gmail.com"
] | diego00alfa@gmail.com |
94a4a250cda1258c1bd6f317825a0d895ccc4900 | 55b0e3b5c59a4b929ca0b12dca6a7c88abc99b1c | /scripts/figures/angularMomentum_conservation.py | 3fd84d5447cf74472ae41518839e1845cd9e9d47 | [] | no_license | andrewhalle/M31-dynamics | d007c387c59b87c7f76b5109011821e73b66317d | bf730eb66dc297ab7f35596e2b7b7fd6440a397f | refs/heads/master | 2021-01-20T03:14:08.664161 | 2017-06-19T18:32:33 | 2017-06-19T18:32:33 | 60,396,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | # Generates figure which shows change #
# in total angular momentum of the #
# simulation versus time #
import rebound
import numpy as np
import matplotlib as mpl
mpl.use("Agg")
import matplotlib.pyplot as plt
import sys
import os
sys.path.append("../include")
from universal_logs import *
def calcul... | [
"ahalle@berkeley.edu"
] | ahalle@berkeley.edu |
2fad265d11b5850de7947324b15cf3811b053d58 | 1b25efab9fd81f1c1b9cd484a13d530759809838 | /backend/dating/api/v1/serializers.py | 94acc95fb234b127aaf19304903f55ffff0256f5 | [] | no_license | crowdbotics-apps/test-31906 | 1728e7947b6cbd52dc123310647ec523914aa1aa | 2f6841d3ac3e4d335712fd11b3ee81166eec2f47 | refs/heads/master | 2023-08-30T11:31:54.409975 | 2021-11-10T07:26:53 | 2021-11-10T07:26:53 | 426,524,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | from rest_framework import serializers
from dating.models import Setting, Like, UserPhoto, Match, Dislike, Inbox, Profile
class InboxSerializer(serializers.ModelSerializer):
class Meta:
model = Inbox
fields = "__all__"
class LikeSerializer(serializers.ModelSerializer):
class Meta:
mo... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
355c311d207458bb0ef7f666c6b733a12241be3a | 2bc12c36eb39bc271641f391bb7067ef1bfddfc9 | /2022/9/solution.py | 0b862ff0c73affc2fd6b221dfc3e04128e6d7a07 | [
"MIT"
] | permissive | iangregson/advent-of-code | 0243077b8415a1e95e9dcd413c76aea3b9466ce5 | cd20404940ac5ed18b8ac61a836186a2f2580003 | refs/heads/master | 2023-01-05T18:59:10.931750 | 2023-01-03T11:53:46 | 2023-01-03T11:53:46 | 252,134,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,902 | py | from pathlib import Path
file = Path(__file__).parent / 'input.txt'
# file = Path(__file__).parent / 'test_input.txt'
# file = Path(__file__).parent / 'test_input2.txt'
text = file.read_text().splitlines()
class Grid():
C = { 'R': (1,0), 'U': (0,-1), 'L': (-1,0), 'D': (0,1) }
D = { 'UR': (1,-1), 'UL': (-1,-1), 'D... | [
"ian.gregson@bigtincan.com"
] | ian.gregson@bigtincan.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.