repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ALGAWA/TFM1 | 4,595,615,033,821 | eb517a3e3a90e7129db031c8dee9c51e61320d49 | 82757d751d9be290e7f45dd50c09eced8c03d930 | /TFM1app/urls.py | 44b83188d234f5bdc5d78e63964d260e4416464d | [] | no_license | https://github.com/ALGAWA/TFM1 | bcedff86eb7d37c2d3af3630f1aea169ccb83792 | db89522e566f4ad00bf6d58c9c1d8e4ddd759cad | refs/heads/master | 2020-03-29T05:13:50.460825 | 2016-07-05T15:32:04 | 2016-07-05T15:32:04 | 61,032,371 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf.urls import url
from . import views, viewbcn,viewIndex, viewfiltros
from . import viewfiltrosbcn, viewActualizarbcn, ActualizarMad
from TFM1app import viewIndexCreate, viewCrearmadrid, viewCrearbcn, viewsActualiza
urlpatterns = [
url(r'^([\D]+)/$',viewfiltros.Por_tipo, name='Por_tipo'),
url(r'^([... | UTF-8 | Python | false | false | 3,810 | py | 24 | urls.py | 14 | 0.754068 | 0.753806 | 0 | 64 | 58.3125 | 111 |
dbritto-dev/signxml_sunat | 15,530,601,763,226 | 29614f3d4cf91fc72d7fac7b916dec0ef983a5e3 | 3ffe5b41b896c2cd044c7224ae5abab838ee25c0 | /test/test.py | a2e8f265498c25490ebe6ba6896c942eda0fdcce | [
"MIT"
] | permissive | https://github.com/dbritto-dev/signxml_sunat | 86b4be23a651ad2afcc76e1d803d9e207be9399c | 1e9d1f3e6ae6d7ec01769fe355aa682648922764 | refs/heads/master | 2022-09-29T22:49:08.997238 | 2022-08-31T16:23:58 | 2022-08-31T16:23:58 | 153,178,740 | 2 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import unittest
from lxml import etree
from signxml_sunat import XMLSigner, XMLVerifier
class TestSignXMLSunat(unittest.TestCase):
def test_sign(self):
signed_doc = XMLSigner().sign('doc.xml', 'rsakey.pem', 'rsacert.pem')
signed_doc_str = etree.tostring(signed_xml, xml_declaration=True, encoding='I... | UTF-8 | Python | false | false | 655 | py | 7 | test.py | 4 | 0.674809 | 0.667176 | 0 | 19 | 33.526316 | 115 |
srgzyq/study | 11,175,504,944,851 | c70a77260fadd1a385488768c7dc241faa8e0451 | faf187e47a0c01385592a3213c413542bf8f47bc | /PythonStudy/RegularExp/languageData.py | e37e57f0287440197f1a2112d5287df5cd9d2cd7 | [] | no_license | https://github.com/srgzyq/study | 8f3442b781b45408810f46ad5a6f935aef6f8c97 | 9cefd7b6db983c3c63e7268a98a00af276d8f90f | refs/heads/master | 2021-01-10T20:59:06.176284 | 2020-03-26T13:54:11 | 2020-03-26T13:54:11 | 5,468,749 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #coding=utf-8
import re
test ="[\'ChongzhiLongmai\']=\"寅时已过,龙脉重置,获得两个骰子\"",
print test
| UTF-8 | Python | false | false | 124 | py | 94 | languageData.py | 44 | 0.652174 | 0.641304 | 0 | 6 | 14 | 52 |
zhshtabibito/OTS-by-ZS-and-KYF | 2,130,303,782,480 | e4da8ff8d57528feffa448588a2327346802fc91 | 7aacd62854f49be73bb549533237c76dbf2ac1b8 | /tools/make_comb_audio.py | 7221cc694bef6e5d0bfa1266f495da766c4a8788 | [] | no_license | https://github.com/zhshtabibito/OTS-by-ZS-and-KYF | 66638c539746e3ce8c3582e8666a949ea5a364f9 | 7235e04f48523b4fc9b0678d4e23f63dacb83761 | refs/heads/master | 2020-04-13T05:55:43.893572 | 2019-01-08T12:36:25 | 2019-01-08T12:36:25 | 163,006,876 | 0 | 0 | null | false | 2019-01-08T12:36:27 | 2018-12-24T16:16:13 | 2018-12-25T08:39:55 | 2019-01-08T12:36:26 | 226,552 | 0 | 0 | 0 | Python | false | null | import numpy as np
import matplotlib.pyplot as plt
import os, sys
import glob
import wave
import struct
import xml.dom.minidom
import random
# from dataHelper.Utils import read_video
def comb_duet(label1, label2, no1, no2, path):
# only horizontal cropping, crop1 and crop2 are like [x1,w1]
savename = label1 +... | UTF-8 | Python | false | false | 3,819 | py | 24 | make_comb_audio.py | 16 | 0.611678 | 0.578686 | 0 | 87 | 42.896552 | 111 |
aravindsriraj/machine-learning-python-datacamp | 1,202,590,851,381 | 02495e66a0783b345ca0b28bc9eba3fc29f9d6e0 | 72d88ac4ca463755a6653d7a2aa696b2dde0a648 | /Machine Learning Scientist with Python Track/20. Hyperparameter Tuning in Python/ch1_exercises.py | 5279a8e28f141119d589cd14338dc2acbacf951a | [
"MIT"
] | permissive | https://github.com/aravindsriraj/machine-learning-python-datacamp | 125b915ef0f6c36de56d6aa5660b612adf5658d9 | 65c180163b1ad235c79d85d4926e586a15a5f78f | refs/heads/master | 2023-03-18T05:12:53.574160 | 2020-09-14T00:23:50 | 2020-09-14T00:23:50 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Exercise_1
# Create a list of original variable names from the training DataFrame
original_variables = X_train.columns
# Extract the coefficients of the logistic regression estimator
model_coefficients = log_reg_clf.coef_[0]
# Create a dataframe of the variables and coefficients & print it out
coeff... | UTF-8 | Python | false | false | 5,281 | py | 94 | ch1_exercises.py | 92 | 0.668434 | 0.65177 | 0 | 232 | 21.198276 | 117 |
lin-river/python_notes | 5,351,529,258,915 | c3d9a88958a4d5505113fa944c6774a9a17b798a | 2eaa1ece21ae0cb666dcd398a38250ac3f31ae04 | /day6_class/1_class.py | 687f23c96594fdb08e5d775360d5725bcd2d2f0e | [] | no_license | https://github.com/lin-river/python_notes | 98bfe79ce5a18176d36c00a066254d660c461678 | b9b29d14e966cf7c62e09d24415a1fd5f33bc98b | refs/heads/master | 2020-03-16T09:59:33.332905 | 2018-05-08T16:22:37 | 2018-05-08T16:22:37 | 132,627,256 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author = "Hero_lws"
class Dog: #定义狗类
def __init__(self,name): #传入参数
# 在创建对象时设置属性。这称为初始化对象。
self.name = name
# self这个名字在Python中没有任何特殊的含义。只不过所有人都使用这个实例引用名。这也是让代码更易读的一个约定。
# 也可以把这个实例变量命名为你想要的任何名字,不过强烈建议你遵循这个约定,因为使用self 能减少混乱。
def call(sel... | UTF-8 | Python | false | false | 784 | py | 130 | 1_class.py | 110 | 0.619433 | 0.609312 | 0 | 22 | 20.545455 | 62 |
coddmajes/deep-learning | 687,194,777,962 | 0756f4c497fe1088e6e77dcb2789cf18f54997d1 | a67119a8a5104535ace2c05f3d1bf6dfa9ce7334 | /deeplearning.py | 789f8c2286c21907716611193839701d796c7acc | [] | no_license | https://github.com/coddmajes/deep-learning | 8cd74ed73efb8bf72bae51b8794fe43280eb9aaa | f065845586d3eafb85106fe61c467b556d4a68ea | refs/heads/master | 2022-06-09T19:09:21.346140 | 2021-10-21T07:54:11 | 2021-10-21T07:54:11 | 180,967,303 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | "handwriting recognition"
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers.core import Dense,Activation
#from keras.layers import Conv2D, MaxPooling2D,Flatten
from keras.optimizers import SGD,Adam
from keras.utils import np_utils
import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
im... | UTF-8 | Python | false | false | 2,132 | py | 5 | deeplearning.py | 1 | 0.704972 | 0.655722 | 0 | 70 | 29.442857 | 92 |
nick-anderson/demo | 2,456,721,302,497 | 7a33e73473452f865b18039cb80842b9ee335abe | ec4fcb8f60823680a12ac7bc890ad8969e835324 | /deploy.py | fe5cbde8b6424b728ea129403726113e250cd420 | [] | no_license | https://github.com/nick-anderson/demo | 1019c87f81e4248c014b682175cff1b72f60164f | ed1a33a75fb3b60259124a5ca14ed0f1b0922d2d | refs/heads/master | 2017-10-06T15:28:22.854924 | 2017-06-27T20:40:26 | 2017-06-27T20:40:26 | 95,119,784 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import pandas as pd
import pickle
from optparse import OptionParser
import json
def load(filename):
filename = pickle.load(open(filename,'rb'))
return filename
def pred(model,data):
predictions = model.predict(data)
return predictions
if __name__ == "__main__":
optparser = OptionParser()
op... | UTF-8 | Python | false | false | 827 | py | 8 | deploy.py | 3 | 0.660218 | 0.640871 | 0 | 36 | 21.972222 | 46 |
VicAve/pythonModule | 14,620,068,694,130 | b6275fe2afa953ba74785d6070d9289252a6de6c | 33ea58a86e90874314e8a41a98d85daa32ecd0db | /basics.py | 1eb1e7eaa49b2c67aa91e3c4e9c7d663bfb4bb2e | [] | no_license | https://github.com/VicAve/pythonModule | 97abc5ab22d156552a86215457d71967834b1006 | 5d5cfeb549fd798099f6f7706e58d65509565ffd | refs/heads/master | 2020-12-07T02:31:48.604995 | 2017-06-27T21:56:06 | 2017-06-27T21:56:06 | 95,484,103 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #This is a comment in python
#
x = 15
print("Exercise 1")
if x % 5 == 0 and x % 3 == 0:
print ("Rock Star")
elif x % 3 == 0:
print ("Rock")
elif x % 5 == 0:
print("Star")
print("Exercise 2")
x = [1,2,3,4,5]
l = len(x)
print("length: ",l)
print("last num: ",x[-1])
for i in range(l):
print(x[i])
print... | UTF-8 | Python | false | false | 514 | py | 8 | basics.py | 7 | 0.558366 | 0.494163 | 0 | 32 | 15.0625 | 32 |
li-phone/Nopimal | 2,405,181,703,630 | 8de685f09a58aa5b69fdb39593dcb6f3147f9486 | 7fdab25ffbe3534d107d732c0b5329b232e6b004 | /code/feature/main_feature.py | ae22be34dafdfb654a3a437b562003bc85525e11 | [
"MIT"
] | permissive | https://github.com/li-phone/Nopimal | c39183fee2e6a716ba1c262595556c8c50d1e295 | 62d03f1ac2247ab984399a485dc699fb0debd0f5 | refs/heads/master | 2020-11-24T07:24:26.831729 | 2020-05-05T06:39:08 | 2020-05-05T06:39:08 | 228,028,115 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pandas as pd
import seaborn as sn
import seaborn as sns
import numpy as np
import matplotlib.pyplot as plt
from pandas.api.types import is_string_dtype, is_numeric_dtype, is_float_dtype, is_int64_dtype
import matplotlib as mpl
from pandas import json_normalize
from tqdm import tqdm
import warnings
warnings.filt... | UTF-8 | Python | false | false | 9,526 | py | 33 | main_feature.py | 22 | 0.585268 | 0.578258 | 0 | 272 | 30.992647 | 95 |
bussiere/PirateBoxMessageBoard | 2,662,879,726,083 | f35e3a1f17961d8a4d45a9d205b7169a7add01e8 | 6d45ba4adff74b2cb1b6764dc684f37407b41ba9 | /PirateBoxMessageBoard/message/forms.py | b3fcbd48a2a4cea507ac333c599047e345d8e20a | [] | no_license | https://github.com/bussiere/PirateBoxMessageBoard | bbf478af1886caf811f38802bde5528593bba2c4 | 8626a8a44d5bdbf06486fac65682a50e4209396d | refs/heads/master | 2021-01-23T11:56:22.905167 | 2013-03-08T16:33:08 | 2013-03-08T16:33:08 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django import forms
class MessageForm(forms.Form):
Pseudo = forms.CharField(max_length=100)
Description = forms.CharField(max_length=100)
Message = forms.CharField(widget=forms.Textarea(attrs={'cols': 20, 'rows': 20}))
| UTF-8 | Python | false | false | 237 | py | 14 | forms.py | 7 | 0.725738 | 0.683544 | 0 | 6 | 38.5 | 84 |
IsraelAbebe/intrinsics-network | 15,728,170,270,915 | c9aff4b1d9d7cc8b3d5d686d3f2db21a4df9ce13 | 9eab7164d9db5b1326666fe0bc12c48bc3198818 | /shadethis.py | 7200f5ba2485382ddb79f96bc81ec571d9069204 | [] | no_license | https://github.com/IsraelAbebe/intrinsics-network | ac1e689e15f75a18b9276f12440f61bfe3b50a0f | 746699935ef3cd73b2ecaed9c3143e86af3beb27 | refs/heads/master | 2021-09-07T09:48:04.082583 | 2018-02-21T06:16:11 | 2018-02-21T06:16:11 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys, os, argparse, torch
import models, pipeline
val_set = pipeline.IntrinsicDataset('dataset/output/','car_tarin',['input', 'mask', 'albedo', 'depth', 'normals', 'lights'], size_per_dataset=1)
print ("is",type(val_set))
val_loader = torch.utils.data.DataLoader(val_set, batch_size=32, num_workers=4, shuffle=Fa... | UTF-8 | Python | false | false | 623 | py | 1 | shadethis.py | 1 | 0.707865 | 0.698234 | 0 | 12 | 50.916667 | 144 |
Ssabarinath/MyBriefcase | 16,862,041,644,299 | a62f6b0dfedba411d14a40c22411a315b8aa2c4a | 778750aa7ec68917c92b7749713f436d01ed1b1e | /Power of a Number.py | a89c724a1346ac255c35e45799ceff3f25e693f0 | [] | no_license | https://github.com/Ssabarinath/MyBriefcase | d343eb5ea567eccd5682fc5425539c90b3388921 | 99bb174b9c6caf052ec77d77576fd3da8cdcea36 | refs/heads/master | 2020-07-03T00:55:00.780062 | 2019-08-14T00:45:24 | 2019-08-14T00:45:24 | 201,732,612 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | a = int(input("Enter an Number : "))
exponent = int(input("Enter Exponent Value : "))
power = 1
for i in range(1, exponent + 1):
power = power * a
print("The Result of {0} Power {1} = {2}".format(a, exponent, power))
| UTF-8 | Python | false | false | 227 | py | 8 | Power of a Number.py | 8 | 0.60793 | 0.581498 | 0 | 8 | 27.375 | 69 |
printfoo/leetcode-python | 1,778,116,504,814 | 324bc2c5e5dcfac664fc00aa90f11251b06fb621 | 7bc88986b141a49787bab67e6211d49d0c0fa16b | /problems/0973/k_closest_points_to_origin_better.py | 0649ab02c4568527e46f0b080dd32d4379634c1c | [] | no_license | https://github.com/printfoo/leetcode-python | 1b544021b5166ed6ba4ce80a7535d77eca1aafdc | e8169847b8dbdf049408658a0d77a5d59a736e7b | refs/heads/master | 2021-01-20T07:00:18.133236 | 2019-11-17T03:37:20 | 2019-11-17T03:37:20 | 89,947,168 | 2 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Solution for K Closest Points to Origin, Time O(nlogK).
Each heap push/pop is log(len(list)).
The list is of length K.
We did n pushes and K pops.
Idea:
Priority queue.
The optimization is to realize that heap[0] always stores the smallest element.
Instead of storing all n points, we need to store K.
Because we ca... | UTF-8 | Python | false | false | 1,138 | py | 188 | k_closest_points_to_origin_better.py | 181 | 0.626538 | 0.611599 | 0 | 35 | 31.514286 | 79 |
OLavrik/csp | 13,288,628,855,201 | 59fe183ff38f796ec6959163b40135fcb70241ad | 3939edf962255ac1a5720a1ea4af53676f657355 | /models/patter_process.py | 29e942c718ce55ce395325c404c7afed86f6404f | [] | no_license | https://github.com/OLavrik/csp | 00ecc65e6c2e2ba69833a21e58c4ed447590ad3f | c04b9c8acf667b4a18752501ca078e6a19779bc8 | refs/heads/master | 2023-06-03T17:02:31.401250 | 2021-06-20T02:49:33 | 2021-06-20T02:49:33 | 378,006,544 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import matplotlib.pyplot as plt
def detect_extr(arr):
q25=np.quantile(arr, 0.25)
q50=np.quantile(arr, 0.50)
q75=np.quantile(arr, 0.75)
IQR=q75-q25
min_extr=q25-1.5*IQR
max_extr=q75+1.5*IQR
r=[0 if (elem>min_extr and elem<max_extr) else 1 for elem in arr]
return r
d... | UTF-8 | Python | false | false | 4,675 | py | 36 | patter_process.py | 17 | 0.516364 | 0.497754 | 0 | 170 | 26.470588 | 115 |
Maxim0912/facilities | 4,200,478,054,885 | 8d992292cfb993debec9f0189d6d3b79d585218b | 39bc04f5e366920fdf467a591dfc2d1e23b0894d | /services/data_pars.py | cc747d1aba799eb6e3b6aaff22217e1866c8d5e3 | [] | no_license | https://github.com/Maxim0912/facilities | faa38677f22beaaccf1e54768411b2d0bba3c22b | c33b3157bf6bd3b371e499a2e8618a6d3d7f7215 | refs/heads/main | 2022-12-28T10:04:12.288729 | 2020-10-14T16:56:59 | 2020-10-14T16:56:59 | 304,079,012 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import requests
from bs4 import BeautifulSoup
import csv
def get_html(url):
try:
result = requests.get(url)
result.raise_for_status()
return result.text
except(requests.RequestException, ValueError):
print('Сетевая ошибка')
return False
def get_nutritives():... | UTF-8 | Python | false | false | 1,668 | py | 22 | data_pars.py | 21 | 0.547954 | 0.545396 | 0 | 52 | 29.076923 | 76 |
hsgrewal/algorithms | 18,631,568,135,567 | b55ac3811aef807dc3b2dc076ad0db01aad9525e | 4159244962c209fb5815945a5622335e13db1a88 | /algorithmic-toolbox/week2_algorithmic_warmup/3_greatest_common_divisor/gcd.py | 94d731e4d085a8f181195033bcddf50d9f5389d7 | [
"MIT"
] | permissive | https://github.com/hsgrewal/algorithms | 19be02ee4fa427dbf6f091507d21f3d8529fdacc | b7532cc14221490128bb6aa12b06d20656855b8d | refs/heads/main | 2023-04-22T04:16:35.639385 | 2021-05-07T03:33:31 | 2021-05-07T03:33:31 | 354,602,945 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Uses python3
import random
def gcd_naive(a, b):
current_gcd = 1
for d in range(2, min(a, b) + 1):
if a % d == 0 and b % d == 0:
if d > current_gcd:
current_gcd = d
return current_gcd
def gcd_fast(a, b):
if b == 0:
return a
rem = a % b
return gcd... | UTF-8 | Python | false | false | 795 | py | 13 | gcd.py | 12 | 0.530818 | 0.444025 | 0 | 34 | 22.382353 | 61 |
doorsas/rustusgid10 | 13,795,434,964,602 | d5598900e68f113d7e001ba81e45faa7ff9de5cd | 8687628d4be20c1261bf004ea035727081ea8918 | /technikosnuoma/models.py | d1c763cc2c85361fc69fb1d8f30180050086e376 | [
"MIT"
] | permissive | https://github.com/doorsas/rustusgid10 | c4bb7d362cee08187485f2852305a2b8b9909cf5 | 6f1cfc16328ebb8a54590a327d7153fcfd487cf8 | refs/heads/master | 2023-03-14T07:41:12.036514 | 2021-03-07T10:08:14 | 2021-03-07T10:08:14 | 341,577,969 | 0 | 0 | NOASSERTION | false | 2021-03-04T10:20:21 | 2021-02-23T14:17:14 | 2021-03-04T09:35:28 | 2021-03-04T10:20:21 | 18,232 | 0 | 0 | 0 | HTML | false | false | from django.db import models
from accounts.models import CustomUser
from django.urls import reverse
class Technika(models.Model):
title = models.CharField(max_length=255,verbose_name= 'Antraštė')
title_tag = models.CharField(max_length=40,blank=True, verbose_name= 'Antraštės trumpinys')
kategorija = model... | UTF-8 | Python | false | false | 1,317 | py | 40 | models.py | 25 | 0.704805 | 0.678871 | 0 | 31 | 41.225806 | 95 |
grzeprza/GitCommitMsgAnalyzer | 12,618,613,938,699 | 62a83f0934a222891a31dbdec24eab9650888890 | 7022dc62092e3a6322e6edd1efcc47fbc6162c0d | /NLPmodule.py | 0539213be41be3265e91db2f0b74a0890cd45431 | [] | no_license | https://github.com/grzeprza/GitCommitMsgAnalyzer | e4fe21fb5a1c8d9d1b7511c01b3fba40cfbf7d7b | f78ceffa0003d74d14f265eced48a7f9359a7bd4 | refs/heads/master | 2020-03-19T10:26:03.000136 | 2018-07-02T17:59:18 | 2018-07-02T17:59:18 | 136,362,883 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from tokenize import group
import nltk
# nltk.download('punkt')
# nltk.download('averaged_perceptron_tagger')
def groupPartOfSpeech(tag):
puntuaction = (".", ",", "?", "!", "'", "\"", ":", ";", "...", "[", "]", "(", ")", "#", "''", "`", "``")
if str(tag).startswith(puntuaction):
return '.'
if str... | UTF-8 | Python | false | false | 2,042 | py | 10 | NLPmodule.py | 10 | 0.581783 | 0.574927 | 0 | 72 | 27.361111 | 197 |
MobilityTechnologies/bqdesc_backupper | 13,099,650,266,679 | b747ed0623b2a8c3191c730392a1b2aa80ce3346 | ddf1aea889a45d1d767bd0c186c50828b675cd62 | /src/main.py | 4bc5fb3da1f92f30f8c575c854abe0af039a2957 | [
"MIT"
] | permissive | https://github.com/MobilityTechnologies/bqdesc_backupper | c418c80531c452b3215c751d637dc61e138c707d | e81ea72da7d5f82fc3c4c44677beb5d20243d7c0 | refs/heads/master | 2023-07-05T15:23:42.007413 | 2020-02-05T05:35:17 | 2020-02-05T05:35:17 | 228,724,144 | 0 | 1 | MIT | false | 2021-08-13T06:26:09 | 2019-12-18T00:17:04 | 2021-07-08T03:38:03 | 2021-08-13T06:26:09 | 50 | 0 | 1 | 1 | Python | false | false | import logging
import os
import sys
app_home = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(os.path.join(app_home, "lib"))
sys.path.append(os.path.join(app_home, "conf"))
# load config
from conf.config import Config
config = Config()
# load library
from lib.controller im... | UTF-8 | Python | false | false | 2,915 | py | 23 | main.py | 17 | 0.639108 | 0.63705 | 0 | 83 | 34.120482 | 84 |
rustyworks/100-days-of-code | 16,484,084,484,970 | c309004ab464704b7a7e567c1c6eb5962699350a | cb5461f6143374d151280debf65965b7c67c5df8 | /fractal/fractal.py | ba334453ec7f4fb345ab8bad071b1e240d332f83 | [
"MIT"
] | permissive | https://github.com/rustyworks/100-days-of-code | f8b302afad5c64fac852d046f51cb657b5abec1b | 4f45f67a3bd1659f85d1a9ca0d68a5ba8aad1240 | refs/heads/master | 2021-01-02T08:30:08.769806 | 2018-07-23T02:44:14 | 2018-07-23T02:44:14 | 99,013,586 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from turtle import *
class Fractal():
def __init__(self):
shape('turtle')
speed(5)
color('blue', 'turquoise')
def draw(self):
begin_fill()
sharp_counter = 1
dull_counter = 0
is_dull = False
while True:
if is_dull:
d... | UTF-8 | Python | false | false | 977 | py | 12 | fractal.py | 5 | 0.400205 | 0.380757 | 0 | 48 | 19.354167 | 38 |
Aptitudetech/awsadmin | 8,229,157,346,754 | 66f039db01b56708941429cde82a3a75606c158d | 1ff5b4c34000542a570a01a537ac442000a61ec0 | /usr/share/python-stanford-awsadmin/scripts/describe_elb.py | abdd5c03b9fffd9e0f12b0cd459b0f392678e143 | [] | no_license | https://github.com/Aptitudetech/awsadmin | a59068c399ebaf3fe3d740ec795b9faeb4979c3c | a91b45c339cc2757d0c2044f24f809d183b74ca4 | refs/heads/master | 2020-03-21T03:03:40.432872 | 2018-08-09T04:24:51 | 2018-08-09T04:24:51 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
#
# Copyright 2014
# The Board of Trustees of the Leland Stanford Junior University
"""Describe load balancer
This script describes a load-balancer.
Options:
-n, --name=<value>
load-balancer name.
-h / --help
Print this message and exit
... | UTF-8 | Python | false | false | 2,324 | py | 30 | describe_elb.py | 29 | 0.563253 | 0.550775 | 0 | 91 | 24.538462 | 72 |
abogaevski/washing-app | 16,355,235,481,948 | 38e296e35ad170ecb54808845f85f187b3257c95 | 9be76772fe6fa9477b6712882bc34c9d99eae094 | /app/migrations/0021_epospayment_payment_id.py | 8a5ec4c3c981bfced2d1e941ef56ab4a0f895871 | [] | no_license | https://github.com/abogaevski/washing-app | 48afd97d3746a0a877914b4125f05c0387627d99 | 5db6d1c29c7d6b69371b8dbe9f6c4c457b0b9a55 | refs/heads/master | 2022-04-10T15:18:46.682973 | 2020-03-17T08:01:31 | 2020-03-17T08:01:31 | 202,484,273 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.2 on 2019-12-19 09:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0020_auto_20191213_1452'),
]
operations = [
migrations.AddField(
model_name='epospayment',
name='payment_id',
... | UTF-8 | Python | false | false | 483 | py | 93 | 0021_epospayment_payment_id.py | 52 | 0.601266 | 0.531646 | 0 | 19 | 23.947368 | 101 |
sabal202/python_examples | 19,327,352,832,445 | 51ccf80badd0a91c91d0a26c2953ad403304d187 | 9e518397a2cff3778f9dd878cda1ce21fb07625f | /VOOH(VseSib)/2017-2018/otbor1/A_estafeta.py | f0db987760a07ef284280d44fae41f113ec70c43 | [] | no_license | https://github.com/sabal202/python_examples | 24f8e2f5ff739bdfc0d1289df92340fe9af4df7c | 3149c0a7bbef2468af6b41547285b483634bd54b | refs/heads/master | 2021-09-15T06:06:19.101712 | 2018-05-27T14:56:26 | 2018-05-27T14:56:26 | 106,803,273 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys, codecs
save_stdin = sys.stdin
save_stdout = sys.stdout
sys.stdin = codecs.open("input.txt", "r", "utf-8")
sys.stdout = codecs.open("output.txt", "w+")
N, I = list(map(int, input().split()))
# TODO decrease time
times = []
for __ in range(N):
times.append(list(map(int, input().split())))
#
# times2 = [... | UTF-8 | Python | false | false | 886 | py | 98 | A_estafeta.py | 92 | 0.525959 | 0.505643 | 0 | 35 | 24.314286 | 54 |
linrakesh/python | 5,128,190,990,591 | 4bafeec48d8bdf50358e88d83e28ab049c587c5e | f2d2122c3b304e123e1b366d5a0ac45eaae4ac10 | /webscraper/first.py | 817f08f7fabc2a5e0f5725ea0a13a40c099b33a0 | [] | no_license | https://github.com/linrakesh/python | 5f4de9b49ab942b912aeecf6a97ea92b372db5ed | a27ee070aab2c8f8f147aa58538156385f1debe9 | refs/heads/master | 2021-06-14T17:43:55.855566 | 2021-02-03T08:12:53 | 2021-02-03T08:12:53 | 129,482,333 | 1 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
res = requests.get('https://automatetheboringstuff.com/files/rj.txt')
#print(res.text)
file = open("abcd.txt","w")
file.write(res.text)
file.close() | UTF-8 | Python | false | false | 164 | py | 303 | first.py | 280 | 0.737805 | 0.737805 | 0 | 6 | 26.5 | 69 |
FoosN/generic_bricks | 19,628,000,571,437 | 66960c1f342cca4650feb272e6611487c6285965 | 33f8b111094cd27e0e6acc19319295f0ca1072fe | /TestWalkinDir.py | 77dbac12dcdbe43d08ca2d180de5fe5852928755 | [] | no_license | https://github.com/FoosN/generic_bricks | 711ab1ce62e3a859565e502c7871248da21792cb | 10b8679caeecd63f190a34399c5b15780991ec2a | refs/heads/master | 2021-01-17T08:29:35.813079 | 2016-07-01T14:12:00 | 2016-07-01T14:12:00 | 22,097,245 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 7 15:51:06 2016
@author: foos
"""
import sys
import os
maninput_files = []
for arg in sys.argv[1:]:
path= os.path.abspath(arg)
for root, dirs, files in os.walk(path):
for filename in files:
if filename == "GXPARM.XDS":
maninput_files.append(o... | UTF-8 | Python | false | false | 413 | py | 5 | TestWalkinDir.py | 5 | 0.617433 | 0.585956 | 0 | 18 | 22 | 63 |
HarshaVardhan-Kaki/DP-1 | 12,094,627,916,564 | 3b15ec6298af0b98b6a31d8e013a10ed414777cd | 16d71371ef3fdf656468d5f229bec93c7ba02c98 | /house_robber.py | 4c5507d646c39a2584ffb5381abc1e676cc16822 | [] | no_license | https://github.com/HarshaVardhan-Kaki/DP-1 | 3e205f50f2f1f356485d48550cbc8c616294c2ec | 71f1111f95f528558f29b0a6bca176a2ffad7756 | refs/heads/master | 2023-02-26T03:56:35.106435 | 2021-02-05T20:32:47 | 2021-02-05T20:32:47 | 297,878,790 | 0 | 0 | null | true | 2020-09-23T06:46:56 | 2020-09-23T06:46:55 | 2020-06-29T01:28:39 | 2020-09-23T05:19:47 | 3 | 0 | 0 | 0 | null | false | false | # O(N) TIME AND O(1) SPACE WHERE N IS LEN(NUMS)
class Solution:
def rob(self, nums: List[int]) -> int:
if len(nums) == 0:
return 0
if len(nums) == 1:
return nums[0]
nonAdjacentSum = nums[0]
adjacentSum = max(nums[0],nums[1])
for i in range(2,l... | UTF-8 | Python | false | false | 511 | py | 2 | house_robber.py | 2 | 0.536204 | 0.518591 | 0 | 15 | 32.533333 | 66 |
marazmiki/django-users | 5,609,227,327,539 | c95f6d5aec666e46c91e6d783830e9b2abe9bb17 | bb630e876278b25659dc70a74ed5efe46ecea4ff | /setup.py | a51c273191eeddac2d2b2b981cb8049d088e3dc1 | [] | no_license | https://github.com/marazmiki/django-users | cba476c3aa1ce4ab3078a17e510a3cfa5e52b7a5 | ee7d775f5f65cbe43a163bca20a16ae0fa8e7b0a | refs/heads/master | 2020-05-30T11:51:50.089242 | 2012-03-13T02:33:30 | 2012-03-13T02:33:30 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import setuptools
import django_users
def rel(*x):
return os.path.normpath(os.path.join(os.path.dirname(__file__), *x))
PACKAGE_NAME = 'django-users'
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended ... | UTF-8 | Python | false | false | 1,288 | py | 32 | setup.py | 26 | 0.628106 | 0.624224 | 0 | 41 | 30.365854 | 124 |
sbalan7/charting-Gaia | 7,395,933,730,070 | 712c0383d93051236f6dcac595eebe11fd18bd2b | d61d157167e5a32f158ee21777a82cf3a040b316 | /central_density.py | 4f809eed8577a19e33494070a918b4d5731e9c7e | [] | no_license | https://github.com/sbalan7/charting-Gaia | b84f1780931e89a9b465a5e0563c3dbeb125e6f5 | 8cee27c610c8091769eddeab1d6f39ab8a3e1301 | refs/heads/main | 2023-04-12T09:43:03.427474 | 2021-05-07T18:06:47 | 2021-05-07T18:06:47 | 325,546,281 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from utils import find_mass_fn, plot_cmd, load_data
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import json
import os
with open('select.json') as f:
data = json.load(f)
for cluster_name, subdata in data.items():
if subdata['cluster_r'] == 0:
continue
path = os.getc... | UTF-8 | Python | false | false | 1,778 | py | 20 | central_density.py | 12 | 0.609674 | 0.6018 | 0 | 44 | 39.318182 | 123 |
hrk-fujii/LAMP | 4,277,787,455,043 | d84f9474ed9f95e0c73eb1e6c080f8ce36ec2bb1 | 35a4d8fa522cbfb55b9bc6c566bf5b5f0065152a | /views/loadErrorDialog.py | 3468b855308f250bb697703f1fb59d908f747476 | [] | no_license | https://github.com/hrk-fujii/LAMP | e883b8e058e1d9de893d190a6c62eb995687d112 | 34e2f77da36ac78fa480dc92fbadd7cdb5c61c31 | refs/heads/master | 2021-04-07T17:09:33.378914 | 2021-03-10T06:59:55 | 2021-03-10T06:59:55 | 248,692,433 | 3 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# load error dialog
# Copyright (C) 2020 Hiroki Fujii <hfujii@hisystron.com>
import wx
import os
import globalVars
import fxManager
import views.ViewCreator
from logging import getLogger
from views.baseDialog import *
def run(errorList, notFoundList):
if globalVars.app.config.getboolean("n... | UTF-8 | Python | false | false | 2,218 | py | 70 | loadErrorDialog.py | 62 | 0.650672 | 0.644434 | 0 | 55 | 36.872727 | 176 |
CuiHaoXuan/EMBERS | 10,531,259,848,702 | 126162c33b88498d25974d543771945d8558e2cc | dea096f745595870170058b5b7025e6939a22946 | /src/embers/kindle/waterfall_single.py | d5222ba1199a889808d7968c8f65768e391093ce | [
"MIT",
"Python-2.0"
] | permissive | https://github.com/CuiHaoXuan/EMBERS | f105da50d146c0e968c34b3df23a277054d8e830 | f9e8de353e7eddf28ed715c01d7d3fb5336f0f18 | refs/heads/master | 2023-02-10T22:48:31.112214 | 2021-01-05T11:07:54 | 2021-01-05T11:07:54 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Waterfall Single
----------------
"""
import argparse
from pathlib import Path
from embers.rf_tools.rf_data import single_waterfall
def main():
"""Saves a single waterfall plot with a raw RF data file using the :func:`~embers.rf_tools.rf_data.single_waterfall` function.
.. code-block:: console
... | UTF-8 | Python | false | false | 1,144 | py | 110 | waterfall_single.py | 76 | 0.603147 | 0.561189 | 0 | 46 | 23.869565 | 130 |
snpster/hawkthorne-journey | 7,997,229,148,669 | bbb8df26f58311a8d1c44da57d1f1c96f2325085 | d97fd246c7d9819a63e469e05f3ae847d88a04e6 | /scripts/generate_travis.py | fb00fbe10e5580b53085976441231e89cfa2672f | [
"MIT",
"CC-BY-NC-3.0"
] | permissive | https://github.com/snpster/hawkthorne-journey | e9bd50f2c249e1a674258cb73a72df495afe631d | 123632f84602f34b51fc514106fdde2d296ebc15 | refs/heads/master | 2021-01-18T08:56:47.075871 | 2018-12-26T09:08:58 | 2018-12-26T09:08:58 | 4,634,571 | 0 | 0 | MIT | true | 2018-12-26T09:08:59 | 2012-06-12T07:45:13 | 2013-01-09T15:30:26 | 2018-12-26T09:08:58 | 18,625 | 1 | 0 | 0 | Lua | false | null | import os
import jinja2
import subprocess
ENVVARS = [
'MIXPANEL_TOKEN',
'AWS_ACCESS_KEY_ID',
'AWS_SECRET_ACCESS_KEY',
'BRITTA_BOT_USER',
'BRITTA_BOT_PASS',
'BRITTA_BOT_ACCESS_SECRET',
'BRITTA_BOT_CONSUMER_SECRET',
]
def encrypt(variable):
return subprocess.check_output(['travis', 'en... | UTF-8 | Python | false | false | 547 | py | 585 | generate_travis.py | 18 | 0.645338 | 0.641682 | 0 | 27 | 19.259259 | 96 |
Nafisa-Tasneem/Problem-solving | 5,403,068,877,739 | 6ae24a1f315bbb5bdb3e789e4944e2059bbc0b71 | 97ea3634bf20946565190fd56b1332861714296e | /practice.py | ec8569d41b83435a607de8f58ebe5ca2808bcac3 | [] | no_license | https://github.com/Nafisa-Tasneem/Problem-solving | 7fd45172115ae90e2b082f4d7dfddfcfb413a714 | 0817544331203fab0b3a9fecfa3c633804930087 | refs/heads/master | 2022-12-15T15:08:05.010674 | 2020-09-12T14:25:08 | 2020-09-12T14:25:08 | 285,991,249 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
class student:
def __init__(self, initial_name, roll):
self.name = initial_name
self.roll = roll
def get(self):
print (self.name)
print (self.roll)
def changename(self, newname):
self.name = newname
a = student('Nafisa', 1509032)
a.get()
b = student('Tahia', 10000)... | UTF-8 | Python | false | false | 361 | py | 46 | practice.py | 44 | 0.573407 | 0.537396 | 0 | 17 | 20.058824 | 43 |
Naavi/onme | 19,696,720,020,585 | 1be5719d611e472e0c52d7e36759bab92cde1115 | 88e3996172f2b342485319ab3388b897289c2deb | /api/urls.py | 50479683bf0efd79801970f9d4b9902c2f19ba80 | [] | no_license | https://github.com/Naavi/onme | 8e2418981740f9f4e32d08596ce9dabb8d0bdc79 | c06541674fee97583dd7b0ab23343ee83964b4fc | refs/heads/master | 2018-02-25T18:45:35.641636 | 2014-01-16T17:41:55 | 2014-01-16T17:41:55 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
url(r'^1.0/', include('api.v1_0.urls')),
url(r'^', 'api.views.version', name='version')) | UTF-8 | Python | false | false | 176 | py | 27 | urls.py | 24 | 0.647727 | 0.625 | 0 | 5 | 34.4 | 51 |
auvsi-suas/interop | 12,386,685,699,261 | 6909b51a0c3eead713f1404635b65e47212368ab | 6c487f2bf31bc489b80446e754dd249a22ae0395 | /server/auvsi_suas/models/takeoff_or_landing_event_test.py | 1f799f86a047454761bc14a41fe918a12d055c6a | [
"Apache-2.0"
] | permissive | https://github.com/auvsi-suas/interop | 87fb2a36ac89dc323db4cc25a3812279691f6626 | 7453c89b155b40dc4b36ce2237efb7e2f7393422 | refs/heads/master | 2022-06-20T23:44:45.101421 | 2022-06-04T21:09:55 | 2022-06-04T21:09:55 | 42,521,702 | 179 | 111 | Apache-2.0 | false | 2022-06-04T21:09:56 | 2015-09-15T13:38:54 | 2022-06-04T11:08:31 | 2022-06-04T21:09:55 | 50,448 | 144 | 80 | 2 | Python | false | false | """Tests for the takeoff_or_landing_event module."""
import datetime
from auvsi_suas.models.aerial_position import AerialPosition
from auvsi_suas.models.gps_position import GpsPosition
from auvsi_suas.models.mission_config import MissionConfig
from auvsi_suas.models.takeoff_or_landing_event import TakeoffOrLandingEven... | UTF-8 | Python | false | false | 8,462 | py | 128 | takeoff_or_landing_event_test.py | 95 | 0.637202 | 0.599858 | 0 | 231 | 35.632035 | 76 |
stefan-wolfsheimer/py-socket-server | 17,798,344,507,635 | c243c2107f6b27bd3537a63abc6f2176c33a777e | 71c953587964eb6a85c6a391c5ef805f261d5c6f | /setup.py | 69d556e042765b20e2707900b7f55298c14b4f52 | [
"Apache-2.0"
] | permissive | https://github.com/stefan-wolfsheimer/py-socket-server | b2dfdbbe36c92999f53600d2fbe0cf1be811fec3 | ab2230af0b403f7514d507fc265beef198637099 | refs/heads/master | 2020-03-27T13:29:16.490838 | 2018-09-12T12:27:13 | 2018-09-12T12:27:13 | 146,612,446 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(name='py-socket-server',
version='0.1',
description='Framework for a Unix Domain Socket based daemon application',
author='Stefan Wolfsheimer',
author_email='s.wolfsheimer@surfsara.nl',
packages=['socket_server'],
install... | UTF-8 | Python | false | false | 334 | py | 6 | setup.py | 5 | 0.682635 | 0.676647 | 0 | 11 | 29.363636 | 80 |
shellox/bcfg2 | 14,568,529,096,362 | c6d2e7f461caa05f82384266c22803eac25508a9 | c7e63558317db96d7a806b824b28235787fc00a8 | /src/sbin/bcfg2-info | ac4c3af138c187c3c92c86c408ebf0f8f6337e2a | [
"mpich2",
"BSD-2-Clause"
] | permissive | https://github.com/shellox/bcfg2 | ae53a5c3cdc3e171e4b1d5a200f8f8d14624d454 | a8f39eaee5ba711862df619639fcc48519a14103 | HEAD | 2017-04-30T02:44:52.234378 | 2013-04-25T15:26:48 | 2013-04-25T15:26:48 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
"""This tool loads the Bcfg2 core into an interactive debugger."""
import os
import re
import sys
import cmd
import getopt
import fnmatch
import logging
import lxml.etree
import traceback
from code import InteractiveConsole
import Bcfg2.Logger
import Bcfg2.Options
import Bcfg2.Server.Core
import ... | UTF-8 | Python | false | false | 28,048 | 117 | bcfg2-info | 89 | 0.519609 | 0.514154 | 0 | 788 | 34.593909 | 79 | |
tomysky/scrapy-project | 627,065,244,001 | 43edde73e505253d63de374fdc265502cb1af1d3 | 355f6bfb6eceddb9fbfdfbbbbaa59886b51464c6 | /tencent/tencent/spiders/hr.py | 23bbfe3b9c7ca48359de2e410023bfe0525e50c2 | [] | no_license | https://github.com/tomysky/scrapy-project | a627c89956f93b0c4e6517e4bc66367e35ed9523 | ffe15bea438376410cd061d6d36e61f6b5576b92 | refs/heads/main | 2023-05-08T07:10:33.621802 | 2021-05-30T21:29:06 | 2021-05-30T21:29:06 | 371,614,692 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import scrapy
from tencent.items import TencentItem
from copy import deepcopy
import time
class HrSpider(scrapy.Spider):
name = 'hr'
allowed_domains = ['tencent.com']
start_urls = []
#自定义第一次请求的api
def start_requests(self):
url = "https://careers.tencent.com/tencentcareer/api/post/Query?time... | UTF-8 | Python | false | false | 3,708 | py | 10 | hr.py | 9 | 0.622856 | 0.590758 | 0 | 71 | 49.901408 | 280 |
WunschK/flat_search_automation | 4,269,197,525,747 | d0d55e4c1a92f1fb40c46c7d5cbe4a7a7db3afee | af71b2921537bf63ac2feedefafab6692edb4b24 | /main.py | 6b5f6e071b4ee0b8d511f020b90069bd108a976d | [] | no_license | https://github.com/WunschK/flat_search_automation | 6d1990e1290d390021779765c1c13e2464c0d7ad | 24bb2a8340cab6d0f5f620a305f71bce33a3d3ec | refs/heads/master | 2023-03-24T13:37:18.439336 | 2021-03-15T12:51:46 | 2021-03-15T12:51:46 | 335,703,878 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # This is my main file
# v0.5 Everything in main.py
# Roadmap v1.0 scraping OOP everything
import time
import requests as r
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
where = "https://www.openrent.co.uk/properties-to-rent/soho-north-west-london... | UTF-8 | Python | false | false | 2,439 | py | 2 | main.py | 1 | 0.689627 | 0.666257 | 0 | 75 | 31.52 | 177 |
pingf/go-raml | 214,748,412,278 | 08ff5ba7d903c69f75a26b3dfc408d032eea5308 | 2f2e4b709a326aaf744b412cf963dfa5428f8f9c | /docs/tutorial/python/client/client.py | c5372cc9fea6c58118659b3bd029b63513a72a99 | [
"BSD-2-Clause"
] | permissive | https://github.com/pingf/go-raml | bb848eabe5c4ad6b8c40d0f6087977304d3cb124 | 0a7662c0b14c0f47e290a59b64b3dfd94b26c233 | refs/heads/master | 2020-06-30T23:34:35.704908 | 2016-11-18T14:28:51 | 2016-11-18T14:28:51 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
BASE_URI = "http://localhost:5000"
class Client:
def __init__(self):
self.url = BASE_URI
self.session = requests.Session()
self.auth_header = ''
def set_auth_header(self, val):
''' set authorization header value'''
self.auth_header = val
def ... | UTF-8 | Python | false | false | 1,467 | py | 24 | client.py | 12 | 0.5985 | 0.595774 | 0 | 50 | 28.34 | 81 |
Deepomatic/dmake | 11,364,483,480,210 | d6cf438ebde3b78214b1af44c724aa1b9ab0b41b | 95653a12deff429bf7a2d3e9ee63dd41f6b0f9aa | /dmake/cli.py | dd2dd5192cd4fd7d6f546ad2523557db8f0deb32 | [
"MIT"
] | permissive | https://github.com/Deepomatic/dmake | 488ef5acfb7db80602c5eca6995400096d8e9c73 | ce274178a03751ff204e15b6ab65b3f2174b9ae7 | refs/heads/master | 2023-07-24T10:56:28.646848 | 2023-03-02T15:42:59 | 2023-03-02T15:42:59 | 73,611,438 | 39 | 4 | MIT | false | 2023-07-05T23:23:37 | 2016-11-13T11:27:21 | 2022-12-14T22:39:16 | 2023-07-05T23:23:35 | 1,606 | 38 | 3 | 123 | Python | false | false | import sys
import os
import argcomplete
import argparse
import dmake.commands as commands
import dmake.core as core
import dmake.common as common
def check_is_git_repo():
try:
common.run_shell_command('git rev-parse --abbrev-ref HEAD')
return True
except common.ShellError as e:
common.... | UTF-8 | Python | false | false | 7,678 | py | 133 | cli.py | 81 | 0.726752 | 0.726622 | 0 | 120 | 62.983333 | 324 |
sedativo/movie-trailer-page | 8,091,718,426,015 | 2a37a6dfd20473893707c6d42425a5127624ce04 | 0a99cafb5e30d4d42de088b2abc64eebcb91aed4 | /app/bootstrap.py | 9fe7f91fbd7bd19686a89827dfa62de522082c92 | [] | no_license | https://github.com/sedativo/movie-trailer-page | 2ea3bfb001f8ed869d1940922c1f284bb80382f1 | 6f859458376c46f32c2d9e9d643f3d762262777a | refs/heads/master | 2016-09-21T17:29:23.814942 | 2016-09-08T01:51:59 | 2016-09-08T01:51:59 | 67,657,072 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import api
import fresh_tomatoes
import media
import time
def create_movies_array(data):
movies = []
for item in data:
# add domain and api key to poster_path
image_url = api.API_IMAGE_URL+'w342//'+item['poster_path']+'?'+api.API_KEY
# add domain and api key tp backgroun... | UTF-8 | Python | false | false | 1,683 | py | 5 | bootstrap.py | 4 | 0.636364 | 0.634581 | 0 | 46 | 35.586957 | 93 |
rd11490/NBA_Tutorials | 8,358,006,397,793 | a5641957b483283a8da1e7354f7ccd23ab6d42d0 | 9ecbe4f1ad7dde4d57cd73e3fef1c289cb384422 | /small_sample_rapm/adjust_possessions_21_22.py | 4a9257d7d57bb61eb93f23b8673c5710a6abdaf7 | [
"MIT"
] | permissive | https://github.com/rd11490/NBA_Tutorials | a13dc8cd78a563b794f1073cb7c140688ea1a443 | e5cd532329cb0e78fdf255b0d1cee7f8e1816506 | refs/heads/master | 2022-09-25T17:42:56.084654 | 2022-09-09T22:47:43 | 2022-09-09T22:47:43 | 163,886,452 | 150 | 44 | MIT | false | 2022-09-09T22:47:44 | 2019-01-02T20:29:40 | 2022-08-24T17:43:13 | 2022-09-09T22:47:43 | 67,828 | 124 | 37 | 3 | Python | false | false | import pandas as pd
# Display options for printing padas Dataframes
pd.set_option('display.max_columns', 500)
pd.set_option('display.max_rows', 500)
pd.set_option('display.width', 1000)
# Change a missed 3 in the first quarter into a made 3 in the second quarter
def change_possessions(group):
# take the team id ... | UTF-8 | Python | false | false | 1,605 | py | 101 | adjust_possessions_21_22.py | 36 | 0.702804 | 0.666667 | 0 | 41 | 37.926829 | 144 |
blodemaster/knee | 10,703,058,543,693 | 9824c977be6613bb6aa01d37dac95020a7a3d5bd | ec6fbcff7399d1d24cebe31079faf3407a9a2df9 | /generate_mask.py | 05a13a73f4f0840d03d74fe3aff3f51afae64939 | [] | no_license | https://github.com/blodemaster/knee | d9713b1fce284ba05da39aa70c4b7fe39d2d44d1 | f64c13da7953c774b72a4605e0c177a0e27e9bdf | refs/heads/master | 2021-07-17T19:53:48.900135 | 2017-10-20T10:12:39 | 2017-10-20T10:12:39 | 107,658,238 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from sampling import create_boundary
from file_operation import find_corresponding_file_path
import scipy.io as sio
import glob, os
label_name = 'MedialTibialCartilage'
target_paths = glob.glob('valid_data/*.mat')
output_dir = 'valid_mask/'
if not os.path.exists(output_dir):
os.mkdir(output_dir)
for path in tar... | UTF-8 | Python | false | false | 648 | py | 11 | generate_mask.py | 10 | 0.692901 | 0.688272 | 0 | 27 | 23 | 64 |
jasondu7297/Ecotracker | 8,280,696,946,737 | 075157ae621e083dcd4d54cebe204a5a3bc1d6c7 | fa5286245686180a2dd9d3878289c9ccf41b112a | /Ecotracker/main/models.py | b72ee5529fc77e2d73db906cce3bf6bfc4b7ea38 | [] | no_license | https://github.com/jasondu7297/Ecotracker | 492ec4431860c7abb4a5f85b828e9d88e3be55bb | 6460365bcda805a191eb6ef047c12a7b59f7e251 | refs/heads/main | 2023-06-05T14:17:51.061070 | 2021-06-27T15:37:02 | 2021-06-27T15:37:02 | 380,476,547 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.db import models
class Automobile(models.Model):
vehicle_type = models.CharField(max_length=255)
combined = models.FloatField()
emission = models.FloatField(default=0)
carbon_rating = models.FloatField()
smog_rating = models.FloatField()
thumbnail = models.CharField(default="https:... | UTF-8 | Python | false | false | 434 | py | 21 | models.py | 10 | 0.75576 | 0.711982 | 0 | 10 | 42.4 | 161 |
vimalkurup/py-practice | 3,315,714,759,397 | f1837858b292c7984d28af96a3dce4b90ff0b760 | 828cd64529ad1917b92cd89cd8b585f721a04a0a | /lesson1/list_range.py | 582bae0b55a180faef9ab12dd28407dae7dfbe53 | [] | no_license | https://github.com/vimalkurup/py-practice | 10a42c0b464f5b2b278b8dd53faf93a30d65ab53 | 6427d36a6e88e1b6be6d1bf1659a2a4b46190a69 | refs/heads/master | 2018-01-11T21:59:10.542132 | 2016-03-22T04:45:20 | 2016-03-22T04:45:20 | 53,025,669 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | this_list = range(10)
print this_list
this_list = list(range(10))
print this_list
this_list = list([0,1,2,3,4,5,6,7,8,9])
print this_list
| UTF-8 | Python | false | false | 141 | py | 15 | list_range.py | 15 | 0.673759 | 0.574468 | 0 | 8 | 16.5 | 39 |
andelgado53/interviewProblems | 9,122,510,577,851 | 910daf75dbcccccd4ca3db6c7cf66441ca6beca2 | 57f0b32efce06681a18cfcc078121947092fc356 | /MergeSort.py | b73c61000aa8bc4c53f4f4692ee3cf9d52838683 | [] | no_license | https://github.com/andelgado53/interviewProblems | 17dd1874f80d5ad166a897d18e5903987698a907 | 984af08366186867c6f339d44b5655c2df8162b6 | refs/heads/master | 2020-05-21T05:16:37.173148 | 2019-09-15T04:40:29 | 2019-09-15T04:40:29 | 185,917,353 | 3 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | data = [5, 3, 4, 1, 9, 7, 8, 2, 6]
def merge_sort(data, start, end):
mid = (start + end) // 2
if len(data[start:end]) > 1:
merge_sort(data, start, mid)
merge_sort(data, mid, end)
left = data[start: mid]
right = data[mid: end]
left_index = 0
right_index = 0
... | UTF-8 | Python | false | false | 1,123 | py | 117 | MergeSort.py | 117 | 0.503117 | 0.484417 | 0 | 35 | 31.057143 | 66 |
BinetReseau/chocapix-server | 13,812,614,853,550 | a3a625a0c0a1e549ee683b0537302fb4580f9029 | 3971b112156883d84d0f437ec81106b3978ffd79 | /bars_core/tests.py | fa2ca908a993cada1aeb8af9d9b06981ebd77a40 | [] | no_license | https://github.com/BinetReseau/chocapix-server | 1b5b56dcf6f33ce4a04f3116e0568f778dd67f9c | 7e464d4398e14b94d5b802bbd73c563639b5f125 | refs/heads/develop | 2020-04-05T03:14:49.689120 | 2017-06-21T18:29:50 | 2017-06-21T18:30:44 | 23,322,367 | 2 | 10 | null | false | 2017-06-07T19:29:25 | 2014-08-25T17:28:55 | 2017-02-20T23:00:42 | 2017-06-07T19:29:25 | 570 | 3 | 6 | 1 | Python | null | null | from rest_framework.test import APITestCase
from bars_django.utils import get_root_bar
from bars_core.models.bar import Bar, BarSerializer, BarSettingsSerializer
from bars_core.models.user import User, UserSerializer
from bars_core.models.role import Role
from bars_core.models.account import Account, AccountSerializer
... | UTF-8 | Python | false | false | 14,877 | py | 77 | tests.py | 67 | 0.656181 | 0.645829 | 0 | 391 | 37.048593 | 103 |
Novandev/fine-web | 5,274,219,849,750 | 5f4a86283c584f3a11fbf845e1b3dbf2aaf92994 | f73875707726e49d79772f3b4555a9d6b1a8a130 | /test_folder/graphanddb.py | 103cd69e71f1df36cd52a4c594a8e9d8dbfec733 | [] | no_license | https://github.com/Novandev/fine-web | 9af52753955159f09c14da20c4bbe6aac28d48b9 | 8e7d80406fb7f80cf5eb5d2cc749ec5818f7c8fc | refs/heads/master | 2022-12-09T22:53:37.162984 | 2018-08-15T09:37:12 | 2018-08-15T09:37:12 | 144,828,454 | 0 | 0 | null | false | 2022-12-08T02:46:22 | 2018-08-15T08:42:32 | 2018-08-15T09:41:54 | 2022-12-08T02:46:21 | 6 | 0 | 0 | 5 | Python | false | false | from py2neo import Graph, Node, Relationship
# the access to the db is at http://localhost:7474/ password is...well ya know
#
#
practice_graph_db_conn = Graph("http://localhost:7474")
print("\n\t\tDatabase has the configuration settings:\n {}\n\n".format(practice_graph_db_conn.database))
practice_graph = practice_gra... | UTF-8 | Python | false | false | 462 | py | 3 | graphanddb.py | 2 | 0.738095 | 0.718615 | 0 | 12 | 37.5 | 104 |
haizhupan/TVDI | 3,676,492,019,947 | 831ca257f15d2f48426d95d62f1e03b1a6e50720 | 901f1503da675ac70e964b3bb36c39e88861e572 | /TVDI.py | 457265adc006ec0ae8955ebe15a3becd30a12fcc | [] | no_license | https://github.com/haizhupan/TVDI | e21bd6f2279f2c8b7071caf1a62dbb01fe7eeea0 | e010031b13ff8835d57d0e170be4c806af89b2ac | refs/heads/master | 2020-04-06T20:25:23.656155 | 2017-06-14T08:15:49 | 2017-06-14T08:15:49 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # TVDI
# Author: Lorena Villano, Leo Kris Palao, and Jorrel Aunario
# Function that will calculate and produce the TVDI values and image, plus graph of the NDVI-LST triangle and scatter plot
"""
Author: Lorie Villano
Revised by: Leo Kris Palao
parameters in the function:
ndviFile - filename of the ndvi image
l... | UTF-8 | Python | false | false | 7,865 | py | 1 | TVDI.py | 1 | 0.664336 | 0.648697 | 0 | 177 | 43.435028 | 140 |
babamba/sideAppServer | 3,856,880,681,239 | 3f9fb6e5c6a263e88d4ffbbd73f1822332eecbb9 | 7958401b2fb438f6bbc518e6b536cc8ec28bd559 | /TodaySalary/notifications/migrations/0006_auto_20190327_0231.py | e3a65e335c6af4ba7035c42515dcd5ed0bfa7028 | [
"MIT"
] | permissive | https://github.com/babamba/sideAppServer | db49a209802b90cbbade70aaa23d0cce1f4c2208 | 607d61cbea9d05fe902b9f8e772bbd9f7baca28c | refs/heads/master | 2022-12-13T12:52:15.944602 | 2019-03-31T03:07:49 | 2019-03-31T03:07:49 | 174,468,137 | 0 | 0 | MIT | false | 2022-12-09T15:04:51 | 2019-03-08T04:19:03 | 2019-03-31T03:08:00 | 2022-12-09T15:04:50 | 8,042 | 0 | 0 | 31 | JavaScript | false | false | # Generated by Django 2.0.9 on 2019-03-26 17:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('notifications', '0005_auto_20181018_1731'),
]
operations = [
migrations.AlterField(
model_name='notification',
name=... | UTF-8 | Python | false | false | 504 | py | 41 | 0006_auto_20190327_0231.py | 35 | 0.609127 | 0.543651 | 0 | 18 | 27 | 145 |
saitou1978/p5 | 14,620,068,724,706 | b68199af70bc81ab0105ecef163dafbe14aacc9d | 17f6de0d564f2ba380058afa8ef82e103975075f | /p5/get_page.py | 778dba3757756896e28df8f3e610c7e35977f596 | [] | no_license | https://github.com/saitou1978/p5 | e4a021823a189fbf9ca7d3eb523a776b8de22336 | 670165cc0fefbd6d20ebe9e2a3956cc2fd32f7c2 | refs/heads/master | 2018-03-24T10:21:09.249263 | 2016-08-08T17:31:19 | 2016-08-08T17:31:19 | 27,379,565 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# python 2.7.8
import sys
import codecs
reload(sys)
sys.setdefaultencoding('utf-8')
import httplib2
import httplib
import urllib2
import lxml.html
import socket
import ssl
import hashlib
from timeout import on_timeout
import time
def handler_func(msg):
print msg # 実際は適切な通知処理を行う
class Ge... | UTF-8 | Python | false | false | 2,610 | py | 6 | get_page.py | 4 | 0.619844 | 0.601167 | 0 | 77 | 32.363636 | 106 |
p-chambers/VAMPzero | 12,163,347,382,878 | 60fe4fb1a1176b620244384d4a8482ad64734287 | 82ca891008793f570668a7f2c760ae0f22d40494 | /src/build.py | 94b0155572bed4f94e07be8791c92c9b11e4649a | [
"Apache-2.0"
] | permissive | https://github.com/p-chambers/VAMPzero | 22f20415e83140496b1c5702b6acbb76a5b7bf52 | 4b11d059b1c7a963ec7e7962fa12681825bc2f93 | refs/heads/master | 2021-01-19T10:49:06.393888 | 2015-06-24T10:33:41 | 2015-06-24T10:33:41 | 82,208,448 | 1 | 0 | null | true | 2017-02-16T17:42:55 | 2017-02-16T17:42:55 | 2016-08-01T05:06:12 | 2015-06-24T10:34:34 | 12,089 | 0 | 0 | 0 | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | UTF-8 | Python | false | false | 11,098 | py | 545 | build.py | 217 | 0.595873 | 0.589025 | 0 | 313 | 34.456869 | 145 |
suppureme/FisherEmbeddingFinal | 2,396,591,784,478 | e024fdeb4454ebd27385e2b9385f9e4c909c6289 | 3facdefca75155161d8a1a1c7ddfaf10f3f2c6fe | /venv/Lib/site-packages/pyluach/hebrewcal.py | bfbe34ecb93dbd05754d59fcfb3d4193c37dfb29 | [
"Apache-2.0"
] | permissive | https://github.com/suppureme/FisherEmbeddingFinal | b0b171c4757e456046224dcdcc3418889dcaccfc | 0d07f09931658c838988c987cd6d8db5376ff715 | refs/heads/master | 2023-07-06T19:47:26.755177 | 2021-08-10T06:04:47 | 2021-08-10T06:04:47 | 394,538,875 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | """The hebrewcal module implements classes for representing a Hebrew
year and month.
It also has functions for getting the holiday or fast day for a given
date.
"""
from collections import deque
from numbers import Number
from functools import lru_cache
from pyluach.dates import GregorianDate, HebrewDate
from pyluach... | UTF-8 | Python | false | false | 17,166 | py | 421 | hebrewcal.py | 49 | 0.540632 | 0.530955 | 0 | 563 | 29.470693 | 79 |
REYGCAETANO/projetoFinalFaculdade | 3,728,031,615,287 | 6971061346825c680292db15cc8547812bb9f1de | 6482f25f0ad31fc6201d4ba5d763c0d2d6a7b6ec | /apps/gradehoraria/migrations/0019_auto_20201111_2104.py | 5fb800cde813b881ec4a9abb174c85c7d2a8968d | [] | no_license | https://github.com/REYGCAETANO/projetoFinalFaculdade | e9b04e24c607e487e69596210d6a933e1f8f57cf | 23ecce465ed98f337ba906090f6c2df2aa4dc130 | refs/heads/master | 2023-01-31T20:48:19.053421 | 2020-12-08T12:45:37 | 2020-12-08T12:45:37 | 303,847,232 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.1.2 on 2020-11-12 00:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gradehoraria', '0018_auto_20201030_2352'),
]
operations = [
migrations.AlterUniqueTogether(
name='gene',
unique_tog... | UTF-8 | Python | false | false | 410 | py | 57 | 0019_auto_20201111_2104.py | 39 | 0.595122 | 0.519512 | 0 | 19 | 20.578947 | 93 |
hiwaylon/tornado-baseline | 9,363,028,756,327 | 3f81b730eef7e3b23d59e054eae5a5e6002fab3e | 091482e7ae622acce3670602d6942c1a47b6461c | /api/handlers/scores_handler.py | e54b55a40931f289aad306bfb6252e8f895510b3 | [] | no_license | https://github.com/hiwaylon/tornado-baseline | 4af0ac84133d0f6c618166207f6f06e65bf7a3f5 | 2280b04ec007fc341e9669b375361c3f682e59d0 | refs/heads/master | 2020-04-19T04:05:32.405132 | 2013-09-19T11:58:46 | 2013-09-19T11:58:46 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Example request handler."""
from tornado import web
from api.handlers import mixins
from api.utils import routes
@routes.route("/api/v1/scores")
class ScoresHandler(web.RequestHandler, mixins.ResourceCreationMixin):
def post(self):
"""Handles requests for diet quality scores."""
request_data ... | UTF-8 | Python | false | false | 594 | py | 16 | scores_handler.py | 15 | 0.680135 | 0.673401 | 0 | 22 | 26 | 70 |
amreshk005/car | 11,493,332,513,749 | a7591b6bb20929f0e103941dd11a25def0d6a96c | 8ee1ec51c3041dc48893f978e20add4e9a8c90b2 | /fixx/car/urls.py | 4f0101f2757ecd6a4e6d10aa6dd9849ec6698bff | [] | no_license | https://github.com/amreshk005/car | dce04b1c8721f0b8a09f15b7e50fdf024a7cb2a9 | 076e52c4d58589fbfdd4f4530ec57726b4934bad | refs/heads/master | 2020-05-01T09:31:09.436211 | 2019-04-30T06:58:20 | 2019-04-30T06:58:20 | 177,402,082 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
from django.urls import path,include
from . import views
app_name='car'
urlpatterns = [
path('',views.register,name='index'),
path('privacy',views.privacy,name='privacy')
]
| UTF-8 | Python | false | false | 185 | py | 8 | urls.py | 5 | 0.686486 | 0.686486 | 0 | 9 | 19.333333 | 48 |
jrodal98/PDF-Packages | 16,011,638,118,181 | c71dbbb85626c1dc6ab0ddc3c73d5afb3ac63e2b | 4e4cb7ac592846f2736f4653646cfb319b7a2e1f | /ScrollableFrame.py | 2704e8be08b83ffe2b14df67efd37b5e51f3231f | [
"MIT"
] | permissive | https://github.com/jrodal98/PDF-Packages | f72fddd10f40fc6db0b0c11d9643d37bb7a50965 | 188e44b24c8e73c23a12e93c806d03adff727e0a | refs/heads/master | 2020-03-21T01:01:11.798176 | 2019-10-27T15:55:34 | 2019-10-27T15:55:34 | 137,920,188 | 0 | 0 | MIT | false | 2019-12-20T02:11:32 | 2018-06-19T16:53:51 | 2019-10-27T15:55:37 | 2019-10-27T15:55:38 | 27,674 | 0 | 0 | 0 | Python | false | false | import tkinter as tk
from tkinter import ttk
class ScrollableFrame(ttk.Frame):
def __init__(self, master):
"""Creates a tk GUI Frame with parameters specified below."""
ttk.Frame.__init__(self, master) # call super constructor
self.master = master # initializing all of the fields
... | UTF-8 | Python | false | false | 1,606 | py | 10 | ScrollableFrame.py | 8 | 0.65193 | 0.620797 | 0 | 31 | 50.83871 | 113 |
kirillmakhonin/kirahhe | 10,797,547,791,118 | 406da26ad40dd530300ccd927ac5a2a6715f900a | cf0bf3cdb24906079c086d29b9a65e64cbbfce3e | /bin/kirahhe | 1ec5758b05459d4623aba5de22afb67ad05fee26 | [
"MIT"
] | permissive | https://github.com/kirillmakhonin/kirahhe | bd7dd07055873b16fdd1651aeab231d9bd1c8ef0 | ee9a7712d795773a4ea7dcf610fc2a0dffff7944 | refs/heads/master | 2020-03-28T06:54:33.795754 | 2018-09-10T12:21:11 | 2018-09-10T12:21:11 | 147,868,603 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
"""
Package's entrypoint
"""
import argparse
import logging
import kirahhe
if __name__ == '__main__':
parser = argparse.ArgumentParser(
description='Process stack trace analyzer')
parser.add_argument('--verbose',
help='verbose log output',
... | UTF-8 | Python | false | false | 1,062 | 3 | kirahhe | 3 | 0.582863 | 0.581921 | 0 | 35 | 29.342857 | 92 | |
SylviaLe/Simple-HTML-Generator | 1,606,317,811,408 | 6b0a0597799e650185834b79a02561031fc5a37d | 5b382cd795905c8869a8a42a6e6d4c0f6a4a673d | /generateHTML.py | 45794e259be1cff3ba847920aec3f0f2e0f92211 | [] | no_license | https://github.com/SylviaLe/Simple-HTML-Generator | 61a809a7d95eb00fa8e8d9ecc82d21a32ee25835 | a845c6979dc2992814d11d35faf1a1bd8d9ee6b8 | refs/heads/master | 2023-05-28T20:17:51.885635 | 2021-06-13T09:03:00 | 2021-06-13T09:03:00 | 340,359,251 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #Sylvia Le, Jack Zimmerman, Hang Nguyen, Melissa Alexander
#Programming Assignment 1
#File: generateHTML.py
#Date: 02-23-2021
#this program will create a helper program for users who do not know how to use HTML
#import libraries. re for regular expression
import re
from random import randrange
import datetime
def wra... | UTF-8 | Python | false | false | 7,936 | py | 6 | generateHTML.py | 1 | 0.571321 | 0.559098 | 0 | 239 | 32.205021 | 125 |
francisss-s/INFO229 | 18,370 | c6dc7da2810d629472d25272f848f6705aabc5f9 | 5255e44333794daaecbf9b07e12ccd2a3630febb | /Tutorial_4_PyTest_TDD/ejercicio1/minimo.py | 1bcebb4ce0afabe43bd06b67a56e4e83296a2d39 | [] | no_license | https://github.com/francisss-s/INFO229 | 5e0a3cb7d9600bf0956005c4ed88058582859d08 | 3ef7e3918949f9a195214042c54320f4434b9573 | refs/heads/main | 2023-02-15T07:49:29.501596 | 2021-01-11T01:56:14 | 2021-01-11T01:56:14 | 311,709,939 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | def get_min(values):
return min(values) | UTF-8 | Python | false | false | 43 | py | 33 | minimo.py | 18 | 0.697674 | 0.697674 | 0 | 2 | 21 | 22 |
z-funfan/opencv-face-recognize | 2,027,224,606,028 | 15f9b18420e3738406cd7df440528f8f16f05f23 | 379928689aa9a5e65c91163caa23272594b40c90 | /my-face-recognize/main.py | aa034d9cb9a55298c0494ae47459c8bb6d1312a4 | [
"MIT"
] | permissive | https://github.com/z-funfan/opencv-face-recognize | d18d5bec1bcc7e62651af86bd038d33fc80c2b2d | 40ce3873cfd74b2a2b7f2c15ce4e39e801d195d2 | refs/heads/master | 2022-12-07T01:28:22.000743 | 2021-05-23T05:53:02 | 2021-05-23T05:53:02 | 204,168,705 | 3 | 0 | MIT | false | 2022-11-22T04:12:45 | 2019-08-24T14:31:29 | 2021-05-23T05:53:04 | 2022-11-22T04:12:44 | 3,140 | 2 | 0 | 5 | Python | false | false | from flask import Flask, render_template, Response
import cv2
import sys
import os
import json
# from faceDetection import detectFaces
from face_detect_v2 import detectFaces
from flow_counting import getCounts
outputPath = 'output/image'
if len(sys.argv) >= 2:
outputPath = sys.argv[1]
resourcePath = ''
cascP... | UTF-8 | Python | false | false | 1,325 | py | 9 | main.py | 5 | 0.681706 | 0.66776 | 0 | 44 | 26.659091 | 75 |
hanzg2014/IT_BOOKS | 9,766,755,655,716 | 8986c796570d075fa2f6f15037967e843f162d5b | 471e6dc0d258b88a1e5e4a6322b8b6da86d2374b | /Effective_Python/example_code/item_14.py | bb00554d6c1d0428da238d8de31de8acff053461 | [] | no_license | https://github.com/hanzg2014/IT_BOOKS | c77e08a5b7b92a39c3f29e88e11a79372a711089 | 233343d58156ddb6966899621fb96bd5785af24d | refs/heads/master | 2021-07-09T14:14:59.221110 | 2017-10-06T12:26:17 | 2017-10-06T12:26:17 | 83,967,488 | 2 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# Copyright 2014 Brett Slatkin, Pearson Education Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | UTF-8 | Python | false | false | 1,955 | py | 908 | item_14.py | 479 | 0.662916 | 0.640921 | 0 | 96 | 19.364583 | 74 |
superstack/nova | 8,134,668,105,670 | cb9a5e34d061e2a06ce9bb44e175077895145cd5 | e97cc0c495fd30d79834053414f4d76a7d015a63 | /nova/tests/api/openstack/test_shared_ip_groups.py | c2bd7e45a1244f46408794630820b01ad51ec9be | [
"Apache-2.0"
] | permissive | https://github.com/superstack/nova | 152b91f98d7c148d41cf085a1c7cde638f52cee9 | 6f3f188e4ca9136f293ecf4b9813a7615c7a5929 | refs/heads/master | 2021-01-19T18:11:36.263062 | 2011-05-24T23:10:40 | 2011-05-24T23:10:40 | 1,328,514 | 1 | 1 | null | false | 2014-03-12T12:24:44 | 2011-02-04T15:53:24 | 2014-02-02T12:48:52 | 2011-05-24T23:15:25 | 52,361 | 5 | 0 | 0 | Python | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | UTF-8 | Python | false | false | 2,289 | py | 57 | test_shared_ip_groups.py | 54 | 0.671909 | 0.653561 | 0 | 64 | 34.765625 | 78 |
iamjackg/md2cf | 549,755,832,141 | 17b5908108071b2d83245515d963846aeab2dab4 | e1e88cebde89d6e2f3a0b4842f21081e6b1e8f8b | /test_package/unit/test_ignored_files.py | ecdcc13a753ae315a323024417e75c30ec801e24 | [
"MIT"
] | permissive | https://github.com/iamjackg/md2cf | 2abcb9ae10fb5dff905e6e5f794534e16c8b6331 | 18c9b1fd186f967b775f87c20c9931fcdface223 | refs/heads/master | 2023-08-18T02:12:25.868751 | 2023-08-06T19:00:51 | 2023-08-06T19:00:51 | 159,075,371 | 80 | 41 | MIT | false | 2023-08-30T13:04:50 | 2018-11-25T21:16:06 | 2023-08-17T17:26:35 | 2023-08-06T19:01:20 | 242 | 74 | 36 | 17 | Python | false | false | from pathlib import Path
from pyfakefs.fake_filesystem import FakeFilesystem
from md2cf.ignored_files import GitRepository
README = """# Title
Lorem ipsum
"""
GITIGNORE = """README.md
"""
ROOT_GITIGNORE = """subdir_root_ignore/README.md
"""
def _create_test_project(fs: FakeFilesystem, root_path: Path):
"""
... | UTF-8 | Python | false | false | 2,829 | py | 27 | test_ignored_files.py | 18 | 0.709791 | 0.709438 | 0 | 78 | 35.269231 | 84 |
mtnsat/ics-release-dids | 15,238,543,993,845 | 48c35d321279a9ff6c02bac31a0f2e0ca53b45dc | d8031842e4a261983dcbeda7e71a8630cceb5c09 | /celery_settings.py | caf52f00e9aa184e714cdafa7018e999099b7bc6 | [
"MIT"
] | permissive | https://github.com/mtnsat/ics-release-dids | 86a0087c1629cf2e9f267e0424846eba685ef515 | 6df32716958bacc000005f61a7acd817a961fe70 | refs/heads/master | 2018-11-24T20:57:17.518793 | 2018-09-17T19:30:53 | 2018-09-17T19:30:53 | 81,139,314 | 0 | 1 | MIT | false | 2018-09-17T19:30:54 | 2017-02-06T22:15:44 | 2018-09-04T17:45:08 | 2018-09-17T19:30:54 | 41 | 0 | 1 | 0 | Python | false | null | import os
accept_content = ['json']
broker_url = os.getEnv('BROKER_URL', 'redis://localhost/0')
result_backend = os.getEnv('RESULT_BACKEND', 'redis://localhost/0')
worker_concurrency = os.getEnv('WORKER_CONCURRENCY', 1)
| UTF-8 | Python | false | false | 222 | py | 28 | celery_settings.py | 14 | 0.711712 | 0.698198 | 0 | 7 | 30.714286 | 67 |
Kaushal54/DRFBharatTherapati | 2,147,483,690,285 | 85552b1b5fdb99d939b9cdb51bf1ffa60972400d | 7d3fcbdaa070586fd04f46cafd4a7761f6347862 | /firstProject/firstApp/task.py | 8a9eca4d50f266af7927bf41a1c2502be2740d01 | [] | no_license | https://github.com/Kaushal54/DRFBharatTherapati | a7bab9e25e299cbfba1ee5d91a7315872fb756e7 | f9ba4839e35643e1917db52104a3b0b85a9ee533 | refs/heads/main | 2022-12-26T06:00:01.964385 | 2020-10-06T21:55:00 | 2020-10-06T21:55:00 | 301,862,375 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def json_response(request,status,status_code,data,message):
response = {
'status':status,
'status_code':status_code,
'data':data,
'message':message
}
return response
| UTF-8 | Python | false | false | 211 | py | 12 | task.py | 12 | 0.592417 | 0.592417 | 0 | 9 | 22.444444 | 59 |
HendwanAbozide/DSP--Task1 | 12,506,944,794,749 | 14d4ebc5bfd90139b980998a431c5c13feccfe5f | a326c1731f6095e309253b7c343853b69901d1eb | /Task1.py | 5734c239d463a188b38f3b1608dce7c828b1261f | [] | no_license | https://github.com/HendwanAbozide/DSP--Task1 | 37bf29b585543c320865ea67b1a500278c6faff4 | e66ef7b462c933d76a7fa355477025b5c59cacbb | refs/heads/master | 2021-01-09T01:33:10.516922 | 2020-02-21T18:26:29 | 2020-02-21T18:26:29 | 242,204,397 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from PyQt5 import QtCore, QtGui, QtWidgets, uic
import os, sys
import numpy as np
import csv
from pathlib import Path
from QTbegin import Ui_MainWindow
import time
import numpy as np
import pandas as pd
class ApplicationWindow(QtWidgets.QMainWindow):
def __init__(self):
super(ApplicationWin... | UTF-8 | Python | false | false | 4,375 | py | 2 | Task1.py | 1 | 0.471086 | 0.462171 | 0 | 140 | 29.25 | 125 |
llooker/looker_deployer | 7,395,933,702,139 | e251a9ef03970f6c65ca871f2680169a1ba2e8ef | 2e46243bef33617c6f83d67ccfab1d1a6367a609 | /tests/test_user_attributes.py | 5edb6716a3397e4f4534f54b14fd81d71e458a63 | [
"Apache-2.0"
] | permissive | https://github.com/llooker/looker_deployer | f8ef521a4ea511c89f5fb2220d2bf63021f8a72b | 552a78d45f1979a6d0dcf93a3dc85e9df41b6995 | refs/heads/main | 2023-08-22T14:02:29.378813 | 2023-07-06T18:43:53 | 2023-07-06T18:43:53 | 232,376,318 | 13 | 8 | null | null | null | null | null | null | null | null | null | null | null | null | null | from looker_deployer.commands import deploy_user_attributes
from looker_sdk import methods40 as methods, models40 as models
class mockSettings:
base_url = "taco"
class mockAuth:
settings = mockSettings()
def mock_responses(responses, default_response=None):
return lambda input: responses[input] \
... | UTF-8 | Python | false | false | 5,329 | py | 35 | test_user_attributes.py | 29 | 0.683055 | 0.673672 | 0 | 133 | 39.067669 | 99 |
Congitron/mapmaker | 9,156,870,324,688 | 36b158b0941c4ed09be21c132dff77e706d7ce8a | bbe17eeaf43cc93c8c5d7e9d6d5e7220344ec952 | /misc/backup.py | 66d64d4845c24329564c372584b81e3e809e72d8 | [] | no_license | https://github.com/Congitron/mapmaker | 0f327fb97d1f47470b5f8a0894cf5f1890b0f9a2 | 2f1c94b75c13dc57f9e979ddf0bd86b817e86dfe | refs/heads/master | 2016-09-05T13:39:37.302603 | 2015-04-01T17:37:39 | 2015-04-01T17:37:39 | 33,154,475 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade 0.6.3 on Tue Apr 6 17:03:54 2010
import wx
import Image
import sys
# begin wxGlade: extracode
# end wxGlade
class MyDialog1(wx.Dialog):
def __init__(self, *args, **kwds):
# begin wxGlade: MyDialog1.__init__
kwds["style"] =... | UTF-8 | Python | false | false | 5,345 | py | 13 | backup.py | 11 | 0.595171 | 0.570653 | 0 | 155 | 33.470968 | 124 |
mfefunk/covid_19 | 12,945,031,451,740 | a4013fd3ba41b5d4fda277dcea3211fe1e834239 | 9488270a786672b912a7e66c422890ff82875d8b | /scrapers/scrape_ge_common.py | 1502992e28cfd29ca6aa1b711e64de9b2adc38c1 | [
"CC-BY-4.0"
] | permissive | https://github.com/mfefunk/covid_19 | bf9dedf55e25de445faddd6af4ee1ef9ebf59345 | c82c0f840628e1d5d0187c0b0a11d0b911c494a6 | refs/heads/master | 2023-02-12T16:02:55.930074 | 2021-01-15T16:02:24 | 2021-01-15T16:02:24 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
import time
from bs4 import BeautifulSoup
import scrape_common as sc
def get_latest_ge_weekly_pdf_url():
return get_ge_weekly_pdf_urls()[0]
def get_ge_weekly_pdf_urls():
d = sc.download('https://www.ge.ch/document/covid-19-bilan-epidemiologique-hebdo... | UTF-8 | Python | false | false | 1,096 | py | 41 | scrape_ge_common.py | 4 | 0.616788 | 0.608577 | 0 | 38 | 27.842105 | 106 |
kaveeshaile/ITP-Project-python- | 14,757,507,660,220 | 34e3edcb0ab24017ab33a725e30436fa0726a829 | 414b2d87d7b96c70641306e41dbce9cb079330b8 | /Voltage/payment/urls.py | e294c0ab89645ce8032b92d7fc1616e605848b08 | [] | no_license | https://github.com/kaveeshaile/ITP-Project-python- | 02e60a14e896aee911b5901db4ce0eec0375bd75 | 0c7d033acb029f600a6c9a2c71d5c01fb1521f96 | refs/heads/master | 2023-01-28T23:42:28.273479 | 2020-12-11T05:46:19 | 2020-12-11T05:46:19 | 320,478,968 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.urls import path
from.import views
urlpatterns = [
path('',views.payment,name = 'payment')
] | UTF-8 | Python | false | false | 117 | py | 93 | urls.py | 59 | 0.65812 | 0.65812 | 0 | 10 | 10.8 | 43 |
javi-gv94/benchmarking-data-model-v0.4 | 15,178,414,426,717 | 971e5ca37f9cc20dc33d185f62ba5ee5c6fa5f03 | 5de3d084e550eade95e0b72e89167014e02305c0 | /TCGA/get_assessment_schemas.py | 7707a75328fb7afd359de0e6acdc6e96a17f8175 | [] | no_license | https://github.com/javi-gv94/benchmarking-data-model-v0.4 | 5e6717bad2178ac28bffe7a71d7542f7551bb83e | c80009f038504bbefb81818f2016033d5043dfbd | refs/heads/master | 2018-11-08T11:44:26.465502 | 2018-08-23T10:51:28 | 2018-08-23T10:51:28 | 145,582,814 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import pandas
import math
from datauri import DataURI
import json
cancer_types = ["ACC", "BLCA", "BRCA", "CESC", "CHOL", "COAD", "DLBC", "ESCA"]
data = pandas.read_csv("../cancer_names.tsv", sep="\t",
comment="#", header=None)
long_names = {}
for index, row in data.iterrows():
... | UTF-8 | Python | false | false | 6,342 | py | 6 | get_assessment_schemas.py | 5 | 0.512457 | 0.48439 | 0 | 179 | 34.430168 | 147 |
Gurmie12/MedHacks2020 | 1,219,770,751,362 | e803ec263c0c62ad182804e4f96d3647b7fefeb0 | 0706745ebd68f4e754183e49c893fafda649b8d9 | /MedHacks/backend/predictions/admin.py | 2a3d4e96f34eb1d673bd44c7f2456cc2e9e7f151 | [] | no_license | https://github.com/Gurmie12/MedHacks2020 | c26ef62c18fece78bf173d97954edd45805b0cab | a9292a9a64726544002a60c1da95f57d5984f451 | refs/heads/master | 2022-12-14T01:57:29.639314 | 2020-09-16T05:01:09 | 2020-09-16T05:01:09 | 293,169,489 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib import admin
from .models import Patient, Prediction
# Register your models here.
admin.register(Patient)
admin.register(Prediction) | UTF-8 | Python | false | false | 153 | py | 22 | admin.py | 14 | 0.823529 | 0.823529 | 0 | 6 | 24.666667 | 39 |
cms-sw/cmssw-cfipython | 7,627,861,953,407 | 38934a6afda71409b11d2eef6b44f935014a96be | 3996539eae965e8e3cf9bd194123989741825525 | /GeneratorInterface/GenFilters/MCParticleModuloFilter_cfi.py | 2401959d0722031d0b423e930b5bc6e5cdd09779 | [] | no_license | https://github.com/cms-sw/cmssw-cfipython | 01990ea8fcb97a57f0b0cc44a8bf5cde59af2d98 | 25ee4c810103c4a507ca1b949109399a23a524c5 | refs/heads/CMSSW_11_2_X | 2023-09-01T16:56:00.658845 | 2022-06-20T22:49:19 | 2022-06-20T22:49:19 | 136,184,115 | 1 | 0 | null | false | 2022-10-19T14:04:01 | 2018-06-05T13:47:28 | 2022-06-20T22:49:26 | 2022-10-19T13:48:13 | 1,145 | 1 | 1 | 0 | Python | false | false | import FWCore.ParameterSet.Config as cms
MCParticleModuloFilter = cms.EDFilter('MCParticleModuloFilter',
moduleLabel = cms.InputTag('generator', 'unsmeared'),
particleIDs = cms.vint32(),
multipleOf = cms.uint32(1),
absID = cms.bool(False),
min = cms.uint32(0),
status = cms.int32(0),
mightGet = cms.option... | UTF-8 | Python | false | false | 343 | py | 838 | MCParticleModuloFilter_cfi.py | 838 | 0.728863 | 0.696793 | 0 | 11 | 30.181818 | 63 |
humantom88/geekbrains-data-scraping | 7,395,933,723,012 | 3f8f64ef9c19722d26e08e7248a7eb13c76d779d | d2a9ff16cdbcc97a65ae01cdcd79be4d560ef7c9 | /homework8/instaparser/instaparser/spiders/instagram.py | cc97697ad18bb76178187e23552801c04de8b51b | [] | no_license | https://github.com/humantom88/geekbrains-data-scraping | af3d7231f83ceb86992f01956b9d2184aa560b28 | b02d68788be8a4d500b5433ec6a89f5583864061 | refs/heads/master | 2022-11-06T10:14:25.515797 | 2020-06-28T14:08:54 | 2020-06-28T14:08:54 | 268,997,676 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
import scrapy
from scrapy.http import HtmlResponse
from instaparser.items import InstaparserItem
import re
import json
from urllib.parse import urlencode
from copy import deepcopy
class InstagramSpider(scrapy.Spider):
# атрибуты класса
name = 'instagram'
allowed_domains = ['instagr... | UTF-8 | Python | false | false | 5,620 | py | 25 | instagram.py | 22 | 0.575379 | 0.563088 | 0 | 139 | 36.460432 | 134 |
onesuper/Hazard | 5,866,925,350,933 | d740fe1d19a84765696010d70eb15bfd56d45b70 | 9c25fcef2b0d0eedadc818d8a8bc8f6098d13b49 | /multicycle/test.py | 8f8c9885dc4bdd61538d7b81a97b7752e31a103e | [] | no_license | https://github.com/onesuper/Hazard | 655b5147991fa5996fb8898749e128fb578dec1c | d322217c68fa70f5581987c3ba8024f0c720eb60 | refs/heads/master | 2021-01-13T16:10:11.928782 | 2013-04-27T14:44:42 | 2013-04-27T14:44:42 | 8,702,599 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
from exe import Exe
from datapath import Datapath
from lazy import addi, add, sub, lw, sw, and_, or_, beq, slt, j
exe = Exe()
exe.data_section = [77, 99] # by word
exe.text_section = [addi('$t0', '$zero', 15), #0x00400000
addi('$t1', '$zero', 12),
add('$t2', '$t0', '$... | UTF-8 | Python | false | false | 1,091 | py | 24 | test.py | 22 | 0.384968 | 0.331806 | 0 | 36 | 29.25 | 65 |
Chubek/wodeveryday.com | 1,468,878,840,503 | 29813335b66c06a52cc2358fee8d0252353e074c | 16765dcc1d455167b0ceb6ec0f46b66a71478d0d | /back/core/migrations/0004_remove_gymdetails_photos.py | ba9700190e8b8e4d1aa010ed1ba9f7279073016a | [] | no_license | https://github.com/Chubek/wodeveryday.com | 0ba37eb023ec17a84208b9506ec0ce597b93144f | b318a59e7d52b97e7a362930c790394ea5bf045b | refs/heads/master | 2022-11-23T12:45:23.489978 | 2020-07-23T20:15:12 | 2020-07-23T20:15:14 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 3.0.4 on 2020-07-07 01:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0003_gymdetails_photos'),
]
operations = [
migrations.RemoveField(
model_name='gymdetails',
name='photos',
)... | UTF-8 | Python | false | false | 328 | py | 57 | 0004_remove_gymdetails_photos.py | 26 | 0.582317 | 0.52439 | 0 | 17 | 18.294118 | 47 |
codeWithDiki/marketplace | 6,365,141,551,748 | afe4ca6afd7db62f1e4922e4dd50a823ddd36b8f | 4088fc77a6c78f3fc6f3bec521e404b2a351a6de | /products/migrations/0011_auto_20210628_0054.py | 8b5a93bc46e7007a6f52a792c86bf5cd641cfedb | [] | no_license | https://github.com/codeWithDiki/marketplace | 268fc93c38c7544492152303e6c830e29e256b89 | 68fef492f30d1cbe863089ee44d7b94abf5742ed | refs/heads/main | 2023-06-25T18:34:22.755274 | 2021-07-03T20:37:39 | 2021-07-03T20:37:39 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 3.2.3 on 2021-06-27 17:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0010_productimages'),
]
operations = [
migrations.AlterField(
model_name='products',
name='product_media... | UTF-8 | Python | false | false | 476 | py | 27 | 0011_auto_20210628_0054.py | 20 | 0.579832 | 0.539916 | 0 | 21 | 21.666667 | 58 |
miyuchina/compiler | 10,608,569,261,299 | e5612372f84cda79aaa311f94a6884dc11b88950 | e259caa04b3c54c49948c90ceb7fcb05a4fc5029 | /gone/parser.py | 0a62ce53b69ea415d1e53c7e66280e8519458b9e | [] | no_license | https://github.com/miyuchina/compiler | dcedd1fd8382de6469ea49e1238a968119ec81b3 | 50e80555fb9786f1b2e5a4ea9db9b653b5fd89b5 | refs/heads/master | 2021-09-04T22:42:44.052134 | 2018-01-22T20:41:22 | 2018-01-22T20:42:17 | 117,863,789 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # gone/parser.py
'''
Project 2: Write a parser
==========================
In this project, you write the basic shell of a parser for Gone. A
formal BNF of the language follows. Your task is to write parsing
rules and build the AST for this grammar using SLY. The following
grammar is partial. More features get adde... | UTF-8 | Python | false | false | 11,949 | py | 14 | parser.py | 9 | 0.578542 | 0.576031 | 0 | 380 | 30.444737 | 108 |
MariaAfanaseva/messenger_kivy | 18,245,021,099,186 | b08f08cb29169464aa8af5126df54b1ba6da7f9f | d686c26b7a1647fb55a7ca446688354fb1c48b4d | /client/gui_kivy/create_diagram.py | 1c67f380a78a0fceca39e01abb6ac70b623dd4cc | [] | no_license | https://github.com/MariaAfanaseva/messenger_kivy | 8f6a52ae008a2e290c6227f51f4cf4ac30c691e1 | 1978f31d702e5ffc004bbf7ad6b44eb59dd42fa3 | refs/heads/master | 2021-07-13T03:33:00.348852 | 2021-02-17T10:03:25 | 2021-02-17T10:03:25 | 236,340,649 | 0 | 0 | null | false | 2021-01-23T19:12:38 | 2020-01-26T16:32:54 | 2020-01-26T16:32:57 | 2021-01-23T19:12:38 | 277 | 0 | 0 | 0 | null | false | false | from matplotlib import pyplot
import numpy
from common.variables import get_path_diagram
class CreateDiagram:
def __init__(self, database):
self.database = database
def diagram_all_messages(self):
labels = []
in_direction = []
out_direction = []
info_lst = self.databas... | UTF-8 | Python | false | false | 1,618 | py | 59 | create_diagram.py | 46 | 0.529666 | 0.518541 | 0 | 48 | 32.708333 | 87 |
sanjaradylov/moleculegen-ml | 7,799,660,614,413 | d951c111262f9a8b1c4f8e1cae9260ff63fcb0f6 | ae2d5b98fdb0604b11dd258a267185af572bacda | /scripts/process_stage1_data.py | 66c39592082ca0275fa5534267c7e82d80de332b | [
"BSD-3-Clause"
] | permissive | https://github.com/sanjaradylov/moleculegen-ml | 01de1047812d529fc06034e81fc10cdd296fc232 | ecbc3d0e436f0c35ee17c4eac1b585f28bf6a90c | refs/heads/master | 2022-05-29T04:46:25.726069 | 2022-05-23T06:23:39 | 2022-05-23T06:23:39 | 227,586,884 | 4 | 2 | BSD-3-Clause | false | 2022-05-23T05:51:13 | 2019-12-12T11:04:58 | 2022-02-08T22:01:20 | 2022-05-23T05:51:12 | 478 | 3 | 2 | 2 | Python | false | false | #!/usr/bin/env python3
"""
Load, post-process, and save SMILES strings for Stage 1.
"""
import argparse
import datetime
import functools
import os
import sqlite3
from typing import Callable, Coroutine, Generator, TextIO, Union
from rdkit.Chem import MolFromSmiles, MolToSmiles
from rdkit.RDLogger import DisableLog
... | UTF-8 | Python | false | false | 5,783 | py | 49 | process_stage1_data.py | 44 | 0.611793 | 0.607989 | 0 | 222 | 25.04955 | 78 |
MohnishVS/Guvi-Tasks | 19,232,863,588,486 | 3559187cbd9e3ea57b914cadc7e8ceab330068ed | 04188efd3bc52538bc1e704ab49cd3f5b01e8bc3 | /guessanumber.py | e00d5cd966db5e4a7bd450d7ea6f03a747ec2abd | [] | no_license | https://github.com/MohnishVS/Guvi-Tasks | c5fc1840842e03db77392497872ee8fcc86ccfd5 | 6d614d7b9e883fd8da58ec72e7c0a0471230e9f3 | refs/heads/master | 2021-07-22T02:27:02.977161 | 2020-08-19T14:19:36 | 2020-08-19T14:19:36 | 236,750,559 | 0 | 2 | null | false | 2021-01-17T16:55:57 | 2020-01-28T14:12:24 | 2020-08-19T14:20:28 | 2020-08-19T14:20:25 | 24 | 0 | 1 | 1 | Jupyter Notebook | false | false | import random
f=True
while(f==True):
a=random.randint(1,10)
b=int(input("Guess a number between 1-10:"))
if a==b:
print ("You Won")
else:
print ("You Lose number is ",a)
i=input('enter anything to continue:')
if i=='n':
f=False
else:
f=True
continue | UTF-8 | Python | false | false | 317 | py | 9 | guessanumber.py | 7 | 0.539432 | 0.520505 | 0 | 15 | 20.2 | 48 |
dotpot/pushit | 7,962,869,367,598 | 7aa34abd16ffede338c4e91faadfd0219e1ecbeb | 132b9e186373eab18b2b9447f8a9b7f933da012f | /pushit/android/__init__.py | 7f72f26847515e8d8f7c9a54d81d25e325a77274 | [
"MIT"
] | permissive | https://github.com/dotpot/pushit | 8a64c17a81f961c2066b1e3b673c7839b0400c52 | 4714aa356b95929a252bac2bcb97abecb097c9e2 | refs/heads/master | 2021-01-25T04:14:04.339878 | 2017-08-14T10:45:10 | 2017-08-14T10:45:10 | 93,408,291 | 1 | 1 | null | false | 2017-08-14T10:45:11 | 2017-06-05T13:44:36 | 2017-06-13T09:29:09 | 2017-08-14T10:45:11 | 21 | 0 | 1 | 0 | Python | null | null | """ android related util. """
from .gcm import (
GCM2,
GCMAuthenticationException,
GCMConnectionException,
GCMException,
GCMInvalidRegistrationException,
GCMInvalidTtlException,
GCMMalformedJsonException,
GCMMessageTooBigException,
GCMMismatchSenderIdException,
GCMMissingRegistra... | UTF-8 | Python | false | false | 930 | py | 9 | __init__.py | 6 | 0.735484 | 0.731183 | 0 | 36 | 24.833333 | 38 |
scopeInfinity/CaptureTheFlag | 8,658,654,092,069 | c2b06ade2167cbb35c3035797582f1f37bda5809 | e986be8ead4c17ab90a273c403325a1b4762665c | /game_ctf/views.py | 44ecedca01ab11ef24832faa38e981970a132285 | [] | no_license | https://github.com/scopeInfinity/CaptureTheFlag | 56c270e3b1ce96e2f79dcf8ae1742476c1068968 | f35cdf3b3034f85986619bfc6def6722cd6462db | refs/heads/master | 2021-01-10T04:08:42.343499 | 2016-01-11T13:49:31 | 2016-01-11T13:49:31 | 49,274,865 | 1 | 2 | null | false | 2016-01-10T20:34:18 | 2016-01-08T13:56:33 | 2016-01-09T05:15:14 | 2016-01-10T20:34:18 | 513 | 1 | 2 | 0 | Python | null | null | #
# @author:metastableB
# views.py
#
from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.contrib import messages
from django.core.urlresolvers import resolve, Resolver404, is_valid_path
from django.contrib.auth.decorato... | UTF-8 | Python | false | false | 3,610 | py | 11 | views.py | 8 | 0.733795 | 0.729086 | 0 | 107 | 32.738318 | 141 |
cash2one/xai | 4,466,765,997,711 | dcae60d3d083bf73b1328aeeae0dccf9bfa191e0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_sanitariums.py | d2f64a9ecdcec8337ddf52a186d797f41e6c4af7 | [
"MIT"
] | permissive | https://github.com/cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
#calss header
class _SANITARIUMS():
def __init__(self,):
self.name = "SANITARIUMS"
self.definitions = sanitarium
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['sanitarium']
| UTF-8 | Python | false | false | 238 | py | 37,275 | _sanitariums.py | 37,266 | 0.62605 | 0.62605 | 0 | 13 | 17.153846 | 31 |
silhouetteMn/blog | 8,899,172,276,925 | aaa9e90dd85248e1e36a093560599e81a00f42cd | 45c556e06a3156f029216a72604b59e4b6f16984 | /app/models/role.py | 430bd22ed03c1adcd2524252e694f8a4c5316d13 | [] | no_license | https://github.com/silhouetteMn/blog | 3af98a086522d3383626f4ef2e10e6a66f8d0af0 | e52a8b3c090d4a688784fd4b3b579acd92e6a2d7 | refs/heads/master | 2020-04-27T17:00:53.466187 | 2019-03-18T08:19:11 | 2019-03-18T08:19:11 | 174,501,327 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from . import Model
"""
用户权限功能,为每个用户赋予角色,每个角色可配置相应权限
关注 0x01
评论 0x02
发帖 0x04
管理评论 0x08
管理员权限 0x80
Role字段
name : Stranger(0x00) NormalUser(0x07) Admin(0x88)
permissions:
default: 新注册用户给赋值哪种Role属性
"""
class Role(Model):
__fields__ = Model.__fields__ + [
('name', str, ''),
('permissi... | UTF-8 | Python | false | false | 1,156 | py | 28 | role.py | 24 | 0.494197 | 0.454545 | 0 | 50 | 19.68 | 88 |
FlorianBury/talos | 19,396,072,329,352 | c788cde8dabfc41b5fc3846d5f56a4a0759a8b20 | 6956964a5d1eab088b6134b5591318bd752efcc8 | /talos/model/shapes.py | 0ca4119f349a0e7359a7c1d556802be909b74510 | [
"MIT"
] | permissive | https://github.com/FlorianBury/talos | 2e3b34a3bd295c7310d30cf4570b805d5b97e541 | 30f7af4d1f628364f8e8a2e983f72b2631cee6d9 | refs/heads/master | 2021-06-25T22:03:06.198180 | 2020-08-25T13:14:25 | 2020-08-25T13:14:25 | 167,014,128 | 0 | 0 | MIT | true | 2019-01-22T15:07:13 | 2019-01-22T15:07:13 | 2019-01-21T07:41:23 | 2019-01-20T14:01:08 | 581 | 0 | 0 | 0 | null | false | null | import math as m
def shapes(params, last_neuron):
'''Handles shapes for the case where hidden layers are used
as an optimization parameter. Available shapes are:
'funnel',
'long_funnel',
'rhombus',
'brick',
'diamond',
'hexagon',
'triangle',
'stairs'
'''
layers = para... | UTF-8 | Python | false | false | 4,882 | py | 35 | shapes.py | 27 | 0.465998 | 0.451864 | 0 | 206 | 22.699029 | 94 |
liyocee/textblob-aptagger | 3,169,685,909,582 | df0b1f1a939a69b296e319893cc181782e3254b3 | 1155d72c730cb071b4ccddb892412a237118d68a | /tests/test_taggers.py | 29d8d1d7d76194cc9ac0bc6af216324925c53ece | [
"MIT"
] | permissive | https://github.com/liyocee/textblob-aptagger | a6da73ff8fe542b2c93677242f9140baae8c6b13 | 0de770b183da596f66c425925f35877b9390ab46 | refs/heads/master | 2021-01-16T18:35:36.675958 | 2013-10-28T03:22:31 | 2013-10-28T03:22:54 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import unittest
from nose.tools import * # PEP8 asserts
from nose.plugins.attrib import attr
from textblob.base import BaseTagger
from textblob.blob import TextBlob
from textblob.exceptions import MissingCorpusException
from textblob_aptagger import Perc... | UTF-8 | Python | false | false | 3,620 | py | 2 | test_taggers.py | 1 | 0.609669 | 0.60663 | 0 | 88 | 40.136364 | 83 |
mszpunar/Differential-Evolution-Experiments | 8,117,488,215,846 | 95b164d7fd4cda14de1a4cc73ab913556b5c8678 | 5297a06ccaed90b6bf7527a5d6fe1855a273426e | /DE.py | 53aea09f61f3be4b9af991ba778c76208ddbeb72 | [] | no_license | https://github.com/mszpunar/Differential-Evolution-Experiments | a00e10ee0f9013dc2bf1fcb2bb84c92d6fbd938d | f782595ccc212f3ecf3cff73e4c69b907b83ce42 | refs/heads/main | 2023-05-29T02:39:23.329450 | 2021-06-13T15:39:50 | 2021-06-13T15:39:50 | 356,058,849 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from typing import Optional
import numpy as np
from numpy.random import random
from collections import namedtuple
from MinorClasses import Point
from MinorClasses import EndConditions
from Consts import *
Result = namedtuple(
'Result', ['best_point', 'end_reason', 'iteration_num'])
class DifferentialEvolution:... | UTF-8 | Python | false | false | 7,476 | py | 7 | DE.py | 6 | 0.545746 | 0.539326 | 0 | 212 | 34.264151 | 104 |
RiddhimGupta/Python | 11,854,109,760,079 | 88d14df29e6ac26da44d219491018f528679ed3d | 50530db39b76448914b731c48a08ca0d8ac56dcc | /problem11send.py | c716e50f2109d2bd583e4e7cf84f49b9366e0a3f | [] | no_license | https://github.com/RiddhimGupta/Python | bbfb21a088cf00e68c13ab1d09b8c04b043a12d6 | ac75eeeabd779c8a7b140ad610278da1cef184b4 | refs/heads/master | 2021-07-14T12:16:10.088006 | 2020-08-27T15:26:11 | 2020-08-27T15:26:11 | 191,228,349 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import socket
recv_ip='127.0.0.1'
recv_port=4444
s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
while True:
msg=input("Enter message: ")
s.sendto(msg.encode('ascii'),(recv_ip,recv_port))
if msg=='q':
exit()
s.close()
| UTF-8 | Python | false | false | 227 | py | 18 | problem11send.py | 12 | 0.687225 | 0.643172 | 0 | 10 | 21.5 | 50 |
smurashov/rally | 5,248,450,082,250 | b0dc9732b1bcb6c9e5e4abdc5236d42595520d5e | 26b0bcdeea175b10491a935856c3248f9635ff2b | /tests/benchmark/scenarios/ceilometer/test_utils.py | 2f94c979a059ebd1dbe1fd2bed80486d02b3e6e5 | [
"Apache-2.0"
] | permissive | https://github.com/smurashov/rally | f84624b89e70288d0c22293f7101dff7b03b0bfe | bbc6fd57b62790592bfda74c632eae872de2d668 | refs/heads/master | 2020-12-25T01:50:56.866857 | 2014-10-10T08:03:43 | 2014-10-10T08:03:43 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | UTF-8 | Python | false | false | 5,041 | py | 38 | test_utils.py | 27 | 0.659393 | 0.658599 | 0 | 113 | 43.610619 | 79 |
zhxiaohe/starwars_api | 8,117,488,207,546 | b5a0a02c2e165febefaf4ac51169c360c88dda43 | 2a51fdbb2e1c2eae4e47b7be49871c03fbe4c3e2 | /cmdb/config.py | 5ee36d723421e88d712a566bb1ad48077e6a6772 | [
"MIT"
] | permissive | https://github.com/zhxiaohe/starwars_api | 6ae557959ccf425ab6bc1238d4ea0b88d31fbf79 | f1b729e819eb19e5eb59630bed56b13127eb1ef2 | refs/heads/master | 2020-06-18T17:55:14.330319 | 2017-03-30T05:30:39 | 2017-03-30T05:30:39 | 74,750,556 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from werkzeug.exceptions import HTTPException
import os
from flask.ext.restful import fields
import json
basedir = os.path.abspath(os.path.dirname(__file__))
# Mysql Connect Config
MysqlHost = '10.1.15.131'
MysqlUser = 'root'
MysqlPass = 'unfae2016'
MysqlDB = 'ops'
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://%s:%s@%s/%... | UTF-8 | Python | false | false | 1,995 | py | 11 | config.py | 9 | 0.634085 | 0.601504 | 0.004511 | 79 | 24.253165 | 100 |
jesson20121020/myRobot | 13,615,046,356,566 | 2d51d4166dc1060260be60c0033fa07172c4c84b | c97f3ab8f5ad88c502b21c3ba6200ca0ad960263 | /train_system/test.py | 2486cefc6bdffd2b0daab6d3fcfb4a84ca92ef27 | [
"Apache-2.0"
] | permissive | https://github.com/jesson20121020/myRobot | b7f1da79d72435e137b02bad6d98e6928fb5c42e | 667213f6b21ac69dddeff453c4ec663e3e082e73 | refs/heads/master | 2021-01-12T06:08:14.568338 | 2016-12-25T04:46:13 | 2016-12-25T04:46:13 | 77,310,733 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #coding:utf-8
import os
def execCmd(cmd):
r = os.popen(cmd)
text = r.read()
r.close()
return text
print execCmd('python tickets.py -g 上海 西安 2016-12-28')
| UTF-8 | Python | false | false | 180 | py | 26 | test.py | 22 | 0.622093 | 0.569767 | 0 | 11 | 14.636364 | 54 |
brunocosouza/RoboticBruno | 16,166,256,916,503 | 199d4246cffc0efea3935856b5064ebdcb1341eb | 45c6bf00ee62e5b1de38d5576af00f85c0435c43 | /dynamicProgrammingUp.py | 1d22150dc1668c90624fe619cd06c8f0eee17732 | [] | no_license | https://github.com/brunocosouza/RoboticBruno | a419edce2e7079e52b8388af160dd4be677c038a | 41f4099c792f78d4daf111bf18c7e9021940cbd1 | refs/heads/main | 2023-01-14T14:55:48.885231 | 2020-11-24T22:18:29 | 2020-11-24T22:18:29 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | <<<<<<< HEAD
# ----------
# User Instructions:
#
# Implement the function optimum_policy2D below.
#
# You are given a car in grid with initial state
# init. Your task is to compute and return the car's
# optimal path to the position specified in goal;
# the costs for each motion are as defined in cost.
#
# There are... | UTF-8 | Python | false | false | 7,982 | py | 2 | dynamicProgrammingUp.py | 1 | 0.435981 | 0.401278 | 0 | 207 | 37.067633 | 83 |
DemocracyClub/UK-Polling-Stations | 18,107,582,140,771 | 07a9f2c46e82e79988d246a5f98b7ef493c5c2e1 | f39ae1d934b14d55e4969beef9c0c1cf7e71ae88 | /polling_stations/apps/data_importers/management/commands/import_waltham_forest.py | 371ea441a42a0ce1803b98bc72bf26e65b004a9d | [] | permissive | https://github.com/DemocracyClub/UK-Polling-Stations | 6f675ab13fdf730344eb53855b19ef291d58bbb1 | 6bbd7ddf5aa49bd5ec248d94697f9b6a4c3c4d46 | refs/heads/master | 2023-09-01T20:17:15.038918 | 2023-08-23T17:36:43 | 2023-08-23T20:45:12 | 31,439,953 | 31 | 33 | BSD-3-Clause | false | 2023-09-14T19:25:36 | 2015-02-27T21:28:04 | 2023-05-04T14:17:45 | 2023-09-14T19:25:31 | 171,462 | 30 | 28 | 134 | Python | false | false | from data_importers.management.commands import BaseXpressDemocracyClubCsvImporter
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = "WFT"
addresses_name = (
"2022-05-05/2022-03-09T16:58:40.436212/Democracy_Club__05May2022.tsv"
)
stations_name = (
"2022-05-05/2022-03-09T16... | UTF-8 | Python | false | false | 1,964 | py | 731 | import_waltham_forest.py | 601 | 0.566701 | 0.428208 | 0 | 56 | 34.071429 | 82 |
RoboJackets/onken | 13,829,794,694,441 | c88c0f3fb426b224f03860cdf0e8a4be13281183 | 8f47cef03ea025c04395332683e1e125f530bec4 | /onken/public/api_views.py | 16fa60311ab155eb5c4bf04f1c05cb5b752fbe0b | [
"Apache-2.0"
] | permissive | https://github.com/RoboJackets/onken | 8161de517a187bebf0ee4d0ab919e31a40312b3c | 43b5ff13e5f19fa4a9d5ffb37b585bf3c37ca05b | refs/heads/master | 2021-06-04T01:02:02.806533 | 2018-10-18T15:33:25 | 2018-10-18T15:33:25 | 95,968,171 | 2 | 2 | Apache-2.0 | false | 2019-05-10T23:21:55 | 2017-07-01T14:13:03 | 2018-10-18T15:33:28 | 2019-05-10T23:21:53 | 109 | 2 | 2 | 38 | Python | false | false | from django.contrib.auth.models import Group
from django.contrib.auth import get_user_model
from rest_framework import viewsets
from onken.public.serializers import UserSerializer, GroupSerializer, WorkspaceSerializer, DomainSerializer
from onken.public.models import Workspace, Domain
class UserViewSet(viewsets.Model... | UTF-8 | Python | false | false | 1,092 | py | 27 | api_views.py | 19 | 0.741758 | 0.741758 | 0 | 37 | 28.513514 | 107 |
acarta/flowplots | 16,260,746,217,549 | ccf1c75e93542c4c6d593545a4304c8e827c11fc | ac6f8f7a1dfbc708c7100b1847a70e423312fe5e | /flowplots/isosurface.py | 2e82434edd6c011b92befc0acf6291e85e18364c | [] | no_license | https://github.com/acarta/flowplots | f5894624ab631fdad17f44f44d144d783afec011 | 3525f4a4d292651f01bc45161ab11700c9413efe | refs/heads/master | 2018-10-20T18:10:16.872152 | 2018-07-24T07:11:32 | 2018-07-24T07:11:32 | 101,100,271 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
from netCDF4 import Dataset
from mayavi import mlab
import os
from subprocess import call
def rgb_convert(color):
# Colors (x,y,z) correspond to RGB decimal codes 255*(x,y,z)
return tuple(np.divide(color, 255.0))
def plot(file_name, contour_leve... | UTF-8 | Python | false | false | 4,093 | py | 10 | isosurface.py | 9 | 0.486685 | 0.444417 | 0 | 146 | 27.034247 | 125 |
thomascjw30/ML-Engineer-Capstone-Project | 7,000,796,697,872 | fceddf73ee5480fb770d01a52cacee13c17c8822 | 4b36a015eae0c41f5ade2da93829f66e70d92a1a | /endpoint.py | bffc1a9b09e7721f9e2ec79f7ea852ecc5f8a1ed | [] | no_license | https://github.com/thomascjw30/ML-Engineer-Capstone-Project | 7d34f85d57ccd8d4addfcfdb8ce4b3f491030ed5 | a92f0af815c1c8b1a0dc99d5174adfd11e6e4e74 | refs/heads/main | 2023-06-27T21:17:02.662689 | 2021-07-31T17:14:56 | 2021-07-31T17:14:56 | 388,497,045 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
import json
# URL for the web service, should be similar to:
# scoring_uri and key are found in the deployed model data and allow any api/web interface to access as req'd.
scoring_uri = 'http://bc43d9a7-3650-4f5f-a71e-f602b038012a.eastus2.azurecontainer.io/score'
# If the service is authenticated, set ... | UTF-8 | Python | false | false | 3,222 | py | 9 | endpoint.py | 2 | 0.613904 | 0.590627 | 0 | 84 | 37.369048 | 128 |
ColinPython/SZ-Programming-Education | 8,959,301,811,770 | f09deabde1e23b8fda836487555544fc5ab0eee6 | 0ab5a5cc807faef297b7b6f6d94090f4b7e74069 | /code_archive程序归档/Turtle_创意绘图/多彩小世界.py | 98001390432d829266dd225e096c29ac03c20949 | [] | no_license | https://github.com/ColinPython/SZ-Programming-Education | 89d27e04d50c1a2fb0c432c3a68894d2454cbf58 | 1d291b48b53af89b40f9b87f1ba34cf83ace2fa7 | refs/heads/master | 2022-06-03T18:34:50.425492 | 2020-05-02T15:35:09 | 2020-05-02T15:35:09 | 257,779,109 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from turtle import *
from random import *
def onecloud():
hideturtle()
speed(0)
pensize(6)
pencolor("#b0e0e6")
fillcolor("#b0e0e6")
begin_fill()
seth(7)
for i in range(randint(18, 23)):
speed(0)
fd(i)
left(1)
seth(90)
for n in range(3):
speed(0)
... | UTF-8 | Python | false | false | 6,365 | py | 32 | 多彩小世界.py | 30 | 0.467871 | 0.379419 | 0 | 368 | 16.296196 | 71 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.