blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
111bafc092b997b97fc93d8458b619c5a5376b99 | 59d41fc7fd8b261d08f25926d64b5bc6e1ed99e8 | /python/baike/spider_main.py | 65f1d98b8df01ad5f18c2b90bc05f0195312d748 | [] | no_license | MissMyDearBear/Diary | ff779aee87d52a5617eca0706ddb61107990d980 | 8375a302303f4524f19bcfe2e63a4afac3e495ed | refs/heads/master | 2021-01-19T20:08:26.043203 | 2019-06-24T08:02:37 | 2019-06-24T08:02:37 | 88,489,275 | 39 | 17 | null | 2017-08-07T10:09:29 | 2017-04-17T08:43:44 | Java | UTF-8 | Python | false | false | 1,031 | py | from baike import url_manager, html_download, html_parser, html_output
class SpiderMain(object):
def __init__(self):
self.urls = url_manager.UrlManager()
self.download = html_download.HtmlDown()
self.parser = html_parser.HtmlParser()
self.out = html_output.HtmlOutput()
def cro... | [
"zz_caogehao0@126.com"
] | zz_caogehao0@126.com |
a113c0c97c558d27d5bbdcd60892e919edcb5d48 | d31bc5cf9ed993ef4f460cdd1d7fb5e247e8f6b8 | /mappers.py | 12f15b1b8dfb5a0cbc7a47f0c9ae162acc307483 | [] | no_license | Arendelle12/checkers | 76d31c616e65791ef5f1d101e3d14def562274db | c26d4f63b236e42063ae939dec43ba32b80da834 | refs/heads/main | 2023-02-26T01:23:54.512604 | 2021-01-31T19:39:49 | 2021-01-31T19:39:49 | 312,831,127 | 0 | 0 | null | 2020-12-21T19:01:31 | 2020-11-14T14:17:28 | C++ | UTF-8 | Python | false | false | 657 | py | from itertools import islice
#ZAMIANA STRINGA POSTACI 1234 NA LISTE
def str_to_list(test_str):
return [int(i) for i in test_str]
#ZAMIANA 1D LIST NA 2D
def convert_1d_to_2d(lst, len_lst):
it = iter(lst)
return [list(islice(it, i)) for i in len_lst]
#return 2 dimensional list
def convert_board(rec_board):... | [
"gabriela.bartoszewska@student.put.poznan.pl"
] | gabriela.bartoszewska@student.put.poznan.pl |
659ecce83973b03700379049e57ba28927ef5bfe | e1467ade19cfaf7a25129398a9ba4dae8508e259 | /seminar_3/TEMPLATE/test.py | 27fc43001ead3db5143e08fb70c131de1eb4f2d2 | [] | no_license | evgenstf/hse_python_seminars | ee4d1dce877bfeb31e0373fbd0b5cb84dc38567d | c155d3f79a11b263df3bb4245d548aafbc58c209 | refs/heads/master | 2022-12-28T04:31:33.744168 | 2020-10-01T10:52:53 | 2020-10-01T10:52:53 | 295,569,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from <<solution_directory>>.solution import main
from tester import test_solution
test_solution(main, [<<input>>], [<<output>>])
| [
"evgenstf@gmail.com"
] | evgenstf@gmail.com |
8fe975eac45d0cbc7088a107247e236f4fea121b | 79a836022275b94b687325ae36980cafe6d66788 | /setup.py | 18eba6b9644a02f8b6a1d99711326daac0f2de62 | [] | no_license | reminder-bot/start | 1194adede56c46b587e27b003c0c401ceb7b9056 | 33c613d5a9c168635ad221d864e25d27c726ae5a | refs/heads/master | 2020-03-21T23:34:21.716780 | 2018-08-30T20:13:14 | 2018-08-30T20:13:14 | 139,195,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | import os
import configparser
try:
os.mkdir('../DATA')
except FileExistsError:
pass
files = ['todos']
contents = ['{}']
for fn, content in zip(files, contents):
if fn + '.json' in os.listdir('../DATA/'):
continue
f = open('../DATA/' + fn + '.json', 'w')
f.write(content)
f.close()
if... | [
"judewrs@gmail.com"
] | judewrs@gmail.com |
e0a3189c619942a87cd85c11009685b4e7d8de45 | 018c38e886b9c8904cbfe470c462abf0b4fa1eef | /jdaviz/vizcomponents/viewer/viewernd.py | bd7813b48a08905a090d5fa79dd306107749095a | [] | no_license | astrofrog/jdaviz | 4410244508377a6e768abba8f47f01c52ae97791 | f8269c229aa58e6e0088be2146d338cdc56dd72e | refs/heads/master | 2022-12-12T07:52:58.286625 | 2019-05-23T20:04:23 | 2019-05-23T20:04:23 | 188,431,057 | 0 | 0 | null | 2021-08-17T14:41:19 | 2019-05-24T13:58:05 | Python | UTF-8 | Python | false | false | 673 | py | import logging
from ipywidgets import Box
from .simple_bqplot_image import simple_imshow
from .viewer import Viewer
logging.basicConfig(filename='/tmp/vizapp.log',
filemode='a',
format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
datefmt='%H:%... | [
"craig@brechmos.org"
] | craig@brechmos.org |
afba7b72075609ee49baf8ee4153cc72060abe00 | 104a2b0fc2af615c9073152aed094e991094ffb1 | /generator/main.py | 94d432127f10706a22571d5509702335c098646a | [
"MIT"
] | permissive | Kaicastledine/homoglyph | e56b618ba85a483dfa4771ee6c2877badb94f035 | 8d63ae22655147a54fae3f4e8df9c7ebe7bdb52a | refs/heads/master | 2021-01-19T21:08:18.636097 | 2015-12-22T07:50:02 | 2015-12-22T07:50:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | from data_file_parser import DataFileDir
from char_manager import CharacterManager
from output_char_codes import OutputCharCodes
from output_chars import OutputChars
from output_js import OutputJS
TEMPLATES_DIR = 'generator/templates'
DATA_DIR = 'generator/source_data'
CHARS = 'abcdefghijklmnopqrstuvwxyzABCDEFGH... | [
"rob@codebox.org.uk"
] | rob@codebox.org.uk |
64cbfec3f3acc0e1d61883835c5f39fc1e73c1c0 | 9845815f0ff30819d6504adcac96b45deb865697 | /forestConfigs/runForest_PbPb_MIX_75X_JECv4_localVoronoi.py | 0ba7b44a0af6b2ba9e08c237c363a9fe1e412f27 | [] | no_license | dgulhan/forestConfigs | 8efc4dc5f2341e877ae46dca8d9ae3dbe2d5895d | 743178fa48457f6b6bdd49c9337931a4299b3994 | refs/heads/master | 2021-01-19T11:22:51.780050 | 2015-12-04T17:50:36 | 2015-12-04T17:50:36 | 22,839,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,648 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process('HiForest')
process.options = cms.untracked.PSet(
# wantSummary = cms.untracked.bool(True)
#SkipEvent = cms.untracked.vstring('ProductNotFound')
)
#####################################################################################
# HiForest labe... | [
"dgulhan@cern.ch"
] | dgulhan@cern.ch |
407490770d18e8f48175636293ab3b86e5b8fdb7 | 88908644c4f3d48ba684b05491d7e6279408cf42 | /My_K_NN.py | b654e9c55819ddea3101f29201189d35fabb7b02 | [
"MIT"
] | permissive | cakmakaf/pima_diabetes_biased_random_forest | 6bf73174b5b99ae7842198866704a618be653d96 | 96bef0efb5fbd84dc050021a5025802bb21b73e0 | refs/heads/main | 2023-03-10T18:57:25.477280 | 2021-02-20T19:14:53 | 2021-02-20T19:14:53 | 340,498,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,778 | py |
from math import sqrt
# This function aloows us to find the min and max values for each column
# The input is the dataframe
# It will return the list of minimum and maximum values of the data matrix.
def data_min_max(data):
min_max = list()
for i in range(len(data[0])):
col_values = [row[i] for ... | [
"noreply@github.com"
] | noreply@github.com |
3ceaf60c54178c57d9bc8ac72bef832180d52f54 | 9d74af6a0d84749c86d8ac3b1941cc7aa1145f5b | /python/Queens_Attack_II/queens_attack_ii.py | 992c67709c9bcf409d0fa2421fa67d7e850d3212 | [
"MIT"
] | permissive | Oscar-Rod/hackerrank | 1957fccd98af3d9509939c3555ef6c4e41149b9b | 8c9679f6c0160121494d251712f2fea000bc2c8c | refs/heads/master | 2020-07-11T08:39:52.528896 | 2020-01-29T16:39:00 | 2020-01-29T16:39:00 | 204,492,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,578 | py | import unittest
def queensAttack(n, k, r_q, c_q, obstacles):
up_obstacle = None
down_obstacle = None
right_obstacle = None
left_obstacle = None
up_right_obstacle = None
down_right_obstacle = None
up_left_obstacle = None
down_left_obstacle = None
for obstacle in obstacles:
i... | [
"rguez.r.os@gmail.com"
] | rguez.r.os@gmail.com |
247fe090f43fd0a83855df1f9f2e432ddd933952 | 050d969572da4168df2184c43177b555db9f4391 | /Pandata_Python/Pandata_Python/TwitterManager.py | ee297531d004c7b61a916d216c3c21d9cc9744be | [
"MIT"
] | permissive | adrienyou/Pandata_Python | 588145890537aeaac6dadd16655a5cc59b5b3c0f | fe871706a476ca3432f242c6ae585f241321275a | refs/heads/master | 2021-03-27T10:14:45.793423 | 2015-03-21T18:12:25 | 2015-03-21T18:12:25 | 28,859,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,072 | py | """
@authors: YOU
"""
from twython import TwythonStreamer
import json
import pymongo
import Constants
import Variables
import MongoManager
import TextAnalysis
class TweetStreamer(TwythonStreamer):
""" Method on_success will be called when tweets are received """
def on_success(self, data):
# Connect ... | [
"adrien.you@student.ecp.fr"
] | adrien.you@student.ecp.fr |
97115a5d5c194dc49f8fff0887fb410dffe587cd | a91ee43d466f765e8a2cc2ed5be7881ba2a18783 | /profiles_api/admin.py | 5f4f2f6ac0fe5e52909ddc1c15c5cd4b7fb22458 | [
"MIT"
] | permissive | divyajpodar/profile_rest_api | 4e664e0aa3499d1e0b80f696b17af83e5f0091bc | 8c8335373f0b13834965f23a8757a9807afda23d | refs/heads/master | 2022-05-02T22:14:21.609300 | 2020-01-06T03:43:05 | 2020-01-06T03:43:05 | 231,166,744 | 0 | 0 | MIT | 2022-04-22T23:04:00 | 2020-01-01T02:18:47 | Python | UTF-8 | Python | false | false | 125 | py | from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.UserProfile)
| [
"divpodar@gmail.com"
] | divpodar@gmail.com |
e8bd9944d02bc4a7cdfe64bf79fe0b622779f797 | 294e8b9fd90864c4fcbc28c7a93fd93e65cfecc4 | /elastic/elastic_search.py | 6b230d015c16fbace849268e33cae7f93335361a | [] | no_license | liujustin/Simply-Search | afaff4bb06057a8d8324d70118d5a3c5a25ebc53 | 134cf15386cabc84626a88fe894995e709606e1d | refs/heads/master | 2021-03-19T13:25:26.855567 | 2018-07-29T02:35:14 | 2018-07-29T02:35:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | import os
import elasticsearch
import json
import sys
from bson import json_util
class Elastic_Search:
def __init__(self, hosts):
self.hosts = hosts
self.es = elasticsearch.Elasticsearch(hosts=hosts)
def initiate(self, mongo_db):
"""
Takes in a mongo_db instance, initializes e... | [
"jxl3908@rit.edu"
] | jxl3908@rit.edu |
973a8b519d0ecebd2d6d553f93b4dd06ffde7f56 | f1a38db672ee3051fd96dd3bb923e9d7be3036c6 | /tests/test_load.py | ce4bfa2c01ad1f67111dac78bdd4936e5f006211 | [
"Apache-2.0"
] | permissive | zhangxinxf/dwml | 47e16ba6067ff3dee2d8b02096d7da2819453515 | 406130cff0e158687246e20ea289190260e4329f | refs/heads/master | 2021-01-21T23:54:32.907129 | 2016-06-17T01:58:53 | 2016-06-17T01:58:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
from base import PROJECT_ROOT
from dwml import omml
class TestLoad(unittest.TestCase):
def test_load_ml(self):
latex_results = [
r'\sin(\sqrt[3]{x})^{x^{11}}/_{b}x_{m}^{n}',
r'\tilde{a}\begin{array}{c}a=b+c\\d+e=f\end{array}\\\underline{cdef}']
... | [
"xilei125@163.com"
] | xilei125@163.com |
2c20bf56f31e55fefd4e0b352cc38047c153827f | c152d0c541b784e5859367813f8d5c270949d73b | /blogengine/blogengine/settings.py | a54887048509c688da2c0b7ba2723e8e77a291b7 | [] | no_license | ivadin/django-projects | 7ceb5e3ce5a14e696178ccbbab18dd0838519a83 | d2f2b7aeea50533a7aace4aaf163ce09032a16d3 | refs/heads/master | 2020-04-08T00:00:46.576931 | 2018-11-23T13:10:30 | 2018-11-23T13:10:30 | 158,833,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,178 | py | """
Django settings for blogengine project.
Generated by 'django-admin startproject' using Django 1.11.16.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impor... | [
"ivadin@rambler.ru"
] | ivadin@rambler.ru |
3a4dcd69f4f38418bd714df065790230b8476157 | 7546742a3131fa90cc9466a08ec521e232f09da2 | /mousse_rocket_genetics.py | 27e17bb326a439cc5dfca7b8608e9488c088d589 | [] | no_license | gabrielandm/genetic_mousses | f504ec5c7480d651c15961fbad7d32709e310209 | 13a9a540e1332aca4a4ea22e150539ca6c471fa7 | refs/heads/main | 2023-05-05T07:22:03.268686 | 2021-05-24T12:55:38 | 2021-05-24T12:55:38 | 365,259,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,029 | py | '''
Angle
Thrust limit
Engine flow rate (between 100% and 70% or stuck at 0%)
Fitness -> Height and Speed
Rule:
Fuel limit
'''
from math import sqrt, pi, atan, sin, cos
from random import random
from collections import namedtuple
Rocket = namedtuple('Rocket', ['m', 'vy', 'vx', 'h'])
# m -> Rocket's mass
# vy ... | [
"gabriel.paoli@kumulus.com.br"
] | gabriel.paoli@kumulus.com.br |
c116d5ed45b73688faf291bb45ee75687c5466ea | 93c25a7cd79bc997342b81737836113a8b1ee3ae | /An Introduction to Interactive Programming in Python (Part 1)/Practice problems/Week 1a/EX9-NameandAge.py | f8b052b800fc448a51dbbd8330db708e482abd55 | [] | no_license | monishappusamy/coursera | 28897f686e10e2e1a29f7ffbfad3b6a4af5db4fd | 129bc63787f93abc98671a2cd25234e44966dd45 | refs/heads/master | 2021-01-10T06:13:38.625914 | 2015-10-21T03:57:32 | 2015-10-21T03:57:32 | 36,129,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | # Compute the statement about a person's name and age, given the person's name and age.
###################################################
# Name and age formula
# Student should enter function on the next lines.
def name_and_age (name, age):
return name + " is " + str(age) + " years old."
#####################... | [
"monishappusamy@gmail.com"
] | monishappusamy@gmail.com |
d7420989469dab17d9f1146e6f856d16c343fb1e | 054eefaa17157b32869ea986347b3e539d2bf06b | /big_o_coding/Green_06/midterm1.py | bbd16356c363c790e981dd3ec7c049cf0c48699b | [] | no_license | baocogn/self-learning | f2cb2f45f05575b6d195fc3c407daf4edcfe7d0e | f50a3946966354c793cac6b28d09cb5dba2ec57a | refs/heads/master | 2021-07-12T23:32:14.728163 | 2019-02-10T14:24:46 | 2019-02-10T14:24:46 | 143,170,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | n = int(input())
result = 1
if n == 1:
result = 1 * 15000
elif 2 <= n <= 5:
result = 1 * 15000 + (n - 1) * 13500
elif 6 <= n <= 11:
result = 1 * 15000 + 4 * 13500 + (n - 5) * 11000
elif n >= 12:
result = int((1 * 15000 + 4 * 13500 + (n - 5) * 11000) * (1 - 0.1))
print(result ) | [
"baocogn123@gmail.com"
] | baocogn123@gmail.com |
4fcd7f02528a475c4a5e347b44c26c46a151141f | c37d94976f42118b392637f0c3a0ed23f13cb522 | /5/week4/circuit_design/circuit_design.py | 05bfaadf737317fe3647d636882f092bbd42ce19 | [] | no_license | mcgaw/psychic-garbanzo | e992eec01efd471a720c5f2dddaf38ff467d77c0 | 48b43069928c36ba09dcdcec78ff49a9f050ae33 | refs/heads/master | 2021-09-17T14:03:03.778301 | 2017-11-07T11:30:25 | 2017-11-07T11:30:25 | 109,826,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,841 | py | # python3
import sys
import threading
import collections
sys.setrecursionlimit(10**6) # max depth of recursion
threading.stack_size(2**26) # new thread will get stack of such size
import itertools
def conn_comp(edges):
"""
Tarjan's algorithm for connected
components.
"""
vertices = set(v for v ... | [
"mcgaw@gmx.com"
] | mcgaw@gmx.com |
02ad55d12b0c96af333d4519f4dea9b94f3645e8 | 6e1f3f64d36ad7dfdd930f2d33bdc5af7fd3b6b7 | /飞机大战/plane_main.py | ca3a39dfa59692b6c03b38e16e55a4d13d812d61 | [] | no_license | barrylee9527/python-games | 7f02d7883f45a24a19c29c507e94bd87070d7a39 | 61d4feadcccdfab78e41eb14b8c7f9390634d4b2 | refs/heads/master | 2020-08-09T10:05:53.743539 | 2019-10-10T02:14:04 | 2019-10-10T02:14:04 | 214,065,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,919 | py | from 飞机大战.plane_sprites import *
class PlaneGame(object):
def __init__(self):
# 游戏的初始化
print("游戏场景初始化")
self.screen = pygame.display.set_mode(SCREEN_RECT.size) # 初始化屏幕大小
self.clock = pygame.time.Clock() # 游戏时钟帧数检测
self.__create__sprites() # 创建精灵组
pygame.time.set_... | [
"1763272870@qq.com"
] | 1763272870@qq.com |
a2b8a33ac784568eaef815d0402ff1feaea3322e | daa84286da8b250adfed6a95e3cac73986c769cf | /CeasarCipher.py | 0d36ec0770fa394dc4dfb35a0ca38c0492ff3648 | [] | no_license | Neojin629/CeasarCipher | 3c38d8ead0c84a4b0713571e746c437f030e76a2 | 4c6b7c1b6eb37c6324248b9d55459e12f3df2957 | refs/heads/main | 2023-07-24T12:07:53.249646 | 2021-08-31T15:43:28 | 2021-08-31T15:43:28 | 401,757,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,173 | py | alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
def caesar(start_text, shift_amount, cipher_dir... | [
"noreply@github.com"
] | noreply@github.com |
6af2e5be03f5004ba0e7cf3c2b61a359794bb422 | 3c3fc1a15f06771ea4d8ffd8144694a952759cb7 | /UI/app/test_camera.py | 11133065aa47fd4b786258b080266fccc926cace | [
"MIT"
] | permissive | JeremYnov/Faice | 57492159247267277631787ebcdf24e00df54fb5 | de2f42c5b885831b0da02e2f7116c9eca013369a | refs/heads/main | 2023-04-14T12:41:00.049826 | 2021-04-27T15:21:51 | 2021-04-27T15:21:51 | 305,392,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | '''
Camera Example
==============
This example demonstrates a simple use of the camera. It shows a window with
a buttoned labelled 'play' to turn the camera on and off. Note that
not finding a camera, perhaps because gstreamer is not installed, will
throw an exception during the kv language processing.
'''
# Uncomme... | [
"ow.charlon@gmail.com"
] | ow.charlon@gmail.com |
6fc9d8032c359a5d145d139b99cdd20fc1f2f83f | 78f5e27e8048d71351d6228ff826e3ffc2c2891b | /test_shared_string.py | 416832811fcf763b1e9685f815f5b7b8bc6043e5 | [] | no_license | ksato-dev/multiprocessing_exercises | c89ed1818dfc487f57f7d41f59ed6a4fe10f445d | 0d16a7ee1923b2d21c5953fd1576c2dade734bc6 | refs/heads/master | 2023-01-14T14:48:44.099272 | 2020-11-14T14:15:43 | 2020-11-14T14:15:43 | 312,815,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | # -*- coding: utf-8 -*-
from multiprocessing import Process, Manager, Lock
import time
from ctypes import c_char_p
def hoge(shared_string, lock):
while True:
string = shared_string.value
if (string != ""):
lock.acquire()
print(shared_string.value)
shared_string.... | [
"satokazu.general@gmail.com"
] | satokazu.general@gmail.com |
92e0b430076045d277db8c855447dd0eaf5328a7 | 000642ddd1bb9ec993ff880c143f3b1fd905f880 | /week8/PythonExercises/second_max.py | 6527e9cc5d1a86ac8909158c95fb2dcceafffbc4 | [] | no_license | luikaaa27/Web_Development | f4de99733133f9958e0b17e05c889c91f0e5da2f | a2e1b595edee06c18dd952ba7ccd39ec0311eceb | refs/heads/master | 2023-01-13T18:46:36.030482 | 2020-04-17T21:46:50 | 2020-04-17T21:46:50 | 237,271,297 | 0 | 0 | null | 2023-01-07T17:12:34 | 2020-01-30T17:52:59 | Python | UTF-8 | Python | false | false | 176 | py | if __name__ == '__main__':
n = int(raw_input())
arr = map(int, raw_input().split())
new_arr = set(arr)
new_arr.remove(max(new_arr))
print(max(new_arr)) | [
"noreply@github.com"
] | noreply@github.com |
c8275c0263fa17dd5c699419bd33e02aa94828bc | 384813261c9e8d9ee03e141ba7270c48592064e9 | /new_project/fastsklearnfeature/interactiveAutoML/new_bench/multiobjective/metalearning/openml_data/private_models/randomforest/sam_node.py | 8fbb83881a619090a269f8cb2979875d31f3c78e | [] | no_license | pratyushagnihotri/DFS | b99d87c085e67888b81c19629c338dae92272a3b | 3b60e574905e93c24a2b883cc251ecc286cb2263 | refs/heads/master | 2023-04-18T22:17:36.816581 | 2021-04-20T13:41:29 | 2021-04-20T13:41:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,128 | py | ''' A class defining the nodes in our Differentially Private Random Decision Forest '''
from collections import defaultdict
import random
import numpy as np
import math
from scipy import stats # for Exponential Mechanism
class node:
def __init__(self, parent_node, split_value_from_parent, splitting_attribute, t... | [
"neutatz@googlemail.com"
] | neutatz@googlemail.com |
addce9e9601f6db6495755d3b9f0ef59ec7bae2b | ac6a1789722de5e37be54b39b964beef005d111d | /rest_registration/utils/validation.py | d23aac4f20409a39eba749fbb9ac6225315dc012 | [
"MIT"
] | permissive | sunbeamer/django-rest-registration | cd194ccf152c62802ca6f7d7a048764da8aadf8a | dd25b84d0151630659da4c2c17ed48d26238e006 | refs/heads/master | 2023-03-29T10:39:06.225559 | 2021-03-25T23:21:46 | 2021-03-25T23:21:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,971 | py | import functools
from collections import OrderedDict
from collections.abc import Mapping
from typing import Any, Callable, Dict, Iterable, List
from django.contrib.auth.password_validation import validate_password
from django.core.exceptions import ValidationError as DjangoValidationError
from django.utils.translation... | [
"apragacz@o2.pl"
] | apragacz@o2.pl |
bbf0609a21b500bf3da4fb281afcfc2156eac9b3 | c3d6e2bc2391733f1eb0f8c5e811990fdef00952 | /dogs/migrations/0002_auto_20181206_1624.py | 0f5acb206048e627a1b27e3e4597d952d346c38e | [] | no_license | svich/k9 | a753655aa9279b68f24f15f58c93203a77424676 | 1fab7b65ce43138cabff4674a5d26407f2663548 | refs/heads/master | 2020-04-09T19:53:40.626438 | 2018-12-07T09:39:47 | 2018-12-07T09:39:47 | 160,556,790 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | # Generated by Django 2.1.4 on 2018-12-06 16:24
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('breeds', '0002_auto_20181206_1139'),
('dogs', '0001_initial'),
]
operations = [
migrati... | [
"a.svidchenkov@gmail.com"
] | a.svidchenkov@gmail.com |
9833b1ae185ddf9c36ccb4d70694a5f5430e2cc9 | 4750dec849243686bdfaf26bb448946134780599 | /CNN-UNet/Training/convert_to_tiffs.py | 162a4c4995d344ab2aa21568e8834c65c8594463 | [] | no_license | yxu233/Myelin | 319b847db9de280564acf9146b5a46a0e8eae7f4 | 669dea7c4d77b27b75b6f9e6be4bdfe6d94aed04 | refs/heads/master | 2021-09-28T16:24:23.661366 | 2021-09-27T01:55:49 | 2021-09-27T01:55:49 | 143,020,497 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,995 | py | # -*- coding: utf-8 -*-
"""
Created on Sunday Dec. 24th
============================================================
Converts pickled data to tiffs
@author: Tiger
"""
import tensorflow as tf
from matplotlib import *
import numpy as np
from PIL import Image
from os import listdir
from os.path import isfile, join
impor... | [
"tigerxu96@hotmail.com"
] | tigerxu96@hotmail.com |
b3c3d93049b1e2066eff628df1956bdd155fdca1 | 570e773112f03048fc4080a066f1ab8bdd87f288 | /hour_minute.py | 77c0438a20bb8540f6c676bc0c35eff89a386352 | [] | no_license | shuvendra4228/learn-python | c0da1e0ea7188a80d97b39b933e4278f8321db10 | c61368db0064455104b13f1d6d23df24a64e8b61 | refs/heads/master | 2021-09-04T02:25:47.969362 | 2018-01-14T16:43:42 | 2018-01-14T16:43:42 | 115,523,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | def hour_min(hr,min):
total_mins = hr*60 + min
return 0.5*total_mins
hour = int(input("enter hour: "))
minute = int(input("enter minute: "))
watch = hour_min(hour,minute)
print(f'hour hand moves {watch} degrees in {hour} hr and {minute} minutes')
| [
"shuvendra4227@gmail.com"
] | shuvendra4227@gmail.com |
ab3912c4caa084bcab151c48ecec4d4569bd8d24 | 5ba6e51fa7745fae4c66eb3fc4b27c36b682f68f | /app.py | b74fa5c1f55903d2acc829b17709bc80983a2628 | [] | no_license | Dishi30/Book-Manager | 9b15c3b2a9d47dfcd760ec0fd5837cbc7c02e240 | de879c67ffbce1ece2368f06db14174ccf91dc47 | refs/heads/main | 2023-08-16T20:05:14.548017 | 2021-09-26T16:13:48 | 2021-09-26T16:13:48 | 410,599,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | from utils import database
user_choice = """
Enter:
-'a' to ADD new book
-'l' to LIST all book
-'r' to mark a book as READ
-'d' to DELETE a book
-'q' to QUIT
Your choice: """
def menu():
database.create_book_table()
a = input(user_choice)
while a != 'q':
if a == 'a':
... | [
"noreply@github.com"
] | noreply@github.com |
caadde480ede3737af17ac7035a2844eaffa7880 | 0a2f838d253ebf2a5f8b9a1ec41f011b19ebc05e | /cifrado/escritorio/codigo/playfair-Python/reglas/regla4/Regla4.py | 50928ec5a31a787a23538fee629a9cb3bae312e5 | [] | no_license | HernandezGarciaDavid/disor | 75774c21e54e338a5eb44632b7a1fbaf3dc73685 | 009d8743d2b6b22103e8e1dc95b6e448e6378d21 | refs/heads/master | 2020-04-11T17:32:36.533058 | 2018-12-16T05:51:58 | 2018-12-16T05:51:58 | 161,964,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | from posicion.Posicion import Posicion
class Regla4():
def aplicar(self,mensaje,matriz,resultado):
if Posicion().devolverPosicion(mensaje[0],matriz,0)[1]-1 >= 0:# len(matriz[Posicion().devolverPosicion(mensaje[0],matriz,0)[0]]):
resultado+=matriz[Posicion().devolverPosicion(mensaje[0],matriz,0)[0]][Posicion().de... | [
"David.Hernandez@Glicware"
] | David.Hernandez@Glicware |
f3852d63cf9e096a53290bd0506fa35bb2c56415 | be7b0c496920e634bfbcb5a19ed4598289f533f8 | /Chapter 7/parrot.py | 3c47cc463d3833ed7f2636f36cecc48a0fdbd720 | [] | no_license | AlbertRipak/PythonLearining | 2e411ece542e98dbaf0cc5f67bb8ed4e93b0c770 | 7c1c37ccac6cc22186c7e6845aabc6e695b22669 | refs/heads/main | 2023-07-13T03:15:07.969555 | 2021-08-24T16:03:12 | 2021-08-24T16:03:12 | 393,701,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | #message = input("Tell me something, and I will repeat it back to you: ")
#print(message)
prompt = "\nTell me something, and I will repeat it back to you: "
prompt2 = "\nEnter 'quit' to end the program. "
active = True
while active:
message = input(prompt)
if message == 'quit':
active = False
else... | [
"arspak107@gmail.com"
] | arspak107@gmail.com |
ab07b3c7457ca63c2c580c147a7f05ebaff5b274 | 36ed4043a3d60089e556beea6a2c889aa99082cd | /qiskit/quantum_info/operators/dihedral/dihedral_circuits.py | a27fa4699f4ef47a844bef2e69c5e828572408cd | [
"Apache-2.0"
] | permissive | sethmerkel/qiskit-terra | ad5b7380f257033e200325892732b4f89d938dea | c13cf5e3a160cada884e99cb083645201792de4e | refs/heads/master | 2023-04-12T15:07:12.816572 | 2022-06-24T14:18:21 | 2022-06-24T14:18:21 | 185,865,440 | 0 | 0 | Apache-2.0 | 2023-03-27T10:07:00 | 2019-05-09T20:16:36 | Python | UTF-8 | Python | false | false | 6,363 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2019, 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"noreply@github.com"
] | noreply@github.com |
34f3f9198a19dce963a0fbaf29dc652cf2e4b47b | a35e38a12247660e4c9c9e430aa00ca69319aba9 | /swaggerAPIClient/swagger_client/api/mapping_api.py | ae3b4bf94a785ca276bdd2cad5e4d1f0025302d5 | [] | no_license | tf-msdev/htm_cli | 5106768753346b3c34ac509a342c0f6b2a34f229 | cbd0f0d9f6c2eb7ad469ce0d22422ede405b4d0a | refs/heads/master | 2020-06-22T16:26:04.356802 | 2019-09-26T18:50:54 | 2019-09-26T18:50:54 | 197,745,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71,251 | py | # coding: utf-8
"""
HOT Tasking Manager API
API endpoints for the HOT tasking manager # noqa: E501
OpenAPI spec version: 0.0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibi... | [
"v-fita@microsoft.com"
] | v-fita@microsoft.com |
a25334656cde1cf3ae95a292a3c4a80cbc70ed9f | 56fa9e3f5cd63fe8b521feb9765aefc37e46f573 | /flask-aws/bin/pycolor | 5ed9c95581a74fa300a7eaea3e7a79752ae29eea | [
"MIT"
] | permissive | Roshin29/notejam | 7b4c65df2972b9efe1e8edfd9688e6760d134e3e | a6baf1bc5e9f898fa4001867410968bd16489306 | refs/heads/master | 2022-11-15T15:18:20.443453 | 2020-07-07T18:00:34 | 2020-07-07T18:00:34 | 272,704,845 | 0 | 0 | NOASSERTION | 2020-06-16T12:41:28 | 2020-06-16T12:41:28 | null | UTF-8 | Python | false | false | 249 | #!/home/ubuntu/notejam/flask-aws/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from IPython.utils.PyColorize import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"root@ip-172-31-24-171.eu-west-2.compute.internal"
] | root@ip-172-31-24-171.eu-west-2.compute.internal | |
3b08686f4e2a71c8bf371a520051eda1f14a2bf7 | ac025f20b0c72321b6f051b40c7e946b8121ebaf | /tests/test_hand.py | ee0ec76803a3f44190dc84cef70ece935f8f40c4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Simon-Lee-UK/blackjack-game | 7c797aefab63724afbbecadc43c1510d977cfe4b | a3a09573621898ef70d2ea9e18d92d1f0ed16e47 | refs/heads/master | 2022-12-05T19:51:38.059391 | 2020-08-26T19:53:31 | 2020-08-26T19:53:31 | 273,967,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | """Tests for hand objects. Run using: python -m pytest."""
def test_hand_value_three_ten(hand_13_fixture):
assert hand_13_fixture.hand_value() == [13]
def test_hand_value_single_ace(hand_1ace_fixture):
assert hand_1ace_fixture.hand_value() == [11, 21]
def test_hand_value_double_ace(hand_2ace_fixture):
... | [
"[simonalee96@gmail.com]"
] | [simonalee96@gmail.com] |
c5e7e86446a2042faffeab8a1537027b1f2e519c | c4223fa1db8324af96797240b3e156f9f697b547 | /agent_code/agent_task1/train.py | c5040fbdee545b213041da50c29463ae446b66d2 | [] | no_license | Philipp-g/ifml-project | 74b18933ab55a6402aa70d567ea961a641498f8c | 34c8fc56b0cf635509921290a1e70b6a812146d6 | refs/heads/master | 2023-03-25T06:38:54.566525 | 2021-03-29T12:18:14 | 2021-03-29T12:18:14 | 338,555,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,696 | py | import pickle
import random
from collections import namedtuple, deque
import datetime
from typing import List, Tuple
import events as e
from .callbacks import state_to_features
from . import config
import torch
from collections import defaultdict
import numpy as np
# This is only an example!
Transition = namedtuple('... | [
"philipp.goeldner@gmail.com"
] | philipp.goeldner@gmail.com |
2ac952f31d08278c866ed2990a35fd7f970f3e15 | fdf3aff5344271ef69ac7441c5dbca9cbf832cd1 | /car_location/location/models/__init__.py | 1219e9aa74d0d07e37129adcf33bba5812ee7ee2 | [] | no_license | lffsantos/DesafioPython | 6069b3277780326611e34ae024f7506f3d56c5b4 | fbc451b77c0310630fd95cbd23c339e194af88d1 | refs/heads/master | 2021-01-17T07:42:12.181187 | 2016-01-19T03:39:20 | 2016-01-19T03:39:20 | 49,730,610 | 0 | 0 | null | 2016-01-19T03:39:22 | 2016-01-15T16:25:30 | JavaScript | UTF-8 | Python | false | false | 277 | py | __author__ = 'lucas'
from car_location.location.models import categoriaveiculo
from car_location.location.models import veiculo
from car_location.location.models import cliente
from car_location.location.models import locacao
from car_location.location.models import devolucao | [
"lffsantos@gmail.com"
] | lffsantos@gmail.com |
4404d9fc262775f54d590079477f8a1ba5b93179 | e65ae5bd9ae1c93e7117e630f7340bc73aa71212 | /lib/gevent/greentest/test__semaphore.py | 480ec0e930466916a152bfe75550bf85470a4e0e | [
"MIT"
] | permissive | nadirhamid/oneline | e98ff1ed81da0536f9602ecdde2fb2a4fe80d256 | 833ebef0e26ae8e0cc452756381227746d830b23 | refs/heads/master | 2021-01-21T04:27:41.715047 | 2016-05-30T03:50:34 | 2016-05-30T03:50:34 | 23,320,578 | 1 | 2 | NOASSERTION | 2020-03-12T17:22:24 | 2014-08-25T16:29:36 | Python | UTF-8 | Python | false | false | 640 | py | import greentest
import gevent
from gevent.lock import Semaphore
class TestTimeoutAcquire(greentest.TestCase):
# issue 39
def test_acquire_returns_false_after_timeout(self):
s = Semaphore(value=0)
result = s.acquire(timeout=0.01)
assert result is False, repr(result)
def test_rele... | [
"matrix.nad@gmail.com"
] | matrix.nad@gmail.com |
58c7af9907e90657db990a4e460eb35ea902d102 | f3693916a8b118bf139364604dac3f51235ed613 | /functional/Components/Authorization_System/Authorization_System_generateToken_POST/test_TC_43372_Authorizationsystems_POST_Pastdate_For_Not_Before_Time.py | fbedd554265220c2b614fc0c146a20e9c5d9bc1c | [] | no_license | muktabehera/QE | e7d62284889d8241d22506f6ee20547f1cfe6db1 | 3fedde591568e35f7b80c5bf6cd6732f8eeab4f8 | refs/heads/master | 2021-03-31T02:19:15.369562 | 2018-03-13T02:45:10 | 2018-03-13T02:45:10 | 124,984,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,941 | py | # -*- coding: UTF-8 -*-
"""PFE Component Tests - Authorization_Systems.
* TC-43372 - Authorization_Systems POST:
Verify that user is unable to generate Token on providing time before expiration time for 'notBeforeTime' field using request POST /authorizationSystems/{id}/generateToken ".
Equivalent test CURL com... | [
"mbehera@qumu.com"
] | mbehera@qumu.com |
9b86763b34bce30afdb20d256f2e76972cc7a3ed | 06919b9fd117fce042375fbd51d7de6bb9ae14fc | /py/tests/problems/hashtable/sparse_matrix.py | 6ffec84f318bf38c68b1a11b7e3818d670628f49 | [
"MIT"
] | permissive | bmoretz/Daily-Coding-Problem | 0caf2465579e81996869ee3d2c13c9ad5f87aa8f | f79e062e9f6e7b18b7e95c071fbe71ad104affcb | refs/heads/master | 2022-12-07T15:41:06.498049 | 2021-11-18T19:45:19 | 2021-11-18T19:45:19 | 226,376,236 | 1 | 0 | MIT | 2022-11-22T09:20:23 | 2019-12-06T17:17:00 | C++ | UTF-8 | Python | false | false | 1,219 | py | import unittest
from dcp.problems.hashtable.sparse_matrix import SparseMatrix
class Test_SparseMatrix(unittest.TestCase):
def setUp(self):
pass
def test_case1(self):
mat = [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1], \
[0, 0, 0, 0... | [
"bmoretz82@gmail.com"
] | bmoretz82@gmail.com |
bb86e58235679dd269f98bd712f8895d48d43d34 | b503b00b34d4581959ed7534aea4ea196f99d7f7 | /mstar_picker.py | acd7345d465ed7cd5194ad6d3cc8fa929f02c8ff | [] | no_license | afitts/analysis_scripts | 1f76feff7213a26a010e136dea9c5375f447f513 | e02678a2ecbb9628937cceb0a958e19b5b540597 | refs/heads/master | 2021-01-22T20:07:43.033514 | 2017-08-03T13:54:06 | 2017-08-03T13:54:06 | 49,749,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,198 | py | import numpy as np
import sys
import glob
#import matplotlib
#matplotlib.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import matplotlib.colors as co
import pylab
import pygadgetreader as pg
import scipy.integrate
import time
import scipy.stats as stats
import pandas as pd
import scipy.optimize... | [
"fitts.alex@gmail.com"
] | fitts.alex@gmail.com |
e187b8c37156b8dcca7888e92b0a8c5bbcc7dfff | 818edca070b068345b23bd80f76ab95238d6fb43 | /yiaygenerator/settings.py | 2907bacf0e8cc98deea121255babcdf07bee8562 | [
"MIT"
] | permissive | PaperBag42/yiaygenerator | 39f4595d252c55074edb2e9ff36d08f25ef5746e | 2aacff5624676d8df6b9544309f33a8f9ab32799 | refs/heads/master | 2020-03-29T00:32:58.361790 | 2019-04-27T16:44:31 | 2019-04-27T16:44:31 | 149,344,832 | 0 | 1 | null | 2019-02-06T21:06:51 | 2018-09-18T19:58:46 | Python | UTF-8 | Python | false | false | 2,555 | py | """
Django settings for yiaygenerator project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import... | [
"ben.zichri@gmail.com"
] | ben.zichri@gmail.com |
890df7bc7ac818f73e723fd60e31348000e90d75 | 2c763b37baff67006bc8612868b2af4214e26a9d | /news_blog/views.py | 853114b524d7b453f4c804c4e8a485956b868b0b | [] | no_license | Nikkeborn/news_blog_release | b4f95ad9e5534e562a3571ab7ab305317f51f5f0 | 2edbbba6bc4d904d027e3b5ea467fb4126a0f06f | refs/heads/master | 2021-09-25T19:41:54.221678 | 2020-04-16T14:53:11 | 2020-04-16T14:53:11 | 244,409,782 | 0 | 0 | null | 2021-09-22T18:40:29 | 2020-03-02T15:46:48 | Python | UTF-8 | Python | false | false | 1,176 | py | from django.shortcuts import render, redirect, reverse
from django.views.generic import View
from django.contrib.auth.views import LoginView
from django.contrib.auth.models import User
from .forms import UserForm
class Login_(LoginView):
def get_success_url(self):
user_name = self.request.POST.get('usern... | [
"loomvolum@gmail.com"
] | loomvolum@gmail.com |
44ed7aab029125950b6f5f506929e89f4de0dcdf | 6968c7f9d2b20b5296663829f99a27d184a59fc1 | /autodisc/autodisc/gui/jupyter/imagelistwidget.py | b6152e78a221de869f622b5b6696836db4ed377e | [
"MIT",
"Apache-2.0"
] | permissive | flowersteam/automated_discovery_of_lenia_patterns | d42dff37323d51732571b33845c0562d844f498f | 97cc7cde2120fa95225d1e470e00b8aa8c034e97 | refs/heads/master | 2020-06-29T07:08:58.404541 | 2020-05-14T07:37:10 | 2020-05-14T07:37:10 | 200,470,902 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,855 | py | import autodisc as ad
import ipywidgets
import numpy as np
import IPython.display
class ImageListWidget(ipywidgets.VBox):
@staticmethod
def get_default_gui_config():
default_config = ad.Config()
default_config.elements_per_page = 100
default_config.output_layout = ad.Config()
... | [
"chris.reinke@inria.fr"
] | chris.reinke@inria.fr |
91827b433498925f9c557663f2ffc3ab84e0f02d | 2d83c1084de8b53cbe78638b5672a8a65a3659d5 | /.venv/bin/isort | da12d4435288dd048c85d79b73422bd36f53479c | [] | no_license | Ulrika90/Hello | 650a778c120f7a42d99138e7e34afb7dcc9504f2 | 496252f9fc75a86e99a40c035f2ad99e4e1decf2 | refs/heads/master | 2020-06-24T03:32:49.818152 | 2019-07-25T13:23:31 | 2019-07-25T13:23:31 | 198,835,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/Users/ulrikawestholm/Git/Python/hello/.venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ulrikawestholm@Ulrikas-MacBook-Air.local"
] | ulrikawestholm@Ulrikas-MacBook-Air.local | |
bbb33c2583e79f2ebfcf80477d93aa479721526b | 648f742d6db2ea4e97b83c99b6fc49abd59e9667 | /common/vault/oas/models/contracts_smart_contract.py | d5d7062b8e4de5bd91efe115deb981877b802760 | [] | no_license | jmiller-tm/replit | c56ce63718f6eb2d9b53bd09d3f7b3ef3496cb86 | c8e6af3268c4ef8da66516154850919ea79055dc | refs/heads/main | 2023-08-30T00:49:35.738089 | 2021-11-16T23:09:08 | 2021-11-16T23:09:08 | 428,809,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,856 | py | # coding: utf-8
"""
vault/kernel/core_api/proto/v1/accounts/core_api_account_schedule_tags.proto
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: version not set
Generated by: https://github.com/swagger-api/... | [
"jmiller@jmiller-tm00769-mbp.nomad.thomac.net"
] | jmiller@jmiller-tm00769-mbp.nomad.thomac.net |
a3bd9f7287b261d6b7e3c747f1d10e15bca2a1c1 | 2855f26e603ec7bf5b18876b54b75ee4577bdf2c | /witdraw/forms.py | 65f12090c349714d0754149c7cec48b2f49658bc | [] | no_license | zkenstein/ppob_multipay_v2 | e8ea789c395c6fa5b83ba56fbaf5ea08a2a77a14 | 85296f925acf3e94cc371637805d454581391f6e | refs/heads/master | 2022-03-04T13:53:30.893380 | 2019-11-16T22:49:50 | 2019-11-16T22:49:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | from django import forms
from django.contrib.auth.models import User
from .models import Witdraw
MIN_COMMISION = 10000
class WitdrawForm(forms.ModelForm):
class Meta:
model = Witdraw
fields = [
'create_by', 'amount'
]
def __init__(self, *args, **kwargs):
super(Witd... | [
"anderi.setiawan@gmail.com"
] | anderi.setiawan@gmail.com |
b73222ef2351dbea7ab1c2b6235bf83274de39e7 | f3c98241adce87b9fb480647fe35318d979dfe0e | /src/amarket/utils/test_timeUtils.py | 7866180b995f5344b195517a01e4e0e2bb0f2bd3 | [] | no_license | qwteng/Amarket | 4fb5915f77666e0b86513d697d83fcb10f90df51 | 20929a0d53908bb716d5583beaf24263a868c946 | refs/heads/master | 2023-05-13T07:28:38.966534 | 2019-10-07T13:59:18 | 2019-10-07T13:59:18 | 164,220,620 | 0 | 0 | null | 2023-05-01T21:15:41 | 2019-01-05T14:10:01 | Python | UTF-8 | Python | false | false | 1,023 | py | # coding=utf-8
import pytest
from .timeUtils import *
def test_get_workday_backward():
assert get_workday('20190325', False) == '20190325'
assert get_workday('20190324', False) == '20190322'
assert get_workday('20190323', False) == '20190322'
assert get_workday('20190322', False) == '20190322'
def te... | [
"qwteng@qq.com"
] | qwteng@qq.com |
c19b81e1c8eeff010b5280346d1a9652be1aa501 | d53ad9afe037a750b1418e69c668e7f167af48ba | /scripts/Rent_ntbk_util.py | 46d0ad574cb183ec0b5037cee1ca052fe7d008d1 | [] | no_license | priyachotalia/Group_Project | e0ed654730ea92bab1902de15a5ce2a40e2177a7 | 1fb7789cafb002061862bfa5155ed62552b5bc5a | refs/heads/master | 2022-12-21T23:43:52.162406 | 2020-09-20T11:11:35 | 2020-09-20T11:11:35 | 297,054,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,135 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
rent_df=pd.read_csv("data/Rent_Data.csv")
rent_df.columns = ["Year", "Quarter", "LGA", "Dwelling Type", "Bedroom Number",
"First QNB", "Second QNB", "Third QNB", "NB Lodged", "TB Lodged", "Qtrly Median Change"... | [
"noreply@github.com"
] | noreply@github.com |
a94dbdf4fc6e774943ac77d02fc7c1c4ab4a4eff | 99767736ea5f34be4438ce689fc27454dffbf15c | /build/lib/sqlalchemy_nav/__init__.py | f5667ece8a87d320adf715b232e0f99d96ab7b47 | [
"MIT"
] | permissive | dsbowen/sqlalchemy-nav | 4600ff85c99878d98167fee000d5b9cd6a0a90bc | d60b28fe74cdde65de68a140d0c2845d92fb9b0f | refs/heads/master | 2020-08-02T09:35:27.233849 | 2020-06-10T16:50:22 | 2020-06-10T16:50:22 | 211,304,650 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | """Mixins for SQLAlchemy-Nav
SQLAlchemy-Nav Mixins can be used to create dynamic navigation bar models
compatible with Bootstrap 4. Navigation bars can contain navigation
items, dropdown items, and custom html.
All models store their HTML in a `MutableSoup` attribute, `body`. This is
essentially a `BeautifulSoup` ... | [
"dsbowen@wharton.upenn.edu"
] | dsbowen@wharton.upenn.edu |
88d1ec2c7c8599a735b126fa18f086afd2c00131 | 41aafbb5f749f192e81f754bbbf52e4f7bd231c4 | /app.py | ddccd8b64783330339baa5dcfd3fc81be129af7d | [] | no_license | JasonCodez/flask_madlibs | 84c31b2b413306053bedcb7c32e82b6653916315 | cb9c1a65cd098d7b02810c6783454488fe801783 | refs/heads/main | 2023-05-13T11:14:23.528019 | 2021-06-04T23:16:59 | 2021-06-04T23:16:59 | 373,978,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from flask import Flask, render_template, request
from stories import story
app = Flask(__name__)
@app.route('/')
def ask_questions():
prompts = story.prompts
return render_template("questions.html", prompts=prompts)
@app.route("/story")
def show_story():
text = story.generate(request.args)
return render... | [
"jason13garrett@gmail.com"
] | jason13garrett@gmail.com |
de4031edd500d91f3c5f79daceda0b6ddd0c105d | 53faa0ef3496997412eb5e697bc85eb09a28f8c9 | /pipeline/0x02-databases/34-log_stats.py | cd026394d8134a1af7cdf365a1a6c146de8897f9 | [] | no_license | oran2527/holbertonschool-machine_learning | aaec2ffe762b959573f98a5f4e002272a5d643a3 | 8761eb876046ad3c0c3f85d98dbdca4007d93cd1 | refs/heads/master | 2023-08-14T00:37:31.163130 | 2021-09-20T13:34:33 | 2021-09-20T13:34:33 | 330,999,053 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | #!/usr/bin/env python3
""" stats about Nginx logs stored in MongoDB """
from pymongo import MongoClient
if __name__ == "__main__":
""" stats about Nginx logs stored in MongoDB """
client = MongoClient('mongodb://127.0.0.1:27017')
collection_logs = client.logs.nginx
num_docs = collection_logs.count_doc... | [
"orlago250183@gmail.com"
] | orlago250183@gmail.com |
0db6856e41bbe6b3773d8320f95dd2e5edbcc1d6 | 451f158c20fd425bc9d14c8e27e1a8f415423276 | /novels_search/config/config.py | d38b0dcf8002cdb6327e83d0f826c02ffffffbc9 | [
"Apache-2.0"
] | permissive | TimeCharmer/novels-search | 3767a77c237426a66f25287abae3c0a44528cf52 | ab8152ff12d828dba0a8b52aa9c08675b21a1c5f | refs/heads/master | 2021-01-19T14:21:28.438011 | 2017-04-12T09:37:48 | 2017-04-12T09:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | #!/usr/bin/env python
import logging
from aiocache import RedisCache
# Search engine
URL_PHONE = 'https://m.baidu.com/s'
URL_PC = 'http://www.baidu.com/s'
BAIDU_RN = 15
SO_URL = "https://www.so.com/s"
USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883... | [
"xiaozizayang@gmail.com"
] | xiaozizayang@gmail.com |
4239b59efd8be01546de57fd9436920f76c9aaf9 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_089/ch14_2020_03_09_13_31_11_006129.py | 151ce51fd678c102515933e6bb62da962336d66d | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | def calcula_distancia_do_projetil(v,t,h):
D= (v**2/2*9.8)*(1+(1+(2*9.8*h)/v**2*(math.sin(t))**2))*math.sin(2*t)
return D | [
"you@example.com"
] | you@example.com |
c802abd4dd480d611f8d66bd6588eeaecc35679e | 4bc5ad9cc3036c56447c2d3da9c7e7b52e895495 | /alumni/student/migrations/0003_auto_20190409_1042.py | 2b8416a9180b4909bb1e1bd69b5a15dbdc7b7233 | [] | no_license | hariyanganesh/Alumini | ffd31939bb06040556517a9849c64760c48fe2b0 | 9f4aa1dfa005ce0b1d266176e3e206c6ace8ef56 | refs/heads/master | 2020-05-09T21:56:27.413868 | 2019-04-15T11:20:11 | 2019-04-15T11:20:11 | 181,453,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | # Generated by Django 2.2 on 2019-04-09 05:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0002_auto_20190409_0136'),
]
operations = [
migrations.AddField(
model_name='studinfo1',
name... | [
"noreply@github.com"
] | noreply@github.com |
cbe4d8dfdab89e21fe288bd6986ab78a30943da9 | a1807bf5ca332fecc7e775c9bde25eeed318db9d | /disclosure_backend/tests/test_docgen.py | 63a82b798a7aed4f2eaba4f1d41ba995ffbe972e | [] | no_license | MrMaksimize/disclosure-backend | 2c6a8936c08cd4c3ff328ee114a8050e410989cf | 6d97305b4656bd630b9e12aef953daed51c84ed7 | refs/heads/master | 2020-12-26T00:46:07.104157 | 2016-01-06T17:04:38 | 2016-01-06T17:04:38 | 49,169,984 | 0 | 0 | null | 2016-02-12T14:05:13 | 2016-01-07T00:19:30 | Python | UTF-8 | Python | false | false | 479 | py | import os
from django.conf import settings
from django.core.management import call_command
from rest_framework.test import APITestCase
class DocGenerationTest(APITestCase):
def test_generate_docs(self):
""" Test createcalaccessrawmodeldocs"""
call_command('createcalaccessrawmodeldocs')
# ... | [
"bcipolli@ucsd.edu"
] | bcipolli@ucsd.edu |
8817c54b5350de86ca658ecf083530659a7b4852 | ba0e07b34def26c37ee22b9dac1714867f001fa5 | /unreleased/azure-mgmt-eventhub/azure/mgmt/eventhub/models/consumer_group_create_or_update_parameters.py | 22ea6ee0888f32dfc1f858599060ca80abe0a49a | [
"MIT"
] | permissive | CharaD7/azure-sdk-for-python | b11a08ac7d24a22a808a18203072b4c7bd264dfa | 9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c | refs/heads/master | 2023-05-12T12:34:26.172873 | 2016-10-26T21:35:20 | 2016-10-26T21:35:20 | 72,448,760 | 1 | 0 | MIT | 2023-05-04T17:15:01 | 2016-10-31T15:14:09 | Python | UTF-8 | Python | false | false | 2,128 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
f5fb1d2d332a2c3099ec44d0d0d7fb97c7ebe551 | cb435ce9b9cb3a5e7f7d5555b59239aaa1533cd9 | /notebooks/omniglot/proto_nets.py | 9076ca24f522c4242d4e99a6dd0ffe9ec74f7985 | [] | no_license | kuan-li/Keras-FewShotLearning | 5107aba13b561dd7a1ec857318cf338de048c681 | 988a4ff6021db7ae778f880cff85b7d4978b2835 | refs/heads/master | 2021-02-22T22:46:10.884663 | 2020-03-05T16:26:05 | 2020-03-05T16:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | #%%
import logging
from pathlib import Path
from unittest.mock import patch
import imgaug.augmenters as iaa
import numpy as np
import pandas as pd
from tensorflow.keras.callbacks import ModelCheckpoint, TensorBoard
from tensorflow.keras import Model
from tensorflow.keras.saving import load_model
from keras_fsl.datase... | [
"clementw@sicara.com"
] | clementw@sicara.com |
d4e3751b2d4796c72be497007fe4c7d8ca67e18e | 6db97ab761d59452c05611354637dfb2ce693c96 | /src/compas_fab/geometry/frame.py | 60723945ebff9a82556936c9e69f14253f61e9df | [
"MIT"
] | permissive | Mahdi-Soheyli/compas_fab | e885efbdd5531ae5f245bf02b2f1acce0a308680 | 0e7d426903a5d9a1bca947cd7a1251031c4c71b4 | refs/heads/master | 2020-05-02T16:53:13.265526 | 2019-03-20T13:37:37 | 2019-03-20T13:37:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | from compas.geometry import Frame
| [
"casas@arch.ethz.ch"
] | casas@arch.ethz.ch |
26ca9926f70904dbde2689d810b066820a29a616 | ddabf93201341cccfa05bb16e731543d6f3d428b | /recursion.py | 4abdb12a45918e48435cb5e992fb5fe9dcfa5fec | [] | no_license | saumyajit2000/recursion | d0e6d0e08dc87c1e4fa1827c0476e3aa6f7f2d34 | 176e23f6e75a56b0500a509ad6e01b06888da146 | refs/heads/main | 2023-08-10T21:44:54.417188 | 2021-09-28T10:11:10 | 2021-09-28T10:11:10 | 411,230,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | py | import random
import time
#FUNCTION FOR USING MERGE SORT------------
def mergeSort(numbers):
if len(numbers) > 1:
mid = len(numbers) // 2
left = numbers[:mid]
right = numbers[mid:]
# Recursive call on each half
mergeSort(left)
mergeSort(right)
#... | [
"noreply@github.com"
] | noreply@github.com |
5846bc204c7e1842e8b5ea77991c70bcba7181e3 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/52_14.py | ac7dd979fdab752a1073fb88aae9f43db82f325a | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | Python – Test for Even values dictionary values lists
Given a dictionary with lists as values, map Boolean values depending upon all
values in List are Even or not.
> **Input** : {“Gfg” : [6, 8, 10], “is” : [8, 10, 12, 16], “Best” : [10, 16,
> 14, 6]}
> **Output** : {‘Gfg’: True, ‘is’: True, ‘Best’: Tr... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
b6b51b242a71db81c78ac1325b12e83d53de3eaa | 8a5fca5068f454ee11e81e9c7fa6faee44b84ae9 | /CarND-Capstone/ros/src/tl_detector/light_publisher.py | 7ed3dde7d3c242a24bb63cbf43e9ee8b59923ae9 | [] | no_license | abes975/CarND-Capstone | 7910d5e4e775cb6d6dd40a69a5e0ea3b280b5aec | f3079bbddc368015511d01578ff5bc1eb04be793 | refs/heads/master | 2021-07-11T18:08:50.233079 | 2017-10-10T19:56:31 | 2017-10-10T19:56:31 | 105,473,446 | 0 | 0 | null | 2017-10-01T20:49:44 | 2017-10-01T20:49:43 | null | UTF-8 | Python | false | false | 1,777 | py | #!/usr/bin/env python
import rospy
import tf
import cv2
import time
from styx_msgs.msg import TrafficLightArray, TrafficLight
from std_msgs.msg import Header
from geometry_msgs.msg import PoseStamped, Quaternion, TwistStamped
import numpy as np
import rospkg
import math
class TLPublisher(object):
def __init__(sel... | [
"sebastian.nietardt@googlemail.com"
] | sebastian.nietardt@googlemail.com |
ac33c346ad83106d32dfc516843c5835c52734e9 | 3ed70536d4d06b2ac43b64976ddc43a5d7025b31 | /uri1091.py | 4cb102241664ec3f00f7c77717e8df84b2c4c8f9 | [] | no_license | LuisHenrique01/Questoes_URI | 7f1d397e3cd055349939184603eb86cb4bf43d65 | 35c8e77eb7cd9da96df4268b5d71f3ad87446c89 | refs/heads/master | 2020-07-22T08:12:12.700484 | 2020-04-12T17:39:29 | 2020-04-12T17:39:29 | 207,126,339 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | def main():
while True:
rep = int(input())
if rep == 0: break
div_x, div_y = list(map(int, input().split()))
for _ in range(rep):
ponto_x, ponto_y = list(map(int, input().split()))
if ponto_x == div_x or ponto_y == div_y:
print('divisa')
... | [
"luizbueno1201@gmail.com"
] | luizbueno1201@gmail.com |
76bb7ef6f7c01dc420ea9e55a37a40caa24021e6 | e06a3edbee8b0a5dfb26c3212b14fcce2fdca75b | /coding_templates_and_data_files/machine_learning/6. dimensionality_reduction/1. principal_component_analysis.py | ae99f07995e6c7f9727accef8db01746ef773088 | [] | no_license | tokenflow/Machine-Learning-101 | 8a1f41b37df0d0b5ca96773ec0e17f60292b022e | 89b98b9c4709d8c53d9b749d6d341b062df4a192 | refs/heads/master | 2020-03-27T05:27:27.793688 | 2018-08-29T15:13:32 | 2018-08-29T15:13:32 | 146,021,041 | 2 | 0 | null | 2018-08-24T17:29:57 | 2018-08-24T17:29:57 | null | UTF-8 | Python | false | false | 2,928 | py | # Principal Component Analysis
# Import libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('wine.csv')
X = dataset.iloc[:, :13].values
y = dataset.iloc[:, -1].values
# Spliting the dataset into the Training set & Test set
from sklearn.model_... | [
"rpartridge101@yahoo.co.uk"
] | rpartridge101@yahoo.co.uk |
acec6ef9375f55783a801f351a99bb2dc0a52676 | c730f09a8d96e1ec84c2cabbc33e6489befae09a | /tutorial/polls/views.py | f569cc5da38c04ec14e942b4e9814ff763fc96d3 | [] | no_license | sosodoit/django | 669a4b8abb27d1b4d062ac8063891dee3666108f | f0cdee32dd069b7c0ac7c417ac55aa4f063bdb1f | refs/heads/master | 2023-06-01T01:26:13.786788 | 2021-06-30T08:28:39 | 2021-06-30T08:28:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | from polls.models import Question
from .forms import QuestionForm
from django.http import HttpResponse, JsonResponse
from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
def index(request):
question_list = \
Question.objects.order_by('-pub_date')
return render(... | [
"sohuig@naver.com"
] | sohuig@naver.com |
a71c39e3394fc5cc6525d2128a4f4548fe0a677b | 042bd40e554ac7fcd618c334ae98b4f43248a250 | /interfaces/python/lib/ocean_dummy.py | 41ebdac07d314bb378d87fb2fc951791b1c79acd | [
"Apache-2.0"
] | permissive | kant/ocean-tensor-package | 8a62df968335de2057ff095f0910e5ad5fcff8e1 | fb3fcff8bba7f4ef6cd8b8d02f0e1be1258da02d | refs/heads/master | 2020-03-29T04:01:22.064480 | 2018-09-19T19:17:19 | 2018-09-19T19:17:19 | 149,511,923 | 0 | 0 | Apache-2.0 | 2018-09-19T21:03:14 | 2018-09-19T21:03:14 | null | UTF-8 | Python | false | false | 925 | py | # -------------------------------------------------------------------------
# Copyright 2018, IBM Corp.
#
# 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/L... | [
"evandenberg@us.ibm.com"
] | evandenberg@us.ibm.com |
7b379dbb43b66e2e49d8e764f6b4e5a1c4752c87 | c14e3c9760b2c1a4f8aff459461913e78912811d | /workflow/src/gene_profile.py | 8ec1381494dc6e75a93c384f3ff06b88310c3ba9 | [] | no_license | tianyabeef/metagenome | 65f022b4a1b170338fdd9a820ba00dce669a697a | bc7d73527d0f6ba11faec38766b014ed4942b3d8 | refs/heads/master | 2020-04-04T04:03:30.423154 | 2016-12-08T03:48:19 | 2016-12-08T03:48:19 | 51,899,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,734 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
__author__ = "huangy"
__copyright__ = "Copyright 2016, The metagenome Project"
__version__ = "1.0.0-dev"
import os
import re
from ConfigParser import ConfigParser
from workflow.util.useful import mkdir
def gene_profile(config,sh_default_file,outpath,name):
commands ... | [
"410378266@qq.com"
] | 410378266@qq.com |
82dea43dea06c6bdb53b570bc5ff8fb63e66a0bc | d9f981d50d5476226ceffb9a4f75498ed3fd6127 | /winequality/main.py | 893ccfc9c451c39d03cc23efa0d4c65bce4e0224 | [] | no_license | bwriteLeaf/guochushiyan | 509df750338ac988c8d050c790e273e02eb365f6 | af9b3fd48874fcc18ea964c90d8a8994137a9523 | refs/heads/master | 2021-04-15T08:57:52.308169 | 2018-04-04T07:54:43 | 2018-04-04T07:54:43 | 126,176,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,644 | py | # -*- coding: utf-8 -*-
import importlib,sys
import os
import time
from sklearn import metrics
import numpy as np
import pickle as pickle
import time
import matplotlib.pyplot as plt
import numpy as np
from sklearn.datasets import fetch_mldata
from sklearn.linear_model import LogisticRegression
from sklearn.model_se... | [
"sara_sara_ok@163.com"
] | sara_sara_ok@163.com |
73f1e58dd9fbcaf1a877626b83d1a46362b545e9 | ced35fa4a418173e0fc2ba1b183a4e5cb438dc6e | /search/views.py | 6949be1c62921beb12bb84ac2d1bca5336e3549f | [] | no_license | Code-Institute-Submissions/the_appleshop | d8c8bb051112236d3060baed70a52e13ec0f30e4 | 72ee732e99033ef53b54c2cc8281a7f3d1ad9b5a | refs/heads/master | 2022-11-14T08:26:19.501103 | 2020-06-30T16:32:57 | 2020-06-30T16:32:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from django.shortcuts import render
from products.models import Product
from reviews.models import Review
def product_search(request):
searchterm = request.GET.get('q', "")
products = Product.objects.filter(name__icontains=searchterm)
return render(request, 'products.html', {'products': products,
... | [
"greenion@gmx.de"
] | greenion@gmx.de |
f768ba6d7d5ec4c7ff3607da8f5e4e0bacf8bf8c | 49a9f1020b0d8caf32d1c0bc2b5ebd46596e4722 | /learning_users/basic_app/forms.py | d352b4d6bbb9b44f057cad1de33b6740fe6673ba | [] | no_license | ahtrahdis7/Django-learning | 05e126fb822b2fe9770fc31246ad4fe939e15edf | d36dc1b78c50f2eb77c58ae806e0c8db57033937 | refs/heads/master | 2020-12-30T05:23:04.798006 | 2020-05-06T08:57:05 | 2020-05-06T08:57:05 | 238,874,799 | 0 | 0 | null | 2020-07-21T04:36:24 | 2020-02-07T08:20:08 | Python | UTF-8 | Python | false | false | 446 | py | from django import forms
from django.contrib.auth.models import User
from basic_app.models import UserProfileInfo
class UserForm(forms.ModelForm):
password = forms.CharField(widget=forms.PasswordInput())
class Meta():
model = User
fields = ('username','email', 'password')
class UserProfileIn... | [
"b118055@iiit-bh.ac.in"
] | b118055@iiit-bh.ac.in |
ec288c5a2098fa65eae98cc0c0d11a54389af0ba | 7b17e4a57df288fe5f3e7e81604eecacfd8ae3d1 | /posts/migrations/0001_initial.py | 5391fa2820d20c731a683eb38ed05bc46583cd83 | [] | no_license | samuelwongsy/forum | 16f7468a4832cf41290cf22adcde61985d0bdc4e | 9ac5e4b98c79b8df932dc804daeaffbbb0db3684 | refs/heads/master | 2022-11-17T17:01:03.127965 | 2020-07-13T15:15:00 | 2020-07-13T15:15:00 | 279,334,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | # Generated by Django 3.0.7 on 2020-07-12 13:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('grou... | [
"samuel@Samuels-MacBook-Pro.local"
] | samuel@Samuels-MacBook-Pro.local |
819b14de815119bce4a84a6fc1273bded53e6043 | 908b0e5b8a9dd8609d8196fdf4d8a16f74040a89 | /projectEuler/p41.py | 675cefa4699fffa071f068527bfc6cbdc7c8a341 | [] | no_license | poojithumeshrao/projectEuler | 5b689de03295558a6c67b249a4ac1336f2507a21 | c5ae6c985bb9199c72812e785aa02e5e3c238ad6 | refs/heads/master | 2022-02-22T13:58:17.849262 | 2022-02-08T10:06:37 | 2022-02-08T10:06:37 | 98,327,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | import pdb
def pan(a):
aa = list(str(a))
if '0' in aa:
return False
c = len(aa)
d = len(set(aa))
if c == d and int(max(aa)) == c:
return True
else:
return False
def isPrime(n) :
# Corner cases
if (n <= 1) :
return False
if (n <= 3) :
return True
# This is ... | [
"noreply@github.com"
] | noreply@github.com |
4b0e7d05d72b190fc3957af9c61e79e11a21b644 | abccdbf9b0849b47960c3c352870793405debfed | /0x07-python-test_driven_development/4-print_square.py | fab6205b3d5afa34eec331a57f3ea50045fc96f1 | [] | no_license | hunterxx0/holbertonschool-higher_level_programming | 88b1b0f31b536c6940f2e64a6924a06ba9cbf193 | 44064cf0722cd20d93f58b64ab185d2898770d73 | refs/heads/master | 2022-12-20T12:14:15.877147 | 2020-09-24T21:25:54 | 2020-09-24T21:25:54 | 259,276,369 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!/usr/bin/python3
"""
a square printing function: print_square()::
>>> def print_square(1):
#
"""
def print_square(size):
"""
Prints a square of size 'size'
"""
if type(size) is not int:
raise TypeError('size must be an integer')
elif size < 0:
raise ValueError('size must be >= 0'... | [
"azouzimhamed@gmail.com"
] | azouzimhamed@gmail.com |
0db5b3deb80041a74fe00a76329d36249f0746ad | 42dd79c614b775e6e8e782ea7ab332aef44251b9 | /extra_apps/xadmin/views/website.py | 02012eff0b7d66b2d7a36ed53d7a74ac75de61ae | [] | no_license | Annihilater/imooc | 114575638f251a0050a0240d5a25fc69ef07d9ea | 547046cff32ce413b0a4e21714cb9ab9ce19bc49 | refs/heads/master | 2020-05-03T09:06:18.247371 | 2019-12-04T09:24:55 | 2019-12-04T09:24:55 | 178,545,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | from __future__ import absolute_import
from django.utils.translation import ugettext as _
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.views.decorators.cache import never_cache
from django.contrib.auth.views import LoginView as login
from django.contrib.auth.views import LogoutView as logout
from dja... | [
"yanmiexingkong@gmail.com"
] | yanmiexingkong@gmail.com |
4a1ea777a47726aed9d68c694b7608ad81f07ccc | 148047ed643891aec025d895ae462bdf066a822d | /Practica 3 - Matplotlib y Scipy/Operaciones numericas/3.py | f9095d5ba6383dd12b6c90f613719bff36a87dee | [] | no_license | santiperone/CursoPythonDSP | b87cde697e58308c3376b1b14aa6062fe9859160 | ecf3094d0a618200ac87f2ea98d539460dbcf4d4 | refs/heads/master | 2022-12-01T02:43:34.588808 | 2020-08-13T04:02:58 | 2020-08-13T04:02:58 | 287,173,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 4 11:55:40 2020
@author: santi
"""
import numpy as np
import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
y = [9.53647, 151.323, 2223.38, 16441.1, 78212.4,
280053, 823687, 2.09733e+06, 4.78319e+06,
1.00003e+07]
menor_error = 1000
for i in range(1,50):
... | [
"sdperone97@gmail.com"
] | sdperone97@gmail.com |
a8c4360159626be4980ee48d7a6491db264ceafc | 162e2588156cb2c0039c926c5c442363d9f77b00 | /tests/integration_tests/data_steward/analytics/cdr_ops/report_runner_test.py | c00229bcb0b01b9d9828c4aa35f5c20ef5eb9760 | [
"MIT"
] | permissive | nishanthpp93/curation | 38be687240b52decc25ffb7b655f25e9faa40e47 | ac9f38b2f4580ae806121dd929293159132c7d2a | refs/heads/develop | 2022-08-08T20:33:53.125216 | 2021-12-03T21:38:48 | 2021-12-03T21:38:48 | 155,608,471 | 1 | 0 | MIT | 2020-10-09T01:14:39 | 2018-10-31T18:54:34 | Python | UTF-8 | Python | false | false | 3,081 | py | import os
import unittest
from tempfile import NamedTemporaryFile
from pathlib import PurePath
from bs4 import BeautifulSoup as bs
from analytics.cdr_ops.report_runner import IPYNB_SUFFIX, HTML_SUFFIX, main
TEST_NOTEBOOK = """
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# fo... | [
"noreply@github.com"
] | noreply@github.com |
c3ae3404fc4a1db0ceb96d6442dd4d9e6ffa2731 | 1e2f0c7e72d74fab23e5718de6afcfb9883091b1 | /KAproject/forms.py | 4e10762b072f9d71f13e0b2ebddcab594a2b86db | [] | no_license | nizovtsov/KAproject-InWorkPage | 9ab990aa0759b5d5d3a13931ffa0c9dc4511cd71 | 49c594bebcbe586f0e26387797590dfcdc2accc7 | refs/heads/master | 2021-09-14T22:28:03.756872 | 2018-05-21T10:31:42 | 2018-05-21T10:31:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from django import forms
class ContactForm(forms.Form):
email = forms.EmailField()
| [
"war11ok@mail.ru"
] | war11ok@mail.ru |
17460a786f7a8b1672a87c662fbcf64ff1def6e0 | 91a1ca6fbabfd5846b76548ebd627adcdc907f0b | /gene_hints/citations/citations.py | d301f00660839ce55934a88fceea6a61e0a5ab9e | [
"BSD-3-Clause"
] | permissive | broadinstitute/gene-hints | 72600e470ded0ce06a4f198eb47f505901554952 | 026ebe3f144bc2b54e0db67041de2e35969a8a3b | refs/heads/main | 2023-04-18T01:57:10.984574 | 2021-12-01T01:01:29 | 2021-12-01T01:01:29 | 314,423,954 | 9 | 0 | BSD-3-Clause | 2021-12-01T01:01:30 | 2020-11-20T02:22:52 | Python | UTF-8 | Python | false | false | 8,390 | py | """Output TSV of gene citation counts over time, and associated metrics
This module downloads citation and genomic data from PubMed and other
bioinformatics databases, combines that data, computes statistics, and writes
it to organism-specific TSV files. The output gene citation hints files
are combined with gene vie... | [
"eweitz@broadinstitute.org"
] | eweitz@broadinstitute.org |
9d8b95b11ae0c4f34881e9d745ce9a40a7186e74 | 3497854f30c6dba6126d4456af4a5f86dbae144b | /testtakeMoney.py | 34a335b76a62ba07b27e49946aa6024ced5ac9f0 | [] | no_license | HKRliduan/store | 3965d8b2785d8329a2485628d2b279f051e57e25 | 42622717ae8cd9d13a1d19e3314643133d532c2e | refs/heads/master | 2023-08-23T19:36:24.963717 | 2021-10-29T03:54:42 | 2021-10-29T03:54:42 | 405,851,500 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | from ddt import ddt
from ddt import data
from ddt import unpack
from unittest import TestCase
from Bank import bank_takeMoney
da=[
[123456780,123456,1000,1],
[123456789,654321,1000,2],
[123456789,123456,-1,3],
[123456789,123456,0,0],
[123456789,123456,1,0],
[123456789,123456,4999,0]... | [
"noreply@github.com"
] | noreply@github.com |
e6909e12c554550d60bdfede5c39f7070b75de43 | c0dd1a4ffe1b515e5b9630691d685eff0b82c837 | /chino (3)6.py | 78183fd85b01e555e5edc6f9a903811d9cf932cc | [] | no_license | WATANA-be/mojisaiten | 7e6231586d770431c30f6cff45b63055093899b5 | fc02b3add7dc0887b0a4eb99f1fbdfd12a1cfb99 | refs/heads/master | 2022-12-31T11:37:14.080095 | 2020-10-26T14:47:39 | 2020-10-26T14:47:39 | 287,859,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | import tkinter as tk
import tkinter.filedialog as fd
import PIL.Image
import PIL.ImageTk
import random
# 機械学習で使うモジュール
import sklearn.datasets
import sklearn.svm
import numpy
lbl = tk.Label(text='点数をここに表示します。')
# 画像ファイルを数値リストに変換
def imageToData(filename):
#画像を8x8のグレースケールに変換
grayImage = PIL.Ima... | [
"noreply@github.com"
] | noreply@github.com |
45d38a28de6ab489b77524b1a769aaa6209882ac | 06775c1881d6c687d89fdf3dddecab961aa54f3a | /Kmodel/K_model_RC.py | c031556763ece844e51eb0923849ded80ee7d679 | [] | no_license | Siddharth3-14/Dynamical-Modelling-of-NGC-6503 | 53bb19bdaea7c7d0ed28568b3ee7be3eb45995ce | a817dcb3087851e5c393d87bc06ca397ee3c34c1 | refs/heads/master | 2022-11-06T16:47:39.275088 | 2020-06-16T07:22:49 | 2020-06-16T07:22:49 | 272,639,377 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,403 | py | import pymc3 as pm
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import theano
import theano.tensor as tt
I_0_bulge = 2010.018
I_0_disk = 1907.2165
def simpsons_integration(a,b,N,func):
h = (b-a)/N
Xl0 = func(a) + func(b)
Xl1 = 0 #summation of odd terms
Xl2 = 0 #summation of... | [
"sidd.ansh@gmail.com"
] | sidd.ansh@gmail.com |
44d7e761023d0c59d49f8e7dc69628d734013c37 | 7aa1857c48a0059a5abab8b69e0aed4bf3288dd3 | /apicalls/admin.py | 224c514c76189e31a0e81821b8fa2611040f75dd | [] | no_license | SushekT/api-intern-younginnovation | 3fd44d4fe2950d9fbf5a71cee479e0ecbf73e22f | f0ae8514befbf6b670e3315355adbc8c029870b5 | refs/heads/master | 2023-04-17T23:17:12.576471 | 2021-05-09T04:26:01 | 2021-05-09T04:26:01 | 365,662,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Year)
admin.site.register(Petroleum)
admin.site.register(Country)
admin.site.register(Main)
admin.site.register(AverageSale)
admin.site.register(TwoYearInterval)
admin.site.register(Leastyear) | [
"sushek@pandamotions.com"
] | sushek@pandamotions.com |
592f65c3845cec1b556e21772988fe41c2d61145 | aca2258cf58e0d2c7e4939e73bcb82b6c135282c | /libs/Mailman/mailman/commands/tests/test_membership.py | 6cf4802c6c8546a83b4d135e007b28482e0492be | [] | no_license | masomel/py-import-analysis | cfe6749a1d7430b179559b9e0911b8c8df507be7 | 7edf8148e34b9f73ca6433ceb43a1770f4fa32c1 | refs/heads/master | 2021-03-16T10:00:24.205301 | 2019-08-01T20:32:34 | 2019-08-01T20:32:34 | 112,668,748 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | # Copyright (C) 2016-2017 by the Free Software Foundation, Inc.
#
# This file is part of GNU Mailman.
#
# GNU Mailman is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at you... | [
"msmelara@gmail.com"
] | msmelara@gmail.com |
c6654c8ede1e9d92c945f377a946208b70fb1d3d | 51070872634750df2c0ce583c08c7bcf8860dec7 | /2017/ewkzgjjModule.py | 3cab202334913bbf10203440c42a59f55b1658dd | [] | no_license | AndrewLevin/ZGamma | 93eecc17c1d40ce662dcb321f5b0fb21998c4d16 | c70380c4b38505421ba1673d09b0692176d18f31 | refs/heads/master | 2021-04-15T04:11:18.479840 | 2019-07-20T13:42:08 | 2019-07-20T13:42:08 | 126,224,421 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,033 | py | import ROOT
ROOT.PyConfig.IgnoreCommandLineOptions = True
from PhysicsTools.NanoAODTools.postprocessing.framework.datamodel import Collection
from PhysicsTools.NanoAODTools.postprocessing.framework.eventloop import Module
from PhysicsTools.NanoAODTools.postprocessing.tools import deltaR
from PhysicsTools.NanoAODToo... | [
"amlevin@cern.ch"
] | amlevin@cern.ch |
8355f29de4f46b28b142c9e461c978618c11156f | fbf97497019a2cf2d5a0d5f60dd7e4a81f1d8bd0 | /backend/customauth/migrations/0007_auto_20190530_1156.py | 21e655a3fdbb02aa7ebc858da51e3b44b71cee14 | [] | no_license | totop716/ugg | 3f1bc60f4476fd98de369f7ae722ae2b52dec560 | 56ebf281b5950918ef8e85102335f52b0c76fecb | refs/heads/master | 2022-12-10T14:19:35.885870 | 2020-03-23T11:26:29 | 2020-03-23T11:26:29 | 249,412,202 | 0 | 0 | null | 2022-12-08T03:53:19 | 2020-03-23T11:28:17 | CSS | UTF-8 | Python | false | false | 486 | py | # Generated by Django 2.1.7 on 2019-05-30 11:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('customauth', '0006_auto_20190530_1153'),
]
operations = [
migrations.RenameField(
model_name='myuser',
old_name='po_box',
... | [
"totop716@gmail.com"
] | totop716@gmail.com |
948a1c43794b17ea0bc5ea2626374c0b268aca32 | ebaed06f16af7a6bef21495287acebb5af76e3aa | /web-crawling/delight_crawler.py | 125fcc9cc4c2f7dfa097e0eb8bab194ba2e4aa98 | [] | no_license | cherry979988/info-diff | 50a4245720283c6d8057cdb096befb8b1c2d3154 | de3f51187aab235a58512172f7134984bd68fcd1 | refs/heads/master | 2020-05-24T21:24:16.148099 | 2019-08-02T18:55:56 | 2019-08-02T18:55:56 | 187,473,982 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 19 15:16:38 2018
@author: xzzz
"""
import requests
import time
import xlwt
import re
from bs4 import BeautifulSoup
import gc
import read_bid
book_wr = xlwt.Workbook(encoding='utf-8', style_compression=0)
sheet = book_wr.add_sheet('test',cell_overwrite_ok=True)
row = 0
c... | [
"yeqy15@mails.tsinghua.edu.cn"
] | yeqy15@mails.tsinghua.edu.cn |
845f54b066f9fb8c81d3520f9e1664a0ffc92505 | 364d173ccc8f916b54e2a0adf98ed5d46446a100 | /Flatbuffer/canv_flt/sequence_details.py | e7f8639a375f21f482eb9b1584fa8e7236b807f9 | [] | no_license | tanveer941/miscellaneous_supporting_app | 117e73357f4ca11e2e7cf95621daebab162bf33e | 25c79341573860abf97a803f3e28395159898314 | refs/heads/master | 2020-03-27T12:23:54.290534 | 2019-09-11T04:21:39 | 2019-09-11T04:21:39 | 146,544,214 | 0 | 0 | null | 2019-10-29T21:26:35 | 2018-08-29T04:17:45 | Jupyter Notebook | UTF-8 | Python | false | false | 1,374 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace:
import flatbuffers
class sequence_details(object):
__slots__ = ['_tab']
@classmethod
def GetRootAssequence_details(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x =... | [
"mohammed.tanveer@continental-corporation.com"
] | mohammed.tanveer@continental-corporation.com |
a4ca9efbd49fe56401b0c9f2e47ed03de5d2e30e | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-3865.py | b81595c3efd5b844c317e6d5fbd8ebfbb6201a00 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,291 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
ed9a687c9e312704b2f96bd948983e7c9446acf6 | 73252cbe7b5e636a9b02c981af8489205a48052e | /polls/urls.py | 7304f2dc9325c18cbb8ca7976aab796a467d6338 | [] | no_license | siddharthisaiah/pollsapi | 6328168cd62f69408924f1a4377f6e69d56fa94b | f778d40e31909431cbfa02c1bbde5df7b529c433 | refs/heads/master | 2021-06-29T23:03:48.207782 | 2020-02-11T20:30:16 | 2020-02-11T20:30:16 | 238,857,342 | 0 | 0 | null | 2021-06-10T22:34:00 | 2020-02-07T06:21:46 | Python | UTF-8 | Python | false | false | 855 | py | from django.urls import path
from rest_framework.routers import DefaultRouter
from rest_framework.authtoken import views
from .views import polls_list, polls_detail
from .apiviews import ChoiceList, CreateVote #, PollList, PollDetail
from .apiviews import PollViewSet, UserCreate, LoginView
router = DefaultRouter()
ro... | [
"siddharthisaiah@gmail.com"
] | siddharthisaiah@gmail.com |
8c756bd265bcaa35b4e1bd739faefabb429ca07b | 8371e46c6e96aea5da8bed8b0dcd34a57b144fb1 | /Python/lab10-unitconvert23.py | 981fdce8b1fa323fba0165c38258bf2eaea79fd8 | [] | no_license | PDXChloe/PDXcodeguild | 4bfcd31072bfd17cb7959f71adfd867ff9e5d9ac | 23ca3dc245bf51be932790d03e3333d89c462180 | refs/heads/master | 2021-08-24T08:13:36.027155 | 2017-12-08T20:30:14 | 2017-12-08T20:30:14 | 105,682,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | #Version 2 + 3
print("") #I just need whitespace
print("")
meter_dic = {"ft":0.3048, "mi":1609.34, "m":1, "km":1000, "yd":0.9144, "in":0.0254} #made a dictionary with key:value pairs of "units to convert":amount in meters
distance = input("What is the distance? \n")
final_unit = input("What are the units (ft, mi,... | [
"chloe_elliott@me.com"
] | chloe_elliott@me.com |
f6b360d0925b08bb26d5b5b7ca588703ea9ab596 | 73de523bde0c9e8398c63a924b44aadc46d11202 | /test/test_worm_properties.py | ffd5d7b3cfcfae272dabbafe279dda6ef75a2c62 | [
"MIT"
] | permissive | Feyd-Aran/isilon_sdk_python | 1c2fae306c1a95a99024dd13dc0fc3b120f9c1de | 24e85a5577d15ac3db06862d07d5a261658c67b7 | refs/heads/v8.0.0 | 2020-09-23T00:16:36.684270 | 2019-12-02T13:45:12 | 2019-12-02T13:45:12 | 225,351,700 | 0 | 0 | MIT | 2019-12-02T10:51:54 | 2019-12-02T10:51:53 | null | UTF-8 | Python | false | false | 886 | py | # coding: utf-8
"""
Isilon SDK
Isilon SDK - Language bindings for the OneFS API # noqa: E501
OpenAPI spec version: 3
Contact: sdk@isilon.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import isi_sdk_8_0
from isi... | [
"Brandon.Krueger@isilon.com"
] | Brandon.Krueger@isilon.com |
d4b409d45e6630900d2c234c83fa37e1dee5197d | de1a4823b44484a16e84229ef6d4c2218cebc240 | /miscellanous_code.py | 3a8a3e2cce20abc23d1198a336fee7524f3a433f | [
"Apache-2.0"
] | permissive | jaehobang/Eva | b5baca7f91e3c6c6d439573430485afdfa3c05e8 | e7f649990b8bca3bc29b3832c0ecf32efb402647 | refs/heads/master | 2020-07-11T13:05:42.284943 | 2020-04-14T21:17:38 | 2020-04-14T21:17:38 | 204,546,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py |
#### draw multiple figures with plt #####
import numpy as np
import matplotlib.pyplot as plt
w=10
h=10
size = 20
fig=plt.figure(figsize=(size, size))
columns = 4
rows = 5
for i in range(1, columns*rows +1):
img = np.random.randint(10, size=(h,w))
fig.add_subplot(rows, columns, i)
plt.imshow(img)
plt.show... | [
"jaehob@andrew.cmu.edu"
] | jaehob@andrew.cmu.edu |
3e9cadeb3061c9ecf3ad2073260050420e43eb21 | a8e435a42361d1ea69f97fd0b77271d94e840e7f | /buildoutbuilder.managers/buildoutbuilder/managers/errors.py | c745f48a66e5ad60da0ffab00bba8ef202f2cc2f | [] | no_license | xkenneth/buildoutbuilder | 2aab4930ef7d0b297470f52ca4e51369e9987088 | 0c4195f7996e7be8e3edf1ee38863df6caf6aed0 | refs/heads/master | 2016-09-06T21:29:30.630016 | 2008-08-19T08:31:19 | 2008-08-19T08:31:19 | 26,232 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | class BuildoutBuilderException(Exception):
def __init__(self, value):
self.message = self.__doc__
self.parameter = value
def __str__(self):
return repr(self.message)+repr(self.parameter)
class PartIsNotRecipe(BuildoutBuilderException):
"""Part does not have a recipe."""
class Missi... | [
"xkenneth@gmail.com"
] | xkenneth@gmail.com |
0f23d8577d052f85a57c7570956f039776aea0c6 | 551dbe47bdeaee1a04c2e4757f7212e73f64790d | /costproject/costproject/settings.py | b3ce07ebc36e4cf9f1dc07049c4da64c5bd8ba12 | [] | no_license | ushanthaster/costproject | 896acd96d85a30c1ed8829382a828f5c22f23d68 | 30ae89cbd432b0debc905c033ff2296e773d752a | refs/heads/master | 2021-01-11T14:01:57.122610 | 2017-06-20T20:51:31 | 2017-06-20T20:51:31 | 94,934,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,683 | py | """
Django settings for costproject project.
Generated by 'django-admin startproject' using Django 1.8.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build ... | [
"evanhowell@consultant.com"
] | evanhowell@consultant.com |
9ea146ac2a09a9f0a3a98d4b6e5b4c9b4bb1bbf7 | c0534d3104b97572fd8d74c3e6becbf1699b9954 | /Arrays Left Rotation.py | 9f45eb4f5a040cc7cc134ddebbc0368cce2f3fd3 | [] | no_license | VipinJain1/VIP-Algorithms-in-Python | a948ac422dcc5f7b33d598f4a19af77bee320a34 | 03b4734aa847f9cc25fa5b3f2393fdee18c6ac81 | refs/heads/master | 2020-05-30T07:00:43.402065 | 2019-06-19T00:52:16 | 2019-06-19T00:52:16 | 189,591,268 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | '''
A left rotation operation on an array shifts each of the array's elements unit to the left. For example, if left rotations are performed on array , then the array would become .
Given an array of integers and a number, , perform left rotations on the array. Return the updated array to be printed as a single l... | [
"vipjain@gmail.com"
] | vipjain@gmail.com |
5d0da2fb05da5122abf58245cb1e127d006acbc0 | 4e0e96aa663683642bf1b6dd19885a245c5d4129 | /flowcharts/migrations/0008_auto_20191213_2017.py | c1007c055a7255f7a5a274c89055b4b26adf3aa9 | [] | no_license | atleastzero/XYearDjango | fe12707f0cd4d8c272452cc2b004360e3554645d | 5d25ed268fd6fdba49f7fe8ac0ba08031876e235 | refs/heads/master | 2021-09-24T19:13:56.990118 | 2019-12-14T03:52:11 | 2019-12-14T03:52:11 | 222,778,871 | 0 | 0 | null | 2021-09-22T18:07:23 | 2019-11-19T20:00:53 | Python | UTF-8 | Python | false | false | 564 | py | # Generated by Django 3.0 on 2019-12-13 20:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('flowcharts', '0007_auto_20191213_0625'),
]
operations = [
migrations.AlterField(
model_name='term',
name='end_date',
... | [
"megan.obryan52@gmail.com"
] | megan.obryan52@gmail.com |
b150f199a4268e8ab72d5c9a9ce49b2d6abe73d4 | 698cb8d24879fe75669af6f2667c3f88660a0a1e | /deepModel/s11b_ALS_CONCAT.py | 29627c713b760a2dcfce82233dba73e25b24c24f | [] | no_license | HuichuanLI/Recommand-Algorithme | c83c5d34d75eebd127e2aef7abc8b7152fc54f96 | 302e14a3f7e5d72ded73b72a538596b6dc1233ff | refs/heads/master | 2023-05-11T03:01:30.940242 | 2023-04-30T08:03:19 | 2023-04-30T08:03:19 | 187,097,782 | 71 | 19 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | import numpy as np
from data_set import filepaths as fp
from torch.utils.data import DataLoader
from torch import nn
import torch.nn.functional as F
import torch
from sklearn.metrics import precision_score, recall_score, accuracy_score
from basic_sim import dataloader
class ALS_MLP(nn.Module):
def __in... | [
"lhc14124908@163.com"
] | lhc14124908@163.com |
0f9b4a02fec70df429500e3582e6a107c7546ee6 | 3a6199c490047fc444be8f94580655b10e6139aa | /deg_pln/deg_pln/planner/views.py | af66d8304f754117067d3e2444f4c26291e2cd71 | [
"MIT"
] | permissive | XheonNovus/DegreePlanner | cbcc13c3a48e1af8e7a5a323d91ccdb36d159553 | e8ea17d4a9811767264cded7930642a7b333088f | refs/heads/master | 2020-03-09T00:32:27.640137 | 2018-02-26T02:08:15 | 2018-02-26T02:08:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.template import loader
from django.urls import reverse
from .models import Class
from django.views import generic
# Create your views here.
class IndexView(generic.ListView):
temp... | [
"parshad.anil@gmail.com"
] | parshad.anil@gmail.com |
8e0dea7c0f27c1eca36d8902f9f557d058dadf2f | 5cad23c80ce4e22603a14d21eac48fa76517595c | /pickle2csv.py | 3ae65a5e781efef6d6b38547d12bfa3412421a3d | [] | no_license | cramraj8/adrc-clustering | 4f8e63b62be4bbe986679894487d89423fb26a05 | d033452b9cadd40833e49c297077244383239370 | refs/heads/master | 2021-06-13T11:13:14.003846 | 2017-04-06T17:36:46 | 2017-04-06T17:36:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | import csv
import pickle
import json
data = pickle.load(open("WordFluencyMultiTest.pickle", "rb"))
with open("WordFluencyMultiTest.csv", "w") as fh:
w = csv.writer(fh, delimiter='\t')
w.writerow(data[0].keys())
for record in data:
w.writerow(record.values())
| [
"mohammed@c-ac-19-162.wireless.emory.edu"
] | mohammed@c-ac-19-162.wireless.emory.edu |
463cdc82d5cd7cd1180bc5eaf2219bb87377ff45 | c9ad6ad969de505b3c8471c6f46dfd782a0fb498 | /0x07-python-test_driven_development/2-matrix_divided.py | e9a56cfcebadaa9b6d3ac60f351c118538368d68 | [] | no_license | enterpreneur369/holbertonschool-higher_level_programming | 002fd5a19b40c8b1db06b34c4344e307f24c17ac | dd7d3f14bf3bacb41e2116d732ced78998a4afcc | refs/heads/master | 2022-06-20T00:57:27.736122 | 2020-05-06T14:26:10 | 2020-05-06T14:26:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,261 | py | #!/usr/bin/python3
""" Module 2-matrix_mul
Module that contains the function matrix_mul
"""
def matrix_mul(m_a, m_b):
""" Returns a product matrix
Arguments:
m_a (list:int, list:float): First matrix
m_b (list:int, list:float): Second matrix
"""
res = []
row_err = "Each row of the... | [
"jose.calderon@holbertonschool.com"
] | jose.calderon@holbertonschool.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.