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
65db83dd6e22faf2d53cb9f01ba52bff4adfef6f
5e089154239b09a0d75745d4710d42de72876480
/app/main/views.py
089cb02dd28646b92158f47b6648eea771e12e2f
[]
no_license
hui-jz/Social_Blog
7cc84f45459131e784859d9d9db9f04790272461
8faa9769f7b497e092c1e696d1b5e7ff79c9931c
refs/heads/main
2023-01-10T07:18:47.836590
2020-11-09T03:16:04
2020-11-09T03:16:04
310,169,823
1
0
null
null
null
null
UTF-8
Python
false
false
1,109
py
from datetime import datetime from flask import render_template, session, redirect, url_for from . import main from .forms import NameForm from .. import db from ..models import User @main.route('/', methods=['GET', 'POST']) def index(): form = NameForm() if form.validate_on_submit(): # .....
[ "2223136131@qq.com" ]
2223136131@qq.com
9bc8312a278238aacd0923da6d1080c78d3f5ca8
ca06d322433e734ab0239d6766f4e502afc310e3
/tests/unit/test_fp16.py
0c0ef3edd3a85533bd4281b47d568a807b0d803f
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
AnandEmbold/DeepSpeed
5b125f91aa8166b6433e6972b1df203083754c5f
9ff8a1278088564199103820553e0e034e5e68b0
refs/heads/master
2023-07-15T09:32:33.192470
2021-08-17T05:54:07
2021-08-17T05:54:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
30,415
py
import torch import deepspeed import argparse import pytest import json import os from deepspeed.ops.adam import FusedAdam from common import distributed_test from simple_model import SimpleModel, SimpleOptimizer, random_dataloader, args_from_dict, create_deepspeed_args from deepspeed.ops.op_builder import CPUAdamBuild...
[ "noreply@github.com" ]
noreply@github.com
b5962536fc3196f30074e0c239782e8e6a4f6112
906e90e9d7fa7970ed74358ab5f1a9284341520f
/framework/View.py
860bec3db1db6de80d78ef54f5a6f1da12adfc59
[]
no_license
gprolog/uniwallet
1b02a250a34e36ca4a793b48ed14c3d04ddbc4d1
020bd669344ecc305d95f7d7d31fad81ca032adc
refs/heads/master
2020-03-10T03:56:25.979909
2017-07-02T17:18:15
2017-07-02T17:18:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
from framework.Core import Core class View(Core): def __init__(self, request): super().__init__(request) def get_html(self, html_file_name): """ get_html(): It reads and returns the content of some html file placed on modules/{current_module}/html """ return self.get_file("html/{}.html".format(html_file_...
[ "gresendesa@gmail.com" ]
gresendesa@gmail.com
6a0da6b5363ec06cb44c9f1faeba31dcc126eba2
4d3c948e97a13f8db16a095752743ebd1f78514f
/Bipolar_Stepper_Motor_Class.py
b17e01b938d60289494f40c241f8e259046b6bcc
[]
no_license
gwydyon/Engraver
b891566888a508a0ec560a8b4ad7b5bed0548b8a
5ce4ca1f65776fc990556d20e2cc67255af1c277
refs/heads/master
2021-01-23T03:20:39.421166
2015-01-14T14:37:24
2015-01-14T14:37:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,765
py
import RPi.GPIO as GPIO import time #sequence for a1, b2, a2, b1 #phase_seq=[[1,1,0,0],[0,1,1,0],[0,0,1,1],[1,0,0,1]]; #full step sequence. maximum torque phase_seq=[[1,0,0,0],[1,1,0,0],[0,1,0,0],[0,1,1,0],[0,0,1,0],[0,0,1,1],[0,0,0,1],[1,0,0,1]] #half-step sequence. double resolution. But the torque of the ste...
[ "imantz1@lsu.edu" ]
imantz1@lsu.edu
4f3b17b0fee81e45c0772fff4e006c947578d44e
356021ab75d994e0f23561b027a9f6ed48218e3d
/hypothesis/nn/amortized_ratio_estimation/multi_layered_perceptron/likelihood_to_evidence.py
d202427880fc37abb4115a026e2a5d1df51aa71a
[ "BSD-3-Clause" ]
permissive
juryowl/hypothesis
e15ff63105aa4918cc5d68b9ac805999ed9b4902
29a2b7b4649db345d43a8d3bf98aa5d817b43f1b
refs/heads/master
2023-06-22T16:06:42.116124
2021-05-06T19:21:18
2021-05-06T19:21:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,480
py
import hypothesis import hypothesis.nn import torch from hypothesis.nn import MultiLayeredPerceptron from hypothesis.nn.amortized_ratio_estimation import BaseLikelihoodToEvidenceRatioEstimator from hypothesis.nn.neuromodulation import BaseNeuromodulatedModule from hypothesis.nn.neuromodulation import allocate_neuromod...
[ "noreply@github.com" ]
noreply@github.com
f9893af57d00443f5d09d48216b23de7f7b60a2e
930893b9f087a00a7200a3354bd0ec974b241e94
/app/datamanager.py
da05464b6641b1321586a3185df5299077dcd4ea
[]
no_license
radix07/m2m_obs
13819dafddeefbc898a49aae1400fd3576d45abe
5213d48272995ae253bd5e1c49e84a6640b7895b
refs/heads/master
2021-09-28T19:16:23.823757
2018-11-19T20:59:00
2018-11-19T20:59:00
17,032,087
0
0
null
null
null
null
UTF-8
Python
false
false
10,647
py
from app import db, models from models import User, ROLE_USER, ROLE_ADMIN from sqlalchemy import func import sqlalchemy import time #######################GET################################ ##Device def removeAllDevices(): print "Deleting All Devices" devices = models.device.query.all() for dev in devic...
[ "rsatterlee@precisiongovernors.com" ]
rsatterlee@precisiongovernors.com
e13f9f5b75ee68f118ff8dd164171ae5c45197a8
e06d6a38f835ff105eae9e55b60b08c6fea8b6dd
/rango/forms.py
c41604b0465ab1797018a5d3747f9041202a7c42
[]
no_license
DiegoCardoso/tango_django
0703759f5ce9b07c905d100315cd17e304ffa307
6218defa412688ecbd194cc1d99e6c6d7f54155e
refs/heads/master
2016-09-10T19:35:57.166637
2014-10-04T23:22:41
2014-10-04T23:22:41
24,800,147
1
0
null
null
null
null
UTF-8
Python
false
false
773
py
from django import forms from rango.models import Page, Category class CategoryForm(forms.ModelForm): name = forms.CharField(max_length=128, help_text='Please, enter the category name.') views = forms.IntegerField(widget=forms.HiddenInput(), initial=0) likes = forms.IntegerField(widget=forms.HiddenInput(), initia...
[ "diegopc86@gmail.com" ]
diegopc86@gmail.com
b7d144399c83854e3f8c36fc9d5d76812b6472ff
43713debb41a39c4bbe7f497d07fe83a7945cc93
/CalcCovWeight.py
33834d640a0c4bbe284d7f7d32354fd35a70d261
[]
no_license
ebonnassieux/Scripts
a94d045522a9f2dcd1978ddf933d8528a284def1
b46e86792ce9e58a02464734c109d3d253e7a954
refs/heads/master
2023-08-03T10:40:58.046773
2023-07-10T07:55:32
2023-07-10T07:55:32
81,810,071
3
0
null
2020-06-16T12:30:38
2017-02-13T09:56:15
Jupyter Notebook
UTF-8
Python
false
false
8,126
py
import os from pyrap.tables import table import numpy as np import pylab from numpy import ma import sys import warnings import time import math import argparse class CovWeights: def __init__(self,MSName,ntsol=1,SaveDataProducts=0,modelms=""): if MSName[-1]=="/": self.MSName=MSName[0:-1] ...
[ "etienne.bonnassieux@obspm.fr" ]
etienne.bonnassieux@obspm.fr
ccc2f49e98f08dbc682a1d406eb665062d64515c
5528aa52b90648b7e531a19ebd0fb798891803fe
/shop/migrations/0015_auto_20200202_1135.py
eb8c0e2cb5d2c52b51801cb023623298474e78d1
[]
no_license
UditTarini/Django-ShopperSpace
2f7b8fdb4d2130a155c00205c49bf4360525bd5e
fa4ceb9673a833dcc341207977eb2147f0f1586e
refs/heads/master
2022-12-11T17:20:30.756757
2020-12-30T14:17:19
2020-12-30T14:17:19
233,062,072
0
0
null
2022-12-08T06:23:02
2020-01-10T14:18:05
CSS
UTF-8
Python
false
false
390
py
# Generated by Django 3.0.2 on 2020-02-02 06:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0014_auto_20200202_1115'), ] operations = [ migrations.AlterField( model_name='product', name='productName',...
[ "udit.tarini937@gmail.com" ]
udit.tarini937@gmail.com
d4ae3524bd27211a73bfde9ce0cd40e6d625abb0
d5964fb10bdf774650776acd942d82e1cd56ded9
/20161222_Note - defining arguments, functions, and list operations.py
726365d13df23e368c23623d60a66c8351b57606
[]
no_license
maxmatical/Machine-Learning
93754ebd6677f45cafc089e3b2b631360ffe4f31
064d094d8f1957e54e502cccf96e2b572db5c747
refs/heads/master
2021-01-23T12:52:56.529621
2019-03-20T18:23:09
2019-03-20T18:23:09
93,205,751
0
0
null
null
null
null
UTF-8
Python
false
false
974
py
# defining a function ######################################## # def function(argument, argument): # blah blah blah # return # pass # note: don't have to enter type of argument # operations on elements in a list ####################################### list_1 = [1,2,3] # method 1: using for loops # for loo...
[ "noreply@github.com" ]
noreply@github.com
95c93e4de114c812fa4ee1372e95c482ec213dc7
9a580ab3f32441c431f5e4b2d2e8d33315b46ec3
/buzzer.py
40fe0a2ae8a51c2209a65e984163826672c81ca2
[]
no_license
Riwanlm/RASPBERRY_WEB
d2b4280c19f1e4b9dbfbad6550da033f57f8af24
7731f4407e07e134960c4fb5c4132c56cc0bd405
refs/heads/main
2023-01-09T09:05:11.838104
2020-11-11T20:01:29
2020-11-11T20:01:29
312,076,178
0
0
null
null
null
null
UTF-8
Python
false
false
1,692
py
#import des utilistaires python import RPi.GPIO as GPIO import time class Buzzer: def __init__(self, numGPIO): self.shouldCancel = False # constructeur pour instancier notre objet Buzzer # création d'une variable d'instance "Numéro de GPIO" self.numGPIO = numGPIO # On dit au...
[ "riwanlm@gmail.com" ]
riwanlm@gmail.com
1f7510b21885d46305972e2d02ebab34663ae54a
22e2accb0543a7119754bb24df0a449c760903b1
/corToCity.py
a549e676d5079a576cd1735c049a8b6050069c5a
[]
no_license
aalexx-S/LBTAS-2018
f2852c2edb165e1207479f4bc6f1869050a6aba4
b819873383592e60f5d5615a5bc75d82748ac4d0
refs/heads/master
2020-04-05T19:45:56.632617
2018-12-31T02:30:03
2018-12-31T02:30:03
157,149,367
0
0
null
null
null
null
UTF-8
Python
false
false
1,110
py
import copy import fiona from shapely.geometry import shape, Point from pyproj import Proj, transform config = None def cor_to_city(all_queries): # read shapefile ad_area_shp = fiona.open(config.shppath + '/' + config.shpname + '.shp', encoding='utf-8') shapes = {} attr = {} for area in ad_area_sh...
[ "alex530519@gmail.com" ]
alex530519@gmail.com
deb56472c890832c3e7ee3dae8b4a62f9590c3d3
74863206d868c63d73ed927c5d4559fe4e2320fd
/week 5/wk 5 q 2.py
4e92daa6b065054e24c2e2d95ebeb2cbd758f5ac
[]
no_license
Shubhanshu-Nishad/210-Coursework-Amanjit-S-Phull
e58a622b9b0bd2da3259f318944d1164c9f3fd93
01ed9eb426d3af180cb486503ab8bfcdf6694e90
refs/heads/master
2022-12-18T06:08:58.172949
2020-10-01T14:27:44
2020-10-01T14:27:44
300,308,089
1
0
null
2020-10-01T14:26:13
2020-10-01T14:26:12
null
UTF-8
Python
false
false
1,155
py
class Node(object): def __init__(self, value): self.value=value self.next=None self.prev=None class List(object): def __init__(self): self.head=None self.tail=None def insert(self,n,x): if n!=None: x.next=n.next n.next=x x.prev=n ...
[ "noreply@github.com" ]
noreply@github.com
3c9b1f5735b73000613123f11f7489b4966ddcdf
95fa7024211ed10a22e392bc07256a46814bc5ff
/config/settings/production.py
2742546718df32718f0ec25fb47f1ea7bb0b802b
[]
no_license
mark-cunningham/test
353346a351fce27ec7992e6fcedb6af71e5c77d0
68d080eb60a80dc60d9706fa51b787a5c46b1780
refs/heads/master
2020-04-23T12:12:52.743174
2019-02-17T19:22:12
2019-02-17T19:22:12
171,148,661
0
0
null
null
null
null
UTF-8
Python
false
false
7,493
py
from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env('DJANGO_SECRET_KEY') # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts ALLOWED...
[ "cunniman13@gmail.com" ]
cunniman13@gmail.com
b15b87aebf2cf07b8e065a527f31b2b55377fa13
d7ee76b7f1d6cd038982335792f15959a58a8395
/SWEA/4615. 재미있는 오셀로 게임.py
e557fb8ef44326abc668927b3051576baa6bd26d
[]
no_license
min1378/-algorithm
1c5dea6b2f03e4d376275cfccbf11b240bc659d9
bfb720277160077a816deec21469a7e597c62d14
refs/heads/master
2021-08-02T06:54:10.478501
2021-07-31T14:03:01
2021-07-31T14:03:01
202,688,865
0
0
null
null
null
null
UTF-8
Python
false
false
2,638
py
#import sys from pprint import pprint #sys.stdin = open('4615.txt', 'r') # 벽체크 함수 def isWall(x, y): if x > N or x < 1 : return True if y > N or y < 1 : return True return False # 색을 바꿔야할 돌의 위치 체크. def enermy_check(x, y, mode, color): check_enermy = [] dx = [0, 1, 1, 1, 0, -1, -1, -1]...
[ "qwes123@naver.com" ]
qwes123@naver.com
fdcfdfd429431291ef3a98faf19e4dc7d4ffcdb2
841c0df958129bef4ec456630203992a143c7dc7
/src/1/1297.py
8c9a783bb90ccd8c2f495c94b1b79838d0b82fc5
[ "MIT" ]
permissive
xCrypt0r/Baekjoon
da404d3e2385c3278a1acd33ae175c2c1eb82e5e
7d858d557dbbde6603fe4e8af2891c2b0e1940c0
refs/heads/master
2022-12-25T18:36:35.344896
2021-11-22T20:01:41
2021-11-22T20:01:41
287,291,199
16
25
MIT
2022-12-13T05:03:49
2020-08-13T13:42:32
C++
UTF-8
Python
false
false
385
py
""" 1297. TV 크기 작성자: xCrypt0r 언어: Python 3 사용 메모리: 29,380 KB 소요 시간: 72 ms 해결 날짜: 2020년 9월 20일 """ def main(): d, h, w = map(int, input().split()) hk = pow(d ** 2 * h ** 2 // (h ** 2 + w ** 2), 0.5) wk = pow(d ** 2 * w ** 2 // (h ** 2 + w ** 2), 0.5) print(f'{int(hk)} {int(wk)}') if __name__ == '__m...
[ "fireintheholl@naver.com" ]
fireintheholl@naver.com
812b33798a282b1ce8b7d31e14999b7e5d629e07
9255068b7b45348a084555b8c413fd55a4b12013
/odfdo/link.py
43d15ef07e9f2067b7636723ff4a05076ec64545
[ "Apache-2.0" ]
permissive
mat-m/odfdo
fdf9752f0273760deb59403f23dbc20eac3de753
a4a509a056517ecf91449e029b36fe9a8ffa8ed0
refs/heads/master
2020-03-18T05:04:16.263647
2018-05-21T21:46:13
2018-05-21T21:54:11
134,322,638
0
0
null
null
null
null
UTF-8
Python
false
false
2,931
py
# Copyright 2018 Jérôme Dumonteil # Copyright (c) 2009-2013 Ars Aperta, Itaapy, Pierlis, Talend. # # 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...
[ "jerome.dumonteil@gmail.com" ]
jerome.dumonteil@gmail.com
1c7ed19f2aaacdb47b9e5eefd21dd227de5cb2ed
d024ccbb4cc04af3866a4db1ac1d8c1d7395d909
/boj/3040.py
7340db9c6af2e68f61e4fb313c8b4a7a0a8b412e
[]
no_license
demetoir/ps-solved-code
ff0418dddd10f3b053c9b8d32af48027b10c8481
f4d4fd2183176b083f2287c9d89c6d5a1e983cc5
refs/heads/master
2022-10-14T20:11:34.581439
2020-06-12T11:24:11
2020-06-12T11:24:11
68,782,768
1
0
null
null
null
null
UTF-8
Python
false
false
169
py
import itertools l=[] for i in range(9):l+=[input()] for s in itertools.combinations(range(9),7): if sum(l[i] for i in s)==100: print "\n".join(str(l[i]) for i in s)
[ "wnsqlehlswk@gmail.com" ]
wnsqlehlswk@gmail.com
0d4374fc859560faca1bf38f60793e519cb4ea39
e9173667eec2576782863a51ee63672f9b419297
/k2.py
b0c3e665770160fd0f0a9f0e424c8e55fafe7c96
[]
no_license
sabareesh123/pythonprogamming
d41c23ddae183ded09eafde445273126c6b56fcf
004f248aa2e25f2855d6ccafbb9244447bfb5873
refs/heads/master
2020-05-30T06:28:54.901030
2019-08-06T11:50:10
2019-08-06T11:50:10
189,580,451
0
3
null
null
null
null
UTF-8
Python
false
false
66
py
e=int(input("")) if(e%2==0): print("Even") else: print("Odd")
[ "noreply@github.com" ]
noreply@github.com
50df324554bfc102953f18d1e3fac8b9dbff04d3
93bcd08541193bdbfdd2921d2462f8485db91753
/src/services/map.py
cd9d454a637dbe07521ead7e0b7c19c72ea858c2
[ "MIT" ]
permissive
fpaupier/samu_social
258b8db00a743538da664203b00b4f08ba44d9eb
aa20763c632743ec25d8b6802c62dd5ce121d89f
refs/heads/master
2020-04-23T04:42:08.513157
2019-09-29T17:56:00
2019-09-29T17:56:00
170,916,125
0
0
null
null
null
null
UTF-8
Python
false
false
2,373
py
import math import requests class Map(object): def __init__(self): self.url = 'https://api-adresse.data.gouv.fr/search/' self.radius = 6371 # km def distance(self, departure, arrival): try: departure_latitude, departure_longitude = float(departure['latitude']), float(dep...
[ "brisemeric@gmail.com" ]
brisemeric@gmail.com
ce1521069237c2ec7956f0d3bb95031f704516fd
5e7eaac8b6488370cafa86622a4b07aa30aa8ca2
/maze.py
01d5f71c6c9804645fd4187b3a8e9b7eca4de3bb
[]
no_license
VioletFlamingo/MazeGenerator
3ced2b7e04eea25b4013562f477657ddaeaf3d4e
39c447b969932ad9f602b696b35616c139af3bd7
refs/heads/master
2021-01-10T15:19:43.563343
2016-04-08T21:10:50
2016-04-08T21:10:50
55,809,790
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
class Maze: def __init__(self, width, height, start, finish, paths=None, difficulty=None): self.width = width self.height = height self.start = start self.finish = finish self.paths = paths self.difficulty = difficulty
[ "paulina.winkowska@gmail.com" ]
paulina.winkowska@gmail.com
438a534b66b835b18edc0a542fc5499bae377670
ca23b411c8a046e98f64b81f6cba9e47783d2584
/cache_replacement/policy_learning/cache/main.py
5cbddf2a4c41057f1d91d6f6838f52f0665a237d
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
pdybczak/google-research
1fb370a6aa4820a42a5d417a1915687a00613f9c
0714e9a5a3934d922c0b9dd017943a8e511eb5bc
refs/heads/master
2023-03-05T23:16:11.246574
2021-01-04T11:30:28
2021-01-04T11:30:28
326,629,357
1
0
Apache-2.0
2021-02-01T12:39:09
2021-01-04T09:17:36
Jupyter Notebook
UTF-8
Python
false
false
5,923
py
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # 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 applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
539e3168ff7838dd2857165753faf10c932bc548
21f0ad238f9380ce5346570aaa6deacd5219d92e
/code.py
aceb238a4bf31cc0ff9db51db34296f744a85f6e
[]
no_license
Mahesh2877/Nth-Element-of-LinkedList
1f53ed3709eac80ca5069ee30e433b601d403099
3e56c7e3282cc3e79b621f95973b36190788246d
refs/heads/main
2023-01-25T03:14:25.935662
2020-12-05T14:01:02
2020-12-05T14:01:02
318,800,515
0
0
null
null
null
null
UTF-8
Python
false
false
2,182
py
# Use this class to create linked lists. class Node: def __init__(self, value, child=None): self.value = value self.child = child # The string representation of this node. # Will be used for testing. def __str__(self): return str(self.value) # Implement your function below. de...
[ "noreply@github.com" ]
noreply@github.com
092653579244e4f4c095d89145e7b1090c29b97a
8ecd899a8558ad0a644ecefa28faf93e0710f6fb
/other_practices/JOI2009_ho2.py
bf6da9af81b0852342546b9a6414ba07ece8d743
[]
no_license
yut-inoue/AtCoder_ABC
b93885547049788d452e86b442a4a9f5ee191b0e
3d2c4b2b2f8871c75f86040ad07ccd7736ad3dbe
refs/heads/master
2021-07-03T09:09:20.478613
2021-02-21T13:20:31
2021-02-21T13:20:31
227,140,718
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
import bisect d = int(input()) n = int(input()) m = int(input()) dl = [int(input()) for _ in range(n-1)] ml = [int(input()) for _ in range(m)] dl.append(0) dl.append(d) dl.sort() dis = 0 for m in ml: ind = bisect.bisect_left(dl, m) dis += min(abs(dl[ind]-m), abs(dl[ind-1]-m)) print(dis)
[ "yinoue.1996787@gmail.com" ]
yinoue.1996787@gmail.com
d64da998023218aa16722fe26d0d30d0d3edb18b
c5f9cb6619d4e98ecd8e7d952439adcce41c23f5
/week 10/Project1/Proj1/submission/urls.py
25ade1db478212781418c4a4dcf52fa008f0001e
[]
no_license
Zhanarik/webdev2019
8b94ce365bff63e5bad9bfb0c8eb8a51ecaaa0cc
f94f06a782204a532f1a2520beb381b4eabb65bd
refs/heads/master
2022-01-09T22:52:40.738650
2019-05-14T05:32:39
2019-05-14T05:32:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
from django.urls import path, include from submission import views urlpatterns = [ path('submission/', views.submission) ]
[ "zhanar991025@gmail.com" ]
zhanar991025@gmail.com
c470796fe293d6d5817ad4d4cffa65f393d9db24
b3bbce6d774e3b6d86b5bc18ab6ffaad90fe4e51
/drafthub/asgi.py
25c0bfb7de290180043c49697af3919792dd4f55
[ "MIT" ]
permissive
felipelincoln/drafthub
20227ae309b0c4ad1abbeeb8aa2fdf9c4fbcf469
e8a6055205646d45c26419938c3277f544931925
refs/heads/master
2023-02-02T21:20:06.243615
2020-12-11T11:49:46
2020-12-11T11:49:46
251,270,142
2
0
MIT
2020-06-06T09:05:42
2020-03-30T10:18:57
Python
UTF-8
Python
false
false
393
py
""" ASGI config for drafthub 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.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETT...
[ "felipelincoln@usp.br" ]
felipelincoln@usp.br
976eab4c20ccc6d97267a0e261e856efb42bac17
9a393d5dae8147088b1c9b78987197c60a6618cf
/0828/모의2.py
5afbfdf130cc6d42c69e1a772ee5ab0f6d43cf74
[]
no_license
bumbum9944/bumpycharm
5444440379f6d5142130bc8a7a4b69276f23f991
b487eb433d41ff0d2f6e1ca4f723225b114b96c0
refs/heads/master
2020-07-05T16:04:35.153231
2019-10-02T00:14:00
2019-10-02T00:14:00
202,693,662
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
def shuffle(cards, card_u, card_d, N): X = list(range(N)) global cnt if cards != card_u and cards != card_d: if cnt > 5: return -1 else: cnt += 1 for x in X: if x > N // 2: x = x - N // 2 for change in ra...
[ "tong940526@gmail.com" ]
tong940526@gmail.com
9aad506a33f74e07c9c4c1365fcc30229bae5b27
7923e0f415938efbe16482d53a4835a9e79e8741
/MTRelation/models/model0.py
97dd8e1b63696ba5fb9770b79e85eda94b90df8c
[]
no_license
AdamMeyers/Web-of-Law
93b0b8d05955d12386ec5af24dc8bb02081bea26
49f7ae18dbe9fbfaa350dff8617ab32190c880eb
refs/heads/master
2020-09-11T23:51:41.353592
2019-07-17T14:04:14
2019-07-17T14:04:14
94,456,676
9
1
null
null
null
null
UTF-8
Python
false
false
705
py
from utils import * class Model0(nn.Module): def __init__(self, params, embeddings): super(Model0, self).__init__() self.l_emb = embeddings['src'] self.l_birnn = GRUBiRNNWord(params['dim_emb'], params['dim_hid'], params['num_rnn_layer']) self.l_relational = RelationalNet(params['di...
[ "wl1191@nyu.edu" ]
wl1191@nyu.edu
e46dc93d73ecf40cad70b8beb65f250556b4fc5c
eab0f708b8abd1f1bfc12496344c516bbfe2581d
/fxtec.xyz/fxtecapp/migrations/0006_robot_timecheck.py
8b4f1c2288496b90682678b7cad4c1e85686b450
[]
no_license
minhdang741/FxtecWeb
91dfd4db9b38d6d6e2083f157d56733fe42ef9bc
821d6efadc85137080a0952f4c2cef011afbfe8c
refs/heads/master
2023-04-21T09:33:49.976436
2021-05-29T11:45:52
2021-05-29T11:45:52
358,831,961
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
# Generated by Django 2.2.12 on 2021-04-17 07:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('fxtecapp', '0005_robot_eqtcheck'), ] operations = [ migrations.AddField( model_name='robot', name='timecheck', ...
[ "minhdang741@github.com" ]
minhdang741@github.com
ea7db6646783c4f5b7190aa6fb3fa228a8266c5b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03061/s160632113.py
8ebe292df9e3f2e8d6f104cfca93a5b226a41bb0
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
from fractions import gcd N = int(input()) A = list(map(int, input().split())) L = [-1] * (N-1) L[0] = A[0] R = [-1] * (N-1) R[0] = A[-1] for i in range(1, N-1): L[i] = gcd(L[i-1], A[i]) for i in range(1, N-1): R[i] = gcd(R[i-1], A[-i-1]) ans = 0 for i in range(1, N-1): tmp = gcd(L[i-1], R[N-i-2]) ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
b81834a4e5b70d6c47b6e437dbeeb5406935421f
320e216f7713c15556874cbb19308c5343f05681
/project/data/co_ocurrence_tweets.py
b9f7d126b689927daa69abd654ef69eb87693968
[]
no_license
anamestre/MIIS-SocialAnalytics
d3125af36afaf5d4cdb39b0244f5dbd8139870ab
8cf26a966a5f0ba22fa1606359dac261bc926322
refs/heads/master
2022-05-26T05:10:28.468927
2020-04-23T16:56:32
2020-04-23T16:56:32
235,383,608
0
0
null
null
null
null
UTF-8
Python
false
false
1,123
py
import json, csv, re tweets = {} i = 0 with open('tweets.json', encoding="utf8") as f: data = json.load(f) for tweet in data["tweets"]: i += 1 id_tweet = tweet['id'] text = tweet["text"] usernames = re.findall("@[a-zA-Z0-9_]{0,15}", text) # Look up for twitter usernames ...
[ "anamestree@gmail.com" ]
anamestree@gmail.com
25c4a482b9654eb9753046ccadb427ef2aa7c38d
aa521dd3bb0e9d0b58ce8aa7f452dafefa006ebe
/app/middleware/db.py
ee942347066d6448e71af6e8103f9ebd3bbbbffb
[ "MIT" ]
permissive
Jonatha-Varjao/fast-api-nosql-template
77ecf9de48027c6a348069e9e38dc026dd12de45
67987a91a87fdbd58c46b0be8fc95b5bf4c8ed97
refs/heads/master
2020-12-09T12:38:03.373925
2020-01-20T13:45:23
2020-01-20T13:45:23
233,305,656
4
0
null
null
null
null
UTF-8
Python
false
false
414
py
from app.db.mongodb import db from starlette.middleware.base import BaseHTTPMiddleware from starlette.requests import Request class DBConnection(BaseHTTPMiddleware): async def dispatch(self, request, call_next): request.state.db = db.client response = await call_next(request) request.state....
[ "jonathavarjao@gmail.com" ]
jonathavarjao@gmail.com
801ea0d4ddf339896969cca9b7abbdd7ab33f820
6f63dd99a1ce80fa06b9f5b02e694a96b9d45a2d
/Semester_1/Lesson_04/Lesson_04_ex_01.py
62aa67cacdc3def01ebb08bfca389ed356f503ec
[]
no_license
mayakota/KOTA_MAYA
b1d4f6f45694fe6680de2fb46dd6a38f16b892f5
f2cfc4c80b5e73e2e6a5c409d9daaf659c42bf9d
refs/heads/master
2020-09-21T17:01:15.435826
2017-05-12T17:24:13
2017-05-12T17:24:13
67,815,386
0
0
null
null
null
null
UTF-8
Python
false
false
696
py
def format(item, price): print("{:<12}\t{:>15f}".format(item, price)) item1 = input("Please enter item 1:") price1 = float(input("Please enter the price:")) item2 = input("Please enter item 2:") price2 = float(input("Please enter the price:")) item3 = input("Please enter item 3:") price3 = float(input("Pleas...
[ "Richard.Robinette@sduhsd.lan" ]
Richard.Robinette@sduhsd.lan
cfa7164dda49a23369a3eed3c7bfa7e894f5ac5a
a4b66d32405249ef12267d0d0dee6a04edefc913
/dobro.py
75b052ff8c3c29a8b33a7628ccf2fd3e801e5565
[]
no_license
sergiofagundesb/PythonRandomStuff
0abd8ed1f79a09708fcb672f7f34be25f7bec411
c5445509a27cedd3cfb6103739af6b5e679df770
refs/heads/main
2023-01-29T16:52:59.816812
2020-12-09T11:27:16
2020-12-09T11:27:16
319,809,257
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
n=float(input('Digite um número')) print('O número {} tem seu dobro {}, triplo {}, e raiz quadrada {}'.format(n,(2*n),(3*n),(n**(1/2)))) print('='*20) n1=float(input('Digite o primeiro número')) n2=float(input('Digite o segundo número')) media=(n1+n2)/2 if media >= 5: print('Aprovado') if media < 5: print('Repr...
[ "sergio.fagundesbarros@gmail.com" ]
sergio.fagundesbarros@gmail.com
f692cc6732f887e77bd04e996b84fec82f5ff7a6
0d0da8a94ce91f236fbe63a2d613ce246bb57c05
/khdict/urls.py
65c82cae3d1f35cccd058e0aa64dee718034cde5
[]
no_license
buganini/khdict-web
45c4cb8aa47f755ccae2a37403d40f383e9f951c
61f2587619c2394af92645f3cafa7a7a0f0c2274
refs/heads/master
2021-01-18T23:02:15.079360
2016-07-08T09:11:57
2016-07-08T09:11:57
23,557,499
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
from django.conf.urls import patterns, include, url from django.views.generic.base import RedirectView # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'khdict.views.index'), url(r'^q/(?P<key>.*)?$', 'khdict.vie...
[ "buganini@gmail.com" ]
buganini@gmail.com
92a05238afd3189143bdf1d508e8b2205b46dabe
917c0949dd410439e7f882e20a3fb744b7b4bd6e
/Pandas/obesity.py
bf7e8dceb6a5561f1b97151d830ba938469e350c
[ "MIT" ]
permissive
daveaseeman/PyEng
229d01df85c2959b4333d5bd19ba15029b11ee38
31403a7f0e557456eeaad865295213cf27847bf9
refs/heads/master
2020-12-28T19:11:49.210811
2017-05-15T23:13:42
2017-05-15T23:13:42
43,885,548
0
0
null
2015-10-08T12:03:50
2015-10-08T12:03:49
null
UTF-8
Python
false
false
1,221
py
import pandas as pd import matplotlib.pyplot as plt data = pd.ExcelFile("Obes-phys-acti-diet-eng-2014-tab.xls") print data.sheet_names # Read section 7.1 from the Excel file # Define the columns to be read columns1 = ['year', 'total', 'males', 'females'] data_gender = data.parse(u'7.1', skiprows=4, skipfooter=14, ...
[ "a@a.com" ]
a@a.com
1219af206b732c884b33f773fac0863e4183221e
98876f5afc4839d9355da82359a5fd0a50829bd2
/Curso de Python/Mundo 1/Aula 07/Exercicios/ex015.py
6e28fbd09a48dba0627f4317129348dc8d515aed
[ "MIT" ]
permissive
tarcisioribeiro-zz/Python
bc1e15e0af45262a65f80aa2d7d2ea6a0669ec8f
4d89b1e392f7c7fd743d6e5bcab1d387cdba398d
refs/heads/master
2023-03-21T09:15:59.831050
2021-03-04T23:37:37
2021-03-04T23:37:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
# Corrigido print('Exercício 015') print() # Bloco de entrada dias = int(input('Informe por quantos dias você alugou o carro: ')) dist = float(input('Informe a distância em Km percorridos no carro: ')) print() # Bloco de cálculo valor = (dias * 60) + (dist * 0.15) # Bloco de saída print('O valor pago pelo aluguel ...
[ "tarcisio.ribeiro.1840@hotmail.com" ]
tarcisio.ribeiro.1840@hotmail.com
9ef04a08bc10dea64e0d9e928d37a877bfa39cc1
603ed82854e5b67af76d9bbdf4d2183419c6167c
/pages/views.py
05b88e646d6daa37ff170c9d948d5fc2c442c219
[]
no_license
IbrahimAlAzhar/Basic-CRUD
26a209433fefb3da38d742602e54abeff83daa8d
2e9d68537270fc72b44757b39eea845d78602902
refs/heads/master
2022-12-14T11:34:20.784724
2020-09-05T21:18:51
2020-09-05T21:18:51
293,155,575
0
0
null
null
null
null
UTF-8
Python
false
false
1,068
py
from django.shortcuts import render # Create your views here. from django.shortcuts import render from django.http import HttpResponse def home_view(request,*args, **kwargs): print(args, kwargs) print(request) print(request.user) # return HttpResponse("<h1>Hello world</h1>") return render(request...
[ "ibrahimalazhar264@gmail.com" ]
ibrahimalazhar264@gmail.com
011d718f746b1d5d536a562ff729e525b1912cf1
55192826c866d85c1ad08d024f6a10e3c75d6e2a
/scaninout/interface/__init__.py
916fcde91f914f89ba17e301d1bf6e2a6222d01e
[]
no_license
gh2o/ScanInOut
b3a3cae45c27e93fd30fc6efa9d0123426dbda2b
e8d6620fed1f6a1ac3b908fcacbdee6a3e2ad52a
refs/heads/master
2021-01-01T08:53:37.104501
2013-01-26T06:14:01
2013-01-26T06:14:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,644
py
import os import sys client = None def patch (): from gi.overrides import Gtk def TreeModelRow_iter (self): return iter (self[0:self.model.get_n_columns()]) Gtk.TreeModelRow.__iter__ = TreeModelRow_iter def main (args): ### PARSE OPTIONS from optparse import OptionParser, IndentedHelpFormatter from .. im...
[ "git@thegavinli.com" ]
git@thegavinli.com
e8214136d0a4a03ca532f5f4dd6c3bdeb95b8b3c
e4745b21e5365d64e5c839bd668fb012304305b6
/blog_project/blog/models.py
cffd75b62a732e8b06fc162369dbb3ce0c44538d
[]
no_license
shubham897/Django-Blogging-website
b8b022d194fd960519e0227574bd2281ec16311c
be82b22f9850e4e4bbd5489865487591fa96d4d4
refs/heads/master
2022-11-14T23:32:42.537555
2020-07-15T16:46:40
2020-07-15T16:46:40
279,905,337
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
from django.db import models from django.utils import timezone from django.urls import reverse class Post(models.Model): author = models.ForeignKey('auth.User',on_delete=models.DO_NOTHING,) title = models.CharField(max_length=200) text = models.TextField() created_date = models.DateTimeField(default=t...
[ "56882368+shubham897@users.noreply.github.com" ]
56882368+shubham897@users.noreply.github.com
aff1a5f925b9a5fb61aa23bc3c7204c9d0b2fdf8
98f730ec6a43d8be4a34b0f2a44a9d35989d2287
/tests/unit/entity/test_flow_file_entity.py
c96730ce6075f70da6c024829667d2c0880046c9
[]
no_license
scottwr98/pynifi-client
9337a4f322536ee466d419a788b8b5948cdc62d7
013ac2ffa591284a0d6cbb9ed552681cc6f91165
refs/heads/master
2020-04-18T08:47:03.680749
2017-11-04T23:59:58
2017-11-04T23:59:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,335
py
# coding: utf-8 """ NiFi Rest Api The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
[ "ajish@rootedinsights.com" ]
ajish@rootedinsights.com
837d305186f7d06dfd75bd4bc40e076ae5c90495
5e6d161f1636db521db63f5c55d0e3882616b79f
/ScanningChooser.py
24911b1110bc125b5bd4ec81cb66772a75b415dc
[]
no_license
SergeySave/RBMC
706077b951246f98834d51b2be57fbb23fe1f6c4
7b27520036f1c6477ce960a3d6f2259d197665b6
refs/heads/master
2023-04-07T12:53:54.465845
2020-04-29T16:18:56
2020-04-29T16:18:56
167,582,121
0
0
null
null
null
null
UTF-8
Python
false
false
3,233
py
import itertools import chess from Information import ViewportInformation from collections import Counter import random def perform_scan(start_file, start_rank, num_files, num_ranks, game): all_pairs = itertools.product(range(start_file, start_file + num_files), range(start_rank,...
[ "sergeysav.nn@gmail.com" ]
sergeysav.nn@gmail.com
c570ee9849bd9f6570218d86553e22d114fc0308
0130c8b14927097663157846adc4b146d67d2fda
/tests/common/test_op/conv_ad_v2.py
8938d4b68efd6d2d80bc3ba6342cb407603a7729
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "BSD-3-Clause", "NCSA", "LLVM-exception", "Zlib", "BSD-2-Clause", "MIT" ]
permissive
Shigangli/akg
e8be3e0ee1eafe3e42b4cc4d424c28f08ef4c0bc
3766c54e0b109541932d147a6b5643a334b82403
refs/heads/master
2023-09-06T05:13:40.571583
2021-11-23T03:44:54
2021-11-23T03:44:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
27,379
py
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ "1027252281@qq.com" ]
1027252281@qq.com
b6dca720f4e38f83363c8812d81b4850e23b7786
3f31750f4e90cbfd931e914101fb097c94452769
/urls.py
c5160a2b4610a9508266ffd4189db794e3055cc6
[]
no_license
shivaprasadNeginaha/ltti
90a242f49cfb2876f27f6396c6d7cb5924611d15
5c32368622243a5f2ef59a57824738693ed4c34d
refs/heads/main
2023-05-31T10:48:48.131728
2021-06-14T17:09:08
2021-06-14T17:09:08
376,890,863
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
from django.contrib import admin from django.urls import path # we need to import views from our contact app from contact import views urlpatterns = [ path('', views.index, name='index'), ]
[ "shivaprasadne@gmail.com" ]
shivaprasadne@gmail.com
169d2f9eaf9c0b81731413c8b44f2ef351665f7c
2f95fffcc7eca186516e76a39c537e89849794ed
/oled.py
2c75ea4e8fbdfb8e011a04c9e4350bf0deb8dbe7
[]
no_license
DELL3580/test
2acfba6096eecb664d5e2144af2cdb646c3a432f
88f2bf2df0c79055fb286426a08563112b56127b
refs/heads/main
2023-03-21T02:06:31.107366
2021-03-19T09:51:50
2021-03-19T09:51:50
348,711,339
0
0
null
null
null
null
UTF-8
Python
false
false
2,064
py
import busio import subprocess import os import time from board import SCL, SDA from oled_text import OledText, Layout32, BigLine, SmallLine i2c = busio.I2C(SCL, SDA) # Create the display, pass its pixel dimensions oled = OledText(i2c, 128, 32) # Select a layout with a FontAwesome font # To print unicode ...
[ "noreply@github.com" ]
noreply@github.com
2438dc850e5d62d640bcdc86236a89bc67376373
1d60c5a7b8ce6277bff514e376f79848f706344c
/Data Engineer with Python/04. Writing Efficient Python Code/04. Basic pandas optimizations/08. Bringing it all together: Predict win percentage.py
cf12b3bebb30941ce6308446c58c8d8a439da8bb
[]
no_license
DidiMilikina/DataCamp
338c6e6d3b4f5b6c541c1aba155a36e9ee24949d
3bf2cf3c1430190a7f8e54efda7d50a5fd66f244
refs/heads/master
2020-12-15T13:16:54.178967
2020-05-06T17:30:54
2020-05-06T17:30:54
235,113,616
4
3
null
null
null
null
UTF-8
Python
false
false
2,790
py
''' Bringing it all together: Predict win percentage A pandas DataFrame (baseball_df) has been loaded into your session. For convenience, a dictionary describing each column within baseball_df has been printed into your console. You can reference these descriptions throughout the exercise. You'd like to attempt to pre...
[ "didimilikina8@gmail.com" ]
didimilikina8@gmail.com
3f126799ab9a40abdd2ebaae9d63469bf925c350
65381b8dffa1ade89746f6fc3a4979a7eb548d34
/analytic_structure/models/analytic_dimension.py
3e0c1f79cf94b69f49c82b31d834c963f9d7f218
[]
no_license
ff4f/AISJ-13
a4240d1952c3854dd5b21a62cf7dbfdebb16fde5
a2f2183e0f753100842877efecc844bdc72f8bd4
refs/heads/master
2023-05-08T22:54:43.972954
2021-06-03T14:44:10
2021-06-03T14:48:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
967
py
# -*- coding: utf-8 -*- from odoo import models, fields class AnalyticDimension(models.Model): ###################### # Private attributes # ###################### _name = "account.analytic.dimension" ################### # Default methods # ################### ######################...
[ "LuisAngelMalaveMora@gmail.com" ]
LuisAngelMalaveMora@gmail.com
6a64c23916508a771fed5e4e09ebb9f4d2e9e1dc
02444f07cd8363624eebf6aaf0d6b1c658008a65
/compare_classifiers.py
e8c48a4348d8f142ea133816cb9940d7484f29a6
[ "MIT" ]
permissive
haoran-c/hotel_reviews
2792135f801e6b39268305b2a002c04dc7650a4c
393a860b2202046c2b95d6f304ab7e9ebcf0db27
refs/heads/master
2020-11-26T13:35:11.647673
2019-12-20T06:10:10
2019-12-20T06:10:10
229,088,244
1
0
null
null
null
null
UTF-8
Python
false
false
4,604
py
import json import os import numpy from joblib import dump, load from sklearn.svm import SVC from sklearn.naive_bayes import MultinomialNB from sklearn.linear_model import LogisticRegression from sklearn.neighbors import KNeighborsClassifier from sklearn import tree from sklearn.ensemble import RandomForestClassifier ...
[ "haoranchen@brandeis.edu" ]
haoranchen@brandeis.edu
22f07dc730bca851d7ff57229e0897b077701ede
f44e440f6d422825749228aaa8208afeef65068c
/peticiones.py
6cf570e1b408f1cc5b1329edc459e0a68c6ff2a8
[]
no_license
Andregal/Orion-The-Game
1ae94251d41963a4a6707663da6500dcf5caf737
d71735d6e2bb90a2ddb8278351d71e3964b0ebce
refs/heads/master
2020-03-08T17:48:30.955483
2018-07-13T06:02:26
2018-07-13T06:02:26
128,278,239
0
0
null
null
null
null
UTF-8
Python
false
false
4,957
py
# Modulos necesarios import json # Convertir a JSON import http.client # Realizar peticiones from subprocess import call #Ejecutar servidor ##### FUNCIONES INTERNAS ##### # Convertir a String def convertirString(binario): nuevoString = binario.decode('utf8').replace("'", '"') return nuevoString # Convert...
[ "20130514@aloe.ulima.edu.pe" ]
20130514@aloe.ulima.edu.pe
cc7a68cd0a40518011c93f4e0ea7416c9ae20dc9
b62551c83cbb990033584b9254f330491c237e9a
/pset4/ps4c.py
24e708be6d63710359ef08673ef1396c83ed1a2d
[]
no_license
Carpetoid/6.0001_sols
75cb356115b072b4531d918dcbf08e440dc1a007
65dd76c9236be1b036b169eaabc458bcab19d1be
refs/heads/master
2023-03-13T22:36:46.478434
2021-03-14T17:47:38
2021-03-14T17:47:38
304,158,360
3
0
null
null
null
null
UTF-8
Python
false
false
8,188
py
# Problem Set 4C # Name: <your name here> # Collaborators: # Time Spent: x:xx import string from ps4a import get_permutations ### HELPER CODE ### def load_words(file_name): ''' file_name (string): the name of the file containing the list of words to load Returns: a list of valid words. Words...
[ "abdulrahmanfayoumi2@gmail.com" ]
abdulrahmanfayoumi2@gmail.com
bc99bcdcc7488fddaf39428a7b0c74063fba673f
5745358f6dd4246c4e1e86fc70cb6b532fc80a3b
/AnInterestingProject/algos/Dfs.py
65e3a1fc39821a08454839ebf324fdd4326bba80
[]
no_license
sandro101/interestingProject
e52decef582d1c1e911f7357c056fc25517c4d17
826ad07f0391640b398c157baf2bdfc453b2f7e9
refs/heads/master
2018-09-17T20:20:34.636897
2018-06-05T21:25:58
2018-06-05T21:25:58
104,572,475
0
0
null
null
null
null
UTF-8
Python
false
false
1,420
py
from collections import deque from AnInterestingProject.jcollection.TreeNode import build_some_tree, TreeNode def dfs(tree, order=None): if tree is None: return if order == "preorder" and not tree.discovered: print(tree.data + " visited") tree.discovered = True for child in tree.c...
[ "robert.sanderson@teahcfirst.org.uk" ]
robert.sanderson@teahcfirst.org.uk
a1560bbfbb2664b258598e195a2ece3bcf4f135d
8ab60ae62d5dc19b1480a2a4ed08149888d12794
/tests/influx_mock.py
9f1b0c82c9a48de80c05ed4c6393d545eeb63194
[ "MIT" ]
permissive
CVi/influxdb_aggregation
44f41241ef2adcfdae2ce4693b25e13502ca23d6
082946da3066d5ca908076d61069336cd5b98c0f
refs/heads/master
2020-03-28T07:43:04.069267
2018-09-08T17:14:36
2018-09-08T17:14:36
147,919,724
0
0
null
null
null
null
UTF-8
Python
false
false
1,207
py
from mock import Mock def make_client(measurements=None, continuous_queries=None, retention_policies=None, show=None): client = Mock() if show is None: show = {} if measurements is not None: show["MEASUREMENTS"] = measurements if continuous_queries is not None: ...
[ "christoffer@viken.me" ]
christoffer@viken.me
da09133fb4518ae1ebcb754d0dc8624e28e1a2a8
a073416203ed779459842e6c59b36173906f3bac
/laundry/settings.py
cc02a3b28f2301c8175716e61b02cdd1fca74c88
[]
no_license
paulinakaminska/laundry
3ade728e6b3ff8bddddae66b59618748b7636579
a5210186fd3950647691bac4c4c74c244b8bdf51
refs/heads/master
2020-09-16T09:41:21.743517
2019-11-28T19:40:41
2019-11-28T19:40:41
223,728,867
0
0
null
null
null
null
UTF-8
Python
false
false
3,102
py
""" Django settings for laundry project. Generated by 'django-admin startproject' using Django 2.2.7. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os #...
[ "paulinakaminska@hotmail.com" ]
paulinakaminska@hotmail.com
bf099cc75161c182c20b815f9d7a22cdc614fc7b
eaf8b302348e2775d4f66c49a6c0a1dd21bf58e9
/Prometheus插件开发/pmweb/alarmconfig/migrations/0001_initial.py
f56f11e650c68f96383123cb607e176d1b74187c
[]
no_license
whantt/PrometheusMonitor
a2105dd1a1c523ae7aa73dc75e2d5a44b5798683
6e615738b94fbc8e1fc46ca8dbddfbee1cc0f303
refs/heads/master
2020-05-05T04:08:04.888606
2019-04-02T11:31:09
2019-04-02T11:31:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
967
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2019-03-28 03:33 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Prometh...
[ "30825490+1182640071@users.noreply.github.com" ]
30825490+1182640071@users.noreply.github.com
386b87b23a4abb72e8025a74ef4beb8cda822341
c2bcf42e04a1e2146b41b250ff14e62fddcdf589
/docs/examples/plot_gpr.py
b38412ecdc8bb8734c124690fb196f341c3f89ea
[ "Apache-2.0" ]
permissive
onnx/sklearn-onnx
0f958e1c090572fbe11e15f95bec975d1780cf8d
895c3a76a315c7a6567a1a07a96dc658994ec16a
refs/heads/main
2023-08-18T18:49:25.164433
2023-08-17T09:52:31
2023-08-17T09:52:31
162,340,939
455
92
Apache-2.0
2023-08-31T16:04:13
2018-12-18T20:18:48
Python
UTF-8
Python
false
false
6,674
py
# SPDX-License-Identifier: Apache-2.0 """ .. _l-gpr-example: Discrepencies with GaussianProcessorRegressor: use of double ============================================================ The `GaussianProcessRegressor <https://scikit-learn.org/stable/modules/generated/sklearn.gaussian_process. GaussianProcessRegressor.h...
[ "noreply@github.com" ]
noreply@github.com
f69ff6497829390c33f93193168cccea268172d5
32ce76e47881f7fd1bad2b92771e55f6e8235334
/app/forms.py
944de38b022585b8c831d18bab7006693cc17e07
[]
no_license
Larisa1992/E9_TEST
29560266d8e3ed5b9c8cada2170b4d991df87d36
d75980634b5b2a11d6ff4e6cfc1827e46efe5bc1
refs/heads/master
2023-01-05T23:08:34.910779
2020-11-05T20:21:33
2020-11-05T20:21:33
310,408,151
0
0
null
null
null
null
UTF-8
Python
false
false
493
py
from flask_wtf import FlaskForm from wtforms import StringField from wtforms.validators import DataRequired from wtforms.fields.html5 import DateField from wtforms.validators import DataRequired class EventsForm(FlaskForm): city = StringField('city') date = StringField('date') from_date = DateField('date',...
[ "pelar1992@mail.ru" ]
pelar1992@mail.ru
f48df9f0bb342216d37d09d9789d9bc31d5bf374
d63338e7b697f1ada2ef0da9dcccbdc2922fe358
/cli/diaspora/models.py
b7204082a5272fc8079f011eb9720c2c368c9f09
[]
no_license
panchorifa/diaspora
39eabd8036242244c49ee5fdca45e06db95e2bbb
b28cabd994bbf0fadd6a900851a8b9be6b09437d
refs/heads/master
2021-07-09T04:06:51.667980
2017-10-02T11:59:09
2017-10-02T11:59:09
104,109,192
0
0
null
null
null
null
UTF-8
Python
false
false
1,901
py
""" diaspora models """ import datetime import operator class StreamPost(object): def __init__(self, post): self.author = post['author_name'].encode('utf-8').strip() self.time = post['post_time'] self.likes = "{}".format(post['post_likes']) self.reshares = "{}".format(post['post_re...
[ "victor@1910.io" ]
victor@1910.io
44465a4a6db8996eacce62966259ef8c47a0909e
1915774790a77a630c00e70738ac41a315f5a2cb
/doorscalc/migrations/0034_order.py
0f5f4e76a216a981d62729e85601dd332467b201
[]
no_license
coconutcake/hajduktools
842948646d2e8d3368b4d420d73bba981d649d43
6f9e678a1168195d77d1163bc9145205d03bb141
refs/heads/master
2020-07-02T20:02:19.914649
2019-09-13T17:44:05
2019-09-13T17:44:05
201,648,138
0
2
null
null
null
null
UTF-8
Python
false
false
1,456
py
# Generated by Django 2.1.11 on 2019-08-21 11:08 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('doorscalc', '0033_auto_...
[ "contact@mign.pl" ]
contact@mign.pl
67032eeb4f2ea4129a550c569f568b99688b109e
c9952dcac5658940508ddc139344a7243a591c87
/lab/lecture/reader1.py
d3885dfb767c08b06da281dc2472b7af0b93c299
[]
no_license
wongcyrus/ite3101_introduction_to_programming
5da1c15212528423b3df91997327fe148abef4de
7cd76d0861d5355db5a6e2e171735bee2e78f829
refs/heads/master
2023-08-31T17:27:06.193049
2023-08-21T08:30:26
2023-08-21T08:30:26
136,574,036
3
2
null
2023-08-21T08:30:28
2018-06-08T06:06:49
Python
UTF-8
Python
false
false
44
py
message = input('Message? ') print(message)
[ "cywong@vtc.edu.hk" ]
cywong@vtc.edu.hk
007f23698d6912bc77866da737020febfb52d7a3
084b7fbcaecf589546d89b825d03e8861fec0f07
/mdx_bib/styles.py
ec47b9ea2cadd6b74c08ae1be7c144aa6b85aa2c
[ "MIT" ]
permissive
tramebleue/mdx_bib
b9e6d3f5cd696ff0baca69eeb84c114db1da8aae
34e978ef4804d22b40ecc3438f1ebe266bfa9225
refs/heads/master
2020-04-20T13:11:15.436648
2019-02-02T20:11:15
2019-02-02T20:11:15
168,862,224
0
0
null
2019-02-02T18:14:08
2019-02-02T18:14:08
null
UTF-8
Python
false
false
1,446
py
from pybtex.style.formatting.unsrt import Style, date, pages from pybtex.richtext import Symbol, Text from pybtex.style.formatting import toplevel from pybtex.richtext import Text, Tag from pybtex.style.template import ( field, first_of, href, join, names, optional, optional_field, sentence, tag, together, word...
[ "christophe.rousson@gmail.com" ]
christophe.rousson@gmail.com
fd02c276130026302ff9adbde59149419c9895ca
dd60abfce153fe980443e19ca830e314e0d2bdde
/pandas/core/array_algos/take.py
30529ae62f56f5025010c26a3797019014f7d559
[ "BSD-3-Clause" ]
permissive
datapythonista/pandas
f4111081e22d2fdd608f5ad6b05d76f9f08dbf6c
54bf475fd4d38a08a353a47e44dfecce24cdfb4b
refs/heads/main
2023-06-26T01:03:42.644407
2023-06-23T21:20:49
2023-06-23T21:20:49
29,217,872
2
1
BSD-3-Clause
2021-07-05T20:58:13
2015-01-13T23:53:20
Python
UTF-8
Python
false
false
20,920
py
from __future__ import annotations import functools from typing import ( TYPE_CHECKING, cast, overload, ) import numpy as np from pandas._libs import ( algos as libalgos, lib, ) from pandas.core.dtypes.cast import maybe_promote from pandas.core.dtypes.common import ( ensure_platform_int, ...
[ "noreply@github.com" ]
noreply@github.com
f3c1cedc3effb5981e3dc9a4b38161f343dc0da1
27877bd13142480f8f23f344519ba8851d97dce5
/pyheos/source.py
a3de6c06e0f14243691456e4a3b8eadfcf2b663e
[ "MIT" ]
permissive
nellering/pyheos
48a4ee3a62b6bb997cadf6cae9fb2e6ac51300c6
f66115e8ef432adf729e98ab3fbffb748ab0c03e
refs/heads/master
2020-05-16T08:00:44.970190
2019-04-19T00:55:11
2019-04-19T00:55:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,927
py
"""Define the heos source module.""" from typing import Optional, Sequence # pylint: disable=unused-import class InputSource: """Define an input source.""" def __init__(self, player_id: int, name: str, input_name: str): """Init the source.""" self._player_id = player_id # type: int ...
[ "6730289+andrewsayre@users.noreply.github.com" ]
6730289+andrewsayre@users.noreply.github.com
bd9b3e6313ea6387c3ad74cf5a29de28b414e98c
c24cc0544ff838b8eb837b941bf2425ce7895293
/eggs/__init__.py
5587e8f54e093b901242ce4f0b28eb5a8d58da44
[]
no_license
mscroggs/readthedocstest
16d9fc35f841a4398fc2e47e36016dc86f102564
f0750170fe8aab0e69281eb8c98d9c513f9832c8
refs/heads/master
2021-01-01T16:22:31.053270
2017-07-21T08:01:18
2017-07-21T08:01:18
97,815,926
0
0
null
null
null
null
UTF-8
Python
false
false
37
py
from eggs import * from oil import *
[ "matthew.w.scroggs@gmail.com" ]
matthew.w.scroggs@gmail.com
1d1da31e0e1695d3f6ffc21265e6affb90838a5c
921914140ffa6960a6fa012712edcb8017e89835
/src/models/pcfg.py
2e7843ccadea679a0f851ccf42695a76ee49de5d
[ "Apache-2.0" ]
permissive
plai-group/tvo_playground
255cfd414399527dc238fc686e100476f1f18c43
47ecb62eaa01741deca57009eade754d40a04cb9
refs/heads/master
2023-04-27T11:20:30.626656
2023-04-14T16:45:31
2023-04-14T16:45:31
344,283,565
0
0
null
null
null
null
UTF-8
Python
false
false
26,216
py
import torch import torch.nn as nn import src.models.pcfg_util as util from torch.distributions import * from src.models.base import ProbModelBaseClass import numpy as np class GenerativeModel(nn.Module): def __init__(self, grammar, production_probs_init=None, max_depth=30): super(GenerativeModel, self)._...
[ "vadmas@cs.ubc.ca" ]
vadmas@cs.ubc.ca
3c94abe2f34bdb6f6c5aca4fdebf3308176a9065
01e73c10d9be842e1cdebd012ed72e660f67d454
/estate/estate/utils/regex_tool.py
f045787013219f6ac29b7e7af35897aaad909990
[]
no_license
netquake/wonder
b759b7ce2972a12a05cbb4f7b773e9ace3e54f23
ce895fc59c8aec261f09deee47b53a6dfee9c30c
refs/heads/master
2022-08-07T20:55:44.125995
2020-08-23T14:59:48
2020-08-23T14:59:48
229,778,551
0
1
null
2022-07-29T22:39:36
2019-12-23T15:31:40
Python
UTF-8
Python
false
false
268
py
from re import compile class RegexTool(object): FLOAT_LOADER = compile('[\x00-\xff]*') @classmethod def read_float_from_string(cls, string): f = cls.FLOAT_LOADER.search( string ).group() return float(f) if f else 0.
[ "barry.paneer@qq.com" ]
barry.paneer@qq.com
116f8e435fb5d8680cbfdfa1bcd1a10fcf0d6ffb
e5bfc56a518b55ca0cea703235802d69124b45a9
/largest.py
9d521e6c7082686bd96da95b8cb78e178be0dc77
[]
no_license
Arunsinistersixsix/python-class-cek
7e8835f212581f292344e267b093a3dbbb8f302f
20eaa80464b7ed8e33e33b1003ee39cbe93c46ee
refs/heads/master
2021-06-24T07:07:55.871841
2019-09-19T10:20:20
2019-09-19T10:20:20
209,255,513
0
0
null
2021-03-20T01:43:36
2019-09-18T08:17:38
HTML
UTF-8
Python
false
false
77
py
if(int(input("a:")))>(int(input("b:"))): print("a") else: print("b")
[ "arunakar47@gmail.com" ]
arunakar47@gmail.com
492325495aaa4defd61051a6238326be058f6737
b956020dacc1fdd6c6dcaf5fc79a74ad12731b89
/words_list.py
3492d8ca1ae3da66740c34f61109d864b1e1c8db
[]
no_license
Nikhil0417/Text-document-manipulation
f72a35ce69a33f02bfaa468ae60a10d56cfb0618
6a53129f94746392a27b9fcde9c345344a88660f
refs/heads/master
2021-09-01T15:24:22.096194
2017-12-27T17:35:41
2017-12-27T17:35:41
114,145,544
0
0
null
2017-12-27T17:37:30
2017-12-13T16:46:41
Python
UTF-8
Python
false
false
202
py
fname = input("Enter file name: ") fh = open(fname) lst = list() for line in fh: line.rstrip() words = line.split() for word in words: if word not in lst: lst.append(word) lst.sort() print(lst)
[ "noreply@github.com" ]
noreply@github.com
c0fda12954d82dd3a44313c715b0d476d2c87363
e5eec1428da1d24d3e9b86f5723c51cd2ca636cd
/백준 삼성역량테스트기출/시험감독.py
4c3226fd88492be95fe560c0c9ef3c4b27668a7e
[]
no_license
jamwomsoo/Algorithm_prac
3c36c381f59277721517d331a8f1640399d80c1d
8393f3cc2f950214c47f3cf0b2c1271791f115d0
refs/heads/master
2023-06-09T06:49:14.739255
2021-06-18T06:41:01
2021-06-18T06:41:01
325,227,295
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
n = int(input()) a_lst = list(map(int, input().split())) b, c = map(int, input().split()) total = 0 for i in range(n): total+=1 a_lst[i] -= b if a_lst[i] > 0: total += a_lst[i]//c z = a_lst[i] % c if z > 0: total+=1 print(total)
[ "41579282+jamwomsoo@users.noreply.github.com" ]
41579282+jamwomsoo@users.noreply.github.com
f23936e9589cd748e56c95468b5690c8f6aa9a39
b270488062050a0354f2ece1fd4ac2a47572403a
/Lab_5/NLP.py
4936592e24f2dcf2821e6944c759fa0263e26bdf
[]
no_license
cfcastaneda98/CS2302
960f766778c4d7c610823fcec11714240a326548
9ef205b75522fb54cfbdafbcb4669a71999ca0c0
refs/heads/master
2020-04-21T20:13:35.492006
2019-05-12T22:11:07
2019-05-12T22:11:07
169,836,167
0
0
null
null
null
null
UTF-8
Python
false
false
13,594
py
""" Author: Carlos Fernando Castaneda Class : CS 2302 Date Modified: April 1, 2019 Instructor: Olac Fuentes Assingment: Lab 5 Natural Language Processing TA: Anindita Nath & Maliheh Zaragan Purpose: to implement hash tables in order to compare its running times and to succesfully find the comparison of two g...
[ "noreply@github.com" ]
noreply@github.com
2f746d428074ccf9e4a6d0998467d09acddf52c4
012c8089c575d47f3b47ee97a1c58a1c8a34e940
/Snakefile
215f574b04cc173e4458db8119bc031ada80989d
[]
no_license
paraslonic/peptideSearch
35523eaa4f2816235a1b4a2db9f395925172e5c7
5adcf4372150bb6e2772b5cbac56991c69fbc0a6
refs/heads/master
2022-12-12T14:43:38.498440
2020-09-18T10:40:37
2020-09-18T10:40:37
296,578,369
0
0
null
null
null
null
UTF-8
Python
false
false
396
pepbatches,=glob_wildcards("peptides/{batch}.fasta") iwant = [] iwant.append(expand("blast/{batch}.out", batch = pepbatches)) rule all: input: iwant rule blast: input: "peptides/{batch}.fasta" output: "blast/{batch}.out" shell: "blastp -db uniprot_human -query {input} -outfmt '6 std n...
[ "paraslonic@gmail.com" ]
paraslonic@gmail.com
2cbd45af7d26fd7efc079cde6e33ae3cf3e2f982
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_143/ch118_2020_03_29_04_35_07_099201.py
d8962c300590a574cb248be19c49e2d9ef558047
[]
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
275
py
import math def snell_descartes(n1, n2, o): y=(n1/n2) x=math.sin(math.radians(o)) z=x*y o2= math.asin(z) o2=math.degrees(o2) return o2 def reflexao_total_interna (n1, n2, o2): if (n2*o2)/n1 == o2: return True else: return False
[ "you@example.com" ]
you@example.com
fe84d2018b258a3987ff9a8286c8b1bfd285391b
14a93a8d9a75bb5a9d115e193931d6291910f054
/mdl.py
c84fc27cb49798aa9314ff720ef556c92ea4ecfa
[]
no_license
Sujay2611/Coding
94a4f24fa5665d807fb2a95f8aa67c7fa8e9e518
67d95d4183592cdb6f92e81f38a88664273e117a
refs/heads/master
2023-01-11T03:02:04.439617
2022-12-30T10:13:47
2022-12-30T10:13:47
244,128,290
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
t=int(input()) for _ in range(t): n=int(input()) a=[int(x) for x in input().split()] x=max(a) y=min(a) if(a.index(x)>a.index(y)): print(y,x) else: print(x,y)
[ "noreply@github.com" ]
noreply@github.com
a6681169fe270861ab20c12bb9dd080537671d0c
80ae9b5cfb45b6e9cf7873ef7c46e17e117e4019
/data/HackerRank-ProblemSolving/Is This a Binary Search Tree.py
731ae39593eed79cc53c99eb8fef64bfffb5dc12
[]
no_license
Ritvik19/CodeBook
ef7764d89b790e902ede5802f36d5ca910d8a50e
2b4ed7938bbf156553d6ba5cba6216449528f0fc
refs/heads/master
2021-07-04T08:25:52.478719
2020-08-08T06:54:14
2020-08-08T06:54:14
138,744,302
3
0
null
null
null
null
UTF-8
Python
false
false
437
py
""" Node is defined as class node: def __init__(self, data): self.data = data self.left = None self.right = None """ def check_binary_search_tree_(root): return check_node(root, -1, 10001) def check_node(node, Min, Max): if not node: return True if Min < node.data < M...
[ "rastogiritvik99@gmail.com" ]
rastogiritvik99@gmail.com
54b259ab6197ca64e49fda03669d339629eb117b
78032757dac6a3052354bc5c9675cbfa385de2d2
/graph/Minimum Passes in A matrix/Solution.py
2e2b86ee0e06859c4679d3a8cd0614ffb1b3948b
[ "MIT" ]
permissive
joydeepnandi/Algo
77ce7c8362c37bb183751f32423d1805c4385617
1c5c49cb172c47cad7df81dc9b66fedbacbb5b55
refs/heads/main
2023-07-11T14:27:00.612183
2021-08-15T13:52:02
2021-08-15T13:52:02
383,427,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,097
py
def minimumPassesOfMatrix(matrix): # Write your code here. passes= convertNegatives(matrix) return passes-1 if not containsNegative(matrix) else -1 def convertNegatives(matrix): q=getPositivePos(matrix) passes=0 while q: size=len(q) while size>0: currentRow,currentCol=q.pop(0) ad...
[ "noreply@github.com" ]
noreply@github.com
8d80eb9f24d23ee3639b061d0166638fbdc587f2
9587a5f81827714982e8671021ca9dece642788c
/monotonic.py
767a44fe80b6d3ac265e5259b9fc8a840a076faa
[]
no_license
ConstantDelta/proganone
02966164635fad6712ed439abf9f99038b8206dc
a05367aeffd42d2f42a0b635111d1587efeba855
refs/heads/main
2023-08-23T00:50:35.333145
2021-11-05T21:11:31
2021-11-05T21:11:31
417,240,887
0
0
null
null
null
null
UTF-8
Python
false
false
541
py
import random from random import randint def is_monotonic(nums): result = False increases = 0 decreases = 0 len_nums = len(nums) for i in range(len_nums - 1): if nums[i] > nums[i + 1]: decreases += 1 elif nums[i] < nums[i + 1]: increases += 1 ...
[ "noreply@github.com" ]
noreply@github.com
f471c218aea9af6624f66a10317c7ddfcc4a7c1b
3e74b2d423d7b4d472ffce4ead1605621fb2d401
/doubletdetec/script.py
f25271fc20f2cb73a4092cfc37cf2636d0f22b16
[]
no_license
jamesjcai/My_Code_Collection
954988ee24c7bd34139d35c880a2093b01cef8d1
99905cc5d063918cbe6c4126b5d7708a4ddffc90
refs/heads/master
2023-07-06T07:43:00.956813
2023-07-03T22:17:32
2023-07-03T22:17:32
79,670,576
2
4
null
null
null
null
UTF-8
Python
false
false
1,033
py
import os import pandas as pd import numpy as np import doubletdetection as dd os.chdir("U:\\GitHub\\My_Code_Collection\\doubletdetec") counts=pd.read_csv("Xsmall.csv").values #clf = dd.BoostClassifier() #labels = clf.fit(raw_counts).predict() #scores = clf.doublet_score() #counts = np.random.poisson(size=(500, 100...
[ "jamescai@genomezoo.net" ]
jamescai@genomezoo.net
cce36302df9fb42d1bdc253baf59ec4f7fa2ab77
0c1f83fc30a6fcb8ceb3740da77b23bec7151652
/quis/quiz_tut.py
68cefc3838f72f7727f359c8c03590897525ac03
[]
no_license
smer44/python_evo
ab09c2dbbc3d415e312672977db873a91e508d69
a43fe15113e0f51a10c6097a1c1e988a16cddc44
refs/heads/master
2023-03-28T14:11:08.335598
2021-04-03T21:38:11
2021-04-03T21:38:11
320,589,458
0
0
null
null
null
null
UTF-8
Python
false
false
3,137
py
import tkinter as tk import tkinter.font as font class Quis: def __init__(self, data): self.window = tk.Tk() self.data= data self.correct_answers = 0 self.myFont = font.Font(family='Helvetica', size = 20) self.ques...
[ "peter4i4ik@gmail.com" ]
peter4i4ik@gmail.com
b1cbf86996f5ea37516b9cff3485b1b37a7431e2
ab45f59323869b6192f9b1093823685171ea6d8d
/MachineHypermediaToolkit/schema/Schema.py
517f27ea46fce16a96f4e172dd3f57f8afcdbb02
[ "Apache-2.0" ]
permissive
connectIOT/MachineHypermediaToolkit
860f50103a66609e0d5c62b80cda26a9334f9a89
ac1a5b247a41063cfb64fbb68a76f807fe62d84f
refs/heads/master
2021-01-10T13:14:51.494412
2017-02-27T15:49:16
2017-02-27T15:49:16
50,071,213
3
1
null
null
null
null
UTF-8
Python
false
false
1,503
py
""" schema for abstract resource models """ import MachineHypermediaToolkit.terms as v import json class Schema: def __init__(self, schema=None): self._schema = {} self._nodeArray = [] if schema: self._schema = schema self._elementArray = schema[v._resource] ...
[ "michaeljohnkoster@gmail.com" ]
michaeljohnkoster@gmail.com
16ac513c45dd82a92c2c6c59f11827ee675e6ced
559455504629bd5d578745c0c9e73c7802ceb2df
/code/main.py
51bb028bae060c3f429a77ff5ce4727fd6f88c5a
[]
no_license
chanmi168/CompressedSensingJHU
6833a42ddc19bbeae13b7dd9f723606adde99d99
2c2dffd76e1cff28ee339ebc85dbfe7b6e3dbcfb
refs/heads/master
2021-01-24T16:20:24.692734
2018-05-17T03:09:34
2018-05-17T03:09:34
123,187,274
0
1
null
null
null
null
UTF-8
Python
false
false
8,047
py
# Michae's tryout on torchvision ResNet import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torchvision from torchvision import datasets import torchvision.models as models from torch.utils.data import Dataset, DataLoader from torchvision import transforms from torch.au...
[ "mchan32@jhu.edu" ]
mchan32@jhu.edu
3fb332f428c5254810061e3dd8eb5293bcfdcc6d
a235448520bb719e3e88a50acbf835749093e9df
/tKGR/database_op.py
6727d690a192fcb8e0a14a132d46207bf3fde3d4
[]
no_license
moguizhizi/xERTE
aeceaf443b6afc5f0d5e5e19a18b4bdc0c78016d
d7a55d1c692cc97cdff8dde131093217dc6ea082
refs/heads/main
2023-04-05T17:49:53.393523
2021-04-13T13:39:51
2021-04-13T13:39:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,444
py
import os import sys import time from copy import deepcopy from bson.objectid import ObjectId from typing import List import sqlite3 from sqlite3 import Error import pymongo PackageDir = os.path.dirname(__file__) sys.path.insert(1, PackageDir) class DBDriver: def __init__(self, useMongo: bool = False, useSqlite...
[ "ubuntu@ip-172-31-40-172.eu-central-1.compute.internal" ]
ubuntu@ip-172-31-40-172.eu-central-1.compute.internal
b550022c8996e1254ad04bbc6e68d43f9a20036d
8bbeb7b5721a9dbf40caa47a96e6961ceabb0128
/python3/745.Find Smallest Letter Greater Than Target(寻找比目标字母大的最小字母).py
a515ae5b4ea2c96f75d6260137b0d993b0a8432c
[ "MIT" ]
permissive
lishulongVI/leetcode
bb5b75642f69dfaec0c2ee3e06369c715125b1ba
6731e128be0fd3c0bdfe885c1a409ac54b929597
refs/heads/master
2020-03-23T22:17:40.335970
2018-07-23T14:46:06
2018-07-23T14:46:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,576
py
""" <p> Given a list of sorted characters <code>letters</code> containing only lowercase letters, and given a target letter <code>target</code>, find the smallest element in the list that is larger than the given target. </p><p> Letters also wrap around. For example, if the target is <code>target = 'z'</code> and <cod...
[ "lishulong@wecash.net" ]
lishulong@wecash.net
1094a919ee00b4136d877401a04011ef4e3c2f08
7b358c3af9b1d10ace466d492909c90b8937bb38
/models/utils.py
865c6c5c51e79993de84c555ce0805b820531d9a
[ "Apache-2.0" ]
permissive
shibaji7/model.CODE_BASE
b3090b0aa88c62e0fe62cb1b6c8bbca196b9e674
1ef8cffbbde1dbb05c405aedd1c0cac612ac6330
refs/heads/master
2023-04-11T13:07:52.722081
2021-09-23T02:47:25
2021-09-23T02:47:25
276,458,519
0
0
null
null
null
null
UTF-8
Python
false
false
18,464
py
#!/usr/bin/env python """utils.py: utils is dedicated to utility functions.""" __author__ = "Chakraborty, S." __copyright__ = "Copyright 2020, SuperDARN@VT" __credits__ = [] __license__ = "MIT" __version__ = "1.0." __maintainer__ = "Chakraborty, S." __email__ = "shibaji7@vt.edu" __status__ = "Research" import os imp...
[ "shibaji7@vt.edu" ]
shibaji7@vt.edu
10ba96abd7fbec0f39742d29991a6863ac7d558b
17c14b758959cdceec0dce8f783346fdeee8e111
/chap05_nlp/sequence_labeling/eng_model/main.py
9bc95c095d4eb0780ca8db2ad4280e23fd2c0801
[]
no_license
yurimkoo/tensormsa_jupyter
b0a340119339936d347d12fbd88fb017599a0029
0e75784114ec6dc8ee7eff8094aef9cf37131a5c
refs/heads/master
2021-07-18T12:22:31.396433
2017-10-25T01:42:24
2017-10-25T01:42:24
109,469,220
1
0
null
2017-11-04T05:20:15
2017-11-04T05:20:15
null
UTF-8
Python
false
false
1,871
py
import os from eng_model.data_utils import get_trimmed_glove_vectors, load_vocab, \ get_processing_word, CoNLLDataset from eng_model.general_utils import get_logger from eng_model.model import NERModel from eng_model.config import config try : # directory for training outputs if not os.path.exists(config...
[ "tmddno1@naver.com" ]
tmddno1@naver.com
5663d5a42857c62bef05718c08bf277bbac81e9d
d1e2558cd0c4468d8f85c9198d2f03070ec227a3
/test_600510591.py
ba9fe1e83f51c49beebe2f874e66ad4c4ddbc197
[]
no_license
amontheera-gy/git-workshop-2017
8e89554dd48773d285f02c939748e9c0116f6356
b165c2cf9968d9f4049821735fc9096dbcc73b70
refs/heads/master
2021-04-09T11:58:34.832336
2018-03-11T08:04:57
2018-03-11T08:04:57
124,730,080
0
0
null
2018-03-11T06:32:26
2018-03-11T06:32:25
null
UTF-8
Python
false
false
127
py
def main(): a = int(input()) b = int(input()) x = a*(b**2); x = x/3 if __name__ == "__main__": main()
[ "sun-sun_shawol@hotmail.com" ]
sun-sun_shawol@hotmail.com
02071689f5953babf59c3f59f50627be0762c4ef
fc0fd6c61376ae5211d7f873374b095cfd44b9f3
/api/api/crud.py
e903bacbd156540b836d60ac9e52b360da43c75d
[]
no_license
AthulMuralidhar/rss-scraper
a575de951c99bbf034f781a9117f0f16f6b90ab3
c02b34a1909d1ea1e14000f980dbbc2323d62567
refs/heads/main
2023-06-18T22:17:54.314552
2021-07-20T07:43:11
2021-07-20T07:43:11
383,718,384
0
0
null
null
null
null
UTF-8
Python
false
false
1,064
py
import ipdb from sqlalchemy.orm import Session from .models import User, FeedItems from .schemas import UserCreate, FeedItemCreate def get_user(db: Session, user_id: int): return db.query(User).filter(User.id == user_id).first() def get_user_by_email(db: Session, email: str): return db.query(User).filter(U...
[ "athul.m68@gmail.com" ]
athul.m68@gmail.com
7e3d11d2439dcaeaa75efe1e10f4e9c63e3bf655
a07ff16550397b3433a185da34cc19379da31c26
/day07/movie_choice_01.py
9e1b4e7ccf67e4df11a2f10265e3fc89c568ce8b
[]
no_license
gangys0411/python
c349dc5be41488e4632bd775925bc503b61067be
dd6a2c5cd4e25cfe0442fe8d3f97ca0444e789b7
refs/heads/master
2020-06-08T06:37:47.671495
2019-07-11T13:55:23
2019-07-11T13:55:23
193,178,789
0
0
null
null
null
null
UTF-8
Python
false
false
623
py
# -*- coding: utf-8 -*- # UTF-8 encoding when using korean movies = ["Batman", "Harry Porter", "Scream", "Happy Dog"] #for 문을 이용하여 movies 안에 있는 영화 제목을 모두 출력합니다. print "영화 목록 : " for movie in movies: print("%s " % movie) # 사용자에게 어떤 영화를 볼지 질문을 출력합니다. print "관람할 영화를 선택해 주세요" choice = raw_input() #while 문을 이용하여 선택한...
[ "gangys0411@gmail.com" ]
gangys0411@gmail.com
9ceabedb19f991cf57f0828813b8c488db7de6e2
204217d7aa03e7f7567d74cf6bc41ad39a82c629
/video_input.py
9bb2bf891ee32761bef0299c06369c35a76a4e8b
[]
no_license
XYudong/BuzzardDetector
e894de7dc9f720f2c1cbaf3141b5333e80551985
1d072c9d1d8ff5f017e6ea85cad2bfb125beae47
refs/heads/master
2020-04-08T22:08:38.148956
2018-12-11T04:11:45
2018-12-11T04:11:45
159,773,895
0
0
null
null
null
null
UTF-8
Python
false
false
955
py
import numpy as np import cv2 """extract and images from a video""" video_idx = 9 path_to_video = "data/video/new/video2_" + str(video_idx) + ".mp4" path_to_image = "data/video/image2/" cap = cv2.VideoCapture(path_to_video) i = 0 while True: # Capture frame-by-frame ret, frame = cap.read() if frame is N...
[ "leon.yuyudong@hotmail.com" ]
leon.yuyudong@hotmail.com
7d82921518464ce7f2a717c5b1a78f77df5a4884
0334280e95b0239e36f286013744401084ecc737
/Ej7.py
2db50cdfdb44a6cbe1e8c8af78c12391cf6ae1d2
[]
no_license
SamantaGomez/tkinter
304f9cdb4de4b5912750f7e60dee805488bec2f6
76ce8e57d7684ba4868563005dfe23de5a9c7abb
refs/heads/master
2020-05-24T09:50:00.210846
2019-05-17T14:17:30
2019-05-17T14:17:30
187,215,212
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
from tkinter import * master = Tk() var1 = IntVar() Checkbutton(master, text="Hombre", variable=var1).grid(row=0, sticky=W) var2 = IntVar() Checkbutton(master, text="Mujer", variable=var2).grid(row=1, sticky=W) mainloop()
[ "noreply@github.com" ]
noreply@github.com
cede73216293a8ce2fb462daf6702e71a3c0f983
51885da54b320351bfea42c7dd629f41985454cd
/abc023/d.py
44e56efe280652514dbc388ca3b19c414d04f3e6
[]
no_license
mskt4440/AtCoder
dd266247205faeda468f911bff279a792eef5113
f22702e3932e129a13f0683e91e5cc1a0a99c8d5
refs/heads/master
2021-12-15T10:21:31.036601
2021-12-14T08:19:11
2021-12-14T08:19:11
185,161,276
0
0
null
null
null
null
UTF-8
Python
false
false
1,354
py
# # abc023 d # import sys from io import StringIO import unittest import bisect class TestClass(unittest.TestCase): def assertIO(self, input, output): stdout, stdin = sys.stdout, sys.stdin sys.stdout, sys.stdin = StringIO(), StringIO(input) resolve() sys.stdout.seek(0) out ...
[ "mskt4440@gmail.com" ]
mskt4440@gmail.com
14b48bbbf62470ff68ffb9122f28308444f5f2f1
25873da962b0acdcf2c46b60695866d29008c11d
/src/programr/clients/events/console/config.py
16a2c9b254edf08455d0a327b7f522385af6cbbc
[]
no_license
LombeC/program-r
79f81fa82a617f053ccde1115af3344369b1cfa5
a7eb6820696a2e5314d29f8d82aaad45a0dc0362
refs/heads/master
2022-12-01T14:40:40.208360
2020-08-10T21:10:30
2020-08-10T21:10:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,186
py
from programr.config.client.config import ClientConfigurationData class ConsoleConfiguration(ClientConfigurationData): def __init__(self): super().__init__("console") self._default_userid = "console" self._prompt = ">>>" @property def default_userid(self): return self._de...
[ "hilbert.cantor@gmail.com" ]
hilbert.cantor@gmail.com
178910e4f15626f235806824e33a9222ee63e9b0
308953409e1a3b828ac49b7301c1e751cbf762cf
/suite_EETc 12/tst_Open_Import_Export/test.py
4453463efcc939e846f44d4a6859e0aa61a262cf
[]
no_license
asthagaur1/danfoss-automation
4dcc7d8f000917b67e4d6f46ff862a525ddcbc5e
213a99d3375889cd0e0c801421a50e9fe6085879
refs/heads/main
2023-03-31T23:26:56.956107
2021-04-01T08:52:37
2021-04-01T08:52:37
353,627,845
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
def main(): excel = r"C:\gitworkspace\KoolProg-TestAutomation\Master_Functions\Test_Automation\SourceCode\suite_EETc 12\shared\testdata\Open_Import_Export.xls"; #Mapping with Global scripts for Function library and key action. source(findFile("scripts", "Functions.py")) source(findFile("scripts", "Actio...
[ "asthagaur@danfoss.com" ]
asthagaur@danfoss.com
c432fe4da6ceb9bab34a11508cde42551b6e2fc8
9e1216e21c2955bfe916a765645724b2f548d88d
/crushsim.py
e24b663986859877832e4fa0909e7c049ec33042
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
xdongp/CRUSHsim
aad2986eb052b5093fb3accaa364ee69e8bfb660
dbebf15a596ef1a506de8b538b9f00547c8b7d26
refs/heads/master
2020-12-11T08:15:01.559979
2015-06-19T19:44:40
2015-06-19T19:44:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,965
py
# ==================================================================== # CRUSHSim - CRUSH Simulation web app for Ceph admins # --------------------------------------------------- # # By Xavier Villaneau, 2015 # xavier.villaneau@fr.clara.net or xvillaneau@gmail.com # Claranet SAS, Rennes, France # ====================...
[ "xvillaneau@gmail.com" ]
xvillaneau@gmail.com
55fc6d2b39fe89bf2236b8eb70c0424438a1186b
ffe9c83622edcb896fc39345dad790c16f78804c
/algorithm/5_1_二叉树的最大深度.py
a8ee79f2c11c2d87d3ce3d9cf408979a3e30e812
[]
no_license
guanzizai1006/dataWhaleWithBruce
56fa34823de533d66c8c833ce4d4ce8e38225794
6ec6a9a648a8be208be0d5e71c5a157602869197
refs/heads/master
2020-06-29T14:49:27.141000
2019-08-26T12:17:11
2019-08-26T12:17:11
200,563,253
0
0
null
null
null
null
UTF-8
Python
false
false
656
py
int minDepth(TreeNode * root) { if(root == NULL) return 0; if(root->left == NULL && root->right == NULL) return 1; int left = minDepth(root->left) + 1; int right = minDepth(root->right) + 1; if(left == 1) //等于1说明没有左子树有右子树,为避免干扰结果,另其为一个...
[ "noreply@github.com" ]
noreply@github.com
56c90b4716f1cc14341f23413d49aaa8b0682632
a9e3f3ad54ade49c19973707d2beb49f64490efd
/Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/bulk_email/tests/test_views.py
d2ec21c3ba6ac57f01f91d77bfab7dc4daf89163
[ "AGPL-3.0-only", "AGPL-3.0-or-later", "MIT" ]
permissive
luque/better-ways-of-thinking-about-software
8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d
5809eaca7079a15ee56b0b7fcfea425337046c97
refs/heads/master
2021-11-24T15:10:09.785252
2021-11-22T12:14:34
2021-11-22T12:14:34
163,850,454
3
1
MIT
2021-11-22T12:12:31
2019-01-02T14:21:30
JavaScript
UTF-8
Python
false
false
3,247
py
""" Test the bulk email opt out view. """ import ddt import pytest from django.http import Http404 from django.test.client import RequestFactory from django.test.utils import override_settings from django.urls import reverse from common.djangoapps.student.tests.factories import UserFactory from lms.djangoapps.bulk_em...
[ "rafael.luque@osoco.es" ]
rafael.luque@osoco.es
3bd23eba3e700806f3122e17d9527ed471f46cde
a609f05150d73cae683ccffd9f892366277891f8
/orcid-crawler/database_pull_requests.py
3b54bcf0a2e8e2b3c8b2cfe0191f4529f4a63285
[]
no_license
bt3101-project-1/bt3101-project
f7e4ed7eafc6023ea0887cff3311ffffdc2f9377
2260bc7b1520bac5c0adabab35968ab3fa97f08b
refs/heads/master
2021-01-21T03:20:46.668560
2017-11-03T08:24:09
2017-11-03T08:24:09
101,890,028
0
1
null
2017-10-29T05:09:32
2017-08-30T14:15:50
JavaScript
UTF-8
Python
false
false
783
py
import csv from database_handler import * db_handler = DatabaseHandler() user_requests = db_handler.get_crawl_requests() crawler_inputs = [] for user_request in user_requests: request_id = user_request['_id'] university_id = user_request['universityId'] professor_ids = user_request['professorIds'] orig...
[ "moyujiao0515@gmail.com" ]
moyujiao0515@gmail.com
ddac1d2cfd519bf7e80784a018e0d3d053fdaec4
0bd597e1902332858a944bfcfe27670f0d9334e3
/Contoh 11_3 Penggunaan Tipe Data String.py
0bd47856293402975a4c8663b4af93231c37b1ee
[]
no_license
nikyayulestari/phyton-candy
2cd9d064204e49abe745b525bff403b627a1091d
7609a69be4acae57da4724b158030c2672253fb2
refs/heads/master
2020-08-23T13:58:17.719873
2019-10-21T18:01:23
2019-10-21T18:01:23
216,631,817
0
1
null
null
null
null
UTF-8
Python
false
false
440
py
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> kalimat = 'Saya berteriak, "Awas ada Phyton !!!"' >>> print kalimat Saya berteriak, "Awas ada Phyton !!!" >>> kalimat_panjang = 'Baris ini akan diatur menjadi \n 2...
[ "noreply@github.com" ]
noreply@github.com
7a7a11851b97214a13194eae2a9c435772e0952f
a831dc2adadb0d091a4f7915411e58550397084a
/serviceAnnouncer.py
da0332eea9916e3d9d4ec6b4a5edab840db8037f
[]
no_license
mehmetsenavci/Peer-to-Peer-Chat-Application
c80ed60690d7fd8568d48818fdbb96a9d2bdb0ee
c0a860236787bc870a279d755635e873d6321a50
refs/heads/master
2022-02-21T22:12:06.310327
2019-06-09T12:04:31
2019-06-09T12:04:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
import socket import json import time serviceAnn = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) serviceAnn.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) serviceAnn.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) # serviceAnn.settimeout(0.2) # serviceAnn.bind(("", 5000)) userna...
[ "mehmetsnvc@users.noreply.github.com" ]
mehmetsnvc@users.noreply.github.com
5d19eefec7fc353b8906d6017ba512d60c8c1bcd
76841b589b237fdc7876d03bed80dbb47b221968
/mysite/illusion/migrations/0011_filetest.py
5b4c6ea92dff74a6731a39a47bc823ef195fb32f
[]
no_license
developerbch/Style_Transfer-EagleAI
f706b2e1e62781622d47630f073507063d5789a3
1ba0f5b2f6ddd6387412ab1818e28e0fe2336fd6
refs/heads/master
2023-04-06T02:07:04.247152
2019-11-20T05:00:51
2019-11-20T05:00:51
220,609,276
1
0
null
2023-03-24T23:18:13
2019-11-09T07:49:07
CSS
UTF-8
Python
false
false
552
py
# Generated by Django 2.2.6 on 2019-10-28 13:11 from django.db import migrations, models import illusion.file_upload class Migration(migrations.Migration): dependencies = [ ('illusion', '0010_delete_contentimage'), ] operations = [ migrations.CreateModel( name='FileTest', ...
[ "51702197+developerbch@users.noreply.github.com" ]
51702197+developerbch@users.noreply.github.com
c9d6d29933fe6c85a7be665a5c63fc684fca925c
98e29cc86d200daaf31959d57c6251409b41810f
/lucid/misc/batching.py
292270453b7b6ddc0445d79f0fdbedd20c3a4fda
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
serviolimareina/lucid
e8e0c224de72e021be331f428daff36e14aa3896
c095b851da3ed4ff2b9c1992ee87d3e9be85c70a
refs/heads/master
2020-04-10T15:15:30.479655
2018-11-29T04:44:15
2018-11-29T04:44:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,276
py
# Copyright 2018 The Lucid Authors. 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 l...
[ "schubert@openai.com" ]
schubert@openai.com
153ee4cb687d579804101061864e1282c71f7112
25375837ad0de8bd1265054ebb4cac49ce2e7404
/problem009.py
f9c8659cc467ce0c851a58945baef3954a0d480b
[]
no_license
lorenswenson/project-euler
2908bb1c0c77885a87fdd843d2c3898d7a3bdd9a
db389e41f23042bbf437279a908e051c89f01dae
refs/heads/master
2021-09-06T19:10:43.192825
2018-02-10T05:44:31
2018-02-10T05:44:31
105,838,162
0
0
null
null
null
null
UTF-8
Python
false
false
538
py
""" A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a**2 + b**2 = c**2 For example, 3**2 + 4**2 = 9 + 16 = 25 = 5**2. There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product abc. """ def problem(): for a in range(1000): for b in range(a +...
[ "27909197+lorenswenson@users.noreply.github.com" ]
27909197+lorenswenson@users.noreply.github.com