blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
5a4d8c674b599a2c01fdc8fd795bf0ea39b3d9b4
0ddcfcbfc3faa81c79e320c34c35a972dab86498
/puzzles/orderly_queue.py
a373cf1f75c26e6261bdd30af8d0855a2660bb45
[]
no_license
IvanWoo/coding-interview-questions
3311da45895ac4f3c394b22530079c79a9215a1c
1312305b199b65a11804a000432ebe28d1fba87e
refs/heads/master
2023-08-09T19:46:28.278111
2023-06-21T01:47:07
2023-06-21T01:47:07
135,307,912
0
0
null
2023-07-20T12:14:38
2018-05-29T14:24:43
Python
UTF-8
Python
false
false
1,048
py
# https://leetcode.com/problems/orderly-queue/ """ ou are given a string s and an integer k. You can choose one of the first k letters of s and append it at the end of the string.. Return the lexicographically smallest string you could have after applying the mentioned step any number of moves. Example 1: Input: s = ...
[ "tyivanwu@gmail.com" ]
tyivanwu@gmail.com
7267956f1f7b465699fb043dc755525ce97b5ccf
2c73882fc59ca85f4854a43bcda8cc9edd282b8d
/polls_api/views.py
2664dfc220c7e377fed156deed7d18e979f75115
[]
no_license
mjstealth/guide-to-backbonejs-with-django
540236f3535ee171c3aa4c43a1be9394a8a7e4bc
e7d5016c800e1e0e282da0386cc6112d4eed63c1
refs/heads/master
2021-01-17T22:40:28.191509
2012-09-04T22:17:12
2012-09-04T22:17:12
5,679,419
1
0
null
null
null
null
UTF-8
Python
false
false
990
py
from django.shortcuts import get_object_or_404 from django.core.urlresolvers import reverse from djangorestframework import views from djangorestframework.response import Response from polls.forms import PollForm from polls.models import Poll from .resources import PollResource class PollResults (views.View): def...
[ "mjumbewu@gmail.com" ]
mjumbewu@gmail.com
416ebd601da95b4878e39a59b5229fda813725d3
0a6cf240f24a59aab28a641c855116bc88ba6047
/Tests/SSL/test_ssl_containers.py
556305e5d83cb4d20f319dc1ae1d2870f4c5a0ba
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
ayeaton/InnerEye-DeepLearning
7e9772721332b7c5dae82a7106568807682152c0
c2f0d668e8cefc1c3868de86c62131f38ca2531d
refs/heads/main
2023-05-31T08:39:00.744006
2021-06-24T19:53:40
2021-06-24T19:53:40
376,850,420
0
0
MIT
2021-06-14T14:22:12
2021-06-14T14:22:11
null
UTF-8
Python
false
false
8,280
py
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
[ "noreply@github.com" ]
ayeaton.noreply@github.com
42a8dac1509c16a1f9ee4746a23db2e89449bf64
11d265eba2ced9de43c339e4014c779b521320cd
/accounts/migrations/0004_auto_20200423_2253.py
eccb31bc3dd7e0a1872e9574429fc5cdc2edd129
[]
no_license
Sloshpit/budget_old
d9271de625cd7e3aa66ccbec501b005e50cd2812
a5603996b026542adb3bc8c578c03bcb843bea01
refs/heads/master
2022-04-23T08:42:43.377827
2020-04-25T14:40:39
2020-04-25T14:40:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
606
py
# Generated by Django 3.0.5 on 2020-04-24 02:53 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('accounts', '0003_auto_20200423_2251'), ] operations = [ migrations.RenameField( model_name='account', old_name='transaction_...
[ "neel.maheshwari@gmail.com" ]
neel.maheshwari@gmail.com
2ac308de7ea56c3e49a6bf3d403f763954382164
d8788a352e84b6184fc65e499fd2e198855b4ab1
/05_RNN/rnn_imdb.py
b63b931774d18de45b4d4797ce04b1ad3e94ac39
[]
no_license
yjkim0083/3min_keras
7cb5c883d2b337beb5dc54ba235fac37bc206640
46e192cf37a3407e69b6b81c10cb2b1dff35586d
refs/heads/master
2020-05-17T00:21:12.795091
2019-04-26T09:30:32
2019-04-26T09:30:32
183,394,144
0
0
null
null
null
null
UTF-8
Python
false
false
1,849
py
# import library from __future__ import print_function from keras.preprocessing import sequence from keras.datasets import imdb from keras import layers, models # 데이터 준비 class Data: def __init__(self, max_features=20000, maxlen=80): (x_train, y_train), (x_test, y_test) = imdb.load_data(num_words=max_featur...
[ "yjkim0083@gmail.com" ]
yjkim0083@gmail.com
eaeb032aefcca3f6234961954e3d3943a85cbe8b
51e354e58f991d264bb6c3bf1c9277b16c332254
/Boletín1/Ejercicio22.py
e7b7e0a84cea0bf3e996b921769e4eeb95dd8179
[]
no_license
matey97/Programacion
93ec50e26a136de0d53f4b847e92e703ee2a8296
929993978057c4c2e86469d11349ecd1fb45ae28
refs/heads/master
2021-07-21T16:00:17.170393
2017-10-31T18:32:46
2017-10-31T18:32:46
109,030,282
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
''' Created on 1 de oct. de 2015 @author: al341802 ''' from math import pi radio=float(input("Introduce el radio:")) area=pi*radio**2 long=2*pi*radio print("El area es:{0:.2f}".format(area)) print("La longitud de la circunferencia es:{0:.2f}".format(long))
[ "al341802@uji.es" ]
al341802@uji.es
51cbbc6395a6c0755b0aaf0f460fc91f7dc63457
43d7c7721ab991a27b0aa64bdad4bc51255e484e
/hyde/ext/templates/jinja.py
bfe2d1b16afaa0bf660a5ac7250fe02999114524
[ "MIT" ]
permissive
chewable/hyde
071f5787dcdfbd8eadc73b58275bb16249b2e638
88b701b813440c455d91e73d9b30efe3cb05dacf
refs/heads/master
2021-01-18T17:33:51.379900
2011-02-09T16:58:38
2011-02-09T16:58:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,697
py
# -*- coding: utf-8 -*- """ Jinja template utilties """ from hyde.fs import File, Folder from hyde.template import HtmlWrap, Template from hyde.site import Resource from hyde.util import getLoggerWithNullHandler, getLoggerWithConsoleHandler from jinja2 import contextfunction, Environment, FileSystemLoader from jinja2...
[ "lakshmi.vyas@gmail.com" ]
lakshmi.vyas@gmail.com
ee6de89868cf2316edb693e794d43ca2ce025e0c
4866bce3ef5b481849c31b1d74001f3af3525f9e
/todoapp/todoapp/urls.py
452e6fa67cb0d9af25eae81cea8e7e008e3584d3
[]
no_license
meliketakan/my-first-blog
9ad63c821dc179f9ede5eb13d2f014e92e70524a
33233f6e763c77879339c86faab0f89446cf4d58
refs/heads/master
2023-05-30T00:12:52.814151
2021-06-18T08:27:07
2021-06-18T08:27:07
372,640,519
0
0
null
null
null
null
UTF-8
Python
false
false
798
py
"""todoapp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ "meliketakan0@gmail.com" ]
meliketakan0@gmail.com
18dbf87af9420c5a2ca503743e7f290aaeb054b1
8f50df9241833fa477687a02448b7f3f929f5d93
/codeforces/706d/solution.py
b06518e0a9ac9aea9eb4f5b0457a67a89f93b811
[]
no_license
tjwudi/problem-solving
7004453d037915892348308a16670eb499577cd5
d29ba6bce035c9cb75bf2bc4e7b84c062ecda615
refs/heads/master
2020-04-05T18:29:32.513172
2016-08-31T12:24:49
2016-08-31T12:24:49
65,372,323
1
0
null
null
null
null
UTF-8
Python
false
false
3,772
py
import sys import math def get_bit(num, position, wide = 1): """ get_bit(0b00001, 1) == 1 get_bit(0b00010, 2) == 1 """ return (num >> (position - wide)) & ((1 << wide) - 1) class DNode(object): def __init__(self, count=0, bits_group=1): self.childs = [None] * (1 << bits_group...
[ "webmaster@leapoahead.com" ]
webmaster@leapoahead.com
3c9e94802edf1b2bda9664db98775acda9edceef
d5b187cd25874c73fe18aa534ca6a4fa388b5464
/python-fundamentals/week2/day4-data_structures_cont/Ans_part2_2.py
15f15165c23a4a68daa4952cd7294248e9cf2c17
[]
no_license
jwcrandall/galvanize
dec7618c5e5bb8af7340acad8e07f58b703b317f
e4f05c172a2e046f7ee3c151618ed1295717a0d4
refs/heads/master
2022-09-15T02:49:45.927678
2020-06-04T19:43:12
2020-06-04T19:43:12
269,430,838
0
0
null
null
null
null
UTF-8
Python
false
false
870
py
# Write a script that prompts the user for a state name. search_state = input("Please enter a state name: ") search_state = search_state.lower() #It will then check that state name against the dictionary below to give back the capital of that state. # However, you'll notice that the dictionary doesn't know the capitals...
[ "josephcrandall@me.com" ]
josephcrandall@me.com
4c78ff7b8d99fa7a2c0507d61ea3beb4dacca5b9
14828d39e62daa1805fcad2046ee4f7059e89f89
/build/catkin_generated/order_packages.py
19733f48c19b3444ef2949ad6d90006b2b27fc26
[]
no_license
haosen9527/TF_demo
699afa4c2c2053b6816f79dcd35e7857d9ea2cef
4ce2c632d8eefc2abd87b7af2a1582982f68f4d2
refs/heads/master
2020-03-21T07:53:31.813816
2018-06-22T13:35:06
2018-06-22T13:35:06
138,306,195
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
# generated from catkin/cmake/template/order_packages.context.py.in source_root_dir = "/home/micros/catkin_new/src" whitelisted_packages = "".split(';') if "" != "" else [] blacklisted_packages = "".split(';') if "" != "" else [] underlay_workspaces = "/home/micros/catkin_new/devel;/opt/ros/kinetic".split(';') if "/hom...
[ "ljhao1994@163..com" ]
ljhao1994@163..com
7aeb59e68007f90a70eb8d4027a76867e6acdc54
df5c8186fa526be8fc6c5295a82d673458b668c3
/Unit 7/Ai bot/test bots/RandomRoy.py
3cfc23afb5de89c47a4847168a94abdc056af627
[ "MIT" ]
permissive
KevinBoxuGao/ICS3UI
296a304e048080d3a6089a788eb3b74c099d5f1e
2091a7c0276b888dd88f2063e6acd6e7ff7fb6fa
refs/heads/master
2020-04-23T03:32:49.424600
2019-06-18T21:20:36
2019-06-18T21:20:36
170,881,750
0
1
null
null
null
null
UTF-8
Python
false
false
1,320
py
from random import * #STRATEGY: JUST PICK RANDOMLY, MAKING SURE THAT I DON'T LOSE BY CHEATING def getMove( myScore, mySnowballs, myDucksUsed, myMovesSoFar, oppScore, oppSnowballs, oppDucksUsed, oppMovesSoFar ): if mySnowballs == 0: #If I'm out of snowballs... if myDucksUsed < 5: #....
[ "kevingao2003@gmail.com" ]
kevingao2003@gmail.com
f71387df36af9f3c0cb4897aa762c93b0ccbdb5f
3f60b999ea7bda83c9586f75f52463dc20337f24
/sensitive_user_portrait/weibo_rank/Offline_task.py
de919db3a2449e8b9e35b521386aa9943040a4ae
[]
no_license
jianjian0dandan/sensitive_user_portrait
629e49ce71db92b50634bac9c828811cdb5381e9
cacc30267ebc0e621b1d48d4f1206277a0f48123
refs/heads/master
2021-01-20T23:18:07.138057
2016-05-22T12:09:40
2016-05-22T12:09:40
42,869,287
0
0
null
2015-09-21T13:55:12
2015-09-21T13:55:11
null
UTF-8
Python
false
false
6,454
py
#-*-coding: utf-8 -*- import datetime import json import time as TIME from elasticsearch import Elasticsearch from time_utils import ts2datetime, datetime2ts, ts2date from global_utils import es_user_portrait as es WEIBO_RANK_KEYWORD_TASK_INDEX = 'weibo_rank_keyword_task' WEIBO_RANK_KEYWORD_TASK_TYPE = 'weibo_rank_ta...
[ "1257819385@qq.com" ]
1257819385@qq.com
c663247f79902d830119db43c67ab692f260485a
46a130d64358681dea6003f2c5555c98bfd69e11
/load_to_itop/scripts/trans_to_dump.py
dacd6c9aea0802c3c07f30eb1f61fffc8c9d170b
[]
no_license
yyztc/itopV2
5220ba2f3419dcfc3b3d5d0d756ea9cd232f6c47
855d8c6d61cbe1feea646f9b4ec7825d73d7ecc0
refs/heads/master
2020-11-28T08:47:24.809754
2018-02-09T01:34:53
2018-02-09T01:34:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,286
py
#encoding=utf8 import shutil import csv import os import numpy as np import pandas as pd from pprint import pprint from config import server_src_csv, vm_src_csv, server_static_csv, network_csv, storage_csv, sync_ds_csv, brand_csv, model_csv, osfamily_csv, osversion_csv, networktype_csv, physicalserver_csv, vir...
[ "root@devops.localdomain" ]
root@devops.localdomain
43bf411f069beff4b058247c875c82e5f19f01bc
4b1965b3d831ab54998973afb26f4327ed010336
/info/user/views.py
4edbf7fa25d4329141c2449cb244798b16174185
[]
no_license
yc12192057/information11_mm
7d353dfe61962eb0bd2c29b7f0b54a2a62953262
2e4052d130b200797aa8a57a0d37f8267d523a8b
refs/heads/master
2020-03-21T10:22:23.558714
2018-06-24T02:34:25
2018-06-24T02:34:25
138,447,718
0
0
null
null
null
null
UTF-8
Python
false
false
6,383
py
from flask import current_app from flask import g from flask import request from flask import session from info.utils.image_storage import storage from info import constants from info import db from info.models import Category, News from info.utils.response_code import RET from . import profile_blue from flask import r...
[ "xwp_fullstack@163.com" ]
xwp_fullstack@163.com
6166a19921057cbb6fd2c937922458411e917f51
ffe147e443dbd3c4e42b923393bda72d73e2eb75
/server.py
fa99c5174a8375ca68aa5bb3616f8b03aa750fac
[]
no_license
jwilson573/counter_assignment
cf7d4418f5f54198dcac8f2dd24e25d62702209d
b958f11f910dfed8b23b885e57c60f807fb47c77
refs/heads/master
2020-06-22T23:00:14.943527
2017-06-13T15:10:06
2017-06-13T15:10:06
94,226,343
0
0
null
null
null
null
UTF-8
Python
false
false
564
py
from flask import Flask, session, render_template, redirect, request app = Flask(__name__) app.secret_key = "TestKey" counter = 0 def sessionCounter(): try: session['counter'] += 1 except KeyError: session['counter'] = 1 @app.route('/') def index(): sessionCounter() return render_templ...
[ "jonathon.b.wilson@gmail.com" ]
jonathon.b.wilson@gmail.com
e3b72e06b1595b812d60964be50b5f7d6587a95a
32a24714b7450eea329faa19b93475545d3ec7a9
/app/rapper_wrapper.py
5aa6a67c44fc380ead94e33d6d18a725247439b7
[]
no_license
yum-yab/rapper-mod
b32fcf224d0cdd1e75f2f203381efa8a23a6fb69
a63a2360056f862bceb3b465af274428321e1d1b
refs/heads/main
2023-03-29T10:22:54.395656
2021-04-01T12:53:14
2021-04-01T12:53:14
353,626,156
0
0
null
null
null
null
UTF-8
Python
false
false
1,433
py
import os import sys import json import subprocess import re rapperErrorsRegex = re.compile(r"^rapper: Error.*$") rapperWarningsRegex = re.compile(r"^rapper: Warning.*$") rapperTriplesRegex = re.compile(r"rapper: Parsing returned (\d+) triples") def returnRapperErrors(rapperLog): errorMatches = [] warningMat...
[ "streitmatter@informatik.uni-leipzig.de" ]
streitmatter@informatik.uni-leipzig.de
c4ff9ba09ddd1c85d4d2a16bd76fc35ec78638d8
0c25aeef02a4d97b3d711760520dd9f3815c4826
/okean/nc/nctypes.py
83667fd947e48af5d26d42cdee0c21fc7c57a5f4
[]
no_license
moghimis/okean
71080c871c5956311d7351e5e043823f8c73505e
20e707cd4787995b1bf17c19a3b12f232f5867ab
refs/heads/master
2020-04-05T22:50:18.271043
2018-09-21T18:19:35
2018-09-21T18:19:35
20,712,916
0
0
null
2017-04-11T19:32:39
2014-06-11T05:05:19
Python
UTF-8
Python
false
false
7,856
py
''' ------------------------------------------------------------------- datatype dtype.name name nc4 description ------------------------------------------------------------------- f4,f float32 NC_FLOAT 32-bit floating point f8 float64 NC_DOUBLE 64-bit floa...
[ "martalmeida@gmail.com" ]
martalmeida@gmail.com
1fcb9a5bc116b70cacd5ddbd3646b35b3f6e0d8c
e0527bce5c53a196752d3a16adf50cb60754de5f
/05-How to Repeat Actions demos/02-dotty_dots.py
47bb00a38d29385492c81d3cb4b98ea027472cab
[]
no_license
ARWA-ALraddadi/python-tutorial-for-beginners
ddeb657f419fbc176bea273bc9fb6b88d1894191
21cedfc47871ca4d25c2382464c60ab0a2121205
refs/heads/master
2023-06-30T20:24:30.688800
2021-08-08T08:22:29
2021-08-08T08:22:29
193,094,651
0
0
null
null
null
null
UTF-8
Python
false
false
1,825
py
#--------------------------------------------------------------------- # # Dotty dots - Repeating actions with minor variations # # Up until now the only repetition we've seen has been the same action # done many times. This simple demonstration shows how actions can # be repeated with minor variations for each differ...
[ "noreply@github.com" ]
ARWA-ALraddadi.noreply@github.com
93d1c4b038d428ed57ee5e22dfd6aa42a7abb5be
d0168d08221da5bf95c0dd511efeecddc9b0a73d
/profiles/migrations/0001_initial.py
cdaa8070d22ad1710c0d0041619d3e087f6b3285
[]
no_license
alexarirok/roret-farm-software
900b5842c7b39c4a19543e138a719e4b496531a9
aa23fd729351f0d045b2e310dc839a8b4d639c6d
refs/heads/master
2021-04-08T21:03:59.709224
2020-05-01T00:07:53
2020-05-01T00:07:53
248,808,990
0
0
null
null
null
null
UTF-8
Python
false
false
853
py
# Generated by Django 3.0.5 on 2020-04-23 21:43 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(...
[ "akorir233@gmail.com" ]
akorir233@gmail.com
22f3c9cd4a9a1004dd7c7bb512643d2bbf2cbdb2
048405bfa0b48eaf78dd2298bdfe61472bd74eef
/scripts/multiproc.py
d0bf77fe6d0ed47a785ac752a9bddf3529d5e1ed
[]
no_license
sousa-edvan/greedy_grasp_ant
2218ae20f707baa8d5428db76129e5c758a21d07
12f5ac99b4d0e9599a2ecd138f8f6a3551fe2473
refs/heads/master
2022-01-27T02:30:35.977782
2019-07-19T16:39:20
2019-07-19T16:39:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
654
py
import os import pandas as pd import subprocess from multiprocessing import cpu_count, Pool from auto_tqdm import tqdm from notipy_me import Notipy def score(data): csv = "scores/{data}.csv".format(data=data) subprocess.run([ "./gga/greedy_grasp_ant", "--data=data/{data}".format(data=data), ...
[ "cappelletti.luca94@gmail.com" ]
cappelletti.luca94@gmail.com
cb83f4850aea698f5ef2fc3ef219bd74922e880a
beb131847b4f9c3abb5bf7cc868a9c46ed460532
/setup.py
39be4f8b8143ba24a9c1f8c12cd7b883cd1d9dc5
[ "MIT" ]
permissive
mfy68/MfyReport
46755c7c32f5336ca47d58fad1562bfb2e6f7b8e
44edd71372c72959e437e92b8fbd2ce78d0766d5
refs/heads/master
2023-07-15T16:06:24.845691
2021-08-14T03:12:43
2021-08-14T03:12:43
394,526,847
1
0
null
null
null
null
UTF-8
Python
false
false
945
py
#-*- coding:utf8 -*- # #----------------------------------------------------------------------------------- # ProjectName: mfyreport # FileName: setup # Author: MingFeiyang # Datetime: 2021/8/9 14:23 #----------------------------------------------------------------------------------- from setuptools impo...
[ "88566917+mfy68@users.noreply.github.com" ]
88566917+mfy68@users.noreply.github.com
a57dcb96525131d56ec52c5f7b6ad9f742f6b551
2f28c2fb7c7322e98ab9954d1c45888dadd0da80
/src/models/train_model.py
681422b4f7ade0412828518149c46bba9c5cc67d
[ "MIT" ]
permissive
markanderson96/AMFMBirdActivity
6dda0fab6590a05342a0cc07428201b2cfda75cc
5f133b76dd6c85d09313d588df334f0cdb3feb09
refs/heads/main
2023-05-02T13:55:36.186033
2021-02-09T20:13:28
2021-02-09T20:13:28
329,428,781
0
0
null
null
null
null
UTF-8
Python
false
false
5,167
py
#!/bin/python import pandas as pd import numpy as np import yaml import logging import sys from sklearn.preprocessing import StandardScaler from sklearn.impute import SimpleImputer from sklearn.compose import ColumnTransformer from sklearn.pipeline import Pipeline from sklearn.model_selection import train_test_split,...
[ "andersm3@tcd.ie" ]
andersm3@tcd.ie
6e29a6e6c458214a2a869d88d2a4615e11373078
adf2e802c7563e4b7b7cc279a54deceb6a803098
/openapi_client/models/pdf_annotate_parameters.py
9dc6b17b59f3a07476f94e6f5e9c90548eeb50bf
[]
no_license
Orpalis/passportpdfsdk-python
2466f7568becf2bd386bd9e4e00b4e3c1e642727
257d305ca9e6508d44fe521a1e4721f1835e8d0e
refs/heads/master
2022-04-24T15:58:21.257112
2020-04-27T11:09:37
2020-04-27T11:09:37
254,665,250
2
0
null
null
null
null
UTF-8
Python
false
false
12,981
py
# coding: utf-8 """ PassportPDF API Another brick in the cloud # noqa: E501 The version of the OpenAPI document: 1.0.1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from openapi_client.configuration import Configuration class PdfAnnotateParam...
[ "e.carrere@orpalis.com" ]
e.carrere@orpalis.com
924d20afd9dad0f7b5bf8a84d7d57e1cfef8e356
c2d8493fd9aa1baccff2e70658b1da5e350a3d33
/prj_auth/models.py
16a77cc9fdbb59e254da3e5abcaa457008072417
[]
no_license
tufedtm/dj_aut
6c5fe1ea148fb2a942dfa815bc5b16f7b7b833f5
0b8876263434f97191b0d5a423147ec662c004a4
refs/heads/master
2021-01-12T15:12:18.625147
2016-09-27T13:23:17
2016-09-27T13:23:17
69,359,094
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
from django.contrib.auth.models import AbstractUser class MyUser(AbstractUser): class Meta: verbose_name = 'мой пользователь' verbose_name_plural = 'мои пользователи'
[ "tufedtm@gmail.com" ]
tufedtm@gmail.com
46716e05f494d85df10a692e589e37f999ee1bdd
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/CJ/16_0_2_anrieff_b.py
9217d8d49f04d08baad00e10f7695015df8cedd7
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
570
py
#!/usr/bin/env python # Contestant: Veselin 'anrieff' Georgiev # Round: Google Code Jam Qualification 2016 # Task: B. Revenge of the pancakes # Solution: Greedy. At each step, find the largest single-colored block at the top, and flip it, until we finish. TC = int(raw_input().strip()) for tc in xrange(1, TC + 1): p...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
a815426cb3f10bd195178efb53da646d401835a2
2e888bd174fb9088aea80bca0ca2102c4e418dff
/0x09-python-everything_is_object/100-magic_string.py
0adac5f3d095862c0d25184336471aeff30aa454
[]
no_license
mauriciosierrac/holbertonschool-higher_level_programming
9aea13b9f13b1bc80b0782a0699601294776199a
4ff2198623eebb238689aed60ea2f064bdb2f705
refs/heads/master
2023-04-29T23:54:39.063955
2021-05-12T23:41:19
2021-05-12T23:41:19
319,360,492
0
2
null
null
null
null
UTF-8
Python
false
false
107
py
#!/usr/bin/python3 def magic_string(string=[]): string += ['Holberton'] return (', '.join(string))
[ "2376@holbertonschool.com" ]
2376@holbertonschool.com
e82f2bd71cc0846186353d8c20817723d286fc4f
4d4fcde3efaa334f7aa56beabd2aa26fbcc43650
/server/src/uds/reports/lists/__init__.py
2cb963d21ee727e9b5b0bcc891ec8e5716d7db72
[]
no_license
xezpeleta/openuds
a8b11cb34eb0ef7bb2da80f67586a81b2de229ef
840a7a02bd7c9894e8863a8a50874cdfdbf30fcd
refs/heads/master
2023-08-21T17:55:48.914631
2021-10-06T10:39:06
2021-10-06T10:39:06
414,489,331
1
0
null
null
null
null
UTF-8
Python
false
false
1,712
py
# -*- coding: utf-8 -*- # # Copyright (c) 2015-2020 Virtual Cable S.L.U. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright not...
[ "dkmaster@dkmon.com" ]
dkmaster@dkmon.com
b74ad33e632198ba342a255f54d4a25b1116e952
e040e5f33a443fa8ca313968a97471cf9d9db87c
/vagrant/tasks.py
7094094b2f8d5d55fb20e7f4d2c1131ddd72ff8f
[]
no_license
chrisseto/Archiver
63605e977849274648195b231b06849e4f365152
849e30dd0f6fe177ecd0efd94a2b55d7993ebe02
HEAD
2016-09-11T06:34:50.692644
2014-09-04T19:46:41
2014-09-04T19:46:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,361
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from invoke import run, task @task def provision(inventory='hosts', user='vagrant', sudo=True, verbose=False, extra='', key='~/.vagrant.d/insecure_private_key'): """Run the site.yml playbook given an inventory file and a user. Defaults to provisioning the vagrant ...
[ "Chriskseto@gmail.com" ]
Chriskseto@gmail.com
630d1956e0b63d64523db795b9be2b9148d32cde
5cb98473ea9972d0a9a0278cde9b6ee8264f9bac
/01. Jump to python/chap05/5_6/260.py
3716f386db385102e9e74387bd614dd0a58e1cff
[]
no_license
libus1204/bigdata2019
fd85dbcd8c89db991ab5c3efa11ff85466a823f8
5e9a6fa2c340c1fcd2840889ba40c7b805926558
refs/heads/master
2020-04-21T10:56:33.519490
2019-04-15T05:28:19
2019-04-15T05:28:19
169,503,607
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
import time index = 1 while True: print(index) index += 1 time.sleep(5)
[ "libus1204@naver.com" ]
libus1204@naver.com
6d9695e33af76ad842572e35c2345d53cbad1a2a
1b10cfc8ed350baea39e4d265d2378c3da4cd994
/plugin-sim/local.py
2c07a963cdc79cf8adee95b46bade25d12f3d13d
[ "MIT" ]
permissive
albertcrowley/coinstac-search
e382cc0ec401d42fd75a548e9f8d014b5fc02387
731d38644e1c7dc4c9b65fb986c824ed11a33e8c
refs/heads/master
2020-03-29T23:16:00.571684
2020-02-24T19:52:01
2020-02-24T19:52:01
150,464,340
0
0
null
null
null
null
UTF-8
Python
false
false
2,000
py
#!/usr/bin/python import subprocess import sys import json import os from nidm.experiment.tools.rest import RestParser if 'DEBUG' in os.environ and os.environ['DEBUG'] == "1": directory = '/opt/project/' else: directory = './' # # To run as a test: # # docker run -e "DEBUG=1" -v /home/crowley/coinstac-se...
[ "albert.crowley@tcg.com" ]
albert.crowley@tcg.com
181948742c2599fe0d7f49260c2f25dc93941c71
4c37dd485e8415810e7aa5b8dce963f48c9378ba
/singlemovieclawer.py
672c791d8e1de63b62788fc7697d7ea2ce9729e3
[]
no_license
biyuxuan12/zona
0593c6e54938d6c5efba3d5911860e821f6783e0
2d033820bb0ae8d14a1c2797bd8a403b2992a183
refs/heads/master
2020-04-26T17:01:08.441632
2019-03-04T07:55:00
2019-03-04T07:55:00
173,699,135
0
0
null
null
null
null
UTF-8
Python
false
false
4,174
py
# -*- coding:utf-8 -*- import re import socket timeout = 100 socket.setdefaulttimeout(timeout) import threading import urllib from urllib import request from bs4 import BeautifulSoup import dbsetting import datetime as dt import sys flag=0 dict={} myclient = dbsetting.myclient mydb = dbsetting.mydb # -*- coding: utf-8...
[ "48197709+biyuxuan12@users.noreply.github.com" ]
48197709+biyuxuan12@users.noreply.github.com
c36e9f213f21c497cd2a8eb0ebdb30eb59bba41e
3f82466567c664a14c18ea03df2ddcb30678175e
/brain_Tumor.py
6558b103566c0e171c8d8f0b099ed52884707747
[ "MIT" ]
permissive
Sumanyu123/An-Efficient-Brain-Tumor-MRI-classification-using-Deep-Residual-Learning
ec295d75fca6199fa152ad556fd0d25054dba8a6
2176806f39e4a1054461fa55b7a399345acca5e8
refs/heads/main
2023-08-24T19:30:59.522101
2021-09-21T19:07:20
2021-09-21T19:07:20
409,250,074
1
0
MIT
2021-09-22T15:05:53
2021-09-22T15:05:52
null
UTF-8
Python
false
false
17,418
py
from __future__ import annotations __doc__: str = r''' >>> Paper Title: An Efficient Brain Tumor Classification using Deep Residual Learning. >>> Paper Abstract: Brain tumor categorization is essential for evaluating tumors as well as determining treatment ch...
[ "noreply@github.com" ]
Sumanyu123.noreply@github.com
f3a8f4fa0afc7f7f1ea26142d7b365249322a846
395b49dd992103e905c97a7b569eb21c1e887791
/rectangulo.py
aeaef65359087b466480797c97c8026cff31b50b
[]
no_license
joshuaavalos74/Ejercicios-en-clase-2017
e728995e05b42e9a30d7fd73e5454ab8ff60c898
34789d0a3e17fab55039224e438f7f9f336fecde
refs/heads/master
2021-01-11T19:17:48.730605
2017-09-05T16:19:50
2017-09-05T16:19:50
79,346,427
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
def rec(alt,anch): r="" for i in range (0,alt): r+= ("*"*anch)+"\n" return r
[ "joshuaavalos74@gmail.com" ]
joshuaavalos74@gmail.com
326d8619cb7051110fe5797a4c857b43a2ce39ff
4f822a3bfadf6d8cb8a842a9dcd6689d5cd99b8f
/testing4/a1.py
cea6ddea707213f88d15a408c14195bc3078fd05
[]
no_license
ashishsingh14/Machine-Learning
71e148fdcc0695ed8c71014674f44ca41001285f
0e6830b229fd39c5540b1866e8bb4400ac785950
refs/heads/master
2020-05-29T16:40:42.469253
2016-04-30T08:03:02
2016-04-30T08:03:02
56,255,204
0
0
null
null
null
null
UTF-8
Python
false
false
6,951
py
import sys, os from sklearn import cluster import numpy as np from matplotlib import pyplot import matplotlib.dates as mdates from datetime import datetime from math import sqrt import pandas as pd from operator import itemgetter from mpl_toolkits.mplot3d import Axes3D def plotrelationships(): days = np.genfromtx...
[ "ashish.iitr2015@gmail.com" ]
ashish.iitr2015@gmail.com
116006e27e9db0ac8a63a39f89b241ebcd2a358a
3554ca28e1cf94fac1173cfee0498e974872561f
/examples/utils/loggers.py
6829522c3bcd51222c334db31bbc7ebb0e7b21d9
[]
no_license
tchaton/lightning-geometric
4a5aeec847df317804f28772554b411923271019
a8348aa327d240285a921cb2f927c8f94139ea3f
refs/heads/master
2023-03-28T15:25:08.060346
2020-10-03T17:43:27
2020-10-03T17:43:27
294,764,248
44
6
null
2021-04-04T09:23:50
2020-09-11T17:34:52
Python
UTF-8
Python
false
false
1,733
py
from typing import Dict import shutil import os import subprocess import hydra import inspect from hydra.utils import instantiate from pytorch_lightning.loggers import WandbLogger def initialize_WandbLogger(*args, **kwargs): keys = [k for k in inspect.signature(WandbLogger.__init__).parameters.keys()][1:-1] ...
[ "thomas.chaton.ai@gmail.com" ]
thomas.chaton.ai@gmail.com
89dffaba38711b93fdcb658ebbf0b28432889f78
113b962bd5e2eb770067bd374a15dfe8a1c2d09f
/py_scripts/get_mappedcount_byLibID.py
8a5cee444afcf4ef2e1d1d2b47beaaa11f6be665
[]
no_license
aungthurhahein/biotech_script
ecce51950bcef69405843da12ece2f84ea5541d6
2fda699343e6c46543fa1df2412c8ca2f2622cda
refs/heads/master
2020-12-24T06:20:13.028141
2016-07-06T15:23:34
2016-07-06T15:23:34
25,574,741
5
0
null
null
null
null
UTF-8
Python
false
false
827
py
""" # get occurences of ref_ids by Lib_IDs # modification tips: file type, column of file ids # __author__ = 'atrx' # Date: 22012015 """ import sys from Bio import SeqIO usage = "Usage %s infile" % sys.argv[0] # specific massage for no input try: fastafile = sys.argv[1] contigid = sys.argv[2] except: pri...
[ "aungthurhahein@gmail.com" ]
aungthurhahein@gmail.com
b1a61ea569ceff44af77a9d5860273ddbd1e7943
56a40305c2d71d88562ddd0e448415ab118790f1
/backend/polls/tests.py
fc6ef19a5630ba278fb02c288434c80169e1b70c
[]
no_license
KatherynRizek/states-countries
e990798ca8d61914eea33b5ca04aea54560ae555
1aa0210228d04a902b56ecc45c6d712fc7ebca32
refs/heads/master
2021-09-28T11:04:17.893622
2018-06-07T14:39:37
2018-06-07T14:39:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,034
py
import datetime from django.test import TestCase from django.utils import timezone from django.urls import reverse from .models import Question class QuestionModelTests(TestCase): def test_was_published_recently_with_future_question(self): """ was_published_recently() returns False for question...
[ "katheryn@kosmond.2ldxhoqz4w0efi5ajh3u0k0m2g.bx.internal.cloudapp.net" ]
katheryn@kosmond.2ldxhoqz4w0efi5ajh3u0k0m2g.bx.internal.cloudapp.net
ad2e9c6b207b388177519bbb6dfad9c71c71c217
b78d46eed29dcea6a0679744fcdfecac1e5f15bb
/dir_cleaner/clean.py
db86f1a453e8715935b2164be94224afdd0511c9
[]
no_license
blzzrd/things-and-stuff
0ce9a975ef096fddd63b088a9f73e424409ad392
dd566465a3281de8edf8e42aefebd9a32d32f962
refs/heads/master
2020-04-05T09:26:36.226300
2019-11-21T22:02:57
2019-11-21T22:02:57
156,756,770
0
0
null
null
null
null
UTF-8
Python
false
false
846
py
# Import the OS Module, the Time Module, and the System Module. import os, time, sys # Get the current working directory current_path = os.getcwd() # Get the current time. now = time.time() # os.listdir returns a list of files/dirs in the specified directory. files_removed = 0 for files in os.listdir(current_path): ...
[ "alexcast001@gmail.com" ]
alexcast001@gmail.com
98b96256d9b49f574f1e9e179f2affae1bc20855
4cbb9e2213b04b21ab2f283d29cedb9585b26d9b
/setup.py
a7c929b111a7f8bc253d416c660f9025065d7f6f
[ "MIT" ]
permissive
CostRagno/geopolygon
a859bc1f08623b201ece5605536edbb92bfa1335
f9113f606866f2f58920cefeebe5a1220b2e5a9e
refs/heads/master
2020-09-05T08:23:21.720871
2019-11-17T10:39:32
2019-11-17T10:39:32
220,040,015
3
2
MIT
2019-11-17T10:39:34
2019-11-06T16:21:07
Python
UTF-8
Python
false
false
2,076
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 6 11:12:50 2019 @author: costantino """ from distutils.core import setup setup( name = 'geopolygon', # How you named your package folder (MyLib) packages = ['geopolygon'], # Chose the same as "name" version = '0.1', # St...
[ "noreply@github.com" ]
CostRagno.noreply@github.com
fa568dcd357b037a884e720bb3f4b2961b3d5e46
343413e76c09d2bd3d009f382d9dcd19c984d58f
/.history/main_20201229180214.py
e7c1f84e7a234bab2a2ddd0a968647204387eebe
[]
no_license
rozbeh1212/cipher
7b81e640501639cefb0fe6bf100647dd2602291e
abdebdd7d1e155ffab78ce38be8bf28074366c42
refs/heads/master
2023-02-04T13:44:36.892470
2020-12-29T14:44:10
2020-12-29T14:44:10
325,314,022
0
0
null
null
null
null
UTF-8
Python
false
false
991
py
alphabet = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' ] direction = input("Type 'encode' to encryp...
[ "eb.mehrdad@gmail.com" ]
eb.mehrdad@gmail.com
1d5145aa4f4e80bb677c962c61230d3e563afccf
348b807deb1fd6f66538c7c233271a5fb08023e2
/checking_data_type.py
9ab4b8bda700050c22099daef9d18e7c4d59a08b
[]
no_license
SparshRajGupta/MyPythonStudy
6cc25ee134963c7ead47ab67716b30b25f88b739
6026c7e23273ca5fe42c06ac1709b42ea0e5675a
refs/heads/master
2021-01-19T11:23:09.941770
2017-06-04T21:44:41
2017-06-04T21:44:41
87,963,178
1
0
null
null
null
null
UTF-8
Python
false
false
187
py
a = 5 print (a, "is of type",type(a)) b = 3.0 print (b, "is of type",type(b)) c = "Hello" print (c, "is of type", type(c)) d = 1+2j print (d,"is complex number?",isinstance(d,complex))
[ "sparsh.raj.1993@gmail.com" ]
sparsh.raj.1993@gmail.com
c6c4d8e35d0129f75e49d92bfe882b3936490218
56892b9b1cf1f7d674a79d6e2fe0a0a0062441e6
/lipidnetui.py
42cf124484e7e69e361bf30db2b69994ce0a9437
[]
no_license
mannerhybrid/lipidnet
d6ddaf68e898bb67ea94aa08f3af6a9557692c22
7421edc5bf9bcceb5196d353fa100241fc744dee
refs/heads/master
2020-03-19T07:15:41.158632
2018-08-28T02:24:28
2018-08-28T02:24:28
136,099,824
0
0
null
2018-06-05T01:12:20
2018-06-05T00:58:28
null
UTF-8
Python
false
false
5,795
py
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ import tkinter as tk import time from tkinter import ttk from Bio import Entrez from bs4 import BeautifulSoup as soup Entrez.email = "md.nur.hakim.rosli@gmail.com" class LipidUI(tk.Tk): def __init__(self, *args, *...
[ "noreply@github.com" ]
mannerhybrid.noreply@github.com
21a65c73620f2a40477d64a11550fc36704d99f4
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/A3COM-HUAWEI-RS485-MIB.py
6e4c22f4a88026cd33571d0023c92ae07bce922d
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
10,571
py
# # PySNMP MIB module A3COM-HUAWEI-RS485-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-HUAWEI-RS485-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 16:52:12 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
02e4329074b8d1394dd9e02cf79281aea4bc695a
a34be2a91093ca9e9f79c8b54d5d82be0ce99f41
/environments/sumo_gym.py
4d45cdc1618f7c3ef8e7ff0b13f7926468d6c397
[]
no_license
ndeshp2s/sumo-gym
7967e84fd5b752de66403e3a68f012ae55718026
0bfa8753f692dbaa3f494a7d88cc18d8572d3f11
refs/heads/master
2021-06-20T10:19:33.348471
2021-01-21T10:21:05
2021-01-21T10:21:05
172,554,330
2
0
null
null
null
null
UTF-8
Python
false
false
1,446
py
import os import sys import gym if 'SUMO_HOME' in os.environ: tools = os.path.join(os.environ['SUMO_HOME'], 'tools') sys.path.append(tools) else: sys.exit("please declare environment variable 'SUMO_HOME'") import traci from sumolib import checkBinary class SumoGym(gym.Env): def __init__(self): ...
[ "niranjan.deshpande187@gmail.com" ]
niranjan.deshpande187@gmail.com
6b98012278b2ef3e02f3bdbc33e146865eb26807
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/59/usersdata/201/46743/submittedfiles/testes.py
3378d84c86f02731a2be48d3b0f834f8d9cb8366
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
111
py
# -*- coding: utf-8 -*- #COMECE AQUI ABAIXO r=float(input('Digite um raio:')) pi=3,14 a=pi*(r**2): print(a)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
33383a8382f396f8e69cf09f091ef5f293fcf70e
012a52b4d75673af95c7dfa1dbc59cb9b763edb9
/ingest/break_down.py
bc37df9178a9a44af2088bc4b363571dfca0e8df
[]
no_license
oracc/oracc-rest
459f6b252045d8960df5c6394ce4111ae4c9827d
49fe5d0e445d9823ac0bcc0123b2826cad0fb0dc
refs/heads/development
2023-08-07T07:50:14.547683
2023-05-22T14:20:18
2023-05-22T14:20:18
113,996,575
1
0
null
2023-07-25T21:16:56
2017-12-12T13:55:16
Python
UTF-8
Python
false
false
6,429
py
"""A module for breaking down a glossary into individual entries.""" import json import os import subprocess import sys import warnings # By default, we treat most glossary data as strings, but sometimes we want the # REST API to return a different type (for instance, counts should be integers). # The below sequences...
[ "a.georgoulas@ucl.ac.uk" ]
a.georgoulas@ucl.ac.uk
3ab2ab497849cf95c4e137ee698165d20cbe687f
1939f5b78e6dbd0675f6f2a9a0f4f49c2b069389
/instagram/src/instabot.py
91bd65f0544dd187a1655c570d6dcb9774751ecf
[ "MIT" ]
permissive
pavel-malin/instagram
cb7988d9fbfad14911bf39567f7b2f6336b1fb34
b53f00c20521f46f5836946a499f476859d431f5
refs/heads/master
2021-03-16T07:54:57.942684
2017-11-20T11:23:46
2017-11-20T11:23:46
111,401,293
0
0
null
null
null
null
UTF-8
Python
false
false
36,349
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import atexit import datetime import itertools import json import logging import random import signal import sys if 'threading' in sys.modules: del sys.modules['threading'] import time import requests from unfollow_protocol import unfollow_protocol from userinfo impor...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
9aa3ab83c5304e5dd042b22eef1c00f745172a1a
b032e30b00ee9a83b6a782b3390ee034f9b79aff
/bin/get_today_ticks.py
a3f1b91350721e7cc1117ef33275ffaa1d7c1781
[]
no_license
gedong009/stock-selection
ace9cc721bc8790dfa40388a7af014e400976359
eab69921e422a3e0d7f5cd32c15f4bb98c493a78
refs/heads/master
2021-04-27T04:42:28.235282
2019-06-01T02:51:28
2019-06-01T02:51:28
122,584,272
0
0
null
null
null
null
UTF-8
Python
false
false
2,796
py
#encoding: utf-8 import pymysql import tushare as ts import sql_model import pandas as pd import numpy as np from debug import p import threading import code_redis import datetime import time import debug def dd(code, mysql_obj=None, threadName=None): now = datetime.datetime.now() # 周末退出 if now.weekday()...
[ "gedong009@qq.com" ]
gedong009@qq.com
fadcabb3f730cb88d0fc2352df06bd1a08b79edb
4a4e214268df1ba7b24c1ee4e7a4439055e5d0f2
/k_closest_points_using_heapmax.py
b69c010979f4ac4cc612d708a42f143e0bbe4f01
[]
no_license
arturoaviles/k_closest_points
5a1fc3b0bd024f600f039fa837e3b957bc7b6a9a
9d9c315ca615f016908a7641ff4ad6b56c06f1b6
refs/heads/master
2020-04-30T21:30:15.325606
2019-03-22T07:42:16
2019-03-22T07:42:16
177,094,427
0
0
null
null
null
null
UTF-8
Python
false
false
789
py
import heapq points = [ (-2, -4), (0, -2), (-1, 0), (3, -5), (-2, -3), (3, 2) ] * 2000000 def closest_points(points, k): # print(points) arr = [] for coordinates in points: x = coordinates[0] y = coordinates[1] d = (x ** 2 + y ** 2) ** 1/2 target = tuple((d, x, y)) ...
[ "aaviles@nearshoremx.com" ]
aaviles@nearshoremx.com
4e00a1dbf4061dd58654ba69bca13d9e6499f794
c10e2a73d15bbbeeda9ceb5321fc423b0b2ec98c
/mysite/settings.py
07fc9230f56c09403d471ae021b61cfb295d20df
[ "MIT" ]
permissive
bennett39/pulitzers
9822c5628901ea80d90fdb162148d5bdf0dc509a
73b932275fe61af204c6a681f43778317c97c0fb
refs/heads/master
2023-06-09T00:59:16.035391
2023-05-24T21:36:15
2023-05-24T21:36:15
188,304,164
0
0
MIT
2023-01-03T23:30:45
2019-05-23T20:46:29
CSS
UTF-8
Python
false
false
3,629
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.2.1. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os imp...
[ "34491412+bennett39@users.noreply.github.com" ]
34491412+bennett39@users.noreply.github.com
9ebb3ef4090282a4cf52fcc2b5888d18b54359f9
9308f06d79f7045f4a2866b103384231751e21b8
/fetchURL-es.py
c71adb38e942c784d093a37079c34fa65ddbfdf5
[]
no_license
orgullomoore/watchingamerica
ef51251caa74916599f787a6197e9c099d02be7a
d08f26fe73d027b68e4cb6b3d7a0b92ba9d80897
refs/heads/master
2016-08-04T15:15:49.906676
2014-07-11T17:11:30
2014-07-11T17:11:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,007
py
import urllib.request from urllib.error import URLError import urllib import codecs import time import re currtimestr='' currtime=time.gmtime() for i in currtime[:6]: currtimestr+=str(i) logName='Log-'+currtimestr+'.html' def fetchURL(someurl): print('Fetching '+someurl) opener = urllib.request.build_opene...
[ "orgullomoore@gmail.com" ]
orgullomoore@gmail.com
62478de103e5b4226fe148f74b655fb80192b169
e2919a492ffb1762534739f81a4f78fdb4dcb17f
/sql/primer_1.py
ce6b39fadae4796caf7c6b1d3ac7133944521daf
[]
no_license
AndreyDacenko/traning
4ab94ead5a64245ca775cc03967598427f680d0f
f6c594ef888c42e9d6f16bfd4ac004e1ac00b139
refs/heads/master
2021-12-10T23:40:05.883178
2021-08-11T16:52:27
2021-08-11T16:52:27
202,687,281
0
0
null
null
null
null
UTF-8
Python
false
false
1,511
py
import sqlite3 # Сперва создадим соединение с нашей базой данных. # В нашем примере БД - файл расположенный на компьютере, он так же может быть расположен и на сервере. # Важно помнить что в реальных задачах нельзя коммитить базу данных в репозиторий! conn = sqlite3.connect('Northwind.sl3') # Укажем тип получаемых дан...
[ "andrey_dacenko@mail.ru" ]
andrey_dacenko@mail.ru
84a2a9db3cd847433912ae84459035f42045f6bc
da3e36172daaf863ef73372f8c36cc2629ec1769
/UMDC/03/17g.py
ce55196990dd77c97e38c5ebc70122baad56ce1d
[]
no_license
mentecatoDev/python
08eef1cb5a6ca2f16b01ee98192ccf1a65b9380a
80ddf541d3d1316ba8375db8f6ec170580e7831b
refs/heads/master
2021-06-30T07:03:51.957376
2021-02-22T09:40:46
2021-02-22T09:40:46
222,322,503
3
4
null
null
null
null
UTF-8
Python
false
false
2,333
py
""" Ejercicio 17g Escribir funciones que resuelvan los siguientes problemas: g) Dadas dos fechas (dia1, mes1, año1, dia2, mes2, año2), indicar el tiempo transcurrido entre ambas, en años, meses y dias. Nota: en todos los casos, involucrar las funciones escritas previamente cuando sea posible. """ def bisiesto(anio)...
[ "favila@iesromerovargas.com" ]
favila@iesromerovargas.com
c63356a685b663f6948f971cbbea4317c9ee4d59
bc46638835f1f248550b05c49450ef6e632cec50
/Ubidots-Finaltest.py
460b2ba2c49049a7be2c04efd128cd3d75ec97d5
[ "MIT" ]
permissive
shijiediqiucunzj/Energy-Management-of-HVAC-Systems
e9da10104b8a1a5a509ec119ded2319356b7dc3b
64fced60248500ab59e953ad7628ccc533cf983e
refs/heads/master
2022-07-23T23:04:20.685016
2017-05-28T08:50:45
2017-05-28T08:50:45
182,559,359
0
0
MIT
2022-06-02T21:22:30
2019-04-21T16:53:46
Python
UTF-8
Python
false
false
4,091
py
# FYP2017 # Program to establish ZigBee communication between raspberry Pi and arduino # Complete control of HVAC elements based on commands sent from the Pi # Author: Kunal Jagadeesh # License: Public Domain import time import serial from ubidots import ApiClient one = 1 zero = 0 f = open('Ubidots_APIkey.txt', 'r')...
[ "kunal.jagadish07@gmail.com" ]
kunal.jagadish07@gmail.com
eee6c26c594ab5b9fa6e26288db0e7e9dee3d498
ff886f5f947460576feaec2a049f6a9f78f2a63f
/core/management/commands/wait_for_db.py
460989d579a419bc219cba5e76cc9fcb204aa701
[ "MIT" ]
permissive
devendraprasad1984/loan_payment_app
2bc927afbc084504bb10a959105d72f6f419e2c8
1a4c31d03a8c5ecf4dae2a981373649f4f699aa3
refs/heads/main
2023-07-21T19:00:40.692978
2021-09-09T03:36:04
2021-09-09T03:36:04
400,111,124
0
0
null
null
null
null
UTF-8
Python
false
false
707
py
import time from django.db import connections from django.db.utils import OperationalError from django.core.management.base import BaseCommand class Command(BaseCommand): """django overriding default app run until database is made available""" def handle(self, *args, **options): self.stdout.write('w...
[ "devendraprasad1984@gmail.com" ]
devendraprasad1984@gmail.com
8ff182862ff5c1544e49022bd0b028e0b7fd99a2
2d8517cb6ce3f1eefaffc5bf3acab58eb0331e38
/tools/inputs/animals.py
0075001481b1099da0808854933c89e7f7ba0236
[]
no_license
ryyst/conjurer
e4ce6e270b11d481ff99f78dad472a4cb5738bb7
4db5aa7e4daa87b3b26a6d232a33b950de299a55
refs/heads/master
2023-07-10T02:47:22.282657
2021-08-08T21:07:48
2021-08-08T21:07:48
313,402,786
7
2
null
null
null
null
UTF-8
Python
false
false
724
py
# Most animals already have their own icon that the game provides, # so this is only for the "unofficial" enemies. CUSTOM_ANIMALS = [ {"path": "entities/buildings/lasergun.xml"}, {"path": "entities/buildings/lukki_eggs.xml"}, {"path": "entities/buildings/spidernest.xml"}, {"path": "entities/buildings/fi...
[ "rpuolak@gmail.com" ]
rpuolak@gmail.com
0d543afecf4a0144548d3602be45f8e851f1657b
a61dae5e34605f708cec4ba661a3e6d2ed78ab73
/Weather/GUI.py
595c6a018becfbd6c4cf78563b0fa83b0d9947dd
[]
no_license
ChyiYaqing/PythonPrj
a475c2f83db2a607377d24a78a8c0aa1220229e3
a7f8e9c0263b4f0f3827c5488ab4fed002962a1b
refs/heads/master
2020-06-02T01:27:05.095901
2017-06-25T12:48:30
2017-06-25T12:48:30
94,090,551
0
0
null
null
null
null
UTF-8
Python
false
false
8,424
py
#!/usr/bin/env python3 #-*- coding: utf-8 -*- try: # for Python2 from Tkinter import * ## notice capitalized T in Tkinter except ImportError: # for Python3 from tkinter import * ## notice lowercase 't' in tkinter here from Weathers import * import urllib2 from threading import Thread import tkMessageBox...
[ "chyiyaqing@gmail.com" ]
chyiyaqing@gmail.com
95414f7ed3b48f7baf6bd13799ea4698d7f6093f
199522cb43b4e2c7e3bf034a0e604794258562b1
/0x0F-python-object_relational_mapping/3-my_safe_filter_states.py
3659d402edd14791ff0d3dce555884770499752c
[]
no_license
jormao/holbertonschool-higher_level_programming
a0fd92f2332f678e6fe496057c04f2995d24a4ac
360b3a7294e9e0eadcadb57d4c48c22369c05111
refs/heads/master
2020-09-29T01:36:20.094209
2020-05-15T03:27:06
2020-05-15T03:27:06
226,915,744
0
0
null
null
null
null
UTF-8
Python
false
false
607
py
#!/usr/bin/python3 """ script that takes in arguments and displays all values in the states table of hbtn_0e_0_usa where name matches the argument. But this time, write one that is safe from MySQL injections! """ import MySQLdb from sys import argv if __name__ == "__main__": db = MySQLdb.connect(host="localhost", ...
[ "jormao@gmail.com" ]
jormao@gmail.com
c026b6ef4d2e37bdbbe47238b809473c7ddfcf8e
d28ab4b215eda33a64dc81e40c824bc008680c18
/python practice/Heap/373_find_k_pairs_with_smallest_sums.py
43bea98c5177694695521bdaf8482168ff44fad2
[]
no_license
SuzyWu2014/coding-practice
f7efc88c78877b841a4fcc8863a39223eca4c307
41365b549f1e6b04aac9f1632a66e71c1e05b322
refs/heads/master
2021-01-23T22:15:34.330828
2016-12-13T05:16:10
2016-12-13T05:16:10
58,106,714
1
0
null
null
null
null
UTF-8
Python
false
false
1,867
py
# 373. Find K Pairs with Smallest Sums # You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. # Define a pair (u,v) which consists of one element from the first array and one element from the second array. # Find the k pairs (u1,v1),(u2,v2) ...(uk,vk) with the smallest sums. #...
[ "shujinwu@oregonstate.edu" ]
shujinwu@oregonstate.edu
83b4ab7c3c4da8d9afb08d03fde9608fa04f4c09
ea8e945af461ae6e5a2dcd9dce244391f14ec695
/yamaguchi/chapter01/knock06.py
60935e99d3fdfeb6fd7aaa78c8b5e626065af9d7
[]
no_license
tmu-nlp/100knock2020
b5a98485e52b88003fa97966c8d6eef292c9f036
1133fa833ea32ad3e54833e420bcb1433f3ec2f3
refs/heads/master
2023-04-09T06:48:04.571566
2020-08-13T05:38:25
2020-08-13T05:38:25
258,825,143
1
2
null
2020-08-12T15:56:56
2020-04-25T16:43:13
Python
UTF-8
Python
false
false
371
py
def n_gram(target, n): return [target[idx:idx + n] for idx in range(len(target) - n + 1)] text_1 = "paraparaparadise" text_2 = "paragraph" X = n_gram(text_1, 2) Y = n_gram(text_2, 2) print(f'和集合: {set(X) | set(Y)}') print(f'積集合: {set(X) & set(Y)}') print(f'差集合: {set(X) - set(Y)}') print("判定: " + st...
[ "noreply@github.com" ]
tmu-nlp.noreply@github.com
a4b3840315ea96ca28729257ee1a111f26226833
87d87c3c621c7f49cb1e7a5a4405aed4ee333857
/.venv/bin/pip3.6
3c859a8ef91b0e61ab44a7c932c77a6958f7b3c6
[]
no_license
victor-s-santos/Workshopgenetica
32296f4b04216013562720688b14eb7fdb2877eb
79233821b8919a564e37e0b6961c4e64b65797e8
refs/heads/master
2021-06-20T14:58:58.110529
2019-06-19T19:31:48
2019-06-19T19:31:48
192,790,662
0
0
null
2021-06-10T21:36:24
2019-06-19T19:17:23
Python
UTF-8
Python
false
false
237
6
#!/home/victor/Django/unesp_apps/.venv/bin/python # -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "victorsantos.py@gmail.com" ]
victorsantos.py@gmail.com
3e4e5435d302503d3bc1b51a2fe2084deea94028
ca4d1f815784ce137c27b2ddfe6515ca0cf7b5b5
/python/IKnow/iknowFlask.py
c96850eb52cc67debe8c2dad0ceed73310f6f785
[]
no_license
jacobL/iknow
152a2d905c0178cbd7d907c2a0d4546ede3c6abb
135000f94cac4dc450006eddc94415edd0ac3a6e
refs/heads/main
2023-05-30T16:56:31.668948
2021-06-25T07:43:49
2021-06-25T07:43:49
380,092,486
0
0
null
null
null
null
UTF-8
Python
false
false
108,885
py
from flask import Flask from flask import jsonify from flask import request from flask_cors import CORS, cross_origin from collections import OrderedDict from werkzeug.serving import run_simple import pymysql import pyodbc import datetime import time import json app = Flask(__name__) app.config['JSON_SORT_KEYS'] = Tru...
[ "ukljm.2005@gmail.com" ]
ukljm.2005@gmail.com
6700c063471e30cfe487dee40901fad3323c7060
404ad77945e7ff8a57dac8753b00cb7187bd7f4e
/105/001.py
dce8d85ee6ea0834af75a97b3fa8fd5befcc6430
[]
no_license
dennisliuu/Coding-365
5d773493fbf69bce03de20e4a03c5fdf108612f6
8e1cab65837ebe2cb36fa0e4b74fb07d0ee6b081
refs/heads/master
2020-03-24T22:33:58.299791
2018-08-07T05:06:21
2018-08-07T05:06:21
143,091,281
0
0
null
null
null
null
UTF-8
Python
false
false
2,241
py
class Stack: def __init__(self): self.items = [] def isEmpty(self): return self.items == [] def push(self, item): self.items.append(item) def pop(self): return self.items.pop() def peek(self): return self.items[len(self.items) - 1] def size(self): ...
[ "dennisliuu@gmail.com" ]
dennisliuu@gmail.com
041350efe6b160a115e9e22c301c74a34ff53193
71257430418ed7410ddffb6df692a5e816eb53b7
/61hunter.py
ed47aa6e3c043824bfe5d9b810408fd96bd965c2
[]
no_license
aarthisandhiya/aarthi
917283541b9aa133db5d50a3b68eda2a10c38af7
00b31831832ea573dfd886eb0001ad824325136d
refs/heads/master
2020-04-15T05:10:42.585357
2019-07-21T13:57:58
2019-07-21T13:57:58
164,411,781
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
a=int(input()) c=0 b=[int(a) for a in input().split()] u,v=map(int,input().split()) for i in range(0,len(b)): if b[i]==u: while b[i]<int(v): c=c+1 i=i+1 print(c)
[ "noreply@github.com" ]
aarthisandhiya.noreply@github.com
0ac0305052893eb0942f039d2bc543f72d5454e5
cf09d6430e37b5460d7208d6cae6d3af0fa15925
/jsonbot/jsb/lib/reboot.py
9209bd73573898a076abeb23cc8bd8fa26b3fd6a
[ "MIT" ]
permissive
Lujeni/old-projects
2bbf0ff89852a3e4a9677475a615d2ee4b07d635
657304c8b017a98935de9728fc695abe8be7cc4f
refs/heads/master
2021-03-12T23:08:34.054777
2014-10-16T23:10:15
2014-10-16T23:10:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,632
py
# jsb/reboot.py # # """ reboot code. """ ## jsb imports from jsb.lib.fleet import getfleet from jsb.imports import getjson json = getjson() ## basic imports import os import sys import pickle import tempfile import logging import time ## reboot function def reboot(): """ reboot the bot. """ logging.warn(...
[ "julien@thebault.co" ]
julien@thebault.co
8d171a5022415dbcc2597a1fcc88f810666aa159
227b4e6af73f56f7d17b79f9351b7b10b7b3c842
/17/17-1-3.py
eefb39346e30e62a6379d1f4ac78e51939476103
[]
no_license
phootip/advent-of-code-2018
32782e8525475efa2cc93c21e9c93d746483a71d
a335f2b333bb01caef6822592c051e3f13686d5d
refs/heads/master
2022-12-10T15:01:50.349531
2018-12-28T17:26:30
2018-12-28T17:26:30
161,011,308
0
0
null
2022-12-08T01:38:12
2018-12-09T06:25:29
Python
UTF-8
Python
false
false
2,813
py
from PIL import Image, ImageDraw # f = open('./17/17.txt') f = open('./17.txt') # f = open('17-test.txt') nodes = [(500,0)] revisit = [] maps = [['.' for i in range(2000)] for j in range(2000)] for line in f: line = line.strip().split(',') line = list(map(lambda x: x.strip().split('='),line)) line[1][1] = list(...
[ "phootip.t@gmail.com" ]
phootip.t@gmail.com
e25ee8942b20a0704262265705ad3ad2b5b7b407
f99f30752e9bb9e023b37c731f64fb2155ac3daf
/03/zip.py
69160f8e55ebbe1da4acd417e0cd571fe8488b3e
[]
no_license
chu83/python-basics
148ff6977f5ca04775951d90ed1f5f763c51a9ff
19fe0937842c668f604876be0aeb0962a2630dd2
refs/heads/master
2023-01-19T01:29:25.203738
2020-11-29T18:34:33
2020-11-29T18:34:33
311,258,549
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
print('========== zip() 함수 사용 예 ===========') s1 = ['foo', 'bar', 'baz'] s2 = ['one', 'two', 'three', 'four'] z = zip(s1, s2) print(z, type(z)) print('========== 순회1 ===========') for t in z: print(t, type(t)) z = zip(s1, s2) for a, b in z: print(a, b) print('========== 순회2 ===========') z = zip(s1, s2)
[ "59534807+chu83@users.noreply.github.com" ]
59534807+chu83@users.noreply.github.com
318d59a2c7fd3d07c465da350c7d3b65dd8f4934
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/ivs_write_f/playback-key-pair_import.py
e6227c4b54f4786793a1d735b01d2cf516e72ad9
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
773
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html if __name__ == '__main__...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
0352eb84ce1933e896691dcfd8d602529a7c6ac8
6e66abb51d4d4bbf3c335e19530d439c2615ff4e
/deepfake/deepfake/skp/etl/compute_image_hashes.py
8442a845e134be8e0c3d046f7232de52cda984f1
[]
no_license
yihhan/3dcnn_code
19ed5aafe62e7e53c259dedd724b9e970940a870
3483e2840c68e69a90304dc4922657e0e9a590d8
refs/heads/main
2023-07-31T04:37:00.616853
2021-09-20T03:21:07
2021-09-20T03:21:07
408,280,559
0
0
null
null
null
null
UTF-8
Python
false
false
1,445
py
import pandas as pd import numpy as np import decord import imagehash import glob, os, os.path as osp from tqdm import tqdm from PIL import Image def load_video(filename, max_frames=100): vr = decord.VideoReader(filename, ctx=decord.cpu()) return np.asarray([vr[i].asnumpy() for i in range(max_frames)]) def...
[ "tanyihhan@gmail.com" ]
tanyihhan@gmail.com
03a6dcc503549409d4e92b79d56834442c467eaf
ddef88284b7ec08364f99b43d74a99410f49303e
/code/Assignment1_2D_RNG/2DRandomNoGens.py
19636408deeb9df085d1eacb297e2e2b13a0fc7e
[]
no_license
IDS6145-Fall2019/assignment1-amajoy
6f9094eb126055daf6fe9b4dcc162ca74abd7f7f
5fb31ba4271f6f35b47c5c72e67ca136bb7ead82
refs/heads/master
2020-07-23T01:00:41.524726
2019-09-24T00:20:11
2019-09-24T00:20:11
207,392,730
0
0
null
null
null
null
UTF-8
Python
false
false
2,450
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Sep 21 21:54:35 2019 @author: Amanda """ import matplotlib.pyplot as plt import random import sobol_seq #time to make plots - I can't figure out how to for loop this #Pseudo-Random up top plt.subplot(2, 5, 1) x100 = [random.uniform(0,4) for x i...
[ "noreply@github.com" ]
IDS6145-Fall2019.noreply@github.com
9aa6bf4b4b666c0fdab75fe77819b9f91a25419b
3756d737b51b9d1518f689435f3414afec064f5d
/GUI/Spin Box Widget/Spin_box_widget_number.py
57b3f7a8853b7e9f7f5d4d38582cc58541ed0745
[]
no_license
SHUBHAM-BHATTACHARYA/Python-Program
49e6e6b6e83b1313965c40d194df69b8ab580568
79fdba2904d01eb6ff1c161557673c7f14b9c225
refs/heads/master
2022-11-12T18:06:06.909797
2020-07-09T03:35:27
2020-07-09T03:35:27
278,025,327
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
from tkinter import * window = Tk() window.title("Welcome ") window.geometry('350x200') spin = Spinbox(window, values=(3, 8, 11), width=5) spin.grid(column=0,row=0) window.mainloop()
[ "noreply@github.com" ]
SHUBHAM-BHATTACHARYA.noreply@github.com
4cdb8d4ce152583225c607c387d527a82eced8d3
7c9707f0f1cb8e633ac605934f3dbd8036790868
/projet/rpi_manager/models.py
f61c7c196096c5f2351a5ccd5919b2269e0b3f2e
[]
no_license
ometeore/hydropo
891e1abd4c1b8ccd0a3b27a043abf894b70ceb5b
324076d4b7ddbd14e718c424eb24d129c2a2243c
refs/heads/master
2023-06-14T08:35:55.838469
2021-07-04T16:28:09
2021-07-04T16:28:09
290,198,666
0
0
null
null
null
null
UTF-8
Python
false
false
3,146
py
from django.db import models from django import forms from datetime import datetime from channels.layers import get_channel_layer from asgiref.sync import async_to_sync class Rpi(models.Model): name = models.CharField(max_length=200) uid_name = models.CharField(max_length=200) last_connect = models.DateTi...
[ "pilt64@hotmail.fr" ]
pilt64@hotmail.fr
9dad79201f18f38def9a65250a4156fddfac10ec
0a01b20dade2c968ebb0b4f4f8425c22b1c9b8c4
/WebApp/models.py
55b15b803a321a5580dbb1a33fdd896e1a8ba27a
[]
no_license
avitko001c/django_project
216ca1b2953c6c92a2db63961a8567dfd6d6294f
1bca2809b30ef7523d628f38e4d219f0f79bf6cb
refs/heads/master
2022-12-13T22:58:36.222258
2020-09-13T23:40:45
2020-09-13T23:40:45
295,257,412
0
0
null
null
null
null
UTF-8
Python
false
false
798
py
from django.db import models from django.db.models.fields.json import JSONField from django_mysql.models import ListCharField from django.db.models.fields import * from django.utils.importlib import import_module # Create your models here. class Email(models.Model): headers = JSONField() email_to = ListCharFie...
[ "andrewvitko@gmail.com" ]
andrewvitko@gmail.com
46dadcb89023a1f732e536ca17264b8cf5a87555
f65e1d0f746d1c36392fe791b0277f6d3887cd95
/print.py
dc9f4ab391cf9cd0e4eb58223a4e0bce82683056
[]
no_license
trinitruong/learn-python
bb84189766ddcdd049da471374a3364aeba0c0a0
0148880e4cab028012b0c3505994a8bc92cf4c7b
refs/heads/master
2021-02-08T02:54:48.425636
2020-03-15T05:44:23
2020-03-15T05:44:23
244,101,302
0
0
null
null
null
null
UTF-8
Python
false
false
852
py
#to print verbatim use print() function def main(): # print a string to the console/terminal #use single or double quotes inside parenthesis to create string print("something") # print a variable #a is the variable, 321321 is value assigned to variable a = 321321 print(a) b = "afhgdsgd...
[ "trinitruong001@gmail.com" ]
trinitruong001@gmail.com
b1d93ea2d6cbc76b83a04f1dfc360dfdaf7bddcd
eb380d17c209c77adcb78240b6a03f64f3166d03
/binfiles/dirs.py
4074772dd54f6722c154d623a496a4db604662c7
[]
no_license
abatkin/dotfiles
2cee24e7b97d56d6cc15747ab4fff4f5a0743aa5
48ae654527c666013dd9b5f8a4c0e88335c0db43
refs/heads/master
2023-07-06T05:52:37.580612
2023-07-04T20:33:28
2023-07-04T20:33:28
8,023,147
0
0
null
null
null
null
UTF-8
Python
false
false
2,568
py
#!/usr/bin/env python3 import sys import subprocess import configparser import argparse import os SPECIAL_SECTIONS = ["app_config", "DEFAULT"] SECTION_TYPES = {} def launch(launch_string, arg): args = launch_string.split(" ") def convert_arg(item): if item == "$": item = arg ret...
[ "adam@batkin.net" ]
adam@batkin.net
c861a7bd871a32d79e69a95945186ca90b111af0
5e97b099899704a7525b6b0ce98dcf761bbf6763
/finance/blotter.py
fb88f514a7cc740df3298d08fe4c58a43bc73f56
[]
no_license
fswzb/zipline
004d76d1658ec9185c125de96513e7312923205f
a504049d46f0d4518375b525c7b6ae083b4a3ea0
refs/heads/master
2020-05-23T10:20:57.972088
2017-01-12T17:23:27
2017-01-12T17:23:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,740
py
# # Copyright 2014 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
[ "liu.jy.nku@gmail.com" ]
liu.jy.nku@gmail.com
69bf16c29bc8a1c8b61bf4115da050289a9cb9c5
1d51cca8970f466f88c97aa36f4b8cd76bd50583
/bits_iot_button_pressed.py
12769c0a231cc02cd971c13cd0f3115f9d5a405e
[]
no_license
hughgardiner/bits-iot-button
1009051bc474b52e39eeda008088105b492cfcaf
2155814bff46837ef9d2bb0debc3e3fe9c461762
refs/heads/master
2020-04-30T06:06:17.609488
2019-03-20T03:09:54
2019-03-20T03:09:54
176,642,512
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
import requests def lambda_handler(event, context): request = requests.post(url = 'https://hooks.slack.com/services/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', json = {'text':'andon IOT Button Pressed'}) return request.text
[ "gardinerhugh6@gmail.com" ]
gardinerhugh6@gmail.com
c36f7a69fafecec3d2e69a8488282cbbc98906bb
90f8077e9460764dc2d90a8ea1d1913e463bfcef
/gui.py
ca12f5061382e762efca1030aadf89dbc8fa188a
[]
no_license
area515/rfidreader
bf82808ffcea1207752520aeadf0a6c20672467c
4460b79ce96ff45a83e42b8edc2cf26b9ccff9f1
refs/heads/master
2021-01-17T14:02:09.177095
2016-08-03T01:09:29
2016-08-03T01:09:29
18,233,249
8
3
null
2016-08-03T01:09:30
2014-03-29T03:10:03
Python
UTF-8
Python
false
false
3,054
py
''' @author: Sean O'Bryan, Ross Hendrickson ''' from Tkinter import * import Tkinter import tkMessageBox import os import subprocess import rfid import gnupg import pygame root = Tk() root.wm_title("RFID Reader") root.columnconfigure(0, weight=1) # make a solenoid solenoid = rfid.Solenoid(12, 10) # make an rfid ...
[ "stobryan@gmail.com" ]
stobryan@gmail.com
3ebb0f00c40798b1ba5e4fb96bbb2223a3c119af
8cc0a129738ef3b23d678c35cd9e118054990b9a
/calo_social/calo_social/friends/migrations/0003_auto__del_field_relationship_prueba_south.py
dd4485668e0e0e2aacc1109a66f9b706c62c0a72
[]
no_license
adahlquist89/calo
74ac41dc9af72fb32dcccbe24e76410276acbcb2
686c529e32221251383a612694ba254f84a28061
refs/heads/master
2021-01-10T20:10:45.997181
2013-09-09T20:12:14
2013-09-09T20:12:14
12,094,151
0
1
null
null
null
null
UTF-8
Python
false
false
5,306
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'Relationship.prueba_south' db.delete_column(u'friends_relationship', 'prueba_south') ...
[ "fran.dorr@gmail.com" ]
fran.dorr@gmail.com
a3f81763f9e1a8d13b8b807682abb096f73ffb0f
1351256bdbd6d98fa6383a41f8db317ded419c05
/apps/catalog/api/v1/views.py
bb1f9d8b5d7ba46dd395742735ee2d37dd1d7651
[]
no_license
medinan/test
64b0eb7fa593dc2e5fac14e8b09640d760ffc30e
350fcaf141d3611d80368279799b3fb8d1136304
refs/heads/master
2023-09-05T05:50:07.117190
2021-10-25T22:10:12
2021-10-25T22:10:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,218
py
from django_filters import rest_framework as filters from rest_framework import viewsets from apps.catalog.api.v1.filters import ( CategoryFilterSet, BrandFilterSet, ProductFilterSet, ) from apps.catalog.api.v1.serializers import ( BrandSerializer, CategorySerializer, ProductSerializer, Pro...
[ "noreply@github.com" ]
medinan.noreply@github.com
12b51993b07c520189e37f6d63646560f98ae82d
ea83b212a42554d1a783c2d5ad2dc2c4c946f330
/plugin/taskmage2/asttree/renderers.py
03793fbb0c5bf14455a7128772a1803d44ac33a4
[ "BSD-2-Clause" ]
permissive
willjp/vim-taskmage
9e80b5cd7c906221d95feb29e399e7a17b59c44f
adcf809ccf1768753eca4dadaf6279b34e8d5699
refs/heads/master
2022-01-07T16:10:34.696385
2021-12-27T21:05:26
2021-12-27T21:05:26
99,585,518
1
0
BSD-2-Clause
2021-02-10T05:42:43
2017-08-07T14:16:10
Python
UTF-8
Python
false
false
11,401
py
#!/usr/bin/env python """ Name : taskmage2.parser.renderers.py Created : Jul 27, 2018 Author : Will Pittman Contact : willjpittman@gmail.com ________________________________________________________________________________ Description : A collection of classes to render a Parser object ...
[ "willjpittman@gmail.com" ]
willjpittman@gmail.com
6d21cd382eeb98e10bb5bc8a2a202726211def5f
ce6ace34704e74c2a53e9b38b2630876d9cd52e2
/mdias_addons/metro_park_maintenance/models/day_plan_limit.py
8f25985b0d5a8f7e281a0c359a8c74c657e8ef34
[]
no_license
rezaghanimi/main_mdias
e3cfd8033204d8e7e484041f506892621a3e3479
13b428a5c4ade6278e3e5e996ef10d9fb0fea4b9
refs/heads/master
2022-09-17T20:15:42.305452
2020-05-29T05:38:35
2020-05-29T05:38:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
861
py
# -*- coding: utf-8 -*- from odoo import models, fields, api class DayPlanLimit(models.Model): ''' 日计划限制 ''' _name = 'metro_park_maintenance.day_plan_limit' location = fields.Many2one(string='地点', comodel_name='metro_park_base.location') max_repair_after_high_run = fields.Integer(string='高峰...
[ "619851623@qq.com" ]
619851623@qq.com
6ab55be04331c76cccf1ce24dfa50f5dc47cd8ca
4de8ee1711ab8b74f003217ecde93087db69b79c
/src/python/pants/backend/python/dependency_inference/rules_test.py
903e2bb05e825e10dba91dab777479ebf72e7ae4
[ "Apache-2.0" ]
permissive
TansyArron/pants
45b19496a29aa962da22cb83b75e53d3c4ab291a
20c8e11460ef9e7d9bfce12504f27729db7cc929
refs/heads/master
2022-12-09T01:34:39.535612
2022-12-05T20:47:31
2022-12-05T20:47:31
40,982,374
0
0
null
null
null
null
UTF-8
Python
false
false
32,305
py
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from textwrap import dedent from typing import Iterable import pytest from pants.backend.python import target_types_rules from pants.backend.python.de...
[ "noreply@github.com" ]
TansyArron.noreply@github.com
bc22cdb682ffd44df71b11ce3d8efee59f611392
ba74367ce35aec6fb3b0985b03cdc28798d6faba
/ABIE/abie.py
7608b8898989c322ee63f81e8958255351558ae2
[]
no_license
maxwelltsai/ABIE
e2e85163a44f01bbfa3ef4ef2e76666bdbf307ed
a6c36fbd2ce3bfa125a81a1512ff30dcbdcb9c19
refs/heads/master
2021-06-11T01:36:09.466921
2021-04-13T12:36:32
2021-04-13T12:36:32
152,776,610
2
0
null
null
null
null
UTF-8
Python
false
false
13,895
py
""" Alice-Bob Integrator Environment (ABIE), created by Alice and Bob in the Moving Planets Around (MPA) project. Features: 1. The integrator takes input either from the commandline, or from the config file 2. The integrator periodically stores data to HDF5 3. The integrator supports restarting simulations...
[ "maxwellemail@gmail.com" ]
maxwellemail@gmail.com
c02b9d675382a884756e42df5c3b5955974d4bd5
d8521979287af3633ae065c5d187aa4ac9636672
/BlockApp/core/req4register.py
86b4a1ee44ba1a38fbe0b7e69c5666b32e028adf
[ "MIT" ]
permissive
AlbertChanX/BlockChain
3289e74e47221996dcac8c12cdc2e7ddbdd7f9af
5b21145bdd8b742cf7fe3b725f16a18ddf34aacf
refs/heads/master
2023-08-15T11:00:52.973165
2021-09-28T12:34:44
2021-09-28T12:34:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
import requests,json import fire def register(url, node_url): # url = "http://127.0.0.1:8000" pay_load = { "node" : [node_url] } url = url+'/register' print(pay_load['node']) # post data must be json string req = requests.post(url, data=json.dumps(pay_load)) print(req.status_cod...
[ "292368101@qq.com" ]
292368101@qq.com
8621122cc4212144fa368ce62b7b1f138087f702
aecc10302c1a69f27b1cec4173aabcfc2b18706d
/artemis/celery_mq.py
f0c5bbf60f33684184a6ed44db3c8c3a338aaf0e
[ "Apache-2.0" ]
permissive
shangjunimo/ooqitech-artemis
ac6047e8fab8dc3086d1254bc88ba3e5c2cdc566
bd410c274d2bf01fe69423589b19f2b7aabb7ead
refs/heads/master
2023-01-13T16:46:36.559436
2019-09-19T08:06:29
2019-09-19T08:06:29
209,502,880
0
0
Apache-2.0
2022-12-27T15:35:34
2019-09-19T08:33:26
JavaScript
UTF-8
Python
false
false
525
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from celery import Celery from event_consumer.handlers import AMQPRetryConsumerStep from artemis.settings import CELERY_CONSUMER_MQ_BROKER_URL class Config: enable_utc = False timezone = 'Asia/Shanghai' BROKER_URL = CELERY_...
[ "hui.yang@ooqi.cn" ]
hui.yang@ooqi.cn
0fb85e28da39a06a15a5bb8f4c3e0c42615285b3
90b92cc5ec851ba02eb62ef66faac5124d2b4004
/lab.py
bd5c434acf8d08ef2e9b00350a7e116972bdc47b
[]
no_license
CodecoolGlobal/first-game-python-404-groupname-not-found
326b32ad2d30b09f7cdb6fd249d8da75791db8cb
d748b74c8170e070c29b5da91da111c6625621d0
refs/heads/master
2020-06-27T19:50:27.309800
2019-08-01T23:07:27
2019-08-01T23:07:27
200,034,331
0
0
null
null
null
null
UTF-8
Python
false
false
780
py
def openmap(file): # Reads the map.txt file and returns it as grid with open(file, "r") as coords: map = [[char for char in line] for line in coords] return map def printmap(map): # Prints the whole map as a string oneline = [] for lines in range(len(map)): oneline.append(''.join...
[ "krisztian@pometko.hu" ]
krisztian@pometko.hu
f23d62dafdbb77a295d93ac632a4441e517a6c10
c92d5b8509f23444622529aa24d4bc85bf1d3c9f
/main/question47/book1.py
44b832b082eb8ed9403996e4f3f5e5ee8a3f4ad1
[]
no_license
qcymkxyc/JZoffer
75dfb747394018f14552f521413b01a5faa9c07f
28628616589061653a8322d5b400f9af32f2249d
refs/heads/master
2021-07-15T00:53:00.711360
2019-02-10T03:16:52
2019-02-10T03:16:52
149,714,958
0
0
null
null
null
null
UTF-8
Python
false
false
926
py
#!/usr/bin/env python # _*_coding:utf-8_*_ """ @Time : 19-1-24 上午10:58 @Author: qcymkxyc @File: book1.py @Software: PyCharm """ def max_value(matrix): """ 动态规划 :param matrix: List[List[int]] 矩阵 :return: int 最大值 """ n_row, n_col = len(matrix), len...
[ "qcymkxyc@163.com" ]
qcymkxyc@163.com
5802eeeb0ab8d6f8d89deb95c876c1ac27840b2a
4fc9cb4cf01e41c4ed3de89f13d213e95c87dd33
/angr/procedures/definitions/win32_wdsclientapi.py
dcbb07c74c314d0c5708a98cc0f55187713044fc
[ "BSD-2-Clause" ]
permissive
mborgerson/angr
ea5daf28576c3d31b542a0e229139ab2494326e9
8296578e92a15584205bfb2f7add13dd0fb36d56
refs/heads/master
2023-07-24T22:41:25.607215
2022-10-19T19:46:12
2022-10-20T18:13:31
227,243,942
1
2
BSD-2-Clause
2021-04-07T22:09:51
2019-12-11T00:47:55
Python
UTF-8
Python
false
false
14,784
py
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling...
[ "noreply@github.com" ]
mborgerson.noreply@github.com
8168b5bf889b97e447da255e86d69e116f571d47
c8975f8bbe32637399a3ca00ad21e8e6602e358d
/aoc/year2021/day14/day14.py
bf40f0314c32c659180cf4eaa5ae69c3475ea98d
[ "Unlicense" ]
permissive
Godsmith/adventofcode
0e8e0beb813300206b2810b523b54a6c40ca936f
3c59ea66830f82b63881e0ea19bfe3076f2a500d
refs/heads/master
2021-12-28T13:05:42.579374
2021-12-26T22:19:55
2021-12-26T22:24:01
225,074,419
0
0
null
null
null
null
UTF-8
Python
false
false
977
py
from collections import Counter from aocd import get_data from more_itertools import pairwise def run(data, iterations): new_element_from_pair = {tuple(line.split(" -> ")[0]): line.split(" -> ")[1] for line in data.splitlines()[2:]} new_pairs_from_pair = {(e1, e2): [(e1, inserted), (inserted, e2)] for (e1, e...
[ "filip.lange@gmail.com" ]
filip.lange@gmail.com
f32d24f9fdb32d8eb2a1eef5c82ae7102d01c864
cc5f2ee6a5de6faf141f10b1b10717243821a0a5
/problems/problem 106.py
e9b15f310b5e23ecf09e8a1864e6f1ea2dd3f449
[]
no_license
alexandrepoulin/ProjectEulerInPython
faf634025c86bc74fc764d315813bf1706e58f63
97cb52cdd7508f2db891d1644e3d247814571718
refs/heads/master
2020-04-22T11:47:04.594328
2019-02-16T00:17:40
2019-02-16T00:17:40
170,341,883
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
print("Starting") import useful ## only need to check subset pairs which have the same number of elements ## there are useful.nChooseK(n,s)*useful.nChooseK(n-s,s)*0.5 such pairs ## for a specific subset, we only need to look at pairs which have interweining elements ## such as (1,3)(2,4) ## number of times th...
[ "alexpoulice@gmail.com" ]
alexpoulice@gmail.com
a9e19bfcc0e74994f1eb9372e893415376fb7333
54bbfcd35f93ea035fa33d4567bb61b9f9972c86
/detection_tool/demo_xor.py
dc938eac71baad2aa237cc4b39caf527039ba17a
[]
no_license
seunghan-ga/IDA
88100643fb7b07802985dad57052614ced573c6a
2b3f7408133ee12dc5178281117f9305ad85eb5e
refs/heads/master
2022-12-11T23:56:08.766957
2020-08-12T05:20:36
2020-08-12T05:20:36
241,831,397
0
0
null
null
null
null
UTF-8
Python
false
false
4,930
py
import argparse import shutil import time import cv2 import sys import os from PyQt5.QtWidgets import QApplication from PyQt5.QtWidgets import QDialog from PyQt5.QtWidgets import QProgressBar from PyQt5.QtCore import QThread from PyQt5.QtCore import pyqtSignal from tqdm import tqdm from detection_tool.transformation....
[ "ga.seunghan@iset-da.com" ]
ga.seunghan@iset-da.com
5f06320ea1348040f92e9b3d949bae91e0e5f7a1
deb08f802e3fdfbe9e1918ff12cc755cbd2a679f
/2_CH/Keyword.py
746a45836ddb422b186b3a26e7470b24f7240581
[]
no_license
t-a-y-l-o-r/Effective_Python
b6cf9d197664b64635f131fab503494387b13257
84ac7b1fb3e3a8ce7c64b865f7e5fbfb03159368
refs/heads/master
2021-01-24T19:38:43.985278
2018-03-22T23:24:33
2018-03-22T23:24:33
123,243,530
0
0
null
null
null
null
UTF-8
Python
false
false
1,397
py
''' Author: Taylor Cochran Book: Effective Python Ch: 2 goal: Enforce clarity with Keyword-only arguments ''' # division that ignores errors # requires the user to remember the position of each argument # possibly resulting in sublte bugs down the line def safe_division(number, divisior, ignore_overflow, ignore_zer...
[ "taylorjcochran@hotmail.com" ]
taylorjcochran@hotmail.com
3cd515eca280170fe3a32456a2936ef77006c086
286b6dc56323f982092ffafbfac8a32dbbaeb7ef
/Day_09/sample_pyvmomi.py
10033c34292fb7b9d33af55fc34b5e48284d85bb
[]
no_license
learndevops19/pythonTraining-CalsoftInc
ccee0d90aadc00bfdb17f9578620f6bf92f80a4c
c5f61516b835339b394876edd1c6f62e7cc6f0c3
refs/heads/master
2021-02-05T04:27:17.590913
2019-11-20T17:27:06
2019-11-20T17:27:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,761
py
import ssl from pyVim import connect from pyVmomi import vim def connectVcenter(vCenterHost, username, password, portNum=443): """ Description : Performs vCenter connection. Parameters : vCenterHost - vCenter server ip address (STRING) username - vCenter server username (STRING) ...
[ "rajpratik71@gmail.com" ]
rajpratik71@gmail.com
8c7259cafebf5ebbaa2fbd3663278c7ee04d2a70
57750e1b1bc7a4260480d12c5f4b4d1130de4a39
/models/order_list.py
67fa792ea1865d347f1db01ca553e571e74ac284
[]
no_license
stmccoy/Flask_lab_1
3c64da93e209e58196e7524920fa63473d532778
b69cb5a26c35557c6745464bf9983ba886d719ed
refs/heads/main
2023-04-01T14:39:14.459435
2021-04-14T15:11:59
2021-04-14T15:11:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
141
py
from models.order import * order_1 = Order("Fred", "07/04/2021", 5) order_2 = Order("Sandra", "13/04/2021", 10) orders = [order_1, order_2]
[ "giulianoderosas@gmail.com" ]
giulianoderosas@gmail.com
18d2490212c96c729ab2d95a3c7d7a6c16515918
8ef64c761140d0d0c0a05b9252a378417677b47f
/release-cleaner.py
938fc5d3b43daf5459478cc9428c2c624e1750b3
[]
no_license
howaminotme/python-experiments
cfae41edb9cbe38b166847470ac8df3851d6fc51
434db77847f32cb011d2e0b666c6abd7d3c748b2
refs/heads/master
2021-01-16T18:18:12.554340
2014-11-22T18:28:29
2014-11-22T18:28:29
12,466,538
0
1
null
null
null
null
UTF-8
Python
false
false
1,123
py
#!/usr/bin/env python import time import subprocess from optparse import OptionParser parser = OptionParser() parser.add_option('-t', '--target', type='string', action='append', dest='target', help='Directories to be cleaned, with base number of files to be kept and file expressions to ignore, Format : /home/ec2-user...
[ "bobby@bobby-ThinkPad-T420.(none)" ]
bobby@bobby-ThinkPad-T420.(none)
020ceae132754010f36ebf19881b9db9014ed256
3f95c72a6ad383a8c929ccff679d4635223e39e7
/powheg_2017/ggH_SM.py
a8936c8ca06167fa97c0b336b9201d970b30df1c
[]
no_license
danielwinterbottom/MC_gen
88d2a7395b276b57433a4d1699c167bba25a7518
a814a7ed8f1921ee459c7c2f39d8d160e47c13c2
refs/heads/master
2020-06-20T17:56:02.320861
2019-08-12T08:33:42
2019-08-12T08:33:42
197,200,615
0
0
null
null
null
null
UTF-8
Python
false
false
9,358
py
# Auto generated configuration file # using: # Revision: 1.19 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: Configuration/GenProduction/python/HIG-RunIIFall17wmLHEGS-02619-fragment.py --fileout file:HIG-RunIIFall17wmLHEGS-02619.root --mc --eventconte...
[ "[Email" ]
[Email
d1c16aaedb8a8c6c729f677384d7b278cec936b3
c4f746f7f7cdad7a843acf693efd1a0f32ff9460
/small_train/utils.py
46c1f83bc04f33e087d29595b12764b36ef03f8a
[]
no_license
jon-wong-sutd/ml-workshop
1b08ba90d267bf317b630a4cff570c369236da41
9d842263744068156a52124f8817ad708259721c
refs/heads/master
2020-12-14T08:50:50.443241
2017-06-29T00:50:44
2017-06-29T00:50:44
95,509,633
0
0
null
null
null
null
UTF-8
Python
false
false
1,476
py
from math import sqrt import tensorflow as tf def kernel_on_grid(kernel, pad): def factorization(n): for i in range(int(sqrt(float(n))), 0, -1): if n % i == 0: # if i == 1: print('Who would enter a prime number of filters') return (i, int(n / i)) (grid_Y, grid_X) = factorization (...
[ "jhannwong@gmail.com" ]
jhannwong@gmail.com
aaf684914f88ee47e002fe6283aad1328b10f3ad
6cce023315d4083c7df0fcdeea2a037b00818878
/py-files/data_setup.py
3a1efa85492db400854022be0137e9d4defafa58
[]
no_license
Limmen/Distributed_ML
e02e865a123e552d3795c76a4a0846f2da6f3a55
d5b65a0bcb89182e3ac773b0a3cec46625dabccb
refs/heads/master
2021-05-09T03:52:41.530823
2018-01-28T12:21:47
2018-01-28T12:21:47
119,255,519
5
1
null
null
null
null
UTF-8
Python
false
false
2,735
py
import argparse import pyspark from pyspark.sql.functions import udf from pyspark.sql.types import * import tensorflow as tf import pandas as pd import numpy as np SEQ_LABELS_TRAIN = "data/y_train.csv" SEQ_FEATURES_TRAIN = "data/x_train.csv" SEQ_LABELS_TEST = "data/y_test.csv" SEQ_FEATURES_TEST = "data/x_test.csv" c...
[ "kimham@kth.se" ]
kimham@kth.se