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
0ad2c5085e508e5ebf1a8c7dcb70c365cb16bcd5
6e7351d569583fbb19561b881f9274cae0679365
/day07_2.py
1bf576db1e656aa6cc47eeaa16175547bfcf2d74
[]
no_license
bellarm/advent-of-code-16
6b70f01edee573e6b83e1f76b6c3922e9925246c
f1db090bac3155ed720ae8b4da1d6ee84b0ee3e0
refs/heads/master
2021-05-01T00:51:14.886873
2016-12-27T08:21:56
2016-12-27T08:21:56
75,303,771
0
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
#!/usr/bin/python3.5 import sys, re def support_ssl(ip): words = ip.split(' ') is_in_brackets = 0 patterns_inside_bracket = [] patterns_outside_bracket = [] for word in words: for i in range(len(word)-2): if word[i] == word[i+2]: if is_in_brackets: ...
[ "rachelitabella@rocketmail.com" ]
rachelitabella@rocketmail.com
b65352806020cbc7f4408ddafb3e6bf196e381b2
60d30f3520c78bdacbb175dba685b4ba25d3ac04
/lankuai/lankuai/lkitsm/project/repairANDbuyer/views.py
4fcd56fc85e884fb1be86334cae4f674f4468424
[ "MIT" ]
permissive
abiner/lankuai
c8dd1c0abe3ce4db1b19495deab2c28939570160
55a3631528acf1c46a471cb0616e28a5396faab5
refs/heads/master
2020-04-27T06:27:38.279051
2019-04-09T01:31:29
2019-04-09T01:31:29
174,108,743
0
0
null
null
null
null
UTF-8
Python
false
false
16,466
py
from django.shortcuts import render from login.models import User ,Departments from .models import failureMessages ,faultType ,theDoorOf,cost ,quote import random import time from django.shortcuts import redirect #维修申请页面 def repair(request): username = request.session['username'] user = User.objects.get(uname...
[ "153630535@qq.com" ]
153630535@qq.com
25726eb229282248139e4ee3fdfe34b1fb699967
b28dec49edce6943e8a15cfe198cc6fc902e8e15
/main.py
e221c02315552fa9e94a93cc20811527544a7785
[]
no_license
ddiyoo/vanilla_gan
a673df2580145ff27e3605792b066c1f48f4cbe2
5a31b709ec96c8fc04d93d8bd30e794eb205a56b
refs/heads/main
2023-01-11T14:44:53.790348
2020-11-12T11:22:42
2020-11-12T11:22:42
306,255,881
0
0
null
null
null
null
UTF-8
Python
false
false
3,218
py
import numpy as np import matplotlib.pyplot as plt import tensorflow as tf from tensorflow.keras import layers # def generator(): # # model = tf.keras.Sequential() # ## 25*25*128: 시퀀스 오브젝트 모델에 25*25*128개의 노드를 Dense 레이어를 통해 연결(?), bias 안씀, input 데이터의 shape이 (100,0) # model.add(layers.Dense(25 * 25 * 128, use...
[ "ddiyoo@gmail.com" ]
ddiyoo@gmail.com
4f9ba3ef8f3d66873ccc13f5f8d1521dfb124945
5d7798f4bf6bce76099af9245ea375bd17b0e104
/prime odd even.py
fbf3595c0866c288c7736656cb64fed0d5d2bb69
[]
no_license
shivam11509330/sippython
4c02d6410bd8ae2110d9c7ede9fba7e9854a550a
4b558cbdf7886ad97dc886e672c7735943af4c9f
refs/heads/master
2020-06-03T07:39:39.862789
2019-07-24T06:18:35
2019-07-24T06:18:35
191,498,602
2
1
null
null
null
null
UTF-8
Python
false
false
308
py
# -*- coding: utf-8 -*- """ Created on Fri Jun 21 11:43:18 2019 @author: aa """ i=260 for i in range(260,280,2): print(i,end=' ') if i==270: print('exit') break number=[i*1 for i in range(20,35)] number for i in number: print(i, "\t", i%2 > 0 , end = "\n")
[ "noreply@github.com" ]
shivam11509330.noreply@github.com
f8703c2a2ac66515991dee68bb07669901a4be36
ba36ef3c5c3885ba8b0994dc379e45d66d13d329
/experimental/Multiple-Instance-Retrieval/gen_color_db.py
b81a9359555236d03faae1ffab486bd2fd752f58
[]
no_license
kritiksoman/CV-and-Neural-Nets-Basic
74532ed78a7a09b556dd89704061e3259c172077
ef9b8f0c68b0db57c7b1d6a56e93799f9022b127
refs/heads/master
2022-09-23T00:48:00.969570
2022-09-03T08:12:43
2022-09-03T08:12:43
178,643,211
2
0
null
null
null
null
UTF-8
Python
false
false
2,833
py
import cv2 import numpy as np import scipy from scipy.misc import imread import cPickle as pickle import random import os import matplotlib.pyplot as plt trainPath = '/train new' dirPathList=[f for f in os.listdir(os.getcwd()+trainPath)] dirPathList.sort() # Feature extractor def extract_features(image_path, vector_s...
[ "noreply@github.com" ]
kritiksoman.noreply@github.com
9e1578b4167309ebd7988b94c37febefd051a916
2be83155e50126aae93ec17e94492ee5f0691e30
/configurable_http_proxy_test/test_proxy.py
f0985acaa5c2131bb8e378e94e35ff56564aee4e
[ "MIT" ]
permissive
manics/python-configurable-http-proxy
7be9cb453ba47c82673176e42a366fdaede014c8
d24458f1868fb0de6b4f5cb4d310301433cc0db4
refs/heads/main
2023-09-02T12:53:23.156803
2021-09-01T07:13:41
2021-09-01T07:13:41
415,345,446
0
0
null
null
null
null
UTF-8
Python
false
false
18,984
py
import datetime import json import os import pytest from tornado.httpclient import HTTPClientError, HTTPRequest from tornado.httpserver import HTTPServer from tornado.testing import AsyncHTTPTestCase, bind_unused_port, get_async_test_timeout, gen_test from tornado.web import Application, RequestHandler from tornado.we...
[ "abdealikothari@gmail.com" ]
abdealikothari@gmail.com
7bdfa6e952210f3f7b21f8dfcca7de529db2bec7
565ccbe9e8d038858caa76fc27190e0db4fceeda
/204/lines.py
a435e7250ef2d9c48d5cd43c4f118ccb41e04d6b
[]
no_license
Grigs-b/proggit
62ab7341d29d3607f6a1243a845a0049d322510d
f52b7b75ae847b2c106384fe93a37b62301cb1e7
refs/heads/master
2020-06-04T15:05:49.601613
2015-03-15T02:26:52
2015-03-15T02:26:52
29,889,522
1
0
null
2015-02-05T21:18:29
2015-01-27T00:31:55
Go
UTF-8
Python
false
false
642
py
if __name__ == "__main__": find = raw_input("Enter line to find in Macbeth: ") lines = [] with open('204/macbeth.txt', 'r') as f: lines = f.readlines() # we're popping from the list, so reverse it lines.reverse() toparse = [] building = "" while lines: current = lines....
[ "rgrigsby@inovasolutions.com" ]
rgrigsby@inovasolutions.com
550c95dbcf2fdd7a9a620c53dd2c5d70185e544e
9cacd9c15a958fd5cdd0f618df6534d2686c2000
/source/utils/corruptor.py
035530784b2353c12c5912b891b93fcc3d5190bd
[ "MIT" ]
permissive
1pkg/neura
e274f6e09765659613264b88d0b1706fbb5b83a9
b5ac79d2141a556f9b488b6ae07cc89f8b0cbccd
refs/heads/master
2020-05-17T16:32:16.186559
2019-04-27T22:05:01
2020-04-26T17:03:10
183,821,881
0
0
null
null
null
null
UTF-8
Python
false
false
3,943
py
from os import path, listdir, makedirs from shutil import rmtree from PIL import Image, ImageFile, ImageFilter ImageFile.LOAD_TRUNCATED_IMAGES = True class Corruptor: def __init__( self, bundle, image_quality=25, image_blur=1, image_size_factor=4, ...
[ "1pkg@protonmail.com" ]
1pkg@protonmail.com
9ddd34f1084a35a7a317424f6ad7f05bc65c780e
cbd9938756f5717adb27929481e2ff3176958e4f
/tests/integ/aws/test_athena.py
372fb3b9493eb6cfeddab4cdc9d014755185302e
[ "MIT" ]
permissive
yaojiach/red-panda
3a8c16dabff6884697e8dd47ec1a597c2415de7c
40e625e9b983e6930d5556ceba1778286b0e9c3d
refs/heads/master
2022-10-08T13:30:44.760183
2020-09-14T21:50:19
2020-09-14T21:50:19
339,915,930
2
0
MIT
2021-02-18T02:40:55
2021-02-18T02:40:55
null
UTF-8
Python
false
false
1,354
py
import pytest from red_panda.aws.athena import AthenaUtils import logging LOGGER = logging.getLogger(__name__) @pytest.fixture def athena_utils(aws_config, athena_result_location, aws_region): return AthenaUtils( aws_config, athena_result_location, region_name=aws_region, work_group="primary" ) de...
[ "jiachen.yao@outlook.com" ]
jiachen.yao@outlook.com
bc7eb55f96a4bb69c658419fd7c4a6141e27d36f
662f828a589996e5efab566c5dad122394951595
/development_build_252_arm64_eloquent/install/launch_files/share/launch_files/launch/br.launch.py
6c4d2e46ef961c7874ee576f9c48aee8939b3d7a
[]
no_license
BytesRobotics/br-travis-builds
74334bd3c6c39bcbda9167b8028afe93602e24c3
7fb57e265e9c6016768715ac80be49c7d070a450
refs/heads/master
2021-04-10T03:55:39.638150
2020-06-01T18:14:34
2020-06-01T18:14:34
248,908,080
0
1
null
null
null
null
UTF-8
Python
false
false
85
py
/home/travis/build/BytesRobotics/br-core/ros2_ws/src/launch_files/launch/br.launch.py
[ "travis@travis-ci.org" ]
travis@travis-ci.org
9e8d8780f15120d8c03a5558cd473678d4984077
da738cb496c189c880e09c812874db9a48574df1
/back/app/bets/migrations/0005_auto_20191203_2336.py
bd93d5355250cb1434ec62b486ee243614d17068
[]
no_license
SNVC1/mipt-fullstack2019
2972ed20e146394005fa41a29a25fc85674b2271
5dd6d5e61a8312917d68d863f6dca5876fad352a
refs/heads/master
2023-01-08T10:40:58.535068
2020-11-10T17:59:19
2020-11-10T17:59:19
208,422,125
0
0
null
2022-12-12T18:12:35
2019-09-14T10:06:21
TypeScript
UTF-8
Python
false
false
494
py
# Generated by Django 2.2.7 on 2019-12-03 20:36 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('bets', '0004_auto_20191203_2328'), ] operations = [ migrations.RenameField( model_name='bet', old_name='game_id', ...
[ "iggy99@mail.ru" ]
iggy99@mail.ru
49849b563515cc94c624f7216ba44dc295d65586
d34c8fafcd4299c6e7514bc9fcb24f9330579220
/tests/test_typeguard_py36.py
488d2892d68e6ce9491406fa0dbabcabd1cc39fc
[ "MIT" ]
permissive
MSeal/typeguard
5d1b1d78078945bce38f56cfa3dc78d3a1bfd90e
40d78cb7c09bcd2ab08989053816619db713d8c2
refs/heads/master
2020-07-12T11:33:31.858356
2019-08-26T20:59:17
2019-08-26T20:59:17
204,808,760
0
0
null
null
null
null
UTF-8
Python
false
false
2,152
py
from typing import AsyncGenerator import pytest from typeguard import TypeChecker, typechecked class TestTypeChecked: def test_async_generator(self): async def run_generator(): @typechecked async def genfunc() -> AsyncGenerator[int, str]: values.append((yield 2)) ...
[ "alex.gronholm@nextday.fi" ]
alex.gronholm@nextday.fi
f07db021bf7da80d15a8e6950b5aff6072963ca9
bfbfe1cc7b285c85cc5a59690b837887bb198dd8
/api/api/urls.py
9e5830e2c1abf23c41aaba24252e9da641eaaccc
[]
no_license
pavoli/django_restapi
cca4c5387e46eb95cd7d65d8c80a9fa9d746fe03
f5627142ded4f4f3e81afcf77ef2490237ed8ccc
refs/heads/master
2021-09-25T18:19:20.545142
2021-06-10T21:25:43
2021-06-10T21:25:43
247,872,644
0
0
null
2021-09-22T18:45:45
2020-03-17T03:41:36
JavaScript
UTF-8
Python
false
false
906
py
"""api URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/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 vie...
[ "pavel.olifer@gmail.com" ]
pavel.olifer@gmail.com
f626e4c5e87f1174bd5d5a600cd96e4fa1457a78
7d97ab8643536fbec2a41e3f3171d4813b066351
/eetree_ext_pico_breath_screen_light_main.py
5abbf5f7ca32a2e45f9ca1e97451a38a3a577720
[]
no_license
yoyojacky/rpico
a05dc33c8a26cfe66db38136fbeec49221b888ac
d1fb7ba126e50148d8507635702f526bb97f9611
refs/heads/main
2023-04-22T00:30:03.207182
2021-04-23T06:42:41
2021-04-23T06:42:41
357,458,048
0
0
null
null
null
null
UTF-8
Python
false
false
265
py
from machine import Pin, PWM from time import sleep pwm = PWM(Pin(15)) pwm.freq(1000) while True: for duty in range(65025): pwm.duty_u16(duty) sleep(0.0001) for duty in range(65025, 0, -1): pwm.duty_u16(duty) sleep(0.0001)
[ "yoyojacky2009@gmail.com" ]
yoyojacky2009@gmail.com
f9d7a76a549884b1446f5afa5435bb211642a89a
784c18ff7441b117abf33290ba4c25270fc1ba34
/projects/maw/marshal1/env/Scripts/runxlrd.py
64d6e0d104a5138da93f550282b9a952cf1ffe47
[]
no_license
kshitijvr93/Django-Work-Library
a1b4dd0fd2936c3303cdce9b508bd9b63c4957cc
dd173422d1347f8e464facd2dc137e439df8a34f
refs/heads/master
2022-12-12T08:23:08.032627
2018-12-30T06:59:18
2018-12-30T06:59:18
152,334,131
0
0
null
2022-12-07T23:52:46
2018-10-09T23:21:56
Python
UTF-8
Python
false
false
16,334
py
#!c:\users\kshit\downloads\library_maw_project\marshal\projects\maw\marshal1\env\scripts\python.exe # Copyright (c) 2005-2012 Stephen John Machin, Lingfo Pty Ltd # This script is part of the xlrd package, which is released under a # BSD-style licence. from __future__ import print_function cmd_doc = """ Commands: 2ro...
[ "kshitijvr93@gmail.com" ]
kshitijvr93@gmail.com
4be6990f13b75dcd2985e79a5e714ecc11eed993
d69cbe28187c37cbeb922a2ce397e35df9a5c217
/test/distributed/test_store.py
cab8ac1d8121afe4ea9cec476554a23f892c0b3d
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
standbyme/pytorch
3347245349bd88bab7ba5f28cf598053280de47c
99282126dc51e34876844df5a6cbb5933a9674f5
refs/heads/master
2021-10-29T22:07:02.973341
2021-10-29T12:20:29
2021-10-29T12:22:17
271,911,535
0
5
NOASSERTION
2020-06-13T00:08:46
2020-06-13T00:08:45
null
UTF-8
Python
false
false
15,468
py
# Owner(s): ["oncall: distributed"] import os import random import sys import tempfile import time from datetime import timedelta from sys import platform import torch import torch.distributed as dist import torch.distributed.rpc as rpc if not dist.is_available(): print("torch.distributed not available, skipping...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
4b23352b2e65a49bf3b7f634deb8339b32ef707c
d8c35f71daa6f6ad4ca403fec5e32a840b246558
/practice_problems/strings_arrays/string_rotation.py
3e8a8e77589686fec04f53bb2855ae2de743a8c6
[ "MIT" ]
permissive
YazzyYaz/codinginterviews
13ff0cf78b8c40ec65817722a261501e20a3799d
b8115c43507d738bccd90366f2bc02867ba7f13f
refs/heads/master
2020-03-16T21:05:05.836058
2018-08-08T03:32:48
2018-08-08T03:32:48
132,983,993
0
0
null
null
null
null
UTF-8
Python
false
false
479
py
def is_rotation(s1, s2): if len(s1) != len(s2): return False return is_substring(s1+s1, s2) def is_substring(s1, s2): for x in range(len(s1) - len(s2) - 1): is_substring_flag = True for y in range(len(s2)): if s1[x+y] != s2[y]: is_substring_flag = False ...
[ "yaz.khoury@gmail.com" ]
yaz.khoury@gmail.com
4082aded1997f15b2e6374a653d4d0b4dc1323dc
05917c56ba7863ef5366ec2ecffc4e9e7e9e7094
/CS2-master/CS2/migrations/versions/e5638e55e8f8_initial_migration.py
3c0d300edb65f4c5eba87cc5ab70c326dd736c5e
[]
no_license
hafizhsyafiqh/CS2
03bc20420537c335acaea80aa5ba907af2f082e5
0e380799253daee914d5bd51964aad7bdd577bd3
refs/heads/master
2022-11-17T23:19:44.112292
2020-04-23T18:13:43
2020-04-23T18:13:43
255,489,290
0
1
null
2020-07-23T03:47:32
2020-04-14T02:20:15
Python
UTF-8
Python
false
false
1,963
py
"""Initial migration. Revision ID: e5638e55e8f8 Revises: aab60456f86f Create Date: 2020-04-07 15:39:06.817559 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = 'e5638e55e8f8' down_revision = 'aab60456f86f' branch_labels = None...
[ "hafizhsyafiqh@gmail.com" ]
hafizhsyafiqh@gmail.com
db3cd90ea6c122880dc689b41c95e0d5b8721e03
91c9bc868ffa262b168081d4b7696581918742a2
/tests/test_credstore.py
605bb7b3852b95bce1160c53f2220622ebcb2479
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
borland667/pyvmomi-tools
caface9f133527d46ca41993624f83b6f900b170
667106d57f9a2e415b65321d6317f1e94bc3c2ba
refs/heads/master
2021-01-21T15:22:26.111774
2015-05-22T00:37:58
2015-05-25T00:53:15
35,787,465
0
0
null
2015-05-17T23:41:57
2015-05-17T23:41:57
null
UTF-8
Python
false
false
5,212
py
# Copyright (c) 2014 VMware, Inc. 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...
[ "demoosvaldo@gmail.com" ]
demoosvaldo@gmail.com
0e5c6f3f1d542d08bb5df4e3402c3984b05f52ef
6e8cf0f00b86d7d5f95e2005a5184a6232d2a313
/models.py
c0858ec63095efec26f6c9eb1b4c8f858630cd23
[]
no_license
LaRiffle/ariann
0186fd1cda1bc0dfd16c64310740370750fe377a
f0a6f3108b639765db65151dd281d39bcfd49f8a
refs/heads/main
2023-06-25T02:10:37.209141
2021-07-14T10:10:54
2021-07-14T10:10:54
320,008,387
41
4
null
null
null
null
UTF-8
Python
false
false
9,388
py
import os import re import torch import torch.nn as nn import torch.nn.functional as F import torchvision.models as models class Network1(nn.Module): def __init__(self, dataset, out_features): super(Network1, self).__init__() self.fc1 = nn.Linear(784, 128) self.fc2 = nn.Linear(128, 128) ...
[ "theo.leffyr@gmail.com" ]
theo.leffyr@gmail.com
f62815d250bf04c30cce5b51f3eb7c348451abf7
89af5117876262e23501f9fa6a21e753532ba64a
/matlab-with-python/MatlabExample/mySpeechRecognizer.py
dbe1e1fb74ff9751a73f7fbb05ec2d12fba584e0
[]
no_license
PeterJochem/Chrono_Simulations
a094f2ef01cb2438897fd3827d1fa1598e087b70
7bcf07762239eddaf9a270072616fbc7fd11fd2f
refs/heads/master
2022-10-22T16:08:54.456150
2020-06-14T23:08:17
2020-06-14T23:08:17
258,672,836
0
0
null
null
null
null
UTF-8
Python
false
false
1,239
py
# Python speech recognition code using CMU PocketSphinx # Source: https://pypi.python.org/pypi/SpeechRecognition/ import speech_recognition as sr # Takes an audio signal (in uint8 format), along with its sampling frequency and channel width, and outputs detected text and success flag. def audioToText(audio,fr...
[ "peterpennrichjochem@gmail.com" ]
peterpennrichjochem@gmail.com
c96ad3a0f250160ec9730f0f3cbe97a76ccf0a01
5924e1233a83b0d1236dd660a72d50ff9ff8a22c
/plugin.py
5a1ea246b1ae705fd363e903b7ed6187f0480543
[]
no_license
TBemme/galaxy-integration-psp
6b01e26903d2dd5843e3daf87f1a687e261311b5
599fc336b1c12c4ae158c410134e10441bf5187f
refs/heads/master
2020-07-06T03:33:50.418357
2019-08-29T07:57:26
2019-08-29T07:57:26
202,875,549
9
1
null
null
null
null
UTF-8
Python
false
false
4,571
py
import asyncio import json import os import subprocess import sys import re import config from galaxy.api.plugin import Plugin, create_and_run_plugin from galaxy.api.consts import Platform, LicenseType, LocalGameState from galaxy.api.types import Authentication, Game, LocalGame, LicenseInfo from version import __versi...
[ "53412915+TBemme@users.noreply.github.com" ]
53412915+TBemme@users.noreply.github.com
eadc71823084cf16a158b3d119f7327215fa723d
3d01ca84834e50c48057caf1d2294f7bdaa9f6c3
/mkt/developers/views_payments.py
781ccbca0999346b2f44b9514d4b92dfccac872c
[]
no_license
caseybecking/zamboni
5d674c4ed13566481c3cbc665c0b836c90310698
78aa8000fa4e503b78f3ddf7e87c93275e70e8bd
refs/heads/master
2021-01-21T00:59:25.846096
2012-12-26T21:26:36
2012-12-26T21:26:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,193
py
from django import http from django.shortcuts import get_object_or_404, redirect import commonware import jingo from tower import ugettext as _ import amo from amo import messages from amo.decorators import json_view, post_required, write from lib.pay_server import client from mkt.constants import DEVICE_LOOKUP from...
[ "me@mattbasta.com" ]
me@mattbasta.com
bab21987f86bbc8fd402273f2f354f0e27ec86d3
6ee0d402a55dc32121b548b48203d3098ead8726
/28.py
d8899a61085bb579ebcf16aed5bc4d403ad11cf3
[]
no_license
tomasolodun/kolokvium
81e143f8aff2fb0d1b85fb3b51718056ff6130ef
5eebc57f62e6e3cf60bf1927db6e0dcdde98cba8
refs/heads/master
2022-04-24T21:44:28.905413
2020-04-22T10:37:38
2020-04-22T10:37:38
257,869,203
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
'''Знайти кількість парних елементів одновимірного масиву. ''' import random array = [random.randint(10, 100) for i in range(10)] print('Даний масив:\n', array) counter = 0 for j in array: if j % 2 == 0: counter += 1 print(f'Кількість парних елементів масиву дорівнює {counter}')
[ "noreply@github.com" ]
tomasolodun.noreply@github.com
5fe5023e4efdd4de9a18877f41d26fdc17789906
04fb184b60c141ab83b7d22edb04e85a7f82c6dc
/core/collections/search.py
b655a5eb2773896e53bf937a6ad44da906ca9e3e
[]
no_license
jwnasambu/oclapi2
4f201d35fffe715306c9b63d4374530e7e32a80b
5d5fdd94206ebd63cee81c99931df5ab51f12fe8
refs/heads/master
2023-03-06T01:59:39.752977
2021-02-24T11:30:57
2021-02-24T11:30:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
646
py
from elasticsearch_dsl import TermsFacet from core.collections.models import Collection from core.common.search import CommonSearch class CollectionSearch(CommonSearch): index = 'collections' doc_types = [Collection] fields = ['collection_type', 'locale', 'owner', 'owner_type', 'is_active', 'version'] ...
[ "sny.aggarwal@gmail.com" ]
sny.aggarwal@gmail.com
c697bbca17a2af6db4702005d7f7bfa7955871e2
133ab71dce3dcb281a72767d4bcd37b14e22bc84
/recommendsystem/assessment.py
520dc9b89d2c5c19fea6e5059f9b2be60d1af8b9
[]
no_license
CxwAlex/recommendsystem_new
c1d7bb75072cd519b597e631eebc7d6d60c62af8
00f52edc4abd564fd715ee1f64607185f85486e9
refs/heads/master
2020-03-17T02:51:03.056397
2018-05-19T08:05:29
2018-05-19T08:05:29
133,208,812
1
0
null
2018-05-19T08:05:29
2018-05-13T05:34:41
Python
UTF-8
Python
false
false
7,021
py
import math import time from pandas import Series, DataFrame from recommendsystem.engine_cf import ItemSimilarityCF #对推荐结果进行总结 #其中,train是原始的训练集dataframe, recommend是推荐结果dataframe #test是测试集的dataframe或者多元组 def Summary(train, recommend, test, item_similarity=None): t0 = time.clock() recall = Recall(recommend, tes...
[ "32626258+CxwAlex@users.noreply.github.com" ]
32626258+CxwAlex@users.noreply.github.com
284446dfc0afa441f3e0c89b97221c5675fc74ce
c32bf6854a42e778c7742a67190355e66b6ecc23
/day5_2.py
473c0f4a5dd905291e700c4526956388ff3b2508
[]
no_license
sweavo/code-advent-2020
ee56eb26b469b91ce22b7a37802d745e290d8382
f6bad2eafbb5aa413474dd8caa28f11b05d58f44
refs/heads/main
2023-02-08T14:06:40.375901
2020-12-22T07:47:09
2020-12-22T07:47:09
317,208,166
0
0
null
null
null
null
UTF-8
Python
false
false
1,107
py
import day5_1 """ Insights: The pass IDs are just binary numbers: if B and R are 1 and F and L are 0 then you are just evaluating a 10-bit binary integer to derive the pass ID. We know that the whole plane is full, though the integers do not necessarily start at 0 nor extend to MAX_10BIT_UINT. We know that the n...
[ "steve.carter@etas.com" ]
steve.carter@etas.com
9d474a6d8f21485f09d743bb0dc4a45fe24fc8b6
8a8b5fca6845d61e80f1c7fcafd896174009c36f
/w8e3_add.py
011b528316955921a57250e9bf1c0c20a3c1a962
[ "Apache-2.0" ]
permissive
ibyt32/pynet_test
e9217afd765cbf0b5f076df812528d18d4df215b
3b05d907fa0077d793b47dae36466a56d4ee3ef0
refs/heads/master
2020-05-22T01:16:42.635933
2016-11-28T00:50:48
2016-11-28T00:50:48
65,155,209
0
0
null
null
null
null
UTF-8
Python
false
false
996
py
#!/usr/bin/env python ''' Python and Ansible for Network Engineers Week 8, Exercise 3 Create two new test NetworkDevices in the database. Use both direct object creation and the .get_or_create() method to create the devices. ''' import django from net_system.models import NetworkDevice def main(): ''' Crea...
[ "ibyt32@gmail.com" ]
ibyt32@gmail.com
e5f7d995c46381db8b00cfd344bcfb4d9222e613
d1eff6a5ed14ff33e87155c6e50500503458295d
/anaconda_project/version.py
dab2504eee1ebd6a2247f2577b8b446cbebc817f
[ "BSD-3-Clause" ]
permissive
alymanap/anaconda-project
b49ee534eab935fb969206b68c86ef7cda64dd8f
7e3e518b2f0a71cf5f6c9a2aa73adbafddc5b8d8
refs/heads/master
2021-07-07T22:39:44.617666
2017-10-04T03:04:16
2017-10-04T03:04:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2016, Anaconda, Inc. All rights reserved. # # Licensed under the terms of the BSD 3-Clause License. # The full license is in the file LICENSE.txt, distributed with this software. # -------------------...
[ "goanpeca@gmail.com" ]
goanpeca@gmail.com
85d1daf64a3d7937820bc5e3bf5908989efffb16
1bcf0ceba6c49a23718769695298ccf5f7052b32
/compreseguros_com/compreseguros_com/items.py
2dec6c16f0e6580aad22807cb441354537852570
[ "MIT" ]
permissive
hanjihun/Car
eb54b97bd0707cc650b8bb6730a4dda6a4297138
546348a1886efdef18a804a03c9862f88a6b1809
refs/heads/master
2021-01-20T12:56:51.264382
2017-03-02T20:06:11
2017-03-02T20:06:11
82,671,985
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class CompresegurosComItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass
[ "bbanzzakji@gmail.com" ]
bbanzzakji@gmail.com
fc0c34c42e17b28ac6a02a6bcfb40ba5edff18d3
6b7a78af0cc06a583026e3e448d5d5c5adf7c861
/blurTest4.py
fd66e6c91d3326cebf8b9a3abbcc7ec392065965
[]
no_license
zhangjiwei-japan/Image-Segmentation-Tools
9c6263b06745ce3da6d21cb1528b7c1014dc4af1
151d0a97248ccab3a5f38d7d521b1d38e76011f4
refs/heads/master
2021-06-01T19:03:53.241586
2015-01-31T06:05:46
2015-01-31T06:05:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,854
py
# -*- coding: utf-8 -*- """ Created on Mon Nov 24 00:36:10 2014 @author: Avilash """ #A port of a MATLAB retinal segmentation alogorithm #Using Dijkstra's algorithm to find the edges in an OCT image of the retina #import cv2 import numpy as np #impletmentation of Dijkstra's algorithm. Runs in O(m log n), m is the...
[ "avilash.cramer@gmail.com" ]
avilash.cramer@gmail.com
bfb7111f04289b636cf7c185600a29a68f997888
c0b4a6786d501178eac1748883668751eff9f1ff
/data_pipelines/County-Data/ohio-scrape.py
4553664c20fc8d52a279fe0f84b0349228b335c8
[]
no_license
GaloisInc/covid-19
399c675fa848408252dd81fcc78da78705d050bc
a997943fdca89d69d9cedb914e1e3fb8da1253a0
refs/heads/master
2023-03-18T22:53:43.805023
2021-02-08T20:41:24
2021-02-08T20:41:24
250,390,514
6
0
null
2021-03-03T05:17:21
2020-03-26T22:59:39
HTML
UTF-8
Python
false
false
2,211
py
import requests import pandas as pd import os, errno from datetime import datetime from bs4 import BeautifulSoup import re today = datetime.date(datetime.now()).strftime("%Y-%m-%d") directoryName = 'ohio_county_scrapes' fileName = directoryName + "/" + directoryName + "_" + today + ".csv" URL = "https://coronavirus.o...
[ "zealabyrinth@gmail.com" ]
zealabyrinth@gmail.com
cc862ff783a8c62ac336374739356cc0db6f1d62
bd41fc77c258a4004d51341610bb0c6f2da991b6
/pytext/models/output_layers/word_tagging_output_layer.py
32ee0b5388388e98ca88be439b65b4e3985d3e26
[ "BSD-3-Clause" ]
permissive
jain-m/pytext
9850cb4b409661af77627dc204364196351ec5cb
f7e1ff48e0f5cca82bd7aa4b973e24beee093fec
refs/heads/master
2021-01-02T11:08:49.617885
2020-02-07T23:30:17
2020-02-07T23:42:50
239,595,197
0
0
NOASSERTION
2020-02-10T19:29:32
2020-02-10T19:29:31
null
UTF-8
Python
false
false
12,097
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from typing import Any, Dict, List, Optional, Tuple, Union import torch import torch.jit as jit import torch.nn as nn import torch.nn.functional as F from caffe2.python import core from pytext.common import Padding from pyte...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
5b6118211603a963a596f50431c0e911b8588a6d
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/HM2-PLATFORM-QOS-MIB.py
266ddf674fd55da0a84500717ba606c6ffe577b8
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
2,001
py
# # PySNMP MIB module HM2-PLATFORM-QOS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HM2-PLATFORM-QOS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:19:21 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
a46d27a473a1738f47729fe208035b789ee303df
ef8287e4000b539e6e7f60fba37c6f8d0e230d64
/tart/tart/urls.py
6ceb8bab657cf1cebdc2120858d881274ab1188e
[]
no_license
ImInnocent/2021_DEV_MEMBER_2
4a85d7d2bc4df41294798e93d06af1464e8389c2
7be8cef1a83b5929ba8b69fac701584d51b64134
refs/heads/master
2023-02-26T14:13:39.833720
2021-02-02T07:03:05
2021-02-02T07:03:05
334,938,020
0
0
null
null
null
null
UTF-8
Python
false
false
824
py
"""tart URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/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 vi...
[ "ssje2006@naver.com" ]
ssje2006@naver.com
4d4b0e3d8d3f2f32be2c213462bbff33e8e26cc5
c17bc41b85a79f42b2fbcdcb31a34da314208fad
/analysis/Twitterer_in_Evac.py
891bce80e6914b533dfe889dc2156cff799fb14d
[]
no_license
jenningsanderson/GIS3-Sandy-Project
8980c673fd1f191edfb12a219dce968726522823
c5494d0ec4fabb52349343ef432c5afd6bc86f5d
refs/heads/master
2020-05-17T14:48:14.669171
2014-04-27T19:19:31
2014-04-27T19:19:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,428
py
# -*- coding: utf-8 -*- """################################## Created on Sat Apr 19 11:06:13 2014 ###################################""" import arcpy from arcpy import env env.workspace = r"D:\Project" env.overwriteOutput = 1 import csv users = [] with open('ImportToArcmap.csv' , 'rb') as csvfile: ...
[ "jennings.anderson@colorado.edu" ]
jennings.anderson@colorado.edu
aa106740057df2a05d23656d73a3253c19c9d56a
eb76fc4e1b9e3b4e53e752103260c3970c91ae96
/rest_framework_cassandra_engine/tests/test_serializers.py
cdf50da2f6e9fa013534824a7856a3fca12399e1
[]
no_license
saltyD0g/rest_framework_django_cassandra_engine
d7d6093e0368d5f8639bdce16fbf2af3503e6c5f
e54f2ac79d9a7e9b5589bc890708b5ee034d87d9
refs/heads/master
2021-01-10T20:36:30.329460
2014-12-30T22:30:34
2014-12-30T22:30:34
33,625,221
0
0
null
null
null
null
UTF-8
Python
false
false
1,703
py
from datetime import datetime from cqlengine.models import Model as cem from cqlengine import columns as cec from unittest import TestCase from rest_framework_django_cassandra_engine.serializers import CassandraEngineModelSerializer from rest_framework import serializers as s class Job(cem): id = cec.TimeUUID(p...
[ "blacknsquid@yahoo.com" ]
blacknsquid@yahoo.com
852fdf1d449a59a383d4c8caa9866edb6361903b
2cfa0cd5e016d81ecdd3f643e95bd6382652f1ab
/toTheMoon/leetcode_063_UniquePathsII.py
ff682144e0185e9da6e8e0a8c79f6f1e6cf75000
[ "MIT" ]
permissive
jercas/offer66-leetcode-newcode
b863871840875cc38e0310b1e20ccaa4040ea134
a2e5256f27dbfb23fc34119fc857cd9b00e28c03
refs/heads/master
2020-05-07T17:43:43.326326
2019-10-24T12:52:32
2019-10-24T12:52:32
180,738,543
0
0
null
null
null
null
UTF-8
Python
false
false
2,580
py
# -*- coding: utf-8 -*- """ Created on Wed May 29 16:36:33 2019 @author: jercas """ """ leetcode-63: 不同路径 II MEDIUM '数组' '动态规划' 一个机器人位于一个 m x n 网格的左上角 (起始点在下图中标记为“Start” )。 机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角(在下图中标记为“Finish”)。 现在考虑网格中有障碍物。那么从左上角到右下角将会有多少条不同的路径? Tips: 网格中的障碍物和空位置分别用 1 和 0 来表示。 m 和 n 的值均不超过 100。 "...
[ "jercas0618@163.com" ]
jercas0618@163.com
85cb7838dbd05b606644a14b404c43c95d8ae8b9
13446678c3a8cc39ea2fd7dd9a07df60a6be12ac
/src/netius/adapters/null.py
50cc44fd00a809c644aade5241a3c25984fc49a7
[ "Apache-2.0" ]
permissive
maxssage/netius
8648d9e40a8144279e669bea95e470d730c8edce
7949e336381ded609f97c818c84a6572afefed35
refs/heads/master
2020-12-25T13:12:52.946000
2015-09-22T10:42:42
2015-09-22T10:42:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,359
py
#!/usr/bin/python # -*- coding: utf-8 -*- # Hive Netius System # Copyright (c) 2008-2015 Hive Solutions Lda. # # This file is part of Hive Netius System. # # Hive Netius System is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by the Apache # Foun...
[ "joamag@gmail.com" ]
joamag@gmail.com
f3061149ecc0d07e3f5cf27f33a08f5d5fca99ac
884e7614fa607fe37d1fcaa312135a4146604a0c
/pythonProject/creat_to_efficent_and_yolo/unzip_classfication_update.py
1cc45b12c01dd2eab0c00b8726df502fc33569d6
[]
no_license
TaoBowoa180011/WorkingScrip
7b1620c37af4d4af5ee6e177b35be0e48b282c9e
8b495b1bf4b4f063e1835368cf251910b137203e
refs/heads/master
2023-04-27T19:04:13.262025
2021-05-11T01:32:54
2021-05-11T01:32:54
366,217,028
0
0
null
null
null
null
UTF-8
Python
false
false
8,082
py
import os import cv2 import numpy as np import random global dstfolder from tqdm import tqdm filename="unzip/" mse_fa=500 def mse(a,b): try: err = np.sum((a.astype("float")-b.astype("float"))**2) err /= float(a.shape[0]* a.shape[0]) except: err=0 return err def judgement_class(o...
[ "tb167883098@gmail.com" ]
tb167883098@gmail.com
9f314976950e90cf36f6aeced9f303a16984cea5
f03df866e1534ccf1ce7bfc6de246bada590e64d
/cache/.mako.tmp/index_helper.tmpl.py
14e07ba31b2cacd3e0b1c07f57d0c75a1fce58a9
[]
no_license
edgecollective/edge-blog.github.io
8c71da6ae9f38503a23589d435b108cee817e09a
1b5173cd99de16990e6d853e1f7934542bb5744c
refs/heads/master
2021-06-23T20:47:03.833055
2017-09-10T00:46:22
2017-09-10T00:46:22
100,330,888
0
0
null
null
null
null
UTF-8
Python
false
false
3,397
py
# -*- coding:utf-8 -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED STOP_RENDERING = runtime.STOP_RENDERING __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 _modified_time = 1505001037.852128 _enable_loop = True _template_filename = '/home/dwblair/Snakepit/nikola-773/lib/...
[ "donblair@gmail.com" ]
donblair@gmail.com
075b409dac6f9bf6d113a8ef9214b6134f53426d
6ccd8d2e6bc85cb73f205e239ad3618782b7e5bf
/caseStudyObjectTracking/eyeTracker.py
a937da06f062c3bcdf4ce3d551d25606368fcb75
[]
no_license
lkhoho/opencvWithCaseStudy
745c901b86caaacf5753dbe2938e3e3c51430d3d
a12e590a681c45540b7ef04dc1665077ae488c5f
refs/heads/master
2021-04-15T15:50:33.718403
2018-03-26T09:53:21
2018-03-26T09:53:21
126,807,560
1
0
null
null
null
null
UTF-8
Python
false
false
1,069
py
import argparse import numpy as np import cv2 from utils.imutils import resize from utils.eyetracker import EyeTracker ap = argparse.ArgumentParser() ap.add_argument('-f', '--face', required=True, help='Path to where the face cascade resides') ap.add_argument('-e', '--eye', required=True, help='Path to where the eye ...
[ "keliu@uwm.edu" ]
keliu@uwm.edu
c58507d6fcda5741e7ea9160a8d84c9117300cbb
a863483b9fa4e940718a3206340e698d9cdbc341
/elpy/rpc-venv/lib/python3.8/site-packages/platformdirs/android.py
eda0de737ead7c1262f39092e4b6db523ea89099
[ "BSD-2-Clause" ]
permissive
jhsygg/emacs.d
ebed42b52d4609e23ad9fa41fa873d2f52980bec
addf36f3e2fb3419f547df6180b835036a295542
refs/heads/main
2023-06-12T07:54:26.863128
2023-06-06T07:02:02
2023-06-06T07:02:02
124,079,470
0
0
null
null
null
null
UTF-8
Python
false
false
6,530
py
from __future__ import annotations import os import re import sys from functools import lru_cache from typing import cast from .api import PlatformDirsABC class Android(PlatformDirsABC): """ Follows the guidance `from here <https://android.stackexchange.com/a/216132>`_. Makes use of the `appname <platfo...
[ "jhsygg@126.com" ]
jhsygg@126.com
f95b2d23490efbb9545f6e0bf0d35ee137da73f7
cfc1ff383a1156b5a8e13c86a2635db3381c760c
/Loris-PAF/mxc_run_GA/mxc_run_ga_utils.py~
089b28501b2860bc731131f0dafc05ff55a9586a
[]
no_license
romaintinh/paf
afb67483aebfada32c316fef5e4dbab6d6e9b755
671aca3d86aa1df01f2cc3112cb4a3e4427d8895
refs/heads/master
2020-03-21T07:50:15.598713
2018-06-28T15:25:46
2018-06-28T15:25:46
138,302,635
0
0
null
null
null
null
UTF-8
Python
false
false
15,209
import random import copy import packingUtils import schedulabilityFunctions import fileUtils import global_variables def Print_individual(individual): size = len(individual) for i in range(0,size): print individual[i] def Correct_individual_matrix(individual,list_aggregated_servers,list_task_to_schedule_for...
[ "loris.millet@telecom-paristech.fr" ]
loris.millet@telecom-paristech.fr
296aa57462e3fc225deea7abde33d6589be582f9
057b5bf1325dd1a642081069ad6d135b0a076ccc
/modules/uwebsockets/client.py
57128ed65b394839c51ecddb87f3601defdc40af
[]
no_license
hiway/micropython-uasyncio-uwebsockets-modules
a919b80ae77e6f02654384faba2579d388c2dd39
59740adf87f44d5e0e910e97910437927b3d82c4
refs/heads/master
2020-12-24T13:52:43.682547
2016-12-17T12:55:22
2016-12-17T12:55:22
76,715,616
3
0
null
null
null
null
UTF-8
Python
false
false
3,198
py
""" Websockets client for micropython Based very heavily off https://github.com/aaugustin/websockets/blob/master/websockets/client.py """ import ubinascii as binascii import urandom as random from ucollections import namedtuple import uasyncio as asyncio import ulogging as logging from .protocol import Websocket LO...
[ "harshad@sharma.io" ]
harshad@sharma.io
6209b3c76c9c5c7722b43fe96bd56dd45c65cb22
4be9a1b6c1c694962f6e97500a334a34aef19d9f
/Python/Even numbers using lambada.py
54fd68c4f3559f2f68914405c27302848a4a567f
[]
no_license
ndilhara/HacktoberFest2021-2
1266ff0b022fee7b2ce02e6a3753c65163f7d5ee
84fbe7ca944af18a65255b45ebc8da02830514fa
refs/heads/main
2023-08-30T20:50:16.398679
2021-10-30T18:02:03
2021-10-30T18:02:03
422,953,223
1
0
null
2021-10-30T18:02:04
2021-10-30T17:53:39
null
UTF-8
Python
false
false
104
py
n=int(input("Enter the limit : ")) print(* list(filter(lambda x: (x%2==0),[i for i in range (n)])))
[ "noreply@github.com" ]
ndilhara.noreply@github.com
4082b0bb5bf940d7c02eda4aabab9b4936232e86
ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f
/P.O.R.-master/pirates/minigame/Fish.py
64018e3380aafaf0bca723f6a59803edbfb23cd6
[]
no_license
BrandonAlex/Pirates-Online-Retribution
7f881a64ec74e595aaf62e78a39375d2d51f4d2e
980b7448f798e255eecfb6bd2ebb67b299b27dd7
refs/heads/master
2020-04-02T14:22:28.626453
2018-10-24T15:33:17
2018-10-24T15:33:17
154,521,816
2
1
null
null
null
null
UTF-8
Python
false
false
21,291
py
import random import math from pandac.PandaModules import NodePath, Point3 from direct.interval.IntervalGlobal import Sequence, Parallel, Wait, Func from direct.interval.LerpInterval import LerpFunc from direct.task import Task from panda3d.core import TextNode import FishingGlobals from FishFSM import FishFSM from Ble...
[ "brandoncarden12345@gmail.com" ]
brandoncarden12345@gmail.com
e3f206db445900a12d1590b90961b0bbb3ef400f
a7347bd30b2bfc61ef2272f43dc6a583ca50ea85
/user/urls.py
506bdb0aaff919f997ebbd2ca504b5e5b3b2aac2
[ "MIT" ]
permissive
Sergey19940808/blog
cb5a731a5b1af3e3ffe22d03ae554188b573051c
26beea5b218ddfe3347e251994c5c2f500975df0
refs/heads/master
2022-04-11T06:56:05.171087
2020-03-21T13:59:45
2020-03-21T13:59:45
248,254,285
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
from django.urls import path from user.views import LogoutViewCustom, LoginViewCustom urlpatterns = [ path('login/', LoginViewCustom.as_view(), name='login'), path('logout/', LogoutViewCustom.as_view(), name='logout'), ]
[ "aleksey.serzh@mail.ru" ]
aleksey.serzh@mail.ru
4d1688bc185f6d845f5ab2e1ca1310ebb6340586
150421fb8e7a913493f9ba0c37c85a624eec5bc4
/scripts/environment.py
7d17b09987bac88b2312aef2c799f54f05695691
[]
no_license
SweiLz/Katana
19b50d59cf8b8f696a3abe699042087c4d61ff4a
2d7f70b452a736438b1e96e692cd9baf0439cf78
refs/heads/master
2022-09-21T04:08:36.984576
2020-06-03T16:59:00
2020-06-03T16:59:00
263,915,329
0
0
null
null
null
null
UTF-8
Python
false
false
5,398
py
#!/usr/bin/env python import math import rospy from geometry_msgs.msg import Point, Pose, Quaternion, Twist, Vector3 from std_msgs.msg import ColorRGBA, Header from visualization_msgs.msg import Marker, MarkerArray from tf.transformations import quaternion_from_euler from partRing import CircleLight import tf class ...
[ "sweilz.w@gmail.com" ]
sweilz.w@gmail.com
df8c41080835a716f20b4d748167744ba9cd2f5b
2733eda1907dc0111a786d900b1e82ccf7871142
/scoop/scoop/settings.py
b477cc7cfa887fae70cdce3d8fc6cb7eb0468877
[]
no_license
wavebyte/scoop
2924b9ac83f6f8082d8296512ca120cb4cf7c255
e49ef363662bda2c5b188d6a29109e27bd08f8fb
refs/heads/master
2016-09-15T21:06:25.795445
2013-06-21T19:38:37
2013-06-21T19:38:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,347
py
# Django settings for scoop project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': '', ...
[ "EDYQveZfaa" ]
EDYQveZfaa
67c8641c62d8c8f95dcbba4065c39401bf989154
0049811de008a725024197d7dbd98c25b9eb8b49
/vim_edited_files/anagrams.py
c27b8db1c93c5ce91698b9a8276c27df40171a6e
[]
no_license
matbc92/learning-python
4b7ad63f8029b7a4fb527549ef6fa671e923e66e
1174bd038187ae5225034685bf534a61888e2ba9
refs/heads/master
2020-04-07T13:59:23.603390
2019-07-25T05:13:42
2019-07-25T05:13:42
158,429,882
1
0
null
2018-11-21T10:57:10
2018-11-20T17:51:45
null
UTF-8
Python
false
false
523
py
def anagramSolution1(s1,s2): if len(s1) != len(s2): stillOK = False pos1 = 0 stillOK = True while pos1 < len(s1) and stillOK: pos2 = 0 found = False while pos2 < len(s2) and not found: if s1[pos1] == s2[pos2]: found = True else: ...
[ "matheusbc92@gmail.com" ]
matheusbc92@gmail.com
475c1e992482bca16a1c82ce2ca9bea454f4f955
27b066d73041e5db85d861512973a429e14cceb2
/pygen.py
24957395e56c455fe1374b4fe38d421f57387350
[ "Apache-2.0" ]
permissive
JLCarveth/PyPwGen
becb3a606d34592fbdca039953947701bae61c93
9e52a064b40544461c7b617d280d864099ed5470
refs/heads/master
2021-01-02T09:10:21.202144
2017-08-02T20:00:56
2017-08-02T20:00:56
99,151,198
0
0
null
null
null
null
UTF-8
Python
false
false
1,987
py
from tkinter import * from random import randint def generate(num): # Number of passwords to generate num = int(num) # Number of lines in the word file lc = 2926 for i in range(num): file = open("words.txt", "r") r1 = randint(1, lc) # Line number of first...
[ "noreply@github.com" ]
JLCarveth.noreply@github.com
8019cb07da2e8ca8a0a0de7b0e201dd7cb2293f2
076f75f633cd8364c43bbcd52521c4dc54a54ea5
/varlens/read_evidence/__init__.py
c89c94c4de82770342ccf84a6c72a34d73c017e4
[ "Apache-2.0" ]
permissive
openvax/varlens
f01f236327d1492c7d6329d3247d7f3e33520b21
715d3ede5893757b2fcba4117515621bca7b1e5d
refs/heads/master
2021-09-07T17:22:18.721285
2018-02-26T19:59:28
2018-02-26T19:59:28
38,770,069
5
0
null
null
null
null
UTF-8
Python
false
false
1,442
py
# Copyright (c) 2015. Mount Sinai School of Medicine # # 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 o...
[ "timodonnell@gmail.com" ]
timodonnell@gmail.com
699c1644eafec02ca225b0f6268eda2368d89dc2
5b07cad5da8f8360a9a158cb5b91e489b2b7e600
/day01_15/json_read_write.py
bda33c1139bd33d2785345c54bec209e1b0c1e88
[]
no_license
xieziwei99/py100days
9a7a1003b3153e45bda632d742525628601d3a1c
1febb643a87c2a0aaad3a29b1662e1599aeac775
refs/heads/master
2023-04-10T16:51:53.602384
2023-04-01T11:25:08
2023-04-01T11:25:08
191,920,681
0
0
null
null
null
null
UTF-8
Python
false
false
623
py
''' Created on 2019年6月12日 用Python中的json模块就可以将字典或列表以JSON格式保存到文件中 @author: xieziwei99 ''' import json def main(): mydict = { 'name': 'Jack', 'age': 20, 'qq': 123456789, 'friends': ['Kangkang', 'Lucy'], 'cars': [ {'brand': 'BYD', 'max_speed': 180}, {'bran...
[ "xieziwei@bupt.edu.cn" ]
xieziwei@bupt.edu.cn
1cb3f377768921ad08fad01b54ee4ecae37fd269
ad93c25175cb886e4c3ec098deddb6cac1541929
/vnpy/trader/app/algoTrading/algoEngine.py
164469012ebc96476dba48087e0d4fa29e7b39ff
[]
no_license
rehylas/myTrader
b51a3bc7254876891147b1fd336f8f8fad5ada5b
a7685710d92165560ec46b8bde4ec45eb963fbc7
refs/heads/master
2020-04-05T19:30:30.834352
2018-11-13T03:22:52
2018-11-13T03:22:52
157,137,576
1
0
null
null
null
null
UTF-8
Python
false
false
14,021
py
# encoding: UTF-8 ''' 算法交易引擎 ''' from __future__ import division import os import importlib from vnpy.event import Event from vnpy.rpc import RpcServer from vnpy.trader.vtEvent import EVENT_TIMER, EVENT_TICK, EVENT_ORDER, EVENT_TRADE from vnpy.trader.vtConstant import (DIRECTION_LONG, DIRECTION_SHORT, ...
[ "rehylas@sina.com" ]
rehylas@sina.com
67a6cd3c74e0b7ba29414a82835a627ca0a69379
52d523f1008fd169927e0b28ad85b9923a53733b
/py/bot/subsystems/gear_manipulator.py
703ff8d5c3f5a5747a218aa3acb1f584079ddb36
[ "MIT" ]
permissive
Team5045/2017-bot
66b60825104bd5b4a31a3f6a7acfdf0708f0ed87
e97902c7efa46b8c85245d389ce85e4274c7fd73
refs/heads/master
2021-03-27T20:15:21.598240
2017-10-03T16:08:47
2017-10-03T16:08:47
78,890,567
0
0
null
null
null
null
UTF-8
Python
false
false
827
py
""" gear_manipulator.py ========= """ from wpilib.command import Subsystem from bot import config from bot.utils.controlled_single_solenoid import ControlledSingleSolenoid class GearManipulator(Subsystem): def __init__(self, robot): super().__init__() self.robot = robot self.articulati...
[ "theo@theopatt.com" ]
theo@theopatt.com
c7344ca31373d9fa5f9820d193c051620abd6d7e
d2133a6ebb064526149c304ba5c3cfde49530e35
/src/link.py
bcfc5c36a34b54904c147f8d763e537dcdf09ddc
[]
no_license
carlosgeos/in-da-hood
6470dc0075387ce3bec72fefa1aa14f0dc200e35
76963ef457ec4e084d729e18c9b4b77b17181f46
refs/heads/master
2020-04-04T17:43:30.290896
2018-12-13T00:39:56
2018-12-13T00:39:56
156,132,601
0
0
null
null
null
null
UTF-8
Python
false
false
1,370
py
from copy import deepcopy import numpy as np def link(sim, f): """Using single or complete-linkage (determined by f), builds a tree of clusters. Each index of the array tree is one level of the tree, where we can find multiple clusters. Takes the similarity matrix and objective function as inputs. ...
[ "crequena@ulb.ac.be" ]
crequena@ulb.ac.be
52ef476b1981aa6063e3166e165d941d3290cd9e
0065e45684eebd03dde4c6b14cd0167a968d1783
/test_model.py
9f3619e0dc396fd00030d3ae9aa64a00cecceea1
[]
no_license
AayushPanda/ship-detection
80c1cc9ef7c9d4ed321cb04aa2c48a568816ef67
9a554a99bad00b3d386af53c8dee07a11cda3425
refs/heads/master
2023-06-11T06:20:40.200555
2021-07-05T19:03:02
2021-07-05T19:03:02
372,941,441
0
0
null
null
null
null
UTF-8
Python
false
false
607
py
import cv2 import matplotlib.pyplot as plt import numpy as np import pandas as pd from tensorflow import keras from gen_mask import gen_mask imageX = 768 imageY = 768 data = pd.DataFrame(pd.read_csv("data\\data_segmentations.csv")) data_dir = "data\\images\\" fileID = "000155de5.jpg" model = keras.models.load_model...
[ "aayush.vinayak@gmail.com" ]
aayush.vinayak@gmail.com
cc58eda1315f312dc41d8a40a9c8524936118565
733db916ed5bab4f6c620cf0c9bcce50d600b174
/draw_chessboard.py
007145677681c3c4c1ab2c2e9ac307239eebe1cb
[]
no_license
simonfojtu/cv-utils
f78372c6aaa5980b936844ab510017434f73f898
5e33e52f1565d9153e1669e6bf4f61a9071dfcc0
refs/heads/master
2021-01-19T07:08:16.298508
2016-06-24T21:13:50
2016-06-24T21:13:50
60,371,811
0
0
null
null
null
null
UTF-8
Python
false
false
3,819
py
#!/usr/bin/env python3 from PIL import Image, ImageDraw, ImageFont from itertools import cycle from operator import add import argparse from collections import deque import numpy as np import random import math from unique_grid import Grid def draw(*, cols = 0, rows = 0, patch_size = 0, square_size = 0, dpi = 300): ...
[ "simon.fojtu@gmail.com" ]
simon.fojtu@gmail.com
b46a3fdd5d59671c96181bac6d3b137b533de060
38515045dbc990087c34a6847c6905020b5849b7
/micro-benchmark-key-errs/snippets/lists/list_str/main.py
1825ac736d55d3f9405417ad2e01cf30adabdc6d
[ "Apache-2.0" ]
permissive
Tim-eyes/PyCG
9dbb7867e9f6037869ec6bf1218397d986638836
ef121c7ffb5ee06f4952fbe209b326bb7bf12647
refs/heads/master
2023-08-30T07:54:40.761229
2021-07-25T13:08:46
2021-07-25T13:08:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
54
py
d = {"a": "ab"} lst = ["a", "b"] d[lst[0]] d[lst[1]]
[ "vitsalis@gmail.com" ]
vitsalis@gmail.com
c672ded6f637cdfdd650981a2adfbaec57edb24f
d9f0dbec3cd7489031eeb627f40dd5b44cfec04a
/getBodyText.py
b67d86419d80757d2de542401db96b7b0e33185f
[]
no_license
einslulu/Lipstick-Analysis-Milestone1
3c571c588952d280121dfeb888ff7efb539e02c9
a90024f45e8d63eebc894f923f21115d0d70a60f
refs/heads/master
2023-03-29T13:19:22.484798
2021-04-04T09:57:29
2021-04-04T09:57:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
#coding=utf-8 #python version:2.7 #authon: Karen import urllib from readability import Document count = 0 errorNum = 0 # read file and store urls in a list with open("data/urls_1.txt") as f: urls = f.readlines() urls = [x.strip() for x in urls] for url in urls: count = count + 1 print "---------------...
[ "fangfei2353@126.com" ]
fangfei2353@126.com
c326a0188dd460e5b74104a84ae50c8ffb26cc97
c4cf16066816692bd983d06b4399d26a33268a9d
/twython/api.py
44da1b2f82eca65ffeca02b22a36dbd7a16fe1ec
[]
no_license
seantalts/weirdtwitster
09392cba281a15f79d04907bda96a683ef4aa552
025bbfb5e38c3589cc8f65523bb047f6deb65850
refs/heads/master
2021-01-10T20:46:43.496336
2013-08-29T04:17:14
2013-08-29T04:17:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
21,110
py
# -*- coding: utf-8 -*- """ twython.api ~~~~~~~~~~~ This module contains functionality for access to core Twitter API calls, Twitter Authentication, and miscellaneous methods that are useful when dealing with the Twitter API """ import requests from requests.auth import HTTPBasicAuth from requests_oauthlib import OA...
[ "sean@lot18.com" ]
sean@lot18.com
02e2a5c9006adf8945f1324d99d009a124459bd9
495e58958122b964f81336db888502b6f8dec8de
/script.py
907e30d06796914df2a71aeeade420963a96eafa
[]
no_license
ytwog/rsa-cipher
04710dd89cd59dfae9ab9c4d2f1355fc85450be4
9f93039228ceddd5cf0978867b752caaa90293ae
refs/heads/master
2022-09-10T21:44:03.649928
2020-06-01T17:09:36
2020-06-01T17:09:36
268,554,688
0
0
null
null
null
null
UTF-8
Python
false
false
8,230
py
import PySimpleGUI as sg import math import sys element_input = sg.Text('поле ввода.', size=(40,1), text_color='Black') element_output = sg.Text('поле вывода.', size=(39,1), text_color='Black') element_prv = sg.InputText(size=(10, 1)) element_pub = sg.InputText(size=(10, 1)) element_out = sg.Output(size=(88, 1...
[ "ytwog@mail.ru" ]
ytwog@mail.ru
9010c5581a9513a9f1a1c692ee84614ff7412ccd
d3f680630426ff3a63d564e78bb1480863a7f0f6
/services/web__lnr_dz_com.py
4e9cd508a6ccf0e2985a9ae0d53a175c9d3f117d
[]
no_license
JesseWeinstein/NewsGrabber
09f9d567449e99ba211e4ba61b42c53276de235b
b431dc5f313d4718c6328aaaa97da1bc8e136023
refs/heads/master
2020-12-31T02:32:48.359448
2016-01-23T14:20:26
2016-01-23T14:20:26
48,966,133
1
0
null
2016-01-04T00:33:41
2016-01-04T00:33:41
null
UTF-8
Python
false
false
151
py
refresh = 5 version = 20160123.01 urls = ['http://www.lnr-dz.com/index.php'] regex = [r'^https?:\/\/[^\/]*lnr-dz\.com'] videoregex = [] liveregex = []
[ "Arkiver@hotmail.com" ]
Arkiver@hotmail.com
e5a93417d030dd009b5d9cea1f0dfcc2bc9b69e0
14d779114d51067223c5d2b93903103a2def9769
/utils.py
7b3b2e0ad46a6d5556a0438675bf1c95aaff2c77
[ "MIT" ]
permissive
PaParaZz1/vehicle-triplet-reid
475c1864cba82c8aedef2622802c7993823a5d42
588607b3a68cf3c41b9aa298e9dcb92e8d898507
refs/heads/master
2020-03-31T03:07:19.836698
2018-10-23T16:37:02
2018-10-23T16:37:02
151,853,634
4
0
MIT
2018-10-23T16:37:03
2018-10-06T15:30:03
Python
UTF-8
Python
false
false
1,120
py
import numpy as np import tensorflow as tf from tensorflow.python.client import device_lib def show_stats(name, x): print('Stats for {} | max {:.5e} | min {:.5e} | mean {:.5e}'.format(name, np.max(x), np.min(x), np.mean(x))) def available_gpu_num(): local_device_protos = device_lib.list_local_devices() re...
[ "ken.qrose@gmail.com" ]
ken.qrose@gmail.com
19c60b3de6fe6db0447e297ddbb69cb655215a9e
699304aa5a8bd3b01b35dade02e105f3899cb054
/Web/venv/Scripts/pip-script.py
4eb62af5361cfe6e2cef4b1590a139e664d0893e
[]
no_license
ZhaoWenjun123/qwer
b1087a70118fe6cb7cc49def66528bcd5c0b5ba7
c976ee1f03011272122fd1e07858e444b39e3a91
refs/heads/master
2020-11-28T18:54:58.642017
2019-12-24T07:56:56
2019-12-24T07:56:56
229,896,456
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
#!C:\Users\zwj18\PycharmProjects\Web\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) ...
[ "56943171+ZhaoWenjun123@users.noreply.github.com" ]
56943171+ZhaoWenjun123@users.noreply.github.com
796189ab5954626c9df5ef9728c5d2ce706937ad
9aaa39f200ee6a14d7d432ef6a3ee9795163ebed
/Algorithm/Python/205. Isomorphic Strings.py
3e0887c4dd516ad3f164a2ca7fd98a0abd1916f4
[]
no_license
WuLC/LeetCode
47e1c351852d86c64595a083e7818ecde4131cb3
ee79d3437cf47b26a4bca0ec798dc54d7b623453
refs/heads/master
2023-07-07T18:29:29.110931
2023-07-02T04:31:00
2023-07-02T04:31:00
54,354,616
29
16
null
null
null
null
UTF-8
Python
false
false
887
py
# -*- coding: utf-8 -*- # @Author: WuLC # @Date: 2016-06-30 17:54:03 # @Last modified by: WuLC # @Last Modified time: 2016-06-30 17:54:11 # @Email: liangchaowu5@gmail.com class Solution(object): def isIsomorphic(self, s, t): """ :type s: str :type t: str :rtype: bool """...
[ "liangchaowu5@gmail.com" ]
liangchaowu5@gmail.com
48e072dbbd46720fc1006d690b1cab539eff0b21
9feb0d4b99c035423eeac4639c65b79436418951
/common.py
3ac91eaa74fd3bcb159796b321f395b7f876874d
[]
no_license
ianasushko/phonetics_bot
1b236c814e175607f3d218e42d9dfdb5034ee62f
cfb0d37784dc4a82f4a017981126d818b47f7af5
refs/heads/master
2023-02-08T14:17:38.753696
2020-12-30T10:44:09
2020-12-30T10:44:09
267,148,335
0
1
null
2020-12-30T10:44:10
2020-05-26T20:45:28
Python
UTF-8
Python
false
false
7,257
py
from random import choice, shuffle import json import os from telebot import types from bot import bot dirpath = os.path.dirname(os.path.abspath(__file__)) path = os.path.join(dirpath, 'comments.txt') with open(path) as file: # открыть в главной ф comments = file.readlines() dirpath = os.path.dirname(os.path.abs...
[ "noreply@github.com" ]
ianasushko.noreply@github.com
c0041f565f30feeecd70aafda6f0da1d7ca014b3
65b8d92b2236c6e73829eea7fc9f9ea2fc7f87bd
/ModelStructure/Costs/costFunctionDict.py
840a870efcb11eb4bac21a97baa575a93d2ac41c
[]
no_license
andygaspar/Portogallo
8ae7a016ae52d66726297acb64a2804de4f3f862
015710b6737b6ef3719ea3225007cd5511b17767
refs/heads/master
2023-04-12T09:13:13.506429
2021-04-01T07:43:25
2021-04-01T07:43:25
330,452,351
0
0
null
null
null
null
UTF-8
Python
false
false
1,595
py
from ModelStructure.modelStructure import ModelStructure from ModelStructure.Flight.flight import Flight from ModelStructure.Slot.slot import Slot import pandas as pd import os at_gate = pd.read_csv("ModelStructure/Costs/costs_table_gate.csv", sep=" ") types = at_gate["flight"].unique() print("voli", types) flightType...
[ "andygaspar@libero.it" ]
andygaspar@libero.it
f580f185fe640e2fe2593a65f43f4a8e11a05a14
8e1293fc2d61104984eb0e78d1aa6d247fa28742
/store/urls.py
bb05425a33ffee92f156e652f5b53f592e42c97f
[]
no_license
jainrishabh18/ecommerce-site
31aabb93ebbc7c1cc441c1ee48e5929c37683f25
5447b7a356dfd32f534d9ebdb44af1fc7b4a35b1
refs/heads/master
2023-05-13T13:22:17.186460
2021-06-09T11:22:01
2021-06-09T11:22:01
370,991,318
3
0
null
null
null
null
UTF-8
Python
false
false
307
py
#full code is self written here from django.urls import path from . import views urlpatterns = [ path('',views.store,name="store"), path('cart/',views.cart,name="cart"), path('checkout/',views.checkout,name="checkout"), path('update_item/', views.updateItem, name="update_item"), ]
[ "49811626+jainrishabh18@users.noreply.github.com" ]
49811626+jainrishabh18@users.noreply.github.com
5853b4ab16142ca22a9022778d24c0aa3ca91d79
62f3cf009632ceb927414979cb90857c7cd4dffe
/web/pgadmin/tools/schema_diff/directory_compare.py
d99368686946ced69c303e78768718c7295f92f2
[ "PostgreSQL" ]
permissive
xtremedata/pgadmin4
dd5f603f60231c67ad8e261ec3e450bb5df434ec
2cc4af9244b7e086c2ddfcde77e896f9f377ee12
refs/heads/master
2021-06-28T21:56:47.586979
2020-01-14T21:32:48
2020-01-14T21:32:48
233,937,206
0
0
NOASSERTION
2020-01-14T21:14:40
2020-01-14T21:14:39
null
UTF-8
Python
false
false
10,144
py
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2020, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## """Directory comp...
[ "akshay.joshi@enterprisedb.com" ]
akshay.joshi@enterprisedb.com
dd01c694794c02ce319a765f9efc0ae614598628
5ca09e822ae6c2365b8bfb1dc4b4534ca8538d6f
/LDA/ex_2_A_lda.py
63e48789d76807424ca2606430815bf26a9540d0
[]
no_license
jkenjii/Topicos_Especias
7e9079c4b4193f0c9c4edaae92414f62ed4a17ee
ddb5a4d8b4db39d34dc448f8eac78b08826b9f6d
refs/heads/main
2023-02-02T18:26:25.599918
2020-12-11T04:21:11
2020-12-11T04:21:11
302,212,312
0
0
null
null
null
null
UTF-8
Python
false
false
2,491
py
#4DIM -> PCA -> 2DIM -> LDA import matplotlib.pyplot as plt import pandas as pd import numpy as np from sklearn import datasets iris = datasets.load_iris() M = iris.data y = iris.target print(M) media_colunas = np.mean(M, axis=0) print(media_colunas) DataAdjust = M - media_colunas print(DataAdjust...
[ "noreply@github.com" ]
jkenjii.noreply@github.com
34c01797f0282029df11bc22b388cb49fb6a09a6
503b6053e7ab860b3c7aa63c8d273cce355a810f
/signup/views.py
d44a7f6b1449c47420a76cb81bf6bcd2195798fb
[]
no_license
Abdulrahman-ahmed25/NewsWebsite
2c97f797a6691b825a7af2e27ccb84ebdf87c03a
6a9d0a3fba4c2cd379869eb5b5b2cefe77f96588
refs/heads/main
2023-03-05T22:34:18.835943
2021-02-19T21:50:59
2021-02-19T21:50:59
340,489,298
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
from django.shortcuts import redirect, render from .forms import RegisterForm # Create your views here. def register_view(response): if response.method == 'POST': form = RegisterForm(response.POST) if form.is_valid(): form.save() return redirect('/') else: form =...
[ "abdulrahman.ahmed2544@gmail.com" ]
abdulrahman.ahmed2544@gmail.com
2cd81fb6ee311c28a0da140a8657eb593b4c3da1
9f4fd09a41e0757e51faca7876e89b8e687c7305
/venv/bin/pyi-archive_viewer
b417a49a6df44c5b0b719685d0f361d9de179ae9
[]
no_license
godisu524/pyqt_practice
573b88b456e7fe90f42f8259921035603e1bfb73
971990d9034570ad100d35550b25f75684ff6c37
refs/heads/main
2023-01-28T12:25:33.879026
2020-12-03T08:45:49
2020-12-03T08:45:49
318,129,234
1
0
null
null
null
null
UTF-8
Python
false
false
289
#!/Users/1thefull/PycharmProjects/exchange_program/venv/bin/python # -*- coding: utf-8 -*- import re import sys from PyInstaller.utils.cliutils.archive_viewer import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "godisu524@gamil.com" ]
godisu524@gamil.com
0d1390ccdc5d2a49c85abd1457f0502cd1e7dfd5
ca471f6ed1bb070b49af70cfa72c2d917bbfb276
/venv/bin/pip3
35e8b8af0434a1726a30edfeca2b36511fec8597
[]
no_license
marios-keri/anagram_project
8254d1279a519677ea414b7c52b93fda6959bad8
608184cace3d326a0406142cc5413d4f6f9f388e
refs/heads/master
2021-03-16T02:16:18.891635
2020-03-12T19:01:19
2020-03-12T19:01:19
246,895,581
0
0
null
null
null
null
UTF-8
Python
false
false
400
#!/home/developer/back_end_projects/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.e...
[ "jack.daniel44@outlook.com" ]
jack.daniel44@outlook.com
b91659cf4878bc5be2dfaf898aaaa0832d4e6d7d
d97d82dfa85d5f2be0448ceb480cb1ba56bb4eb2
/src/graph.py
96cee5fcfafbe13f654ca3620db0134612632969
[]
no_license
Aesthetician/alg_project
df2986dbb03d890383a44a45391642fb60899831
c19e23fb62151329cee7efbfd275f47e3743c551
refs/heads/master
2020-08-05T18:57:54.564732
2019-10-03T19:53:40
2019-10-03T19:53:40
212,666,693
0
0
null
null
null
null
UTF-8
Python
false
false
6,064
py
import random import math MAXWEIGHT = 50 MINWEIGHT = 1 MAXDIST = math.inf class Vertex: def __init__(self, key): self.id = key self.connectedTo = {} # format: vertex -> weight self.dist = MAXDIST self.pred_id = -1 self.heap_idx = 0 self.color = 0 # 0: white, 1:blac...
[ "admin@Zs-MacBook-Pro.local" ]
admin@Zs-MacBook-Pro.local
55f5a74c3d40820adb172dd1cc886d295f8cf759
384bc4a7cd5a35bca8de83900aeb0664a097816a
/dbe/blog/migrations/0002_auto__add_post__add_comment.py
3e02cb730e2b9b4fb0c179ca33fd8fdb8af3ebbd
[]
no_license
gzpgg3x/lightbirddjango1.5blog
86be058328c3cf79edba55241b71732c906823f6
8f38efff987680cdbc810b9b85bda8c8aaa35e52
refs/heads/master
2021-01-01T05:49:47.572387
2013-05-27T03:14:10
2013-05-27T03:14:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,625
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 model 'Post' db.create_table(u'blog_post', ( (u'id', self.gf('django.db.models.fields.A...
[ "gzpgg3x@yahoo.com" ]
gzpgg3x@yahoo.com
7950b70cacf658f1a2572b734bf23c5f6b7dbe42
3e55b75b7b461507eb7f145d018cae1fc9d29908
/mnistmodel.py
c7f07b047088fa3f7bcada709f2ad1f1fe798d18
[]
no_license
tfdeepnet/testpack
4c46b6a5252a102f201ba974a7443e7143280e0b
e6091a46f6869214f9d5ec5ac302e2e14aff877c
refs/heads/master
2022-12-12T12:38:26.240446
2020-09-12T16:04:00
2020-09-12T16:04:00
293,485,947
0
0
null
null
null
null
UTF-8
Python
false
false
8,633
py
from __future__ import print_function import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from torch.optim.lr_scheduler import StepLR class InitModelParams: def __init__(self, num_splits = 1): self.modelHyperParamDict ...
[ "deepchin@users.noreply.github.com" ]
deepchin@users.noreply.github.com
ea7e891098362b4e74144062a751a6c89d0d85e0
d1778e304965215253df54503265fd06d16eb406
/setup.py
e696605b0f05a77ab92d9eb8e5a8204c8709c4ed
[]
no_license
junwen29/GDELT
1e33b136cc54f3348e92f23036c68706253b0898
75d6a7596b23810db16cf62e361b88f5072b162c
refs/heads/master
2022-12-14T03:27:33.592742
2020-05-18T07:34:37
2020-05-18T07:34:37
181,330,796
0
1
null
2022-12-08T05:20:58
2019-04-14T15:39:15
Python
UTF-8
Python
false
false
325
py
from distutils.core import setup setup(name='GDELTApp', version='1.0', description='GDELT event parser', author='Jun Wen ', author_email='tsang.jw@csit.gov.sg', requires=['beautifulsoup4', 'goose3', 'numpy', 'requests', 'schedule', 'PyYAML', 'feedparser', 'datefinder'] ...
[ "tsang.jw@csit.gov.sg" ]
tsang.jw@csit.gov.sg
e0889589ddbcb23508b08e0c18ae3c5e4d2dac7a
5f2fef0a334a52a50891332f1d77bec08f8f1ce3
/alembic_versions/c9f4818e2073_add_queue.py
ccaa2215ac7a51a7925fd69b35ee6d2e2cc04794
[]
no_license
vcslav-v/tgame_engine
8361782d558db315521b65ff720a5d1cc8898b5d
e43445acf5348333515d82ad5c400fde27ebe8af
refs/heads/master
2023-02-22T12:39:55.319935
2021-01-21T11:55:52
2021-01-21T11:55:52
305,366,244
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
"""add queue Revision ID: c9f4818e2073 Revises: eb33ce5b86d2 Create Date: 2020-10-26 11:59:14.004296 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c9f4818e2073' down_revision = 'eb33ce5b86d2' branch_labels = None depends_on = None def upgrade(): # ### ...
[ "donn.nus@gmail.com" ]
donn.nus@gmail.com
3f4368c087dfdcf546ba400ce4d810d55676d758
64d9a011700705184c993d059048202dc9cb1aaa
/Lab4/powersoftwo.py
fd9f5104665d83c350d33f0b29cf00e0d17ff129
[]
no_license
zuke0000/Python-Projects
6966a66454f03ff7372732e8dbfbddfbaac5ebcd
d5a145c5dfcfd3fd320fd5e79dd207eb545caf70
refs/heads/master
2020-08-15T15:08:34.343741
2019-10-15T17:49:57
2019-10-15T17:49:57
215,361,434
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
import sys # Accept positive integer n as a command-line argument. # Write to standard output a table showing the first n # powers of two. n = int(sys.argv[1]) power = 1 i = 0 while i <= n: # Write the ith power of 2. print(str(i) + ' ' + str(power)) power *= 2 i = i + 1
[ "noreply@github.com" ]
zuke0000.noreply@github.com
85015462b7fad492dfee84c8518f18f49422d22c
63b3f91852b6ba722753154335ee3c56e7632f35
/Python Program Design By Dong Fu Guo/P1_PythonBasic_01_安装、版本.py
e6cd54aa73d9d550a8adfdb1a10be7ae36dd2509
[]
no_license
yaoleistable/PythonBase
dbe94dc7d030eac8718cb8053ae4955e2253842d
4214deb90efbfe46b744f741ec055d4e8c7c677e
refs/heads/master
2020-08-10T17:59:55.391985
2019-10-28T13:10:02
2019-10-28T13:10:02
212,232,613
0
0
null
null
null
null
UTF-8
Python
false
false
871
py
#!//miniconda3/envs/py36/bin/ # -*- coding: UTF-8 -*- """ @author: YaoLei @license: (C) Copyright 2011-2019. @contact: yaoleistable@gmail.com @software: Lei @file: P5_PythonBasic_05_内置函数1.py @time: 2019/10/4 11:33 上午 """ # 本代码集为学习《董付国老师Python系列教程》,学习资料来源于:https://www.bilibili.com/medialist/play/ml736518914 # --Python版本...
[ "815141681@qq.com" ]
815141681@qq.com
ad3e0607892cce2033280b983f86c3824f8ab91c
4055417ef944ecb748f68ca96263456dd6e7b06d
/tests/test_add_digits.py
bdb5e6c4760f7f53f7dbda76797af6062b56c3b5
[]
no_license
python-workshop/fsdse-python-assignment-190
e56154112c75436196d882adf0f807bd6e5a0464
bb8db6a49e4a95f11e5504ed57671d573811244c
refs/heads/master
2020-12-30T12:43:45.949081
2017-05-23T06:26:59
2017-05-23T06:26:59
91,347,936
0
0
null
null
null
null
UTF-8
Python
false
false
515
py
from unittest import TestCase class TestAdd_digits(TestCase): def test_add_digits(self): try: from build import add_digits except ImportError: self.assertFalse("no function found") self.assertRaises(TypeError, add_digits, None) self.assertRaises(ValueError,...
[ "sangam.angre@gmail.com" ]
sangam.angre@gmail.com
8e83b2f83d6a6b624890e3e8cec95ee12b81ae66
ea10719a647bbc8968b3ea0ac4ddefef96a55095
/boschBackend/boschBackend/wsgi.py
b5d72cf6832fbac8b4ebf7bccd3110789c9e8cf9
[]
no_license
DestroyerAlpha/BOSCH-Traffic-Sign-Recognition
d98ddf7772fbb13559eba0a87c888dedc9e893d8
6c2abaaf391eb812895fab988bf891baa59f3f2d
refs/heads/main
2023-03-25T07:29:28.761558
2021-03-25T18:13:59
2021-03-25T18:13:59
344,191,455
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" WSGI config for boschBackend project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_...
[ "saisurya3127@gmail.com" ]
saisurya3127@gmail.com
c765540cf530f57cf0c513a515921bff7c029c0b
7d32b2616250c6376591f671440577da266d5381
/nn/cfg/train_eem.cfg.py
ebea83edb1377e4ffcaaec35bfc4dbdb82fd5540
[]
no_license
rmanzoni/plotter
4f3a3561d36e935b729adef7584e46a196166d74
65bf060d6e89b5f39f5297a8340c2533bf0ea254
refs/heads/master
2020-09-06T05:13:29.309928
2020-08-24T10:38:41
2020-08-24T10:38:41
220,333,423
2
2
null
2020-07-07T20:21:26
2019-11-07T21:37:12
Python
UTF-8
Python
false
false
2,398
py
import numpy as np from NN.nn_trainer import Trainer from plotter.selections import Selections from plotter.utils import set_paths from collections import OrderedDict from os import environ as env ch = 'eem' set_paths(ch, 2018) cuts = Selections(ch) selection = [ cuts.selections['pt_iso'], cuts.selections['...
[ "riccardo.manzoni@cern.ch" ]
riccardo.manzoni@cern.ch
ae3b769f624c601b93e58f949baae381c0111afc
09efb7c148e82c22ce6cc7a17b5140aa03aa6e55
/env/lib/python3.6/site-packages/plotly/graph_objs/treemap/__init__.py
7bb16f7662718e69b1ad538f7ed21d4fb3d06f27
[ "MIT" ]
permissive
harryturr/harryturr_garmin_dashboard
53071a23b267116e1945ae93d36e2a978c411261
734e04f8257f9f84f2553efeb7e73920e35aadc9
refs/heads/master
2023-01-19T22:10:57.374029
2020-01-29T10:47:56
2020-01-29T10:47:56
235,609,069
4
0
MIT
2023-01-05T05:51:27
2020-01-22T16:00:13
Python
UTF-8
Python
false
false
114,539
py
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tiling(_BaseTraceHierarchyType): # flip # ---- @property def flip(self): """ Determines if the positions obtained from solver are flipped on each axis. Th...
[ "griffin.harrisonn@gmail.com" ]
griffin.harrisonn@gmail.com
fa8d00db3ea73e911ad4a1363ccf293ffc013c88
e7bb312083171ccede50fc52b7e848b19f8649a8
/03_recursion/01_fibonacci.py
04797a521e0e14fde6a5b895ac49bde90dd9fab9
[ "Apache-2.0" ]
permissive
shfscut/grokking
74a96657c9c4d5b52d13d4896c6436e71cc05d60
53da4768793941a71d6ae2bf0edcf24f3b8a7480
refs/heads/master
2022-10-03T03:01:56.455327
2020-06-08T16:15:22
2020-06-08T16:15:22
267,741,102
0
0
Apache-2.0
2020-06-08T16:15:23
2020-05-29T01:55:48
Python
UTF-8
Python
false
false
464
py
# coding: utf8 """ fibonacci数列 F(0)=0 F(1)=1 F(n)=F(n-1)+F(n-2)(n≧2) 递归: 1. 基线条件: 当n=0或1时,不再递归,返回具体值 2. 递归条件: 当n>=2时,递归 """ def fibonacci(n): if n==0: return 0 if n==1: return 1 return fibonacci(n-1)+fibonacci(n-2) if __name__ == '__main__': for i in range(10): print(fibonac...
[ "noreply@github.com" ]
shfscut.noreply@github.com
e8bff6d568827425ea7599f91c89270112c1019a
377c0a2a071cc950745f97019ef300258a46ebfe
/bankingsys/settings.py
145d1cfca02bca08bba97a3b696ec3520fa58e10
[]
no_license
valak-me/sparks-foundation-task
6acfa0acbd9bd0710bd3f426df4eaae04c3b7def
1fee4e004540e3341d84fe467d0691059b403a48
refs/heads/master
2023-01-11T10:02:25.599526
2020-11-21T11:12:28
2020-11-21T11:12:28
314,787,825
1
0
null
null
null
null
UTF-8
Python
false
false
3,128
py
""" Django settings for bankingsys project. Generated by 'django-admin startproject' using Django 3.1.2. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from path...
[ "rajneesh2399@gmail.com" ]
rajneesh2399@gmail.com
c5db7879da91e3f8ef39214f55aa80dd9bc9d334
6005ef3c32a7345a45f2ba93c650fe3a54529b5f
/examples/example_37.py
89d95631e9596623b295270341b4b6fa85ea0feb
[]
no_license
abasllari/SDA_LH1AL
b1e52f09aa9fa29cc201e0abba1cdf4f9bade063
28a8905420a39d63d4227abcecf8c1a388320b82
refs/heads/main
2023-07-30T14:00:56.503083
2021-09-21T19:40:22
2021-09-21T19:40:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
359
py
import lh1al.test_one from lh1al.test_one import var1 as variable from lh1al.test_one import resolve_equation as function def main(): print("Hello World!") print(variable) print(lh1al.test_one.var2) x = lh1al.test_one.resolve_equation(2, 3, "+") print(x) y = function(5, 10, "+") print(y) ...
[ "patryk.walaszkowski@jeppesen.com" ]
patryk.walaszkowski@jeppesen.com
067109e4d6915c0415fc1c9894fb4c6813711533
2daf262c0d2645af4291e704c9efe3b12a62866f
/emu_share/pyemu/util.py
499ae57b880ebd9358858b08d4babe48e2397194
[ "MIT" ]
permissive
SiChiTong/emu_manipulator
94cde00e5e1509383f218db512de04c9a6b2da38
7046442f9d2a3c617603ebb508e1a95dbb09cce9
refs/heads/master
2022-11-27T04:54:36.984760
2020-08-01T04:57:37
2020-08-01T04:57:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,148
py
import numpy as np from math import sin, cos, pi class kinematics: @staticmethod def rot(theta, axis): c = cos(theta) s = sin(theta) if axis is 'x': H = np.matrix([[1, 0, 0, 0], [0, c, -s, 0], [0, s, c, 0], [0, 0, 0, 1]]) elif axis is 'y': H ...
[ "c.thanapong@aol.com" ]
c.thanapong@aol.com
5316355c24bdc0449e789d9042a10d12f9f00214
a88a6c94961147c905cde354afd1fafbd9253f77
/mysite/mysite/urls.py
0127338af13d45f129196b9f067b615b44c60281
[]
no_license
WooHee98/Django_INDIMOVIE
659d56e8e6f1c588d6c95135d8a82c16cc8d1c72
f66696c29ddbf96d55801310df033232c4c26081
refs/heads/master
2021-01-16T06:55:31.034676
2020-02-25T14:12:41
2020-02-25T14:12:41
243,016,124
0
0
null
null
null
null
UTF-8
Python
false
false
2,154
py
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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 ...
[ "kerri981230@naver.com" ]
kerri981230@naver.com
d154cd7f23a2dddb40667b53f77fad534d030f69
5d4f7ba238628c03fa39b214639a8de8d3bcd68b
/Project1/models/CNN.py
d613bd9fd78bc011cf3ea3a658a75aaf22340d3a
[]
no_license
chronican/DL_project
cc6ec98b29ffb543608ffb7922cdc52b02faeb49
65ea6480277a77ea0cfded9f80801ada4d3d2c8c
refs/heads/master
2023-01-04T11:14:27.160825
2020-11-03T18:16:16
2020-11-03T18:16:16
309,768,057
0
0
null
null
null
null
UTF-8
Python
false
false
4,760
py
import torch from torch import nn class RCL(nn.Module): """ Defines recurrent convolutional layer (RCL) """ def __init__(self, K, steps): """ Initializes RCL :param K: number of feature maps in convolution :param steps: number of time steps """ super(RCL...
[ "xiaoqi.ma@epfl.ch" ]
xiaoqi.ma@epfl.ch
2e71a54d819691fa7b42aba1a60e86d16aafbd11
9fb4711cc5874756e86adc8db3b65fbac824fd55
/sayı-harf.py
9c2ac16c9576c551e859c03e93ea61098f14c25f
[]
no_license
Ebuyuktas/8.hafta_odevler-Fonksiyonlar
d93cec0e0e8c14c72b3fb04eff44718ab5399894
3776f4fc52daade336230dc16b458474fa708c94
refs/heads/master
2020-07-02T08:13:30.333535
2019-08-10T10:14:46
2019-08-10T10:14:46
201,469,153
0
0
null
2019-08-09T13:06:31
2019-08-09T13:06:30
null
UTF-8
Python
false
false
514
py
#odev 6# #rakam olarak verilen sayinin harflerle yazilisi# print("""harf olarak yazılmasını istediginiz sayiyi rakam olarak giriniz En fazla iki basamaklı bir sayi girebilirsiniz\n""") def oku(): birler=[" ", "bir", "iki", "uc", "dort", "bes", "alti", "yedi", "sekiz", "dokuz"] onlar=["on","yirmi", "otuz...
[ "noreply@github.com" ]
Ebuyuktas.noreply@github.com
48e9805d797ec371e1ca1a8a2141d7d9a0146988
cb59dbba764a530741174e694cac475c860e120c
/TermProj/settings.py
2f85b19022148454601202178181913986c990db
[]
no_license
EngTurtle/StatsTypingTest
75077d159a0b089bbe8ac94012ed29fc89c27cc0
193f41346c338dad56819e944f42ec0bccdf5ea4
refs/heads/master
2016-08-04T06:39:42.294966
2013-04-06T02:22:06
2013-04-06T02:22:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,872
py
# Django settings for TermProj project. import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAM...
[ "ollie.liang@gmail.com" ]
ollie.liang@gmail.com
96484174d1f096d926cc4c5d36694e4fafa398a8
978a1ad70dae800f3ca0eee341a4c72445ac408a
/zgadywanka.py
a93fc5f523a165a4d85bb80b9c376b5088e7f67b
[]
no_license
lwiesek/Python
e56f1734a09598fec4bcfc16c7688ffdd9a97d83
2120e390c9698e65b84161f55cbc6aac716574d5
refs/heads/master
2020-09-03T17:13:07.359288
2020-04-14T06:47:38
2020-04-14T06:47:38
219,518,044
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
import random print('Czesc! Jak masz na imie?') mojeImie=input() liczba=random.randint(1,20) print('Sluchaj, ' + mojeImie + ' , mysle o liczbie z przedzialu 1 do 20.') for wykonaneProby in range(6): print('Sprobuj odgadnac.') probaOdgadniecia=input() probaOdgadniecia=int(probaOdgadniecia) ...
[ "noreply@github.com" ]
lwiesek.noreply@github.com
adf92b9853f239378d2b197e43c8d8a74f7187bb
a8098dfdd09ae9e56207134e8617807c14c5d5f7
/RestBucks/asgi.py
660df548f6024e0481bb7dac3e772f23f2be883a
[]
no_license
NiloofarShahbaz/DjangoRestBucks
be773c2cce0c3daee15a499e2127c46d5f00d3c7
5f3e98fb9c91115f2497c4991668b2d3fad81e8f
refs/heads/master
2023-07-04T20:35:23.821603
2021-08-25T10:49:28
2021-08-25T10:51:21
399,004,079
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" ASGI config for RestBucks project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault("DJANGO_SET...
[ "niloofar.shahbaz@gmail.com" ]
niloofar.shahbaz@gmail.com
47cb4095a51debdf177b8528a64fbd589e3a7b4c
6219d4968f3c17360af1a1fabc1f985f0c8947c4
/snake.py
82a0a30b2b13758ec2daa18be379b0d2555790f7
[]
no_license
apgupta3091/snake_game
65c56059930e3650cd74c18f7db42a92feb34f3c
1dd14eb707dcfbc9fc22ec0bc0c4b7a4172a01df
refs/heads/main
2023-07-18T22:28:08.414950
2021-09-27T18:38:33
2021-09-27T18:38:33
410,754,916
0
0
null
null
null
null
UTF-8
Python
false
false
1,602
py
from turtle import Turtle STARTING_POSITIONS = [(0, 0), (-20, 0), (-40, 0)] MOVE_DISTANCE = 20 UP = 90 DOWN = 270 LEFT = 180 RIGHT = 0 class Snake: def __init__(self): self.segments = [] self.create_snake() self.head = self.segments[0] def create_snake(self): for posit...
[ "apgupta3091@gmail.com" ]
apgupta3091@gmail.com
1ecfedcd7d9fc961599cc239379cdd6d4486adb3
ef6d4d29244c5feda14067d571d2c9b24c7b47a8
/vagrant/catalog/handler_utils.py
a1056ff896ca3ac9969be478e97b832a0aa5e24d
[]
no_license
csarradet/fsndp3
9a17204244b85d7506c8d33574a4c520df4f85b1
7def768c39c609be79e886378ac68fab69a1821c
refs/heads/master
2020-07-12T04:13:49.755754
2016-03-21T01:11:16
2016-03-21T01:11:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,222
py
""" This file contains helper functions to make our web handler code cleaner. """ import time import datetime from flask import make_response, render_template import json from session_utils import get_active_user from rfc3339 import rfc3339 import logging logging.basicConfig() logger = logging.getLogger(__name__) ...
[ "csarradet@gmail.com" ]
csarradet@gmail.com
ebabfa199a4b1f5b1f4c7a79f6041c4ebd6e6d34
c8326af2c59919b5c09ffb49f425a24ad0a73d59
/onderhoud/urls.py
77a914218f92681cfe9f7087da57e44c6e05a935
[]
no_license
snirp/pressie
0dd4aa86ac4351da40f8b656fe671f7b2b17db0c
d834a982ef73f11b818eec99518961d8f1831e26
refs/heads/master
2021-01-18T14:48:53.532328
2015-06-17T09:17:39
2015-06-17T09:17:39
27,434,235
0
0
null
null
null
null
UTF-8
Python
false
false
699
py
from django.conf.urls import patterns, url from onderhoud import views urlpatterns = patterns('', url(r'^complex/$', views.complex_list, name='complex_list'), url(r'^begroting/$', views.begroting_list, name='begroting-list'), url(r'^begroting/(?P<pk>\d+)/$', views.begroting, name='begroting'), url(r'^c...
[ "prinsroy@gmail.com" ]
prinsroy@gmail.com
22499ba6ec4ddebf187039f89fa73ea90c0e375e
228f0378c71dfe814291f7adf657674a4cdf78ad
/tests/components/airzone/util.py
8f7b8910c8cf101f65d38432bbec39eccb0dcec8
[ "Apache-2.0" ]
permissive
K4rl1Hub/home-assistant
cdfc3ad552518ce634d9e8282a86db22cb8dbafe
96d64bd6b70c28bbcdcf50ade01fd09f4a1f2e75
refs/heads/dev
2023-03-10T09:22:18.812076
2022-04-25T18:46:37
2022-04-25T18:46:37
176,307,853
0
0
Apache-2.0
2023-02-22T06:21:12
2019-03-18T14:49:50
Python
UTF-8
Python
false
false
6,329
py
"""Tests for the Airzone integration.""" from unittest.mock import patch from aioairzone.const import ( API_AIR_DEMAND, API_COLD_STAGE, API_COLD_STAGES, API_DATA, API_ERRORS, API_FLOOR_DEMAND, API_HEAT_STAGE, API_HEAT_STAGES, API_HUMIDITY, API_MAX_TEMP, API_MIN_TEMP, AP...
[ "noreply@github.com" ]
K4rl1Hub.noreply@github.com