blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
91f29d29ab18d01ccac454389ddfd3c3d46dd4d7
ada004eba2d26e282b711955d13d680a82d558bc
/model/resnet_encoder.py
782968878fb01bb9f99cfb03e57adea247f32513
[]
no_license
rippint58/MonoDepth-to-ManyDepth
38b0632345a6e53bf18126fcf024cf0ef9dcd403
c451b52a9cf793b9b488d93a321b2a43926ac86a
refs/heads/main
2023-07-07T18:11:35.070975
2021-08-09T05:57:26
2021-08-09T05:57:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,510
py
resnet_encoder.py
from __future__ import absolute_import, division, print_function import numpy as np import torch import torch.nn as nn import torchvision.models as models import torch.utils.model_zoo as model_zoo class ResNetMultiImageInput(models.ResNet): ''' construct a resnet model with varying number of input images. ...
6ceb87325bdbce3c01390093616596f071ee511a
696d010e99b7839daf92937e84746ede201c4ce1
/hitters_light_gbm.py
d64dd6aa9ee46a360c96254fea414afe054a77b4
[]
no_license
eboekenh/Hitters_ML_Light_GBM
48c31dc287072a9bee1134a0390b548f29ed52e5
71a22b406dd356f2a3426c62e9ed392140d2193e
refs/heads/main
2023-03-27T16:41:02.551752
2021-03-27T13:49:28
2021-03-27T13:49:28
352,083,067
3
0
null
null
null
null
UTF-8
Python
false
false
5,314
py
hitters_light_gbm.py
import warnings import pandas as pd # !pip install catboost from catboost import CatBoostRegressor # !pip install lightgbm # conda install -c conda-forge lightgbm from lightgbm import LGBMRegressor from sklearn.ensemble import RandomForestRegressor, GradientBoostingRegressor from sklearn.exceptions import Conve...
083587bb701a9dc0478db78f9fb26c4232149731
3a6b79ea36833b2a7e4dba3d6e4d486fa901a208
/make_matrix_1.py
26aca90b9bf43d9fae058499e0555e409bd02947
[]
no_license
rohitunni/graph_overflow
1f274da2338957839c5fad4129a092b5b6341f3c
856640a6308f730d6742f3ee8061459148bbeb10
refs/heads/master
2021-05-14T08:48:13.027802
2018-02-07T21:46:19
2018-02-07T21:46:19
116,309,032
1
0
null
null
null
null
UTF-8
Python
false
false
526
py
make_matrix_1.py
from featurizer import Featurizer import pandas as pd import numpy as np import pickle df = pd.read_csv('stack_data_cleaned.csv', na_filter=False) f = Featurizer(n_features = 100, start_column = 7) f.fit_lda(df.values) f.lda_c.save('lda_code') f.lda_nc.save('lda_noncode') ncode_corp_dict = [f.corp_nc, f.dict_nc] ...
2088df908fc40a5b03d194818d27eedac7277c2e
8fab6a83654e9236c318de52cf33477189265b8d
/test_api/api/views.py
6a64b3886b4a7e696678717806e51774d0e35f24
[]
no_license
Pungushe/test_api
2a6267d42d6229f8419b56348298d78e217f8cc8
6b22faa9e10216aef87c91674f175b402644e49c
refs/heads/master
2023-07-14T17:34:54.175743
2021-09-06T14:20:22
2021-09-06T14:20:22
403,286,372
0
0
null
null
null
null
UTF-8
Python
false
false
3,144
py
views.py
from rest_framework import viewsets, mixins, permissions from rest_framework.generics import get_object_or_404 from api.models import Inquiry, Question, Answer, Choice from api.serializers import ( InquirySerializer, QuestionSerializer, AnswerSerializer, UserInquirySerializer, AnswerOneTextSerializer, Answe...
9b05a2ac1680d866d4d3a17fa22e455fbba92de1
92087e22a044e7643b0ff8254197ea10b8ba5a5b
/Homework 1/scripts.py
faec5156c903391079bf124c40b27dfbfa90a940
[]
no_license
giuseme/DataScience-Sapienza-ADM2020-2021-Homework1
98c9c5b7510b2f982769e3d7eab96b1421466ac1
47703ac3a7f13b220ce90b4200d0a36ee63e7cc1
refs/heads/main
2023-01-22T09:44:31.779430
2020-12-05T14:46:02
2020-12-05T14:46:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
32,737
py
scripts.py
# Arithmetic Operators a=int(input()) b=int(input()) print(a+b) print(a-b) print(a*b) # Hello World! print("Hello, World!") #Loops i=0 n=int(input()) if n>20 and n<1: print("Choose another positive integer not greater than 20") else: for i in range(n): print(i*i) # Print Func...
0be2a41040dda6143bd5bce3194cb2bed36a14aa
b4bcb34398324b2fac2364e5039c36c2af689d19
/encenderGPIO12.py
97d67fc8c65ea090ec89540f4d3db70220cebfa9
[]
no_license
lisergio/Homekit_raspberrypi_modulo_reles
03b9840d897518e9bcc9b3b23fcdd80ffae4f5f4
a1c6d361b1467a96b65d484ae569f66a893f4388
refs/heads/master
2021-04-08T21:14:28.311597
2018-03-15T19:30:50
2018-03-15T19:30:50
125,417,072
0
0
null
null
null
null
UTF-8
Python
false
false
123
py
encenderGPIO12.py
import RPi.GPIO as GPIO GPIO.setwarnings(False) GPIO.setmode(GPIO.BOARD) GPIO.setup(12, GPIO.OUT) GPIO.output(12, 1)
d44d92c90f70637c9b2e57afede918caf4d7db46
a8795a06627409a779d050a235bda901585f2533
/spike-sorting-code/Mysort/+mysort/+noise/var_models.py
797e140f9f96b1dbd398d001d34b8fb9767c70eb
[]
no_license
baccuslab/High-Density-Array-Spike-Sorting
7906f100a2c5161a6a90259d189776919af5981e
9d526e2fd44d209cfa8913ae19c2c5e34af67347
refs/heads/master
2016-09-06T01:20:25.201494
2015-08-25T15:47:12
2015-08-25T15:47:12
37,290,479
2
0
null
null
null
null
UTF-8
Python
false
false
3,729
py
var_models.py
# -*- coding:utf-8 -*- ##---IMPORTS import scipy as sp from scipy import linalg as sp_la from common import TimeSeriesCovE from plot import P, mcdata from nsim.scene.noise import ArNoiseGen from database import MunkSession ##---CONSTANTS DB = MunkSession() ##---FUNCTIONS def load_cmx(): ...
a389732066fb90eafbc14059044b48ed84568c84
32a9a4a2089ab2dbeb8984c45e7f20e79009ed26
/models/mnist.py
f2ed840a7b45cc05aabf9920d552b0342536fb0a
[ "MIT" ]
permissive
cugzj/distributed-learning-with-MPI
5c2421274820325642bbcd4733713b526f56a479
ee3da5a3baea2db6e1ed04c3b928d461b2a90c2c
refs/heads/main
2023-07-16T11:56:49.391151
2021-08-25T06:49:54
2021-08-25T06:49:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,217
py
mnist.py
# -*- coding: utf-8 -*- ''' This is full set for cifar datasets (CIFAR-10 and CIFAR100) Models: CNN, LeNet, AlexNet, ResNet, LR, VGG ''' import math import torch import torch.nn as nn import torch.nn.functional as F from torchvision.datasets import MNIST import torchvision.transforms as transforms def get_transfo...
2b984f16968b9b351e9b8d0b6e4b7a8e2a11293c
78dddbb0f748bf75e58d12f8222e3b637d6adc27
/script/request-infactory.py
77f48e30d13429aa3c57c08c81cdd5ee6dd11d71
[ "MIT" ]
permissive
STEMLab/TICA
bd9ae072bbbe01888fddc4918f5bb983ba94bd07
e25bce69bd41172db5ff29d08c001229ddafa26c
refs/heads/master
2023-01-09T00:10:37.714522
2022-12-25T13:23:07
2022-12-25T13:23:07
168,680,253
6
0
MIT
2020-11-09T04:31:20
2019-02-01T10:19:58
Game Maker Language
UTF-8
Python
false
false
656
py
request-infactory.py
import requests import json import datetime import sys def url_get( u ): return requests.get( u, timeout=5 ) def url_get_w_param( u, d ): return requests.get( u, params=d, timeout=5 ) def url_post( u, d=None, h=None ): return requests.post( u, headers=h, data=d, timeout=5 ) if len( sys.argv...
3e9ff2ffb8d2c6f0492bf064a9c14d0017b714d2
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2691/60648/291207.py
30994640f71b92861dbda213d2c2eec15a780804
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
835
py
291207.py
def list(list1): one_list = list(list1) one_list.sort() two_list = [] n = len(one_list) total = sum(one_list) half_total = total / 2 s = 0 for i in range(n-1, -1, -1): ns = s + one_list[i] if ns > half_total: continue else: s +...
94ee994de285998b44260c1962190e7b1a917516
c69c3c04bbbff43210f6995eb2b4fef8d2071eca
/main.py
689c82528fdb41870363cd79c0a2cf4e127db616
[]
no_license
amnsbr/PASAT
821d95b86ff91992748666c8b04fed7b3470ebdd
ebefe68bf648842954ced866a59612e52a90b29e
refs/heads/master
2020-07-13T13:16:10.551466
2020-05-30T14:37:03
2020-05-30T14:39:43
205,091,321
0
0
null
null
null
null
UTF-8
Python
false
false
36,971
py
main.py
# -*- coding: utf-8 -*- """ Paced Auditory Serial Addition Test with PyQt5 on Python3.7 (developed and tested under Anaconda 2019.7) Created on Wed Aug 28 15:56:33 2019 @author: Amin Saberi """ from PyQt5.QtWidgets import QApplication, QDialog, QPushButton, QHBoxLayout,\ QGroupBox, QVBoxLayout, QLabel, QGridLayout,...
f48a6c8199a13f5ad87e352065430c87ec351739
0e4860fecfdd34a3255003cc8c8df086c14083dd
/python/practise/带你学Django资料及源码/课堂与博客代码/其他/my_common/app07/forms.py
3fd5b2e118dbd0a7f60779cc5bb7695370e62599
[]
no_license
anzhihe/learning
503ab9a58f280227011da5eaa4b14b46c678e6f3
66f7f801e1395207778484e1543ea26309d4b354
refs/heads/master
2023-08-08T11:42:11.983677
2023-07-29T09:19:47
2023-07-29T09:19:47
188,768,643
1,443
617
null
2023-08-24T02:10:34
2019-05-27T04:04:10
Python
UTF-8
Python
false
false
916
py
forms.py
from django import forms from django.core.exceptions import ValidationError from captcha.fields import CaptchaField from django.forms import widgets import re def mobile_validate(value): mobile_re = re.compile(r'^(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$') if not mobile_re.match(value): ...
9e846ec60d86e9e05c4dafefc6e99e8260951cea
8cb1e83ea662fd962ea65a9e03580e612dd840bb
/geoportailv3/views/geocode.py
0babf17b3913cb58531ce20c31111554f06f81ab
[ "MIT" ]
permissive
tonio/geoportailv3
fb6700e3f1cd53d1a130b96d6f84656487848109
4d339a61f2be045711c07862cee84b337f4573b2
refs/heads/master
2021-01-16T20:47:33.976194
2016-06-01T12:07:01
2016-06-01T12:07:01
60,261,689
0
0
null
2016-06-02T12:20:14
2016-06-02T12:20:13
null
UTF-8
Python
false
false
2,329
py
geocode.py
# -*- coding: utf-8 -*- from pyramid.view import view_config from pyramid.httpexceptions import HTTPBadRequest from geojson import loads as geojson_loads from geoalchemy2 import func from geoalchemy2.elements import WKTElement from geoportailv3.geocode import DBSession, Address import re class Geocode(object): ...
d3eba5599dd9810d5fb5af241eb613a144d98105
f8cdf2d082a298f1cb8ef62e7fc72a59a8a728a7
/calculator.py
28c2919bc078097b25a38b62713091d8c762c0f7
[ "MIT" ]
permissive
Yif1999/aeroengine-param-calculator
92479e13b59b241dcd19c66719dd66a2315575c2
66d590a282ff08317c3851d6836cc51e82b914c4
refs/heads/master
2023-06-18T12:40:43.115025
2021-07-17T09:46:05
2021-07-17T09:46:05
386,896,704
0
1
null
null
null
null
UTF-8
Python
false
false
2,126
py
calculator.py
# 输入参数: T_0环境滞止温度 # Ma_0飞行马赫数 # h_c燃料热值 # T_t4涡轮前限制温度 # pi_c压气机压比 # pi_f风扇压比 # alpha涵道比 # gama绝热指数 # C_p定压比热容 # 输出参数: F_unit单位推力 # S单位燃油消耗率 # eta_t热效率 # eta_p推进效率 # eta_0总效率 # u_9内涵喷管出口速度 # ...
d42fc088cf1e1da4d198066288e0fe5495b293ef
85f9a54072a3c66c48794e3ade756528dc3c921b
/recordings/migrations/0025_auto_20180605_1236.py
a7f21fee36e62c02fcf03fd1bfd039d6e2ce5d24
[]
no_license
UUDigitalHumanitieslab/microcontact
ab52402b61231d4ca1b1839df72c8ecf0775abd7
aef393ca26eb9ed58b0b541230317e3a93ad6d8d
refs/heads/develop
2023-08-09T13:33:04.432113
2023-06-28T13:24:39
2023-06-28T13:24:39
81,457,739
0
0
null
2023-07-25T18:25:35
2017-02-09T14:20:59
Python
UTF-8
Python
false
false
452
py
0025_auto_20180605_1236.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('recordings', '0024_recording_recording_original_corpus'), ] operations = [ migrations.RenameField( model_name='r...
35c37f576a0fab6994293555e363608aae19df64
de64403bda3521666556d7ce210ebf3cc5ffbea9
/users/urls.py
0dea4bebece8d4adc9b3738c83b07f7c9aa9e387
[]
no_license
kevindavis-gd/Backend
c9ab6d94d23cbf2cae680da6105b0187616f2cf6
82089ccce37ee875a5a7eb1767580b84fcbd33e7
refs/heads/main
2023-03-30T14:47:11.039251
2021-04-04T19:53:26
2021-04-04T19:53:26
341,705,381
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
urls.py
from django.conf.urls import url from . import views from django.urls import path, include # used to obtain token from rest_framework.authtoken.views import obtain_auth_token urlpatterns = [ path('createuser/', views.UserCreate.as_view(), name='account-create'), path('login/', obtain_auth_token, name='obtain-t...
a7c1b0b4b861da1295efec1bbce7dc9d119a1aaf
9848a719ddfdd21b5fe1fa2f55da290c0f6952dc
/max-area-of-island.py
17d6b457dbd68d0c96d73607f47a0297456b621c
[]
no_license
maomao905/algo
725f7fe27bb13e08049693765e4814b98fb0065a
84b35ec9a4e4319b29eb5f0f226543c9f3f47630
refs/heads/master
2023-03-13T12:38:55.401373
2021-03-25T01:55:48
2021-03-25T01:55:48
351,278,248
0
0
null
null
null
null
UTF-8
Python
false
false
2,386
py
max-area-of-island.py
""" 1が見つかったら、BFSでqueueに1を積んでいく、queueが空になったら、island1つを制覇 queueから取り出したら、1を0に変えておく(重複カウントしないように) time: O(RC) space: O(RC) """ from typing import List # from collections import deque # class Solution: # def maxAreaOfIsland(self, grid: List[List[int]]) -> int: # max_area = 0 # for i in range(len(grid...
188c5bd80e0875b7566e68f02b8b99d11d6c01e7
d6168a7522c3788fd6d0b5dfa62c59f366ea0c88
/lexer.py
07505dd7f0dfc1a4802d1b1e324456f79c23407e
[]
no_license
pombredanne/pygments-openssl
5884b48f13ec72d715fa2851b5e75795f30c83b3
90fcedbbb6a5bded16e07542b20f2bf0f68a56f2
refs/heads/master
2021-01-17T05:38:23.928009
2012-10-12T20:51:41
2012-10-12T20:51:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,814
py
lexer.py
"""Pygments lexer for OpenSSL configuration files With inspiration from IniLexer and BashLexer. """ from pygments.lexer import Lexer, LexerContext, RegexLexer, ExtendedRegexLexer, \ bygroups, include, using, this, do_insertions from pygments.token import Punctuation, Text, Comment, Keyword, Name, String, \ Ge...
038c366d815d3719c0e50fd4d70929285f3c1a55
5e4ddf4a8dac912a7679b0a6babe1b42d5d018e9
/python3/prac/db/ies/extraction.py
ed65aa37760cfee42d9a021722a405de09492652
[ "BSD-2-Clause" ]
permissive
danielnyga/prac
b686d9655c56175057db2af0002348c99a7de2ee
7add712590dd52dd8c1692554f49b271447ef03f
refs/heads/master
2020-05-30T07:10:58.260570
2018-02-28T17:30:29
2018-02-28T17:30:29
45,621,476
4
2
null
null
null
null
UTF-8
Python
false
false
4,856
py
extraction.py
''' Created on Sep 2, 2015 @author: seba ''' import os import traceback from collections import defaultdict from pprint import pprint import pymongo from ...core.inference import PRACInference from .models import Frame, Word, Howto, Object, constants def __dividedict(d, dnew): if not d: yield dnew ...
33d274820828233845b9a736d8c6ba35fc0f87ce
bdc4be55eadb3f79096c750aa663570f651dab69
/dearpygui_obj/wrapper/drawing.py
0064feada042728b56c3f3afb59c66fa11afd5bc
[ "MIT" ]
permissive
mwerezak/DearPyGui-Obj
8a77a0608933b57344dba442b013a595d84e6a4c
de73989798c202183e400dc813e2b0b688c26f7d
refs/heads/master
2023-06-21T06:18:14.588085
2021-07-22T18:25:37
2021-07-22T18:25:37
341,779,775
48
6
MIT
2021-03-15T23:26:19
2021-02-24T04:34:25
Python
UTF-8
Python
false
false
5,145
py
drawing.py
from __future__ import annotations from abc import ABC, abstractmethod from typing import TYPE_CHECKING from dearpygui import dearpygui as dpgcore from dearpygui_obj import _generate_id if TYPE_CHECKING: from typing import Any, Optional, Type, Callable, Mapping from dearpygui_obj.drawing import DrawingCanva...
97e0edb7bf7e8fedfc77109737a44ab98b30a7f0
66396ae79d8979e61d4d5211b77dbce9bf2afa2a
/classes/oneslip.py
530bc1faeeb4dfe36a1ac00f0f812be4aa5441a2
[]
no_license
semplice/oneslip
d77c204ce5dc6cb6864d08a27be2fa2d03106d76
30e9822fb2f02e3d918a70bd1e3920e1836c6f4d
refs/heads/master
2021-01-01T19:20:25.288897
2013-08-19T11:32:46
2013-08-19T11:32:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,929
py
oneslip.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # oneslip - pywebkitgtk web applications viewer # Copyright (C) 2013 Giuseppe "GsC_RuL3Z" Corti # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
0ef363a5d7b43cf93e3a9b3e70021821c139572f
650b0bafa6262e33427a532693e919fa0654ac3f
/search/__init__.py
af43b56f67586fd5320d5c5dc4cc4b9fd336dcd7
[]
no_license
rloqvist/wikifier
3c3e746b65519c13ad24e8c720452356b0a48ad2
85b6796680389bd498606b39913eb0ec4a5dfa5c
refs/heads/master
2020-03-17T19:42:27.541897
2018-12-11T14:37:23
2018-12-11T14:37:23
133,874,076
1
0
null
null
null
null
UTF-8
Python
false
false
327
py
__init__.py
from search.posts import search as search_posts from search.users import search as search_users from search.comments import search as search_comments def search(term): results = { 'posts': search_posts(term), 'users': search_users(term), 'comments': search_comments(term), } return r...
6296ca70fd8402e82336affee895ddcf537754d5
c106ce6b7deea19c00779065a8f7f41c26c494f1
/src/weigh.py
a4ef0a61dc6dae57b7ab14dc7a2f31149cc899a8
[]
no_license
riserperson/petfeedd
1ca3fbe2bb993c82ca8d7edf89644f74d33b3c77
b13241ffd5a562dbda29501c7842217cb55f5445
refs/heads/master
2020-06-04T22:38:53.798600
2019-07-07T20:18:37
2019-07-07T20:18:37
192,218,394
0
0
null
null
null
null
UTF-8
Python
false
false
272
py
weigh.py
import time import sys import RPi.GPIO as GPIO from hx711 import HX711 hx = HX711(5, 6) hx.set_reading_format("MSB", "MSB") hx.set_reference_unit(-300) hx.reset() #hx.tare() val = hx.get_weight(5) hx.power_down() hx.power_up() time.sleep(0.1) GPIO.cleanup() print val
3803c44334e8cb0138f5d6f63e996e2bf38581fa
9bf618ffe4351069ece1d15e1ed5a0089e5495fd
/bplustree/node.py
e8601757ff5ba7302a286ceffceeb81ef820d2f1
[]
no_license
sahitpj/Bplustree
5aee8841a2c9a85375730db6531ba90bdefabbc7
a4e964665cce647970ccade0fe7c0121630cc36f
refs/heads/master
2020-05-10T00:25:11.570408
2019-04-15T17:07:56
2019-04-15T17:07:56
181,530,753
1
1
null
null
null
null
UTF-8
Python
false
false
9,276
py
node.py
import math class Node(object): def __init__(self, parent, degree): self.parent = parent self.degree = degree self.previous_node = None self.next_node = None self.keys = list() self.children = list() self.t = 'node' def property(self): return le...
be2c9afdf3e1f60e0e6687890d42a94342fc4335
b171c352f1dd2215c7bb31abb4f124b74b369edd
/mrbtree/wscript
d6c1445ca1807d7b335163c680accfcffee8bce1
[ "BSD-2-Clause" ]
permissive
gedare/pqstbench
76e4fa6a0246590b2b5399011daeccd37291b2ec
f2b7bdbd04b256fe16626af8b8c5ea945763b92a
refs/heads/master
2020-05-17T23:54:29.053084
2014-12-04T21:56:53
2014-12-04T21:56:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
423
wscript
# Copyright 2014 Gedare Bloom (gedare@rtems.org) # # This file's license is 2-clause BSD as in this distribution's LICENSE.2 file. # import rtems_waf.rtems as rtems def build(bld): rtems.build(bld) bld.includes = ['.', '../shared'] bld(features = 'c cprogram', target = 'mrbtree.exe', in...
affa0a1e60409bc700300ebcf5c8973a0f0a12b6
349cb9d4be39ef871e8d0735dc20de29f7bb8cd9
/src/executables/fractal_delay_application/main.py
a688cffa85b766a3732a6116a4d16a3a8a0b6738
[]
no_license
CryoViking/FrontEnd
40ab9e6fb59fee28c61b475f0ba926ce15b38499
3de41d6599b2b3069014e7474ca3dde9a19812eb
refs/heads/master
2023-01-10T21:46:19.502881
2020-11-05T20:11:37
2020-11-05T20:11:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,703
py
main.py
""" Author: Nathan van der Velde Date Created: 2020-9-22 GitHub: CryosisOS """ import struct import sys from argparse import ArgumentParser import numpy as np from numpy.random import seed from numpy.random import randn import random import scipy.interpolate from scipy import signal as sig # import matplotlib.pyplot a...
b134155a041a6d9a352ded6ba3ff457c68deb47f
72dc7d124cdac8f2dcab3f72e95e9a646154a6a0
/byceps/services/tourney/transfer/models.py
11cc9c6cde12123071082b82e6a7bcceec50464e
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
m-ober/byceps
e6569802ee76e8d81b892f1f547881010359e416
4d0d43446f3f86a7888ed55395bc2aba58eb52d5
refs/heads/master
2020-11-30T23:31:33.944870
2020-02-12T23:53:55
2020-02-12T23:56:04
40,315,983
0
0
null
2015-08-06T16:41:36
2015-08-06T16:41:36
null
UTF-8
Python
false
false
967
py
models.py
""" byceps.services.tourney.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2020 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from dataclasses import dataclass from datetime import datetime from typing import NewType, Optional from uuid import UUID from ...user.t...
275faad94200bd60a408dc1871b35ddf1967d70d
ab445a5f2fe0433ebc8ef137926762f0c40a4165
/big_data_orm/resources/base_model.py
5221f0f72a607f85d1d8a036e82957d763cc1c17
[]
no_license
cash2one/big-data-orm
2ed2fd3c8882fc73882232a003b52013f8eef211
9b89c6e110a87899060ca8e17d3741ff25fadd42
refs/heads/master
2020-05-23T00:50:25.880768
2017-02-16T17:14:38
2017-02-16T17:14:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,051
py
base_model.py
import logging from big_data_orm.resources.query import Query from big_data_orm.resources.column import Column class BaseModel(object): """ Base DB model. All models should inherit this one. """ __tablename__ = None def __init__(self): pass def query(self, *args): if not sel...
b6c48996929c96f41664050682949d85410f6d93
399f2b04973230e93d9572b7192d5dda0b680f0e
/mmdl/yt_utils.py
ac63da02e585f45855d7c3946926caa5b6529e1e
[ "MIT" ]
permissive
TrendingTechnology/mmdl
47e48a80c5662141295c0043eea81ef06a5facc5
7012719804f1d9403f3877838da103c26a3f326e
refs/heads/main
2023-06-29T12:32:37.184617
2021-08-03T10:38:23
2021-08-03T10:38:23
393,237,368
1
0
MIT
2021-08-06T03:32:51
2021-08-06T03:32:50
null
UTF-8
Python
false
false
3,343
py
yt_utils.py
from __future__ import unicode_literals from .utils import Utils import youtube_dl from youtubesearchpython.__future__ import VideosSearch from ytmusicapi import YTMusic YTMusic = YTMusic() from pathlib import Path import os import eyed3 import urllib from .globals import console class YtdlUtils(): def __init__(s...
28a468425289fa198f2be05e8ee63681d747cc79
16b81ffcb40b429bde1e9bc10e5eeddd9d2ec51f
/leetcode/rotate-list.py
28d280b0a17a8804bb798685d8ac7df6d69334cd
[]
no_license
suminb/coding-exercise
564424b7b98ea768c57a5b7f106fd7844e8e2843
b8b9377e7a76b498a9e6fb325743b16cbc943932
refs/heads/master
2023-06-16T03:01:59.009635
2020-05-09T11:09:25
2020-05-09T11:09:25
171,614,062
8
0
null
null
null
null
UTF-8
Python
false
false
777
py
rotate-list.py
# 61. Rotate List from leetcode import ListNode, TreeNode class Solution: def rotateRight(self, head: ListNode, k: int) -> ListNode: if k <= 0: return head n = self.len(head) if n == 0: return head p = n - (k % n) node, prev = head, None ne...
52768935ac8c7badef18ad3635c21cf8b7bafc24
d0f3134676d062c6ed23b0e72f3ec1a796522c56
/baekjoon/8393.py
8321ec7079dd74b437f901e14a9221913be33e5e
[]
no_license
izonejangwonyoung/python_algorithm
8e36d65732211339c35db2db1d22acc99f3833a9
0d405df61ddb0d947ffa60b9cc325e7be6a80a1f
refs/heads/master
2022-12-25T09:43:18.074761
2020-09-26T09:11:53
2020-09-26T09:11:53
283,502,456
1
0
null
null
null
null
UTF-8
Python
false
false
353
py
8393.py
# n이 주어졌을 때, 1부터 n까지 합을 구하는 프로그램을 작성하시오. # 입력 # 첫째 줄에 n (1 ≤ n ≤ 10,000)이 주어진다. # 출력 # 1부터 n까지 합을 출력한다. def plus_method(): n=int(input()) sum=0 for i in range(1,n+1): sum += i print(sum) plus_method()
78c5d85005056033e70e8dfa5ffea9e6e6f4198d
d4a801cbb67b11b9a7207c997c0e2e031720e0a8
/Chapter 13 - The four pillars of Object-Oriented-Programming /Challenge-2.py
9a77f3e3cd3345d443c4c7b735a59b383de4a46a
[]
no_license
ZordoC/the-self-taught-programmer-August-2019
49d3232fc4bf15d06e88ed9fff77fc03825ff9f9
ae72b7352f3ca4ada84419a42125a8e78ab65c3b
refs/heads/master
2020-07-05T10:43:59.430722
2019-08-20T23:09:54
2019-08-20T23:09:54
202,627,839
1
0
null
null
null
null
UTF-8
Python
false
false
755
py
Challenge-2.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 16 19:20:06 2019 Challenge 2 , create a method in Square called change size that lets you increase or decreas the side of the triangle. @author: zordo """ import sys class Square(): def __init__(self, l): self.lengh...
f123f0363676c56b8ca80c9716cb6c9ca71d66e8
ba00f1e037228dc145d374cda7973da97b3d4823
/algorithms/01_warmups/staircase.py
672f6936f769a4ec35b3b069974edf99e0e58e5d
[]
no_license
hasnatnayeem/hackerrank_solutions
8d6a700b212365d3de18c25a27dad73185f63e11
9caf87f62e0af3172c57bf083b38cec9d1715742
refs/heads/master
2021-01-18T20:29:28.316311
2018-08-07T11:02:23
2018-08-07T11:02:23
86,973,394
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
staircase.py
# https://www.hackerrank.com/challenges/staircase n = int(input().strip()) space = i = 1 while i <= n: for x in range(0, n - i): print(" ", end = "") for x in range(n - i, n): print("#", end = "") i += 1 print()
57a86ed139b176720d964b5061c94b82af0c5c8c
fc50a4edfd85944d404a0c4bbef9e6ce01465e69
/src/image_to_shm.py
a31edf68ddedf7377f1657b0a700b3b1838325bd
[]
no_license
xaxxontech/autocrawler_ros
ebd7ffacaed6b57896ad7b6fca30dfd0a7a33a3d
ceccb2c5a7b89398f3555753f7a7e8025823a376
refs/heads/master
2022-02-10T20:55:46.696626
2021-02-19T08:05:24
2021-02-19T08:05:24
226,453,154
0
1
null
null
null
null
UTF-8
Python
false
false
1,579
py
image_to_shm.py
#!/usr/bin/env python import rospy import os, shutil from sensor_msgs.msg import Image ''' rostopic info /camera/color/image_raw Type: sensor_msgs/Image rosmsg show sensor_msgs/Image std_msgs/Header header uint32 seq time stamp string frame_id uint32 height uint32 width string encoding uint8 is_bigendian uint3...
b0065339d5ff795c95e75d3cba25207ffc32be57
63ba933a294865f65409635f62e0f1d59f725f37
/src/trees/addOneRow.py
4d564571d52ce9f1398d85c74cb847d7942d58f0
[ "CC0-1.0" ]
permissive
way2arun/datastructures_algorithms
fc4302bdbb923ef8912a4acf75a286f2b695de2a
4ea4c1579c28308455be4dfa02bd45ebd88b2d0a
refs/heads/master
2021-12-07T04:34:35.732026
2021-09-30T12:11:32
2021-09-30T12:11:32
203,658,808
1
0
null
2020-08-08T15:55:09
2019-08-21T20:23:46
Python
UTF-8
Python
false
false
3,474
py
addOneRow.py
""" Add One Row to Tree Given the root of a binary tree, then value v and depth d, you need to add a row of nodes with value v at the given depth d. The root node is at depth 1. The adding rule is: given a positive integer depth d, for each NOT null tree nodes N in depth d-1, create two tree nodes with value v as N's ...
1c92955635c2c471272d03c98d0715582dc5656c
fa3b75bbdc61a8aeecb19fedd7024f3f0ac5718e
/fan_compost_config.py
7aaf2ff8fc7e0f7e08ba56a1ee542d7562e1b001
[]
no_license
jfng74/CompostServer
8b16bb6a48e27f61ab3e49423888b9040c900986
5326e30cb965346d58e8870dc6da433eabc464fb
refs/heads/master
2021-01-19T09:08:30.477895
2017-04-11T23:18:34
2017-04-11T23:18:34
87,729,207
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
fan_compost_config.py
# Compost_FAN_server_port port = 50008 # csv files compost_csv_file = 'fan_compost.csv' # rrd fan_compost_dir = './' rrd_dir = fan_compost_dir rrd_png = fan_compost_dir # Feather Serial Port serial_feather_port_0 = '/dev/ttyACM0' serial_feather_port_1 = '/dev/ttyAMA0' serial_feather_port = serial_feather_port_0
125c37fabbb012f9f4a26a1b136bcf509310cc8c
23e5670e08e73d7b49d1fd9ebe98f2bb5605629a
/State_Machine/breaking_altitude_into_2_and_back_up_again.py
ff357a4426b2e95ff8fbb2bbc578e9e442c9ec83
[]
no_license
The-Airplane-Project/Remote-Controlled-Airplane
b7f7a71fb51fee87e5a29fc660f6121441c69357
2b043c42f5c8b3f206fbf1c54891dc344e7b02a3
refs/heads/develop
2023-04-23T13:59:35.028084
2021-05-05T17:49:06
2021-05-05T17:49:06
303,905,364
3
1
null
2021-05-05T17:49:07
2020-10-14T04:46:11
Python
UTF-8
Python
false
false
537
py
breaking_altitude_into_2_and_back_up_again.py
# Online Python compiler (interpreter) to run Python online. # Write Python 3 code in this online editor and run it. num = -5510 if num<0: num = abs(num) print (num) x = ( num & 0b11111111) y = ((num>>8) & 0b11111111) y = y | (0b1<<7) else: print(num) x = ( num & 0b11111111) y = ((num>>8...
abdf5bd75c40cfb1e63bfacfe830e6e75a3384f4
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02623/s095713288.py
2c7fdf48f470e7ad48e1dad9b69c944993e9fe70
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
s095713288.py
N, M, K = map(int, input().split()) a = list(map(int, input().split())) b = list(map(int, input().split())) min = 0 cnt = 0 for k in b: min += k j = M for i in range(N+1): while(j > 0 and min > K): j -= 1 min -= b[j] if(min > K): break cnt = max(cnt, i + j) if(i == N): ...
30511b7db8d9c5c5fbd51f4583f860c83eeec3d0
85b2f8ccbd4198d32c8c5f168b01757274195dac
/IEEE-DataMining-2020-homework/src/try.py
f671c56952b6460cebc660f2d2d257294986d7db
[]
no_license
yc-Claire/data-mining
663f736e6669b20821bbfe5340357db9fcb097df
c84c48a09a2e1bcf51f7a0f97c0d5d98388739af
refs/heads/master
2022-11-12T13:48:21.743630
2020-07-06T12:10:00
2020-07-06T12:10:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
try.py
clusters=[ [2,3,4,5], [1,6], [7,8,9] ] index=[0] tmp=0 for i in range(len(clusters)): tmp+=len(clusters[i]) index.append(tmp) graph_rearrange=[] for item in clusters: graph_rearrange.extend(item) # raise Exception('STOP!') for i in range(len(clusters)): for v in clusters...
e0fc9f3746e29c32e107427d3851c7628d75c220
6b0aae1b55e50f8d8f992e0ce494b8fa84fe2fa4
/Part_3.py
1a2656f324fe604476af83ab3c27e56060252393
[]
no_license
ThomasIAE/Part_1_Castex_Pauly
dce1e81e49cc6b686ba733f7b52b8a1e41921258
b2b27a4b851e594287ce14433fe3ea6adc63741b
refs/heads/master
2021-01-21T10:25:37.822855
2017-02-28T19:19:16
2017-02-28T19:19:16
83,422,771
0
0
null
null
null
null
UTF-8
Python
false
false
947
py
Part_3.py
import string import random random.choice(string.ascii_letters) class investors(object): class agressive(investors): def __init__(self, investment, type, date_begin): self.investment = investment self.type = type self.date_begin = date_begin class defensive(self, investment, type, date_b...
5ef7c838d8e9a05a09bd974790a85ff36d56a336
7114e23f02d4f1ef10aba1ab6d5393184d5940d9
/test.py
07aad1ed674478b0738ba562b446097527e17b05
[]
no_license
EuKudryashova/interrupt
1042ef0e06d4091c6f847222d9277aa937b37cf0
5eb00966b8c707310ca3c2d15fa2486363b96394
refs/heads/master
2021-01-10T17:11:18.584963
2016-02-09T11:47:01
2016-02-09T11:47:01
51,363,703
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
test.py
import mock def exc(): print 'here should raise' def recursion(): try: print 'here' return exc() except StandardError: print 'exc' return recursion() def test_recursion(): global exc exc = mock.Mock(side_effect = [StandardError, StandardError, mock.DEFAULT]) r...
88b3dd7414a68de65bafb317fbd4da2b1bc933fc
13f73518c24a2b2adfb50b73bca68a6aeb35e6d6
/corec.py
329ec47527b2e347859a044714c72111e96bae96
[]
no_license
kantale/corec_tools
9c677655a4a9d5e8e01c69b62d8298b63d024caf
23ed8238c5988742fc91533b062d031514949aee
refs/heads/master
2021-01-18T20:53:26.851234
2016-12-09T14:25:44
2016-12-09T14:25:44
69,846,979
0
0
null
null
null
null
UTF-8
Python
false
false
862
py
corec.py
import json def corec_set(parameter, value): params_fn = "corec_parameters.json" with open(params_fn) as f: params = json.load(f) params[parameter] = value with open(params_fn, 'w') as f: json.dump(params, f, indent=4) def corec_get(parameter): params_fn = "corec_parameters.json" with open(params_fn)...
095374aa7613f163fedbd7d253219478108d4f42
294a1cbf26f21f8ce42d273bf0b9074b01281943
/后端/smart_medical_kit/celery_tasks/config.py
502a8a882dbf4eddd5410fa073adf96443e08ec5
[ "MIT" ]
permissive
2943102883/smart_medical
6f840562d34b3fbccf94941982006ad0f604fc5d
27184255b2f84f15d371431d6e42aeb43b6e5e51
refs/heads/main
2023-06-30T17:08:48.076773
2021-07-28T13:40:58
2021-07-28T13:40:58
388,407,887
3
0
null
null
null
null
UTF-8
Python
false
false
175
py
config.py
# Celery配置文件 # 指定消息队列为Redis broker_url = "redis://120.78.168.67/10" CELERY_RESULT_BACKEND = "redis://120.78.168.67/0" CELERY_TIMEZONE = 'Asia/Shanghai'
2c1de638ac25a9f27b1af94fa075b7c1b9df6884
021dfd17c739090e6a29fa8cee5d4c36cf39347e
/zheroes/smslink/migrations/0003_auto__add_field_phoneuser_last_contacted.py
864b10c0994627baa5ef34175d2de3544590eee8
[]
no_license
gareth-lloyd/zheroes
9ab3b008fcd0503eb7fef05e9f00d8124aec38f3
0a86be662fb3056a00961bebf074006141fe3ce7
refs/heads/master
2021-01-25T12:02:35.048831
2013-07-19T07:47:56
2013-07-19T07:55:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,213
py
0003_auto__add_field_phoneuser_last_contacted.py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'PhoneUser.last_contacted' db.add_column(u'smslink_phoneuser', 'last_contacted', ...
18bad56ff6d230e63e83174672b8aa8625c1ebb4
e4bd01046f888dd33d457ebedd980fa160ffd514
/musilette.py
4fd72d2df9f6d60cb3d6f34362b8dbad99ed6e7e
[]
no_license
magservel/musilette
c0a350ef7895d6d6362909c707e746bbe5aaa974
04b91f37db70394787668a8c210c783d3c5ba833
refs/heads/master
2020-04-20T17:16:19.634484
2019-02-04T22:38:43
2019-02-04T22:38:43
168,984,138
0
0
null
null
null
null
UTF-8
Python
false
false
3,844
py
musilette.py
RANGES = { # Intervalles de la gamme majeure 0: [1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1], # Intervalles de la gamme mineure naturelle 1: [1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0], # Intervalles de la gamme mineure harmonique 2: [1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1] } RANGES_NAMES = { 'fr': ['Maje...
364ac79e0f885c67f2fff57dfe3ddde63f0c269e
2cb1808a823c66a7483a8a7ce0b5929100c2e551
/backend/test_flaskr.py
755d587a96bc9faa03d993af28107880991d86ac
[]
no_license
ollie-ollie/trivia_project
56c00ba3aa4454e026997bd7b22a8114aabc0843
a48e5923ae1d572780baa8c6429dcd1b503799ec
refs/heads/main
2023-03-10T07:52:46.900234
2021-02-18T18:38:13
2021-02-18T18:38:13
339,117,066
0
0
null
null
null
null
UTF-8
Python
false
false
6,872
py
test_flaskr.py
import os import unittest import json from flask_sqlalchemy import SQLAlchemy from flaskr import create_app from models import setup_db, Question DB_HOST = os.getenv('DB_HOST', '127.0.0.1:5432') DB_USER = os.getenv('DB_USER', 'postgres') DB_PASSWORD = os.getenv('DB_PASSWORD', 'postgres') DB_NAME = os.getenv('DB_NAME'...
34c81b9318d978305748d413c869a86ee6709e2c
c6f8fb77a2d4e736ccee8f7d3e01aaaac121aa7e
/dmp_vfc/src/utils/constants.py
cde0cff077f33e37d92cfdd8ada493ac06fefade
[]
no_license
mustang66ytz/motion_planner
22a2ed7a7bc634f2bcdc70f8fd1dd279167b7af7
dd862141edf3d7c986da9c48bc07a780a979fb73
refs/heads/master
2020-04-30T19:05:36.743539
2019-04-29T23:14:29
2019-04-29T23:14:29
177,028,441
1
0
null
null
null
null
UTF-8
Python
false
false
2,902
py
constants.py
# import visual_servoing_utils_main as utils from autolab_core import rigid_transformations as rt from yumipy import YuMiState class YumiConstants: T_gripper_gripperV = rt.RigidTransform(rotation=[[-1, 0, 0], [0, 1, 0], [0, 0, -1]], from_frame='gripper', to_frame='obj') ...
04099c46c029af37a08b3861809da13b3cc3153b
1e4eefff1c19ffb81016ce99f2284fb657293f65
/sorting/src/quick_sort.py
6f744f00a9128f2828372779f954c8297d9716e8
[]
no_license
Solero93/bcn-algorithm-club-py
5e1edf15f087e0edf2cf7ba0859fb5e4523525ad
1edf407498756e7ba36534387bb4241b8b455c4f
refs/heads/master
2020-03-28T09:06:30.328130
2019-03-25T10:38:48
2019-03-25T10:38:48
148,014,386
3
1
null
null
null
null
UTF-8
Python
false
false
1,025
py
quick_sort.py
""" OBJECTIVE: Given a list, sort it from low to high using the QUICK SORT algorithm Quicksort first divides a large array into two smaller sub-arrays: the low elements and the high elements. Quicksort can then recursively sort the sub-arrays. The steps are: 1. Pick an element, called a pivot, from the array. 2. Par...
9a6d6637cd4ecf2f6e9c8eb8e702be06e83beea4
dde50b3d95f3bc32aaa2f458c01c1876ec01910e
/fisher.py
57718683548e984844782ef4a159f95bbf88c747
[]
no_license
Linxd2015/fisher
18185efbddee4a8a25705062e823886abc924d09
08fc4402840956f1fa141db689a84e38e4a95189
refs/heads/master
2022-12-14T04:18:09.037414
2018-07-08T16:20:19
2018-07-08T16:20:19
131,174,442
0
0
null
2021-03-19T23:38:29
2018-04-26T15:17:45
CSS
UTF-8
Python
false
false
137
py
fisher.py
from app import create_app __author__ = '七月' app = create_app() if __name__ == '__main__': app.run(debug=app.config['DEBUG'])
f405a3e9ccabbba6719f632eb9c51809b8deb319
fc126abd52c1c19957928438bf102ef6c538cb8d
/processPiResults.py
e6ad8b698910a078927989eeba2bb317c6fca131
[]
no_license
Worm4047/CloudComputingProj1
f479af9ad5486e68646f1c18e220d25d6d44c9b1
dd66c7dac196eec1be77c50814986376fc272caa
refs/heads/master
2022-04-11T00:51:57.227649
2020-03-30T22:44:56
2020-03-30T22:44:56
246,965,072
0
0
null
null
null
null
UTF-8
Python
false
false
3,157
py
processPiResults.py
import boto3 from botocore.exceptions import ClientError import logging import subprocess import string import random import time import os import sys import time import json from ProgressPercentage import * import logging def upload_file(file_name, object_name=None): RESULT_BUCKET_NAME = "worm4047bucket2" s...
6973aefed162758cabdda8e784edf30f9badb4ab
23a4789323e0b9091c0286f6dbf9b920d0696ecc
/app/api/v1/models/questionscontroller.py
392b59722ee4f51f5129209cdd370257b1812df8
[ "MIT" ]
permissive
wachiranduati/Questioner
ce17fd1fadc63e8793ed97fa75edd6890887c3ac
586451f4e1c467e734b8d9d4e380c70c86b672f7
refs/heads/develop
2020-04-14T22:52:18.573900
2019-01-19T01:23:35
2019-01-19T01:23:35
164,181,198
0
0
null
null
null
null
UTF-8
Python
false
false
3,719
py
questionscontroller.py
from datetime import datetime from app.api.v1.utils.validator import PostedDataValidator from app.api.v1.utils.customrequesthandler import CustomValidationRequestHandler from .meetupscontroller import MeetUpController validtr = PostedDataValidator() customrqstHndlr = CustomValidationRequestHandler() meetupCntrl = Mee...
3971fe12d1f4302e4f2a18d496040f6abe434946
06cb61f5cb4122e3812d782da29b0f1dc8493e5a
/run.py
30ff5b238679113863132cabb22d9e43f15c2995
[]
no_license
oampo/jhtrnr
ddce1b55b9537bd93f00283d208cc62769b38a99
27ea15eeec03e239ca31f995f5a73c406f1475c0
refs/heads/master
2016-09-16T04:16:04.750380
2014-06-11T16:15:51
2014-06-11T16:15:51
20,558,910
1
1
null
null
null
null
UTF-8
Python
false
false
815
py
run.py
import os import os.path import json from flask import Flask, Response, send_from_directory app = Flask(__name__) app.debug = True @app.route("/") @app.route("/<path:path>") def index(path=None): return send_from_directory(app.root_path, "index.html") @app.route("/<path>/files") def local_files(path): files...
d943fe643fda8ef7dafa1d14ee94ddd3fbdd6bbf
eacef26df34084261cf488348081ae6f9b664d97
/removeduplicate2.py
bbe672eb2c9949f19aafca395d0a8bee193ee920
[]
no_license
foursking1/leetcode
24252e02cd9952bd7a6ce78ffed2b0608d624df2
1e24631500e647709a8894d5b5bb3b523a651966
refs/heads/master
2021-01-01T15:51:37.751516
2015-02-25T03:32:41
2015-02-25T03:32:41
30,954,743
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
removeduplicate2.py
class Solution: # @param A a list of integers # @return an integer def removeDuplicates(self, A): sz = 0 for i in range(len(A)): if sz < 2 or A[sz - 2] != A[i]: A[sz] = A[i] sz = sz + 1 return sz s = Solution() A = [1,1,1,1,2,2,3,...
86a6772f32a8982f6e2c51d29703ca4a9d84d78b
fec3f8e02854f692a6a1f137846537e334ace405
/db_shell.py
79e435eb4e36a11c1bad48bd2c2ae11bab519d05
[ "BSD-3-Clause" ]
permissive
devCMU17/beiwe-backend
02eb6d609a1d2d8930c8de4d0879f75853e6e98b
84f74ca33771f6e6824f9ee732b43f6f9c7918a4
refs/heads/master
2020-04-11T04:58:12.280944
2018-01-16T19:31:48
2018-01-16T19:31:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
541
py
db_shell.py
from libs.s3 import * from db.user_models import User, Users, Admin, Admins from db.study_models import Survey, Surveys, Study, Studies, StudyDeviceSettings, StudyDeviceSettingsCollection from db.data_access_models import ChunkRegistry, ChunksRegistry, FileProcessLock, FileProcessLockCollection, FilesToProcess, File...
524d3dc1f5525a495e3bc5019d1ffeffbe8f6d29
6d55da8fe1deaa59350d8bbf10a62e1c8372b3d7
/Python/Joe_Sitio_Vianala/script.py
0cc4b67b8d02e269e29532492d9ef9699a85458c
[]
no_license
NelaSvozilikova/freelance
528dea35db4e74e1f33cebd25113e2f531304374
81b4e0b431760f3ac306b0a49cbca6a5104dccc7
refs/heads/master
2020-07-06T06:53:43.217132
2018-04-17T17:18:41
2018-04-17T17:18:41
202,928,413
0
0
null
2019-08-17T20:27:53
2019-08-17T20:27:52
null
UTF-8
Python
false
false
9,033
py
script.py
import sys sys.path.append('../STANDAR_LIBRARIES') from URL_Lib import descargarResultadoData from File_Lib import saveFile, saveFileExc, loadFile import re import requests from bs4 import BeautifulSoup # pip install beautifulsoup4 import http.client # # # ********************************** Programa principal ***...
8f4edfbab91b6e82e080ebc017688c251b109e69
11b62d07dcfca2e907a580cdca01b96d77da630d
/euler/p070.py
480913433173946e5949c8c2da9cda1d92bd3f4f
[]
no_license
csernazs/misc
bb2acb556a1229319cc29d3dce12c76accba6805
99eccdd5fb3b2caa741f0dcfbc4b4fa4001746fd
refs/heads/master
2023-04-03T06:30:16.103369
2023-03-30T22:48:37
2023-03-30T22:48:37
5,007,986
3
0
null
null
null
null
UTF-8
Python
false
false
1,102
py
p070.py
from __future__ import division from math import sqrt import prime MAX=10000000 min_range = int(sqrt(MAX)*0.5) max_range = int(sqrt(MAX)*1.5) print "min_range", min_range print "max_range", max_range primes = [x for x in prime.get_primes(max_range) if x>min_range] print primes def is_perm(a, b): a_s = str(a...
69b862f84e9c834e650f300c2c831ae1277e63dc
50fb25631cdc03a868f09061e76f4dedf85f2d3f
/crawler_sys/tools/add_releasers_video_data.py
34ac4ad8f13b7e1ee84d9ed392bf5841d9216f6d
[]
no_license
silade/crawler
20a88c0eb6471f79a5d5daf947dcbff681d11e6e
fbfe3c4feca8be61186aec986b600b36f513f7f4
refs/heads/main
2023-03-10T10:06:21.097103
2021-02-19T16:00:45
2021-02-19T16:00:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,334
py
add_releasers_video_data.py
# -*- coding: utf-8 -*- """ Created on Thu Sep 6 09:22:24 2018 @author: fangyucheng """ import time from crawler.crawler_sys.framework.platform_crawler_register import get_crawler from crawler.crawler_sys.utils import trans_format def get_target_releaser_video_info(file_name, outp...
df6698ed59f7a1a3cf33b8097d77bd207292e3b3
8dca6ef4df2ee9527e4f5c45ed9b4ec94c2dbf98
/client.py
b0b5018dd53a2e0a2ffc1849e24bad0190ee6de8
[]
no_license
346pa034/python-dns-data-exfiltrator
299df98e9159340057fc46e0df915dcd3e31e9f1
51d065a014104a89271291c5ba1ed2598e3862eb
refs/heads/master
2023-04-23T16:49:14.853056
2021-05-17T11:39:20
2021-05-17T11:39:20
367,970,364
2
0
null
null
null
null
UTF-8
Python
false
false
3,812
py
client.py
import binascii import dns.name import dns.message import dns.query import dns.flags import dns.resolver import time import os.path import base64 from crypto import AES256 class ExfilClient: def __init__(self, args): self.dest = args.dest self.port = args.port self.delay = float(args.delay...
7325ba8eadcf0e9ffb1e43176d331630028b8cbf
27a85a93fe67c8712dba8f2dc936d3f473daee0f
/Week 6/Problem_E.py
4c4f234245820340229b7e770185f2166b64df2f
[]
no_license
thiaguin/Algorithms
472f6653631118ca333dd8a5703fece96d203038
ac51428ae2e6b09e8a205abc69d760846c0e7a39
refs/heads/master
2023-01-23T00:01:42.196935
2020-12-05T03:27:45
2020-12-05T03:27:45
292,856,685
0
0
null
null
null
null
UTF-8
Python
false
false
1,016
py
Problem_E.py
# Title -> New Year and Ascent Sequence # Description -> codeforces.com/contest/1284/problem/B n = input() maximums = [] minimums = [] def add_max_and_min(array): minimum = array[0] maximum = array[0] flag = False for i in range(1, len(array)): if (array[i] < minimum): minimum =...
3df161f6d6d0faa7cc052068fef6f4f667c8c6c1
64f31364d8defec1f8bfa1e16f02be43d050f275
/twilio/rest/accounts/__init__.py
e2275aea44ae5677567b8e77f96d529b84e1ac0b
[ "MIT" ]
permissive
twilio/twilio-python
198e841186b977d043f84b56abf83f62bd468563
9991fab510b8980b6e3580a7a96c1db504d90c38
refs/heads/main
2023-08-31T09:53:14.427790
2023-08-24T07:32:59
2023-08-24T07:32:59
307,447
1,621
749
MIT
2023-09-09T00:25:23
2009-09-15T05:33:57
Python
UTF-8
Python
false
false
1,168
py
__init__.py
from warnings import warn from twilio.rest.accounts.AccountsBase import AccountsBase from twilio.rest.accounts.v1.auth_token_promotion import AuthTokenPromotionList from twilio.rest.accounts.v1.credential import CredentialList from twilio.rest.accounts.v1.secondary_auth_token import SecondaryAuthTokenList class Acco...
6105590b026311454054426401fc7ba0d0181e88
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02759/s832604009.py
861943b12e65b617f2a00be279f59aa6cfee67b6
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
s832604009.py
i = int(input()) print(int(i / 2) + (i % 2))
334abe21b748ccaffcd3851cd70bcf3cc7d43983
8fa87ceafa6ee0c521f80c205772512d7ecc482b
/frames/user_center.py
b8d1678a9cf8d18a02aea60c978b758736073188
[]
no_license
zizle/FuturesAssistantClient
fe7a7f457dffc9a5771abc0d4a67ce584999b052
3519657f5f352f137b7a7c7a51d7ca43fbdea4f9
refs/heads/main
2023-06-03T00:24:45.540553
2020-12-31T07:48:57
2020-12-31T07:48:57
304,493,799
0
0
null
2021-05-25T06:40:03
2020-10-16T02:01:57
Python
UTF-8
Python
false
false
3,288
py
user_center.py
# _*_ coding:utf-8 _*_ # @File : user_center.py # @Time : 2020-08-28 16:26 # @Author: zizle import json from PyQt5.QtWidgets import qApp from PyQt5.QtNetwork import QNetworkRequest, QNetworkReply from PyQt5.QtCore import QUrl, pyqtSignal from .user_center_ui import UserCenterUI from utils.client import get_client_uui...
89363caa7a1cc3d0615f8e7dbfd05deb3d45a232
7babe54fbc0fce645c572d141b464fcb4e214f85
/Lushu/models/cityBizInfo.py
78c3eb630967750faddae41735c1bf0b3e3234d3
[]
no_license
swolfod/Lushu-Demo
488822009dcdf0f6ba485904b17b641782769d66
42b083404cb181770c54d91006fb67be3b06129c
refs/heads/master
2016-09-06T10:12:35.554785
2014-06-04T09:46:26
2014-06-04T09:46:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
cityBizInfo.py
__author__ = 'Swolfod' # -*- coding: utf-8 -*- from django.db import models from .city import City from .state import State class CityBizInfo(models.Model): city = models.OneToOneField(City, related_name="bizInfo") restaurantCnt = models.IntegerField() restaurantPrice = models.FloatField() restaurantR...
96bcf0de42f196dd3566705d8904c4db4dd18fa1
139a7de778e2a5993164020c9f0dba6dd67d4b88
/cree_categories.py
e9aff2e35280fe182cc8d7183c2417f989964081
[]
no_license
blacherez/dotclear2wp
bcf013d843048d60477cbb8f359eb17555339159
4f25864a5d8a92417d667ecef5743c0327321251
refs/heads/master
2021-06-06T12:52:26.848707
2018-05-18T08:08:04
2018-05-18T08:08:04
132,621,142
0
0
null
2021-06-01T22:10:46
2018-05-08T14:28:56
Python
UTF-8
Python
false
false
3,514
py
cree_categories.py
# -*- coding: utf-8 -*- """ Crée les catégories qui n'existent pas encore dans le nouveau blog et enregistre un fichier json des correspondances d'id Le script principal fonctionne avec un fichier CSV des catégories de l'ancien blog, mais les fonctions peuvent être appelées depuis d'autres scripts pour s'adapter à d'au...
b0a813912d41f2cbbf16e65718b4c529c12c4e15
d38c87a4987508518472aa55b7de6be952a58d2a
/main/command/Go.py
c1c5da148adcfb496a35d8cbb21d9df4f5f175de
[]
no_license
lbaribeau/los-helper
43ca8984e87433a147d21ff0621342efe6433534
94534df7f3a2bee2c5c84e75c993b593910770fa
refs/heads/master
2023-08-10T21:03:47.248417
2016-11-01T16:13:06
2016-11-01T16:13:06
14,797,233
1
1
null
2022-08-12T13:56:27
2013-11-29T09:26:41
Python
UTF-8
Python
false
false
3,474
py
Go.py
import re import time from itertools import chain from command.Command import Command from comm import RegexStore from misc_functions import magentaprint class Go(Command): command = 'go' success_regexes = [RegexStore.area, RegexStore.too_dark] error_regexes = [RegexStore.no_exit, RegexStore.go_where] ...
f1a48007198a11b9bf1047bf82328e89d2094404
19eb6bdeff995bd2f57dea96dfbaf8bb00f385eb
/examples/main_custom.py
72db6e2e43f357eb8eaa9b3413df6d1c1d4a5453
[]
no_license
alzami1986/tvb-epilepsy
bc64947f064718500c156c9e99ed45eae0cbc7d3
03898bd4731b02f252e31f823badec25612c3457
refs/heads/master
2021-01-20T01:44:07.018835
2017-04-24T08:55:49
2017-04-24T08:55:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,347
py
main_custom.py
""" Entry point to run a custom simulation """ import os import copy import numpy from tvb_epilepsy.base.constants import X0_DEF from tvb_epilepsy.base.hypothesis import Hypothesis from tvb_epilepsy.base.plot_tools import plot_head, plot_hypothesis, plot_timeseries, plot_trajectories from tvb_epilepsy.base.utils impo...
ecbc1355ecdbb16e30360966794e3b01b0fb754c
d6d4fb61d1d2f4d166262009e257295188f969bb
/Consumo.py
1a687bb3fb8f2883349777376ad138063bb6ad5d
[]
no_license
juhgarca/GarcaSimulator
c9f6f484399a1b456b87d6d8e35eae5259f4bc4c
8ea30f7af731f3aa0fb6c9e7856faede0d17fb8c
refs/heads/master
2020-04-02T19:18:51.858033
2018-12-06T09:09:41
2018-12-06T09:09:41
150,405,111
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
Consumo.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Oct 24 09:52:50 2018 @author: juliana """ class Consumo(object): def __init__(self): self.consumo = 0 def consume(self, x): self.consumo += x def run(self, n_id, batt): batt.d...
c381166f6858d5bb36acde0bae30bd75911433f3
3fbd39a8862a434f14fbe32c3a6988cb80e3114e
/ecore-server/ecore/addons/website_version/models/res_config.py
3759ecd3529f117145ff67ca84a82c7ac124d657
[]
no_license
ecoreos/i6
9fd9a418f09ce410eff006601d7abd8de4080902
c44f6778b5e5c95994626b4e66768e63437da934
refs/heads/master
2016-09-19T04:32:32.839257
2016-09-13T02:56:49
2016-09-13T02:56:49
66,726,142
0
0
null
null
null
null
UTF-8
Python
false
false
1,154
py
res_config.py
from ecore import fields, models, api class analytics_config_settings(models.TransientModel): _inherit = 'base.config.settings' ga_sync = fields.Boolean("Show tutorial to know how to get my 'Client ID' and my 'Client Secret'") ga_client_id = fields.Char('Client ID') ga_client_secret = fields.Cha...
6b21060cd30d42fe6f6c818824d55fdf25175dbc
c2b9d120a706dc6658d21f4211968ee1c0cb04af
/application/makepdf.py
a34f51e9ec0cd9a5dd231ce132b2255504afd3b9
[]
no_license
gterranova/makepdf
f88fdc9501bd2804fb934b4b23f8d75eb3fa8177
f45a70b2f299a3cc988cecc57ef22dd9895fffc8
refs/heads/master
2021-01-13T09:36:46.207707
2012-04-11T18:18:28
2012-04-11T18:18:28
72,042,016
0
0
null
null
null
null
UTF-8
Python
false
false
17,594
py
makepdf.py
#!/usr/bin/python # -*- coding: utf-8 -*- #used some code from the WxPython wiki: #-1.4 Recursively building a list into a wxTreeCtrl (yet another sample) by Rob #-1.5 Simple Drag and Drop by Titus #-TraversingwxTree #tested on wxPython 2.5.4 and Python 2.4, under Windows and Linux import os, sys import ...
b0730c1317aefae6bc962ecd05a920cdac379d77
07fd95257aff8b8e7333d4847328bf8e4fe5e601
/c3_中华商务_氧化镝.py
8aabf497d619ba182998d179c0c64d9abfcdab01
[]
no_license
bhcgdh/Part1_WebSrapping_example
a1af495dbe7e2661d45ea8a5f007feb704a953cb
28ea57b49b1ca611636b89ae1eb6f647bed37b9c
refs/heads/master
2021-05-17T01:12:27.243805
2020-03-29T09:05:46
2020-03-29T09:05:46
250,550,819
1
1
null
null
null
null
UTF-8
Python
false
false
3,638
py
c3_中华商务_氧化镝.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import warnings warnings.filterwarnings('ignore') import requests from bs4 import BeautifulSoup import pandas as pd from a0_mysql import del_sql,get_sql_data,to_sql # from a0_serversql import del_sql,get_sql_data,to_sql # sql server 数据库 '''1 基本数据,headers和网站的账号密码...
95bf22e378ebf315e8c34bdde0437b8ee1aada9b
f897f0e594a9157b9e56cee8b24f68bb9c9221f8
/aml_workspace/src/AML/aml_robot/src/aml_robot/box2d/push_world.py
3065364090e42384921f91037239e9f61724f115
[]
no_license
HDClark94/Honeycomb
b1056a0f8b41312d0a87d5cd80803a2baf613bae
96899e6b362358d0ce1e3671cbc77f30856c80ac
refs/heads/master
2020-03-29T19:48:29.330790
2018-10-22T07:50:01
2018-10-22T07:50:01
150,281,789
0
0
null
null
null
null
UTF-8
Python
false
false
9,275
py
push_world.py
import numpy as np import pygame import matplotlib matplotlib.use("Qt4Agg") # For using matplotlib with pygame import matplotlib.pyplot as plt import threading import Box2D # The main library # Box2D.b2 maps Box2D.b2Vec2 to vec2 (and so on) from Box2D.b2 import (world, polygonShape, staticBody, dynamicBody) impor...
684591770e917c91304a43777cdc67fe4712194f
75264412a9bcedb14af9f602c050522f2d10ec4e
/sih2019-master/sihproject/sihapp/admin.py
5e27a65982c8eb75add3388a13832f4866b18ba0
[]
no_license
kedar36/sih2019
643b60a6dd8cb19b3bde9bf31d751a5cb208c67f
3bf1716b376bd58d940e5889f2212cd63f5430ec
refs/heads/master
2022-11-27T20:04:29.974389
2020-11-29T11:46:56
2020-11-29T11:46:56
190,128,323
0
0
null
2022-11-22T03:33:51
2019-06-04T04:21:07
JavaScript
UTF-8
Python
false
false
256
py
admin.py
from django.contrib import admin from . import models admin.site.site_header = "TVS Motors Administration" admin.site.site_title = "TVS Motors Administration" admin.site.index_title = "" admin.site.register(models.Sale) admin.site.register(models.ShowRoom)
a4065247b83c4908c269711ec27eed52034c070e
0418d0d702390cdbea9458adefa75640f346bf3f
/src/calchas/trip.py
e281ca8bae268d02aa8180dd286acb91e7471ae6
[ "MIT" ]
permissive
vobject/calchas
9d7263e61bc2255ca762ee7a80c3b6595f0373e2
6bb066711497ca8d64aecedf6b876eb6403ab1a6
refs/heads/master
2022-11-05T23:14:58.167401
2020-06-12T22:27:06
2020-06-12T22:27:06
255,722,863
0
0
null
null
null
null
UTF-8
Python
false
false
7,736
py
trip.py
import datetime import json import logging import os import re import shutil from typing import Any, Dict, List from calchas import utils class Trip: TRIP_OPTIONS_VERSION = "1.0.0" TRIP_OPTIONS_FILE = "trip_options.json" def __init__(self, parent_dir=".", mode="r", options: Dict[str, Any]=None, remove_o...
ae880fffd9a8deb4be6f2c1d49f327df3a585055
401f3a8bf55c380a1d4a5e7d49ef7d8ff0d3d452
/api/migrations (copia)/0003_auto_20191027_0940.py
9dde05d7efb49793098247e974fbb0efdf51206d
[]
no_license
jgersain/umbrella-app
3074332058d6cc83a39708ed68d5ff56cf0a8fb6
53cbbbc63a68b7acb184255cd3146b82a6803b52
refs/heads/master
2023-01-13T15:25:35.074699
2019-10-31T07:52:41
2019-10-31T07:52:41
193,271,069
0
0
null
2023-01-04T23:16:47
2019-06-22T19:16:34
Python
UTF-8
Python
false
false
731
py
0003_auto_20191027_0940.py
# Generated by Django 2.2.6 on 2019-10-27 15:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0002_auto_20191026_1225'), ] operations = [ migrations.RenameField( model_name='prestamo', old_name='fecha_in...
27bf00702e0921ab6350279002ce5d7c5361439b
8c85c8731f07c52617a70ac6e8bde9f912039e18
/post-processing/src/scripts/convert_to_csv_2013_06/convert_to_csv_mod.py
860b9cfbc05155e428fe18cbd8a98ab0b596a770
[]
no_license
sesef/boinc-magphys
15dbb7b0d62c2cd99448fb08ce32f14a650ddec7
606d5bad6612ebfe4832c3c435c457e4ecc427aa
refs/heads/master
2021-01-23T22:23:55.590141
2013-08-13T02:02:22
2013-08-13T02:02:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,330
py
convert_to_csv_mod.py
# # (c) UWA, The University of Western Australia # M468/35 Stirling Hwy # Perth WA 6009 # Australia # # Copyright by UWA, 2012 # All rights reserved # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as publ...
81e1aa20f91a08ddd4eb90cb2c4d91f5b1b2c5d1
c6a326782e60c51d0dfd50bb7f701cf69e89a3f2
/owslib/util.py
6a7a4bcee342f622184c978286bf51fbc53dcdbd
[ "BSD-3-Clause" ]
permissive
bird-house/OWSLib
cdb08c2d7222ef1de04dac6cba49ea8fccd2d88f
94b68c3a497978404edf486140138e4b9e340aba
refs/heads/master
2020-12-03T05:28:35.949553
2020-09-16T12:34:20
2020-09-16T12:34:20
39,003,153
2
1
BSD-3-Clause
2020-09-17T17:14:53
2015-07-13T09:29:45
Python
UTF-8
Python
false
false
28,454
py
util.py
# -*- coding: ISO-8859-15 -*- # ============================================================================= # Copyright (c) 2008 Tom Kralidis # # Authors : Tom Kralidis <tomkralidis@gmail.com> # # Contact email: tomkralidis@gmail.com # ============================================================================= imp...
94a96d11b02fef4ec9a7d3c935c8792ba4ba4ca5
1aab1252fe0c8ba9cccc7547e74c520786c143b5
/camerahudlib/private/plugin_draw_manager.py
42654a850eb83274dc6219096adc6af009b29be9
[]
no_license
dardnoob/CameraHUD
e4cc290de9a99caa513f8a3d105060970877c163
223608371a29a787ce85f0cdaadf8298326085e5
refs/heads/master
2022-11-21T11:15:53.537952
2020-07-20T22:24:20
2020-07-20T22:24:20
280,899,354
3
0
null
null
null
null
UTF-8
Python
false
false
37,317
py
plugin_draw_manager.py
import datetime import maya.api.OpenMaya as OpenMaya import maya.api.OpenMayaUI as OpenMayaUI import maya.cmds as cmds from camerahudlib import constants from camerahudlib.private.canvas import Canvas from camerahudlib.private.plugin_data import PluginData from camerahudlib.private.plugin_draw_request import PluginDraw...
cf1b0132cb2cd2b13168d9cecca3dc3b3cf787ed
6e27157b2e7b26a996d61b05d8fb4ed5fb134b45
/#13.py
ebbe03fb9787c3548eca0d03ba301446a41df1c5
[]
no_license
Lahaela/projecteuler
2ffc269de3b58cce098c15dec24a9db11d653647
2b83d127ae85954cce2fc02100f1679d2965f828
refs/heads/master
2021-01-10T16:50:01.627941
2015-11-03T20:41:26
2015-11-03T20:41:26
44,417,456
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
#13.py
fhand = open('#13file.txt') sum = 0 for line in fhand: line = int(line) sum += line sum = str(sum) print sum[:10]
4a420ea736e42edb923f9696aef154bb70ddbad6
902ccc9bb3f503ad589e9e28e290126fa80d6aeb
/Homeworks/hr9/4.filter_wiki_urls.py
5de781edb7973725f5b69fafb4ae5656b525e328
[]
no_license
unw1ck3d/python18
df100fcbc3ff7f676f69516d448db0368b6856e2
45c5ccb0b34e9332b0d68e036d61635a7912e33b
refs/heads/master
2023-08-15T01:02:37.908248
2021-09-21T17:37:00
2021-09-21T17:37:00
385,960,586
0
1
null
2021-07-23T21:09:07
2021-07-14T14:01:16
Python
UTF-8
Python
false
false
1,368
py
4.filter_wiki_urls.py
''' С помощью re и BeautifulSoup исследуйте страницу Википедии, посвященную премии “Небьюла” (https://ru.wikipedia.org/wiki/Небьюла). Соберите все ссылки на этой странице. Отфильтруйте только те, что не ведут на страницы Википедии. ''' from bs4 import BeautifulSoup import re from urllib.request import urlopen # Откры...
ccb067dded7b0697598e01397beb2db769549c93
a3c8651bb991d7fd5ae575c8ce3020241fe15a4d
/venv/lib/python3.8/site-packages/rope/base/ast.py
0dd39f3bb4b1fe3377c1fedd32df88f3f384a7e1
[]
no_license
chunyboy/test
fefff853c244657a5c33fe415d8552fdfcbb9eb7
44233736f86910fa934c4fd0f3e261df2f761a2d
refs/heads/master
2022-12-13T11:33:06.176114
2022-11-29T15:32:01
2022-11-29T15:32:01
78,964,487
2
1
null
2017-01-14T22:34:28
2017-01-14T20:21:54
Python
UTF-8
Python
false
false
96
py
ast.py
/home/runner/.cache/pip/pool/b8/bf/05/a75d020f365aff93c021eccee4887df29d9dedbe073bc527541e3db18a
2428bcf834b9426efe1c41230a77c2ac765a4983
26bad18d8cee2a5c3f4bd0add0877938dc10ccae
/usbcamGUI/fileIO.py
e2e6f8450f13cb99e09afa9f62e5e40d3ef5815d
[ "BSD-3-Clause" ]
permissive
git-ogawa/usbcamGUI
c26145bac2f58859c3d380490e5a5f37acea86a6
ba6347fe588843aa7c113be87e658109e73b9ca5
refs/heads/master
2023-05-09T08:42:29.981473
2021-05-22T19:05:53
2021-05-22T19:05:53
364,001,441
1
0
null
null
null
null
UTF-8
Python
false
false
1,875
py
fileIO.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """The utility class about file IO. """ from datetime import datetime from pathlib import Path from itertools import cycle class FileIO(): file_save_lst = [ "Timestamp", "Manual", "Sequential", ] file_save = cycle(file_save_lst) ...
f76deddfe97cc0e67ffb77dcdb43b941549e1923
06a7dc7cc93d019e4a9cbcf672b23a0bbacf8e8b
/2013_adni/MCIc-CTL-FS/02_build_dataset.py
f7b54fb3d5f361d86081e80d74263512200292ab
[]
no_license
neurospin/scripts
6c06cd218a5f32de9c3c2b7d1d8bda3f3d107458
f14a2c9cf2cd7f5fbea767b017c3faf36d170bdb
refs/heads/master
2021-07-11T22:55:46.567791
2021-07-02T13:08:02
2021-07-02T13:08:02
10,549,286
2
2
null
null
null
null
UTF-8
Python
false
false
6,026
py
02_build_dataset.py
# -*- coding: utf-8 -*- """ Created on Fri Jul 25 15:46:15 2014 @author: edouard.duchesnay@cea.fr @license: BSD-3-Clause """ import os import numpy as np import pandas as pd import nibabel as nb import shutil SMOOTH = True #import proj_classif_config GENDER_MAP = {'Female': 0, 'Male': 1} BASE_PATH = "/neurospin/br...
896e53b7f50bae30bb19444ca07de4bdf8f52426
786e0ca0d9f11002ca45b6a7572623d8713f6cbf
/jenkspy/__init__.py
069a93bfe18c05c0bba907c4c33bb35f595e9533
[ "MIT" ]
permissive
yuqwert/jenkspy
6857320166e2732e48558739a89ce5130a763758
6041a3c3f3022e0d2992a3ad5d89a476c444e8d4
refs/heads/master
2023-07-25T02:32:05.677754
2021-09-09T09:07:34
2021-09-09T09:07:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- __version__ = "0.2.0" from .core import jenks_breaks from .core import JenksNaturalBreaks __all__ = ['jenks_breaks', 'JenksNaturalBreaks']
820d72de96d74715f87024d8d821265918db5346
b3eae30f0090180a0f6c2aa43a914b085e9b5fd7
/provas de prog/LABORATORIO/Prova3/Funcionario.py
fa1427aad501bc5e0cd5affbc3ef90a53ba06021
[]
no_license
Jownao/Provas-Laboratorio-e-Introducao-a-progamacao
fd9e65b1ac87517037e5ea1e8765ab71caf67b74
204e664c63f7ea636a2564efbd23cb1c9c68f249
refs/heads/main
2022-12-25T05:23:23.605579
2020-10-06T22:53:30
2020-10-06T22:53:30
301,873,209
1
0
null
null
null
null
UTF-8
Python
false
false
999
py
Funcionario.py
import FolhaPagamento as fp class funcionario(): def __init__(self): self.matricula = 0 self.nome = '' self.sexo = '' self.nascimento = '' self.salario = 0.0 self.folha = fp.calculo_folha() def cadastrar(self): print('Dados do Funcionário'.cent...
292ff263a91308179347ffdadb0ab2cc1995bd32
b7b9a3e250489cce479080e850ea7a1712df4b17
/leetcode/166.py
156e21c7d8755f7aec59a41103b493579209e30f
[]
no_license
tacenee/AFR
212fc91496cbff9911a5219b6ca478621460ab37
0001223a1ad0957a527ba09bd2d0d409c9579630
refs/heads/master
2020-07-04T23:37:29.355270
2019-08-28T09:55:52
2019-08-28T09:55:52
202,458,076
0
0
null
2019-08-28T17:55:53
2019-08-15T02:16:44
Python
UTF-8
Python
false
false
2,910
py
166.py
class Solution(object): def fractionToDecimal(self, numerator, denominator): """ :type numerator: int :type denominator: int :rtype: str """ # negativerFlag = numerator * denominator <0 # numerator = abs(numerator) # denominator...
9460a77d704b070240e9e9731be70b467369cbba
28d1b17b07e6b7ba5cb01936982744c8cf8f68c0
/monitor-pir-sensor/main.py
a54a20d78c52926c6decd83820c6210584715eed
[]
no_license
aj03794/raspberry-pi-pir-sensor-python
e5f38543fb78e97c9544bcef41b684975674cdd9
f23288e4b121c39b8497635852906bbfdcc24fbd
refs/heads/master
2020-03-28T09:17:38.947146
2018-09-09T13:14:30
2018-09-09T13:14:30
148,026,974
0
0
null
null
null
null
UTF-8
Python
false
false
1,095
py
main.py
# import pubsub.main # from rx import Observable # from RPi import GPIO import time import redis import subject from subject import create_subject # create_subject = subject.create_subject print('create_subject', create_subject) ( sensor_tripped, subscribe_to_sensor, filter ) = create_subject() def pub_c...
613594e1a554682506f8dd655c366703687044fb
8581b1f3a26cb511d62d645f178a6c67d7fa9ab8
/test.py
f5821d82d96ec5118d50ee79992740f19f46be94
[]
no_license
Mholliday6611/angelhack
4d2fc924782291bf649b0317301825fe04f8f024
ace824d4365f9e03309d823f12f43154a6a2fccb
refs/heads/master
2020-12-25T18:33:38.498458
2017-06-10T22:11:22
2017-06-10T22:11:22
93,966,413
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
test.py
import requests url = "https://api.restb.ai/classify" querystring = {"client_key":"630baac25e972c9f607047fdc7498322b7adca6469de70684eb9b99a6dae9f4c","model_id":"car_make_model","image_url":"http://i2.cdn.turner.com/money/dam/assets/170215105927-lamborghini-venenos-recall-car-1100x619.jpg"} response = requests.reques...
2205fcc366a213e2bebdb83b9b14f36e11d4c1b8
069595449cae5971d136d51f7900af56e45208df
/rnmn.py
8aff7353e2204276390dc59e6a73fda2c3ecc3f1
[]
no_license
ColinKohler/cs7180_project
c0c88071355dc41b85531d2e607a903066dc9e65
f974527c17eb29c01f5d0232407a1fc6de72aee5
refs/heads/master
2020-04-22T12:48:39.583764
2019-04-12T17:51:00
2019-04-12T17:51:00
170,385,579
0
0
null
null
null
null
UTF-8
Python
false
false
5,916
py
rnmn.py
import torch import torch.nn as nn import torch.nn.functional as F import copy import numpy as np import matplotlib.pyplot as plt import ipdb from visualizer import Visualizer from modules import And, Or, Id, Find, Relocate, Exist from encoders import QueryEncoder, ContextEncoder from decoders import Decoder class R...
146a5b5b607febcbc1d6673ee3f4fcafd47a187a
57e616183c62c7d28c51eb4dac1ecff13129e30f
/machkanta_constants.py
deddf81e00d403b6cbc8715dda5e13d0f499b587
[]
no_license
itayavisar/Mortgage
05dd6b55e732daa0f0722cdf5dd175b2e9f68446
0688dd70558ef56af9b7096ea90735f0b387ab1e
refs/heads/master
2021-05-24T09:04:45.457705
2020-04-22T19:31:46
2020-04-22T19:31:46
253,484,496
0
0
null
2020-04-22T19:31:47
2020-04-06T12:01:36
JavaScript
UTF-8
Python
false
false
509
py
machkanta_constants.py
class CONSTANTS: def __init__(self): self.early_return_functional_fee = 60 # Always have this fee self.early_notice_return_fee_period_in_days = 10 # early notice return fee won't pay if noted more then this days in advance self.early_notice_return_fee_percentage = 0.1 # fee is the percentage...
74a6cfd5b0a7d161c9f4de6a7444be1b6a62911a
1a15353418d77c84d77af4f3686ac78d06d3be5a
/magic_eight_finch_with_shake.py
32de5f888ae428fa6131893616ffce6386160315
[ "MIT" ]
permissive
plwinkler/finch
d4c9ea78d388e0d1f14e803e2d8689c213d6b4c4
587828c6e6f2043c360ee594bae84f3bcefce33f
refs/heads/master
2020-03-19T01:05:31.109959
2018-06-01T02:03:49
2018-06-01T02:03:49
135,522,003
0
0
MIT
2018-06-14T15:36:31
2018-05-31T02:37:30
Python
UTF-8
Python
false
false
3,779
py
magic_eight_finch_with_shake.py
""" Turn a Finch robot into a "Magic 8"-Finch. Ask a question, shake the Finch, and flip it upside down, and get an answer. The Finch is a robot for computer science education. Its design is the result of a four year study at Carnegie Mellon's CREATE lab. http://www.finchrobot.com """ # Imports from stand...
b0877b0243faffa0b8940472309cccadfc8ae326
d90eee975abb6454a723894f6c8159ce1263ddc8
/back-end/run.py
a12685dd12349fadb7fb6494e65e0ecf13eac347
[]
no_license
flashhu/StaffManager
1be1dd0b6d96f8412796fd931e64c53876a55e12
4796c58d29987d2d774b3be0f7a4aa3518f81b90
refs/heads/master
2021-02-23T19:38:54.968054
2020-03-16T06:28:00
2020-03-16T06:28:00
245,408,962
0
0
null
null
null
null
UTF-8
Python
false
false
1,510
py
run.py
from flask import Flask, request import json import SqliteUtil as DBUtil app = Flask(__name__, template_folder='../front-end', static_folder='../front-end', static_url_path='') @app.route('/hello') def hello_world(): return "Hello, world" # api接口前缀, ApiUtil.URL_ROOT apiPrefix = '/api/v1/' #Staff接口 @app.route(ap...
84932306da1450e0706bb64b88bda168834a6669
a29e27118de9b5a99fc21e3ae0dfdb6dc26b9de4
/pyheom/commuting_matrix.py
14222d395bfd4541dcb433d1e4b866751fbc3d90
[ "BSD-3-Clause" ]
permissive
dominikusbrian/pyheom
249f8fb00a60c5e32b5dd93235c60df6792cf742
656f0b612fdf3e3ecabfa01c10faa490b49cab5f
refs/heads/master
2023-05-26T05:07:48.714710
2021-06-14T10:32:42
2021-06-14T10:32:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,357
py
commuting_matrix.py
# # LibHEOM, version 0.5 # Copyright (c) 2019-2020 Tatsushi Ikeda # # This library is distributed under BSD 3-Clause License. # See LINCENSE.txt for licence. # ------------------------------------------------------------------------ import numpy as np import scipy as sp def get_commuting_matrix(c_vec, gamma, sigma):...
d8802edea8282abc5b0dc195d113cf2c64f66f78
e69887e2a559a123d0c7265a784c6286199ed4b1
/playstream.py
01168ac88b3243aa144424ee6f341f7dd41896e7
[ "MIT" ]
permissive
james1238/docker-acestream-server
4ae6b1ad589bd0874630d8ad672a1fc73461b84c
faa00c086c4961f0c16969885bd1a06f183e62f5
refs/heads/master
2020-03-20T14:42:32.354880
2018-05-13T13:52:38
2018-05-13T13:52:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,698
py
playstream.py
#!/usr/bin/env python import argparse import hashlib import json import re import subprocess import sys import time import urllib2 DEFAULT_SERVER_HOSTNAME = '127.0.0.1' DEFAULT_SERVER_PORT = 6878 SERVER_POLL_TIME = 2 SERVER_STATUS_ACTIVE_STREAM = 'dl' def exit_error(message): sys.stderr.write('Error: {0}\n'.format...
645729fd7f3be501c0cc878093fd86c1733000e6
2918da52779ef3ddd8578b426301d109093d832b
/ch3/3-2.py
6b9b348de69e64d842e53b508d4fd23c5ceef85e
[]
no_license
finderkiller/CrackingCodeInt
6ac05424cb70c31b19a3e3c38a6100c42828cd90
fc237a186a0f9ded688a0c498c1daad5495e2951
refs/heads/master
2023-02-08T16:10:40.153938
2020-12-31T06:00:06
2020-12-31T06:00:06
172,669,454
1
0
null
null
null
null
UTF-8
Python
false
false
1,320
py
3-2.py
#!/usr/bin/python import sys min_stack = [] class Stack: def __init__(self): self.top = None self.min_top = None self.min_stack = [] self.stack = [] def push(self, value): self.stack.append(value) self.top = len(self.stack) - 1 if self.min() >= value: ...
dd95fa81a3fb89b08c2b61dcb56f78a97264faa3
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Scripts/Gradient box v2.py
55f5b6eb6a68ca5a5ff0e1bc33bea40e8fdccfe3
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
128
py
Gradient box v2.py
version https://git-lfs.github.com/spec/v1 oid sha256:c69756b535bd5cc7bd3ac703447afc9cacb727e7f4eba4b655d6b989e8f40c02 size 667
d6c6bb7d0915852e9f97a09c9103c249ac8be3e4
1a01e3102a3fd779b16dd77a10083362fd44a3a4
/temp11.py
97364dca8fce7c134dea06f2e5b2c29bd8e0183a
[]
no_license
debjyotigorai/Python
215d3d6bf18501258b1200f5fd35819a3e746022
71bc5d3f0220c37444632dbcf09ec6a771ea65fe
refs/heads/master
2021-06-21T02:32:58.928479
2017-08-12T15:46:23
2017-08-12T15:46:23
100,121,829
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
temp11.py
# numAs.py : number of A’s in a string s = input("Enter a string: ") aCount = 0 for x in s: if x == ’a’ or x == ’A’: aCount = aCount + 1 print s, ’:’, aCount, "a’s"
3bd4283f594d165d9bba20624339373e1efee8cc
5d56ca567d8cbc78f56c7e62bacc8c63689b1fed
/variandoErro.py
8f5bb401ed0d8207e71057b6c52e30372b5815ff
[ "MIT" ]
permissive
MarianaFRocha/Algoritmos-Sistemas-Lineares
2922e4b9f302fdf471d22188d68d53055b2a3bef
865b953f88c473cfd10309039af07506c0d48f96
refs/heads/master
2020-05-21T11:51:21.798987
2019-05-11T17:25:55
2019-05-11T17:25:55
186,040,688
0
0
null
null
null
null
UTF-8
Python
false
false
12,553
py
variandoErro.py
import numpy as np import matplotlib.pyplot as plt import time #matriz[linha][coluna] #Le as matrizes do arquivo txt def lerArquivo(nomeArquivo): arq = open(nomeArquivo, 'r') texto = arq.readlines() matriz = [] for linha in texto: tmp = [] for x in linha.split(','): tmp....
f1ca49554836b8d1f342e44cb760e1c8e99e5779
40af4cdd3498bc951161839d74249fbd0752a642
/utils/nn_tools.py
42ab3ae4917ee731243c3643029c70910aef8d1a
[ "MIT" ]
permissive
vladdez/multilayer_perceptron
8de0976b597b44f603f0ed36915bb6c78b3416d8
f3c8b107d843de3a455cbdf7d9b423180c25d44b
refs/heads/main
2023-08-02T23:43:08.900670
2021-10-03T14:09:09
2021-10-03T14:09:09
386,398,118
0
0
null
null
null
null
UTF-8
Python
false
false
4,356
py
nn_tools.py
import numpy as np from sklearn.model_selection import train_test_split def batcher(x, y, batchsize: int = 32, shuffle: bool = False): assert len(x) == len(y) if shuffle: x_sh = np.random.permutation(len(x)) for i in range(0, len(x) - batchsize + 1, batchsize): if shuffle: b = ...
8940bf31498184bdae96279d50ddac8fee6f2607
70f1c694bea6178c98b134b9c44952ef6693be9f
/Manuscript/figure/Figure_mPing_varient/mPing_Target/mping_classification/clean_target_candidate_N.py
9ae18e23b6689d9c1c4afd8d787c09ec01b75bd9
[]
no_license
JinfengChen/Rice_pop
5c19c5837805e51ddb3b2ffba4baffdc59c9bfd3
ef272bf4825b29610c94de55eb53f231fb5febc6
refs/heads/master
2020-04-07T04:55:36.606594
2018-03-02T16:52:53
2018-03-02T16:52:53
33,501,941
1
0
null
null
null
null
UTF-8
Python
false
false
30
py
clean_target_candidate_N.py
../clean_target_candidate_N.py
7aa78433baa307603fd52c349014fcba3e24bb70
2132b20124208fd2338a928b1f39e7664492fe8e
/sprites/sprite.py
f01ad6a792069a708ef0b6ee1a78ecc1d5c52f96
[ "MIT" ]
permissive
chu4ng/cyberlab
ff7752ffa2f8e49998a6365268db0763db64bbee
03430dd2a075255a876b30e89bb6fcb8bd03a767
refs/heads/master
2022-01-23T19:33:33.404676
2019-09-13T03:03:19
2019-09-13T03:03:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,844
py
sprite.py
import pygame as pg from settings import TILE_SIZE, SLITHER_SPEED from misc import sgn class Sprite(pg.sprite.Sprite): """ A visible game entry that is positioned on the map """ def __init__(self, game, x, y, img, groups=()): """ Construct a new sprite :param game: game in wh...