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
ac4b87c2ef8d46c4149984f849a04f5e20b3fc0e
600df3590cce1fe49b9a96e9ca5b5242884a2a70
/third_party/catapult/telemetry/telemetry/timeline/sample.py
806f60fafa2635a581485698ceee0eed38121471
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
metux/chromium-suckless
efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a
72a05af97787001756bae2511b7985e61498c965
refs/heads/orig
2022-12-04T23:53:58.681218
2017-04-30T10:59:06
2017-04-30T23:35:58
89,884,931
5
3
BSD-3-Clause
2022-11-23T20:52:53
2017-05-01T00:09:08
null
UTF-8
Python
false
false
713
py
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import telemetry.timeline.event as timeline_event class Sample(timeline_event.TimelineEvent): """A Sample represents a sample taken at an instant in time...
[ "enrico.weigelt@gr13.net" ]
enrico.weigelt@gr13.net
e2ead4671cce3be455a5a6e25ee01ecbcd94bbbd
e41cab4287e100afda2050e5ac3e07ce04b135a2
/sasoptpy/libs/numpy.py
931c27e9607e640ad9cb32ec458b47ca67f87251
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
yanxu55/sasoptpy
a8f60caa6bab0883013cf319f23c030f3284cfda
5f2ea28bb66cf072527b8787ad6c7bd516db5d00
refs/heads/master
2023-01-05T09:05:54.988131
2022-03-01T18:01:39
2022-03-01T18:01:39
156,903,392
1
0
Apache-2.0
2018-11-09T18:38:38
2018-11-09T18:38:38
null
UTF-8
Python
false
false
159
py
import numpy as np number = np.number isinstance = np.issubdtype issubdtype = np.issubdtype ndarray = np.ndarray nan = np.nan inf = np.inf isnan = np.isnan
[ "sertalp.cay@sas.com" ]
sertalp.cay@sas.com
e380684efa4489a420250c6592f1d2fbbe93c88d
61733b45d5efb7e1b5c76fcf795be28ccbe9d350
/C04_Feature_Mapping.py
8cc873d68a251e2e1382e0ce825f1e63f2e96f06
[]
no_license
Shyam-Khokhariya/ML-Python
9b837616623bdc011059ad69e468c3fc2c6cf57c
13fb1d27b68efdf32b4b8ae6c735149cb37a52c7
refs/heads/master
2020-04-09T02:01:08.393345
2019-05-31T13:37:20
2019-05-31T13:37:20
159,925,858
2
0
null
null
null
null
UTF-8
Python
false
false
1,204
py
import pandas as pd import numpy as np df=pd.DataFrame([ ['Green',10.0,'M','Class1'], ['Blue',15,'S','Class2'], ['Yellow',14.5,'XL','Class3'], ['Pink',12.2,'L','Class4'] ]) df.columns=('Color','Price','Size','ClassLable') # print(df) size_mapping={ 'M':2, 'S':1, 'L':3, 'XL':4 } df['...
[ "noreply@github.com" ]
Shyam-Khokhariya.noreply@github.com
a0d9c35a415b9dd7d28d35a0995ae5dc81209c6a
4dd1d8fa59e20061e2c12e540fc52b1b305e575b
/source/sims/s89/plt-exact-sol.py
0d82396776954a630e3f77a1be11e7c2991767ef
[ "MIT" ]
permissive
ammarhakim/ammar-simjournal
f63521906a97d55ab290a5960d94758139944c89
5019f4723e20db80a20db6f2bd454c2fd3241412
refs/heads/master
2023-06-08T08:18:11.722779
2023-06-02T15:06:43
2023-06-02T15:06:43
204,050,516
3
3
null
2022-02-01T16:53:13
2019-08-23T18:28:44
Lua
UTF-8
Python
false
false
765
py
import pylab import tables import math import numpy def exactSol(a, b, X): c0 = -(1/2.0 + a/12.0 + b/30.0) c1 = 0.0 return X**2/2 + a*X**4/12 + b*X**6/30 + c0*X + c1 fh = tables.openFile("s89-poisson-o3-1d_phi.h5") q = fh.root.StructGridField nx, nc = q.shape Xf = pylab.linspace(0, 1, nx) qe = q[:,0] dx ...
[ "11265732+ammarhakim@users.noreply.github.com" ]
11265732+ammarhakim@users.noreply.github.com
d9fd84278cb0fd0e16b7d8b5ef572a359ea5de86
87f9ad9f05a2786237d7344921ffd43dfd1b42d4
/window/version.py
e46b13db78c38bc6cb24c7db7230884871af22b6
[]
no_license
ctfang/docker-tkinter
852f0539efc16aea51e6183e8cf538eb7ee9e500
e73c281c960d42044e081f2e299a1024bfeb2a44
refs/heads/master
2021-09-03T13:29:30.878821
2018-01-09T11:33:01
2018-01-09T11:33:01
116,377,109
2
0
null
null
null
null
UTF-8
Python
false
false
381
py
import tkinter as tk class version(tk.LabelFrame): title = "版本说明" version = "版本:RC0.0.1\n作者:明月有色\n版权所有:blog.ctfang.com\n源码地址:github.com/selden1992" def __init__(self, master=None, **kw): super().__init__(master, kw) text = tk.Text(self) text.insert(tk.INSERT,self.version) ...
[ "baichou@qingmutec.com" ]
baichou@qingmutec.com
d093c6aa8d43507079830298c8ea4c5e6dc134fc
4aa9fb335009ee76319c297ecc96e3a6e55f4f18
/blog/admin.py
166543321585e05bd9d3194a3c73b3f2069b12cb
[]
no_license
yemingrujing/blogproject
d041c0051792b2ac18f2c2910b6f10431610bd84
751890408afe1279d411ad112ccdebd51fb515f6
refs/heads/master
2020-07-03T23:38:33.313856
2019-09-05T07:12:10
2019-09-05T07:12:10
202,087,752
0
0
null
null
null
null
UTF-8
Python
false
false
835
py
from django.contrib import admin from .models import Post, Category, Tag # Register your models here. @admin.register(Post) class PostAdmin(admin.ModelAdmin): # 自定义显示字段 list_display = ['title', 'create_time', 'modified_time', 'category', 'author'] # 每页显示条目数 list_per_page = 5 # 添加快速查询栏 search_f...
[ "yemingrujing@users.noreply.github.com" ]
yemingrujing@users.noreply.github.com
836e4a0d58db89b30890ac1c870910550a3e7b3d
a0567cb57411ea07d36b36c08a550a0c1a966642
/printing_models.py
2dcb4f0f7b3391d2ff42e21752ad4f69bfa3fc6d
[]
no_license
Dmitry-pytho/Education
55ae0b12604452a793e473817acb75e37a2c68f6
ec6446a825d9f2a698b382f481448951872c1789
refs/heads/main
2023-03-22T21:47:04.201095
2021-03-14T07:08:42
2021-03-14T07:08:42
317,008,059
0
0
null
null
null
null
UTF-8
Python
false
false
623
py
def print_models(unprinted_designs, completed_models): while unprinted_designs: current_design = unprinted_designs.pop() print("Printing model: " + current_design) completed_models.append(current_design) def show_completed_models(completed_models): print("\nThe following models have be...
[ "dmitry.solomiannyi@gmail.com" ]
dmitry.solomiannyi@gmail.com
84456b2209cb17f9367d8738999a3584467581c3
95c79b0b95dc5dd184ce0d00390094e98ac42c3d
/DjangoApi/settings.py
b975cf2a0af08538512892d5a247d902bc8af324
[]
no_license
FouzanJafri/DjangoApi
15a004a47f5e828ea7ea3125e0c6e863c99fc544
86644bc07c23271651d9b4fc31eea2e018198481
refs/heads/main
2023-08-25T16:20:20.582962
2021-10-30T06:54:44
2021-10-30T06:54:44
422,801,471
0
0
null
null
null
null
UTF-8
Python
false
false
3,422
py
""" Django settings for DjangoApi project. Generated by 'django-admin startproject' using Django 3.2.8. 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/ """ from pathl...
[ "jafrifouzan@gmail.com" ]
jafrifouzan@gmail.com
8b653c1e485eb97ee64ff943efc60272791eafff
eccdc5f337f97b0d12a1516518422416cb45a6e8
/pcm2wav.py
b39c77134a2c67fff1ead71f56c4d14ae8283469
[]
no_license
jimmy3663/Venice
82770c4ced80e92ec48d2a71e4c893697e3a3268
43a1e6b4958352380584a5a9e0cb1eabfdeee80d
refs/heads/master
2021-01-02T16:15:26.420010
2020-02-12T07:37:01
2020-02-12T07:37:01
239,698,903
0
0
null
null
null
null
UTF-8
Python
false
false
567
py
import wave from pydub import AudioSegment def pcm2wav( pcm_data, wav_file, channels=1, bit_depth=16, sampling_rate=44100 ): # Check if the options are valid. if bit_depth % 8 !=0: raise ValueError("bit_depth "+str(bit_depth)+" must be a multiple of 8.") # Read the .pcm file as a binary file...
[ "jimmy3663@naver.com" ]
jimmy3663@naver.com
c48865c2bf55d296f8ca4ba894ac477f9b557634
97893ca3ff69dc6e753a0e75cf68e19636c3fe39
/meta/eda.py
fcae6e1369c5cde818773c4f03584bab8df140a5
[]
no_license
lisatostrams/MLIP
ca443250f9199363504499bed4db7f4cd33d00f8
3f12e3c59e55cdeeb5a172b0f256768ab1796255
refs/heads/master
2020-04-22T21:07:33.630933
2019-02-28T11:23:06
2019-02-28T11:23:06
170,663,297
0
0
null
null
null
null
UTF-8
Python
false
false
563
py
# -*- coding: utf-8 -*- """ Created on Thu Feb 14 10:33:00 2019 @author: Lisa """ import numpy as np import pandas as pd import matplotlib.pyplot as plt data = pd.read_csv('petfinder-adoption-prediction/train/train.csv') #%% import collections name_counter = collections.Counter(data['Name'].values) lst = name_cou...
[ "lmc.tostrams@student.ru.nl" ]
lmc.tostrams@student.ru.nl
eb264914f5c39d64a01c1b43b256fbe0b4630d53
e05552e5ed1b8376187530804f95e56e1ce0d4ce
/src/db/models.py
031bf8c406b66c97456d9786a611c7e6b963d517
[]
no_license
harshgupta6789/NLIDB
bc15c3d0ce2af5e95cf3d1bda8c049aa8fc85e52
03b81dae1a0d53f6fcc778eb30ddfac93ecdeeb0
refs/heads/main
2023-05-13T11:12:35.949304
2021-06-01T09:10:10
2021-06-01T09:10:10
346,608,816
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
import os from django.core.validators import FileExtensionValidator from django.db import models # Create your models here. def content_file_name(instance, filename): if os.path.exists("database/db.sql"): os.remove("database/db.sql") Database.objects.all().delete() filename = 'db.sql' return ...
[ "harshhvg999@gmail.com" ]
harshhvg999@gmail.com
b664e2d2c02565c0ffa8a6ece9e214350803f1b4
b109a597a6f6a3de22f069f0b865aa58b06d0095
/maml-vae/code/models/maml_vae.py
db6e9cd0a9df190cccef6a4487257e32fa172f12
[]
no_license
Higgsboson-X/maml-text-style-transfer
76a344dd27e9f8ec206514c93ced87cf7d4013a2
8eca23eef1a35417d87b02196debb80f677740c3
refs/heads/master
2022-03-22T00:47:17.394700
2019-12-14T03:21:14
2019-12-14T03:21:14
225,415,882
1
0
null
null
null
null
UTF-8
Python
false
false
13,437
py
import os import torch import copy import datetime as dt import numpy as np # ---------------- import models.vae import utils.nn import utils.data_processor from config.model_config import default_maml_mconf class MAMLAdvAutoencoder: def __init__(self, device, num_tasks=2, init_embedding=None, mconf=default_maml_...
[ "victoria-x@sjtu.edu.cn" ]
victoria-x@sjtu.edu.cn
5d892f45bb5ed49a45551cf2fc71ed94bdb0fec8
91365d8ef539a9952f048e1fef03b6f76a0ccf60
/test/inductor/test_torchinductor.py
53d0bc4f376ee0abfd531abf66ebe0ea8c747a09
[ "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
ppwwyyxx/pytorch
6e68cd816e8197e298c50d7f0e82cc97aff4dbdf
2883cb464810611c5de37b2ca06771582ddf5f83
refs/heads/master
2023-08-10T00:39:48.165007
2023-06-07T01:51:59
2023-06-07T01:51:59
160,557,191
3
3
NOASSERTION
2018-12-05T17:53:38
2018-12-05T17:53:37
null
UTF-8
Python
false
false
208,514
py
# Owner(s): ["module: inductor"] import contextlib import copy import dataclasses import functools import importlib import itertools import math import os import random import subprocess import sys import time import typing import unittest import weakref from typing import Tuple from unittest.mock import patch import ...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
7ea220eeabb2909756fb44da3a87f1f7cf3381a6
64f0346472dd6efd2cb53ab4558cff240691be5f
/jobv2/process.py
7128dcacaaa09d12abba7ce59af2e9c1e5e550b9
[ "MIT" ]
permissive
broy2808/Jobwebsite
fd192c4a009f61a7ea34bcb188b223fc5fece7bd
68a41645e4a3f8750aa01b7c522d9e5128796692
refs/heads/master
2022-11-03T04:49:34.151690
2020-06-09T04:00:33
2020-06-09T04:00:33
268,330,786
0
0
null
null
null
null
UTF-8
Python
false
false
2,571
py
import csv import json import os, sys from flask import Flask import json import pandas as pd import numpy as np import re import nltk import gensim from nltk.tokenize import word_tokenize, sent_tokenize import time app = Flask(__name__) app.config["DEBUG"] = True jobs = pd.read_csv("monster_com-j...
[ "noreply@github.com" ]
broy2808.noreply@github.com
8fc796c4207a429c4194499d77d7d57bc8fc7056
7a95770805a0118285cd2bf65583c4b496b5dfe4
/build/mine_detection/catkin_generated/pkg.develspace.context.pc.py
dc3c39d8268aa31472001073bfb98b2c67174f06
[]
no_license
DS3a/SLAM_research
5da83a2ea3f997e28b6124e18cb8721305f553e9
26aa447bba517afe916fa4a1ff65b1856fe34c25
refs/heads/master
2023-04-03T18:43:11.133547
2021-04-09T11:47:11
2021-04-09T11:47:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "mine_detection" PROJECT_SPACE_DIR = "...
[ "deepesh.padala02@gmail.com" ]
deepesh.padala02@gmail.com
628626cfcec0c0e5e8e8d63c97842fcef1e99527
c9339f45f5397d00fc718d9fbec93b32691bb10a
/knnClasifier.py
5ee516ef298d512599d42f123e723ee97b0f8276
[]
no_license
michaelm396/Music-Classifier--CUDA-
30246e7e28c23a0a05989fe71816e8fa92eb8fd1
15ccf18443c4cddbf4d08900a68ac22af296c95d
refs/heads/master
2020-05-20T08:56:26.525655
2019-05-15T19:29:20
2019-05-15T19:29:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,727
py
import math class point: def __init__(self): self.coords = [] self.classification = "" def euclidean_distance(p1,p2): totalSum = 0 for i in range(len(p1)): totalSum += pow(p1[i]-p2[i],2) return math.sqrt(totalSum) """ train and test are a list of lists, where each list is a ...
[ "ecompton@andrew.cmu.edu" ]
ecompton@andrew.cmu.edu
59207d162557a901209ecd782fee3bedecf7978f
7ad20654e9fd004717990c9263bda2d4a70ad66c
/PythonInput.py
65ca493d62a7e419511e1b90d4175ba8f430ae48
[]
no_license
nareshshah139/see-click-predict
1fa1c2a0bd4ba5a3557f3f00824782ee42e14522
9924fa08cdbe219393d82e18fbe73b278468b0cb
refs/heads/master
2021-01-16T20:45:39.040405
2013-11-09T16:05:22
2013-11-09T16:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,475
py
# -*- coding: utf-8 -*- """ Spyder Editor This temporary script file is located here: C:\Users\Standard User\.spyder2\.temp.py """ import numpy as np import csv import time from sklearn import cross_validation from sklearn.metrics import make_scorer traindata = [] file_name = "C:/Users/Standard User/Downloads/train.c...
[ "nareshshah139@gmail.com" ]
nareshshah139@gmail.com
5f6dbfea0ad91441a41853c05c0ac8568fa8b357
7aeb920de21547a1d9c714b029bbf3a9e7df449e
/examples/stdin-plot.py
fba6350b39f32c8f2c46e973c5aa79d5162a2eed
[ "BSD-2-Clause" ]
permissive
ft/chip-remote
f8ac5a2d7597d24f44ac287836be3422a32283d4
2a64df611214f7e3eb55d4ead76e270351158cdb
refs/heads/master
2023-04-30T08:38:16.483240
2023-01-05T04:01:44
2023-01-05T04:01:44
117,028,633
2
1
null
null
null
null
UTF-8
Python
false
false
2,002
py
#!/usr/bin/python3 import collections import sys import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation from matplotlib import style from matplotlib.lines import Line2D from threading import Thread style.use('dark_background') #style.use('ggplot') figure = plt.figure() timedoma...
[ "ft@bewatermyfriend.org" ]
ft@bewatermyfriend.org
11674a3f0d3e56f5156c92dbc2833e200511d2f2
a38180435ac5786185c0aa48891c0aed0ab9d72b
/S4/S4 Library/simulation/situations/complex/single_job_situation.py
567ee8821eebf3d57e66f878dfe22edeb8aac7d7
[ "CC-BY-4.0" ]
permissive
NeonOcean/Environment
e190b6b09dd5dbecba0a38c497c01f84c6f9dc7d
ca658cf66e8fd6866c22a4a0136d415705b36d26
refs/heads/master
2022-12-03T13:17:00.100440
2021-01-09T23:26:55
2021-01-09T23:26:55
178,096,522
1
1
CC-BY-4.0
2022-11-22T20:24:59
2019-03-28T00:38:17
Python
UTF-8
Python
false
false
1,366
py
from role.role_state import RoleState from sims4.tuning.tunable import TunableTuple from situations.situation import Situation from situations.situation_complex import SituationComplexCommon, SituationState, SituationStateData from situations.situation_job import SituationJob class SingleJobSituation(SituationComplexC...
[ "40919586+NeonOcean@users.noreply.github.com" ]
40919586+NeonOcean@users.noreply.github.com
a97b40795c487fc81e1ded147c4ddb7ea130c1e6
43277c24ed4d6fffff2f59b9a28c01e52f4bbc5c
/medium/05-division.py
b8cfaa714c5b578fcdcfcadbbd22eff796047ac6
[]
no_license
ovidiucs/coderbyte_practice
10daf66c49c42bb4e8f5058c74f300f08644362f
0de0700e17bd8bd5f3cbdc711c7548608cc25fde
refs/heads/master
2021-01-13T14:05:08.699330
2015-05-21T21:20:52
2015-05-21T21:20:52
34,564,589
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
def Division(num1,num2): while num2: num1, num2 = num2, num1%num2 return num1 # keep this function call here # to see how to enter arguments in Python scroll down print Division(raw_input()) # i stole this from gcd tbh
[ "ovidiu.ctin@gmail.com" ]
ovidiu.ctin@gmail.com
d99252251a452ae5cb1e56c7893d3eaff3940ebb
86c521c30800d222c5ff13ef16bbdfc340538651
/dga_classifier/dga_genarator/ramdo.py
65b45a6ca5f892d283f6a89c9c782399f98f92ff
[]
no_license
sadekyo1712/DGA_PROJECT
b4e2aa0d020102779c0cc0d5e575fd4dbcca09c6
ccb1ef78357a931a3ef8c6edc4a6e1a3c47b48ec
refs/heads/master
2021-01-21T12:16:55.834068
2017-06-19T04:15:30
2017-06-19T04:15:30
91,784,086
0
0
null
null
null
null
UTF-8
Python
false
false
1,380
py
# Bui Duc Hung - KSCLC HTTT&TT K57 - BKHN - 5/2017 # DGA Classify Project # Ramdo DGA def generate_domain(seed_num, domain_iterator, length=0x10, add_tld=False): xor1 = 0 sh1 = seed_num << 1 domain_iterator += 1 step1 = domain_iterator * sh1 # step1b = domain_iterator * seed_num domain_iterat...
[ "buiduchung.bkhn@gmail.com" ]
buiduchung.bkhn@gmail.com
d48f0c7ea09c15af2f4f83c2c86b83a4bcd65bd0
3c818d763c490efba034699840eb4846473deea5
/ch13/test.py
c77ee6e9a8fcf08cdb00f842dd79b311cead2eb3
[]
no_license
dvansoye/python-class
17f3a6bed6eeb5b7aee5f329648c972872c05bfc
084cebf4ecb8e841355930b920a90bcb4f16478b
refs/heads/master
2020-06-11T12:51:15.331662
2016-12-08T20:52:37
2016-12-08T20:52:37
75,662,532
0
0
null
null
null
null
UTF-8
Python
false
false
889
py
import urllib import json serviceurl = 'http://maps.googleapis.com/maps/api/geocode/json?' # serviceurl = 'http://python-data.dr-chuck.net/geojson?' while True: address = raw_input('Enter location: ') if len(address) < 1 : break url = serviceurl + urllib.urlencode({'sensor':'false', 'address': address}) ...
[ "darren@vansoye.com" ]
darren@vansoye.com
f8a3b210c29c39636d60249712c8a5fd55b3af95
6eed0aefcdeedece626d730ac5d6490a5672f578
/goal/migrations/0007_auto_20200510_1915.py
83f99f0645bdf3cdb5f9fae81300dd67268da094
[ "MIT" ]
permissive
ameraibrahim-dev/penny-pincher
979b576a4c534a4ee8aef35173e442c90f0120ca
da2eb90c97967556afe5d813e3591f8c71937037
refs/heads/master
2023-04-06T07:12:49.006880
2020-05-26T14:08:56
2020-05-26T14:08:56
357,151,012
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
# Generated by Django 3.0.5 on 2020-05-10 11:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('goal', '0006_auto_20200424_0258'), ] operations = [ migrations.AlterField( model_name='goaltransaction', name='is_exp...
[ "201601067@iacademy.edu.ph" ]
201601067@iacademy.edu.ph
552a6ac20d875de22f26821bd6217d0c0330f9e0
f5f8b5efbdce78ba4afd0fdcee538d6473804be4
/speed_tests.py
a1805af65934e84e3778c9375e9f73628c4fa12c
[]
no_license
stsievert/pytorch-timing-comparisons
2b262612c247764d09a3c90af969d0654ddca506
b3d57fb40fa46faaec49a9a2e7973e147ebf1335
refs/heads/master
2021-06-24T21:59:16.053247
2020-07-22T15:31:52
2020-07-22T15:31:52
102,794,551
3
0
null
null
null
null
UTF-8
Python
false
false
2,302
py
import numpy as np from torch.nn import MSELoss import numpy.linalg as LA import torch from torch.autograd import Variable class PyTorch: def __init__(self, A=None, x=None, y=None, S=None, S_svd=None): self.A = torch.from_numpy(A) self.x = torch.from_numpy(x) self.y = torch.from_numpy(y) ...
[ "scott@stsievert.com" ]
scott@stsievert.com
d49063b0831dc862ef4c2807ab25e403c44229cc
2ddf7403c0cdd7d8a33c32dda3630eefc6dcb0ce
/analysis.py
bb4e9b3718aaef055283723c561d1757894a3b78
[]
no_license
zhaobo-666/data_Analyst
853c6c6d8ce84535e8c801337ccd07536af3ff4c
a8f0ae8408f675219741bec2ea97af9a1838a6a4
refs/heads/main
2023-07-30T14:09:28.005639
2021-09-26T09:03:56
2021-09-26T09:03:56
397,852,361
0
0
null
null
null
null
UTF-8
Python
false
false
8,769
py
import pymysql import function """ 公共必要字段 main_name 主卡姓名 main_card 主卡卡号 to_name 对方姓名 to_card 对方卡号 sign 收付标志 money 交易金额 balance 余额 abstract 摘要 级别表 必须在总表中添加批次字段 一级卡号为第一批次主卡号 `批次` = 1 """ # host ='172.16.2.190' # user = 'hzdb' # pwd = 'hzdb@2021' # db = 'hzdb' # port = 3306 #函数 # def list_f...
[ "2693716410@qq.com" ]
2693716410@qq.com
c88bbd34f0f67cb174f84f0b4cff4aa4f6cd855c
3969f8402eaa015eb850e041e3dede4978ab9a4c
/pkg/eventlet-0.12.1/tests/patcher_psycopg_test.py
80988e51fdde3eb2a4aa7f68b40ee7bb7f24f738
[ "MIT" ]
permissive
seewindcn/pycocos2d
e333bf8ae29d8244e6540ed3d39d76d4002e2908
b88c8c5df127f9bf82f62c8b4365f4babcdee105
refs/heads/master
2023-03-07T10:07:47.167364
2013-06-03T10:45:19
2013-06-03T10:45:19
9,958,133
18
7
null
2013-05-14T03:57:47
2013-05-09T11:43:46
C
UTF-8
Python
false
false
1,811
py
import os from tests import patcher_test, skip_unless from tests import get_database_auth from tests.db_pool_test import postgres_requirement psycopg_test_file = """ import os import sys import eventlet eventlet.monkey_patch() from eventlet import patcher if not patcher.is_monkey_patched('psycopg'): print "Psycop...
[ "none@none" ]
none@none
ef80df0d6e2fff1d3da47f67487ade05301c42d3
1e4d44f67fb66ce65afdaf7dbf64d894576b96c4
/back/webapp/app.py
87360c437bdaa02b8ba8bdee0de4e1e5bf462906
[]
no_license
Dwape/domotics
c5e9040462198e41dd526b2e7b78d7f88e5b114b
9aa5af170d6216d6b2df21eb5f5e3815569cd92a
refs/heads/master
2023-01-09T11:07:21.736736
2018-12-08T19:03:58
2018-12-08T19:03:58
144,603,278
0
0
null
2023-01-04T12:46:06
2018-08-13T16:06:28
JavaScript
UTF-8
Python
false
false
6,423
py
from flask import Flask from flask import request from flask import session from flask import flash #Check from flask import Response from flask_cors import CORS, cross_origin import requests from read_db import get_latest_values from read_db import connect from jsonparser import parseList from jsonparser import parse...
[ "eduardo.lalor@ing.austral.edu.ar" ]
eduardo.lalor@ing.austral.edu.ar
1f6c0cab59a8d7b9739fafe5e329a5095f04557a
8684708ad9a1ca45039e0cdc8363321820ddd80a
/standardDeviation.py
abf2b22148bcf0362aa7b80bb58d7037f27270f1
[]
no_license
VivaEcha838/C-105
c5d9ce2c1467b733eb48ed893fed26ecbbc4e7d8
dc20aa44a60e87f4f6ec0cad3393c516c38386c4
refs/heads/main
2023-06-19T03:33:26.859256
2021-07-19T16:53:04
2021-07-19T16:53:04
387,534,961
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
import csv import math from os import read with open("data.csv", newline="") as f: readfile = csv.reader(f) file_data = list(readfile) data = file_data[0] num = len(data) total = 0 for x in data: total = total + int(x) mean = total/num print("Mean is :" + str(mean)) squa...
[ "noreply@github.com" ]
VivaEcha838.noreply@github.com
244b8d258df23eab6cfec4118e70943771b50a1a
9779f484e06c7fb35eec53403a3105891d80723e
/P1.Alaniz/venv/bin/python-config
0a4d1447a7201119ca2a95397ce32a449069cca7
[]
no_license
Man-on-thoughts/P1.Alaniz
ede087a80401df959dd716ea94a332ba00c77381
a006ce0eeb1f4baf72b052db944162bc6d4cb896
refs/heads/master
2021-05-18T10:19:54.252436
2020-04-06T04:28:58
2020-04-06T04:28:58
251,208,219
0
0
null
null
null
null
UTF-8
Python
false
false
2,367
#!/Users/Zach-Alaniz/PycharmProjects/P1.Alaniz/venv/bin/python import sys import getopt import sysconfig valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', 'ldflags', 'help'] if sys.version_info >= (3, 2): valid_opts.insert(-1, 'extension-suffix') valid_opts.append('abiflags')...
[ "zachalaniz94@gmail.com" ]
zachalaniz94@gmail.com
35553d9c5dd5cafe84cfa94fd0c31fdeb3e4b8b7
4fc1037af17efa358be6cd886fcfd67c5272e93e
/httpx/_main.py
7bd6b90846ee1d61fc636a7c077b09bbec5b947f
[ "BSD-3-Clause" ]
permissive
hugovk/httpx
d7e9f6bd463c22f454f31f4065babb53427bd73f
43a1c1c8269cf56a016891aead091acbc3408e81
refs/heads/master
2023-01-09T08:55:42.929163
2022-03-08T10:53:15
2022-03-08T10:53:15
203,822,426
0
0
BSD-3-Clause
2023-09-11T10:32:59
2019-08-22T15:26:18
Python
UTF-8
Python
false
false
15,506
py
import functools import json import sys import typing import click import httpcore import pygments.lexers import pygments.util import rich.console import rich.markup import rich.progress import rich.syntax import rich.table from ._client import Client from ._exceptions import RequestError from ._models import Respons...
[ "noreply@github.com" ]
hugovk.noreply@github.com
d58ae3c7d5f559290e4ad6aba0e009878635ebe6
625daac7e73b98935f9fe93e647eb809b48b712e
/Arcade/Intro/adjacentElementsProduct.py
07c848e4a7c18445ca0d1d6cf05d6044c620be21
[]
no_license
aleksaa01/codefights-codesignal
19b2d70779cc60f62511b6f88ae5d049451eac82
a57a5589ab2c9d9580ef44900ea986c826b23051
refs/heads/master
2022-03-15T04:46:40.356440
2019-12-08T15:41:37
2019-12-08T15:41:37
112,034,380
1
0
null
null
null
null
UTF-8
Python
false
false
473
py
def adjacentElementsProduct(arr): max_pair = arr[0]*arr[1] for i in range(1, len(arr)-1): if arr[i]*arr[i+1] > max_pair: max_pair = arr[i]*arr[i+1] return max_pair """ Given an array of integers, find the pair of adjacent elements that has the largest product and return that product. ...
[ "some12curious@gmail.com" ]
some12curious@gmail.com
540dde4f288a6449313300a882ae105675faffcc
8885e05fab453cd3d3039c1b447642d1cd8b8e94
/ogrenci/views/ders_views_api.py
e3747e3a7e37e8d8cf3f902429cf183e08d6c985
[]
no_license
canerturkaslan/bilgi_sistemi
d1ef34a719c7caf66371e4461529f6fc589ceb6e
84f59c09cc13e4a4e32db894c55df59e2ac4daa8
refs/heads/develop
2022-07-30T18:33:12.200161
2020-02-26T00:25:57
2020-02-26T00:25:57
191,894,970
2
0
null
2022-07-06T20:10:31
2019-06-14T07:17:02
Python
UTF-8
Python
false
false
727
py
from ogrenci.models import Dersler from ogrenci.serializers.ders_serializers import DersSerializer from rest_framework.mixins import ( CreateModelMixin, ListModelMixin, RetrieveModelMixin, UpdateModelMixin,DestroyModelMixin ) from rest_framework.viewsets import GenericViewSet class DersViewSet(GenericViewSet, # ...
[ "canerturkaslan1998@gmail.com" ]
canerturkaslan1998@gmail.com
e1bb8884a882e8c7368bb60c4c6e5e9f9d4de06b
c4f17d1b75e95e381ffcaa52b044869f09058c1b
/user/models.py
a87ce20d23fd03b4341fed42db5525e28e057967
[]
no_license
ygnawk/tindle
837fb2c60e33839a248cea9f670f38f78e5f409f
f1555cf945313bb484c0a1d944a24a5cc2fcf0e6
refs/heads/master
2021-07-21T14:39:50.975372
2017-10-31T17:10:03
2017-10-31T17:10:03
103,834,808
0
0
null
null
null
null
UTF-8
Python
false
false
1,370
py
from django.core.validators import MinValueValidator, MaxValueValidator from django.contrib.auth.models import User from django.utils.timezone import now from django.db import models class UserInfo(models.Model): picture = models.ImageField() user = models.OneToOneField(User) description = ...
[ "ykwang@wesleyan.edu" ]
ykwang@wesleyan.edu
5a79c8bda49772b91cfa1c3248a01e40aeae352f
1dd36942a8eda2073c200d8feebb03b5b146c5e3
/venv/Scripts/pip3-script.py
30c72aaaadfd94c85303b98f5a425cfb7589cdc3
[]
no_license
Sebastian-MG/Aplicacion
e247c8a8c2ae1c4b86098ed00177e035dc1ed666
28c47e35bc50e72d2c996e08c2f1aad6e18e92e4
refs/heads/master
2022-04-21T10:36:01.325914
2020-03-30T23:24:23
2020-03-30T23:24:23
251,139,284
1
0
null
null
null
null
UTF-8
Python
false
false
426
py
#!"C:\Users\sebas\udistri\Sexto\modelos dos\Finaldef\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ...
[ "”sebastianjhon9427@gmail.com”" ]
”sebastianjhon9427@gmail.com”
fb3e967778b0b2f2bbbb00bebda8e32374d261fd
c68b2a6ab94ee475cf732f9c85e9e225408e5640
/orchestrator.py
05d73548cd9262c1b4f89cdedbc1a4dfc14c8d2c
[]
no_license
Vikram4533/Selfiless-acts
3974515ca9210ac54a2ad33fe519e92e215299ed
22885e66c6d78b68b04240c8c0a390a531ce1881
refs/heads/master
2020-05-25T02:45:25.386883
2019-05-20T07:05:34
2019-05-20T07:05:34
187,585,676
0
0
null
null
null
null
UTF-8
Python
false
false
5,288
py
from flask import Flask, render_template, request, redirect, abort, jsonify import threading import requests import time, signal, sys import docker import json ip = "http://127.0.0.1:" apis = ['/api/v1/_count', '/api/v1/_health', '/api/v1/_crash', '/api/v1/categories', '/api/v1/categories/<categoryName>/acts/s...
[ "noreply@github.com" ]
Vikram4533.noreply@github.com
c53d46243aa1761e44cb2274480b59c2d86fe3cf
e271ca30215b2e30a2616e00e907592d88588987
/lib/python3.6/os.py
7775423c8f818023fca6f7e8d0153d6286e37cfd
[]
no_license
varavind16/flask
887e3e68170210a905179b4abec76bd515735d53
893115466a9a37e5caad603b0de1a62aa126f8eb
refs/heads/master
2020-06-05T00:00:12.491030
2019-06-16T22:23:33
2019-06-16T22:23:33
192,241,446
0
0
null
null
null
null
UTF-8
Python
false
false
43
py
/home/aravind/anaconda3/lib/python3.6/os.py
[ "avenkatramanan@elementsolutions.com" ]
avenkatramanan@elementsolutions.com
98378fb1a26595b5265cfd64fec5bdb71002b7d7
3fb1ed2edc6141a24c486f058ad224727ed4c040
/download.py
96adb4cd7858898f5770873a0357b4487b1bea05
[]
no_license
jzx1230/LittleSpide
ef103c01982719bb6ca91df984560109635d1ec0
359b4b7a002216ec16e3da565ead766bd2229cb4
refs/heads/master
2020-04-18T17:46:14.504206
2015-12-04T09:28:01
2015-12-04T09:28:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
721
py
# -*- coding: UTF-8 -*- import urllib import uuid endWithArr = ['.pdf','.html','.doc','.docx','.png','.jpg','.gif','.txt','.xml','.ppt','.xls','.xlsx'] def cbk(a, b, c): '''回调函数 @a: 已经下载的数据块 @b: 数据块的大小 @c: 远程文件的大小 ''' per = 100.0 * a * b / c if per > 100: per = 100 print '%.2f%%...
[ "1287662728@qq.com" ]
1287662728@qq.com
4a161f3e8d1ea5be4ca6e8b46acb99dc2279a72e
26ee58b9513ba410d78c3bbb6c43376ef859bbca
/comp_monthly_rmse_pr_thiessen_echam46.py
2f1ea6d4fb99f84d2271f5fda80ab345c28fe6db
[]
no_license
LeidiniceSilva/pymusf
fb8b480f302593fd107a3159e9636d614138a6c8
7f6df348841df1f742227826f26dd27031d03e29
refs/heads/master
2023-07-08T17:07:01.490248
2023-07-06T01:21:56
2023-07-06T01:21:56
112,038,727
0
0
null
null
null
null
UTF-8
Python
false
false
9,939
py
# -*- coding: utf-8 -*-jmniu8 """ Verification of the precipitation ability of ECHAM46. """ import matplotlib as mpl; mpl.use('Agg') import netCDF4 import calendar import os from datetime import date from pylab import * from matplotlib import pyplot as plt from PyFuncemeClimateTools import ClimateStats as cs from hid...
[ "leidinicesilva@gmail.com" ]
leidinicesilva@gmail.com
0188b54bbf25bf074ae01720f8e7b4e5c34dc20b
ad2704933de4502ae9de91e6d915f9dbe010b446
/yamagishi/chapter05/knock47.py
35d17a4e8eaf40fca3503cf4af37d9cd7db8c8df
[]
no_license
tmu-nlp/100knock2017
266e68917d8d5a7f5d0c064f1bc2da5fa402a253
629bd1155d0fe78cd9302ae9a7cdf0922b778fe7
refs/heads/master
2021-01-19T17:36:53.328997
2017-07-24T07:09:54
2017-07-24T07:09:54
88,334,932
8
2
null
null
null
null
UTF-8
Python
false
false
1,028
py
from knock41 import Chunk, get_neko_list for line in get_neko_list(): for chunk in line: verb = '' for morph in chunk.get_morphs(): if morph.get_pos() == '動詞': verb = morph.get_base() if verb == '': continue particle_list = list() for...
[ "pfm.harg.0524@gmail.com" ]
pfm.harg.0524@gmail.com
c6492508982755a4e1e8b20b63f7fa75931cdd05
fbd4ecf7046171c4e96267c5982c964db54578f5
/business/p201904/110111_2300/server.py
0872fb79fab8ceec11b2a306e6bc2a815aee5719
[]
no_license
Alvin2580du/alvin_py
6dddcfbfae214694e9f3dafd976101e681f2a66d
82d3e9808073f2145b039ccf464c526cb85274e3
refs/heads/master
2021-05-05T16:01:43.544783
2019-10-29T02:23:59
2019-10-29T02:23:59
117,328,713
12
2
null
2021-03-20T00:06:37
2018-01-13T08:51:49
Python
UTF-8
Python
false
false
3,200
py
import os.path import tornado.httpserver import tornado.ioloop import tornado.options import tornado.web from tornado.options import define, options import sys from gensim.models.word2vec import Word2Vec import numpy as np import jieba from sklearn.externals import joblib ports = sys.argv[1] define("port", default=por...
[ "ypducdtu@163.com" ]
ypducdtu@163.com
edf15c92a4b3e7f8eb575d075b92cdebd5a9242b
b12c8cbb13990738aafb5f940784e79c27dc6d7b
/model_creation/CONFIG.py
6574d6ad3d16c24a5c5bd81ab18d86a777223b57
[]
no_license
Andre-Schwarz/next_word_prediction
a0d6390416e3a1dd2eaa6de146a5e033ec7afc76
d219e8c73a5226b862706f3860cd0904272fc731
refs/heads/main
2023-06-03T04:13:11.813336
2021-06-23T14:51:43
2021-06-23T14:51:43
378,092,884
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
number_of_words = 3 batch_size = 200 hidden_size = 200 #1500 num_epochs = 20 #80 learning_rate = 0.001 learning_rate_decay = 0
[ "“andre.schwarz@uxma.com”" ]
“andre.schwarz@uxma.com”
96f84ef4b4488db0ea421b9816cfca89c0adc2ee
36347bc7d5ca8ecca5d074ecb3a878f8e6c0d04b
/segments/migrations/0006_segment_recalculated_date.py
7026e5651b1b12a2d4edf4a3e1a5a17173d9209a
[]
no_license
groveco/django-segments
32711b04519212075ff67f54dbf280b7823df5e8
af65bada572a8d7eeb66a4da47ce6f0a193b99fd
refs/heads/main
2023-05-14T06:29:57.268324
2023-04-27T17:39:40
2023-04-27T17:39:40
23,624,819
25
8
null
2023-04-27T17:39:41
2014-09-03T14:57:52
Python
UTF-8
Python
false
false
474
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2019-03-15 03:08 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('segments', '0005_auto_20190314_1502'), ] operations = [ migrations.AddField...
[ "kate@katekligman.com" ]
kate@katekligman.com
c99f8dacb71f653c117ceab217834b926284254a
a4ba049e9e9232c6ff50fdd271a920d26377c88b
/复制.py
f644bef6edddef48eb3a4eee84da041f57377f4f
[]
no_license
junfeiZTE/pythonCode
e5ab8126c0801eb7c7d39b10fe51ca52fa023c58
9be6a2a57188b0eb417525a06fd90fc5580adce9
refs/heads/master
2021-04-27T15:21:09.523295
2018-02-25T15:19:47
2018-02-25T15:19:47
122,467,289
0
0
null
null
null
null
UTF-8
Python
false
false
79
py
import copy a=[1,2,3] b=a print(id(a)) c=copy.deepcopy(a) print(id(c))
[ "noreply@github.com" ]
junfeiZTE.noreply@github.com
7956236c1a7441e489515f2d21c88dd3e9618992
baeca56d705aab0325fe6c2fc5fbd0b8c9883303
/树和图/树/3.py
6a0a37c040f64fadbbb89d004b6fda298bf29590
[]
no_license
lixiangwang/SEU---Data-structure-and-algorithm-design
69411225934636ea791ced494b598d610224b48f
cbc03bff7e885a196dfd6a6a75de112e8b6a3aa5
refs/heads/master
2020-11-23T22:46:19.928513
2019-12-23T11:06:14
2019-12-23T11:06:14
227,852,147
1
1
null
null
null
null
UTF-8
Python
false
false
952
py
# encoding: utf-8 #from binarytree import Node ##binarytree的Node可以print可视化 class Node(object): def __init__(self, value): self.value = value self.left = None self.right = None class Solution: def __init__(self): self.ans = 0 def diameterOfBinaryTree(self, root: Node) ...
[ "47591862+lixiangwang@users.noreply.github.com" ]
47591862+lixiangwang@users.noreply.github.com
e027c29b58af37ee312433c6b3c48aae27a3ce42
8d80ccc0708881b4b39ed10287d9611605f6f32c
/db_setup/FillTableScript.py
f2a625adb01d29e3db5ec2389aa61754e532d8b8
[ "MIT" ]
permissive
durham-abric/comp421-social-network
c85aa5883771bd5381fbdd26370c8f43a2741cc1
d6d8878f39342349f730b547c7575aeced3d4949
refs/heads/master
2020-04-25T18:44:45.546657
2019-03-27T03:40:44
2019-03-27T03:40:44
172,994,412
0
0
null
null
null
null
UTF-8
Python
false
false
8,093
py
# Table/View Schema Type Creation time # ------------------------------- --------------- ----- -------------------------- # ADMINISTERS CS421G43 T 2019-02-25-16.59.47.779186 # COMMENT CS421G43 T 2019-02-25-16.59.46.733057 #...
[ "durham.abric@mail.mcgill.ca" ]
durham.abric@mail.mcgill.ca
fd25aa520ff58f7fe041bea54f2716475ea9c248
941222660c2ae971775ce1b0766859354eb69523
/forms.py
efeeb4f0950e6a7d080bf28a6de0174c00841b5b
[]
no_license
davidcrowe/apt
ebc2ee876b67925f38571c9a74d2c8d48e8669b0
d35c9e9edbaf3a6380ea54e3eb4ca22352c059d0
refs/heads/master
2022-12-02T22:45:34.351025
2019-08-07T02:21:19
2019-08-07T02:21:19
203,062,498
0
0
null
2022-11-22T04:11:55
2019-08-18T22:24:56
Jupyter Notebook
UTF-8
Python
false
false
653
py
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, TextAreaField from wtforms.validators import DataRequired class RegisterForm(FlaskForm): username = StringField('Enter a Username:', validators=[DataRequired()]) email = StringField('Enter your Email:', validators=[DataRequi...
[ "cynthiagao2@gmail.com" ]
cynthiagao2@gmail.com
17d6c4c1e6b1291df5026f6db7207c4b2d096f55
482aff6baf9b5225456a85564f2db1785536f4b4
/lr3/19.2.py
5fcb656a7de96c944b8d153957e566120ad49113
[]
no_license
rohmunen/lab_rabota_34
baaf636303f716e72f3dbf6cdc0b40c719120f8b
e5383a663d756bcd48ef4ba5df4bc8b797e91f4e
refs/heads/master
2023-04-21T01:19:35.393275
2021-05-14T22:37:11
2021-05-14T22:37:11
367,493,142
0
0
null
null
null
null
UTF-8
Python
false
false
2,292
py
#БСБО-05-19 Салынь Даниил Леонидович def letters_to_numbers(line: str): line = line.replace("A", "1") line = line.replace("B", "2") line = line.replace("C", "3") line = line.replace("D", "4") line = line.replace("E", "5") line = line.replace("F", "6") line = line.replace("G", "7") line =...
[ "salyndaniil@gmail.com" ]
salyndaniil@gmail.com
4b096cd0b77a9d1d09a5c5e44b02bc2f01145812
f6c69d41b00edabd0c85d4d600743b7ef4fd704a
/blender/select_verts_by_id.py
657b87cb2912c926adf4ec098fcb1a0d1b80d8a2
[ "MIT" ]
permissive
alextsui05/toolbox
f05c711b75a62eb775cc65063e2f93a8bb79df09
00080c8ef7a9a5f2f9b194f1d0fe4b2c41a6b95a
refs/heads/master
2021-01-15T14:28:35.609732
2015-03-08T02:24:45
2015-03-08T02:24:45
31,831,146
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
# Usage: # Paste this into the Python console in blender. # Load a mesh and deselect it in Edit mode. # Go back to Object mode and make sure the mesh is selected. # Call foo with a list of vertex IDs you want selected, e.g. # foo([1, 5, 7]) # Tab into Edit mode and see the vertices highlighted. def foo(ids): for ...
[ "atsui@ucdavis.edu" ]
atsui@ucdavis.edu
48debefe3c9f7ce321e5cf391bfb715fad8579b7
c017cc52b62f40547bad3f6414729c32d7cbd494
/picklefield/compat.py
275501ec30b43070930519a40c650cb2105e318f
[ "MIT" ]
permissive
xflows/clowdflows-backend
6ef7f2cc0b7eac6b5b04e48c80355a8df71be69a
9d38895abee65f36699f6dc199584d431826845c
refs/heads/master
2023-04-04T05:25:24.684332
2022-11-16T15:15:09
2022-11-16T15:15:09
87,054,178
5
0
MIT
2023-03-31T14:34:15
2017-04-03T08:38:55
Python
UTF-8
Python
false
false
268
py
import django from django.db import models from django.utils import six from pickle import loads, dumps # noqa if django.VERSION >= (1, 8): _PickledObjectField = models.Field else: _PickledObjectField = six.with_metaclass(models.SubfieldBase, models.Field)
[ "anze.vavpetic@ijs.si" ]
anze.vavpetic@ijs.si
202cdde1f06f0ea912beff46cc04a4d60b559e64
249c9f6bf3b6ff08ad9793901ea415382b352f06
/submit_data.py
3c92685b0709b744f9557f98fc0a48579afef726
[]
no_license
bipinaghimire/ExamReplacement_programming
3c0a3434202f7c9d12f0287e022377ddd645502b
d30e4f2dd3e8c6c4a3df349c447dbf4cc2bfa3c0
refs/heads/main
2023-08-10T19:47:13.519439
2021-10-02T09:06:17
2021-10-02T09:06:17
412,481,445
0
0
null
null
null
null
UTF-8
Python
false
false
7,965
py
import sqlite3 from tkinter import * from PIL import ImageTk, Image from tkinter import ttk manage = Tk() manage.title('Registration') manage.geometry('1500x900') manage.configure(bg='Light Blue') manage.iconbitmap('icon.ico') # connect to database conn = sqlite3.connect('School_Management.db') # create a cursor c = ...
[ "bipinaghimire6@gmail.com" ]
bipinaghimire6@gmail.com
b26f9bc07c929b3c0e64e12ec0b4ba3b39b28270
d489b26874bbfb0848e3146602203d3f680d4544
/postgresql_repository.py
c7c50d516e212cc0e23023d10cba61fcc4efd6c0
[]
no_license
scrum-board-352/database-cronjob
8caae5495a4c7b1cf6c3c2397c7c3d7235ad2213
968ec1c7bf51564825cf518886b67fc792dc5f6c
refs/heads/master
2022-12-26T19:24:13.586484
2020-10-11T15:23:08
2020-10-11T15:23:08
298,490,148
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
import psycopg2 def connect_postgresql(database, user="postgres", password="postgres", host="localhost", port="5432"): conn = psycopg2.connect(database=database, user=user, password=password, host=host, port=port) cur = conn.cursor() return cur def search_table_and_create_subtype_dict(cur, select_statem...
[ "913057041@qq.com" ]
913057041@qq.com
e9842c0f6d8deaab2233e71ede7d7886c0f2bed2
f5932c296324728b6043b674a1ac8186f24e5cf1
/cart/views.py
e74a287471af97a08c642628964dd1066a99fa27
[]
no_license
Geerocktricks/stylist-vem
c6e0aa552e06488b313d0e80380e2aa98d8b4c6b
a42c3ac8680e89591eb91f16fbcd24c1274cfadd
refs/heads/main
2023-01-07T15:55:48.782924
2020-11-10T18:55:03
2020-11-10T18:55:03
311,770,740
0
0
null
null
null
null
UTF-8
Python
false
false
1,006
py
from django.shortcuts import render, redirect, get_object_or_404 from django.views.decorators.http import require_POST from stylistapp.models import Product from .cart import Cart from .forms import CartAddProductForm @require_POST def cart_add(request, product_id): cart = Cart(request) product = get_object_o...
[ "geerockface4@gmail.com" ]
geerockface4@gmail.com
f43b801df2a2396b5627c17b19e71a5d8c8eeef8
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_258/ch30_2019_03_10_21_05_56_563616.py
c59f95da9501a2311605f0176a60d8e35f2f4a9f
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
import math v=int(input('Qual a velocidade do lançamento? ')) a=int(input('Qual o ângulo do lançamento? ')) d=(v**2)*math.sin(2*math.degrees(a))/9.8 if d<96: print('Muito perto') elif d>104: print('Muito longe') else: print('Acertou!')
[ "you@example.com" ]
you@example.com
82de4cfcd9dd16a9de9e20740c96e2672531521a
4cbc8b81d197bc392d1b57856254300331b9738f
/python/apt.py
e87a96e500abda1744a02b482a2c973b8f718a19
[ "MIT" ]
permissive
vcatafesta/chili
87b9606f17cda645ba44cbf2bb4cc4637e18d211
5c734ac88454db76eb2f4e92c13364a5bbc7a93a
refs/heads/main
2023-09-01T01:39:09.457448
2023-08-29T21:23:28
2023-08-29T21:23:28
171,972,556
2
2
null
2019-02-22T01:38:49
2019-02-22T01:26:46
null
UTF-8
Python
false
false
15,595
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # License: MIT # #url = 'http://mazonos.com/packages/' # Official Repository url = 'http://localhost/packages/' # Official Repository #url = 'https://github.com/vcatafesta/ChiliOS/t...
[ "vcatafesta@gmail.com" ]
vcatafesta@gmail.com
a27255775c359e6349422a11cc3ac11223310a05
8b4f907bac3298adff1071ab61ac0e53666a60e2
/classify.py
07a1aaa68ffa0c2e5115613d3cca5e6c43718ec1
[]
no_license
ZhuoruLin/Generative_Adversarial_Nets
9bc1a083a3b4477586e07b54bb1cd8ceff72feed
770db8aead724aa0d0c035d1ea94141c78ff2d88
refs/heads/master
2021-01-20T00:34:30.426145
2017-05-05T22:03:33
2017-05-05T22:03:33
89,153,157
0
1
null
null
null
null
UTF-8
Python
false
false
1,326
py
import numpy as np import itertools import os file = [] for line in open('./list_attr_celeba.txt','r').read().splitlines(): file.append(list(filter(None, line.split(' ')))) file.remove(file[0]) file = np.array(file) columns = file[0] legit = False while not legit: attrs = np.unique(input('Input attrs to class...
[ "wz1070@nyu.edu" ]
wz1070@nyu.edu
1f66c2f28360a924a6ad07d2b8c8af414203518d
50f8d8975b1f17c4c6bcb9be29d4f0ed49cb42a5
/Week_04/lemonade-change.py
5e567df5df1217ba3921dd4a56cf9268dd95ae3f
[]
no_license
Jiangjao/-algorithm015
098491b7a9b80626c1d9e15a9125e4e460ee8668
a6969617f4cde1d948cb064c1078d4d510140758
refs/heads/master
2023-01-10T17:42:49.495871
2020-11-16T07:35:04
2020-11-16T07:35:04
289,441,446
0
0
null
null
null
null
UTF-8
Python
false
false
608
py
class Solution(object): def lemonadeChange(self, bills): """ :type bills: List[int] :rtype: bool """ five = ten = 0 for bill in bills: if bill == 5: five += 1 elif bill == 10: if not five: return False ...
[ "918718278@qq.com" ]
918718278@qq.com
12855ffac428a1b4748a02676b891fc3376ba488
d07990b3bcae8ba6f03b73503db4a0dbfe86b0a8
/26/26.py
e280f36404c8b631f669894de239aa510003fc79
[]
no_license
domino14/euler
97aa6a9c7eaa154e77eaf6d517867c4e4def5b97
76034df727412cd37956d204e99d486bee7cf21e
refs/heads/master
2021-01-17T11:15:36.478967
2018-05-22T06:32:51
2018-05-22T06:32:51
15,523,557
0
0
null
null
null
null
UTF-8
Python
false
false
1,984
py
def divide_to_accuracy(x, y, digits): """ x / y to digits accuracy. :x an integer :y an integer :digits the number of digits after the decimal point Return a string representing the accuracy. """ accumulator = '' # Implement grade school division algorithm? quotient, remainder =...
[ "delsolar@gmail.com" ]
delsolar@gmail.com
5f249cf5e48d2382470baa0a978bc3a0abafafc6
d2ca1ab6ed63983d1bd6497f26a63f0445451844
/2015/05/fc_2015_05_31.py
dc41dc9178467c3c8859ffc19ce4fdb301b45b7d
[ "MIT" ]
permissive
mfwarren/FreeCoding
96636367f4f4a53351535372c5691d7805199f23
58ac87f35ad2004a3514782556762ee0ed72c39a
refs/heads/master
2021-01-19T14:30:09.057354
2015-07-05T05:59:53
2015-07-05T05:59:53
24,469,988
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
#!/usr/bin/env python3 # imports go here # # Free Coding session for 2015-05-31 # Written by Matt Warren # def factors(x): values = [] cursor = x i = 2 while i <= cursor: v = cursor / i if int(v) == v: cursor = v values.append(i) else: i += 1...
[ "matt.warren@gmail.com" ]
matt.warren@gmail.com
86a4b424729bcfcbf3c2eda194a7fcf64ca2224b
8a430156a31c84a1760150d8ec9bebe55c264a12
/SecureVault/settings.py
f92d9cdf25a61a7a5b2e20e5a3c4042f0f449c1b
[]
no_license
SQasimHamdani/AI-Smart-SecureVault
4a83551d9d842bf7ed557b5879af6b64a8c49983
952311734989fa4833c0b70c5cb5ea71c6c30eee
refs/heads/main
2023-04-29T20:46:18.972102
2021-05-19T22:29:36
2021-05-19T22:29:36
367,734,035
0
0
null
null
null
null
UTF-8
Python
false
false
3,560
py
""" Django settings for SecureVault project. Generated by 'django-admin startproject' using Django 3.0.6. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import o...
[ "near2qasim@gmail.com" ]
near2qasim@gmail.com
b641ec2e312530de25f9cc7ecd3cde2d9955606e
7574feacccf1873a92291d9864118ff15fa52fe4
/src/trainConvNet.py
7fa0f68e3b9f9dedf7e72707be4ce118f075c0a4
[ "MIT" ]
permissive
jbmorlot/HiCPlus
626e98444d6a2a8ae08312e6804cb8023cf51e6d
2313aaed844ccfb17a460d755d512828b42e9ecf
refs/heads/master
2020-03-19T00:16:29.902596
2018-05-30T16:30:22
2018-05-30T16:30:22
135,468,576
0
0
null
null
null
null
UTF-8
Python
false
false
4,309
py
# Author: Yan Zhang # Email: zhangyan.cse (@) gmail.com import sys import numpy as np import matplotlib.pyplot as plt import pickle import os import gzip import model from torch.utils import data import torch import torch.optim as optim from torch.autograd import Variable from time import gmtime, strftime import sys i...
[ "jb.morlot@gmail.com" ]
jb.morlot@gmail.com
c01164af9c7f69565c52f1e9981eba91ae0937c1
e6aaec60ebe2621d566bbbe37bac80ccbb06e11b
/Syntax/loops/while_loop.py
fff63a7c9b50ac4231f48f453f7860bfba369175
[]
no_license
ZeweiChu/julyedu-python-datascience
92acd4df3e50e77ed8f9b53cf6be508ef7fe14db
016de0633bb1848e278bf87f715c0f1331f7bec8
refs/heads/master
2021-01-21T14:48:44.443313
2017-08-04T14:58:32
2017-08-04T14:58:32
95,336,260
6
6
null
null
null
null
UTF-8
Python
false
false
91
py
i = 0 while 1: if i % 5 == 0: i += 1 continue print(i) i += 1 if i >= 20: break
[ "zeweichu@gmail.com" ]
zeweichu@gmail.com
5229abb6be00316ff90cd09e352230cb2bc258fe
a2d5681a37be0d3b0753a0e979cb4fa7b0398f32
/indexedcorpus.py
84aa2ea572d830a6ae74aed8e35b0c416de90ad2
[]
no_license
stephenroller/class-nlp-project
f7c09281336985ac55d25e886e7aa180e2225580
0362ec1182dc6d3ab54990bbb097339e7bc386a0
refs/heads/master
2020-05-29T23:26:56.024802
2011-05-13T18:30:49
2011-05-13T18:30:49
1,606,152
3
0
null
null
null
null
UTF-8
Python
false
false
1,429
py
#!/usr/bin/evn python import sqlite3 import os from itertools import groupby from util import context_windows class IndexedCorpus(object): def __init__(self, indexfile, corpus_directory=''): self.indexfile = indexfile self.corpus_directory = corpus_directory self.conn = sqlite3.connect(i...
[ "roller@cs.utexas.edu" ]
roller@cs.utexas.edu
25f2fdcf8501ff60ecd528b4ff6960f1f701ee22
dd21064931d4b4829d8d2f1ec2623983e4ddb982
/site/api/migrations/0012_order_cookingtime.py
d92293712fc160590d6b8252fe51245e60168388
[]
no_license
qwaszx000/delivery_service
43e30e286759e5dc4a8a4831cb3feefc842c33ae
0ea8a35b3b709320f21079aa5ffd1c26e251aa4d
refs/heads/master
2022-10-11T20:21:55.370370
2020-05-23T08:20:19
2020-05-23T08:20:19
263,871,405
0
0
null
2020-06-06T09:57:00
2020-05-14T09:28:17
Python
UTF-8
Python
false
false
400
py
# Generated by Django 3.0.6 on 2020-05-22 09:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0011_auto_20200522_1200'), ] operations = [ migrations.AddField( model_name='order', name='CookingTime', ...
[ "kalita1303@gmail.com" ]
kalita1303@gmail.com
43c88ceef22e3112a541ec05c8e4012ce4c8c0df
b43fefe3b2aae0d26304c30a858d8733859c7915
/venv/bin/easy_install
3e372d2a3dc61cb42284315489a4811389ff9162
[]
no_license
nithinrithin/AI_Learning
057b502c599835503ba627de54979bd43b5be4e8
f6f9a075ad0c5d396e930a2fbd6a6bfd09a0bc4d
refs/heads/master
2020-08-21T06:02:51.962175
2019-10-18T20:53:04
2019-10-18T20:53:04
216,104,802
0
0
null
null
null
null
UTF-8
Python
false
false
444
#!/home/nithin/PycharmProjects/AI_Learning/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$...
[ "nithinrithin@gmail.com" ]
nithinrithin@gmail.com
c1fd09466b935364abbae55c332d08158db82ed2
545929b7663fc92f5526b9ff7ec8aeed0a84aa48
/pro4.py
eb500ad525c72c85ad526ad792e1fbb985217a9c
[]
no_license
Tinasamayasundaram/propython
2b58b8efc206a9b1ed87d44ad15703fa6e5c17f0
11a6a53b41421b74c9b639a70e698a2941445e8c
refs/heads/master
2020-06-02T12:09:44.522032
2019-06-17T04:39:45
2019-06-17T04:39:45
191,150,025
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
mt,jt=map(str,input().split()) s=0 if len(mt)>len(jt): mt,jt=jt,mt i=0 while i<len(mt): s+=(ord(jt[i])-ord(mt[i])) i+=1 for i in range(i,len(jt)): s+=ord(jt[i])-ord('a')+1 print(s)
[ "noreply@github.com" ]
Tinasamayasundaram.noreply@github.com
c05cae9269daaa367bdbeffb4fb7053839861ce1
6a4abad6ff7c0d09d712b02a3970bc8b42097c0d
/backend/admin/__init__.py
fa19f778dba64f0984b0e729ac8062bca264344e
[]
no_license
kirya-dev/machine_advisor
5c98c99e65276572f6299dd55064e59684379fc4
21fcf74a86ac9290adb9f120a4b64c87d68ab913
refs/heads/master
2022-12-12T12:07:48.403176
2018-06-05T17:53:34
2018-06-16T21:08:03
158,352,634
2
0
null
2022-09-16T17:53:02
2018-11-20T08:05:15
JavaScript
UTF-8
Python
false
false
1,226
py
from flask import render_template from flask_admin import Admin, AdminIndexView, expose from ..models.ar_model import ARModel from ..models.ar_model_coeff import ARModelCoeff from ..models.device import Device from ..models.signal import Signal from ..models.signal_sample import SignalSample from ..models.type_signal ...
[ "kirill.matasov@immelman.ru" ]
kirill.matasov@immelman.ru
72de8eb136efd770ba9db06215d9ea846c6dd7c9
ceb4ac75c40cd53f24d8f7e0a2f763de309bcfdb
/main4.py
24ac83b28e32c4c98c305c1e1b012cf1ea9f8cf3
[]
no_license
kevinelong/bo
c706d0771dbbf427a67d240f552eef4b7529b877
e08e2d0e07e240cab440733173578f627e0f25ec
refs/heads/master
2022-11-08T22:18:04.053714
2020-07-12T17:17:31
2020-07-12T17:17:31
279,112,257
0
0
null
null
null
null
UTF-8
Python
false
false
2,184
py
class Coordinate: def __init__(self, x, y): self.x = x self.y = y class Size: def __init__(self, width, height): self.width = width self.height = height class Box: def __init__(self, origin:Coordinate, box_size:Size): self.origin = origin self.size = box_size class Item: def __init__(self, name:str, loc...
[ "kevinelong@gmail.com" ]
kevinelong@gmail.com
54b883b64ef60b20fe3d570fc00563c41892ba76
0bc8d6abec44e1187499f93803f82514f2b53fc6
/Base/BaseReq1.py
fa5421d9d89f69e236d3949b433faf8e14ac7258
[]
no_license
IamBiJav/auto_http_api
932db2b4f2e1b67f2c0760806afd086494d92007
5a7ff01845e43d441fef8ae955b056085ab2dd10
refs/heads/master
2023-03-16T22:20:50.102610
2021-03-16T13:41:07
2021-03-16T13:41:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,054
py
import requests import json import ast from Base.BaseElementEnmu import Element from Base.BaseParams import BaseFuzzParams from Base.BaseStatistics import writeInfo class Config(object): def __init__(self, sessions): self.sessions = sessions def config_req(self, kw): app = {} header = ...
[ "284772894@qq.com" ]
284772894@qq.com
9db0cb4a0ab5668893f4ed5fcb8d6a4515118cab
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-smn/huaweicloudsdksmn/v2/model/list_topics_item.py
941aeb67db97af3db8459de64cdaa873c70458bf
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,993
py
# coding: utf-8 import re import six class ListTopicsItem: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in def...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
bdadcad105bd47878e489acf4fdde8994afe2523
566dad807a5bbfb86e67439271d174de016c352f
/snacks/admin.py
2f809d937826574a0a27c5355f0f8938e7437e95
[ "MIT" ]
permissive
YazanAhmad18/DjangoX
4e4d0e4fba5ff6e5e87ce0967d530c75230cffc0
1e3316fff1f4b0e4fd4895e39564c8f4d36751c1
refs/heads/master
2023-07-13T09:44:49.188812
2021-09-01T14:26:20
2021-09-01T14:26:20
402,051,083
0
0
NOASSERTION
2021-09-01T14:26:21
2021-09-01T12:22:49
Python
UTF-8
Python
false
false
116
py
from django.contrib import admin from .models import Snack # Register your models here. admin.site.register(Snack)
[ "yazan-ahmed1999a@outlook.com" ]
yazan-ahmed1999a@outlook.com
1a8fc78bc1fea37a970c7420c33b41f45b732af7
cf9799c79d6d03fa1d2033a854842a21c2368c5d
/LBCScrapper/LBCHouseScrapper.py
e68d4728eb87592a3b85d2a083d8c102d3ae4d10
[]
no_license
alpharender/leboncoin_scrapper
3eb2b94926e7e30fde904035b57aafd2ce73d6a5
c491659bda544d81e5e35de18fd0d4a2f6526857
refs/heads/master
2022-03-22T09:23:29.325645
2019-02-18T22:34:18
2019-02-18T22:34:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,152
py
from pprint import pprint from LBCProperties.LBCDomTarget import LBCDomTarget from LBCProperties.LBCArticle import LBCArticle from LBCProperties.LBCQueryStringEnum import LBCQueryStringEnum from LBCProperties.LBCQueryStringEnum import LBCQueryString...
[ "cardiox1212@hotmail.fr" ]
cardiox1212@hotmail.fr
157272d28612be329618c7942ab668c8d37b06d2
f6abebf3625b7d5432c7524fbbe17e3073049d0a
/see_fields/__manifest__.py
1ac3b863c79ed5e314b2ec5d297311685e3f6cb7
[]
no_license
xmarts/modules_bazar
6b6b9e343a8c795fdcee55e593328849b87f4f5f
edbc4cbd4b52901c7c72bc148025948ddb3a4e1e
refs/heads/master
2020-04-24T17:12:48.663527
2019-02-22T21:55:20
2019-02-22T21:55:20
172,138,690
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name' : 'Hidde fields product', 'summary': 'Ver campos de productos ocultos por variante', 'description': """ Ver campos de productos ocultos por variante """, 'author': "Xmarts, Nayeli Valenci...
[ "ogapablo1995@gmail.com" ]
ogapablo1995@gmail.com
a516d2875aaf6433dbddd6f1230011d83645a1b2
7d91ad2e89863266e533da3e256620481608e539
/inasistencias/templatetags/faltas.py
bbfa78cefa593eaf6bfa48921fa7abb9e325c93e
[]
no_license
LuchoCastillo/RDFvevo
b7be3734d64519b83c419993dc54d5f19c5783b8
e42bdc72a33b3e213455e37adb34febe17c6125f
refs/heads/master
2021-01-19T13:00:49.446395
2014-12-01T14:41:32
2014-12-01T14:41:32
27,383,432
0
1
null
null
null
null
UTF-8
Python
false
false
872
py
from django import template from inasistencias.models import Alumno, Inasistencia register = template.Library() @register.simple_tag def chequear(alumno, fecha, tipo): dic = { 'P': 0, '1/2': 0.5, '1/4': 0.25, '3/4': 0.75, 'A': 1, } fecha = formatear_fecha(fecha) ...
[ "luciano@linux-lc.site" ]
luciano@linux-lc.site
c4a9a30a22a68f25af0d217da63c120ae63b9e2a
3bbc96ed812a20d7cd3bb81821da132a0e00142b
/src/gui_L087 (for C1_PRO_X18 camera)/main.py
d78cb8db6458236e7ac996d2b028f24971360534
[ "MIT" ]
permissive
thiwankajayasiri/SCF4-SDK
ab48e6b41d7aa924c10793ec1d8cb64754e0ce17
e804257083d821ba48daed9896cb99a91fc293bc
refs/heads/master
2023-06-11T21:44:11.924694
2021-07-02T11:03:46
2021-07-02T11:03:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,088
py
import sys import os from PyQt5 import QtCore, QtGui, QtWidgets, uic from PyQt5 import sip from PyQt5.QtCore import Qt, QTimer, QThread import queue import utils import hw_serial import gui import version if sys.platform == 'win32': QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True) SET...
[ "info@kurokesu.com" ]
info@kurokesu.com
7f7621b29075cba866d4c2b7508de19821719201
2c6bc39f2adf3731109519bfaf8a3a24ae913834
/admin/admin/settings.py
60c38e44516af552aee83c9bf875de446377cff1
[]
no_license
aliensmart/django-admin
a1289e1a01d64b416f64db1ed435ba23f4c2b8ca
0732358e4ace57abbf621df66c75b85219226d07
refs/heads/master
2022-09-01T15:28:54.664846
2020-05-20T20:34:54
2020-05-20T20:34:54
265,679,957
0
0
null
null
null
null
UTF-8
Python
false
false
3,085
py
""" Django settings for admin project. Generated by 'django-admin startproject' using Django 3.0.6. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # B...
[ "kaoua17@gmail.com" ]
kaoua17@gmail.com
07cab7f377e53810bca7f3ea6fd25e8f93c45bf2
ae7884af1ec3965b7c0eec22edad6b74f78b7ba6
/server/src/uds/core/workers/stats_collector.py
23a2506832f5b1b824b8e41f3fa32e05c785c451
[]
no_license
glyptodon/openuds
f4eefa319a3ead827dad999d24e5ee3854d1345d
3908c875d30ec332490fc8c049bb537e10f10d08
refs/heads/master
2021-07-12T20:58:49.281242
2021-03-05T22:42:55
2021-03-05T22:42:55
62,921,174
0
1
null
2016-07-08T22:33:44
2016-07-08T22:33:44
null
UTF-8
Python
false
false
4,456
py
# -*- coding: utf-8 -*- # # Copyright (c) 2013-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
115c7c7c5a07a0ed5e1214fc406d01cf55ee2eef
f1267f4a0fae414f16b2429a5c3b1cbd42df8794
/lib/Daemon.py
dded7072b2770aaa31cf9b096453386af2a21d63
[]
no_license
oraant/learn_zabbix_odbm
3ff3b0318e802ebff9603c8daefdf67cda772b94
35a010b5dc0a8bc2989b4d3618f795b08a637063
refs/heads/master
2020-12-24T05:46:10.358982
2016-03-21T10:25:29
2016-03-21T10:25:29
73,452,172
0
0
null
null
null
null
UTF-8
Python
false
false
1,800
py
# coding:utf-8 import sys,os class Daemon: def __init__(self,stdin='/dev/null',stdout='/dev/null', stderr='dev/null'): '''初始化,指定标准输入输出文件''' self.stdin = stdin self.stdout = stdout self.stderr = stderr def daemonize(self): '''Fork当前进程为守护进程,重定向标准文件描述符''' #Per...
[ "oraant777@gmail.com" ]
oraant777@gmail.com
ae561cf863debd20b40b3f63bd0ef25b4c7e05c6
ba4cba2f29b926ac9a84c9ba40fc68ea82f95175
/force-master/feature_utils.py
c3e90e76431ad1427d10237b15f2daf308b89a14
[ "BSD-3-Clause", "MIT" ]
permissive
dadatomisin/force_cv
4e679198b2b0557e8df2bc8a0b4ca6f4c76e5b44
2b4e6ffd9b740ca5148a906789a9620b18c5901d
refs/heads/main
2023-03-30T19:11:03.770791
2021-03-24T14:48:26
2021-03-24T14:48:26
351,116,573
0
0
null
null
null
null
UTF-8
Python
false
false
6,919
py
import numpy as np cm0a = np.asarray([[0.705, 0.02, 0.024, 0.029, 0.09, 0.021, 0.008, 0.032, 0.058, 0.013], [0.007, 0.925, 0., 0.002, 0.004, 0.008, 0.004, 0.005, 0.026, 0.019], [0.034, 0.001, 0.542, 0.02, 0.251, 0.102, 0.022, 0.022, 0.006, 0. ], [0.005, 0.005, 0....
[ "noreply@github.com" ]
dadatomisin.noreply@github.com
64b4ef84a18ddd9f2bc43240c84053e62ea65453
b244948b59a27b162d066298dddb804941a07298
/pekja/utils.py
d982e1feba79b2df8c38438463b6d8b2030ee933
[]
no_license
sry309/pekja
6f1160bb998de845ff059ab5d83029338091fcdc
1534753df393cc4396f1fb1bff95ec13588e4a49
refs/heads/master
2021-05-20T09:00:19.685982
2020-03-21T03:05:56
2020-03-21T03:05:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,770
py
import os from html import escape from platform import system from crontab import CronTab from django.core.mail import EmailMessage from django.template.loader import render_to_string from django.contrib.auth import get_user_model from pekja.settings import DEFAULT_FROM_EMAIL from pekja.settings import DATA_DIRS fro...
[ "me@werner.wiki" ]
me@werner.wiki
bafc73e9e2d92ab11157f9796b307fe297a062c4
ab1dfc351cfb3928674f8ed9d938f1b131f74838
/chatApi/app/Event/Msg.py
7e141efa80c9c1926df480db0b86d148625c7648
[ "Apache-2.0" ]
permissive
huaSoftware/chat
1222fc620a70a4d8f67ae7f42ac04fcb7bed9e59
e9c18455bb317495af83bb1caebfeccd78bd9187
refs/heads/master
2022-12-08T21:19:35.138378
2020-10-23T12:38:35
2020-10-23T12:38:35
192,302,764
16
6
Apache-2.0
2022-12-08T06:35:35
2019-06-17T08:06:55
JavaScript
UTF-8
Python
false
false
321
py
''' @Author: hua @Date: 2019-12-03 14:44:23 @description: @LastEditors: hua @LastEditTime: 2019-12-03 15:02:10 ''' from app.Models.Msg import Msg from sqlalchemy import event import time @event.listens_for(Msg, "before_insert") def msg_before_insert(mapper, connection, target): target.created_at = int(time.time()...
[ "584425439@qq.com" ]
584425439@qq.com
f888a09eee26ae4a58a6c72db2c9cf77907251c5
1d5c6b57d034f30ce24ba500a4d20b191f16ac43
/31.py
cdf40ff0743b49a411e2497ca4bf683178480b0d
[]
no_license
Meghashrestha/assignment-python
8d30ebcafc2e11040020ee1150c7f86afdd1504a
150240ddaa0e166544e1b1539a652a5a1c0f229d
refs/heads/master
2022-11-09T06:40:30.169973
2020-06-28T11:39:19
2020-06-28T11:39:19
275,571,936
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
# 31. Write a Python program to iterate over dictionaries using for loops. my_dict = dict() n= int(input("enter the number of item in the dictionary you want to input : ")) for i in range(0,n): key = input("Enter the key: ") value = input("Enter the value: ") my_dict[key] = value print(my_dict) for key, val...
[ "meghashrestha30@gmail.com" ]
meghashrestha30@gmail.com
768f6de70068718e53d853ecba3b2732ba5da6cd
bd752709dd5f45ad53081d0670c44a17ae675624
/test_melanoma.py
05a1087e58e66d3d4aa8654df3fd551dc7ad005e
[ "Apache-2.0" ]
permissive
sameer0805/WebDatabase
955877c8db6e7ae59c69476db6ed3f41d66868c6
4a5d0c5361ecb67b3b971786eb8c0c8b13d944d1
refs/heads/master
2021-05-07T00:43:04.796633
2017-12-14T15:14:44
2017-12-14T15:14:44
110,165,376
0
0
null
2017-12-14T15:14:45
2017-11-09T20:56:14
Python
UTF-8
Python
false
false
3,383
py
from main import determine_filepath, validate, analyze_image from flask import Flask, request, jsonify from flask_cors import CORS from time import gmtime, strftime import base64 import re import numpy as np from setup_db import User, write_file from melanomapredictions import predict import sys sys.path.insert(0, '/no...
[ "alice@Alices-MacBook-Pro.local" ]
alice@Alices-MacBook-Pro.local
f384ea5bcd062e35c370ad8dfe0502fb86f1fe16
39de8c1d3dc87361d3d0048c02a50d6aacd0769d
/user/models.py
7c54a1ee170797157a003af80cfab558b20ff770
[]
no_license
yeamin21/ubayy
9890360fd5aca869e9101e67c6fd3bcfc5244629
d2c071bcc5df0d74917b95f8566c50178bad5425
refs/heads/main
2023-06-15T18:29:46.052379
2021-07-05T21:55:52
2021-07-05T21:55:52
370,625,462
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
from django.db import models from django.contrib.auth.models import AbstractUser, BaseUserManager class User(AbstractUser): email = models.EmailField(max_length=250, unique=True) username = models.CharField(null=True, blank=True, max_length=20) USERNAME_FIELD = 'email' REQUIRED_FIELDS = ['username'] ...
[ "yeamin21@outlook.com" ]
yeamin21@outlook.com
77889153b32bd9f59bf9e86346e2260d3c052596
2121a7072abc9b239949a2efc798e67d184b1b52
/test/test_del_group.py
b032fc5316d8aa15c65055204b5d8aa657294d08
[]
no_license
el-labs/python_training
d5a11013bd3060bb9ed9c81b10d379eec6f9d7d5
7ac7170071e38f8df827af88e7e4555a6d644f18
refs/heads/master
2022-11-06T15:09:52.180707
2020-07-02T14:47:47
2020-07-02T14:47:47
259,080,463
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
from model.group import Group from random import randrange def test_del_some_group(app): if app.group.count() == 0: app.group.create_contact(Group(name="", header="", footer="")) old_groups = app.group.get_group_list() index = randrange(len(old_groups)) app.group.delete_group_by_index(index) ...
[ "a.kosmatykh@hotmail.com" ]
a.kosmatykh@hotmail.com
1258f388ef158ca0387123f39fb49abe83baedb8
bc01e1d158e7d8f28451a7e108afb8ec4cb7d5d4
/sage/src/sage/interfaces/giac.py
a144910f149d64f01f0c0f4ac473b19e74454a0b
[]
no_license
bopopescu/geosci
28792bda1ec1f06e23ba8dcb313769b98f793dad
0d9eacbf74e2acffefde93e39f8bcbec745cdaba
refs/heads/master
2021-09-22T17:47:20.194233
2018-09-12T22:19:36
2018-09-12T22:19:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
36,943
py
r""" Interface to Giac (adapted by F. Han from William Stein and Gregg Musiker maple's interface) You must have the optional Giac interpreter installed and available as the command ``giac`` in your PATH in order to use this interface. You need a giac version supporting "giac --sage" ( roughly after 0.9.1 ). In this ...
[ "valber@HPC" ]
valber@HPC
6fa3076b90f0fc78f2ed7de867f7b3f81c9ab896
00144932bbac7819ed5cd7e721082ac2b9b4103f
/algorithms/stack/stack_parenthesis_check.py
e84e9ca42903524d5b1bdba3fbf5a67103d31393
[]
no_license
danielsada/100daysofalgorithms
c6b81614c4db74d66a864cb827d4d572dd10f73c
8020d9fa09b0ac04ea5564a84191cc21163cb55c
refs/heads/master
2022-10-22T11:34:57.243317
2022-10-03T09:58:17
2022-10-03T09:58:17
121,158,462
14
7
null
null
null
null
UTF-8
Python
false
false
1,218
py
__author__ = "Daniel Sada" __license__ = "MIT Licence" __email__ = "hello@danielsada.tech" class StackParenthesisCheck: """" Implement a stack that checks if match of square brackets, tags and parenthesis match their level. Accepts <> () [] {} """ def __init__(self, string): self.stri...
[ "danielsadac@gmail.com" ]
danielsadac@gmail.com
4a56709e97ff5145a635e78961eacacc40399a84
300e4d9672b5e3c25f4a06055c29bbd7f2235203
/M5_Forecasting/pgm/eda.py
61722dda40d571a647063c275d817e58557b55eb
[]
no_license
skn27/kaggle
8bcabf0bccf8311ab7b0790fa21420c5221a961d
7d5537c499992f6652c20b0f5f22c7a40eda6ab3
refs/heads/master
2020-07-27T23:05:34.960367
2020-04-19T06:39:52
2020-04-19T06:39:52
209,239,714
0
0
null
null
null
null
UTF-8
Python
false
false
507
py
# %% import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns sns.set() import os if not os.getcwd() == '/Users/soki/Documents/kaggle/M5_Forecasting/': os.chdir('/Users/soki/Documents/kaggle/M5_Forecasting/') # %% calender = pd.read_csv('data/calendar.csv') sales_train_val = p...
[ "c.lv.pg.tit@gmail.com" ]
c.lv.pg.tit@gmail.com
f41facc51474c9c8b75bdf9eb8cbff2452c343ac
f409f0b5be2bccdc76041a308b28964b00565c2b
/untitled/urls.py
93f59be44255ae6fefe35db65a6c61417a4d3618
[]
no_license
yingliufengpeng/demo_django_blog
b9df1e9176ffd66fe9cf6b8fcbad34092aaa8c53
27b3e88ebc7e84f8b4d2a8844abd35104bec2bdb
refs/heads/master
2021-01-17T07:50:52.081607
2017-06-26T18:48:56
2017-06-26T18:48:56
95,317,444
0
0
null
null
null
null
UTF-8
Python
false
false
1,704
py
"""untitled URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
31a9912f4a72df65b04385107f6527ff09b4e795
183024afcefdadb6dbb9f1633ef3d07f1e13021c
/utils/arrayFunctions.py
3be02cb2180366c1d353aadd74434ea23704e4f1
[]
no_license
agar98/fastest_search
cf9b78994fbba13a960ae6aa90f14017a7531df5
4152b1fca548527461415f68f5b56f9e6ca84f1f
refs/heads/main
2023-01-06T11:18:26.157989
2020-11-07T12:21:39
2020-11-07T12:21:39
310,539,024
0
0
null
null
null
null
UTF-8
Python
false
false
702
py
import random from utils.logs import print_log from utils.performanceCalculator import performance @performance def generate_array(size, max_number): print_log('info', 'Generating array') arr = random.sample(range(1, max_number), size) return arr def quick_sort(array): if array == []: retur...
[ "aditya.agar98@gmail.com" ]
aditya.agar98@gmail.com
d91562b560e5544252d65cea772f0354892a9d9c
49995ddbd8f9714e8766687e1c90432a95201e92
/test/python/sample/stdlib/test_tarfile.py
099db2ad879d6532fcc5bc7b3be23b7a8599b408
[ "MIT" ]
permissive
esoma/woosh
73e07a0e5d99066a44c9ad7ec80da8e7a81c5be3
4cd58eb93c69c48040ff1e25159e48def54c3111
refs/heads/master
2023-04-07T03:20:27.661162
2021-03-26T00:11:16
2021-03-26T00:11:16
319,500,780
0
0
null
null
null
null
UTF-8
Python
false
false
797,304
py
# this file was generated using test/python/sample/generate.py # python import io import pathlib # pytest import pytest # woosh import woosh def tokenize_file_like(source): return list(woosh.tokenize(io.BytesIO(source))) def tokenize_bytes(source): return list(woosh.tokenize(source)) SAMPLE_DIR = pathlib.P...
[ "stillusingirc@gmail.com" ]
stillusingirc@gmail.com
c8ad206a40877f210ad57efa84da7431b83e0097
3621423618749c3ceefe34f77a405cf3f3d5a060
/home/migrations/0001_initial.py
84d2250d33edb34c42b26f2b968260668bfd67a9
[]
no_license
AlvinChanM/CoolBlog
3885c037c5cf21e22e16198388e79aca40cf51ba
94240568b46c0e074db0038e3a3a0a6e67416fe9
refs/heads/master
2021-05-05T23:34:12.531895
2018-01-12T06:49:54
2018-01-12T06:49:54
116,800,823
0
0
null
null
null
null
UTF-8
Python
false
false
2,470
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2018-01-09 14:13 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
[ "miao564103484@163.com" ]
miao564103484@163.com
7ee6ff26ba277d1c49dcf2b4bb869480975c42db
179ee65ebe9b06aefc51f54908107c6fbbdb82f1
/tutorial/spiders/Hadist9Spider.py
9182f62e431193a21d4da7c19729fbe40af309a8
[ "MIT" ]
permissive
richasdy/scrapy-tutorial
aeb722608dda9b4bd8e99856017ebc702c54dc7b
426c1a885874a087fd49f4b5bec62653e8821744
refs/heads/master
2021-05-18T00:45:13.060299
2020-04-25T08:10:29
2020-04-25T08:10:29
251,030,286
0
0
MIT
2020-03-29T12:47:42
2020-03-29T12:47:41
null
UTF-8
Python
false
false
2,033
py
import os import scrapy from time import sleep from scrapy.loader import ItemLoader from scrapy.selector import Selector from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys from scrapy_selenium import SeleniumRequest basedir = os.path.dir...
[ "donni.richasdy@gmail.com" ]
donni.richasdy@gmail.com
c2113be94bd6ef86abbc7380563b0a18cabd088f
f45cc0049cd6c3a2b25de0e9bbc80c25c113a356
/LeetCode/动态规划法(dp)/背包问题/474. 一和零.py
ee1171e6057672507a105886d84a225938f263c0
[]
no_license
yiming1012/MyLeetCode
4a387d024969bfd1cdccd4f581051a6e4104891a
e43ee86c5a8cdb808da09b4b6138e10275abadb5
refs/heads/master
2023-06-17T06:43:13.854862
2021-07-15T08:54:07
2021-07-15T08:54:07
261,663,876
2
0
null
null
null
null
UTF-8
Python
false
false
2,788
py
""" 474. 一和零 给你一个二进制字符串数组 strs 和两个整数 m 和 n 。 请你找出并返回 strs 的最大子集的大小,该子集中 最多 有 m 个 0 和 n 个 1 。 如果 x 的所有元素也是 y 的元素,集合 x 是集合 y 的 子集 。   示例 1: 输入:strs = ["10", "0001", "111001", "1", "0"], m = 5, n = 3 输出:4 解释:最多有 5 个 0 和 3 个 1 的最大子集是 {"10","0001","1","0"} ,因此答案是 4 。 其他满足题意但较小的子集包括 {"0001","1"} 和 {"10","1","0"} 。{"1110...
[ "1129079384@qq.com" ]
1129079384@qq.com
56f16db5640a5744b67e7f88a950990ad72782a6
21b0b4c27193898207751c91b8b2ed168a1b1638
/py/py_0383_divisibility_comparison_between_factorials.py
6e66399ac758ee89f0245e09912ace51ce300130
[ "MIT" ]
permissive
lcsm29/project-euler
67560a4e66968f1671a3d7ecf2dda6c956893dca
fab794ece5aa7a11fc7c2177f26250f40a5b1447
refs/heads/main
2023-07-04T11:45:24.374841
2021-08-07T08:20:41
2021-08-07T08:20:41
371,808,781
0
0
null
null
null
null
UTF-8
Python
false
false
605
py
# Solution of; # Project Euler Problem 383: Divisibility comparison between factorials # https://projecteuler.net/problem=383 # # Let f5(n) be the largest integer x for which 5x divides n. For example, # f5(625000) = 7. Let T5(n) be the number of integers i which satisfy # f5((2·i-1)!) < 2·f5(i!) and 1 ≤ i ≤ n. It c...
[ "lcsm29@outlook.com" ]
lcsm29@outlook.com
da31943f12cab72657cccbf301ca3e51137991fa
6b29d66ba7927129b68bc00db769f0edf1babaea
/SoftLayer/CLI/mq/endpoints_list.py
179663919c224900057d00eea255084ae140b781
[ "MIT" ]
permissive
tdurden82/softlayer-python
65f42923c347a164995dfc267829721032de261d
0eed20fa4adedd3228d91d929bb8befb1e445e49
refs/heads/master
2021-01-17T10:01:48.087450
2015-10-19T18:38:53
2015-10-19T18:38:53
46,301,339
0
1
null
null
null
null
UTF-8
Python
false
false
699
py
"""List SoftLayer Message Queue Endpoints.""" # :license: MIT, see LICENSE for more details. import SoftLayer from SoftLayer.CLI import environment from SoftLayer.CLI import formatting import click @click.command() @environment.pass_env def cli(env): """List SoftLayer Message Queue Endpoints.""" manager = ...
[ "k3vinmcdonald@gmail.com" ]
k3vinmcdonald@gmail.com
92916397d8bf8d6741c6ac3a5ea1959e5458d171
4d87e41fa51a3f777512982553b9bf4f32325c2f
/Scripts/pip3-script.py
7e22278ba12539d9a302792add86e495297ccf05
[]
no_license
Leno1993/RecommendSystem
75bc8a045abbd83a127133cac80feb3149ce2802
c97126126e86dd309804aa7b5da8df62b6491472
refs/heads/master
2020-05-09T12:59:28.410270
2019-03-24T13:53:48
2019-03-24T13:53:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
#!D:\PycharmWorkSpace\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3' __requires__ = 'pip==9.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( ...
[ "gaojiaming24@163.com" ]
gaojiaming24@163.com
6cd99aa856870945383ad551d176b967727db0ba
4851d160a423b4a65e81a75d5b4de5218de958ee
/Pig Sursurunga.py
cd4d4594217fdde6c6d1df1dd137ceb730f8f010
[]
no_license
LarisaOvchinnikova/python_codewars
519508e5626303dcead5ecb839c6d9b53cb3c764
5399f4be17e4972e61be74831703a82ce9badffd
refs/heads/master
2023-05-05T14:52:02.100435
2021-05-25T18:36:51
2021-05-25T18:36:51
319,399,343
1
0
null
null
null
null
UTF-8
Python
false
false
655
py
https://www.codewars.com/kata/5536aba6e4609cc6a600003d import re def sursurungal(txt): arr = re.split(r'(\W+)', txt) res = [] i = 0 while i < len(arr): if arr[i].isdigit(): n = int(arr[i]) if n in [0,1]: res.append(f"{arr[i]} {arr[i+2]}") else:...
[ "larisaplantation@gmail.com" ]
larisaplantation@gmail.com
28c5c03bd5a4e73df26417fd60a8fb3f7b6013eb
2c9904d2f4fb396a4c61885a315dedca2f3a3d99
/cells.py
d45899b0c7cdb7889457ed4e995cc9ffea63df85
[ "MIT" ]
permissive
levshaket/bioinf
6f707ac7b2732bcf25d68b85a6b8c06888118834
0c828d05bab604f2d012fd9cb929cb29f2d6c025
refs/heads/master
2020-04-17T09:06:01.251975
2019-01-18T17:07:24
2019-01-18T17:07:24
166,444,690
0
0
null
null
null
null
UTF-8
Python
false
false
4,101
py
#! python2.7 ################## Cell Type and Gene Expression Simulation ################## import numpy as np import random from bioinf import express from hamming import print_hamming random.seed() ################## Select Parameters ################## cells = 100 ; genes = 10000 ; cell_types = 5 ; gene_sets ...
[ "noreply@github.com" ]
levshaket.noreply@github.com
8865db146159f578256de4ca7df771ec7049b312
d2f4eb41c95e35a21c257554efbaf18a557d4f4a
/KneiborsClassfier.py
9ebdbadd0a59fb28173de4d19d2b21347c5b7885
[ "Apache-2.0" ]
permissive
madcow2021/Insect_Identification
1d7fbf5ce4a5d72d4994e5af2078701787eb08b4
ae9e30c09f47b343664b3cb18e893fedcd84b335
refs/heads/master
2022-02-03T22:31:17.108726
2019-06-05T01:34:46
2019-06-05T01:34:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,355
py
# coding=utf-8 import pandas as pd # 创建特征列表 column_names = ['P_rect', 'P_extend', 'P_spherical', 'P_leaf', 'P_circle', 'Species'] # column_names = ['P_rect', 'P_extend', 'P_spherical', 'P_leaf', 'P_circle','P_complecate', 'Species'] data = pd.read_csv('data/data.csv', names=column_names) # print data.shape # 这个功能快要...
[ "veraposeidon@gmail.com" ]
veraposeidon@gmail.com
c9720d78ca4b2c9836da119409d84623a2233f3c
c7e8ad53014c244b6e716503b91128caa5a572bf
/catalog/migrations/0004_auto_20200718_1130.py
0de558fec3be138363d2b612f29641651019708b
[]
no_license
ShimnaA/mylibrary
bd40b2846c900aee60b745cf0a3d48b9a2c72d5c
fa93a524a82d697cabc57405e60729c5fd9cb69d
refs/heads/master
2022-11-18T23:41:12.180071
2020-07-18T09:43:55
2020-07-18T09:43:55
280,079,687
0
0
null
null
null
null
UTF-8
Python
false
false
420
py
# Generated by Django 3.0.8 on 2020-07-18 06:00 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('catalog', '0003_auto_20200717_1525'), ] operations = [ migrations.AlterModelOptions( name='bookinstance', options={'ordering...
[ "shimnaa.arangil@gmail.com" ]
shimnaa.arangil@gmail.com