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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0cc430d7621bfaae1f6b6a655566642dd758c4bf | 1333a965058e926649652ea55154bd73b6f05edd | /4_advanced/modules/userinput.py | bf7135098c2c79a045d6ce0bbf207f42b97ecacc | [
"MIT"
] | permissive | grecoe/teals | 42ebf114388b9f3f1580a41d5d03da39eb083082 | ea00bab4e90d3f71e3ec2d202ce596abcf006f37 | refs/heads/main | 2021-06-21T20:12:03.108427 | 2021-05-10T19:34:40 | 2021-05-10T19:34:40 | 223,172,099 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | '''
This file allows you to hide all of the implementation details of asking
a user for input for your program. It will verify that the correct data is
returned.
Externally, we want to expose the getUserInput().
'''
'''
__parseInt
Parameters
userInput : Input string from user
... | [
"grecoe@microsoft.com"
] | grecoe@microsoft.com |
d00082b9d952290823f31d6614763614c28c25d5 | 1c1961f8ed56c6852fd2a43a5c47283eb930767c | /Python/RanjanPaudel/task1/store_result.py | 55ec2305ec033417dea7c74084cb465bd897bbeb | [] | no_license | leapfrogtechnology/lf-training | 4a2c22d06519c4b49638e5f7519268c9e8f2347a | 6d18c6d152a1dddfa6e5711c91321a4d7a745517 | refs/heads/master | 2023-01-28T16:00:52.805472 | 2020-09-14T11:40:02 | 2020-09-14T11:40:02 | 283,126,079 | 1 | 15 | null | 2020-11-30T07:55:02 | 2020-07-28T06:48:44 | Python | UTF-8 | Python | false | false | 3,554 | py | #!/usr/bin/env python
import csv
import argparse
import datetime
import pathlib
from text_constants import (
STORE_RESULT_USAGE_EXAMPLE,
STORE_RESULT_NAME_HELP,
STORE_RESULT_DOB_HELP,
STORE_RESULT_SUBJECT_HELP,
STORE_RESULT_TOTAL_HELP,
STORE_RESULT_SCORE_HELP,
STORE_RESULT_STORE_HELP... | [
"paudeljimrranjan@gmail.com"
] | paudeljimrranjan@gmail.com |
6814731a27a9e839f6a1c80a0ff63258fb7972dc | 102ac858b3f4a451b85876bb8e32f78719fb7c2a | /Tareas/T3/codificacion.py | 91cc12391a3db5f710b3632f8a05e582a820e45b | [] | no_license | IIC2233/syllabus-2021-1 | 5a144beda185414115ef5280470e095e1502d55c | 49f1b87a3cd41115f916127192f796a7b50b0818 | refs/heads/main | 2023-06-16T03:49:43.277561 | 2021-07-20T00:11:37 | 2021-07-20T00:12:20 | 347,768,721 | 6 | 10 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | """
Modulo para funciones de codificacion y decodificacion para envio de mensajes.
Recuerda, no debes modificar los argumentos que recibe cada funcion,
y debes entregar exactamente lo que esta pide en el enunciado.
"""
# Codificar un mensaje a un bytearray segun el protocolo especificado.
def codificar_mensaje(mensaj... | [
"faibarra1@uc.cl"
] | faibarra1@uc.cl |
e629e09a5d66dd7ea91ae970e1e3681a49b0efd3 | 7fcfdd773ee43f8f7e18efc46cac4db1a45bc738 | /server.py | bf8701c768b482033c1b87dc4d08905cd6b8027c | [] | no_license | br1n/ninjagold | 64196a55f6be14a9dee7a7a656e265a3c4f87009 | bd13156370a547ef21d45924dc7847d196607161 | refs/heads/master | 2020-03-27T05:30:34.425393 | 2018-08-24T18:31:53 | 2018-08-24T18:31:53 | 146,026,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | from flask import Flask, render_template, redirect, request, session
request
import random
app = Flask(__name__)
app.secret_key = 'henlobilo'
@app.route('/')
def index():
return render_template('index.html')
@app.route('/process', methods=['POST'])
def process():
loc = request.form['location']
location_ma... | [
"frettbishel@gmail.com"
] | frettbishel@gmail.com |
1881278971cb81899913d230dcf869725398ad0e | 5924e50190c2c914a2bba463272f699cd2ec8686 | /recipes/crashpad/all/test_package/conanfile.py | e0b20d0f49610b3e09fbdd2cff81531bad900ae5 | [
"MIT"
] | permissive | robert-shade/conan-center-index | db980b0a7aee3bab6960daec3e9e368c14f349ce | 9583988d1522777900b2b810da116ecddb2407e5 | refs/heads/master | 2021-06-21T19:20:31.647828 | 2021-06-01T14:31:32 | 2021-06-01T14:31:32 | 221,762,700 | 0 | 0 | MIT | 2019-11-14T18:33:41 | 2019-11-14T18:33:40 | null | UTF-8 | Python | false | false | 1,108 | py | from conans import ConanFile, CMake, tools
import os
class TestPackageConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
if not tools.cross_build... | [
"noreply@github.com"
] | robert-shade.noreply@github.com |
51eaa2b68c4692d29a87735ad13e73c72f14a1f9 | 3f566aff07d248d20a7be95849041ecd221d52ca | /ShangAn/LongestSubstringwithAtMostKDistinct Characters.py | 17d7d6d26401e3cc3867b951ab60473a35e1c8cc | [] | no_license | s87217647/PyCharm_Projects | 44f800f8434f250c2d3b324fcf8eb85759bf3b1a | a5f5a9b529c6f971b71caf58f0baf3f09ac3ea69 | refs/heads/master | 2023-07-16T14:32:04.143458 | 2021-08-26T05:58:06 | 2021-08-26T05:58:06 | 393,215,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | from typing import Set
class LongestSubstringwithAtMostKDistinctCharacters:
# clarify: sorted? What if no ans
def lengthOfLongestSubstringKDistinct(self, s: str) -> int:
ans = 0
# how do I know if it's distinct or not?
# set? dict?
# lemme try using set aye?
left = righ... | [
"none@gmail.com"
] | none@gmail.com |
988af6eea7b269f2741dbeb99676deef6e6735b1 | 2e6e82c292b59d7d325d63a41b94622d5c3f055e | /Level1rev03/online_align.py | 161708cb146144a166de812717a7431b1c3c37c3 | [] | no_license | henls/Level1 | 2f0f5a71c1e6b329bec9033a02dd751e90ba93bb | 470386859ba4a2dfe10bb20cce99f769068f30ff | refs/heads/master | 2022-09-25T17:02:47.283519 | 2020-06-07T07:27:56 | 2020-06-07T07:27:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,754 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 2 11:26:23 2020
rev01
@author: wangxinhua
2020/1/9 data cache in GPU in one circle
"""
import numpy as np
from astropy.io import fits
import scipy.fftpack as fft
import cupy as cp
from xyy_lib import xyy_lib as xyy
import os
from skimage import ... | [
"879951213@qq.com"
] | 879951213@qq.com |
232479298bbe4ef09814cca689632ce9f4d22613 | b04197cb45a9cdaef06ac260e0493e94a07e99b6 | /PyBank/main.py | 1e883c89d50821dcf41078b41e8c18029c3bb7bf | [] | no_license | EricMadigan44/python-challenge | 89ade3a306f183d1494c9aacc836156aab98d186 | e8e21a964f66d103be30c09ec686b5dbc2d468eb | refs/heads/master | 2021-04-26T23:28:17.463083 | 2018-03-11T23:07:32 | 2018-03-11T23:07:32 | 124,000,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | import csv
import os
#Eric Madigan = PyBank for Python-Challenge
# Here we are creating our file path and saving it as a file
file = os.path.join('budget_data2.csv')
# Creating empty list for our data in the columns
months = []
revenue = []
#Read csv with csv.reader and parse csv into lines
with open(... | [
"noreply@github.com"
] | EricMadigan44.noreply@github.com |
2756fcc1318ee3b25519b98466838cb1c7a3c76d | 8ef13554e75823423e6592fa15423ac0f4f6ed7b | /VideoResNetCycleGan/ImagetoVideo2.py | 1fd4158ab1ce50c3ff9d9742c71b786eecc4d6da | [] | no_license | Sevak987/ResNetCycleGan | 7a66bcf2b32afddec0094bfac02c01f980c76922 | 618eb40c04ff732d5205250843273499f12e0adf | refs/heads/main | 2023-03-26T01:38:47.381079 | 2021-03-21T16:43:34 | 2021-03-21T16:43:34 | 346,688,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | from tensorflow.keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img
import os
import numpy as np
import cv2
from numpy import expand_dims
import tensorflow as tf
from matplotlib import pyplot
import natsort
pathout='videoAtoB(part2).avi'
fps=25
folderEvros="/data2/kazarian/Pycharm... | [
"noreply@github.com"
] | Sevak987.noreply@github.com |
b22c006c066846d679904ece442ff35ffce2ff2c | 0e114f7df2b112511785e21626bb6bdb220b5a6c | /ModelImporter/readers.py | 53245dcc930049f51e32b8c1183b280b6d1439f3 | [] | no_license | monkeyman192/NMSDK | 020c580bc7b0517bdef5b28d167924fde51dfa7f | c94bb9071e576fd16650f0b26fc5d681181976af | refs/heads/master | 2023-08-09T09:08:40.453170 | 2023-07-26T23:28:53 | 2023-07-26T23:28:53 | 73,231,820 | 25 | 6 | null | 2023-07-26T23:10:29 | 2016-11-08T22:13:48 | Python | UTF-8 | Python | false | false | 12,902 | py | from collections import namedtuple
import struct
from typing import Tuple
# TODO: move to the serialization folder?
from ..serialization.utils import (read_list_header, read_string, # noqa pylint: disable=relative-beyond-top-level
bytes_to_quat, read_bool)
from ..serialization.list_... | [
"monkey_man_192@yahoo.com.au"
] | monkey_man_192@yahoo.com.au |
e70e2960eedcee45fd5d6d45ebeed1eb919df85b | b6a98492c2e18c58cf70f0e4e308cf2efe6f505b | /Atividades/Lista1/Jokenpo.py | 52f058edec0616398ac37357087b8708ab8cba33 | [] | no_license | jrcamelo/IF968-Projetos-e-Listas | 4ee4141964534f611308f3522fa042268bb55d74 | 08e419acbbe7ada05323c643dad63cd50ae6de89 | refs/heads/master | 2021-06-24T20:00:42.477808 | 2020-10-28T05:12:13 | 2020-10-28T05:12:13 | 139,345,905 | 0 | 1 | null | 2020-10-28T05:12:14 | 2018-07-01T16:51:17 | Python | UTF-8 | Python | false | false | 1,179 | py | #João Rafael
print("Bem-vindo ao Jokenpo, Jogador 1!\n")
print("Digite 'pedra', 'papel' ou 'tesoura' para continuar\n\n")
while(True):
jogador1 = (input("\nSua jogada: ").lower())
if(jogador1 == "pedra" or jogador1 == "papel" or jogador1 == "tesoura"):
break
print("\n" * 100)
#---------------------... | [
"jrsc2@cin.ufpe.br"
] | jrsc2@cin.ufpe.br |
1fed10ee22a8b3c9d54a1490df94abef0441b3e5 | 3cf7bab6574f0c85ed2c437f3f146d40fdc646aa | /examples/test.py | 91be43f5b786d04225b56a0dce4568d02711ecd6 | [] | no_license | Zumbalamambo/visiontransformers | 99db90a1ada08793e75d7c759b5687b842511609 | 6a9597f9b2fec860a575485f5d1c66be8c1353ba | refs/heads/master | 2023-05-26T05:12:39.662537 | 2021-06-08T07:47:12 | 2021-06-08T07:47:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py |
import torch
from visiontransformers.formers.vit import ViT_b16
def test():
model = ViT_b16(
image_size=512,
num_classes=10)
print(model)
a = torch.randn([1, 3, 512, 512])
o = model(a)
print(o.shape)
if __name__ == '__main__':
test()
| [
"fagangjin@autox.ai"
] | fagangjin@autox.ai |
2b173c9d14198de5e4a1e14858a00ff2a9eadc15 | 83098ec0320c49c649c8b0b781fa2037f0cba7e1 | /data_structure/stack_infix_to_postfix.py | f0dbfcc7dad483885af5dc9ce817075208445ac2 | [] | no_license | lelong03/python_algorithm | 15214f980154565af4b4a2c2bd8f0015524d0a3c | a5fe28cfeff1d07becf2bbf95b9b7f39a0e47131 | refs/heads/master | 2021-07-07T17:04:22.090856 | 2020-07-11T06:28:08 | 2020-07-11T06:28:08 | 133,847,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | from stack import Stack
def infixToPostfix(infixexpr):
prec = {}
prec["*"] = 3
prec["/"] = 3
prec["+"] = 2
prec["-"] = 2
prec["("] = 1
opStack = Stack()
postfixList = []
tokenList = infixexpr.split()
for token in tokenList:
if token in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" or t... | [
"lelong03@gmail.com"
] | lelong03@gmail.com |
1fe034fc8c1f9dced00f457ca3565a12163aadba | 55151f8975072beabbb5bab83e5beaa61f56238f | /HW 7 Miller Rabin.py | 31a5ed599067f84501d55e0bc3478e8b3af52690 | [] | no_license | WuTang94/Cryptography-programs | e8b5d9037864c26040edcec4093fd50eb637e612 | 54c07890bb3c3e6f7e559e26381af3e68d650408 | refs/heads/master | 2021-04-30T13:25:01.850234 | 2018-03-28T16:36:34 | 2018-03-28T16:36:34 | 121,294,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,151 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 18 09:36:05 2017
@author: Justin Tang unless otherwise stated;
methods that I borrowed online and modified are denoted
"""
import random
#import math
"""
I borrowed this method of Miller Rabin from a website, but I replaced the pow()
function with the Square and Multiply... | [
"jzt5@case.edu"
] | jzt5@case.edu |
469d0d303137c4f92fbe51ff68b5e211f5f358dd | 782e480a0f07ec1dcf4b6649179cf8a5700fc254 | /docs/conf.py | f6a4ac3c9ce7a24bf03cab5e9a6ccb3d6716800c | [
"MIT"
] | permissive | janash/quantumMLdev | a480d580d7d7fb63de7dd75b10ceda7958b0ba46 | 0e5faee372ce7de695e8821398a97a3bfcfbf9e0 | refs/heads/main | 2023-03-26T10:06:48.048390 | 2021-02-12T20:27:35 | 2021-02-12T20:27:35 | 339,519,279 | 0 | 0 | MIT | 2021-02-16T20:15:27 | 2021-02-16T20:15:26 | null | UTF-8 | Python | false | false | 5,278 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/stable/config
# -- Path setup ------------------------------------------------------------... | [
"jasongibson@ufl.edu"
] | jasongibson@ufl.edu |
5c87b7f53356a3353ddc962324f0e7a6c497e0c9 | d1025cd05371af3cd659ebce1e3b7be4a718f574 | /easy/5-2.py | f489f8b8e6c068fdb4c8c65d0570c2a422f6bdcd | [] | no_license | Enhydra-xun/Book-problems | ea5a3e44e918e94f37aa97f842437ac7853bab19 | 04bb64075e2299f2d0e826687797297683a087ce | refs/heads/master | 2021-01-23T00:15:46.355647 | 2017-07-12T11:03:55 | 2017-07-12T11:03:55 | 85,711,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | #!/5-2
print 'input two num'
def foo1():
a= int(raw_input())
b= int(raw_input())
print a*b
def foo2(a,b):
print a*b
def foo3():
a= input()
b= input()
return a*b
if __name__== '__main__':
print 'executing foo1:'
foo1()
print 'executing foo2:'
foo2(2,3)
print 'executing foo3:'
return_value = foo3()
pri... | [
"1092821680@qq.com"
] | 1092821680@qq.com |
dc93b89f7e841b512d47ecff109941a4fd9c59cb | a7a13ca32072bb27ce2dceb87c414767b3751ec5 | /src/gthnk/__init__.py | f8ee1ab5a2ed24607ff10461411e9f764b139904 | [] | no_license | SocioProphet/gthnk | 36e50338d5f3df19f84620ff9a337f3cf8e9e362 | fc3d21090c2de10cfd74650436536999e5c65d7c | refs/heads/master | 2022-12-13T18:55:00.610073 | 2020-09-14T14:50:21 | 2020-09-14T14:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_bcrypt import Bcrypt
db = SQLAlchemy()
login_manager = LoginManager()
bcrypt = Bcrypt()
| [
"ian@iandennismiller.com"
] | ian@iandennismiller.com |
5ad1c174ef11481211eccd3c9a071aaebf6e217e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/1268.py | 9e45fefd2245fc74e784ff57dba4a16de3dd55a5 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | def read_case(line):
return int(line)
def read_input(path):
f = open(path, 'r')
g = open(path + '_res.txt', 'w')
T = int(f.readline())
for i in xrange(T):
line = f.readline()
g.write('Case #%d: ' % (i+1))
n = read_case(line)
g.write(str(solve(n)))
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f3ad29a421a0cf868288fc6682c1a2f1460652b8 | 61ce57892c172f71286a39c8c863aa8a7b29484b | /stampede_results/efficiency.py | 819f43b7bee082e404a72cda5a0ee62105cfe01a | [] | no_license | bd-j/cetus | cfbb46aa2d94fdf982a7906bc8bdcbe9375df67c | c9f7e0972184a0c2fcc7add6e766733b7a46b149 | refs/heads/master | 2021-05-01T00:06:10.518322 | 2015-02-17T16:49:46 | 2015-02-17T16:49:46 | 21,367,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | import sys, os, glob
import numpy as np
import matplotlib.pyplot as pl
import bsfh.read_results as bread
def process_run(mcmc_file, model_file):
result, pr, model = bread.read_pickles(mcmc_file, model_file=model_file)
nburn = np.sum(result['run_params']['nburn'])
nw, niter, ndim = result['chain'].shape
... | [
"benjamin.duncan.johnson@gmail.com"
] | benjamin.duncan.johnson@gmail.com |
00a7d4bb8e564e8e4d36756ce801d18ce4fdfecc | b87389aa0d6595c8b649ac899e8ade4226309739 | /manage.py | f53d707f83062edaaf89cd56b7fde370fb63af16 | [] | no_license | bussiere/ImageIp | be3797d2fdd57b78d35de2111eb67b269f7df104 | bc3e7b3d4edabde5353f9fadfc46253b7407ba5a | refs/heads/master | 2020-12-24T15:23:03.255370 | 2013-08-23T10:52:46 | 2013-08-23T10:52:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "imageip.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"bussiere@gmail.com"
] | bussiere@gmail.com |
139027d1595ac0b0efde91369b9279e7f7756063 | 5d7bfb0826b54dec7cf0cbc3c513f04f14ae20fc | /52.py | 174a4670b4c6f2f7b3e65f96e41524788127ec58 | [] | no_license | renuka-fernando/project-euler-answers | dd38ebccf554b2a88a2284b658d8a137c14a5c74 | 90243d7c82b4968a1b275fd18ef1d8c289c58f75 | refs/heads/master | 2021-09-09T10:33:44.159695 | 2015-01-22T10:14:31 | 2015-01-22T10:14:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | def IsPermutation(n1, n2):
n1, n2 = str(n1), str(n2)
if len(n1) != len(n2):
return False
N1 = []
for digit in n1:
N1.append(digit)
for digit in n2:
if digit in N1:
del N1[N1.index(digit)]
if len(N1) != 0:
return False
else:
return True
... | [
"renukapiyumal@gmail.com"
] | renukapiyumal@gmail.com |
6316921d5a730a75520c488a376f5c7511ae0bb4 | c25739d4a3b04589f4439a98be88d0bf15370ac6 | /fooddelivery/dto/CustomersDto.py | e1a560f65cc1c8f4990f5af18cbbf977dff076f8 | [] | no_license | Gbemileke123/MyFoodapp | 7dd4511d6fabbdae998b510b9433287fc258bdbf | bc34b3ce7829fd78d3554c7f0622468254908ae8 | refs/heads/master | 2023-06-08T11:10:03.896194 | 2021-06-20T16:41:40 | 2021-06-20T16:41:40 | 300,335,142 | 0 | 0 | null | 2021-06-20T16:41:40 | 2020-10-01T15:50:01 | CSS | UTF-8 | Python | false | false | 573 | py | class CreateCustomersDto:
username: str
user_first_name: str
user_last_name: str
password: str
email: str
address: str
contact: str
class EditCustomersDto:
id: int
user_first_name: str
user_last_name: str
email: str
address: str
contact: str
class ListCustomersDto... | [
"sodiyaleke18@gmail.com"
] | sodiyaleke18@gmail.com |
de0053232ef4997db3778f395cf264635d939382 | 15f6e61d9ee8542d9feda70c3cf17d8c5028ef44 | /interfacetracer.py | 8482bb30b3c3b81ad41a92a94dba34a794954561 | [] | no_license | pniewiadowski/learing_python | e6446783dbef6105d026b94ec4b1ac8ce5c46ae9 | ef12d299da40ec99b1d4550e1e2c2264c6c4dea5 | refs/heads/master | 2020-06-18T15:19:01.172124 | 2018-02-21T20:24:35 | 2018-02-21T20:24:35 | 94,167,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | def Tracer(aClass):
class Wrapper:
def __init__(self, *args, **kwargs):
self.fetches = 0
self.wrapped = aClass(*args, **kwargs)
def __getattr__(self, item):
print('Trace: ' + item)
self.fetches += 1
return getattr(self.wrapped, item)
... | [
"niewiadowski@gmail.com"
] | niewiadowski@gmail.com |
36c50d4a8abe022531909cdf4af974d7dd4cc0da | 1131139c9d5ca7220cd4e37de8dad0740f269fd0 | /node_modules/fsevents/build/config.gypi | 64039196469aa0a04697905d1ac9947279b9b481 | [
"MIT"
] | permissive | Analova/Packman | 52b5f3bc31bca0bb1a806a44d1f89aa97922a92c | e862bda34aca1353af38566c86b22c29786c8a96 | refs/heads/main | 2023-01-05T14:55:23.751017 | 2020-10-30T05:56:54 | 2020-10-30T05:56:54 | 305,265,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,457 | 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",
"debug_ngh... | [
"ani.nik19@gmail.com"
] | ani.nik19@gmail.com |
ea9cb6af6472d76c58d80685599298f8e4a6f15e | 439cda44ba6d5d8061a134875736a9efcd4bf22c | /trakt_tools/tasks/profile/backup/create/handlers/playback.py | 746491bfc433fc6a3dc4ee210ef1164e29330dbc | [] | no_license | fuzeman/trakt-tools | 28a0fcb2c2efe88371bba1892777be75236fdc5c | 8bdcb117b6092733cc50f87d4f943fc23340da90 | refs/heads/master | 2023-01-07T06:16:46.716517 | 2022-12-27T22:57:03 | 2022-12-27T22:57:03 | 68,256,616 | 31 | 4 | null | 2022-12-27T22:41:57 | 2016-09-15T01:11:54 | Python | UTF-8 | Python | false | false | 801 | py | from __future__ import print_function
import logging
log = logging.getLogger(__name__)
class PlaybackHandler(object):
def run(self, backup, profile):
print('Playback Progress')
# Request ratings
response = profile.get('/sync/playback')
if response.status_code != 200:
... | [
"me@dgardiner.net"
] | me@dgardiner.net |
59eac0154c735e63114bb07c28b1c96392ae0c02 | 980810dc805a6c7deb373fea2f88d6f1240ac5a1 | /Prac05/stateNames.py | 8bf3501de30547ce57bdf10b7dff7e463f8357d0 | [] | no_license | philipwoodward/Practicals | acf9c13fc7c9ab945cf056f78b5647a6e620209b | f59d78b875b748f85526b769859e3d3fb6a8a170 | refs/heads/master | 2020-05-22T01:32:26.390769 | 2016-09-18T10:57:05 | 2016-09-18T10:57:05 | 65,691,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | """
CP1404/CP5632 Practical
State names in a dictionary
File needs reformatting
"""
# TODO: Reformat this file so the dictionary code follows PEP 8 convention
STATE_NAMES = {"QLD": "Queensland", "NSW": "New South Wales", "NT": "Northern Territory", "WA": "Western Australia",
"ACT": "Australian Capital T... | [
"philip.woodward@my.jcu.edu.au"
] | philip.woodward@my.jcu.edu.au |
e6ed56fd3df5070e61ae811df3ed3d5638f8db41 | e1312afff90dbe1cdcd500541e29097da19fee97 | /inference/infer_with_pb_1capture.py | 83e9ad60c4b8ca47ef4676152e1dd42c7059bd70 | [] | no_license | andreiqv/github_detector_scale | af6115caff6ca6c73c934dc1fa6673ccd69b71fa | 329d32a4d26b2bfb2f902f876bb9b8eb35bd9e2a | refs/heads/master | 2020-04-08T12:30:36.966069 | 2019-01-30T22:21:34 | 2019-01-30T22:21:34 | 159,350,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,509 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Using TF for inference, and TensorRT for compress a graph.
import sys
import os
import argparse
import tensorflow as tf
import numpy as np
from tensorflow.python.platform import gfile
from PIL import Image
import timer
from time import sleep
import io
from picamera imp... | [
"phxv@mail.ru"
] | phxv@mail.ru |
9e7d53d434689b421ffa72dca3bee89e65b90818 | 0a981e8af000e199097ccc5ddcd7bb1c689f2d94 | /24_MapFilterandReduceFunctions/24_example4.py | 58d0f9166f363f224592219eeed37737afdf4906 | [] | no_license | lightrao/SocraticaPython | 66c90d2059ccad0ec43c2b26cfc5e7579ca36f35 | 6d9b653e274aa8e805ae4abc6c479269370a9f3b | refs/heads/master | 2020-08-06T13:33:55.930884 | 2019-10-27T09:26:57 | 2019-10-27T09:26:57 | 212,993,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | # Remove missing data
countries = ["", "Argentian", "", "Brazil", "Chile", "", "Colombia", "", "Ecuador", "", "", "Venezuela"]
rm = list(filter(None,countries))
print(rm) | [
"lightrao@hotmail.com"
] | lightrao@hotmail.com |
456ba9656c9185170fa3b8e153bf53d8ef7a7ada | 3ffcda377dc1eca08031c6568729d346f9a41224 | /modules/pstemmer.py | 8a7dc65dc918a7ae5eee351a41141b676fdfc641 | [
"MIT"
] | permissive | chenfj068/gnot | 3cbd3b6a2468cb019d1c3cf8e9a554949fdaab5e | ac698c5cce0e2ebb77dd84c5d050417b735f5fbf | refs/heads/master | 2020-03-10T03:51:59.777777 | 2015-01-10T20:55:21 | 2015-01-10T20:55:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,097 | py | class PorterStemmer:
def __init__(self):
"""The main part of the stemming algorithm starts here.
b is a buffer holding a word to be stemmed. The letters are in b[k0],
b[k0+1] ... ending at b[k]. In fact k0 = 0 in this demo program. k is
readjusted downwards as the stemming progresses... | [
"garthee@ganeshapillais-MacBook-Pro.local"
] | garthee@ganeshapillais-MacBook-Pro.local |
ed1a68bd23e55267272ccb15c26fdaf535f0fab6 | a880374275045f9363e6bba69b125e83f8625f3c | /package/loggingwindow.py | 36f11d3cf522a032d2e7c141ab90a1ba11e379c1 | [] | no_license | hoefler02/itc-qemu-gui | 1eb0299c5d00bf6dba6c22f3167d12fd6e769779 | 64811f7db0b07ca4e09ec3b4c2a0708c48248231 | refs/heads/master | 2022-11-24T09:28:17.085068 | 2020-07-08T19:51:55 | 2020-07-08T19:51:55 | 265,439,359 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,546 | py | from PySide2.QtWidgets import QWidget, QLabel, QShortcut, QRadioButton, QVBoxLayout, QMainWindow, QHBoxLayout, QAction, QFileDialog, QScrollArea
from PySide2.QtGui import QFont, QKeySequence
from PySide2.QtCore import Qt, QTimer
import os, re
class LoggingWindow(QMainWindow):
def __init__(self, qmp):
... | [
"hoefler2002@gmail.com"
] | hoefler2002@gmail.com |
f6f6d11104bcd6224432deecdc60855feaa8e619 | 752d9b69fbcfdbbb95fdc0efbd467e8d4b992642 | /crawl.py | f25cbc76703ae022b29b46caee2138d5de9fd6b5 | [] | no_license | edwinoko/crawler | 66b18dec1cc458973bafd4faa30eddc9b87faaa9 | 2427adafecdf0bea1dc8b2da33fe279fd0846e09 | refs/heads/main | 2023-07-07T02:44:43.486119 | 2021-08-04T08:22:08 | 2021-08-04T08:22:08 | 392,607,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,490 | py | import requests
import os, re
from tqdm import tqdm
from bs4 import BeautifulSoup as bs
from urllib.parse import urljoin, urlparse
from fpdf import FPDF
import time
import glob
from PIL import Image
import img2pdf
def is_valid(url):
"""
Checks whether `url` is a valid URL.
"""
parsed = urlparse(url)
... | [
"noreply@github.com"
] | edwinoko.noreply@github.com |
c2f2c90ff36ce779f8786696078f858e381bc822 | b1386109e6047247e5c98e01ec5380204f49e669 | /validationScripts/orderModOnCom.py | e5f9656c3b410d5ffd9aae41a9b4bbafce4e1dab | [
"MIT"
] | permissive | balabhaskar27/validation-obgo-tests | 341d8713ef5e457f691b89c21a3aeddef554882b | 12fb08d68d1c60ed7de921cb1edd1385d1fa8e10 | refs/heads/master | 2022-03-11T20:07:19.351113 | 2019-10-24T01:26:10 | 2019-10-24T01:26:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | import jsonschema
import json
with open('../schema/orderModOnComSchema.json') as a:
schema = json.load(a)
with open('../responses/orderModOnCom.json') as b:
response = json.load(b)
try:
# And validate the response
jsonschema.validate(instance=response, schema=schema)
print("Validation test passed!")
... | [
"washington.sanchez@gmail.com"
] | washington.sanchez@gmail.com |
0ec91a7438c22328f4382f2c4fb586fb7d3ad54b | e1db880dc68e16b6947cc6920643245ae37a7cdd | /Kinematics/camera_cali/common.py | 49c99b481d7e68d3cb3de8b07f653fdec2c40f72 | [] | no_license | zhezhou1993/Germian_Spp2 | 872ceddd7c8e60a452c23dd5b940e693b2dc5223 | 22c269c3368cc60a8ed0fde5a20d036231d0c337 | refs/heads/master | 2020-12-07T15:38:43.352777 | 2015-12-15T05:43:14 | 2015-12-15T05:43:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,442 | py | __author__ = 'germain'
#!/usr/bin/env python
'''
This module contains some common routines used by other samples.
'''
# Python 2/3 compatibility
from __future__ import print_function
import sys
PY3 = sys.version_info[0] == 3
if PY3:
from functools import reduce
import numpy as np
import cv2
# built-in modules
import os... | [
"zhemingzhou1993@gmail.com"
] | zhemingzhou1993@gmail.com |
f29845b4a7e41fd25e8f0aaf3a5e1216fa204a11 | 1db2e2238b4ef9c1b6ca3b99508693ee254d6904 | /develop/analyse_2D_matrix/analyse_2D_matrix.py | f46d66c680efd95275086ab37592a63a94f4224e | [] | no_license | pgreisen/pythonscripts | 8674e08095f76edf08ef2059300349218079724c | 0aadf8f96d19b306c1bc44a772e766a06fe3408b | refs/heads/master | 2021-07-06T23:54:57.774342 | 2021-06-08T19:36:36 | 2021-06-08T19:36:36 | 22,017,192 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,186 | py | from numpy import mean,sqrt,var
import sys
from collections import defaultdict
from collections import OrderedDict
import os,shutil,sys,argparse
class Analyse2D:
def __init__(self):
self.scores = defaultdict(list)
self.scores_position_two = {}
self.aa = ['ALA','ARG','ASN','ASP','CYS','G... | [
"pgreisen@gmail.com"
] | pgreisen@gmail.com |
685279deb51b82c7913268989efa1ce91cda2791 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /P.O.R.-master/pirates/effects/ShipSinkSplashes.py | 4efffec5639f34902279a1a506fbbbf5ba52d62c | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,226 | py | from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.particles import ParticleEffect
from direct.particles import Particles
from direct.particles import ForceGroup
from EffectController import EffectController
from PooledEffect import PooledEffect
import random
class ShipSinkSplas... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
2a1ed3b591771dcef576f456adcb8a35894e6e42 | 7a3757a341fb1c5a06482e2e5cb066a967a6eff5 | /tests/apis/test_htmls.py | 8a62ed922151fdb0fb4d2da11af953142cdb52d2 | [
"MIT"
] | permissive | ninoseki/uzen | 4bff6080b9c0677dcf25abc0f104eca3fb92ed8a | 2a0065aa57fe3891c46e1174c1dc9aab673e52a8 | refs/heads/master | 2023-09-02T01:59:18.893712 | 2022-08-28T09:49:12 | 2022-08-28T09:49:12 | 241,092,872 | 87 | 9 | MIT | 2023-06-01T01:08:05 | 2020-02-17T11:37:59 | Python | UTF-8 | Python | false | false | 568 | py | from typing import List
from fastapi.testclient import TestClient
from app import models
def test_html(client: TestClient, snapshots: List[models.Snapshot]):
id_ = snapshots[0].id
response = client.get(f"/api/snapshots/{id_}")
snapshot = response.json()
sha256 = snapshot.get("html", {}).get("sha25... | [
"manabu.niseki@gmail.com"
] | manabu.niseki@gmail.com |
eb902962ee25bcc46960267591255ee36d0bd41a | 934a8c50411d78c948d640ecda814f45ad068b40 | /m22/Check Sudoku/check_sudoku.py | 2ff1df0dfef1099e8d6968d62cc0c6bb26586f62 | [] | no_license | muralimandula/cspp1-assignments | ed7af733ae5762e6ef0818d018d51d603a520601 | a676aaa1f721fea0bf47fb0ec5823766ac729dd4 | refs/heads/master | 2020-03-25T05:20:37.731010 | 2018-08-27T04:27:03 | 2018-08-27T04:27:03 | 143,441,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,387 | py | '''
Sudoku is a logic-based, combinatorial number-placement puzzle.
The objective is to fill a 9×9 grid with digits so that
each column, each row, and each of the nine 3×3 subgrids that compose the grid
contains all of the digits from 1 to 9.
Complete the check_sudoku function to check if the given... | [
"murali.mandula@msitprogram.net"
] | murali.mandula@msitprogram.net |
e4d4478b3c89c8bbd26fe512225a2782b16efd47 | 5d1c528e5b6ffa2aaef8ec8647b856b75986cb62 | /python/craftassist/craftassist_agent.py | 82c035c0ee23b237c7145baadeed734c87928e9b | [
"MIT"
] | permissive | kayburns/craftassist | fb6c9d7b8eb8e0e3bf6721d7562541be4ca20776 | 07909493d320afc2c9ff428d0891bc3acd4dc68f | refs/heads/master | 2023-05-07T21:14:30.906057 | 2021-05-26T21:12:02 | 2021-05-26T21:12:02 | 258,591,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,689 | py | """
Copyright (c) Facebook, Inc. and its affiliates.
"""
# TODO correct path for safety.txt
# TODO correct model paths
import os
import sys
import logging
import faulthandler
import signal
import random
import re
import sentry_sdk
import numpy as np
# FIXME
import time
from multiprocessing import set_start_method
im... | [
"kaylee.c.burns@gmail.com"
] | kaylee.c.burns@gmail.com |
2a345952b4160400e17343c21bb8b279da7fd89b | 17f151691172f5864c7e1e5a578271e8dcf5209d | /examples/get_secure_system_falco_rules.py | 839da37f7705409a9872ce69be03aad355eca23c | [
"MIT"
] | permissive | draios/python-sdc-client-beta | 8dad2e6ee980c879ff0a75140f63349fe0d09e9f | f77b59c7fb4ff844ba5225fca6ba1b2dbd37a7af | refs/heads/master | 2022-07-19T02:51:26.661786 | 2017-10-12T00:32:02 | 2017-10-12T00:32:02 | 97,976,633 | 3 | 0 | MIT | 2022-07-04T12:04:37 | 2017-07-21T18:34:14 | Python | UTF-8 | Python | false | false | 737 | py | #!/usr/bin/env python
#
# Get the sysdig secure system rules file.
#
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), '..'))
from sdcclient import SdSecureClient
#
# Parse arguments
#
if len(sys.argv) != 2:
print 'usage: %s <sysdig-token>' % sys.argv[0]
prin... | [
"mark.stemm@gmail.com"
] | mark.stemm@gmail.com |
ae94545826060dc77cbb8265c14258c63d342f9e | 89a5b331a2021483271a4b189583dbdfca6ea190 | /Divisors.py | 0cf70848bb110c903885118808014cb3531e1819 | [] | no_license | Cogswatch/CS362-In-Class-Activity-2 | 75b3b55e36b9b6dc9e98f676fafb1f36127592aa | ea3574d035229a8ac8dd8f5d3501ac9907aae4de | refs/heads/main | 2023-04-02T14:38:27.957906 | 2021-04-17T01:29:10 | 2021-04-17T01:29:10 | 358,756,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | def Divisors(n):
print(n, " is divisible by: ")
for i in range(1,n):
if n % i == 0:
print(i, ",")
Divisors(16) | [
"c.greyston.brady@gmail.com"
] | c.greyston.brady@gmail.com |
c6560fd4d326ede3c566fcd162994c64fee9adf3 | 59df404c69c8a08280e792a0c3a8801c13c630f0 | /utils/util.py | ceb7c85796fb165d3c555b76eb551ce093d2ee31 | [
"MIT"
] | permissive | MLDL/Regularized-Self-Labeling | 31d2272419de400be03bc46663a312e2df08d464 | 1260fbe1f05558dfbe1de9023a9a39028a47b3f1 | refs/heads/main | 2023-09-03T11:52:40.240839 | 2021-11-07T20:04:45 | 2021-11-07T20:04:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | import json
import torch
import pandas as pd
from pathlib import Path
from itertools import repeat
from collections import OrderedDict
def deep_copy(state_dict):
new_state_dict = {}
for k, v in state_dict.items():
new_state_dict.update({k:v.clone().detach()})
return new_state_dict
def ensure_dir(d... | [
"lidongyue12138@gmail.com"
] | lidongyue12138@gmail.com |
ed7b59ea529505c039c84632f0c762b6e7687cd5 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/29/usersdata/149/9337/submittedfiles/atividade.py | a129ae25b27b8413697e0322686088d89dc72a89 | [] | 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 | 5,309 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
5cdd8442cd814d0483be06189f1baa90c42bb382 | d2c92cfe95a60a12660f1a10c0b952f0df3f0e8e | /adminasto/adminasto/tongji.py | 698ac53c3172a4fe3beefb1a1fcf538a722beb21 | [] | no_license | snamper/zzpython | 71bf70ec3762289bda4bba80525c15a63156a3ae | 20415249fa930ccf66849abb5edca8ae41c81de6 | refs/heads/master | 2021-12-21T16:12:22.190085 | 2017-09-30T06:26:05 | 2017-09-30T06:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | from sphinxapi import *
import os
import MySQLdb
import datetime
nowpath=os.path.dirname(__file__)
execfile("conn.py")
#产品数量
def getproductnum(nowday):
format="%Y-%m-%d";
nowday=strtodatetime(nowday,format)
oneday=datetime.timedelta(days=1)
sql="select count(0) from products where gmt_created>'"+str... | [
"2496256902@qq.com"
] | 2496256902@qq.com |
9bcea0a220db2b4e4ccd80b78c3ad37ed691af79 | 0b69d635edf990943bbf870e7b76c12ce6e75bdb | /recon/evaluation.py | 0b97c16fb14bb0ada6f2873d4d1f7241eef2ea34 | [
"BSD-3-Clause"
] | permissive | cshallue/recon-cnn | a3cb80d9cea0ab9c03bf0536c755d8b1b66dadbf | d123075d3ed825fc234c633bbcddbba95a45f26f | refs/heads/main | 2023-04-18T21:41:13.768958 | 2022-07-18T14:08:50 | 2022-07-18T14:08:50 | 515,193,014 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | import collections
import os
import numpy as np
import pandas as pd
from absl import logging
from recon import inference
METRICS_FILENAME = "metrics.csv"
def _metrics_filename(model_dir):
return os.path.join(model_dir, METRICS_FILENAME)
def evaluate_dataset(predict_fn, dataset, verbose=True):
output = co... | [
"chris.shallue@gmail.com"
] | chris.shallue@gmail.com |
8ca803c4551cb1d8f3a82c8c9aefebb765a42918 | ad0a4038d45ca6ca036a4331c4b675b131e3efe5 | /app/routes.py | f67a90e5caaee0aafec339210ba9960b2632eee2 | [] | no_license | k-nox/hello-books-api | e0ef7ab205e48e01ccfc4801a152595152e0cc06 | be6b4aefae9a343a16a9460e9ef07c9c1ae60597 | refs/heads/00-scaffold | 2023-09-03T05:59:12.997597 | 2021-11-02T19:55:47 | 2021-11-02T19:55:47 | 417,306,847 | 0 | 0 | null | 2021-10-14T23:05:52 | 2021-10-14T23:05:51 | null | UTF-8 | Python | false | false | 1,845 | py | from app import db
from app.models.book import Book
from flask import Blueprint, jsonify, make_response, request, abort
books_bp = Blueprint("books", __name__, url_prefix="/books")
@books_bp.route("", methods=["GET"])
def read_books():
title_query = request.args.get("title")
if title_query:
books = B... | [
"lux.barker13@gmail.com"
] | lux.barker13@gmail.com |
c85cd3c0da6ebfab8d1906ca10047979b534d0d6 | 5a81921b09ddda15f972e8582ee9d03aca79f077 | /src/qdarktheme/Qt/__init__.py | 498708b02d144cd37505ac106a0ddec03e2015fa | [] | no_license | gloger2003/BinanceBot_BabloFill_Desktop | 7086e570aeb35363de0a911743da64af021eaa92 | 161a6322c0f1417c6d2f733215bf591ca051cf2d | refs/heads/main | 2023-08-30T02:10:30.121482 | 2021-10-09T13:53:13 | 2021-10-09T13:53:13 | 415,168,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | from . import QtCore, QtGui, QtSvg, QtWidgets
| [
"studiogloger@gmail.com"
] | studiogloger@gmail.com |
127340c6f50c34bb02f1678ec7d9f12c7ce76d64 | 04c41aca1f78ac617fe1573818b10fb0e12fbe40 | /tests/schemas/users/snapshots/snap_test_queries.py | 85793ffecaf3ec9d16884144152f71578d6c90f8 | [] | no_license | telephoneorg/orka-api | 619489ae17dfd850c74aa2c950e0d4385ba059d9 | 5693aff776b7a7649617915a0a8e0942d1228c24 | refs/heads/master | 2022-01-10T15:28:21.277746 | 2019-05-16T19:06:40 | 2019-05-16T19:06:40 | 186,914,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,718 | py | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['test_get_me_query 1'] = {
'data': {
'me': {
'cellPhone': '+14153334444',
'contexts': {
'c... | [
"me@joeblack.nyc"
] | me@joeblack.nyc |
cd16a430fbaf62b44403dc0685a102926a73680f | 705f4a795cf8bbe5418557e4bafd2359fb861a68 | /src/pyprofile/profiler.py | dfc3aed53c09c15657ba6cc1ad0075cccc946d78 | [
"MIT"
] | permissive | anudeepsamaiya/pyprofile | 71c5c8fdb77887895a6ed08098a0580aade283a5 | 497e57a44340ecee148699940b1f3530874c2a2a | refs/heads/master | 2023-02-18T19:32:57.804142 | 2022-06-15T17:46:58 | 2022-06-15T17:46:58 | 230,414,886 | 4 | 1 | MIT | 2023-02-08T00:55:23 | 2019-12-27T09:34:22 | Python | UTF-8 | Python | false | false | 4,045 | py | """Simple cProfile based python profiler.
"""
import cProfile
import functools
import inspect
import pstats
from datetime import datetime
from io import StringIO
from gprof2dot import (
TEMPERATURE_COLORMAP,
TIME_RATIO,
TOTAL_TIME_RATIO,
DotWriter,
PstatsParser,
)
__all__ = [
"profile",
"... | [
"anudeepsamaiya@gmail.com"
] | anudeepsamaiya@gmail.com |
04929ee13dd2a34f55207a5871cb80ac958e646b | 2b34167a753a806be68cc13112e7f0adf535a841 | /src/reservierung/urls.py | a3fb22ddcb62bc91ba98a0657082d07a89d72aab | [
"MIT"
] | permissive | holytortoise/abwreservierung | dd2e1eccdf657fc0921c8efd0705bebc3fdb24cf | 9bf8bdb64f54df85e815a0af46ad5a62544a2236 | refs/heads/master | 2018-10-29T23:32:19.552878 | 2017-11-06T13:36:23 | 2017-11-06T13:36:23 | 103,610,382 | 0 | 0 | null | 2017-11-06T13:42:44 | 2017-09-15T03:37:19 | JavaScript | UTF-8 | Python | false | false | 844 | py | from django.conf.urls import url
from django.views.generic.base import RedirectView
from django.contrib.staticfiles.storage import staticfiles_storage
from . import views
app_name = 'reservierung'
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'reservierung/form/$', views.reservierung_form, name=... | [
"holytortoise@users.noreply.github.com"
] | holytortoise@users.noreply.github.com |
070875b04b4dc80ae5c6096d671e2aa192e87d56 | 95529ab6b7905ff7792257af1285d0c3c73ebf9b | /rest/app/user/serializers.py | f9b897027aed96cde2a5d86a40e6c3e4550d4a71 | [] | no_license | amahmood561/django-jwt-auth | 8564f033b54e407d6449aa18f37f00e49ef2d80d | ba4bab5db15c6ee026deda493a955b6543c5d6d1 | refs/heads/master | 2023-04-24T01:29:02.598185 | 2021-05-18T00:11:50 | 2021-05-18T00:11:50 | 368,349,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 6 11:14:00 2019
@author: sambhav
"""
from django.contrib.auth import authenticate
from django.contrib.auth.models import update_last_login
from rest_framework import serializers
from rest_framework_jwt.settings import api_settings
from rest.app.pro... | [
"amahmood561@gmail.com"
] | amahmood561@gmail.com |
14e79a710ca48f5ea079f92c74b9d59b7748339e | ec32a7feecc1bb6c9229e2f1f878a74fd01d8bee | /smart_proj/Sensors/Sensor.py | 5ff5e7782f6e023f699f1cebceccd7f21d135063 | [] | no_license | huly94/smart_museum_proj | 8340ecbc1023253002fc3ceb1399ba148e475d26 | e1df31fc4b1da0a7984740ee0db24d3dc5a781c6 | refs/heads/master | 2021-01-05T15:20:35.219344 | 2020-06-05T10:15:17 | 2020-06-05T10:15:17 | 241,059,850 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | import statemachine
import logging
class Sensor(statemachine.StateMachine):
logging.basicConfig(format='%(levelname)s:[%(name)s]:%(message)s', level=logging.DEBUG)
def __init__(self):
super().__init__()
self.area = ""
self.user = ""
self.position = ""
# set the area of th... | [
"ico.giulianelli@hotmail.it"
] | ico.giulianelli@hotmail.it |
f95818b00f5f0d66c4279b5d1bba2ce0634bbc30 | 87209058bd5dd05ff0b3bd3ce2e5b5ed12671410 | /jiaoyu/apps/organizations/forms.py | 7fd39c13a1a60aab869309800b2a5a8761931593 | [] | no_license | keepingoner/django-Projects | 2a8a245b702a507efc27b4b5c6fb669bcf7d1846 | 8ca94559a31f82951a05dd8749c37d7595a8e298 | refs/heads/master | 2022-01-24T09:08:27.384731 | 2019-07-23T02:48:20 | 2019-07-23T02:48:20 | 109,779,078 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from django import forms
from operations.models import UserAsk
class UserAskForm(forms.ModelForm):
class Meta:
model = UserAsk
fields = ['name', 'mobile', 'coursename']
| [
"keepingoner@163.com"
] | keepingoner@163.com |
7463124619a26c52995c43c878ab51848ec53554 | 3c49b21b943218a17cf8d8333813e32c56fe8812 | /SectionShuffle.py | 83ed2900c7c6fdb0a9c6a4fa00adc3a76a543b17 | [] | no_license | dShvetsov/uneexPython | 1c1593b09e426699876734556139981ed9458490 | dcac14c667bce4754e3eca65f43ee1b830174164 | refs/heads/master | 2021-05-15T12:52:03.586740 | 2017-12-13T21:36:38 | 2017-12-13T21:36:38 | 108,435,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | #!/usr/bin/python3
# Ввести последовательность A объектов Python через запятую, и вывести кортеж,
# состоящий из элементов последовательности, стоящих на чётных местах — в обратном порядке (включая A[0]),
# после которых идут в исходном порядке элементы последовательности, стоящие на нечётных местах.
# Input:
#
# '0',... | [
"dshvetsov@arccn.ru"
] | dshvetsov@arccn.ru |
750b855466580ca336ef851454d85be2d5325ce7 | 5c099927aedc6fdbc515f40ff543c65b3bf4ec67 | /algorithms/find-and-replace-pattern/src/Solution2.py | 3baef0faeceac6fc78a718b61d8201ae9e97cf0a | [] | no_license | bingzhong-project/leetcode | 7a99cb6af1adfbd9bb1996a7f66a65679053c478 | ba82e7d94840b3fec272e4c5f82e3a2cfe4b0505 | refs/heads/master | 2020-04-15T09:27:33.979519 | 2020-03-10T03:43:07 | 2020-03-10T03:43:07 | 164,550,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | class Solution:
def findAndReplacePattern(self, words: list, pattern: str) -> list:
def match(word, pattern):
word_map = {}
pattern_map = {}
for i in range(len(pattern)):
if pattern[i] not in pattern_map:
pattern_map[pattern[i]] = word[... | [
"zhongyongbin@foxmail.com"
] | zhongyongbin@foxmail.com |
844bddff19b8cd12f320185b000ce0325bc49e82 | 26270831ececc8c0d28ac4d87da76c64212f232a | /app/blueprints/superadmin/__init__.py | 0ed416a6243d391f2a7935acbc133397f6be2811 | [] | no_license | catonisland/obsidian-panel | d68148daf7a16eee286f8029d01fd8a506bf55e2 | 21bad4b9026f64ca05cd0ff76d3aaf23e0eab043 | refs/heads/master | 2021-06-16T17:47:15.352513 | 2017-05-25T18:29:42 | 2017-05-25T18:29:42 | 103,217,591 | 1 | 0 | null | 2017-09-12T03:29:54 | 2017-09-12T03:29:54 | null | UTF-8 | Python | false | false | 588 | py | __author__ = "Nigshoxiz"
# import libs
from flask import Blueprint
# logging
import logging
super_admin_page = Blueprint("super_admin_page", __name__,
template_folder="templates",
url_prefix="/super_admin")
logger = logging.getLogger("ob_panel")
def get_vers... | [
"demohn@foxmail.com"
] | demohn@foxmail.com |
d83d17593a23cc734d5f3a70eba905a6d4cec639 | d780df6e068ab8a0f8007acb68bc88554a9d5b50 | /python/g1/asyncs/kernels/g1/asyncs/kernels/__init__.py | 14f907bb3747de8bcda48ebf1fa4c851b89d6562 | [
"MIT"
] | permissive | clchiou/garage | ed3d314ceea487b46568c14b51e96b990a50ed6f | 1d72863d3a5f5d620b170f4dd36f605e6b72054f | refs/heads/master | 2023-08-27T13:57:14.498182 | 2023-08-15T07:09:57 | 2023-08-15T19:53:52 | 32,647,497 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | __all__ = [
'KernelTimeout',
'call_with_kernel',
'get_kernel',
'run',
'with_kernel',
]
import contextlib
import contextvars
import functools
import logging
from . import contexts
from . import kernels
# Re-export errors.
from .errors import KernelTimeout
logging.getLogger(__name__).addHandler(lo... | [
"clchiou@gmail.com"
] | clchiou@gmail.com |
c90363d9aca9321afb65fac2b14bdd26eeb19ed0 | aea20c0fe77e54e2c6a69d785c4b40507b1df851 | /inspect_platform.py | a3ba97a93c960cbcd0df7919306b95fc4f28144f | [
"MIT"
] | permissive | ShackleSlayer/cython-vst-loader | 6f219b8f97fe9e1db22b603ae9f7dd9b683ed658 | f24f2090a836b3cb739daf403f0ca5135f44d233 | refs/heads/master | 2023-06-04T20:18:20.479810 | 2021-03-27T14:22:53 | 2021-03-27T14:22:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | import os
from sys import platform
print("sys.platform: " + platform)
print("os.name: " + os.name)
| [
"grechin.sergey@gmail.com"
] | grechin.sergey@gmail.com |
68ab7408ce8c6d407a2d665a1ee377829b57ad7a | 5e4bacde637e872ae9057dc1eeea6fa452e315c4 | /first_project/test_app/views.py | c829771b4258eec5f511759210df41f4446b25ed | [] | no_license | get2nav/django_test_deploy | 9c738161c36df00b5693924b49534e65f6bbca95 | 8baab4644209b424bcda9cec2d3ee2ab83e2906b | refs/heads/master | 2021-07-13T00:21:55.530280 | 2017-10-18T05:14:20 | 2017-10-18T05:14:20 | 107,361,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | from django.shortcuts import render
from django.http import HttpResponse
from test_app.models import AccessRecord, Topic, Webpage
from . import forms
# Create your views here.
def index(request):
accessRecord_list = AccessRecord.objects.order_by("date")
web_dict = {"access_records": accessRecord_list}
... | [
"get2nav@gmail.com"
] | get2nav@gmail.com |
0ef56b88ad2fe82f010064280f80d9f5aacff104 | 390dae3573981063b23afe2e99d30a1fa5b1d305 | /bee-supplychainfinance-riskcontrol/spider/creditBlack/creditBlack/pipelines.py | 70bdba82da2df6c9e33b72a352a79d9e12332e36 | [] | no_license | henry0249/supplychainfinance | d808fe1892fb2872fe276812b4ab88033c004bc4 | 29400a8f109c6551b602d5a4691df492b31a6764 | refs/heads/master | 2021-05-19T17:39:14.310085 | 2019-12-16T05:44:26 | 2019-12-16T05:44:26 | 252,050,516 | 0 | 1 | null | 2020-04-01T02:24:57 | 2020-04-01T02:24:56 | null | UTF-8 | Python | false | false | 526 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json
class CreditblackPipeline(object):
def __init__(self):
self.filename = '../creditBlack.json'
def ... | [
"414608036@qq.com"
] | 414608036@qq.com |
dd3f05884aaa83ec92a198f7824464a0fb70c444 | 8fa701c35c8429ff236574e1fb22bfe336b08132 | /config.py | 72d4c700c3471714b6a7fb4a9d4d797d37909320 | [] | no_license | bauman/Binja-Plugin-Autocollect | 2618ea5f17ca64024df422635c4f59fd5110e0cf | 2902d513faf96b700865c67d3ad1f77d731548b3 | refs/heads/master | 2023-08-27T18:03:33.471519 | 2021-10-27T13:55:35 | 2021-10-27T13:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | import binaryninja as bn
HOST, PORT = "0.0.0.0", 1337
DEBUG = True
HL_NO_COLOR = bn.HighlightStandardColor.NoHighlightColor
HL_BP_COLOR = bn.HighlightStandardColor.RedHighlightColor
HL_CUR_INSN_COLOR = bn.HighlightStandardColor.GreenHighlightColor
| [
"daniel.bauman.1@us.af.mil"
] | daniel.bauman.1@us.af.mil |
3f988b6899a10c4ac6a1b69e4c84e64fdc5be700 | f146aff4875d432a0ff0bae7bb9ef31880dd2065 | /scripts/generate_exceptions.py | fed63277eecaca36214cc4f0e1c4d07c1ef71a00 | [
"Apache-2.0"
] | permissive | dokklib/dokklib-db | 4c231a8b90f893577aa303e0e64af19dd38e5894 | 3665775c6d369ca08431b5295c1c181a9dca97cd | refs/heads/master | 2022-05-01T12:59:49.888649 | 2022-03-11T15:38:31 | 2022-03-11T15:38:31 | 242,386,571 | 22 | 5 | Apache-2.0 | 2021-04-20T19:22:45 | 2020-02-22T17:57:05 | Python | UTF-8 | Python | false | false | 1,718 | py | #!/usr/bin/env python3
"""Generate DynamoDB exceptions.
Boto3 creates exceptions dynamically from a service model which is not
desirable, because it breaks static analysis. This script generates a Python
file from the dynamically loaded Boto3 exceptions and puts it in
dokklib_db/exceptions.py
"""
import boto3
IGNOR... | [
"agostbiro@gmail.com"
] | agostbiro@gmail.com |
a333fef1874da2a84c7cff45bb8a053c52b807ca | 1b0306d876d3598777731c997f5b83e60b1f394d | /pkgs/rackspace-novaclient/setup.py | bff483a59f46e41cb81d1f751af259f84a401dc3 | [
"Apache-2.0"
] | permissive | ck1981/packages | ee9d167cc57a4ea9e5af4d39648573ed0f93b49d | d7eb59ecf023c477608054beab708639ba98d67c | refs/heads/master | 2020-05-27T21:14:00.799745 | 2014-11-21T09:07:47 | 2014-11-21T09:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | import setuptools
version = '1.0'
setuptools.setup(
name='rackspace-novaclient',
version=version,
url='http://pypi.python.org/packages/source/r/rackspace-novaclient/rackspace-novaclient-%s.tar.gz' % version
)
| [
"marat@scalr.com"
] | marat@scalr.com |
ee21abe9473df4f697c4c35008a71d5492ec1e20 | 93a1cad9a151d81095d52b70e6e0d7915acc321d | /app.py | b7efa7ce61f897e09bdb7d56a26f7764de95fd48 | [] | permissive | urozaev/backend | a5bbd1085656d8d5acd5d23753ed88bc6ed12927 | cee64ad901dc2b5988bf00ab7522b7d18cc31ff1 | refs/heads/master | 2022-05-03T23:00:04.060291 | 2020-02-05T14:28:04 | 2020-02-05T14:28:04 | 237,781,948 | 0 | 0 | MIT | 2020-02-02T14:21:02 | 2020-02-02T14:17:49 | Shell | UTF-8 | Python | false | false | 2,691 | py | import falcon
from falcon_cors import CORS
from waitress import serve
from models import *
from playhouse.shortcuts import model_to_dict
import json
from falcon.http_status import HTTPStatus
class HandleCORS(object):
def process_request(self, req, resp):
resp.set_header('Access-Control-Allow-Origin', '*')
... | [
"maxim.urozaev@gmail.com"
] | maxim.urozaev@gmail.com |
96e0a4509348fe07dfcd6aaf9e8734e2926705dd | 1d5bb00a38ab58dfdcda0103c1a3a035253d664f | /mmoproject/mmoproject/wsgi.py | 5678964468d8db1c53b7829addf0747f68ac5c30 | [] | no_license | raghavw29/341Project | 915741cc75509bc62873cb32f6864936055f1670 | 6e8730e5ff7705d906e6817d0af02cc30a18a9b8 | refs/heads/master | 2021-05-06T20:01:54.376960 | 2017-12-09T04:34:19 | 2017-12-09T04:34:19 | 112,258,225 | 0 | 0 | null | 2017-12-09T04:28:19 | 2017-11-27T22:53:03 | Python | UTF-8 | Python | false | false | 398 | py | """
WSGI config for mmoproject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"kmr117@case.edu"
] | kmr117@case.edu |
1d0ab44ab2d7cace7a787b4d4a6be3978f7187fd | e02ffc3482b616a91a6f6a13d61845c0604fb617 | /TextProBar/venv/bin/easy_install-3.6 | 2463228846066737e91dd9b7d86ad2c53622a5de | [] | no_license | Gsynf/PythonProject | 6d136a1176289e7d42c4ed25b9b6d4f515fe01d0 | e55718c3c998f66ba0e2c78c088ef702aeefa532 | refs/heads/master | 2020-05-07T09:04:25.514202 | 2019-07-15T02:35:15 | 2019-07-15T02:35:15 | 180,360,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | 6 | #!/home/hpf/Github/PythonProject/TextProBar/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"18813058359@163.com"
] | 18813058359@163.com |
2bf917c7dfd6dca05d98a4c20051220f8b8228cb | a2367682417bb60de5874e86e924173ec986746b | /open-ai-gym-study/breakout/sample.py | 7a50ea3be7acb285b662ef48fa16c5ef0eaf56d5 | [] | no_license | ampcpmgp/weekly-report | 05f5bee86bec0a70ab071b73ec076c7010de33e8 | dbe0f0528a356cc19898f98008f539401867e25a | refs/heads/master | 2022-10-11T20:55:39.470074 | 2021-01-24T08:46:34 | 2021-01-24T08:46:34 | 141,883,833 | 7 | 0 | null | 2022-10-05T13:56:01 | 2018-07-22T09:49:56 | JavaScript | UTF-8 | Python | false | false | 5,047 | py | # 参考ソース: https://github.com/vy007vikas/OpenAI-Gym-Solutions/blob/master/Atari/breakout.py
import gym
import numpy as np
import random
from scipy import misc
import tensorflow as tf
env = gym.make('Breakout-v0')
observation = env.reset()
EPISODES = 20000
TIMESTAMP = 2000
GAMMA = 0.99
ALPHA = 0.005
explore_eps = 0.2
N... | [
"noreply@github.com"
] | ampcpmgp.noreply@github.com |
fa450b8dd468d64982a36cc5058676a5b785a191 | 604b97a8333b0b0d8e60072cd52e53114fab2488 | /chapter5/exercise3.py | 5aff0131e77404642fc15e31c593f33358fb1e81 | [] | no_license | avmak/simple-python | 04426ce621fa68b52ea95316446d5d0e7b849fc0 | a9ee4e11fb537e4da671f54793544abdc0d23bcb | refs/heads/master | 2020-04-03T09:57:59.422103 | 2016-12-19T12:09:04 | 2016-12-19T12:09:04 | 69,583,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | # first file zoo.py
def hours():
print(' Open 9-5 daily')
# second file or interpretator
from zoo import hours
hours()
| [
"al3x.mak.89@gmail.com"
] | al3x.mak.89@gmail.com |
2f2d51bfbb38047617db2708dafcefeee7f4e45a | 83d03f3f1361a5659d876c6dcfce8d9db38be25b | /database/migrations/0002_auto_20201104_1309.py | b0c46e95182fb51ee985fd8867382f5ffa5ac699 | [] | no_license | roy-sukrit/web_scraping | bb09c54947fb52ffb43f6ddc1dcc3fc865f43884 | 027d42e44a50525709aff3217534e6795cda3ac8 | refs/heads/master | 2023-03-11T04:48:54.847908 | 2020-11-20T14:54:34 | 2020-11-20T14:54:34 | 314,579,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | # Generated by Django 3.1.2 on 2020-11-04 07:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('database', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='imagedb',
name='i',
),
... | [
"roysukrit78@gmail.com"
] | roysukrit78@gmail.com |
91d8dc9cb2b95ee091580cbe4da673fa4fb4185c | 9c36503027aa6fc2fa2f841d60f70f2697ae60be | /pygraphc/similarity/LogTextSimilarity.py | 59263ee4a8088fff29f3a4c0e97edc18e48e95c9 | [
"MIT"
] | permissive | studiawan/pygraphc | bd5517478a6e1ad04220c13fa9f7aea6546225ac | 436aca13cfbb97e7543da61d38c8462da64343b5 | refs/heads/master | 2021-01-23T21:29:41.151025 | 2018-05-17T07:54:54 | 2018-05-17T07:54:54 | 58,362,965 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,451 | py | from pygraphc.preprocess.PreprocessLog import PreprocessLog
from pygraphc.similarity.StringSimilarity import StringSimilarity
from itertools import combinations
import csv
import multiprocessing
class LogTextSimilarity(object):
"""A class for calculating cosine similarity between a log pair. This class is intende... | [
"studiawan@gmail.com"
] | studiawan@gmail.com |
940cd6ace136a91b086db609352705ba1a0764ca | ecec7ad9fba07ed07bf94dc0a3d99de6378ba2ee | /Examples/spiral1.py | 381938345c43ef0327e1bd2fd2538f2e5dea95b7 | [] | no_license | wingkitlee/ASIAASummerSchool2014 | a89122c5b74cc31625d376908208de7f0ec3182f | 554b1ea16307ec7200deae93c7980b9e9c213aef | refs/heads/master | 2020-12-24T14:17:41.499695 | 2014-07-14T21:05:24 | 2014-07-14T21:05:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from numpy import *
import pylab
rl = linspace(0.1,1,20,endpoint=True)
tl = linspace(0.0,2.0*pi,100,endpoint=True)
fig = pylab.figure()
ax = fig.add_subplot(111)
for r in rl:
phase = r*pi # for systematic phase shift
# phase = 0.0 # for no phase shift
print phase
xl = r*cos(tl)
... | [
"wklee@asiaa.sinica.edu.tw"
] | wklee@asiaa.sinica.edu.tw |
9b493bd955e67b2f2db6f2fb3de2d85cee340235 | e6d117c7fc13ed3ada47e16e4550e7d4fda14b5a | /timber.py | 858e2e0bf43293bb1a0fe12a22389fed07f7c811 | [] | no_license | mdornseif/timber | 94837545d118859fa96516f5880dd8a4772d5f97 | fec7ea77190602f169098c8e8d03bcba149f3134 | refs/heads/master | 2021-12-28T12:08:00.403201 | 2002-10-26T08:03:36 | 2002-10-26T08:03:36 | 474,245 | 0 | 0 | null | 2021-12-17T18:05:10 | 2010-01-15T21:55:37 | Python | UTF-8 | Python | false | false | 3,714 | py | #!/sw/bin/python -*- Mode: Python; tab-width: 4 -*-
'''timber - a DoS tool
see http://md.hudora.de/presentationss/digidemo/ - communicating
slowly for further enlightment. --drt@un.bewaff.net - http://c0re.jp/
'''
# number of concurrent querys this might be limited by your OS
# Win 95: 55, Linux 2.0: 245, Linux 2... | [
"drt@2d70b15c-62de-0310-b45c-a2b26695ab02"
] | drt@2d70b15c-62de-0310-b45c-a2b26695ab02 |
94353924f5f858404b46c6afa7fa1325abd04230 | 745e25309d7f0ec93e1a7a94ebf3573247dc21d5 | /ribbon_bk/__init__.py | 359fc89a754512db232da67021e93e9bedc5b4b1 | [] | no_license | dionisiotorres/customs | e7c00bc9cd92e9e8662c24918a0a9731ea1b749b | 320ee8a57838d0c1e7b7d63b5664a9ae7ba306a5 | refs/heads/master | 2022-12-01T21:32:53.041422 | 2020-04-03T14:31:53 | 2020-04-03T14:31:53 | 288,824,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # -*- coding: utf-8 -*-
# Part of eagle. See LICENSE file for full copyright and licensing details.
from . import controllers
from . import models
# from . import reports
from . import wizards
| [
"dmashraf@gmail.com"
] | dmashraf@gmail.com |
a099fa467b284e976807fdab9182b72decc95bd8 | 7c69ceb878d93f4597cd5efcc8b5ab928cc08271 | /Google - Carrotland.py | b8d16d19c342252167a557fef2e099342d2beb82 | [] | no_license | iiLaurens/ProgrammingProblems | 5ad98685ea69734636f003fba9503b1735f83802 | e28e68c8a7710967de797e586e3c8383b60d68aa | refs/heads/master | 2021-06-04T23:01:46.440616 | 2016-09-18T19:15:06 | 2016-09-18T19:15:06 | 52,192,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,227 | py | """
Carrotland
==========
The rabbits are free at last, free from that horrible zombie science experiment.
They need a happy, safe home, where they can recover.
You have a dream, a dream of carrots, lots of carrots, planted in neat rows and
columns! But first, you need some land. And the only person who's selling l... | [
"noreply@github.com"
] | iiLaurens.noreply@github.com |
d247e69e2008ceb52000bf94a9c402b65030dfbb | c84cee1abce6372a71314d28ca6a8681a6ad5cb5 | /chat/forms.py | adc3810f9a97a850edc84266b4d97bcd84337a87 | [] | no_license | SergeyLebidko/ChannelsTraining | 441477a14c6fe424ea11ba2e05aac0fef90151bc | 845a9b27f1d0bdb9424407c68e5051ec06d06cc9 | refs/heads/master | 2023-06-09T09:32:21.049921 | 2021-06-22T13:42:44 | 2021-06-22T13:42:44 | 376,584,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from django import forms
from django.core.exceptions import ValidationError
from django.contrib.auth.models import User
from django.contrib.auth.password_validation import validate_password
class RegisterForm(forms.Form):
username = forms.CharField(label='Имя пользователя', required=True)
password = forms.Cha... | [
"it.sergeyler@mail.ru"
] | it.sergeyler@mail.ru |
942c5caee60c986c7ecec451238c5f1b68ef57e0 | 08c1ab343ce0a7dde54b7cc765a8d46291875bd7 | /PeriodicChecker/src/PeriodicChecker/tasks/sqlite_storage.py | 9d81f8ea983f5a2bc7838ba5a76447f32935415b | [] | no_license | cegorah/simple_periodic_checker | b930549c3f8bbed8b5301ded436d67e617229cb8 | 69b5b7eaa25e0560236a193a2450b1f6e2b308e5 | refs/heads/master | 2023-03-30T10:28:41.095908 | 2021-04-07T02:04:16 | 2021-04-07T02:04:16 | 355,383,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,747 | py | import pickle
import aiosqlite
from typing import Dict
from sqlite3 import Binary
from PeriodicChecker.tasks.task_storage_interface import TaskStorageInterface, TaskInterface
class SqliteKeeper(TaskStorageInterface):
def __init__(self, storage_path: str):
self.storage_path = storage_path
async def i... | [
"a.harinskiy@firstdedic.ru"
] | a.harinskiy@firstdedic.ru |
c64e0ee69e8c8244e34e9afa1003170dc8232f5c | 233a4850ffc5ca2a8a090d84e9cfdb95b59e4060 | /setup.py | 38df1165794605b5b4e35d2216f9ec62cdc3fe0e | [
"MIT"
] | permissive | network-box/tgldapid | 44d17a0f6137ebec7357248892f9fa69e9e99bd7 | bb16bb6e60a24cc56a53fc5222203c3031b5e07f | refs/heads/master | 2020-12-30T09:26:16.526155 | 2014-01-23T09:53:39 | 2014-01-23T09:53:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | from setuptools import setup, find_packages
from turbogears.finddata import find_package_data
packages=find_packages()
package_data = find_package_data(where='tgldapid', package='tgldapid')
setup(name="tgldapid",
version="1.0",
description="A TurboGeard LDAP identity provider",
author="Mathieu Brid... | [
"bochecha@fedoraproject.org"
] | bochecha@fedoraproject.org |
13eaa8050c6e33e80136be163ebc2a91cbf19196 | c4481c910c7b83aa5ce445aba1a680fe04750c13 | /dataset/dataloader.py | 0a86405b509e3fb67a9f920fc6d27b0e13a07d8a | [] | no_license | runauto/pse-lite.pytorch | 03a8c228bcc76fb095438408478a755b780b0b8a | 8663f8c3b8b6b629f45f10d17799e7c8c02f55cb | refs/heads/master | 2022-11-14T05:54:15.298472 | 2020-06-24T13:49:58 | 2020-06-24T13:49:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,970 | py | #-*- coding:utf-8 _*-
"""
@author:fxw
@file: dataloader.py
@time: 2020/06/17
"""
#-*- coding:utf-8 _*-
"""
@author:fxw
@file: dataload.py
@time: 2020/04/28
"""
import numpy as np
from PIL import Image
from torch.utils import data
import glob
import cv2
import random
import os
import torchvision.transforms as transforms... | [
"15671628547@163.COM"
] | 15671628547@163.COM |
f663670f5f82ea1f3d7c127fa64f174c7b0a1821 | 859937e2c1b2698e5a2bdd631a5df77c3204410c | /mybtc/mybtc1/mycoin/mine.py | 64ff6c9d1674d666ec96a7631e0396a9c3471fe7 | [] | no_license | takagotch/btc | dcd218f1aaebc3991e4265a94bde1580c02ea482 | a8fa6e14670fbd429e699c364a3f09adb05de837 | refs/heads/master | 2021-06-07T19:25:17.583933 | 2020-04-15T04:49:07 | 2020-04-15T04:49:07 | 115,355,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | import base58
import ecdsa
import filelock
import hashlib
import json
import re
import sys
DIFFICULTY = 4
VERBOSE = False
if len(sys.argv) != 2 and len(sys.argv) != 3:
print('usage:', sys.argv[0], 'public-key verbose')
exit()
if len(sys.argv) == 3 and sys.argv[2] =='verbose':
VERBOSE = True
public_key =... | [
"dyaccb@gmail.com"
] | dyaccb@gmail.com |
2fd4739cd3e18754abe97d5875a5f79dabf867d0 | 62e321fe95d68223ce17dca973b776d996ed9df9 | /jplag_catcher/migrations/0001_initial.py | 011348d313cfe1db9e9047ae53afb1536b7f85cc | [
"MIT"
] | permissive | tustunkok/copy-catcher | 338dee28efe5ef496936ff25bb44a41cab6b372a | 81d6b50f687c65ad83369af2b4675e5f88115a94 | refs/heads/master | 2023-02-27T10:28:01.733795 | 2021-02-04T22:59:33 | 2021-02-04T22:59:33 | 333,360,526 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | # Generated by Django 3.1.5 on 2021-01-26 19:58
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='History',
fields=[
('id', models.AutoField(... | [
"tolgaustunkok@gmail.com"
] | tolgaustunkok@gmail.com |
7997978962821fe9981f1e5e1415740d920bddbb | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /ENJTPoWCyEGgnXYjM_7.py | 6804f1adebe40875f04f9577628db7907b57414a | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | """
Create a function that calculates what percentage of the box is filled in.
Give your answer as a string percentage rounded to the nearest integer.
### Examples
percent_filled([
"####",
"# #",
"#o #",
"####"
]) ➞ "25%"
# One element out of four spaces.
percent_... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
55842f647eb61b495f62ad967da0556dcdb542c7 | de4828eae2b4af9c0233f1717b53e892ac57b30d | /time_tool.py | 6ccb67c863c67051cb7b19de7d0c72c7962f4efc | [] | no_license | xcc19891/fs-timing | 5f3ce422279eb885ffaa45b6bc5a44ba19cb504d | a1b79e44df63c4a242fb882a4a4c4fcb3906cf47 | refs/heads/main | 2023-03-26T01:32:59.566255 | 2021-03-25T22:16:29 | 2021-03-25T22:16:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,188 | py | #time_tool.py
import time
from pylab import *
import watchdog
from psp.Pv import Pv
import sys
import random # random number generator for secondary calibration
from scipy.optimize import leastsq # for secondary calibration
class time_tool():
def __init__ (self, sys='NULL'):
if sys == 'XPP': # set up xp... | [
"operations@cohlysion.net"
] | operations@cohlysion.net |
9c16879a60050ea6fcfd7fbdb38f04f0059b0a5e | 45c142c3e3dc8d3211a86c77385ecfdd10d28fb9 | /dstore/engine/procedures/im_SearchProductTreeNodes_Pu_pb2.py | e8477e582833c1a15b21f596409f099d300fbbfe | [] | no_license | dstore-io/dstore-sdk-python | 945d64995c8892af18fab26c90117245abec64a4 | 8494d12ac77c3c3cc6dd59026407ef514ad179fc | refs/heads/master | 2020-06-14T13:07:08.181547 | 2017-01-26T11:19:39 | 2017-01-26T11:19:39 | 75,177,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 36,707 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: dstore/engine/procedures/im_SearchProductTreeNodes_Pu.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
fr... | [
"b.dolkemeier@dbap.de"
] | b.dolkemeier@dbap.de |
62fb1ffa197f4e7747aca08dfba2c2a73f3f2ed7 | a9adecfcd29b1abb01f1aefe802532987afee0bb | /PREPdens.py | 4fbfc824889d5427ed98e9c82a2bdf3afa0e7a7a | [] | no_license | LABclimate/MT | dbbd8b3912743a824452d9652bb092877de60010 | bf8c3a399a43b1235e89f6c86675a7b3ce4b4aff | refs/heads/master | 2021-01-16T23:54:34.323521 | 2016-12-14T17:44:24 | 2016-12-14T17:44:24 | 59,574,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,295 | py | # preparation of all dens-conversions
import numpy as np
import gsw
from netCDF4 import Dataset
import xarray as xr
import pickle
import matplotlib.pyplot as plt
import time
import sys
sys.path.append('/home/buerki/Documents/MT/scripts/')
import CESM_utils_mask as utils_mask
import CESM_utils_plt as utils_plt
import... | [
"buerki@climate.unibe.ch"
] | buerki@climate.unibe.ch |
c9fca65f0f87018fbee51703ebacf70670b50101 | d78d9da9f0f64bedf42c2349f096286a032a6892 | /test.py | 7e278248a21bd7b54f542c04ca443b7c0c1ddc14 | [] | no_license | lhz870665934/server-test | 8680e6df9c0c4878b817a64c1460f71f94105007 | e9bae869beecadb684b397e0b74d6c8987720546 | refs/heads/master | 2021-08-30T16:23:54.532483 | 2017-12-18T16:30:33 | 2017-12-18T16:30:33 | 114,662,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | import socket, netstream, random, time, multiprocessing
connected = False
sock = None
serialID = 0 #server向客户端发回的序列ID号
isSet = False
def get_send_data():
send_data = {}
send_data['sid'] = serialID
return send_data
#向server请求公告
def request_notice():
send_data = get_send_data()
send_da... | [
"870665934@qq.com"
] | 870665934@qq.com |
37539912a89b349cec5dd992f3d870809c5ee56c | 5b62b5d02e6b108672236d3d519b88dd2a2acdbf | /webapp/settings.py | 424ed81bd88c537be3d67bfa0a508c530a3f5a04 | [] | no_license | tuannguyencorei7/Car-Recognition-webapp | 6f86b3ffa38aea082fed9e740b8c6c7429a70f39 | 6fa20b0c2e90203106253dbefe9f2f039c9771a6 | refs/heads/main | 2023-06-16T16:27:40.278670 | 2021-07-14T03:32:59 | 2021-07-14T03:32:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,903 | py | """
Django settings for webapp project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from... | [
"tuannguyencorei7@gmail.com"
] | tuannguyencorei7@gmail.com |
b7b79b8c36d18d972a46f2208026d965dae2afbd | 09cead98874a64d55b9e5c84b369d3523c890442 | /py210110d_python3a/day10_210314/homework/stem1403a_hw_9_0307_KevinLiu.py | b6e041e3e82b381854c864f058043ff9a5dc02eb | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | """
Date: 2021-03-08
1. Write a GUI program of clock
Requirements:
(Function)
Show current time in the pattern of HH:mm:ss.aaa
i.e.
10:12:45.369
(UI)
Display a title, main area for clock, and footer for the date
Due date: by the end of next Friday
Hint:
import datetime
strftime
"""
"""
score:
perfect
"""
# tkinter m... | [
"lada314@gmail.com"
] | lada314@gmail.com |
c633a2bd1b9aef99b5c5fb278198a62d1ce1eade | be38f7e54587aac1b618d8e0c804dc5d2e37515b | /comments/migrations/0019_auto_20210223_1432.py | 654a93303febea3efa531e1d5d2536676456123c | [] | no_license | ydmlife/HelloDjango-blog-ydm | 7bd6e1ca539f1e03e1c7c5f1583f5eebd1399e9d | a93eefebb38ad3a8ab96fe99d855c2a3a96fdfef | refs/heads/main | 2023-03-07T11:46:12.422855 | 2021-02-25T02:13:09 | 2021-02-25T02:13:09 | 333,000,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # Generated by Django 2.2.18 on 2021-02-23 06:32
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('comments', '0018_auto_20210223_1429'),
]
operations = [
migrations.AlterField(
... | [
"249405097@qq.com"
] | 249405097@qq.com |
76b17a7fb0ca16a61b1feb82eb495b0ae9188bbe | 6707bb54c81e9ec4f92181a3a2c13399c8000ce1 | /Final-Security-Project/client.py | 8f65a5d1d321fe87a0fdb7f874d375f05ea592b8 | [
"MIT"
] | permissive | MohamedMedhat96/Final-Security-Project | cb298c4dc8cbe643a8369af4bee170cc2bbb78d6 | 1a2b4f35469ca2c18e44fdf12e066b1e16d312fd | refs/heads/master | 2020-05-18T21:17:52.177431 | 2019-05-11T22:44:25 | 2019-05-11T22:44:25 | 184,656,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,789 | py | import socket, io
import time
import select
import queue
import sys,os
from Crypto.PublicKey import RSA
from Crypto.Random import get_random_bytes
from Crypto.Cipher import AES, PKCS1_OAEP
import PIL.Image as Image
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
from gui import *
import psycopg2
import... | [
"mohamed.medhat-ali@student.guc.edu.eg"
] | mohamed.medhat-ali@student.guc.edu.eg |
fcc6dd1a130ab6e029b93d4fc4817945531da42e | 24a2a532f288c8d7ce9a230b7aefa80121929671 | /python/2016/sorting/mergeSort.py | 49412b8968d5eceb4b2d5ddaf65531658baf01a7 | [] | no_license | sonalirahagude/CodingPractice | 5156f2741064c458b8198a6615bf48def01d3260 | 6ef1ee8f78e6d38f38919d61e8a56e1cc7578b5c | refs/heads/master | 2020-12-24T16:16:41.915686 | 2016-10-13T02:47:45 | 2016-10-13T02:47:45 | 24,384,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | #! /usr/bin/python
def mergeSort(A,i,j):
if j <= i:
return
mid = (i + j)/2
mergeSort(A,i,mid)
mergeSort(A,mid+1,j)
merge(A,i,mid,j);
def merge(A, i, m, j):
L = [0]*(m-i + 1)
R = [0]*(j-(m+1) + 1)
st = 0
while (st < m -i+1):
L[st] = A[i+st]
st += 1
st = 0
while ( st < j -m):
R[st] = A[m+1+st]
s... | [
"sonalirahagude@gmail.com"
] | sonalirahagude@gmail.com |
543a4f1d23404066f164eb70f02368bcc17fb280 | 3a917fdbed57d06c6972a28f6619b08e143ab574 | /py/202211/213.打家劫舍-ii.py | b904fac07afb986844ca6fafcb3e6b64b4773412 | [] | no_license | qtdwzAdam/leet_code | 8ae2552f93c8c7832a00635de8e2ee3f9fb00865 | e6a3e0f11bb9f054711109462ceb3d083825ea66 | refs/heads/master | 2022-12-14T23:44:18.985609 | 2022-12-07T07:23:58 | 2022-12-07T07:23:58 | 83,564,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | #
# @lc app=leetcode.cn id=213 lang=python
#
# [213] 打家劫舍 II
#
# @lc code=start
class Solution(object):
def rob(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
len_cnt = len(nums)
if len_cnt < 4:
return max(nums)
dp_table = [-1] * len_cnt
... | [
"woshiduwangze@163.com"
] | woshiduwangze@163.com |
b8510d4d9edae813966c735b60d52af9a5b4ed61 | 1a527f9e3bb29fb1aa188ce851592afffdb66c9d | /enclave_manager/avalon_enclave_manager/graphene/graphene_enclave_info.py | 3b98c993c3d47c577162ae9532d515ce127965d7 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"Zlib",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-4.0"
] | permissive | stephmackenz/avalon | 417e44785c3fbef8bbc1881590580d71b8f7c195 | 8afeab63a04b681bc44c66e807e70c27c8f1e589 | refs/heads/master | 2022-11-30T12:38:37.458733 | 2020-08-11T02:56:05 | 2020-08-11T02:58:13 | 278,161,584 | 1 | 0 | Apache-2.0 | 2020-07-08T18:11:08 | 2020-07-08T18:11:07 | null | UTF-8 | Python | false | false | 1,551 | py | # Copyright 2020 Intel Corporation
#
# 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 wri... | [
"manoj.gopalakrishnan@intel.com"
] | manoj.gopalakrishnan@intel.com |
d236d7d3e9a7129d63f638cbc9783f3c492f0261 | 92ad257d1a1af0d3337d1c475be01c817b425e15 | /clients/docker/__init__.py | c8bf61da6681eae852b16ec5a8b32b090d76984e | [
"MIT"
] | permissive | orchestrapi/orchestrapi | 1aaec6767d5a2efeaf491ce5ab035edcea2626eb | 575e66a86c42b5c249fd943bb5f40c8c310139aa | refs/heads/master | 2022-12-11T19:04:15.488144 | 2021-07-05T19:34:15 | 2021-07-05T19:34:15 | 153,327,940 | 3 | 1 | MIT | 2022-12-08T05:46:00 | 2018-10-16T17:39:34 | Python | UTF-8 | Python | false | false | 524 | py | """Docker client module."""
import subprocess
import docker
from .containers import DockerContainerMixin
from .networks import DockerNetworksMixin
from .images import DockerImagesMixin
class DockerClient(DockerContainerMixin, DockerNetworksMixin, DockerImagesMixin):
"""Special client for docker commands."""
... | [
"keoh77@gmail.com"
] | keoh77@gmail.com |
142f8bb7cdf2120af359d9d9a515bd759456e590 | a63671832033562d7bb9c017707cfdb5e50c0aa6 | /retina_vgg/train_retina_vgg.py | f2de915f60c5427ba81193704fe333df541670c9 | [] | no_license | tzler/modern_prometheus | 2d5f9d9cab36d22073aa1d9fd9fa812ba1e311e3 | 86b06057c9211d77456cd94bc6c5104ff484e6d2 | refs/heads/master | 2021-08-30T20:34:41.403507 | 2017-12-19T10:20:27 | 2017-12-19T10:20:27 | 114,233,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,489 | py | """
runs retinal models ofvgg16 on imagenet.
"""
import copy
import os
import numpy as np
import tensorflow as tf
from tfutils import base, data, model, optimizer, utils
from dataprovider import ImageNetDataProvider
# specific to final project
from vgg_retina_model import retina_vgg
database_name = 'deep_retina'
co... | [
"tyler.ray.bonnen@gmail.com"
] | tyler.ray.bonnen@gmail.com |
aa0f59f38a582475a55c56c36a78be79bab75599 | fe203d5c28e2010cdc78a4b29755e148d58045db | /p02/q07_miles_to_kilometres.py | 1e02355748970bfbdec15c9a409bb1cc807d34ef | [] | no_license | sp0002/cp2019 | d2a9aa5bfe7c82de3ed3f96f281c39be8704d3bd | 6c48528f948dad01f4d6571e3bb22dbf253c423c | refs/heads/master | 2020-04-24T23:24:21.324069 | 2019-04-13T11:13:01 | 2019-04-13T11:13:01 | 171,574,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | print("Miles Kilometers Kilometres Miles")
for i in range(10):
print(str(i+1) + (" "*(6-len(str(i+1)))) + "{:.3f}".format(round(((i+1)*1.60934), 3)) +
(" "*(11-len(str(round(((i+1)*1.60934), 3))))) + str(i*5+20) +
(" "*(11-len(str(i*5+20))) + "{:.3f}".format(round((i*5+20)/1.60934, 3)))) | [
"k"
] | k |
1cee30fd555b8401f472c0542696c8c57b37f775 | 1318a4db4d327692dc8af6f8a83941be842a089b | /redash/app.py | 67eee53bbe75f8bcbf3bd9565469c5ca485ca7bf | [
"BSD-2-Clause"
] | permissive | taxibeat/redash | 43a96ad439189f752f473446dc767e2fc9f00468 | 36aade4f219844a82cfd3c82a98c80003e8bce1e | refs/heads/beat-redash-v10-1-0 | 2022-09-28T01:08:29.956597 | 2022-06-21T12:14:06 | 2022-06-21T12:14:06 | 206,778,926 | 2 | 0 | BSD-2-Clause | 2022-07-11T07:39:35 | 2019-09-06T11:23:58 | Python | UTF-8 | Python | false | false | 1,686 | py | from flask import Flask
from werkzeug.middleware.proxy_fix import ProxyFix
from . import settings
class Redash(Flask):
"""A custom Flask app for Redash"""
def __init__(self, *args, **kwargs):
kwargs.update(
{
"template_folder": settings.FLASK_TEMPLATE_PATH,
... | [
"noreply@github.com"
] | taxibeat.noreply@github.com |
f550baafd2dec5f8820093ff097b7363e1d33740 | dabb5795dbe1dfeb4071197a8c9c806df4de5462 | /sheets.py | 57a2902f6c8a428d92213abf7e541e4758ade445 | [] | no_license | woskar/automation | c84be385c1de4b2c44fde0461f687235d7c04afe | 2dfc6d9e737d39244e5b0cc5b4833b7adac35ed2 | refs/heads/master | 2021-01-19T08:33:23.975526 | 2017-11-22T22:36:51 | 2017-11-22T22:36:51 | 87,645,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | ''' script to download music sheets '''
import requests, os, bs4, threading
os.makedirs('noten', exist_ok=True)
import time, os, requests
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
url = ''
location = ''
browser = webdriver.Firefox()
browser.get(url)
zettels = browser.find_elem... | [
"oskar.weinfurtner@icloud.com"
] | oskar.weinfurtner@icloud.com |
ea162b2a3c5b84a90e41bc9b7fb95be334a0185f | 9a62d8436ebdf16e8f00453fc45bb9274f9119ef | /bokeh/bokehVirtual/bin/jsonschema | 2cf5b9c90371c2dc5731dc45a8301e557f61b27a | [] | no_license | Saikat2019/Python3 | 895b3398eae93709e976e040d2bca19cefc62c77 | 2125765385e38a960e4da95c29a9656e6dc0ab41 | refs/heads/master | 2020-03-23T15:24:56.739681 | 2018-09-02T05:11:44 | 2018-09-02T05:11:44 | 141,746,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | #!/home/saikat/Documents/python3/bokeh/bokehVirtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from jsonschema.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mad.sm.productions.com"
] | mad.sm.productions.com | |
31e3f5998fd133208c381a13a7c424aaa849da72 | 94273652a8b7f0a818502745704218bee44901cd | /Week4/get_random_kmer_from_dna.py | 0c825ddee92a5ad75d9ad110331339611b8a1258 | [
"MIT"
] | permissive | arvinddoraiswamy/mybioinfo | a6afceaf2fb0decc049bb0f08b7dfdccb23599e2 | e964fa20f1bdea06d2ef26f6ea8ad57847985929 | refs/heads/master | 2020-05-22T02:46:29.412490 | 2018-09-16T21:03:34 | 2018-09-16T21:03:34 | 65,585,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | import sys
import os
#Adding directory to the path where Python searches for modules
module_folder = os.path.dirname('/opt/Courses/TechCourses/Bioinformatics/code/')
sys.path.insert(0, module_folder)
#Importing genemanipulating module. This has a lot of common functions.
import genemanip
if __name__ == "__main__":
... | [
"arvind.doraiswamy@gmail.com"
] | arvind.doraiswamy@gmail.com |
ab5471c75c6c041b34bcf6f37ca857e2ef125352 | 95fb15393e2ee41ccd7a449f1efde2fcf3b0b358 | /main.py | 8f9a6ef059454533b0bdaa39030ea04667fecfb1 | [] | no_license | ivanblinov2k17/friends_reccomendations_cursach | e16a9e78d143a865415cb14b6d5b683545d0b066 | fc434864cb45ba0fcd7bcf186b2f73735c772bea | refs/heads/master | 2022-09-29T01:36:51.418209 | 2020-06-06T13:27:41 | 2020-06-06T13:27:41 | 269,977,271 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,099 | py | import requests
import json
import time
import networkx
import collections
import re
import numpy as np
import vk
def getFFs(friends):
cnt = 0
members = []
while cnt < friends['count']:
code = '''
var friends = ''' + str(friends['items']) + ''';
var members = [];
... | [
"ivanblinov2015@mail.ru"
] | ivanblinov2015@mail.ru |
a732f6dcb2b71f38e0b350ced1bf36bb1a6ec030 | 19f96fdd86f1a29f4eec3d18d9e513865f1f512f | /webWork_backup/webflask/test_py3/lib/python3.5/functools.py | 80c2ada1ff51e55ce0ec60727b7ccb3cefc4b5d3 | [] | no_license | Cattmonkey/openWork | e133376eeea3bbf5279f9199b18aa8cf44f21637 | 3e1f21f0c6bce7ec114cc8d6311746c4a2cc426b | refs/heads/master | 2020-03-14T00:58:41.610424 | 2018-05-04T09:59:03 | 2018-05-04T09:59:03 | 131,368,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | /root/anaconda3/lib/python3.5/functools.py | [
"yyxdyx01@163.com"
] | yyxdyx01@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.