blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
adeb96ac3e7ff64f2c40272b484ed1bb79ccdef2
787f1d2373e908347a02e87251fd0ade0972c6ce
/scripts/starfit
da034dfee283884fb071bb00bd528624aed94677
[ "MIT" ]
permissive
nonsk131/isochrones
247c9b609da28305e7a5406415388f8a002c829f
5a18d625cb10f772fbe69fb0f1077ea4dcf88bd4
refs/heads/master
2021-01-14T08:46:27.047088
2016-07-15T18:05:54
2016-07-15T18:05:54
63,885,299
0
1
null
2016-07-21T16:29:01
2016-07-21T16:29:00
null
UTF-8
Python
false
false
7,717
#!/usr/bin/env python """ A command-line program to fit a StarModel using the isochrones package Input argument is name of a folder that contains a file called ``star.ini``, which is a config file containing all the observed properties of the star on which the model should be conditioned. Multiple folder names can al...
[ "tim.morton@gmail.com" ]
tim.morton@gmail.com
165cdb9d7a07544fe473999e467cd00dad60203f
3b7a07ad2d78e8526ad8ae0767530d98aaff9f3e
/backend/utils/update_ansible_hosts.py
e5bdb8dcfb128017aa99ed6974fcd500c079b546
[]
no_license
ImmortalViolet/one-oms
ba2281acdd63f35eb907651e5aae240c97c16e8b
9b89e2773511cb4f9fe37c4cde79e9e3e47464fe
refs/heads/master
2022-04-12T17:38:59.052337
2020-02-28T04:29:34
2020-02-28T04:29:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,875
py
# -*- coding: utf-8 -*- # author: timor import time import requests import sys reload(sys) sys.setdefaultencoding('utf8') apollo_conf = { "pro": { "config_server_url": "http://10.4.12.2:8080", "appId": "samanage01-inventory", "clusterName": "default", "namespaceName": "pro", ...
[ "itimor@126.com" ]
itimor@126.com
4d96020baa1dfde6710a9247ae12d7ac774a9592
70bdecc19c4017d5bce1cdabd2fc1c8a97b9079c
/hello.py
6c62f8b712b55051d5540d063bbb5e660a22b570
[]
no_license
mahesh4555/sdms
521b9f016fa78e773caea7a603958872dc45e67d
e0fa480a38e1c907cdbc4412a02340efbe62c422
refs/heads/master
2020-04-14T16:28:16.100779
2019-01-03T10:01:58
2019-01-03T10:01:58
163,952,658
0
0
null
null
null
null
UTF-8
Python
false
false
1,050
py
#!/usr/bin/python import cgi import mysql.connector mydb=mysql.connector.connect(host="localhost", user="root", passwd="mieupro", database="student") mycursor = mydb.cursor(dictionary=True) mycursor.execute("SELECT User_name FROM Login_details ") User_name = mycursor.fetchall() print('''Content-type: text/html\r\n...
[ "noreply@github.com" ]
mahesh4555.noreply@github.com
686c784efe388198fa39f36057c42d01e0e4dac4
ee9f924fc571066a67e972782c985ce761d07633
/project/settings/development.py
0457667aaf8ea099eb5134f44b8aadd05a7ad2e2
[ "MIT" ]
permissive
teopeurt/ddash2013
56f497d61c4cfc30d59a1ecaed496bfa10f26023
d1fcd95311ab51955d5ab9c1a7ba3315c6df1afa
refs/heads/master
2021-01-15T11:45:42.171597
2013-10-21T07:09:03
2013-10-21T07:09:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
682
py
import os from .common import * DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(PROJECT_ROOT, 'sqlite3.db'), } } for i, middleware in enumerate(MIDDLEWARE_CLASSES): if 'CommonMiddleware' in middleware: mcs...
[ "dima@kukushkin.me" ]
dima@kukushkin.me
d67dbb696013abf76678662d5440d940cdac7d67
e0895ca800f8486f5d6ede6af4106b5b60ba9c86
/db_tools/import_category_data.py
c403a6cfb96b085f07149207f216497ba9f8d31f
[]
no_license
zhanxiangyu/MxShop
613fcb16849ab6ff3f54d360e4a8e110701a9e2d
4650f5f56fa456413ddc73290db21e7dce4fad93
refs/heads/master
2022-12-12T05:17:58.749603
2018-03-18T16:08:18
2018-03-18T16:08:18
118,477,285
0
0
null
2022-12-08T00:55:22
2018-01-22T15:41:15
JavaScript
UTF-8
Python
false
false
1,273
py
# -*- coding:utf-8 -*- # __author__ = 'zhan' # __date__ = '18-1-28 下午6:13' import sys import os import django from db_tools.data.category_data import row_data pwd = os.path.dirname(os.path.realpath(__file__)) sys.path.append(pwd+'../') # 和manage.py文件的使用一样 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "MxShop.sett...
[ "1033432955@qq.com" ]
1033432955@qq.com
969b24c1b1a028a1fb0d5a602d96f4e6bdd3be2b
c2c4133012f9cfeb361e7773a8645dd066fc3192
/src/imu_read.py
11f89e05bf2639cf3d5ebb7038e6b3a4396d5126
[]
no_license
larsenkw/sensors
bf4c4c55bbf6c1f0dd22d486c97d0494a2464e1d
3a0f02f5ff9bc7ae0a615a4bfd79f950011b2d02
refs/heads/master
2020-03-27T18:56:20.359235
2019-07-16T16:59:50
2019-07-16T16:59:50
146,954,710
0
1
null
null
null
null
UTF-8
Python
false
false
9,948
py
#!/usr/bin/env python ''' Node for converting the IMU (Adafruit BNO055) messages read by imu_read into standard ROS messages. The Arduino does not have enough memory to use the standard ROS messages, so the values are sent over as arrays. This node exists as a separate program to allow the IMU data to be r...
[ "kylew.larsen@gmail.com" ]
kylew.larsen@gmail.com
0ed3275e29ab2f8b2a80b6b7dcfc68dcc495a4e8
652b8d3ef73ebbacc68eaaf9b38840ef6d5ed7cd
/Code/Maze/maze.py
e35ee3818c503118612296754a8d5008bbaed134
[]
no_license
qiuyue1993/Reinforcement-Learning-Practice
b316e9b82416397953d5be8083bb851d5417327a
0c298776fae23f4740b9756bbe382a040a220d62
refs/heads/master
2020-05-23T20:12:53.425094
2019-07-09T01:25:41
2019-07-09T01:25:41
186,925,884
0
0
null
null
null
null
UTF-8
Python
false
false
591
py
from maze_env import Maze from RL_brain import QLearningTable def update(): for episode in range(100): observation = env.reset() while True: env.render() action = RL.choose_action(str(observation)) observation_, reward, done = env.step(action) RL.learn(str(observation), action, rew...
[ "noreply@github.com" ]
qiuyue1993.noreply@github.com
51f715f1c45f6fcedf092efef860b6393b2c4769
3f7240da3dc81205a0a3bf3428ee4e7ae74fb3a2
/src/Week3/String Methods/String Edits.py
b4e0ea2ff9f46a21b11a95b3d8d9080d9d152bf4
[]
no_license
theguyoverthere/CMU15-112-Spring17
b4ab8e29c31410b4c68d7b2c696a76b9d85ab4d8
b8287092b14e82d2a3aeac6c27bffbc95382eb34
refs/heads/master
2021-04-27T08:52:45.237631
2018-10-02T15:38:18
2018-10-02T15:38:18
107,882,442
0
0
null
null
null
null
UTF-8
Python
false
false
435
py
print("This is nice. Yes!".lower()) print("So is this? Sure!!".upper()) print(" Strip removes leading and trailing whitespace only ".strip()) print("This is nice. Really nice.".replace("nice", "sweet")) print("This is nice. Really nice.".replace("nice", "sweet", 1)) # count = 1 print("----------------") s = "Th...
[ "tariqueanwer@outlook.com" ]
tariqueanwer@outlook.com
86829936832555018cae2aab808bc61a9a58eb37
705e37c3e15825962d2ccd87608d23de58919dad
/prueba_archivo.py
bf6cfc06eb89ced33a20d8ecb6ca18f5f405dc25
[]
no_license
dcabello/aprendizaje_con_python
d34cd028717c37776384acf30cd7a4db0fec4b63
d7d23833bf2ff7a699884085aa9edc017e3c3a90
refs/heads/master
2022-11-15T10:28:22.022780
2020-07-02T09:30:56
2020-07-02T09:30:56
276,597,238
0
0
null
null
null
null
UTF-8
Python
false
false
41
py
"""Mi primer archivo""" print(__doc__)
[ "noreply@github.com" ]
dcabello.noreply@github.com
96524fe980b5c8e70660e583d71cde6c7bdce4e6
8fc404bdc056315f47dbc75658d3e1a1ad3d00d3
/test.py
0b90fa3f08e0fad49e47e83865cec4c4c14bf1e3
[]
no_license
bporcel/ScheduleNotificator
77c5db9eb3a06547d5a992ed76f07e777962980c
2afe4c7ca9c29d5d3b17aaf10ff56f70ff548398
refs/heads/master
2023-02-17T04:27:37.025285
2021-01-19T07:30:48
2021-01-19T07:30:48
330,898,569
0
0
null
null
null
null
UTF-8
Python
false
false
1,225
py
import subprocess import time import json from datetime import datetime def getSchedule(): try: with open('/home/hacko/dev/repositories/day2day/schedule.json') as readContent: return json.load(readContent) except: return False def sendNotification(hour, schedule): currentTime...
[ "codamming@gmail.com" ]
codamming@gmail.com
4f57bb5641b4d6779e0a30d1d6f0908bb87a6d8c
ff8103f0dc01fe33bc9ebdb90132242d6e34eaf6
/Sample/Sockets/UdpServer1.py
235b2c1b9acb0a01d6cd9fd9994f68127dbfbbf4
[]
no_license
KumaKuma0421/PatchWorks
866aec10e1b04d2d0bda2d8ccd646a31db8e2b35
22bd8c0cce0b73ad7c20c2817f734c5cdf54345c
refs/heads/master
2023-01-06T21:04:25.248769
2020-11-03T07:14:14
2020-11-03T07:14:14
295,703,340
0
0
null
2020-11-03T07:14:15
2020-09-15T11:18:42
Python
UTF-8
Python
false
false
317
py
# # UDP受信 # sa https://qiita.com/__init__/items/5c89fa5b37b8c5ed32a4 # import socket HOST = '127.0.0.1' PORT = 50007 with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as s: s.bind((HOST, PORT)) while True: data, addr = s.recvfrom(1024) print("data: {}, addr: {}".format(data, addr))
[ "noreply@github.com" ]
KumaKuma0421.noreply@github.com
0b6d7046eb4eb6ddcc96d07d95abf3a3c8408c22
20ee5aabea06a6fbe97e91d5b7f8e55aba5715df
/ApiV1/urls.py
bd93d640ab5d0532be678cbd0907b35211ac6fb8
[]
no_license
scriptyang/myblog_v2
870ea6664b2a4537bcf93e37af659d177c392b96
8d38e27dcb6c2f535a3fc5c7e14a447bba105b23
refs/heads/master
2020-06-20T14:15:48.448882
2020-05-15T08:52:33
2020-05-15T08:52:33
197,147,897
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
from django.urls import path from .views import * urlpatterns = [ # 用户信息 path('user_list/', UserInfo.as_view(),name='user_info'), # 服务信息 path('Service_info/', ServiceInfo.as_view(), name='service_info'), # 登录认证 path('LoginAuth/', LoginAuth.as_view(), name='login'), ]
[ "scriptyang@sina.com" ]
scriptyang@sina.com
0259a750464eee4b339b86e377d9abe72faa9190
7db18d2e7445d02aa555f028b2eeda0e9fb74340
/ch23/ordered_linked_list.py
13404e2518093effabc52e3c3d7392a5b54c3309
[]
no_license
MrHighHandZhao/2017A2CS
9a99ad452055e86046ff33d68afe893f3804a7f0
a6040bf29b18c93dcd6fd0e4865593555eb988f1
refs/heads/master
2021-09-10T16:34:27.050399
2018-03-29T11:23:16
2018-03-29T11:23:16
114,727,605
1
1
null
null
null
null
UTF-8
Python
false
false
2,750
py
#S3C2 Carl Zhao Computer Science Homework NullPointer = -1 class Node(): def __init__(self): self.Data = "" self.NPointer = NullPointer class linkedList(): def _init_(self): self.SPointer = NullPointer self.FPointer = 0 self.record = [] newNode = ...
[ "34653690+MrHighHandZhao@users.noreply.github.com" ]
34653690+MrHighHandZhao@users.noreply.github.com
ea1ab812afe159437876b0e417ff2fe3c5aa5fd4
3750c7dc31addfd3195dbbc5698b4c34c738ca78
/manage.py
3eaafaddb9004ae4a25640e556ccb962017826b4
[]
no_license
deiner582/Vortal
3adc3a9cf68150873b2f3a05a9eac07585a87dde
b1079a9629457c142004332c55888282d6aef703
refs/heads/master
2020-12-25T18:20:38.692139
2015-06-30T19:34:04
2015-06-30T19:34:04
35,785,147
0
1
null
null
null
null
UTF-8
Python
false
false
249
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "vortal.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "metallica082011@hotmail.com" ]
metallica082011@hotmail.com
3597912a9add6ca33b344e9250060a3dccbb25f9
656fecef4a16c07c0cebf954908331a3f5ed23fb
/three_sum_to_zero.py
d6ef0f82f9b2dde6ea513db1ef9883ae855b8471
[]
no_license
linchuyuan/leetcode
d5fdd68c259ff92e2adb7908d5f17d885509f2fe
eb4520464a758962731dcfceafefc812f6b6f844
refs/heads/master
2021-01-20T17:40:28.572630
2016-07-20T05:02:14
2016-07-20T05:02:14
61,839,969
0
0
null
null
null
null
UTF-8
Python
false
false
1,052
py
#Given a array of S of n intergers. find three intergers in s such that the sum of the three is closest to the target. i.e. [-1,2,1,4] target = 1, return [-1,2,1] def three_sum_to_zero(array): for k in range(len(array)-2): num1 = array[k]; num2 = array[k+1]; num3 = array[k+2]; return_me = []; distance = num1...
[ "lin.chu@yahoo.com" ]
lin.chu@yahoo.com
a615255c5d7631f31f8863e1c8229310da78acfb
83b7b2cc1d6ca4f1a84e7229c79f5479e1cd07e1
/webgateway/apps/permissions/tests/test_models.py
5a95f6a7000f36bb47ce6a06dd3f53d3586d4bd6
[]
no_license
Almlett/HOBBY-ApiGateway
6ea14ec7cfcfafcfcf8584d2ff21e3988c510c7b
32ad29f35b1e1164b961e429bb5472175db847da
refs/heads/main
2023-04-11T13:59:00.606385
2021-04-22T16:33:13
2021-04-22T16:33:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,470
py
""" test for app users """ import json import pytest from django.urls import reverse from rest_framework.exceptions import ValidationError from permissions.models import Permission, Profile, ProfilePermission # pylint: disable=relative-beyond-top-level pytestmark = pytest.mark.django_db class TestPermission: """ ...
[ "isc.andradealan@gmail.com" ]
isc.andradealan@gmail.com
032ea0d77079d896e479004c2016c2360bde3d50
48a741fccfcc832609bf557723e8d069ccbf87e7
/Classification/utilities/nn/conv/__init__.py
ae161251b4ab8cee4f58d39b9cc93c5421499613
[]
no_license
kdasilva835842/tremor_classification
27f00fadacba7859ff47c804ae921de85b16585d
d4a8f7d5f773a27230bbc9b4d3fec14c22825989
refs/heads/master
2022-12-08T13:42:02.947340
2020-09-07T06:34:55
2020-09-07T06:34:55
293,249,471
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
from .shallownet import ShallowNet from .lenet import LeNet from .minivggnet import MiniVGGNet from .alexnet import AlexNet from .resnet import ResNet from .fcheadnet import FCHeadNet from .lenet_mnist import LeNet_MNIST
[ "kelvinds@discovery.co.za" ]
kelvinds@discovery.co.za
f7d576b86f66f442c7a8952459e7007695d6c4e8
78c127bce6c51107e46c3f53fe96a542ec7ebfc1
/app.py
cd869a98dfdd174978d02861ac867667c04f58e2
[]
no_license
lucasblazzi/statistcs-ho
680c73ada9d19d529fe13c9ffd2a5883ed81c39a
4115371af71ee157030caf2df82f815ad2cd9498
refs/heads/master
2023-05-08T19:43:02.226800
2021-06-02T01:07:15
2021-06-02T01:07:15
371,530,353
0
0
null
null
null
null
UTF-8
Python
false
false
5,164
py
import streamlit as st import pandas as pd import plotly.figure_factory as ff from PIL import Image from utils.fetch import get_data from utils.plot import plot_scatter from utils.plot import plot_bar from utils.plot import plot_table from utils.plot import plot_pie from utils.plot import plot_box from utils.plot impo...
[ "lucasblazzi@hotmail.com" ]
lucasblazzi@hotmail.com
35244b51575c9fc5c8cd4ce310014de26236a627
68482946d43336d58c200717b427e584eb759d98
/vowel_counter.py
2cde2692283a0f7507966a17e68cc5787f23c86c
[]
no_license
jointyrost/py_beginners
858f2d36bd4b1d0caabebf04f4cdd2dc91b4b10e
d8fb8cacbeb8b25938c177cfa29dc1bc70ff94ee
refs/heads/main
2023-01-09T18:01:33.034844
2020-10-31T12:24:20
2020-10-31T12:24:20
308,881,516
1
0
null
2020-10-31T12:54:32
2020-10-31T12:54:32
null
UTF-8
Python
false
false
223
py
# Count Vowels in String def count_vowels(string): vowels = ['a', 'e', 'i', 'o', 'u'] vowel_count = 0 for letter in string: if letter in vowels: vowel_count += 1 return vowel_count
[ "noreply@github.com" ]
jointyrost.noreply@github.com
1c195a597666eeb0525514c52eb135492d328e93
55114a42d6cf63fed3d46b61b423bff14d1cab87
/web/controllers/api/Quant.py
21b8ffb5f921d9e69336df933e8d66a8cec89865
[]
no_license
xzxedu/quant_demo
88856d24307b9fba2754f6c40a5e72fd77e09982
1d726c3972a84aea477815c8f709b91924e96012
refs/heads/master
2020-08-11T22:37:18.929949
2020-01-23T22:17:24
2020-01-23T22:17:24
214,640,658
0
0
null
null
null
null
UTF-8
Python
false
false
3,751
py
# -*- coding: utf-8 -*- from common.models.member.MemberCart import MemberCart from common.models.quant.QuantCat import QuantCat from common.libs.UrlManager import UrlManager from common.models.quant.Quant import Quant from web.controllers.api import route_api from flask import request, jsonify, g from application impo...
[ "s1787273@sms.ed.ac.uk" ]
s1787273@sms.ed.ac.uk
be16a67b88abad327d6cecbee86ece8d7a52c632
63e116eddc626816689fca20137140c002670d1a
/calculateResults/migrations/0002_department.py
ed44d475165167ae9359b484a2ecdf037cea8c39
[]
no_license
sarah-salaheldeen/sarah-salaheldeen.github.io
227790038f3834d8b96d1b23dc210c31bf675f25
207b99c388c8fda6e56317bcbb1200b19796f2f9
refs/heads/master
2020-04-05T17:50:11.700269
2018-11-11T13:10:01
2018-11-11T13:10:01
157,077,746
0
0
null
null
null
null
UTF-8
Python
false
false
585
py
# Generated by Django 2.1a1 on 2018-09-25 10:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('calculateResults', '0001_initial'), ] operations = [ migrations.CreateModel( name='Department', fields=[ ...
[ "sarahsalaheldeen@gmail.com" ]
sarahsalaheldeen@gmail.com
5cb91bafbc062039775e7519eafeb5d6206a97d8
dcf2e42641237b2488078a31f704c3b45b883f03
/GitHub/Analysis.py
f50954e527895cbaccc50ab45b3d47a2576b0bed
[]
no_license
jeffbender/LinkingEdX
acd353cbe5371690f16f6deefaf1b1285b467a47
400e9b0d4302ae8b52df94ad154ce7944d76ab48
refs/heads/master
2021-01-22T23:00:56.910498
2016-06-20T19:26:32
2016-06-20T19:26:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,806
py
''' Created on Dec 21, 2015 @author: Angus ''' import json from Functions.CommonFunctions import ReadEdX def AnalyzeMatchingResults(platform, path): course_matcher_map = {} non_duplicate_matcher_set = set() # Read EdX learners edx_path = path + "course_metadata/course_email_list" e...
[ "angus.glchen@gmail.com" ]
angus.glchen@gmail.com
f395f4805a0ad8c28e263e034dae773ae4706e8a
45fc78cb3bcd75985aa607d8092a33df6e8f9ec9
/chain/wenchain/core/blockchain.py
c09a37fe7aa910427713e5c615acce57cf4eb5ca
[]
no_license
kafana/thinkering
34d94d38f82c773ed104e90aede6b6c0aeae620f
3e86f4e96b1336c59ab7b4373203819fe35d2860
refs/heads/master
2020-04-08T17:18:38.720642
2018-11-29T00:29:23
2018-11-29T00:29:23
159,561,362
0
0
null
null
null
null
UTF-8
Python
false
false
2,313
py
import logging from copy import deepcopy from wenchain.core.block import Block logger = logging.getLogger(__name__) class BlockChain(object): def __init__(self, chain=None): self.chain = chain if chain != None else [Block.genesis()] def __repr__(self): return "<BlockChain(chain=%r)>" % (...
[ "boris@kafana.org" ]
boris@kafana.org
04dedfe9530ed9fec39b8883ebf4fab7b8e969bf
2c681979985efbb4975392ac8007a6fbb18eb1f5
/school/urls.py
fcab2a6c4e9e330a8860afa25acb8096d4a13d2a
[ "MIT" ]
permissive
gulgis/school-b
36420e665e5b1a8a91a754fa5f58005a0b678981
8934e0e86b633f5d8c9f6b62cb7549e1203f9ab5
refs/heads/main
2023-04-19T19:46:10.900719
2021-05-11T17:49:59
2021-05-11T17:49:59
358,216,904
0
0
null
null
null
null
UTF-8
Python
false
false
971
py
"""school URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
[ "gulgielmin.w@gmail.com" ]
gulgielmin.w@gmail.com
9821ea5fb99ed26dc73ef8207eacbceddf9083a6
e38f164ea225dc847644943f18999a21a625e65b
/dechat/__init__.py
e68dde0bf70571f11cafce4e4ea66662b259617d
[ "MIT" ]
permissive
robobrobro/dechat
1f7f011b5dc8aff8bbbdccedbc89143b4b9c8f84
e15f4efa24088ff71c332e6ad4638d416e778bf1
refs/heads/master
2021-01-10T05:15:37.446772
2016-03-30T03:21:54
2016-03-30T03:21:54
54,782,007
1
0
null
null
null
null
UTF-8
Python
false
false
91
py
""" Dechat - Distributed, Encrypted CHAT client """ from . import errors, messaging, user
[ "foehawk@gmail.com" ]
foehawk@gmail.com
6a0cd5f14df5e5c8bb28dcf4c61e75d86dbfbeb9
58dc4859c3e754ff10abb50d8fe3360ec6a26f11
/logistic regression/LR_main.py
4d9ac9261c1f4bf90fd5a2e6491cd2df0482e7e3
[]
no_license
demeiyan/ml_project
f31ae453de9191c8956c64b2e7cfd05b27fe0acb
b78fa07c97b8513fd5a8fe4fd388708f1075c755
refs/heads/master
2021-07-10T20:21:01.668138
2019-04-25T13:13:02
2019-04-25T13:13:02
109,544,194
0
0
null
null
null
null
UTF-8
Python
false
false
8,199
py
# -*- coding: utf-8 -*- """ Created on 2018/4/14 20:39 @author: dmyan 使用二分类来实现多分类问题,OvR(一对其余) """ import numpy as np def train_valid_split(feature, label, valid_size=0.1): train_indices = [] valid_indices = [] for i in range(5): index = np.where(label == (i+1))[0] np.random.shuffle(index)...
[ "1312480794@qq.com" ]
1312480794@qq.com
844c27fc00fb9fd926028f0c00b3c89d861a3585
f78300d307d4067d5f0f920da5090749126a02d4
/tests/test_install_services.py
83e0a0eb8b1a0a905cb02ccf6d6212e085a9cce0
[ "MIT" ]
permissive
thomasjpfan/server_setup
910b022522c2da833875b31bd384308a8a0a532f
f8ade284a3039f05f6acd22aa4730aa69ffbf428
refs/heads/master
2021-09-23T20:56:12.684930
2018-09-27T15:19:52
2018-09-27T15:19:52
119,753,102
0
0
null
null
null
null
UTF-8
Python
false
false
495
py
import pytest testinfra_hosts = ['tests_api2_1', 'tests_api2_1'] services = [ 'fail2ban', 'ntp', 'unattended-upgrades', 'ufw' ] @pytest.mark.parametrize('service', services) def test_fail2ban_active(host, service): h_service = host.service(service) assert h_service.is_running assert h_s...
[ "thomasjpfan@gmail.com" ]
thomasjpfan@gmail.com
31ecfdd585ab0fa9cf8ad0e5a761816a7e63aefd
4d963892c71028bd793d4ad765d442627827e8f8
/afiniczne.py
8b50a0296bdac28ff99aec6b4295a62b5e244144
[]
no_license
pablitochmiel/przeksztalcenia_obrazow
a093a03447f5addb19d5de03eb860f47d0b22183
e408db94112d5620b89514d0f1455d2122102dc0
refs/heads/master
2022-12-03T21:01:34.570721
2020-09-01T09:42:17
2020-09-01T09:42:17
291,953,247
0
0
null
null
null
null
UTF-8
Python
false
false
1,341
py
from PIL import Image import numpy as np def afiniczne(imageName): im = Image.open(imageName) imarray=np.array(im) #af=[[1.2, 0],[0,0.6]] #af=[[0.707,-0.707],[0.707,0.707]] #af=[[1,8],[3,5]] af=[[1.2,-0.7],[1.3,0.4]] #outshape=(round(args[0]*imarray.shape[0]),round(args[1]*imarray.shape[1])) #outshape=imarray....
[ "pawcio27610@wp.pl" ]
pawcio27610@wp.pl
bde004baf17ae9f877abce01ec4a6dc7a4aaef01
5056daf2cfdcc305099605d14856fcdecd9ac3f9
/apps/login/urls.py
008d11eb28c06720b63f2ddf2cfba50e76723ecb
[]
no_license
Choapinus/django-web
1bfdbdc19fa2e29c71437f7f1845879f4c9225d8
afcdd49a0c29b36cb75601b2e880db78d8fb7971
refs/heads/master
2020-03-11T11:33:38.237866
2018-06-01T06:02:56
2018-06-01T06:02:56
129,972,671
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
from django.urls import path from apps.login import views from django.conf import settings urlpatterns = [ path('', views.login_auth, name='login'), path('logout', views.logout_auth, name='logout'), path('index', views.index, name='index'), ]
[ "wxtem@hotmail.com" ]
wxtem@hotmail.com
a1762b7d73a2f97e2da4a50a41c73f759987c0fb
05a793cc2933a16199d0e82f1569c5518c5786a4
/class2/class3.py
52db27930fd8bc013f9a904f00b6ef50be7024cc
[]
no_license
hsnylmzz/Python-Learning
6cd69d793617df1877a110f2bef74fdb71483b9f
88db218478b633878c8a46da95097d87b6051e31
refs/heads/master
2023-03-21T17:47:10.549945
2023-03-13T11:04:37
2023-03-13T11:04:37
198,965,665
1
0
null
null
null
null
UTF-8
Python
false
false
320
py
class Sınıf(): sınıf_niteliği = 0 def __init__(self, veri): self.veri = veri def örnek_metodu(self): return self.veri @classmethod def sınıf_metodu(cls): return cls.sınıf_niteliği @staticmethod def statik_metot(): print('merhaba statik metot!')
[ "noreply@github.com" ]
hsnylmzz.noreply@github.com
24cc6db0fbe2cd2487c78f9d4ce7236b60d01f12
b656c527a0a6bcb8df45512e202d1607fe33638e
/migrations/versions/0079_update_rates.py
4699e99b696d8b578ae43695903e1c80bc50b35a
[ "MIT" ]
permissive
alphagov/notifications-api
fb6d0b6b952f0e2e8c98776be9adf836cce85c54
b4c5be42583ef6d6cd004e8c24acaf810d86f65c
refs/heads/main
2023-09-01T08:58:52.353509
2023-08-31T15:00:31
2023-08-31T15:00:31
46,422,101
61
33
MIT
2023-09-14T14:18:19
2015-11-18T13:57:17
Python
UTF-8
Python
false
false
706
py
"""empty message Revision ID: 0079_update_rates Revises: 0078_sent_notification_status Create Date: 2017-05-03 12:31:20.731069 """ # revision identifiers, used by Alembic. revision = "0079_update_rates" down_revision = "0078_sent_notification_status" from alembic import op def upgrade(): op.get_bind() op....
[ "ken.tsang@digital.cabinet-office.gov.uk" ]
ken.tsang@digital.cabinet-office.gov.uk
dfd51bc9c4f3faafaf0d818311a06a8b7c1cf0a2
2dd9b049e4a2d933fba4114fad70411ba8e25935
/test/test_event_ranking.py
5b1cec56a42bca393509950a63f6f48eeab99bd5
[]
no_license
MHuguenard/tba-api-client-python
c58ab4f90f3820dd33e5231bd9a5b51fcb28f6f7
7bb6e254fad793ba6204279b5d45fb94266b9860
refs/heads/master
2020-04-30T16:39:07.317247
2019-03-05T20:27:18
2019-03-05T20:27:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,362
py
# coding: utf-8 """ The Blue Alliance API v3 # Overview Information and statistics about FIRST Robotics Competition teams and events. If you are looking for the old version (v2) of the API, documentation can be found [here](/apidocs/v2). # Authentication All endpoints require an Auth Key to be passed i...
[ "travis@example.org" ]
travis@example.org
7e307696364fca18ac96a5230d2d0461f29568c3
ee79e734486c0ca550bb8238ef54c78c7727384a
/Tools/codetesters/pytesters/extenddict.py
bc0142de5cb40a36fc350c885c900cf1a0cfc625
[]
no_license
neilrobertson/BICRCode
212636e5395f0c0e4dfb3ac3c133f01eb07273ee
7b3f4da9cdefd7680f07b707339aee59faece1d2
refs/heads/master
2020-03-30T16:07:22.637571
2018-10-03T10:12:57
2018-10-03T10:12:57
151,394,096
0
0
null
null
null
null
UTF-8
Python
false
false
121
py
#!/usr/bin/env python class Wrapper(dict): def __init__(self): pass w = Wrapper() w["hello"] = 3 print w["hello"]
[ "neil.alistair.robertson@hotmail.co.uk" ]
neil.alistair.robertson@hotmail.co.uk
14e56fd0a985b0a85eabcc994807d20c19d0b5d0
e97b602d47b736305ec0912b442d232d94e5dc57
/hw1/1_2_1/pic_layer2_weight.py
bb2e02cebe70fbfbee3181b0ee9977e84b1ab6ef
[]
no_license
piepie01/MLDS2018SPRING
787cb3a49b8df7a93d1ea06fe5bf50d2cecec436
894877cdee77f8480c4b4f21da8cda2faf59c184
refs/heads/master
2022-01-26T05:36:44.379213
2018-07-06T08:57:59
2018-07-06T08:57:59
125,801,065
0
0
null
null
null
null
UTF-8
Python
false
false
1,761
py
import matplotlib.pyplot as plt import numpy as np def get(filename): one = [] two = [] with open(filename,'r') as f: li = f.read().split('\n')[:-1] for i in range(len(li)): li[i] = li[i].split() for i in li[::87]: one.append(i[0]) two.append(i[1])...
[ "b05902031@ntu.edu.tw" ]
b05902031@ntu.edu.tw
fca403463fb91a34133991efbe312ab97a153f30
9c3bb98eb9d0a587a302bdfa811f7b5c6a5a0a37
/Week 08/id_510/dp/Leetcode_198_510.py
991d26ca177b0445b9c7160727d2b58aca96467d
[]
permissive
chenlei65368/algorithm004-05
842db9d9017556656aef0eeb6611eec3991f6c90
60e9ef1051a1d0441ab1c5484a51ab77a306bf5b
refs/heads/master
2020-08-07T23:09:30.548805
2019-12-17T10:48:22
2019-12-17T10:48:22
213,617,423
1
0
Apache-2.0
2019-12-17T10:48:24
2019-10-08T10:50:41
Java
UTF-8
Python
false
false
1,104
py
""" 你是一个专业的小偷,计划偷窃沿街的房屋。每间房内都藏有一定的现金,影响你偷窃的唯一制约因素就是相邻的房屋装有相互连通的防盗系统,如果两间相邻的房屋在同一晚上被小偷闯入,系统会自动报警。 给定一个代表每个房屋存放金额的非负整数数组,计算你在不触动警报装置的情况下,能够偷窃到的最高金额。 示例 1: 输入: [1,2,3,1] 输出: 4 解释: 偷窃 1 号房屋 (金额 = 1) ,然后偷窃 3 号房屋 (金额 = 3)。   偷窃到的最高金额 = 1 + 3 = 4 。 示例 2: 输入: [2,7,9,3,1] 输出: 12 解释: 偷窃 1 号房屋 (金额 = 2), 偷窃 3 号房屋 (金额 = 9),接...
[ "changyg@shpso.com" ]
changyg@shpso.com
95516f957bdc1e3fb2432098dcbeb87da1ada279
654ad266ea5a25c6dac9b5ca925049c2c821993d
/test/imputation/cs/test_fast_knn.py
eb6530d3bf1363c5734dd6d295f43695b5782efb
[ "MIT" ]
permissive
tahmidmehdi/impyute
71acdb450371599e788022db75f459e4c4b9abc4
232497d53c68f47c3ed600b3de4a386cb6d4f2f3
refs/heads/master
2020-06-21T09:19:03.910183
2019-07-17T14:34:37
2019-07-17T14:34:37
197,405,979
0
0
MIT
2019-07-17T14:31:08
2019-07-17T14:31:07
null
UTF-8
Python
false
false
1,977
py
"""test_fast_knn.py""" import unittest import numpy as np import impyute as impy import functools # pylint:disable=invalid-name class TestFastKNN(unittest.TestCase): """ Tests for Fast KNN """ def setUp(self): """ self.data_c: Complete dataset/No missing values self.data_m: Incommplete ...
[ "eltonlaw296@gmail.com" ]
eltonlaw296@gmail.com
dbae08d5e4dfdf8ffa55d7bef5a5f46151ee7ecc
aaabcb0d8291f883d5ad7071defe0b491b4900f5
/learn-python-for-data-science-1/challenge.py
efdc3a69c4821c05d7db3262a4d4801bf2189544
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
jlcanela/learn-data
4ad26808a43c25a8479ee63b2784aee2303ed910
536b4f3b8083979e5552241545fcf2eb04bc2e3a
refs/heads/master
2021-01-23T04:19:24.311642
2017-06-02T23:29:59
2017-06-02T23:29:59
92,924,498
0
0
null
null
null
null
UTF-8
Python
false
false
932
py
from sklearn import tree from sklearn import svm from sklearn import neighbors from sklearn import discriminant_analysis from sklearn import linear_model dt = tree.DecisionTreeClassifier() # CHALLENGE - create 3 more classifiers... # 1 lsvc = svm.LinearSVC() # 2 kn = neighbors.KNeighborsClassifier(3) # 3 svc = svm...
[ "jlcanelam@gmail.com" ]
jlcanelam@gmail.com
fb76ffe9aa7296483ceb8d68d649e56a75ff2800
8eb8b77be9700e24375c6dfe3a80cfef271afcbb
/plugins/urls/config.py
bfccdee8188c03c16cc64bc92a70fd68feb6863a
[]
no_license
shakatakshak/Cardinal
fd25cfae92c302df8385abf93e79274ab3448ab0
0fbfe0f958710a0f6a35d1e71cd65e1e5e079f4a
refs/heads/master
2021-01-18T19:00:46.530798
2013-08-03T21:08:51
2013-08-03T21:08:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,400
py
# Copyright (c) 2013 John Maguire <john@leftforliving.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, m...
[ "john@leftforliving.com" ]
john@leftforliving.com
4da584c743d156c0b4418955d2e1bacb77be7788
77a65099e331558249e07d5d33e16c54f00dd528
/keystrokeserver.py
5e6502c5b6966473e01a0f55ad80b1e42bd74094
[]
no_license
windsurfer7563/keystroke-dynamics
ca69fe0d2c0689a7a78473f0f74775b432679f9b
8bc7587901f95766771cb5be3db363aefec8e691
refs/heads/master
2021-04-29T08:35:53.498496
2017-02-03T11:43:57
2017-02-03T11:43:57
77,672,684
0
0
null
null
null
null
UTF-8
Python
false
false
1,636
py
import socketserver import pickle import os import socket import anomalydetector class MyTCPHandler(socketserver.BaseRequestHandler): """ The RequestHandler class for our server. It is instantiated once per connection to the server, and must override the handle() method to implement communication to ...
[ "C:\\Users\\igor.GAZINTEK2\\AppData\\Roaming\\The Bat!" ]
C:\Users\igor.GAZINTEK2\AppData\Roaming\The Bat!
682505d45eedaaef73966e002fd5a321e091d57e
ec390da9ff15cb2114e16742b6cad780732913b5
/iter2/47.py
f9a2f61857dd6c414bb53e2b7ef2d30a08821e9b
[]
no_license
xiaomi388/LeetCode
6107487537eeb1ac6128955cd30868985d1509ea
877d0fbccc684e4fd7fee2aca63d2656f71a0241
refs/heads/master
2021-09-26T19:52:34.207507
2021-09-17T20:32:53
2021-09-17T20:32:53
241,884,416
1
0
null
null
null
null
UTF-8
Python
false
false
507
py
class Solution: def permuteUnique(self, nums: List[int]) -> List[List[int]]: ans = set() def dfs(picked, left): if not left: ans.add(tuple(picked)) return for i in range(len(left)): # optimization if i > 0 and le...
[ "xiaomi388@gmail.com" ]
xiaomi388@gmail.com
bb308552da3533c0e8de09b41a365499058f8a9e
acbf6fcea93fdf22766485d00bebec98bc7d6e5a
/tensorflow-test/3/breakpoint/mnist_test.py
4069a5181035972052eff9b38436196d05ed62c6
[]
no_license
lei977/data-analysis-python
27c25c81c21979a4b08acca03f66e3c7ca70122b
3b791ec4208c5d07164186a8245f7f4f9a2c031b
refs/heads/master
2020-05-19T06:09:01.800677
2019-05-31T10:33:12
2019-05-31T10:33:12
184,867,402
0
0
null
null
null
null
UTF-8
Python
false
false
1,614
py
# coding:utf-8 import time import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import mnist_forward import mnist_backward TEST_INTERVAL_SECS = 5 def test(mnist): with tf.Graph().as_default() as g: x = tf.placeholder(tf.float32, [None, mnist_forward.INPUT_NODE]) y_ ...
[ "lei977@126.com" ]
lei977@126.com
8ffc26e790e5436df5df70093011d373aa671134
52b5fa23f79d76883728d8de0bfd202c741e9c43
/kubernetes/test/test_v1_api_resource_list.py
909eb7aeccdbff10b21dbb0c80e6a7a69b7fc2b8
[]
no_license
kippandrew/client-python-tornado
5d00810f57035825a84e37ff8fc89a7e79aed8da
d479dfeb348c5dd2e929327d800fe033b5b3b010
refs/heads/master
2021-09-04T13:01:28.275677
2018-01-18T23:27:34
2018-01-18T23:27:34
114,912,995
0
0
null
null
null
null
UTF-8
Python
false
false
973
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.8.6 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import un...
[ "andy@rstudio.com" ]
andy@rstudio.com
b3cc281de2255b939278dd9a1f211d27dc305aa8
53b57b50c2bc250b6c27c5c3e761602d5442d3f8
/sLines.py
972f62de706a561f6623807946838e4c1b8f01eb
[]
no_license
kinglei/p2013
472b4eeaa4c86b133b05eefccf0ed9c4931d7ffb
2c9a0d18c2e57fcc9e34dddc4aa7dfb0a8f1904c
refs/heads/master
2021-01-10T19:14:27.297989
2013-04-08T07:24:26
2013-04-08T07:24:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
#!/usr/bin/python import os fname = raw_input("Please input the file name: ") fobj = open(fname) num = 0 for i in fobj.readlines(): num += 1 print num fobj.close()
[ "jinxl560@gmail.com" ]
jinxl560@gmail.com
65dc7ec333538a8de51915b9e91952e5cce61970
c5f58af61e3577ded52acda210f4f664651b598c
/template/mmdetection/configs/cascade_rcnn/cascade_mask_rcnn_r50_caffe_fpn_mstrain_3x_coco.py
0629f83a9a90edf8fc14db487241333766d4e02a
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hojihun5516/object-detection-level2-cv-02
0a4ee5cea9a77ef5d43fb61a4b37fe3a87cb0eac
bc8a08286935b31b8e7e597c4b1ca2cbbaeb9109
refs/heads/master
2023-08-31T09:50:59.150971
2021-10-16T15:00:19
2021-10-16T15:00:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,584
py
_base_ = ["./cascade_mask_rcnn_r50_fpn_mstrain_3x_coco.py"] model = dict( backbone=dict( norm_cfg=dict(requires_grad=False), norm_eval=True, style="caffe", init_cfg=dict(type="Pretrained", checkpoint="open-mmlab://detectron2/resnet50_caffe"), ) ) # use caffe img_norm img_norm_cf...
[ "hojihun5516@daum.net" ]
hojihun5516@daum.net
1adc1f9d82a9be7148a086a1ab937fc2f4098c34
2acfde78f24576c8420d8cfd7eebc1681c287b34
/tfx/experimental/templates/penguin/e2e_tests/local_e2e_test.py
8b4725c055f4d502534d0ca9ba579c09292baf07
[ "Apache-2.0" ]
permissive
hsahovic/tfx
7f29f16a7cc59bfb41744291887ccc69ef668521
5d4448c03d408c24bf77b84bd4da3973f2389d9b
refs/heads/master
2023-03-11T12:34:07.185893
2021-03-03T06:39:30
2021-03-03T06:40:24
344,190,366
0
0
Apache-2.0
2021-03-03T16:33:20
2021-03-03T16:27:11
null
UTF-8
Python
false
false
3,627
py
# Copyright 2020 Google 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/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ "tensorflow-extended-nonhuman@googlegroups.com" ]
tensorflow-extended-nonhuman@googlegroups.com
340498d21e1f3af49bbeebb7a5b6f871a8f9459f
1210704ac426c8f7f74b3a901f2fea2d22b59ad3
/agents/epsilon_greedy_decay.py
fa034c8ce7e7895a8c20024113d1e2735c90f015
[ "MIT" ]
permissive
a-pedram/kaggle-mab
3babfd6338b722ee0e0495289d5746cafb5eba7f
5d9d6d47541f6b71a5a886146928aa57a5c77591
refs/heads/main
2023-03-07T15:01:31.246270
2021-02-25T12:54:43
2021-02-25T12:54:43
342,224,228
0
0
null
null
null
null
UTF-8
Python
false
false
1,332
py
import math import random epsilon = 0.1 last_bandit = -1 total_reward = 0 sums_of_reward = None numbers_of_selections = None random.seed(42) def agent(observation, configuration): global sums_of_reward, numbers_of_selections, last_bandit, total_reward if observation.step == 0: numbers_of_s...
[ "mehdi.pedram@gmail.com" ]
mehdi.pedram@gmail.com
8f6173cbd4819d5e59480ff795d01c48baf38f4a
21b88cced289293123f987a4887c2eaaa1202248
/simplesocial/groups/views.py
d84637035e7a3a873784bf9ed0217311104b50d3
[]
no_license
Mehdierli/M78
0ae73f7aeced1f0d15dbfc7b18ad8f2053ec986b
76bb85c508aeb0dbe6af2f15806ae04060a41520
refs/heads/master
2020-04-03T23:16:33.581573
2018-10-31T21:35:14
2018-10-31T21:35:14
155,625,175
0
0
null
null
null
null
UTF-8
Python
false
false
2,291
py
from django.contrib import messages from django.contrib.auth.mixins import( LoginRequiredMixin, PermissionRequiredMixin ) from django.urls import reverse from django.db import IntegrityError from django.shortcuts import get_object_or_404 from django.views import generic from groups.models import Group,GroupMem...
[ "miaoml0604@gmail.com" ]
miaoml0604@gmail.com
c94807dd2c5b920935a9be896f8e96eeabd9d7fd
c1af1454e3fbb839b5a760efb1d8eca66cee6281
/accounts/forms/__init__.py
630b020e59687209bd27dcd1dd370c0b192745cd
[ "MIT" ]
permissive
tavoxr/django-crm
d197b9bae2cc71fc515881f6d673515e68c12cae
d6ce34b8e8e93c3ae9853df34641868d4c891125
refs/heads/main
2023-06-20T02:07:17.883200
2021-07-16T19:16:10
2021-07-16T19:16:10
385,318,928
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
from .orderForm import * from .CreateUserForm import * from .customerForm import *
[ "tavoxr23@gmail.com" ]
tavoxr23@gmail.com
80cc1d7e56e131d41164abf18a9060f646c4b962
a8d1245601d5cb0b2e08ef54263486d1f9f6d64f
/exercises/12_useful_modules/task_12_3.py
57c00328043011f1ea6bed8e22541bacc381dcbc
[]
no_license
darkfait/first_repo
be3182babeb5945bce5c08c6dfa4480032f8106c
82655016d751da8110572d3359594a55ac6199cc
refs/heads/master
2023-02-07T21:49:02.398279
2020-11-06T16:43:15
2020-11-06T16:43:15
254,878,846
0
0
null
null
null
null
UTF-8
Python
false
false
1,314
py
# -*- coding: utf-8 -*- """ Задание 12.3 Создать функцию print_ip_table, которая отображает таблицу доступных и недоступных IP-адресов. Функция ожидает как аргументы два списка: * список доступных IP-адресов * список недоступных IP-адресов Результат работы функции - вывод на стандартный поток вывода таблицы вида: ...
[ "fait-forever@mail.ru" ]
fait-forever@mail.ru
1af8417d6df914404094dc3dab175fc14aa8b7c4
13f5958c1dd2d1e356d09f6bed26cd221cd62443
/后端源码/bbb/crawler_script/dangdang/selling_24h_script.py
6becafe6c4bfae1def2be871668ef85423e4eccc
[]
no_license
13900/xiaodangdang
ffcd8bc9e534759635fb4187136c16a20356c558
dc03c636f8ba54c306d1ae93622075eab2efcbb0
refs/heads/main
2023-06-11T15:47:27.121600
2021-06-24T07:41:11
2021-06-24T07:41:11
379,776,973
1
0
null
null
null
null
UTF-8
Python
false
false
1,767
py
import requests from lxml import etree from fake_useragent import UserAgent import random class selling_24h(): STATUS = '' ITEMS = dict() @classmethod def get_24h(cls, ip, url): ua = UserAgent() list = random.choice(ip) proxy = {'https': 'https://' + list.ip_address + ':' + l...
[ "2877929996@qq.com" ]
2877929996@qq.com
1f47b4ee4cc0d1594aa057a3dc9d87a984854bf5
af38a64ba0908f6fff36760e8e2c6807991fb2db
/lesson_02/personal/chapter_6/04_item_count.py
e51209dc6823b35a615098c5a641c2e23be22d3a
[]
no_license
Vinod096/learn-python
badbeac9a27ee6c22c70a5a057837586cede0849
0017174e3dbeea19ca25aaa348e75b2b8203caef
refs/heads/master
2022-05-26T13:22:07.490484
2022-05-01T10:19:32
2022-05-01T10:19:32
244,166,014
1
0
null
2020-03-04T08:16:14
2020-03-01T14:41:23
Python
UTF-8
Python
false
false
478
py
#Assume that a file containing a series of names(as strings) is named names.txt and exists #on the computer’s disk. Write a program that displays the number of names that are stored #in the file. (Hint: Open the file and read every string stored in it. Use a variable to keep a count of the number of items that are read...
[ "vinod.raipati@hotmail.com" ]
vinod.raipati@hotmail.com
a5143f9123a8801653f08638eea943ed82a91241
5330918e825f8d373d3907962ba28215182389c3
/SimCalorimetry/Configuration/python/SimCalorimetry_setPreshowerHighGain_cff.py
de04a1da84ceffd653cc68498795deba536dc861
[]
no_license
perrozzi/cmg-cmssw
31103a7179222c7aa94f65e83d090a5cf2748e27
1f4cfd936da3a6ca78f25959a41620925c4907ca
refs/heads/CMG_PAT_V5_18_from-CMSSW_5_3_22
2021-01-16T23:15:58.556441
2017-05-11T22:43:15
2017-05-11T22:43:15
13,272,641
1
0
null
2017-05-11T22:43:16
2013-10-02T14:05:21
C++
UTF-8
Python
false
false
488
py
import FWCore.ParameterSet.Config as cms def customise(process): process.simEcalPreshowerDigis.ESNoiseSigma = cms.untracked.double(6) process.simEcalPreshowerDigis.ESGain = cms.untracked.int32(2) process.simEcalPreshowerDigis.ESMIPADC = cms.untracked.double(55) process.simEcalUnsuppressedDigis.ESGain...
[ "sha1-3dce45789e317cc29a75783a879c7e618b062b82@cern.ch" ]
sha1-3dce45789e317cc29a75783a879c7e618b062b82@cern.ch
3d304f607994f08ea42670d2847673aa643f4557
97f65c398ee2330c754db86eab5c8ba734347ecc
/DeepGM/inception.py
d48e46e6dd4319871f8e3ea865f2d9540702b3ba
[ "MIT" ]
permissive
izzatum/BoMb-OT
025b2125577c2f81560f0b7b2be453577462904d
d5337a13c3396a2e521bf8797f360e94981babdb
refs/heads/master
2023-08-28T17:34:46.399114
2021-10-30T08:46:22
2021-10-30T08:46:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,678
py
import torch import torch.nn as nn import torch.nn.functional as F from torchvision import models try: from torchvision.models.utils import load_state_dict_from_url except ImportError: from torch.utils.model_zoo import load_url as load_state_dict_from_url # Inception weights ported to Pytorch from # http://do...
[ "khai199733@gmail.com" ]
khai199733@gmail.com
95fe70f13e2813bdeafcd0958be55afdc67e8ebb
32458c4e0e0157314a5ab8f224715ea84a8c43a9
/models/attention.py
a011b77d7bb7235d12eede6a994b37eeb4386cfb
[ "MIT" ]
permissive
colinsongf/Global-Encoding
aaa75e2c37ccbba1ff6909cb84cfadf31be27b83
f717f6a922bd7a129e1026511dc90617a1ff8a23
refs/heads/master
2020-03-17T17:27:19.959451
2018-05-15T05:22:55
2018-05-15T05:22:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,526
py
''' @Date : 2017/12/18 @Author: Shuming Ma @mail : shumingma@pku.edu.cn @homepage: shumingma.com ''' import math import torch import torch.nn as nn class luong_attention(nn.Module): def __init__(self, hidden_size, emb_size, pool_size=0): super(luong_attention, self).__init__() self.hidden_...
[ "justinlin930319@hotmail.com" ]
justinlin930319@hotmail.com
8dddee5d45a2b617dde233e1b0837f788ad5af74
8ce5eaba8a2848c17f9a47eb083afdd90887e17e
/scripts/dumping/sequence_update/dump_restmap_dataset.py
38df07a892b224f6d2f363e6298ce4bc85decf71
[ "MIT" ]
permissive
yeastgenome/SGDBackend-Nex2
cad926729f9da738b3e82fc85d29b936ed6b8f1a
017e7248fbc3f1d1e8062d67f26937ec00c3cb8a
refs/heads/master
2023-08-23T12:24:15.220178
2023-06-22T01:22:11
2023-06-22T01:22:11
46,740,355
5
7
MIT
2023-09-06T20:28:05
2015-11-23T18:40:33
Python
UTF-8
Python
false
false
1,343
py
import sys from scripts.loading.database_session import get_session from src.models import Locusdbentity, Dnasequenceannotation, Taxonomy, Contig, So,\ Proteinsequenceannotation from scripts.dumping.sequence_update import generate_dna_seq_file __author__ = 'sweng66' genomicFile = "scripts/dumpi...
[ "noreply@github.com" ]
yeastgenome.noreply@github.com
df834d024d1583ec890986cbe4b75060df1791aa
301baff8d17536c7a909a5c02457d7e041a78682
/blog/migrations/0003_auto_20210405_0729.py
0a279d9249c6f67e1d83c580cf603cb7001d630b
[]
no_license
resbrotherx/resbrotherx
6442260d3b5e397a46cff7f1702e34ac07832c61
a430de9bcb4affca6815af64248ec31cc88a7a5a
refs/heads/main
2023-05-02T22:20:46.527426
2021-05-21T23:26:26
2021-05-21T23:26:26
277,882,495
0
0
null
null
null
null
UTF-8
Python
false
false
994
py
# Generated by Django 3.1.3 on 2021-04-05 18:29 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0002_auto_20210405_0729'), ] operations ...
[ "francisdaniel140@gmail.com" ]
francisdaniel140@gmail.com
b592cb7cc91694ddd3f470b85990042cd4b5adc2
b08f5367ffd3bdd1463de2ddc05d34cbfba6796e
/recursion/powersets.py
fa71f8d354af43b94b4d0f5bcb00a170e05c74ad
[]
no_license
uohzxela/fundamentals
cb611fa6c820dc8643a43fd045efe96bc43ba4ed
6bbbd489c3854fa4bf2fe73e1a2dfb2efe4aeb94
refs/heads/master
2020-04-04T03:56:44.145222
2018-04-05T01:08:14
2018-04-05T01:08:14
54,199,110
0
0
null
null
null
null
UTF-8
Python
false
false
517
py
# O(2^n) class Solution(object): def subsets(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ res = [] self.subsets_(nums, 0, [], res) return res def subsets_(self, nums, i, partial, res): if i > len(nums)-1: res....
[ "uohzxela@gmail.com" ]
uohzxela@gmail.com
02646842ebbaa4cb3831316bebc75e6db92decdf
eba3c6eb8d5ae18f3bcbb39df9b391a3d4a40ebd
/src/storage.py
15a4676ee9c6be24f22407b09d9bae4f203cd195
[]
no_license
aleefrank/VPP-Simulator
294381d5dafe6316dc21180683110081bfbb91ca
44f2663c905d6c6ecdd098d05a74a9d66fb31650
refs/heads/main
2023-03-23T15:50:31.444004
2021-03-13T11:11:19
2021-03-13T11:11:19
347,332,585
0
0
null
null
null
null
UTF-8
Python
false
false
1,030
py
from src.enums import ProfileType from src.profile import Profile # All parameters are percentage (beside efficiencies) class SimpleStorage(Profile): def __init__(self, max_charge, initial_charge=25, max_delta_charge=60, max_delta_discharge=60, charge_efficiency=0.95, discharge_efficiency=0.95, ...
[ "alessandro.f95@live.it" ]
alessandro.f95@live.it
3385d7bccfd7533f8e424eca23c2e897f3a99e2e
4f1b6a8001280c76f6fa40064251ccf684f2b28b
/apps/client/api.py
12819fbba4937849a90f2324145e49f4ee385dd2
[]
no_license
asorici/envived
f51c40f49b8dbee13ebde7709437e4efa12cd335
2b818240d6cef7d64f9c7a4ea4ecb52695c82878
refs/heads/master
2016-09-05T23:37:40.798340
2014-07-04T13:35:25
2014-07-04T13:35:25
11,955,649
0
0
null
null
null
null
UTF-8
Python
false
false
40,117
py
from client.authorization import AnnotationAuthorization, UserAuthorization, \ FeatureAuthorization from client.validation import AnnotationValidation from coresql.models import Environment, Area, Announcement, History, UserProfile, \ ResearchProfile, UserContext, UserSubProfile from coresql.utils import str2bo...
[ "alex.sorici@gmail.com" ]
alex.sorici@gmail.com
1034cac0f27eee232621c40f56a8602ebbce4fbc
dcaf395142d8365a008bd162a2eb5e14f659f712
/Homework 1/Submission/HW1_puma.py
5a7170120f60491f559d0ededc202c91303d1b01
[]
no_license
Peaches491/DM-MP
6d63d979c370265b41a7baf830f87607b030bae8
6cc1e54b32f2375c1205ca7de56cbcb312587be5
refs/heads/master
2021-01-19T18:56:01.960300
2015-03-25T17:39:32
2015-03-25T17:39:32
31,974,722
0
1
null
null
null
null
UTF-8
Python
false
false
3,697
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # HW1 for RBE 595/CS 525 Motion Planning # code based on the simplemanipulation.py example import time import sys import openravepy if not __openravepy_build_doc__: from openravepy import * from numpy import * _arm_joint_names = \ ['_shoulder_pan_joint', ...
[ "Peaches491@gmail.com" ]
Peaches491@gmail.com
71b0afa35f1904fb77f644e80655f1e39e405a29
ff24a235a1643ff7db6cbefb2be6b4e7f477635a
/yosim/alerts/templatetags/custom_pagination.py
7f9a712743583f87187b3781fc851a1c3e1dbbc8
[ "MIT" ]
permissive
thoongnv/yosim
15108f91e0a8cae83b88b52fefbe643211a411f5
22bcaceb2c40735363496d9404970a73c4b944bc
refs/heads/master
2023-01-11T00:42:18.841630
2020-04-02T07:32:16
2020-04-02T07:32:16
252,385,913
5
0
MIT
2022-12-26T20:39:55
2020-04-02T07:31:28
HTML
UTF-8
Python
false
false
1,550
py
# -*- coding: utf-8 -*- from django import template register = template.Library() @register.filter(name="get_paging_list") def get_paging_list(value, curr_page_num): """ Return a list of pages which skip pages in the middle Use: {% for a in value_list|get_paging_list:curr_page_num %} """ ...
[ "thoongnv@gmail.com" ]
thoongnv@gmail.com
e5673244d7a65ed433c8ef18ff944d9dda5be7f3
f3e1814436faac544cf9d56182b6658af257300a
/CODECHEF/Positive AND.py
8a3f3ebe7fd2c6670f25a7185216f4963b423d3e
[]
no_license
preetmodh/COMPETETIVE_CODING_QUESTIONS
36961b8b75c9f34e127731eb4ffb5742e577e8a2
c73afb87d197e30d801d628a9db261adfd701be9
refs/heads/master
2023-07-15T03:19:15.330633
2021-05-16T10:17:20
2021-05-16T10:17:20
279,030,727
2
1
null
2021-01-12T03:55:26
2020-07-12T09:18:57
Python
UTF-8
Python
false
false
775
py
# -*- coding: utf-8 -*- """ Created on Sat Oct 3 09:36:48 2020 @author: PREET MODH """ def isTwo(n): if (n == 0): return False while (n != 1): if (n % 2 != 0): return False n = n // 2 return True for _ in range(int(input())...
[ "noreply@github.com" ]
preetmodh.noreply@github.com
ddad622ade716b1be95c399186dc7519091686cb
2d34b3a61a5fc9a00c01a9177ecb0f0f94599bd6
/pickle84.py
f51178d198ba37b1081a0a350419e1f002b7807f
[]
no_license
Trilokpandey/pythonprogrammings
9e3077961a99c749843ce0dd5e13436cfed92cb8
2641f4bb62ba09914344a4fc16745006fc793a09
refs/heads/oops_concept
2020-05-03T06:16:54.966904
2019-10-03T06:32:32
2019-10-03T06:32:32
178,469,460
0
0
null
2019-10-03T06:34:15
2019-03-29T20:09:45
Python
UTF-8
Python
false
false
289
py
import pickle #pickling a python obj #cars=["suzuki","audi","ferrari","hundai","inova"] #file="mycar.pkl" #fileobj=open(file,"wb") #pickle.dump(cars,fileobj) #fileobj.close() file="mycar.pkl" fileobj=open(file,"rb") mycar=pickle.load(fileobj) print(mycar) print(type(mycar))
[ "noreply@github.com" ]
Trilokpandey.noreply@github.com
7c8010869b179425dcbad925ffae1938f0d89fb0
075f70880eb2496a97cf792fa34fdff281b73bbc
/hat.py
ddae45848e8e5c0f50473d218970221de68b4130
[ "MIT" ]
permissive
MiodragDronjakDev/DES-Python
d877dda312918beeb53ecaa32c7f87c77142f625
20e605c77eee5e6019ca3427ca27f5b41a13a8b8
refs/heads/master
2021-05-27T05:50:32.959075
2014-04-16T17:39:29
2014-04-16T17:39:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,097
py
# # ---------------------------------------------------------------------- * # * A Monte Carlo simulation of the hat check girl problem. * # * * # * Name : hat.c * # * A...
[ "notphilip@gmail.com" ]
notphilip@gmail.com
5b2fdecddf64b6b884a9b0c2fd18f1775d9a7c74
224723b94160827e1a4ba700d74503b05b40a283
/basics_data_structure/map.py
df57f431b4964be9d12fd4b1129e357750bc10a5
[ "MIT" ]
permissive
corenel/algorithm-exercises
471dff88c9a67845f47d1def2a56b9efd1cfe41f
f3f31f709e289e590c98247c019d36fc9cc44faf
refs/heads/master
2020-04-21T15:45:03.283015
2019-03-01T14:20:05
2019-03-01T14:20:05
169,678,528
0
0
null
null
null
null
UTF-8
Python
false
false
81
py
""" Map https://algorithm.yuanbin.me/zh-hans/basics_data_structure/map.html """
[ "xxdsox@gmail.com" ]
xxdsox@gmail.com
17f1b975b7a237e1d20bbe04ad9c21ace1aabc72
3bb4f4c802cdbdb16ce869dfcbadcfa6e393dd34
/src/est_dir/PI_XY.py
ef3b86733a0c0219645d30f1fb2070d300d367bf
[ "MIT" ]
permissive
Megscammell/Estimate-of-direction-in-RSM
b5ed1b4d00ebf08e0f2d127552274d307e24c5af
3ab2678617203a7046f61b9c38b0f4878ed336fe
refs/heads/main
2023-04-18T03:04:50.782508
2022-04-20T12:31:42
2022-04-20T12:31:42
339,388,391
0
0
MIT
2022-07-05T17:13:04
2021-02-16T12:15:48
Python
UTF-8
Python
false
false
14,618
py
import numpy as np import time import est_dir def compute_direction_XY(n, m, centre_point, f, func_args, no_vars, region): """ Compute estimate of the search direction by multiplying the transpose of the design matrix with the response vector. Parameters ---------- n : integer ...
[ "scammellm@cardiff.ac.uk" ]
scammellm@cardiff.ac.uk
668f5984e9c406fbaded1f3c078e0316c04105b0
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Apps/Blog/code-snippets/Logging-Basics/log-sample.py
279bd14fe78f041e2443662a48a09ee6b517a618
[]
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
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:5e05432d84deb8f3ab66bcb1fb3e421f96a12ed93a6a429cea802ed2cee299b4 size 1363
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
3c5e2a719407980c49c1e4b327810659aa3890a4
cf31d0972db205dad89f75bbb844e7e47b5b8414
/Season 10 - Advanced Python Development/Episode 09 - TIming your code with python.py
fbe1e622bce2a6cdfcfd5b12cdb9d21c20c5b27d
[ "MIT" ]
permissive
barawalojas/Python-tutorial
0479e6af4ca36ebec1f089cb4deebd5657c6500a
3f4b2b073e421888b3d62ff634658317d9abcb9b
refs/heads/main
2023-07-21T23:52:17.998627
2021-07-30T05:45:46
2021-07-30T05:45:46
391,827,816
1
0
MIT
2021-08-02T05:50:30
2021-08-02T05:39:38
null
UTF-8
Python
false
false
595
py
# Timing your code import time def powers(limit): return [x**2 for x in range(limit)] # start = time.time() # that means time module and the time() function within that module gives current time in seconds since 1970. # powers(5000000) # end = time.time() # # print(end - start) def measure_runtime(func): ...
[ "noreply@github.com" ]
barawalojas.noreply@github.com
81ffd6cd55fc6f300cfccc0c640f162a9e461e86
b94df1e9f32d4461aea16fb4104e88a3cbe2f7d2
/cimg/io/get_web_images.py
eb962c82428d05579854a5501b1c425a88084590
[]
no_license
piandpower/cio-images
f985916cc6bd0b249ced4149c51ea3dbe7de735f
c75f01e7d9288d00e4bd0bad2cf04b51653e8fe5
refs/heads/master
2021-01-18T11:12:56.216731
2016-02-18T18:52:48
2016-02-18T18:52:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
864
py
import os import urllib import cv2 def get_web_images(url_list_file=None,credentials_file=None,save_dir=None): with open(credentials_file,'r') as c: creds = c.readline().rstrip() # rstrip strips the newline character with open(url_list_file,'r') as f: for i, line in enumerate(f): ...
[ "ryoungblood@continuum.io" ]
ryoungblood@continuum.io
90748839c67cf0ab73582813cd4b72ecd3518bb9
8fb859aaad34da2dd219acc06c515f9101ff6ccf
/emailing/migrations/0002_emailcampaign_is_announcement.py
62a3c5e5f1765b8dafd64abd29c5b36bfb5498f4
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
establishment/django-establishment
7a63e1e4928a13bd4a7601cda9e1b382c407e97a
0ef8fe4f02e530f60ff9fed6d45d56d1f61304a8
refs/heads/master
2023-08-30T21:03:01.675185
2023-08-30T14:12:01
2023-08-30T14:12:01
84,206,858
1
0
null
2023-08-09T14:31:32
2017-03-07T14:13:01
JavaScript
UTF-8
Python
false
false
455
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-10 16:38 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('emailing', '0001_initial'), ] operations = [ migrations.AddField( ...
[ "mihai.ciucu@gmail.com" ]
mihai.ciucu@gmail.com
cfb75f088ee81a003c4743909773e4dd113a8fe6
a77506512555402b6a2063349c28e9a1e87b9f5c
/bin/easy_install
270d5f574254e41d2df787c32e4767c01587ba0d
[]
no_license
daleighan/MLsandbox-service
8d06bd409f7346290f816218022d9c367c7aace6
685258bd342c3306edc2c8e85dc2a5c53f64e93e
refs/heads/master
2022-12-13T21:26:33.954514
2018-02-06T01:57:06
2018-02-06T01:57:06
107,054,605
0
1
null
2022-12-08T00:41:07
2017-10-15T22:43:39
Python
UTF-8
Python
false
false
270
#!/Users/alexleigh/Documents/handwriting/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "daleighan@gmail.com" ]
daleighan@gmail.com
db311ac4dfca17b199304e3bcd251f41e2a32afe
395f974e62eafed74572efebcd91d62966e61639
/tstl/tocorpus.py
9d48e1807e4996764aad03ba0c12fbc3cc97166f
[ "Apache-2.0" ]
permissive
agroce/tstl
ad386d027f0f5ff750eab19a722a4b119ed39211
8d43ef7fa49534868e6cdf1697863748260405c7
refs/heads/master
2023-08-08T19:14:52.020314
2023-07-26T17:51:36
2023-07-26T17:51:36
32,408,285
106
33
NOASSERTION
2021-01-26T19:05:17
2015-03-17T17:14:04
Python
UTF-8
Python
false
false
736
py
from __future__ import print_function import sys import os # Appending current working directory to sys.path # So that user can run randomtester from the directory where sut.py is located current_working_dir = os.getcwd() sys.path.append(current_working_dir) if "--help" not in sys.argv: import sut as SUT def m...
[ "agroce@gmail.com" ]
agroce@gmail.com
391ffd365fa50354ba0543521936c9fc3a692916
4c17ccb8ffb4b60d9ad3570aa22f2091e1560d6e
/config_example.py
15222daa63f1f894339def9f55960f8f74371977
[]
no_license
joshuasellers/SpotifyScript
9590ce053bffc3d7d925bf50c9809655cfbc8e09
b90460db8d7a50a6fd6143c8dab98058544eb75b
refs/heads/master
2022-02-14T21:22:42.967462
2019-07-26T18:05:02
2019-07-26T18:05:02
198,123,285
0
0
null
null
null
null
UTF-8
Python
false
false
58
py
username = 'YOUR USERNAME HERE' token = 'YOUR TOKEN HERE'
[ "joshuasellersd@gmail.com" ]
joshuasellersd@gmail.com
1d8e72b32fde703e932a856adb5776e009e9de15
2bac6c01e1d881cdd786ce5a79e1c7941870ff5f
/src/warmup_project/src/PID_controller.py
533411bbd321d0004b319ed380557c009413e674
[]
no_license
dianavermilya/comprobo2014
c701521b254d564d565fd9b1791481d0e72cbb47
00128653e85dddc9ebe8863aa20c8e8926e134a3
refs/heads/master
2020-12-31T03:03:00.815513
2014-10-07T20:27:09
2014-10-07T20:27:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
import math class PIDcontroller(object): def __init__(self, name="rbt"): self.name = name self._distanceFromWall = 0 self._angleOfWallNormal = 0 self.rotation = 0 def setDistanceFromWall(self, distance): self._distanceFromWall = distance def setAngleOfWallNormal(self, s...
[ "dianavermilya@gmail.com" ]
dianavermilya@gmail.com
7f2e195719c3c38d26f1630fb572a0be0a1a054f
a5cd88d80d2c6af43528153199c86eacbea22f55
/python/7. Reverse Integer.py
0d2ae14b79b2e7ba62664199c6fcc8ec8941adbf
[]
no_license
qingmm/leetcode
c23a674a9051227b26288105482f99ce128abb00
ae2ac905cb6ad216e554332388f1ec37e45ed0df
refs/heads/master
2020-03-11T15:14:55.444601
2018-09-23T13:58:22
2018-09-23T13:58:22
130,078,586
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
class Solution(object): def reverse(self, x): """ :type x: int :rtype: int """ isPosit = 1 if - 10 < x < 10: return x if x < 0: isPosit = -1 x = -x x = str(x) r = x[::-1] if r[0] == '0': ...
[ "noreply@github.com" ]
qingmm.noreply@github.com
0c0f28675227bbb1264910438397c03f89078fc4
c99e6313d6c6a16ea7e48f76d28a9bdd49e536e9
/vframe_cli/commands/pipe/blur.py
5cf1b7ae398a34650f2908ddfaae718fc2e65901
[ "MIT" ]
permissive
julescarbon/vframe
5df679a9442f1639b45e2d0d7ffa61c75d670079
0798841fa9eb7e1252e4cdf71d68d991c26acab8
refs/heads/master
2022-12-26T04:10:12.819755
2020-10-07T21:24:46
2020-10-07T21:24:46
298,809,000
1
0
MIT
2020-09-26T12:25:28
2020-09-26T12:25:27
null
UTF-8
Python
false
false
2,289
py
############################################################################# # # VFRAME # MIT License # Copyright (c) 2020 Adam Harvey and VFRAME # https://vframe.io # ############################################################################# import click from vframe.utils.click_utils import processor @click....
[ "adam@ahprojects.com" ]
adam@ahprojects.com
5668b8decddce2b5c526c284361d630bcb104ae0
916609f4634935a9c6661baf5540f15182860941
/Integration/Bluetooth/example_advertisement.py
defeea7c88b4db1ac5f05f42817f90aa71ae39be
[ "MIT" ]
permissive
Vidur-CUBoulder/GroceryRecommendataion
0211e57e9f6c667fd41a774fc97aef64b14790d5
26de07156f4cd4ba5b008c8296c9c23be4032a54
refs/heads/master
2021-04-06T08:44:19.746367
2018-03-12T18:14:21
2018-03-12T18:14:21
124,931,527
0
0
null
null
null
null
UTF-8
Python
false
false
6,123
py
#!/usr/bin/python import dbus import dbus.exceptions import dbus.mainloop.glib import dbus.service import array import gobject from random import randint mainloop = None BLUEZ_SERVICE_NAME = 'org.bluez' LE_ADVERTISING_MANAGER_IFACE = 'org.bluez.LEAdvertisingManager1' DBUS_OM_IFACE = 'org.freedesktop.DBus.ObjectMan...
[ "vidur.sarin@colorado.edu" ]
vidur.sarin@colorado.edu
d1b49a0805ebc3d542b9038960df61c3a804cba4
4433346bc204ebfc5d327df83a5aeca6e81a9a85
/review_service/review_service/oauth/google/endpoints.py
dd0c5333a2490560c9177defe6bde520e5a238c5
[]
no_license
vladlubenskiy/review-service
b33e3c2381d6959847e44c3883cfdedfad4e6e17
f5d929aa7bbc57eacd25ba105d32b42d8d121457
refs/heads/master
2021-01-10T20:56:39.247725
2012-08-27T18:35:12
2012-08-27T18:35:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
929
py
import os # Google's OAuth 2.0 endpoints AUTH_URL = "https://accounts.google.com/o/oauth2/auth" CODE_ENDPOINT = "https://accounts.google.com/o/oauth2/token" TOKENINFO_URL = "https://accounts.google.com/o/oauth2/tokeninfo" USERINFO_URL = "https://www.googleapis.com/oauth2/v1/userinfo" SCOPE = "https://www.googleapis.co...
[ "vlad.lubenskiy@gmail.com" ]
vlad.lubenskiy@gmail.com
e1244958989cc5a101c7e4a074dec0ca57a8d273
e0045eec29aab56212c00f9293a21eb3b4b9fe53
/sale_management/models/__init__.py
040f6be7de7ea82cb3fba7030e42b9eaad22f15f
[]
no_license
tamam001/ALWAFI_P1
a3a9268081b9befc668a5f51c29ce5119434cc21
402ea8687c607fbcb5ba762c2020ebc4ee98e705
refs/heads/master
2020-05-18T08:16:50.583264
2019-04-30T14:43:46
2019-04-30T14:43:46
184,268,686
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
# -*- coding: utf-8 -*- # Part of ALWAFI. See LICENSE file for full copyright and licensing details. from . import digest from . import res_config_settings from . import sale_order from . import sale_order_template
[ "50145400+gilbertp7@users.noreply.github.com" ]
50145400+gilbertp7@users.noreply.github.com
06ac4a4a4c52dd3b9a8c2bf9d77d1b99d89d0edb
57e4e8ff1db386b0f94152f210abae8fbe3b4ad8
/ex6/ex6.py
608f4b744eeab28d89421bbf5e52e69cbf551357
[]
no_license
jo1jun/Machine-Learning-Python
4938a88e4a1d50ecd684c475b7082baf6e04b1df
391361da6d0e31166c869432f9084463af968d4d
refs/heads/main
2023-03-04T22:06:12.414124
2021-02-19T10:26:47
2021-02-19T10:26:47
332,097,504
0
0
null
null
null
null
UTF-8
Python
false
false
6,199
py
import os os.chdir(os.path.dirname(os.path.abspath(__file__))) import scipy.io from plotData import plotData import sklearn.svm as svm from visualizeBoundaryLinear import visualizeBoundaryLinear import matplotlib.pyplot as plt from gaussianKernel import gaussianKernel from visualizeBoundary import visualizeBoundary fr...
[ "andrew6072@naver.com" ]
andrew6072@naver.com
2fb0206d6c16edafcd4cfb224f3237d8d927171a
f65afea25b89cbea0c9d98c69f1f1b67d225ebe5
/code/.ipynb_checkpoints/baseline2.0-checkpoint.py
23e1a1b34271da9c2698bf5e3a9f9f00df1d75b5
[]
no_license
ness001/KDD2020-Debiasing-Team666
7685d03d65050421de22001d00db91e977195ac8
538ebb356691887b2a45d0b0356344d7c1ea27db
refs/heads/master
2022-11-08T02:23:34.253899
2020-06-19T08:40:27
2020-06-19T08:40:27
266,018,990
0
0
null
null
null
null
UTF-8
Python
false
false
5,111
py
import pandas as pd from tqdm import tqdm from collections import defaultdict import math def get_sim_item(df_, user_col, item_col, use_iif=False): df = df_.copy() user_item_ = df.groupby(user_col)[item_col].agg(list).reset_index() user_item_dict = dict(zip(user_item_[user_col], user_item_[item_col])) ...
[ "liang.li.ness@gmail.com" ]
liang.li.ness@gmail.com
9a753d7ed86987ee240f92c2ddb890d0f3e5242f
d77dded6a3919834e52a302b940ec7d0b1720c2e
/plots/avgs.py
8bb8485288ed2412fda2aefb697a2ef0967792c9
[]
no_license
MCC04/GPUfarm
6ae2ff0e212afa3deeb9d863b081e193a16b0a4e
cc9d654e879e2d2e9d6ecd3a32784dba59576dca
refs/heads/master
2021-07-20T03:03:14.234081
2020-05-08T12:53:16
2020-05-08T12:53:16
158,508,777
0
0
null
null
null
null
UTF-8
Python
false
false
6,259
py
#!/usr/bin/env python3 # coding=utf-8 #import glob import os import matplotlib.pyplot as plt import numpy as np import math import csv import sys testNum=5 ########## ###MAIN### ########## #import pdb; pdb.set_trace() def main(): res_path = "../results/"+sys.argv[1]+"/" for file in os.listdir(res_path): i...
[ "chiarina04@hotmail.it" ]
chiarina04@hotmail.it
db81b608a888971075980eb4ab83e3186458f300
47bea1533bbe1339110f7de9eaea8e7ca7d390b5
/RNN-tensorflow/RNN-GRU.py
5eff2cc3ed89fbb66df0fd4d853e2e26de43b370
[]
no_license
Xavier-Pan/Hello-Github
4f8f44c813cf25e3f1178617bf60070104c3c247
b1bb7d041f262317844f2d5333326f76bda729f1
refs/heads/master
2020-12-25T13:45:20.859731
2018-04-28T01:14:43
2018-04-28T01:14:43
64,754,689
0
0
null
2016-08-02T12:54:13
2016-08-02T12:25:25
null
UTF-8
Python
false
false
4,267
py
''' A Recurrent Neural Network (LSTM) implementation example using TensorFlow library. This example is using the MNIST database of handwritten digits (http://yann.lecun.com/exdb/mnist/) Long Short Term Memory paper: http://deeplearning.cs.cmu.edu/pdfs/Hochreiter97_lstm.pdf Author: Aymeric Damien ''' from __fu...
[ "noreply@github.com" ]
Xavier-Pan.noreply@github.com
1c61431e6435612953cca7403a4120d9fe13543a
abaa59cd609b523728d43c84a2a7de15b6298a22
/playground/find_domain_occurences.py
b156231d28c51a970fabe33d40bfa0881334dd46
[]
no_license
surchs/dataset_search_demo
999de3668db45ee9b187ef5a6fa819df9b7e072e
236ba83f222357a061609aff30302758063c1e08
refs/heads/main
2023-08-21T12:39:14.461325
2021-10-18T17:40:59
2021-10-18T17:40:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,713
py
import json from pathlib import Path import pandas as pd import requests from requests.auth import HTTPBasicAuth NIDM_CONTEXT = ''' PREFIX afni: <http://purl.org/nidash/afni#> PREFIX ants: <http://stnava.github.io/ANTs/> PREFIX bids: <http://bids.neuroimaging.io/> PREFIX birnlex: <http://bioontology.org/projects/onto...
[ "sebastian.urchs@gmail.com" ]
sebastian.urchs@gmail.com
ea00b5f086e493ae9e9c6cfd1f40a609dce2dde3
f6eede1b4dbc7888499a6324a02826a7629a4875
/ChupiFlum/loginusers/apps.py
4592f3d1910687fccaaa4a3fed462546c635044f
[]
no_license
IvanVilla1585/RefrescosChupiFlum
6a8061e19ee0e5a08e3ab2c52cde2852360969dd
69db38bc95575b274e6a9b2784053a8fca1eb047
refs/heads/master
2021-01-21T14:40:13.926118
2016-11-12T02:50:00
2016-11-12T02:50:00
59,258,661
1
0
null
2017-05-15T00:02:04
2016-05-20T02:30:30
Python
UTF-8
Python
false
false
136
py
from __future__ import unicode_literals from django.apps import AppConfig class LoginusersConfig(AppConfig): name = 'loginusers'
[ "trezeguet55@gmail.com" ]
trezeguet55@gmail.com
7c4253fa425c4055c10b47528af28d5ac744dfa6
e8f3b9e3af61e8c786748f19815e2942f2635a52
/python/chapter06/6.4_main.py
230ea9c8fa79be4e65596132c9cb5c98d21d06c2
[]
no_license
seratch/learning-ci-scala
a28a2683bbcd69df90efd3560bb274ee1d0e9880
972b80e286a2c50acc30343e4c5093a87e85bb19
refs/heads/master
2021-04-09T14:01:53.230304
2011-03-25T23:06:00
2011-03-25T23:06:00
1,287,861
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
#!/usr/bin/env python import docclass classifier = docclass.classifier() classifier.train_sample_documents() print classifier.get_word_prb('quick', 'good')
[ "seratch@gmail.com" ]
seratch@gmail.com
83ba94e176b60819a8a5fbe1947a3e518ed15782
a3f74e48fb768a1dd2d370f7899c017b0255427e
/finalproject/collegesearch/migrations/0002_remove_region_neighbors.py
bfd003451ee6022fa8e3d2baedd0ac7a66bdc2a5
[]
no_license
robirahman/csci29-final-project
0545fb0ef9d83e7e665bbeed3d4b7f4ef57a68b5
862ec1e694425c5b5a68df154e34e0f981abed7d
refs/heads/master
2023-05-07T08:52:59.534711
2021-05-12T00:30:44
2021-05-12T00:30:44
362,150,347
0
0
null
2021-05-11T21:09:15
2021-04-27T14:54:20
HTML
UTF-8
Python
false
false
259
py
# Generated by Django 3.2 on 2021-05-02 20:27 from django.db import migrations class Migration(migrations.Migration): dependencies = [("collegesearch", "0001_initial")] operations = [migrations.RemoveField(model_name="region", name="neighbors")]
[ "robirahman94@gmail.com" ]
robirahman94@gmail.com
ff9cc8dd6bbb8ac840a16f65427ba694d3404b26
97c612ef7145d8cb2d6d7c1e18d167d4bf280495
/tests/test_deployment.py
b96fd2eb1d79608552a6914453ffcb943f102a9f
[ "Unlicense" ]
permissive
QARancher/k8s_client
3edcd1cf059e22769ee9e590012d8300aca86150
b290caa5db12498ed9fbb2c972ab20141ff2c401
refs/heads/master
2022-07-04T08:55:46.436285
2020-05-10T08:14:14
2020-05-10T08:14:14
237,614,070
0
0
null
null
null
null
UTF-8
Python
false
false
4,219
py
import pytest from helpers.k8s_deployment import K8sDeployment from helpers.k8s_image import K8sImage from tests.asserts_wrapper import assert_not_none, assert_equal, assert_in_list from tests.basetest import BaseTest mysql_image_obj = K8sImage(image_name="mysql", version="8.0.0") alpine_image_obj = K8sImage(image_na...
[ "yakovpids@gmail.com" ]
yakovpids@gmail.com
d3061ef35686197d532d71f2d42b12c5f5c92bfd
ef373530387ddd38930aa06d0b7c63451463fc74
/QC/PIRCH_average_TSS.py
fd3457ff25bb37803254365bc9a7439be0a62545
[]
no_license
zhouyu/PIRCh
641f11c722caac64cbe287c5a2017f35172ae0bf
e207d2073a7260717f256bfdeefbd951090c2708
refs/heads/master
2020-11-29T09:14:26.350336
2019-04-11T02:37:17
2019-04-11T02:37:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,303
py
#!/usr/bin/python from __future__ import division import sys import re import math reffile=sys.argv[1] #read in referance file TSSfile=sys.argv[2] chrfile=sys.argv[3] outfile=sys.argv[-1] bedfile=[] #read in different bedGraph file chrs=[] count=[] chip={} total_reads={} TSScount=0 for i in range(4,len(sys.argv)-1): ...
[ "noreply@github.com" ]
zhouyu.noreply@github.com
c2563228793b610809dd5b77e7f387e38db5016b
9bb1042feea90a82101aa7df4f4befefd6f2d3d3
/tests/unit/states/lvs_server_test.py
e71442b602b31d8c18cabd81da2bed4ca05e5519
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
lyft/salt
a5243b02553968eb94d5b8c381eb6dd433654f8f
2715908423a412f736253d0e5d3cfe185a0179a2
refs/heads/stable-2015.8
2023-08-20T11:13:33.249352
2019-10-14T17:38:56
2019-10-14T17:38:56
18,227,966
3
1
NOASSERTION
2019-10-14T17:38:58
2014-03-28T22:09:30
Python
UTF-8
Python
false
false
5,476
py
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>` ''' # Import Python libs from __future__ import absolute_import # Import Salt Testing Libs from salttesting import skipIf, TestCase from salttesting.mock import ( NO_MOCK, NO_MOCK_REASON, MagicMock, patch) from...
[ "jayeshk@saltstack.com" ]
jayeshk@saltstack.com
77b63cee5d360600ff658625946036a082545d0f
0d44e67224e774f7a53190eb8c89d5d3ea9c205c
/excercises/fundamentals/letter_swap.py
c42d18d301f08080175ff1d7c3b669afc7032d86
[]
no_license
katarinarosiak/python_fundamentals
c7d84db53623ad25ba0847220add1b5a3e613e2a
d78197a9a69c697ff83d10d1ed7b59df52dc1a8a
refs/heads/master
2023-08-17T19:03:24.084150
2021-09-13T16:33:10
2021-09-13T16:33:10
363,259,831
0
0
null
null
null
null
UTF-8
Python
false
false
1,082
py
# Letter Swap # Given a string of words separated by spaces, write a method that takes this string of words and returns a string in which the first and last letters of every word are swapped. # You may assume that every word contains at least one letter, and that the string will always contain at least one word. You m...
[ "katarinarosiak@gmail.com" ]
katarinarosiak@gmail.com
04f475eb45a82c1c921c8bc5e70513d38abb3ebb
a59a26dbd28bc8c7fa6bb1083478a4b279e3a1de
/evaluating/baselines/french/parse_larousse.py
7b64b00dd290f64f57e0107fea97ffbbd74fb47b
[]
no_license
ksipos/polysemy-assessment
4696a2ec8f2f8d5a1d5c5685cd34274a36bcb245
26543640ed6cd826f2e86abb45571c2fa281464a
refs/heads/master
2021-04-17T13:02:37.876218
2020-05-13T08:15:56
2020-05-13T08:15:56
251,556,520
2
0
null
null
null
null
UTF-8
Python
false
false
698
py
from os import listdir from bs4 import BeautifulSoup import requests import time filenames = ['larousse/' + f for f in listdir('larousse')] output = open('larousse_list.txt', 'w') total = len(filenames) for name in filenames: with open(name, 'r') as f: html = f.read() soup = BeautifulSoup(html, 'l...
[ "ksipos@windowslive.com" ]
ksipos@windowslive.com
d9d098ee0007add2e32fdbac268dc362a2cfbd0c
13f900b9dc0c3e838ff788febaa59514b97d1128
/Proyecto/api/serializers.py
66036ceb8053f9bfd04791ba6c87d07ca4547de9
[]
no_license
JorgitoR/App-Proyectos-Slabcode
68439c5fe0dbe58a004b9f04be807f6756d84a7f
173ea655bf00f8b5ae7fb0eb4ee0cf0ed5e6f3a7
refs/heads/main
2023-04-12T21:52:16.339073
2021-04-10T21:02:57
2021-04-10T21:02:57
356,660,392
1
0
null
null
null
null
UTF-8
Python
false
false
4,219
py
from rest_framework import serializers from django.contrib.auth import get_user_model from django.utils.timesince import timesince from Proyecto.models import Proyecto, Tarea from socio.api.serializers import SocioSerializer from rest_framework.validators import UniqueValidator from django.contrib.auth.password_va...
[ "jorgitouribe133@gmail.com" ]
jorgitouribe133@gmail.com
5c12ac510f60e933cac12be692128077b9bfb0d3
3d0cdb529217a84ca33cfaf1f614ccfc96050fe9
/Evaluation.py
abb150e66fe6feceac5234281a4f6fbdb901b20e
[]
no_license
linharesh/now-neo4j
5ce9cacac132ee4a1011659216a5460c9600d0ae
483fba901551c11efaf8effd803516c827efb750
refs/heads/master
2020-09-11T17:37:58.459323
2019-11-16T18:20:02
2019-11-16T18:20:02
222,140,743
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
class Evaluation: def __init__(self, trial_id, ev_id, checkpoint, cc_id, activation_id, representation, member_container_activation_id, member_container_id, name, typeof): self.trial_id = trial_id self.ev_id = ev_id self.checkpoint = checkpoint self.cc_id = cc_id self.activ...
[ "linhares.h@gmail.com" ]
linhares.h@gmail.com
11fc195b7e715240f72f316eca12e705de9be2d9
23afbfe3f8dbe8d1e89e746edfb7f2b920109a7f
/test.py
1f52b08929879dd76afbfc03364921d5a304fe96
[]
no_license
samensah/Neuroscience-Lab
3f2695a928e27ba3b3be0934596b9f709e75321f
a54e57b087c902fdece990aa94c2f6ec3bb06b46
refs/heads/master
2021-01-10T03:56:18.229772
2020-06-28T14:06:57
2020-06-28T14:06:57
55,796,327
0
0
null
null
null
null
UTF-8
Python
false
false
1,813
py
#__author__ = 'samuel' from __future__ import division import numpy as np from scipy.integrate import odeint import matplotlib.pyplot as plt """ Created on Wed Feb 25 13:57:47 2015 Example of use of odeint for system of equations. Here we solve the HH model dx/dt = ax-bxy dy/dt = cxy - dy or written as dY/dt = ...
[ "samuel@aims.edu.gh" ]
samuel@aims.edu.gh
d0280f52f5bb8c08f51b8de7dbd97c8001954c21
cf790f8169918606770683da323c436a20f4fb04
/torchaudio/datasets/libritts.py
2c978c426ee15546c012b1ad09d19b3e93f47190
[ "BSD-2-Clause" ]
permissive
krishnakalyan3/audio
f6d3dabf456cd5ce9a8f033b83301ce7bff47f19
0cd25093626d067e008e1f81ad76e072bd4a1edd
refs/heads/master
2023-07-05T08:20:37.366199
2021-11-15T14:23:52
2021-11-15T14:23:52
176,415,764
1
0
BSD-2-Clause
2019-03-19T03:27:23
2019-03-19T03:27:22
null
UTF-8
Python
false
false
4,967
py
import os from typing import Tuple, Union from pathlib import Path import torchaudio from torch import Tensor from torch.utils.data import Dataset from torchaudio.datasets.utils import ( download_url, extract_archive, ) URL = "train-clean-100" FOLDER_IN_ARCHIVE = "LibriTTS" _CHECKSUMS = { "http://www.open...
[ "noreply@github.com" ]
krishnakalyan3.noreply@github.com
b45eae05c2a53c9835a8d4151aa5e70165e04eb3
343a325d23e834fc4a099ddd9941f9465e370e05
/apps/users/migrations/0001_initial.py
c21521ea6354de09aad62e8428699df477321599
[]
no_license
maxwell912/social-app
2d8cff535962e79806d8d50516f8d5a51c30c937
4089c3f084d7460f64517158eefb54b3b93a01e8
refs/heads/master
2022-12-09T01:35:33.835915
2020-09-11T06:29:16
2020-09-11T06:29:16
294,612,560
0
0
null
null
null
null
UTF-8
Python
false
false
2,949
py
# Generated by Django 3.0.8 on 2020-08-25 12:31 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( ...
[ "ivan912ivan@gmail.com" ]
ivan912ivan@gmail.com
5cd87059b73544cc78993d00b2fb611eab7bf72a
a57def2cdde6249e658afc3022902dc83ab9761d
/Conditional/Lista 2/Everton/04.py
4f9d0d49627a2c5f6546dd583be9f4a0f59f94bc
[ "MIT" ]
permissive
LourdesOshiroIgarashi/algorithms-and-programming-1-ufms
09ee5ddf72d11680b1bda7616e63d7d4a7c45153
7f0f0cb57223ec41f09c61f6109bc7c5f85f3742
refs/heads/main
2023-06-07T06:15:47.180937
2021-06-28T21:24:36
2021-06-28T21:24:36
370,764,915
7
8
MIT
2021-06-28T21:24:36
2021-05-25T16:48:43
Python
UTF-8
Python
false
false
340
py
a = int(input('NÚMERO DE ALUNOS: ')) m = int(input('NÚMERO DE MONITORES: ')) total = a + m qtd_viagens = total // 50 if qtd_viagens%50 != 0: print('Serão necessárias {} viagens para que todos chegem ao topo'.format(qtd_viagens + 1)) else: print('Serão necessárias {} viagens para que todos chegem ao topo'.format(...
[ "noreply@github.com" ]
LourdesOshiroIgarashi.noreply@github.com
df9aa3e527f8805e42b4c2af45e519a91fe9d185
9be08135ec57ea7a40fde31a74e0aba735249165
/day2/test_day2.py
9db4edc6751d4e01c5a8d3fdb446d884bce4ca6f
[]
no_license
johanjeppsson/advent2019
4ec696f0714cbfa20f331a956c241dcbb7940a03
7158e8621f61e7d9e01f0ac20065613fb0a0f227
refs/heads/master
2020-09-22T13:44:18.078723
2019-12-17T21:19:33
2019-12-17T21:23:17
225,223,915
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
from utils import get_data from .__main__ import run def test_day2(): prog = list(map(int, get_data(__file__).split(","))) assert run(prog, 12, 2) == 4090689 assert run(prog, 77, 33) == 19690720 assert run(prog, 77, 32) != 19690720
[ "johjep@gmail.com" ]
johjep@gmail.com
5ace0bc3c925e242df973b9d28bee8ccfde56724
8f01699858df67f8ba211344eaf2cafc73292740
/ambuild2/frontend/paths_test.py
c9cf26b212da5caf9d9ceb4f36943a4e83b6128f
[ "BSD-3-Clause" ]
permissive
alliedmodders/ambuild
990132f583cf1a39be768d96b5b4085a8d8c39d9
9392da7c7e0a148bf8e0089b88d372a6eb62c65c
refs/heads/master
2023-01-05T07:20:31.480403
2022-12-21T21:30:18
2022-12-21T21:30:18
19,415,744
47
37
BSD-3-Clause
2023-09-12T10:00:04
2014-05-04T01:00:38
Python
UTF-8
Python
false
false
509
py
# vim: set sts=4 ts=8 sw=4 tw=99 et: import ntpath import unittest from ambuild2.frontend import paths class IsSubPathTests(unittest.TestCase): def runTest(self): self.assertEqual(paths.IsSubPath("/a/b/c", "/a"), True) self.assertEqual(paths.IsSubPath("/t/b/c", "/a"), False) self.assertEqua...
[ "dvander@alliedmods.net" ]
dvander@alliedmods.net