blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
c5fa5fda6af41850d5525c2fbd4e5caab4f6ccee
73000d852404cc1fd3accfbfc8c83a0b88f6b4cb
/tests/test_xtbparser.py
17d521260fae33c10b5b68e03bef388a5d5191f7
[ "Apache-2.0" ]
permissive
nomad-coe/nomad-parser-xtb
1580f90a2d391c63c3d291bc6a698779d599be10
09894dc15511fe6a9e9938027a0c48786dcdc084
refs/heads/master
2023-06-20T16:41:18.147131
2021-07-14T21:55:22
2021-07-14T21:55:22
386,077,099
1
0
null
null
null
null
UTF-8
Python
false
false
1,111
py
# # Copyright The NOMAD Authors. # # This file is part of NOMAD. See https://nomad-lab.eu for further info. # # 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/licen...
[ "ladinesalvinnoe@gmail.com" ]
ladinesalvinnoe@gmail.com
fb28d6bd690ff888dfd3ea29b317ae4cf3d2be7a
8eca0a7a9ae207113f9f9ed98d093cbe21ffcd8a
/Maths_based_problems/grid_unique_paths/solution2_dp.py
eed4c34ad0482d36605fb37189b7a03c658eb218
[]
no_license
Ranjit007ai/-Interviewbit-Maths
3238c720bb5e0765eef0e0e1a39549eff1ba788d
044627422fc38ee3e5aaa9cbfc8f00398d1f9bb5
refs/heads/main
2023-03-25T06:06:14.206384
2021-03-27T14:38:16
2021-03-27T14:38:16
352,065,531
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
def unique_paths(m,n): dp = [[0]*n for _ in range(0,m)] # each position in dp show the no of way to reach their # now the first row and first col will be 1 ,since their is 1 way to traverse from one position to another in single row or column vector for row in range(0,m): dp[row][0] = 1 ...
[ "noreply@github.com" ]
Ranjit007ai.noreply@github.com
7ba0a06d9808d2f9a578e5b737327d2a711235eb
04a6f0914b128251bbd032bf13fbbfddb3c4eaa7
/pythonbind/src/head.py
8f67231978aa717ed41f4eb826b0187e5779b55a
[]
no_license
YulinWu/qos_public
a8d6eb4cba65a17e292f7d072bfb6728e95c7815
58cb67f62c285d70f86cb8a79d147610abb7ff3f
refs/heads/master
2022-12-30T22:17:09.310242
2020-10-16T05:38:02
2020-10-16T05:38:02
304,203,187
0
1
null
2020-10-16T05:38:04
2020-10-15T03:48:59
Java
UTF-8
Python
false
false
3,284
py
import jpype import jpype.imports from jpype.types import * import os def matchArgument(patterns, args): if len(patterns) != len(args): return False for p, v in zip(patterns, args): if p.startswith('@NonNull ') and v == None: return False if p.startswith('@NonNull '): ...
[ "zhao.uv@gmail.com" ]
zhao.uv@gmail.com
c0355743b4fe4bb2b1c3a1515697ae7ad09aba3e
10c9699a6f2f2af4986048b53e44bb063312c3cd
/StudentAnalysis/accounts/models.py
b8f83e1cb3a24f9aaa72325b44ba079324ed877f
[]
no_license
vagdevik/GDG-VIT-Hackathon
60dea9e9a187825dde7854c8c3cff6e8f24cf690
0eb00ae8bf3b2122cbf4e3789a7ce544ff405799
refs/heads/master
2021-05-07T18:21:27.411760
2017-10-30T04:19:43
2017-10-30T04:19:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.contrib import auth # class User(auth.models.User, auth.models.PermissionsMixin): # # def __str__(self): # return "@{}".format(self.username)
[ "abhishek.m15@iiits.in" ]
abhishek.m15@iiits.in
b3096c51d5f0148b23157700f003b048c28d4cb6
efd6c1d24b0a392a177679429d53dd2f515d0d95
/bi_auth/migrations/0001_initial.py
fd577d05d960ad8b413cd4b9a52c1be60fe0f81b
[]
no_license
mitshel/TakedaAnalitic
5ccfb4aa83a056cbeaebce03df41819c7ece7985
b04b08fb053bff238a1ce68df423f99314827b48
refs/heads/master
2021-07-02T21:27:10.023816
2019-02-14T14:32:18
2019-02-14T14:32:42
153,908,777
0
0
null
null
null
null
UTF-8
Python
false
false
979
py
# Generated by Django 2.1.2 on 2018-12-15 11:16 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), ] ope...
[ "mitshel@mail.ru" ]
mitshel@mail.ru
9004a5e73ad5c6897f0e9b223cb0cbfb05dd568f
5b301fb18d62953cbf48e284594abe9e14ae90d9
/hyperbolic/euclid/origin_line.py
7b6431e6d2b143972ab8adfd1ab5dd4fd364c572
[ "MIT" ]
permissive
cduck/hyperbolic
70ba6bec20aae2e7d63382ffb25ed5b491c61496
bebe9b546e12f28d76ed07d0a2d9954d9d143571
refs/heads/master
2023-08-21T22:36:13.504014
2023-02-27T02:42:04
2023-02-27T05:01:31
115,620,902
119
30
MIT
2023-09-01T13:58:35
2017-12-28T12:24:28
Python
UTF-8
Python
false
false
893
py
from . import line class OriginLine(line.Line): def __init__(self, px, py): self.px = px self.py = py def to_line(self): return line.Line(0, 0, self.px, self.py) @property def x1(self): return 0 @property def y1(self): return 0 @property def x2(self): return sel...
[ "cduckering@gmail.com" ]
cduckering@gmail.com
1a5dd463ef4a3efe08755888c769206aba42c6a0
70f58b1dba311ea632257c7262c143f410378051
/corona/index.py
cc46ba839a4966150b4805cb64995c8d68071581
[]
no_license
azizyilmaz/data-analysis-with-python
e295488ae7f0d938a4d0422d06801c1241794763
2ee39d3bf3d72e5b43a785ba4690cb21e1666966
refs/heads/master
2022-11-18T09:21:14.390509
2020-07-12T21:45:14
2020-07-12T21:45:14
277,184,867
0
0
null
null
null
null
UTF-8
Python
false
false
734
py
import pandas dataset = pandas.read_csv("corona/coronavirusdata/covid_19_data.csv") print(f'Covid19 veri listesi:\n{dataset}') print(f'Satır ve sütun sayıları:\n{dataset.shape}') print(f'Sütunları:\n{dataset.columns}') print(f'Veri tipleri:\n{dataset.dtypes}') print(f'İlk 10 veri listesi:\n{dataset.head(10)}') p...
[ "azizxyilmaz@outlook.com" ]
azizxyilmaz@outlook.com
1bab277d30cc4f1a009426a5f5951a2f5b8d1ff1
4453c7b7051fd47a8b2fe7d24f6be338dee830aa
/lostfound/mainapp/views.py
3a5e39dc5f1bd9cfc8c97bd93a0718a0070ea398
[]
no_license
travo-star/lost-and-found
c39f6a548698eab8ed6a2cdd75285d7509d36c18
d1fc17a9bb66d2b44f758f0cb9d5af90f59daa3b
refs/heads/master
2020-08-29T12:01:03.444263
2019-10-28T09:58:06
2019-10-28T09:58:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,540
py
from django.shortcuts import render,redirect from mainapp.models import Post from django.http import HttpResponseRedirect from .forms import Posts, ClaimForm from django.contrib import messages from django.contrib.auth.decorators import login_required from django.views.generic import CreateView from .models import Clai...
[ "notelgamwe@gmail.com" ]
notelgamwe@gmail.com
20222593e4e4c86708abb70c46aac55bb19e07aa
61361e75dda44c69b5c152ea932380fdd70c1397
/Lecture code/MongoDB 1-3.py
bc337c619de0522010d6bdb009168503f3fcecde
[]
no_license
dsj529/DataWrangling
34b5d5d544e26491dbbe27aa264d1b11075052dd
446ec3a41f7b1eb8fa0ca9536d255b7c17dcdaee
refs/heads/master
2020-04-02T06:54:22.430939
2016-07-13T04:32:54
2016-07-13T04:32:54
63,209,058
0
0
null
null
null
null
UTF-8
Python
false
false
1,650
py
# To experiment with this code freely you will have to run this code locally. # We have provided an example json output here for you to look at, # but you will not be able to run any queries through our UI. import json import requests BASE_URL = "http://musicbrainz.org/ws/2/" ARTIST_URL = BASE_URL + "artist/"...
[ "noreply@github.com" ]
dsj529.noreply@github.com
cade017587a1fddf10ba53e82b78b74261e5d548
c5bf6fd200e76dc388770c86b365ba3a0721416a
/bcassessment/bcassessment/items.py
33fc306e236f3bb27d15c9d521ef9650033b0228
[]
no_license
b15h4/ScrapingProjects
48a98ee8c23794cbd3ca0e62aeabf2866fdd5851
3906091811409ccb9ce12a5099a511e3e6771d50
refs/heads/master
2020-05-09T11:41:47.420389
2020-01-28T22:30:48
2020-01-28T22:30:48
181,089,587
0
0
null
null
null
null
UTF-8
Python
false
false
1,236
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class BcassessmentItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() PID = scrapy.Field() Address...
[ "noreply@github.com" ]
b15h4.noreply@github.com
d55b8c361a5e9a259b03d03acde5dbaabcbf9062
f9f698e577ac561e34f6e7851dea807e3429bc57
/DevTree/models/admin.py
a605ba4f05ca31238bcdd933e0a4ebbbe4c495f3
[]
no_license
zjd2035/DevTree
22d5a628ad7f2fd03f4065243e5f1f21b6a3e249
99a7142aa5ef1f6d4991a2de2516419f83a13dbe
refs/heads/master
2021-08-26T08:16:05.837792
2017-11-22T13:39:09
2017-11-22T13:39:09
111,687,133
0
0
null
null
null
null
UTF-8
Python
false
false
836
py
from django.contrib import admin from DevSky.models.models import * class DeveloperAdmin(admin.ModelAdmin): #Fields for creating Developer object fields = ['user', 'about', 'rating'] #Fields to display for developer #list_display = ('username',) class ProjectAdmin(admin.ModelAdmin): #Fields for cre...
[ "zjd2035@gmail.com" ]
zjd2035@gmail.com
5fe19acc4de946e7408e43a378612cded89edc88
aa91f6e8d59286f65e7f6ed065823c80b7694439
/scripts/analysis/baostock/yangxian/yangxian.py
adf483a1883a24304215af71aef322817a97af98
[ "MIT" ]
permissive
davidyuqiwei/davidyu_stock
7f93bcc2c50a0e2c356e3b517dbf7e2e7467093f
c234911f49d5980f2dff651333f8ca957333e094
refs/heads/master
2023-01-07T02:08:04.330559
2023-01-02T16:31:37
2023-01-02T16:31:37
163,694,812
13
2
null
2022-12-18T03:55:10
2018-12-31T20:07:30
Jupyter Notebook
UTF-8
Python
false
false
1,725
py
from davidyu_cfg import * from functions.data_dir import * from functions.get_datetime import * from functions.run_combine_all_csv import * from functions.colNames import * from functions.day_history.kLines import klineDate from functions.LinearReg import * from functions.common.dfProcess import * from functions.common...
[ "davidyuqiwei@outlook.com" ]
davidyuqiwei@outlook.com
1710dc2802c6eab6b4e818684ead157e2a79fa5c
9661db98a656462bd1b666b153f4727d54b436de
/sql_queries.py
f1b959bd3bccd723530a076000588aab98516936
[]
no_license
gingersmog/Udacity-Data-Engineer
0f26703e6ba2bfa65b704414a22b6be9971fd940
a091acf2bf30d87e3e76ecb40975969d9acc5da5
refs/heads/master
2020-11-30T07:24:46.081833
2019-12-27T00:43:48
2019-12-27T00:43:48
230,346,961
0
0
null
null
null
null
UTF-8
Python
false
false
1,681
py
# DROP TABLES songplay_table_drop = "DROP TABLE IF EXISTS songplays" user_table_drop = "DROP TABLE IF EXISTS users" song_table_drop = "DROP TABLE IF EXISTS songs" artist_table_drop = "DROP TABLE IF EXISTS artists" time_table_drop = "DROP TABLE IF EXISTS time" # CREATE TABLES songplay_table_create = ("CREAT...
[ "noreply@github.com" ]
gingersmog.noreply@github.com
b1c19b8460916ca3e33a02b99ead0145444c29b0
e04c445698d94b7d98dfae2c92b481ce42647e9f
/main/views.py
e3aa66c2105bd9f85b7b155086bbfa7aa9931ba7
[]
no_license
sersergious/taskmanager
48475bcbc94d737b5d80c7e7d58d3ab19a009348
7005712dfc7e755b89dd176df92ccefa3334b7f1
refs/heads/master
2023-03-11T07:22:46.016276
2021-02-24T22:03:05
2021-02-24T22:03:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
704
py
from django.shortcuts import render, redirect from .models import Task from .forms import TaskForm def index(request): tasks = Task.objects.all() return render(request, 'main/index.html', {'title': 'Main page', 'tasks': tasks}) def about(request): return render(request, 'main/about.html') def create(r...
[ "sergeykuzmin495@gmail.com" ]
sergeykuzmin495@gmail.com
651296c899c3fc4e8987c32de2d56bef52ab2d79
57d51b3ec0db9a91054b81c5e33f6926da3cdb09
/cesiumpy/util/html.py
151be315b75ccce9ba288ba917f54c426e5511de
[ "Apache-2.0" ]
permissive
cksammons7/cesiumpy
f75aa73f2b836bc16e148d9c66d4056942fa6501
0ffa7509fdac03644f0e2fb91385106c40284aa1
refs/heads/master
2022-05-28T09:45:56.385989
2020-04-20T17:20:55
2020-04-20T17:20:55
257,345,562
1
0
Apache-2.0
2020-04-20T16:47:33
2020-04-20T16:47:31
null
UTF-8
Python
false
false
1,477
py
#!/usr/bin/env python # coding: utf-8 from __future__ import unicode_literals import os import six import warnings def _check_uri(sourceUri): if not os.path.exists(sourceUri): msg = "Unable to read specified path, be sure to the output HTML can read the path: {0}" warnings.warn(msg.format(source...
[ "noreply@github.com" ]
cksammons7.noreply@github.com
ef57aa3b2a686f3f147faa1556323040b18f9c63
662aef24b143f21b44b74b1db3b7c0a5e6c4e202
/python/python标准库urllib.py
accaec446456e4a5a2031d688ff317af71f84573
[]
no_license
Chan0619/FIS03
aa8724bbde0af19389288ecd605c4276a8658195
969823101daf1e761c63a959afaaebf56c28e79c
refs/heads/master
2023-06-23T06:00:22.896841
2021-07-20T04:56:31
2021-07-20T04:56:31
316,534,191
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
import urllib.request response = urllib.request.urlopen('http://www.baidu.com') print(response) print(response.status) print(response.read()) print(response.headers) # 头部信息 import math print(math.ceil(1.5)) print(math.floor(1.5)) print(math.sqrt(25))
[ "phoebe.yanxi@gmail.com" ]
phoebe.yanxi@gmail.com
4ffd5dae6f79f999c134250acdaedc6bc61e49ee
2e6a926805852fb3d4db9d8d80602aa5cb9d86d3
/7.tests/stress_test/locustfile.py
7f7db16a514f10de1e0fade7f1f574c0abe82a91
[ "Apache-2.0" ]
permissive
Sunao-Yoshii/WelcomePythonExamples
4db495ed70ba802e5837344c302a9179b8e6b96b
0f929aff7d72075e659e025bca3ce272b952e0a1
refs/heads/master
2020-08-02T16:10:43.762925
2019-11-24T02:03:32
2019-11-24T02:03:32
211,423,930
2
0
null
null
null
null
UTF-8
Python
false
false
1,315
py
from locust import HttpLocust, TaskSet, task import re class UserBehavior(TaskSet): def on_start(self): self.login() def on_stop(self): self.logout() def login(self): # Cookie などを受け取る目的で self.client.get("/wp-login.php") parameters = { 'log': 'TestAcco...
[ "2810066+Sunao-Yoshii@users.noreply.github.com" ]
2810066+Sunao-Yoshii@users.noreply.github.com
7696736a1e831bf9068ea45731dc549e00c9e8c7
aa25165d891ae591decc0c214761411bd62681a9
/utils/__init__.py
1575d6c975074a1397ca2ff39b320a6b8131795f
[]
no_license
RaduSoro/MetinBot
8a94fa4fac0be2b30eb98049d795859cf1694dd5
8936eba0f53cc2e620a80ffabb6b93ad31ea296e
refs/heads/master
2023-08-26T22:37:07.233612
2021-11-02T08:18:55
2021-11-02T08:18:55
398,293,772
0
0
null
null
null
null
UTF-8
Python
false
false
87
py
from .utils import * from .vision import Vision, SnowManFilter, SnowManFilterRedForest
[ "radu.sorostinean@ausy.com" ]
radu.sorostinean@ausy.com
1698c854294c33913a617563ebf95c58f4f0da0e
30082a1920ed9082864c24f1d3dbaff9bd2cb9a7
/nexusdatabroker/TLSNXAPITool1.0/TLSNXAPITool.py
a60df0a92657345aa569590e55ee3e85d5b153e5
[]
no_license
NARESH9286/nexus9000
7885ade015f83d86b96e10a7cc3fbc262d157686
b6536915d1d22b087b0c93f775641d4be0bb2307
refs/heads/master
2021-06-24T22:05:47.759161
2017-09-12T06:52:38
2017-09-12T06:52:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,547
py
import os import sys import yaml import requests import subprocess import logging import paramiko # pylint: disable-msg=E0611 from requests.packages.urllib3.exceptions import InsecureRequestWarning from requests.packages.urllib3.exceptions import SNIMissingWarning requests.packages.urllib3.disable_warnings(InsecureRequ...
[ "stumbala@cisco.com" ]
stumbala@cisco.com
82d4bb5adde44d0c3f5d9dcf5fd38838388ed335
d1c4189ebec01e2e603618418537039fe88b6572
/RNA_1/bls_main.py
cee12d48be639efa530ce3a2155dcdaed3b691ae
[]
no_license
arashk7/BLS_RNA_Classifier
0ee32a19dd8a12f72564a0289df0359aa6b222bf
6b320b2e538f54cc4960af338e368468be63ff18
refs/heads/master
2022-12-24T20:41:49.983691
2020-09-25T03:30:10
2020-09-25T03:30:10
298,180,974
0
0
null
null
null
null
UTF-8
Python
false
false
1,741
py
import pandas as pd from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier from sklearn import metrics import seaborn as sn import matplotlib.pyplot as plt import numpy as np from RNA_1.BroadLearningSystem import BLS,BLS_AddEnhanceNodes import pandas as pd features1 = ...
[ "ahmad.karambakhsh@gmail.com" ]
ahmad.karambakhsh@gmail.com
f09be31c2f91323210f68ba6571fd449ab30ea4b
33360ff5f52c1cfbe01bcc001f0533900cee38a0
/bme280.py
1097289a031a069a2dc516eed3fae10908a2ca0a
[]
no_license
diyron/uP_WifiNode
49d4090e402618a8b2373c95ea1db834f9ccac45
724e82663efab7c67a972b73cc2a8e6789b1020a
refs/heads/master
2021-01-05T03:14:07.349548
2020-02-23T11:32:54
2020-02-23T11:32:54
240,858,457
0
0
null
null
null
null
UTF-8
Python
false
false
6,575
py
import time from ustruct import unpack, unpack_from from array import array # BME280 default address. BME280_I2CADDR = 0x76 # Operating Modes BME280_OSAMPLE_1 = 1 BME280_OSAMPLE_2 = 2 BME280_OSAMPLE_4 = 3 BME280_OSAMPLE_8 = 4 BME280_OSAMPLE_16 = 5 BME280_REGISTER_CONTROL_HUM = 0xF2 BME280_REGISTER_CONTROL = 0xF4 c...
[ "andre.lange.84@googlemail.com" ]
andre.lange.84@googlemail.com
96df10c1e180c5db30031a1555f1186f51078ddd
7de48c4ffee8f6ea59c3398a66fc90a27cf563ef
/Algorithms/leetcode/[820]单词的压缩编码.py
07f6dfe733617bb2c26efaefa608da3f3d3cc325
[]
no_license
XiaoqiMa/StudyNotes
9a936e119387b65257b08c2b534fb76a95687a34
b4f0d27e647f7a25c93b18d148caf143b91337ce
refs/heads/master
2022-12-03T16:39:19.206183
2020-08-25T14:22:40
2020-08-25T14:22:40
258,927,625
0
0
null
null
null
null
UTF-8
Python
false
false
1,934
py
# 给定一个单词列表,我们将这个列表编码成一个索引字符串 S 与一个索引列表 A。 # # 例如,如果这个列表是 ["time", "me", "bell"],我们就可以将其表示为 S = "time#bell#" 和 indexes = [0, # 2, 5]。 # # 对于每一个索引,我们可以通过从字符串 S 中索引的位置开始读取字符串,直到 "#" 结束,来恢复我们之前的单词列表。 # # 那么成功对给定单词列表进行编码的最小字符串长度是多少呢? # # # # 示例: # # 输入: words = ["time", "me", "bell"] # 输出: 10 # 说明: S = "t...
[ "xiaoqima2013@gmail.com" ]
xiaoqima2013@gmail.com
5a36493f79cd6e0eef01ad3fd5e7a886f6864e24
642a6fe8873e651c64a1f62ce1411dbb12cebd98
/Python/Python Basic/w3resources/basic_practice_part1/Q26.py
157cfd670068ff4c0d280ab3de36bb7def77b268
[]
no_license
lydia0423/Machine_Learning
4dc9cdb8049c0e26e527ebd35e100eab60186d7a
f4b241efe9522dbcb9dfa923f80d028d64a6054d
refs/heads/main
2023-03-26T18:17:37.029260
2021-03-29T04:17:01
2021-03-29T04:17:01
336,692,282
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
#?26. Write a Python program to create a histogram from a given list of integers. def histogram(items): for i in items: output = "" times = i while(times > 0): output += "*" times -= 1 print(output) print(histogram([1, 2, 3, 4, 5]))
[ "lydia08248@yahoo.com" ]
lydia08248@yahoo.com
c49070446f9c6e5c95466fbae9f419d4d29905da
8d87bf5b2c7125fdaf470b065f90f39a9fadc15c
/other/subarray.py
c70f60225023c6212fbc9f4eedfec13d8bbd360b
[]
no_license
mujavidb/algorithm_solutions
50ddb65fa89803fbd1d216f0bf09f18552853b33
8c5352d9c2381dd0aeae82c77ae61fbbb3583262
refs/heads/master
2021-01-10T06:50:07.906460
2017-05-13T13:48:21
2017-05-13T13:48:21
46,529,143
1
0
null
null
null
null
UTF-8
Python
false
false
492
py
# Length of longest subarray of sum less than or equal to k def max_length(s, k): # These two mark the start and end of the subarray that current used to be. start = end = total = 0 maxLength = -1 # returns -1 if there is no subsequence that adds up to k. for i in s: total += i end += 1 while total ...
[ "sirmuj@gmail.com" ]
sirmuj@gmail.com
93cfdd6f6d45a191d083e9d52f5f9dbc9fb63fdc
bb459bb1496ba48b2e4a640c97de28541735a337
/Pfeature_scripts/bin_at_wp.py
051afaab0ad35c6467e41877c19eb861bc8a55f9
[]
no_license
Raman1121/AlgPred
43f5f38bdc61b887221c23ef7872f2b8f6942c73
c437cc930d76e3a123eafac82cae7e656c91eb03
refs/heads/master
2020-05-30T15:54:57.319206
2019-06-23T06:03:52
2019-06-23T06:03:52
189,832,818
0
0
null
null
null
null
UTF-8
Python
false
false
3,532
py
import sys import os import pandas as pd import getopt def bin_at_wp(file,outt) : filename, file_extension = os.path.splitext(file) df=pd.read_csv(file,header=None) ############binary matrix for atoms f = open('matrix_atom.out', 'w') sys.stdout = f print("C,H,N,O,S,") x = [] ...
[ "happy07.dutt@gmail.com" ]
happy07.dutt@gmail.com
cb57c6ba8f92e88518798d39afee69873a5fab85
77bd1f8e9f9a8e790007db9ddbd346ed851b6880
/client/verta/verta/_internal_utils/_artifact_utils.py
d2d328ebbbb4d39f3fffa902c1d7d37ead4aa958
[ "Apache-2.0" ]
permissive
eyadsibai/modeldb
3f5d3fa54c67c3e53e8fa971fc9e659e310d4665
b172bd7324d26edb3245f6671ec8351ea03b5832
refs/heads/master
2023-02-18T08:34:13.269578
2023-01-24T21:02:53
2023-01-24T21:02:53
89,958,297
1
0
null
2017-05-01T20:03:21
2017-05-01T20:03:21
null
UTF-8
Python
false
false
17,776
py
# -*- coding: utf-8 -*- import hashlib import os import pickle import shutil import tempfile import zipfile import cloudpickle from ..external import six from .. import __about__ from .importer import maybe_dependency, get_tensorflow_major_version # default chunk sizes # these values were all chosen arbitrarily ...
[ "noreply@github.com" ]
eyadsibai.noreply@github.com
11e6f191c6447181e1e8bbb7d69eb8cc0edac896
65b37165306dff35942a3ce5ba7bb586b85357d9
/manage.py
890442822014016635d68790f0dddd489a4c63aa
[]
no_license
iankigen/drf-pet-store
81b803f671c58038da939324a4c28bc21c0b3d25
2c87fb5ecde30deac69bfb910d68d495ad932293
refs/heads/master
2022-05-01T15:01:26.667589
2021-03-01T08:40:59
2021-03-01T08:40:59
197,615,754
0
0
null
2022-04-22T21:50:09
2019-07-18T15:45:35
Python
UTF-8
Python
false
false
811
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pet_store_app.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure tha...
[ "ian.Gabe.ian@gmail.com" ]
ian.Gabe.ian@gmail.com
6f46f4705ff8b0afcec45c239afd53eecb646c90
304b0dfb4ae0261d7769963260e99e3b37f588b9
/crm1/urls.py
f324ade9fceedf306cd1c15467abfdd72c11b5cc
[]
no_license
mohdfazlie/crm1
bc634af4ae2307e87f3956ec5cd39b9f1c72dc05
4c29fa466b6e32f2390bed401464d8621aa497d5
refs/heads/main
2023-07-13T05:07:21.542412
2021-08-26T14:53:21
2021-08-26T14:53:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
795
py
"""crm1 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
[ "59987681+mohdfazlie@users.noreply.github.com" ]
59987681+mohdfazlie@users.noreply.github.com
b468d83e6f86299cc5a6da5cc3813594132a55dc
30b232051b10753e9103a70d88a387dfa1aca63f
/164.py
2f3c183e1682f60665db64f6c436ac296f2bf23b
[]
no_license
samrithasudhagar/guvi2
fe6d7af8a73cef515991524d7abad754c3700dc5
f7eb8a8b2cd701c2708c414939cc139414d3310d
refs/heads/master
2020-04-20T12:27:47.748859
2019-05-26T09:45:42
2019-05-26T09:45:42
168,843,977
0
3
null
null
null
null
UTF-8
Python
false
false
175
py
n,k=map(int,input().split()) l=list(map(int,input().split())) m=0 if k in l: print(k) else: for i in l: if i>m and i <k: m=i print(m)
[ "noreply@github.com" ]
samrithasudhagar.noreply@github.com
10e10f48b83650d04791cae5f7b32d3932dabb2d
aaf21aa2d251f52e6276bb71f4749a3d1b9e49e9
/service/urls.py
7e21f058963443c57bce091dd52ec82676bbef18
[]
no_license
ClonedOne/parkado_server
e6ce7347219cfcbff612c1a1cbef2bbfac63c8c6
038f91717765c95173e2cfc28a727cb6d30b37c8
refs/heads/master
2021-08-31T20:17:30.456706
2017-02-08T23:54:47
2017-02-08T23:54:47
115,138,431
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
from rest_framework.urlpatterns import format_suffix_patterns from django.conf.urls import url from service import views urlpatterns = [ url(r'^parkings/$', views.ParkingList.as_view()), url(r'^parkings/(?P<pk>[0-9]+)/$', views.ParkingDetail.as_view()), ] urlpatterns = format_suffix_patterns(urlpatterns)
[ "severi.giorgio@gmail.com" ]
severi.giorgio@gmail.com
6ece01cf76bcfb1cd3fda00de8835a03e0b68a78
d1ba73dd406f680342a453439c6105bf5161e470
/src/show_results.py
f697a4b7df0af5c91195d6ccb3e1fc5add8be696
[ "MIT" ]
permissive
yixchen/holistic_scene_human
737b5546529bb7aeed4eda7e4f0d61a43c8f1364
338b1cea172864b03451fd2f8e347ab751f5e70a
refs/heads/master
2021-07-10T14:40:00.210618
2020-11-24T03:44:24
2020-11-24T03:44:24
209,427,745
46
3
null
null
null
null
UTF-8
Python
false
false
526
py
import os import pickle from visulization import vis_all ROOT_DIR = '../data' IMAGE_PATH = ROOT_DIR + '/image/' RESULT_PATH = ROOT_DIR + '/result/' all_image_path = os.listdir(IMAGE_PATH) for im_name in all_image_path: image_name = im_name.split('.')[0] result_path = os.path.join(RESULT_PATH, image_name) ...
[ "ethanchen@g.ucla.edu" ]
ethanchen@g.ucla.edu
446132c9623e63a2d548c95694992161a693fcff
99241f023f2f256c7e6cbce6c6fe3de48627c9f8
/build/art-pathplanning-2014/catkin_generated/pkg.develspace.context.pc.py
7e3242213bfa7985b084d241f402bb7169f0c3cb
[]
no_license
mohsenpour/art-meta
02acf40cc00468798113fccf18da59fb82aec698
3cb95fc16ae780362d2db52903c818d60e3bfa66
refs/heads/master
2021-07-25T01:04:38.540640
2017-11-04T20:26:31
2017-11-04T20:26:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "path_planner" PROJECT_SPACE_DIR = "/h...
[ "mo@Mohammads-MacBook-Pro.local" ]
mo@Mohammads-MacBook-Pro.local
34ea96fab7aa2f5a03931e3a87d652ab5f3e629e
f6b5f0d72f3e5deb8a913d0a6d541ef3ad5445cb
/braintree/transaction.py
5c5a315ac43e7831732e7dec0f4ba96100d19ceb
[ "MIT" ]
permissive
hathawsh/braintree_python
bf056a4d2b8c8b8094f2c876cea4782dc92c715a
4ec0f3696438b8c2117f5917834e67ddbf3ebdc7
refs/heads/master
2021-01-16T00:04:08.883102
2013-07-23T22:11:32
2013-07-23T22:11:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,913
py
import braintree import urllib import warnings from decimal import Decimal from braintree.add_on import AddOn from braintree.disbursement_detail import DisbursementDetail from braintree.discount import Discount from braintree.successful_result import SuccessfulResult from braintree.status_event import StatusEvent from ...
[ "code@getbraintree.com" ]
code@getbraintree.com
8c86c0ef0e47e5a09d544c09f18d6faa5632dd4e
f6f5d82eacd022235b3a85892554fbd9415e3bee
/src/saltext/vmware/modules/vmware_vsan.py
743ab40200464a7dddb1562166121ce43b7d7fe0
[ "Apache-2.0" ]
permissive
garethgreenaway/saltext-vmware
a3dd81d3df90ae711178c2232fcdc16b9142d69f
f0cd63fc3454be43229658fc4ff825455fc9e691
refs/heads/main
2023-03-29T05:15:08.409668
2021-04-01T00:33:54
2021-04-01T00:33:54
348,489,162
0
0
Apache-2.0
2021-03-25T18:45:29
2021-03-16T20:55:30
Python
UTF-8
Python
false
false
21,601
py
import logging import sys import saltext.vmware.utils.vmware from salt.utils.decorators import depends, ignores_kwargs log = logging.getLogger(__name__) try: # pylint: disable=no-name-in-module from pyVmomi import ( vim, vmodl, pbm, VmomiSupport, ) # pylint: enable=n...
[ "gareth@saltstack.com" ]
gareth@saltstack.com
49adb1a0d02abd33be4f5345e463f2839479722a
b2d3bd39b2de8bcc3b0f05f4800c2fabf83d3c6a
/examples/pwr_run/checkpointing/short/max_pwr/job18.py
8d86f952590173e5884246a93a2efab702b53071
[ "MIT" ]
permissive
boringlee24/keras_old
3bf7e3ef455dd4262e41248f13c04c071039270e
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
refs/heads/master
2021-11-21T03:03:13.656700
2021-11-11T21:57:54
2021-11-11T21:57:54
198,494,579
0
0
null
null
null
null
UTF-8
Python
false
false
7,216
py
""" #Trains a ResNet on the CIFAR10 dataset. """ from __future__ import print_function import keras from keras.layers import Dense, Conv2D, BatchNormalization, Activation from keras.layers import AveragePooling2D, Input, Flatten from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, LearningRa...
[ "baolin.li1994@gmail.com" ]
baolin.li1994@gmail.com
38e2ca7ad8bd0105e127dde9200cf8a028208f9b
de998d0170e81d61982cef9c3181c41fc926bac3
/Hardware/PCB/KiCadScript/KiAuto/KiPcb.py
3b58c4d5c530bf82be8c8e8d499bea6348ffbf05
[ "BSD-3-Clause" ]
permissive
ymei/TMSPlane
f100294e039bb73e77964cf9c38930160d5f86d9
3e30749440b1a8a0fd81a848b368cfbce10dfb86
refs/heads/master
2021-01-23T07:44:23.156705
2018-03-25T03:16:43
2018-03-25T03:16:43
86,438,489
1
2
null
null
null
null
UTF-8
Python
false
false
6,380
py
from __future__ import print_function import pcbnew from .util import * ## Class operating on an already established board # class KiPcbOp(object): ## @param[in] board Already open and established board object. def __init__(self, board): self._board = board self._io = pcbnew.PCB_IO() s...
[ "yuan.mei@gmail.com" ]
yuan.mei@gmail.com
8fb33330b1462f23987648fc31eb06140b7e5caa
1e03cd80d27d35ffdc8f68f70a36a461eaae4b9d
/apps/common/views.py
9da3528729470edad1fb1663ca5e9291ee3c0179
[]
no_license
paddy375691/flask_zlbbs
bee8f15497c58bd5f1f614d6a686b93301f93d0a
90fb142b33aecca6ff66013953ecf6e3e39b6139
refs/heads/master
2023-02-04T07:55:00.798789
2020-12-25T08:51:13
2020-12-25T08:51:13
324,265,174
0
0
null
null
null
null
UTF-8
Python
false
false
144
py
from flask import Blueprint bp = Blueprint('common', __name__, url_prefix='/common') @bp.route('/') def index(): return 'common index'
[ "you@example.com" ]
you@example.com
f2edf4b8d81e383e300f59c74dc202894f3b6498
18c0c008de1f1cb4c6d194fd95e114f0c06476fc
/listcomprehension/startso.py
cab91ee67e82cbce8ffbb284609b470dc5f3934e
[]
no_license
betillogalvanfbc/pythoncourse
6e18065e463d8b3fde85a205b3a473703fb9a690
8e49ec581b1e4f5f477699cf3f3bc030f6478bbd
refs/heads/master
2022-05-14T12:25:03.342382
2020-04-23T23:07:34
2020-04-23T23:07:34
258,351,481
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
friends = ["Beto", "Bernanrdo", "Benito"] starts_s = [friend for friend in friends if friend.startswith("B")] print(starts_s) print(friends) print(friends is starts_s) print("friends:", id(friends), "starts_s:", id(starts_s))
[ "alberto.galvanfbc@gmail.com" ]
alberto.galvanfbc@gmail.com
9be5e10a4b35c6bcf8efca2e17740a47f51645d7
1eba9645eb6922a415cf7c08cd76e3b9f489513b
/QuoteEngine/QuoteModel.py
89d9de7723398ad7a91577c858d42470df3af006
[]
no_license
t4ngojuli3tt/UdacityMeme
96741e35162730c675af833302a95501bf5fbbef
9b710f3421653c1aee61a040d6da3909b28bdd88
refs/heads/main
2023-03-04T20:52:44.622380
2021-02-12T20:52:35
2021-02-12T20:52:35
338,428,171
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
class QuoteModel: def __init__(self, body, author): self.author = author self.body = body def __repr__(self): return f'"{self.body}" - {self.author}'
[ "tomasz.janiczko@gmail.com" ]
tomasz.janiczko@gmail.com
c713a4ef7e8152c9c7d6aad296a20e9a6724c730
4909d98c871fbe71daf7538a2a074751333552b8
/file_io.py
2397248b04b3ebda2316861d725e553b189d0e68
[]
no_license
jamathis77/Python-fundamentals
68653da4928b97a336888f2aac840ad26f6d4a6e
2e35a1ef384671b912dae81ba96827ec45576857
refs/heads/master
2020-08-14T09:40:09.375318
2019-10-14T20:39:04
2019-10-14T20:39:04
215,143,182
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
# # Create a python file in python, that itself modifies the testing.txt file to say # # I'm sorry, I cannot do that. # python_file = open("./file_io_hub/change_text.py", "x") # valid_code = """ # to_change = open("./testing.txt", "w") # to_change.write("I'm sorry, I cannot do that") # to_change.close() # """ #...
[ "jamathis77@gmail.com" ]
jamathis77@gmail.com
08389cf04636acaaeff77c935cbdfb741525b0e5
5c8b1cb941467020ec52c7bea0a03dff696881b9
/simorgh/polls/forms.py
4edcd15dd5147c4f47f46c13bd5e269bc2bf07ef
[]
no_license
amir1370/simorgh
43dfaa4d3c7f4a4489cc35e84f6e24a61408649f
83788712a8ef9f5001446a9370aa0e0611eb91fc
refs/heads/master
2020-05-20T02:22:53.473410
2019-07-06T20:03:08
2019-07-06T20:03:08
185,330,230
0
0
null
null
null
null
UTF-8
Python
false
false
673
py
from django import forms from .models import Choice, Question from django.forms import ModelForm, formset_factory from django.forms.widgets import RadioSelect class ChoiceForm(ModelForm): EXCELLENT, GOOD, MEDIUM, BAD = 'EX', 'GO', 'ME', 'BA' question_choices = ( (EXCELLENT, 'عالی'), (GOOD, 'خوب...
[ "amirhoseintaherijam@gmail.com" ]
amirhoseintaherijam@gmail.com
2102290e12b10e2260838df9b63b6bbc4466e206
83d5439a809aaf029cfbab22d776a99c8ea85bd2
/vista1/migrations/0002_auto_20210412_1851.py
2b48628f1e6af25952df7855c37cd8adb70bcf23
[]
no_license
lapcpc/exame2
cca8933ecc7049737d0c327cddf0cc4e2113ddbb
9695dcda5c1668c5bc92073c4c4fb1c2d98e43e5
refs/heads/main
2023-04-10T10:07:03.448832
2021-04-13T00:21:52
2021-04-13T00:21:52
357,371,901
0
0
null
null
null
null
UTF-8
Python
false
false
563
py
# Generated by Django 2.2.6 on 2021-04-12 23:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('vista1', '0001_initial'), ] operations = [ migrations.AlterField( model_name='registro', name='oxigenacion', ...
[ "lapcpc@hotmail.com" ]
lapcpc@hotmail.com
e037ce0f746846b6294b60c884db7209be1e7464
efbc8c73e9ac5cbcb9321518ab06b3965369a5f0
/SWEA/D2/1974_스도쿠 검증.py
5c70e3a29c30f7e85436a3f0b4edb86ade4466a6
[]
no_license
AshOil/APS
56b9395dcbb8eeec87a047407d4326b879481612
fe5a2cd63448fcc4b11b5e5bc060976234ed8eea
refs/heads/master
2023-07-15T17:32:20.684742
2021-08-23T13:04:05
2021-08-23T13:04:05
283,709,661
0
0
null
null
null
null
UTF-8
Python
false
false
1,389
py
import sys sys.stdin = open('input_data/1974.txt',"r") num_dict = {} T = int(input()) for t in range(1, T+1): for tt in range(1,10): num_dict[tt] = list(map(int, input() .split())) result = True # 가로부터 검사하자 for hori in num_dict.values(): if sorted(hori) != [1, 2, 3, 4, 5, 6, 7, 8, 9]:...
[ "ka0@kakao.com" ]
ka0@kakao.com
88ac908df79f1845c722a579324a1598126bc0dd
644984edc7bd12c395f20b204e0201aca068c541
/Basic Data Structures/array/leet_154_FindMinimuminRotatedSortedArrayII.py
0fae83c285503ec1c802172d4ef714d78f74bca3
[ "MIT" ]
permissive
rush2catch/algorithms-leetcode
3bd7ad0fc00d303b520ab6b1f0b3ba84cf449115
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
refs/heads/master
2021-09-06T17:45:20.295678
2018-02-09T08:07:54
2018-02-09T08:07:54
91,420,882
0
0
null
null
null
null
UTF-8
Python
false
false
880
py
# Problem: Find Minimum in Rotated Sorted Array # Difficulty: Medium # Category: Array # Leetcode 154: https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/description/ """ Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 ...
[ "jiangyuan1988@gmail.com" ]
jiangyuan1988@gmail.com
f6afdb1bcdb602520eb1f466922a2c9ea015a1db
2da476c3ba893f471760edc3553c5d4a98067370
/swapcase.py
fb2e8fa940996ddd13131980a5a8088c83233d3b
[]
no_license
Yashasvini18/EDUYEAR-PYTHON-20
4b0b4e37feca34ad76f7d11599f1243c0ae4083b
43900aa11a1c57c3834d21ef94fb383be00e6fa6
refs/heads/main
2023-04-20T04:42:05.263050
2021-05-15T12:59:14
2021-05-15T12:59:14
364,542,373
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
input_str=input("Enter the word in alternate case ") print(input_str.swapcase())
[ "noreply@github.com" ]
Yashasvini18.noreply@github.com
3f1fa779ebc4ad9bbf4068ec2d29801aa363b470
5061a6089dbf1997e2d25ffc47d1dac9761228a0
/bellamira/views.py
e26206ef766461ebfc5d62f816d97bf238347a6a
[]
no_license
DmitriDergalov/Bellamira
49ccc903940ac7de82996e069d0032cafff19b8f
2b271ded6c5abdc8b9f39efac7682a4c20a5e5b8
refs/heads/master
2021-08-19T14:45:57.561253
2017-11-26T18:10:41
2017-11-26T18:10:41
112,104,831
0
1
null
null
null
null
UTF-8
Python
false
false
275
py
from django.shortcuts import render from django.views import generic from .models import Suit class SuitsView(generic.ListView): template_name = 'bellamira/suits.html' context_object_name = 'suits_list' def get_queryset(self): return Suit.objects.all()
[ "dergalov.mitya2011@yandex.ru" ]
dergalov.mitya2011@yandex.ru
74a8b60c7bd5c37aa81e3159a4faeb777038fa95
d099ed0f4f34387d80a10490e5d621cbe8944320
/tests/decoder_test1.py
095efc613dc505ca5cca76fd24ec39c60e198d41
[]
no_license
unfallible/jrpg_engine_experiment
c8c3da285cec68e4101b022c591325f7764a6efa
7709fb197aada8e991220d2174fac457d314d887
refs/heads/master
2023-08-28T02:47:53.186911
2021-10-13T03:21:07
2021-10-13T03:21:07
411,520,928
0
0
null
null
null
null
UTF-8
Python
false
false
1,281
py
from pprint import PrettyPrinter from JrpgBattle.Attack import VanillaAttack, AttackType from JrpgBattle.Character import CharacterTemplate from JrpgBattle.JsonProcessing.JrpgEncoder import decode_jrpg_data, encode_jrpg_data from fractions import Fraction import json def main(): pp = PrettyPrinter(indent=2) ...
[ "ryn292@mocs.utc.edu" ]
ryn292@mocs.utc.edu
b74265a2d8ce076cbf5577d14a301cccf86b39ff
0c25cc9150add4645d83cad35989ff9c8858c58e
/image_processing/classify/ex_svm.py
2582c596858bfc54be183cecad8d66c959242cc2
[]
no_license
SelinaJing/python_proj
be0e7e6c1f5da233a87d764df8f5bb5ec40cf44e
8c0e4df00a877464a64548e8d3a655ee2c0879f3
refs/heads/master
2020-09-09T06:59:09.188166
2014-05-25T22:18:23
2014-05-25T22:18:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,153
py
# -*- coding: utf-8 -*- """ Spyder Editor This temporary script file is located here: D:\bao\WinPython-64bit-2.7.5.3\settings\.spyder2\.temp.py """ import pickle from svmutil import * import imtools import numpy as np # load 2D example points using Pickle with open('points_normal.pkl','r') as f: class_1 = pickle...
[ "baoruihan@gmail.com" ]
baoruihan@gmail.com
88b507bb6359e5f3d65c82163e8547cfab8d6b21
2c35db3ea04538d4d08a2d62aa4a7dfd295a2173
/code_review_plugins/js.py
159e9d7f76e3219dd90de4e317229a836fc36933
[]
no_license
HugoDelval/pseudo-automated-code-review
2ecff25063594cfef6af20aeeaad3724d847599e
b04fd7fa0be87a2d88f1609d0167aa7ca1ca55b4
refs/heads/master
2021-01-12T15:07:06.222743
2018-10-01T14:22:05
2018-10-01T14:22:05
71,704,830
1
1
null
2018-10-01T13:32:09
2016-10-23T13:32:14
Python
UTF-8
Python
false
false
1,433
py
from code_review import CodeReview class Js(CodeReview): def __init__(self, directory_path): super().__init__(directory_path) self.exclude += [] self.language = "JS" def launch_code_review(self): print("Launching JS review for : " + self.directory_path) """ Ass...
[ "hugodelval@gmail.com" ]
hugodelval@gmail.com
e80c6918df2886ea94e0f9f355d21492dedf1d0e
2b3e08faaa4edb548ef9bd386247f35f50a06766
/djangoProject7/migrations/0001_initial.py
1d639b122724c8bee5e28d6bbede30f6f3f745c0
[]
no_license
aliciawill/pythonproject
e495d3a9e5d65768a69ea6ac01ff559e7112dd75
f6d166c366522f0e3c5c74fdd11ca7a7b5489ee1
refs/heads/master
2023-07-08T04:39:59.597131
2021-08-22T05:15:08
2021-08-22T05:15:08
360,455,729
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
# Generated by Django 3.2.6 on 2021-08-22 04:19 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Test', fields=[ ('id', mode...
[ "noreply@github.com" ]
aliciawill.noreply@github.com
3ad52e8c095b3ad50975940c78e30707311ab01e
32ba9f1c35ae916d33b121daeeea8e1910a447d7
/utils/tag.py
99083b27f2ee3987fa2f8e96f2665c4f0533c66f
[ "MIT" ]
permissive
rituparna/glTools
8b02fa2751e1b997f7a202c7df8a3dd3d3032722
c512a96c20ba7a4ee93a123690b626bb408a8fcd
refs/heads/master
2020-03-19T19:23:47.684580
2018-06-10T23:53:58
2018-06-10T23:53:58
136,853,456
0
0
null
2018-06-10T23:46:54
2018-06-10T23:46:53
null
UTF-8
Python
false
false
2,893
py
import maya.cmds as mc import glTools.tools.namingConvention class Tag( object ): def __init__(self): ''' ''' self.nameTagAttr = 'nameTag' def addNameTag(self,control,tag): ''' Set the name tag value for the specified control ''' # Check control if not mc.objExists(control): raise Exception('...
[ "grant@bungnoid.com" ]
grant@bungnoid.com
f2fb7b797424d3ba6ad396d5b0583a42bb65355b
8f3c35b663f554d62d259ccbbd0c972b22dbb382
/one_cycle.py
5eef32e001aa5794757799e8de06188822047d52
[ "MIT" ]
permissive
WenjinSun/kaggle-google-quest
29f3875b224dfa4f9748480afbf9c6a12998dcff
69f84bb2c4ef83b300b4c7f8378c43f7dd84f7c6
refs/heads/master
2021-01-09T12:50:03.775453
2020-02-13T12:55:02
2020-02-13T12:55:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,244
py
import math import numpy as np import matplotlib.pyplot as plt from torch.optim.lr_scheduler import LambdaLR from utils.torch import set_optimizer_mom def cosine_annealing(it, n_iter, start_val, end_val): cos_inner = math.pi * (it % n_iter) / n_iter return ((start_val - end_val) * (math.cos(cos_inner) + 1) ...
[ "48721401+robinniesert@users.noreply.github.com" ]
48721401+robinniesert@users.noreply.github.com
8085959284cded2def530eb0f5a6b7c2e6f21c18
68cc98398c537d783a0e30dab1d09d81f0f15f01
/grammar/description_parser.py
8949960f8cc9b7dec6557b7c2b5a2290471c481d
[]
no_license
Ulitochka/medicine
9bef0ed66dae1dd6bff2c821667a20cbc36fd9c3
49e55e73db0868592b33a715201e8a5f5ea6926d
refs/heads/master
2020-04-16T11:34:19.674655
2019-01-18T16:14:53
2019-01-18T16:14:53
165,541,659
1
0
null
null
null
null
UTF-8
Python
false
false
5,357
py
from tools.utils import Utils class DescriptionParser: """ Класс реализующий rule-based подход для выявления симпотомов в описаниях состояний, составленных самими пациентами. """ def __init__(self, *, config_data): self.config_data = config_data self.utils = Utils() self.max_n...
[ "m.domrachev.scientist@gmail.com" ]
m.domrachev.scientist@gmail.com
bdb8ce5f430ef2154c672fd3a39dab1855522a76
72dd2e55d8c52390940548587c032201f3976a8d
/src/train_test.py
dd6468ba58f797591279d999bb0d06ff027c9e69
[]
no_license
phber/dd2404_bioinformatics
f2143266092663829b326ba6bfcb7326e3a4c05f
da39e5c8987e92ee8971b3fbfb1215399b0d5d98
refs/heads/master
2021-09-02T20:26:13.374377
2018-01-03T21:47:57
2018-01-03T21:47:57
115,660,308
0
0
null
null
null
null
UTF-8
Python
false
false
6,203
py
import pandas as pd from sklearn.model_selection import KFold import numpy as np from Bio.HMM import MarkovModel, Trainer from sklearn.metrics import confusion_matrix from sklearn.utils import shuffle from sklearn.metrics import matthews_corrcoef from read_write import seq_alphabet, state_alphabet_pos, state_alphabet_n...
[ "philip@Philips-MacBook.local" ]
philip@Philips-MacBook.local
eb74add9cc0461ba97666dc459e71a6df598d5c1
3f7bc519f83609c7aac1ca24615710019f35e20a
/pomodoro.py
a18ad7133fbabc883a36accbfbf26a447f080c79
[ "MIT" ]
permissive
blipml/bliptimer
2077f18cb0db7209a27a5fb62aeb7fd746037961
f0ec6b1de4ac797b4f3ee98240719851a23b9f81
refs/heads/main
2023-03-29T12:52:08.841306
2021-04-12T06:50:47
2021-04-12T06:50:47
356,160,883
0
0
null
null
null
null
UTF-8
Python
false
false
2,666
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- from datetime import datetime as dt, timedelta from time import time, sleep import sys import asyncio SLEEP_TIME=1 class TimeParseException(Exception): pass class Timer(object): def __init__( self, target=0, sleep_time=SLEEP_TIME): self.target = T...
[ "ocean.kuzuri@gmail.com" ]
ocean.kuzuri@gmail.com
fafb61cff6256896c850cd738ec16f4c6209143c
279ed6bd82f604f40fc7d13a189b99b9f6c70c8b
/subtask1.py
4d8ddcfba87cc5b42c8101e575ba336ba945a7b0
[]
no_license
AtarioGitHub/Sub-task-8.1-and-8.2
bbf8044d5bfc7f2b1c0c99a743948247a8304151
27430455d049f2bb04b6cb8f45f23ad7869100e6
refs/heads/main
2023-09-03T21:37:37.945018
2021-11-14T22:19:14
2021-11-14T22:19:14
428,054,172
0
0
null
null
null
null
UTF-8
Python
false
false
339
py
import math n = input('Enter your number which we will call n = ') print('n = ',n) DecimalNumberofN = float(n) # We use float so that we can also use a decimal value TheSquareRootofThatNumber = math.sqrt(DecimalNumberofN) xyz = int(TheSquareRootofThatNumber) # Let xyz be an integer value q=pow(xyz,2) ...
[ "noreply@github.com" ]
AtarioGitHub.noreply@github.com
7ece9319493f54ae20dca0009b5fd429c73c203f
6fdda8566a04114d506a09237f6f2d69a5ff9435
/ai/Codes/Project/first/pp.py
91dbc9f1d63440ab44f01705dc85d3c4d1dcdf84
[]
no_license
vgswn/AI
d0cff1ae37b02b9359682e35bef5528be9775575
0c6d8b1918f53eda400552c440d24192ace0b284
refs/heads/master
2021-03-16T07:54:23.506696
2018-01-22T09:07:15
2018-01-22T09:07:15
107,943,151
1
0
null
null
null
null
UTF-8
Python
false
false
2,881
py
import random import queue as q def RULE_MATCH(matrix, x, y, count, n, m, visited_cell): d = q.PriorityQueue() if x-1 >=0 and visited_cell[x-1][y]==0: if matrix[x-1][y]=='Dirty': d.put([1+(-5),'UP']) else : d.put([1,'UP']) if x+1< n and visited_cell[x+1][y]==0 : ...
[ "iit2015038@iiita.ac.in" ]
iit2015038@iiita.ac.in
fe5e0fe2bf92a1ef8907a67d02628bc6953df529
c180719c80c8078e689d1add2e1ae0ab62095d67
/website/settings.py
44f8b0bb47975a133c01d60909fb24be87e73608
[]
no_license
SeekerHub/Django_webapp
2ba1cf05e93f229cdd773eb9db870edf2389e805
342537921cb53e6f071aadf62f65b16d784a56f3
refs/heads/master
2020-06-05T20:01:28.880496
2019-09-27T14:48:35
2019-09-27T14:48:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,639
py
""" Django settings for website project. Generated by 'django-admin startproject' using Django 2.1.5. 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 os #...
[ "bhaveshgandhi1999@gmail.com" ]
bhaveshgandhi1999@gmail.com
38cb295c9d71a9429c4d97b4d12140241d2a185c
3efc463fb20d9f7532bd0da732f23f37ad425a54
/main.py
a43f499159f67c42b9990ea8ce9b90f694d445f8
[]
no_license
workfunction/demosacing_py
0d44488a555e932fe7f8159d64571c7cdab1b141
b345c2f4e0db953ee581666989f8dbbe8f7579ba
refs/heads/master
2023-06-27T20:09:31.158870
2020-02-03T05:58:22
2020-02-03T05:58:22
245,328,695
0
0
null
null
null
null
UTF-8
Python
false
false
1,687
py
from mepi import MEPI from mepi_delta import MEPR from mosaic import Mosaic from MGBI5 import MGBI_5 import numpy as np from PIL import Image from matplotlib import pyplot as plt import math import tensorflow as tf import sys import os def read_img(img): return tf.convert_to_tensor(img, dtype=np.uint8) @tf.function...
[ "jason840507@gmail.com" ]
jason840507@gmail.com
0185767e3d02ccdf330cda6d1f5e806dad9a8b00
aa0ab3eaee3a04eb39f1819cb411ce9fa2062c14
/scripts/driver_messaging/list_difference.py
1a1e13d62c6c560bce2fa535225742ac83bce60e
[]
no_license
gilkra/tweet_proofer
30fd99dd11306e805526044a155a9c34dffc0713
04ead63aeb2cb8f0e2a92cc39a731ba926d9b617
refs/heads/master
2021-01-12T06:19:58.967602
2016-12-25T21:11:27
2016-12-25T21:11:27
77,342,680
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
import pandas as pd import numpy as np uuids = pd.read_csv('calc_didnt_drive.csv') all_id = uuids['All'] not_paid = uuids['Not_Paid'] paid = uuids['Paid'] new_list = list(set(all_id)-set(not_paid)-set(paid)) new_list = pd.DataFrame(new_list) new_list.to_csv('didnt_drive.csv', index = False, header=False)
[ "kazimirovg@gmail.com" ]
kazimirovg@gmail.com
74578cccd156b76ee3c9c58c8d8df9ba7a5fea79
d5e4c3f0d1ae6591d403804fc452a330a62d365d
/utils/analysis.py
be7fc4ea5d6a59545811ff213818a9c960112f00
[ "MIT" ]
permissive
mtasende/Machine-Learning-Nanodegree-Capstone
e5ffb435b2c7a19e1e416c98d122f080a2a3ad0c
69c5ca499fa52122d51131a0607bc199ec054cfd
refs/heads/master
2021-05-15T16:12:20.252910
2017-10-22T23:42:42
2017-10-22T23:42:42
107,441,206
1
0
null
null
null
null
UTF-8
Python
false
false
5,844
py
import pandas as pd import matplotlib.pyplot as plt import numpy as np CLOSE_COL_NAME = 'Close' def compute_portfolio_stats(portfolioValue, rfr=0.0, sf=252.0): cumRet = (portfolioValue.iloc[-1]/portfolioValue.iloc[0]) - 1 dailyRets = get_daily(portfolioValue) # Statistics below don't take into account...
[ "mtasendebracco@antel.com.uy" ]
mtasendebracco@antel.com.uy
aee404230ad4f577d5f611ed575b11337a8eb407
3ba478d3d52fba786c5421f59693fb094ad4364c
/week10/spiders/spiders/items.py
e08eb780639382d2863faee497f4ddd751171508
[]
no_license
stingh711/Python001-class01
c5cfb91e3dcad4994cdf37251f06034e91748e50
51a320ada66b70ade4427bb352e28b84794d8503
refs/heads/master
2022-12-06T20:56:11.103688
2020-09-06T02:07:48
2020-09-06T02:07:48
273,141,919
0
0
null
2020-06-18T04:33:35
2020-06-18T04:33:34
null
UTF-8
Python
false
false
282
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class GoodsItem(scrapy.Item): name = scrapy.Field() link = scrapy.Field() comments = scrapy.Field()
[ "lihong.hu@siemens.com" ]
lihong.hu@siemens.com
741cdf5634fbc3cb461a36e5e68dc1ac744f172f
68e0b34c7c749331d0d660c1b5721ea82617205f
/fortune_server_data_management/daily_call_for_vincent.py
096999fd8e80bb808e5915a94925932a5f4bfffb
[]
no_license
TheIllusion/TheIllusionsLibraries
ffeebe3a6ddfd635b69d07c54058d3e8bf74c337
0adf5a0a5d4c2e4de41faac6fcc75700104c2b53
refs/heads/master
2022-05-08T18:16:00.883192
2022-04-14T01:08:26
2022-04-14T01:08:26
63,536,801
1
0
null
null
null
null
UTF-8
Python
false
false
305
py
from subprocess import call import datetime import time #Get the date of yesterday timestamp = datetime.datetime.fromtimestamp(time.time() - 24*60*60).strftime('%Y_%m_%d') print 'date = ', timestamp call(["/home/nhnent/H1/users/rklee/Data/server_data/server_hand_data/get_data_from_svc.sh", timestamp])
[ "gunboy83@gmail.com" ]
gunboy83@gmail.com
78f015df88e7a0ff2590c9378ea411fd33cbebbf
83ff6674ad1fc4ac1d9523216149d5dae82f8bbd
/trainer/migrations/0009_trainer_image.py
50deec7ba1e9345665e98a31775ed109aae6c5ba
[]
no_license
4802852/Act-Agora
8a75c4622b0e306a514096b0a4aaa3e3360ec26e
7603444e32cebd6d5ae2d3a6f8f3a349373120d2
refs/heads/master
2023-04-28T19:49:18.498810
2021-05-10T13:44:03
2021-05-10T13:44:03
351,899,676
0
0
null
null
null
null
UTF-8
Python
false
false
463
py
# Generated by Django 3.1.7 on 2021-02-28 20:04 from django.db import migrations import imagekit.models.fields class Migration(migrations.Migration): dependencies = [ ('trainer', '0008_auto_20210228_1822'), ] operations = [ migrations.AddField( model_name='trainer', ...
[ "4802852@gmail.com" ]
4802852@gmail.com
d73f79ef6d4d5880eb4ee7c8c1972b1d25ee4cc0
594d059453f90a0b6d43009a630d162bf0ffaa46
/company_blog_flask/company_blog/models.py
a9b231749d0877d3a577c589061d55afb14b0315
[]
no_license
sarfrajobject/Company_blog_post_flask
a707ba444b0205b07c69484d509d3a9c578c3100
3c0996178ad3eee35dde416bd1542c8b1560fe55
refs/heads/master
2020-09-08T23:22:43.423191
2019-11-12T17:43:01
2019-11-12T17:43:01
221,273,916
0
0
null
null
null
null
UTF-8
Python
false
false
1,869
py
# models.py from company_blog import db, login_manager from werkzeug.security import generate_password_hash, check_password_hash from flask_login import UserMixin from datetime import datetime @login_manager.user_loader def load_user(user_id): return User.query.get(user_id) class User(db.Model,UserMixin): _...
[ "sarfraj.object@gmail.com" ]
sarfraj.object@gmail.com
569012129e554d8d356b12f5bb351e3f331f6621
d93529bee8c03312d376f7e0cc3d42aa538fc0d4
/travello/views.py
0ec5884194d205d78ff13645de4e84dbd03ba7f9
[]
no_license
AL-NOMA/django-projects
962a9caaf4b75e090731a279f890c8b4bb0e7361
230e701b2890ac87995ec5b0dacfbf52badd788a
refs/heads/master
2023-06-03T11:51:20.187755
2021-06-16T12:10:00
2021-06-16T12:10:00
375,130,119
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
from django.shortcuts import render, get_object_or_404 from .models import Place # Create your views here. def index(request): places = Place.objects.all() context = {'places': places} return render(request, 'travello/homepage.html', context) def destination(request, place_id): place = get_object_or_4...
[ "alexisnomanyo@gmail.com" ]
alexisnomanyo@gmail.com
b332b14aa6f86a6013de1b87f5c0920504478890
4be56098894a95da5964622fc4102b69e4530ab6
/题库/870.矩阵中的幻方.py
00fdbac5b41f5978d6246140777b7c174e01c850
[]
no_license
ACENDER/LeetCode
7c7c7ecc8d0cc52215272f47ec34638637fae7ac
3383b09ab1246651b1d7b56ab426a456f56a4ece
refs/heads/master
2023-03-13T19:19:07.084141
2021-03-15T09:29:21
2021-03-15T09:29:21
299,332,864
0
0
null
null
null
null
UTF-8
Python
false
false
85
py
# !/usr/bin/env python3 # -*- coding: utf-8 -*- # @File : 870.矩阵中的幻方.py
[ "1641429327@qq.com" ]
1641429327@qq.com
b2b58656fafea5b3228a70403034f42c9a4cc4c7
7bb3a08e8628780d2bdc86ed84690100acbb8771
/sphere.py
82d278a2b81dc077f503c61ffe86f0b09e6b1064
[]
no_license
javamak/python_raytrace_tut
2e84b2a757f429925b7af3f8542f96a1ffc857a9
4db3e0650d2cd414d8f74b1b25f18657a8e6f320
refs/heads/main
2023-04-26T15:56:22.477737
2021-05-03T14:36:26
2021-05-03T14:36:26
362,014,469
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
from math import sqrt class Sphere: def __init__(self, center, radius, material): self.center = center self.radius = radius self.material = material def intesects(self, ray): sphere_to_ray = ray.origin - self.center #a = 1 b = 2 * ray.direction.dot_product(sphe...
[ "javamak@gmail.com" ]
javamak@gmail.com
1bd246b511bcb25535f008e43dec5d7633a97690
2c112f781016f2022dc7ff1c616b1f57185fe8f8
/tests/conftest.py
34a2935ba0d6d69229c0b0455e16b60a8fcb1f85
[]
no_license
dominicgs/Website
c15312a5b081b42db880b99df6811c8c04777824
fc3587daacff20ec3ab590df121c9f693f09a8ce
refs/heads/master
2020-03-21T16:49:07.492309
2018-06-26T21:41:50
2018-06-26T21:41:50
64,015,414
0
1
null
2016-07-23T12:33:16
2016-07-23T12:33:16
null
UTF-8
Python
false
false
2,265
py
" PyTest Config. This contains global-level pytest fixtures. " import os import os.path import pytest import shutil from models.user import User from main import create_app, db as db_obj, Mail from utils import CreateBankAccounts, CreateTickets @pytest.fixture(scope="module") def app(): """ Fixture to provide an ...
[ "russ@garrett.co.uk" ]
russ@garrett.co.uk
efaf672a163e3201ff01ff94b0c00aa263fe5a66
7896f35d698e4896be25eb879ac546ee9b46b69c
/main.py
a608e718e883d43b5c7a9cd940e98ac5e6dc179f
[]
no_license
SajedNahian/GraphicsWork05
51297fe44e5072765af82ab7d6e837b40698089d
b2099746416a9470622bb496a788f4c9873e2467
refs/heads/master
2020-04-30T12:30:41.408764
2019-03-20T22:48:19
2019-03-20T22:48:19
176,828,348
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
from display import * from draw import * from scriptParser import * from matrix import * import math screen = new_screen() color = [ 0, 255, 0 ] edges = [] transform = new_matrix() # print_matrix( make_translate(3, 4, 5) ) # print # print_matrix( make_scale(3, 4, 5) ) # print # print_matrix( make_rotX(...
[ "noreply@github.com" ]
SajedNahian.noreply@github.com
9c7ade8ee0b8e0940518d647d405439a209f33bc
3af9515966c7d1c074a0923ebab8e60787c8eafa
/oop5.py
9a39b6de0ef278a5b85ebb57262dfa4900b143e0
[]
no_license
suzaana749/basicpython
8dbc4bcf903655143ed616f751a128d0ba8f1b67
035d67fe08c4bb5a4bb864c0b6da2d79bd21ff78
refs/heads/master
2020-04-13T11:15:40.938938
2018-12-31T11:45:49
2018-12-31T11:45:49
163,168,865
0
0
null
null
null
null
UTF-8
Python
false
false
635
py
from __future__ import print_function import math import random class circle: def calCircum(self): return 2*math.pi*self.radius def calDiameter(self): return self.radius *2 def calArea(self): return math.pi * (self.radius ** 2) def __init__(self): # constructor function called ...
[ "mgrsuzaana@gmail.com" ]
mgrsuzaana@gmail.com
a7a68c783777b2cd112ffd422219f4293e1aee15
ac329340f6376bdcf76a893e65641304faf85d86
/Des_Test.py
f8a0a13e2181550e3c1f2db84df317262b894fe8
[]
no_license
JimShu716/Modified_MNIST_Classification
b9df06ba23eadc40f5958cea4024d6830e1785e3
ed17261d8579e1808a8839c7b883e7b38f9a3c5f
refs/heads/master
2020-08-30T14:00:34.464475
2020-02-11T00:22:38
2020-02-11T00:22:38
218,401,968
1
0
null
null
null
null
UTF-8
Python
false
false
2,291
py
import pandas as pd import numpy as np import torch import torch.nn as nn import torch.utils.data as Data import torch.nn.functional as F import torchvision.models as model import matplotlib.pyplot as plt # Hyperparameters EPOCH = 6 BATCH_SIZE = 64 LR = 0.0001 SPLIT_RATIO = 1 # 文件路径自己去改~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :...
[ "tylerliu260@gmail.com" ]
tylerliu260@gmail.com
933cecb82f03c9b88ce4e634c0b0e9c7bf32ba2a
1fc6d2baa958992adecd42d57e89f979972dc3c5
/random/py/05.level_order_bfs.py
89bcc6c4ae80c9181ea30c396c217251888dbe28
[]
no_license
Ritapravo/cpp
b5c56d3b649b0fd2698482e960e39217d547e8fb
0510f41b5ff5c59126461f4c36b3d05c9b1a362e
refs/heads/master
2021-08-20T06:30:49.176592
2021-07-12T17:43:43
2021-07-12T17:43:43
216,426,587
5
6
null
null
null
null
UTF-8
Python
false
false
1,040
py
#level node tree using bfs #https://www.geeksforgeeks.org/level-node-tree-source-node-using-bfs/ from collections import deque as queue def makegraph(): n = int(input()) graph = [[] for i in range(n)] for i in range(n-1): x,y = map(int, input().split()) graph[x].append(y) graph[y]....
[ "ritopravosarker@gmail.com" ]
ritopravosarker@gmail.com
1fc74891fa1324f804b07585e2b154d9b49afdf6
de681ebfa95a07c04fbb1280bf722847b06ee548
/migrations/versions/3fd0d7bc25ea_create_tag_model.py
c5297e733152e5145f95a89eca64b85173b984bb
[]
no_license
Dzhoker/flask-lessons
156957ed29a674df474cfc6b8cdca12adae021d7
590e436516dbd8a3a9af4ad33aafbc854088a6aa
refs/heads/master
2023-03-18T09:44:19.431920
2021-02-18T02:52:07
2021-02-18T02:52:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
761
py
"""create Tag model Revision ID: 3fd0d7bc25ea Revises: 1b2fd89e61b5 Create Date: 2021-01-12 07:40:03.728879 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '3fd0d7bc25ea' down_revision = '1b2fd89e61b5' branch_labels = None depends_on = None def upgrade(): ...
[ "surenkhorenyan@gmail.com" ]
surenkhorenyan@gmail.com
ca408825b28434521ba7bb95bb73b324467a56b2
c2c45ff6987a161e945b34d3b377ce11a9c9cf3b
/python-flask-server/swagger_server/models/expression.py
cf1a5cf4c0e286dca3231a5f5dbecd00572320c2
[]
no_license
JeSuisArina/Python-CGIHTTPServer
089cabad6b6dcfa77ae6fef380b235711fa89e2d
60853297b9337f27286916de55abfc7c39ad19a5
refs/heads/master
2020-03-17T03:31:37.175275
2018-06-06T07:51:16
2018-06-06T07:51:16
133,239,195
0
0
null
null
null
null
UTF-8
Python
false
false
2,294
py
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server.models.expression_result import ExpressionResult # noqa: F401,E501 from swagger_server import u...
[ "noreply@github.com" ]
JeSuisArina.noreply@github.com
5ebf743396b7da4369c2afb4a306a720519eb571
46645262901ac3117e8959b9a334617825def109
/python/couler/couler/pyfunc.py
c13509fdc5e68b39bf61472a6167618c496d987b
[ "Apache-2.0" ]
permissive
ggaaooppeenngg/sqlflow
e8dc3c641db6aa3ba91f201f3f46d0d4bb11b83c
e2f04c6482d722aa952707c19f62670305a2bc3c
refs/heads/develop
2020-09-17T03:57:43.047158
2019-11-25T09:59:49
2019-11-25T09:59:49
223,980,975
0
0
Apache-2.0
2019-12-19T11:08:19
2019-11-25T15:28:07
null
UTF-8
Python
false
false
5,408
py
# Copyright 2019 The SQLFlow 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 law o...
[ "noreply@github.com" ]
ggaaooppeenngg.noreply@github.com
c96137e00332c4e6faaaafb5e3bf3bf35180ad73
e9caa9eeff9ec8443e492e825997f94d2a3a80d3
/pythonProject/HRank/max_sum_con.py
0890e412988dfd51dede4143d1d7daa92482f64a
[]
no_license
saurabhpiyush1187/webapp_api_framework
1fe7270d660f2bd59914d449d649686b7a2a0d17
8c5c60720c7481d238a0cdac9c5aace356829a20
refs/heads/master
2023-03-02T05:13:46.960326
2021-02-13T13:33:23
2021-02-13T13:33:23
334,638,494
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
# This is a sample Python script. # Press Shift+F10 to execute it or replace it with your code. # Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. def print_hi(name): # Use a breakpoint in the code line below to debug your script. print(f'Hi, {name}') # Press ...
[ "saurabhpiyush@spglobal.com" ]
saurabhpiyush@spglobal.com
8786f9605a9ca3d5d09b16b60f4fb0c77fcd8b81
e365e230ad8a889107264b39a5eda71d68172f6f
/archive/combine_rev_aws_transcripts.py
7cb4923f0956dd8ea9ec05a340c1f00c2773b29f
[]
no_license
wkevwang/Intuition-scribe
b4efd0584703a76f208c1a7b099782e26bb17607
969973103f13bb5e89d35cfe316527db8cd59cb1
refs/heads/master
2023-06-23T20:18:39.999554
2021-07-28T22:23:58
2021-07-28T22:23:58
280,757,348
1
0
null
null
null
null
UTF-8
Python
false
false
3,356
py
""" Patch up the low confidence parts of the Rev.ai transcipt using the AWS Transcribe transcript, and return an edited version of the Rev.ai transcript. """ import argparse import os import json from rev_diarization import parse_transcript_elements as parse_rev_transcript_elements def find_elements_in_time_bound(e...
[ "weixiang@ualberta.ca" ]
weixiang@ualberta.ca
12180bacf865e009ab34847ca2fc32c7d48d7f9b
531c47c15b97cbcb263ec86821d7f258c81c0aaf
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_12_01/operations/_ddos_custom_policies_operations.py
9bdb5268477680f052fb35e51b998db264bd5970
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
YijunXieMS/azure-sdk-for-python
be364d3b88204fd3c7d223df23756386ff7a3361
f779de8e53dbec033f98f976284e6d9491fd60b3
refs/heads/master
2021-07-15T18:06:28.748507
2020-09-04T15:48:52
2020-09-04T15:48:52
205,457,088
1
2
MIT
2020-06-16T16:38:15
2019-08-30T21:08:55
Python
UTF-8
Python
false
false
19,277
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 may ...
[ "noreply@github.com" ]
YijunXieMS.noreply@github.com
6844ce56ffa18f4d971b348110a9f410a1502c7e
a3c662a5eda4e269a8c81c99e229879b946a76f6
/.venv/lib/python3.7/site-packages/pylint/test/input/func_noerror_yield_assign_py25.py
f40d8d96e837e9022fc2596b23ce8733990a450c
[ "MIT" ]
permissive
ahmadreza-smdi/ms-shop
0c29da82c58b243507575672bbc94fb6e8068aeb
65ba3f3061e2ac5c63115b08dadfe7d67f645fb6
refs/heads/master
2023-04-27T19:51:34.858182
2019-11-24T20:57:59
2019-11-24T20:57:59
223,616,552
6
2
MIT
2023-04-21T20:51:21
2019-11-23T16:09:03
Python
UTF-8
Python
false
false
387
py
"""http://www.logilab.org/ticket/8771""" from __future__ import print_function def generator(): """yield as assignment""" yield 45 xxxx = yield 123 print(xxxx) def generator_fp1(seq): """W0631 false positive""" for val in seq: pass for val in seq: yield val def generator_...
[ "ahmadreza.smdi@gmail.com" ]
ahmadreza.smdi@gmail.com
e1f046bf1125c305df03d5d353029498f0cbe882
56d41bbc6b5d831ba699ad4a44f5880ba3d195c8
/thread_sync.py
bcd0c1730eb098adb4c5bb1a0e3dc4d595662b6d
[]
no_license
pigliangliang/2018-07-05-08
4635e4dc1926f3f17eae7f607a0b188f6aaf9f43
ba95331f4b0cc0316377a5c67f86d03e8cc257b8
refs/heads/master
2020-03-22T08:51:08.209718
2018-07-08T07:58:06
2018-07-08T07:58:06
139,795,833
1
0
null
null
null
null
UTF-8
Python
false
false
606
py
#author_by zhuxiaoliang #2018-07-05 下午3:39 """   A. Semaphore(信号量)   在多线程编程中,为了防止不同的线程同时对一个公用的资源(比如全部变量)进行修改,需要进行同时访问的数量(通常是1)的限制。信号量同步基于内部计数器,每调用一次acquire(),计数器减1;每调用一次release(),计数器加1.当计数器为0时,acquire()调用被阻塞。 """ import time from random import random from threading import Thread,Semaphore,enumerate sema = Semaphore...
[ "836904717@qq.com" ]
836904717@qq.com
7fd6bd8c1c7690c327cccbd16ff1cfdb292ee885
478cf410ccf4b1511e7d31d99aec68a6c5499792
/17-CS-Python/01-Intro-Python-Overview/src/15_classes.py
e10767a5ae1aa5e9d3d93c51dce62a9fee5720c5
[ "MIT" ]
permissive
felipe0216/data-science-journal
8f4bf9d572c194044c4c738fd39f4816ea542bdc
1ea6208e7abdd514ffbac3f53d2279aac2d4e493
refs/heads/master
2020-07-13T18:52:19.916794
2019-08-23T18:34:05
2019-08-23T18:34:05
205,134,360
1
0
null
2019-08-29T10:02:33
2019-08-29T10:02:33
null
UTF-8
Python
false
false
1,467
py
# Make a class LatLon that can be passed parameters `lat` and `lon` to the # constructor # YOUR CODE HERE class LatLon(object): def __init__(self, lat, lon): self.lat = lat self.lon = lon # Make a class Waypoint that can be passed parameters `name`, `lat`, and `lon` to the # constructor. I...
[ "chrisluedtke@gmail.com" ]
chrisluedtke@gmail.com
688072f226f2b49b242f3cc4a00b67dc6eae16bf
a393ccc763ee9cb78e7c6e2acd9ecb906bc006bd
/tests/conftest.py
411e2a0fe30f78b0827f2d421eea59b048341f54
[]
no_license
Kilo59/GoT-Char_DB16
d2e548886d1c698439ad0b6b948e750f6da25149
122f81419b28590e138dd8fb082c7a0dbb9ae00a
refs/heads/master
2021-09-08T14:38:11.765705
2021-09-04T16:22:42
2021-09-04T16:22:42
65,403,337
1
0
null
2021-09-04T16:22:43
2016-08-10T17:37:48
Python
UTF-8
Python
false
false
657
py
""" tests.conftest.py ~~~~~~~~~~~~~~~~~ Shared testing fixtures """ import pathlib import pytest ROOT = pathlib.Path(__file__).parents[1] # TODO: don't rely on specific database path or name SQLITE_DB = ROOT / "database.db" @pytest.fixture(scope="session") def monkey_session(): """Session scoped monkeypatch""" ...
[ "noreply@github.com" ]
Kilo59.noreply@github.com
855e3ca79856a91739da6ccf5b04275f51eadda3
f1d3bca01c6fd993aef2cc4d6b22f488cdc5e3b5
/cat_scraper.py
f58e21cbeaaedba8a34c1d4102e93013845bf8c8
[]
no_license
HanKruiger/cat-scraper
cad1db39de6336321866a52a46f33e9b3153ee87
e4cef07e17e763f131a5fdc9aaec0db8ea55cc2b
refs/heads/main
2023-04-19T23:03:04.510215
2021-05-08T14:53:04
2021-05-08T14:53:04
365,496,083
0
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
import logging as log import requests from bs4 import BeautifulSoup from urllib.parse import urlsplit class CatScraper: def __init__(self, url): self.url = url split_url = urlsplit(url) self.base_path = f'{split_url.scheme}://{split_url.netloc}' self.cats = None def scrape(sel...
[ "489397-hankruiger@users.noreply.gitlab.com" ]
489397-hankruiger@users.noreply.gitlab.com
09517b256fb2ff6d1963ce364542f0f10d77b7c2
92e290932cba0e045c86b26de13fcc902e920d83
/tart/python/bb/asound.py
884d3285fdb5317d935503c9f30cc70377038847
[]
no_license
HorizonXP/blackberry-py
4f9615f2637c1e9bc81b712172c41d13ce6e1726
ee9823b5f1ce1efa6531005df60b246a4147c4a2
refs/heads/master
2020-05-27T13:08:56.497247
2013-08-30T06:56:03
2013-08-30T06:56:03
7,714,244
2
1
null
2013-08-29T08:57:05
2013-01-20T08:27:19
Python
UTF-8
Python
false
false
74,497
py
'''Wrappers for asound.h routines''' import ctypes from ctypes import (sizeof, c_bool, c_ubyte, c_byte, c_char, c_ushort, c_short, c_uint, c_int, c_ulonglong, c_longlong, c_float, c_double, c_char_p, c_void_p, POINTER, Structure, Union, CFUNCTYPE) # TODO: confirm these are correct size_t =...
[ "peter@engcorp.com" ]
peter@engcorp.com
7dee759bea033347ff76f5b4a3103bb226993ca7
c5975130be45244b9e163b280cee80d76021be23
/Demo_exp_simulation.py
cc2a2077e2fac91902a18c599112a0448cc4c9c6
[]
no_license
shaunak-desai/Laser-Tracker-simulation
ce3fed597b4603e030db2d6846ea5ab1066ab547
d3a3dea274c60ce94ccbf8e669383a550832cb2f
refs/heads/main
2023-03-11T15:21:48.358890
2021-02-18T12:28:48
2021-02-18T12:28:48
340,024,767
0
0
null
null
null
null
UTF-8
Python
false
false
7,010
py
''' Simulation for demo experiment with 4 targtes placed at an approrpirate distance to simulate the 4 corners of the ATHENA WFI CCD detector ''' import numpy as np import transformations as t import transform import matplotlib.pyplot as plt import Uncertainities as un import math as m from Kabsch_best_fi...
[ "noreply@github.com" ]
shaunak-desai.noreply@github.com
c80abae38d1dabb5dfaa1cc1b9606faa528421bd
13b72e5c48f5f7213d9a569f699dc1554bc363dd
/demo/libdemo/list_git__repos.py
35f238aa8d2d69b1030b7d8cfefa92fded15d932
[]
no_license
srikanthpragada/PYTHON_02_MAR_2021
6997fece4ad627bb767c0bca5a5e166369087e68
5dfd0c471378bd22379ac0d66f8785d4d315017b
refs/heads/master
2023-04-04T20:28:22.738042
2021-04-17T14:19:48
2021-04-17T14:19:48
344,498,123
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
import requests user = "srikanthpragada" response = requests.get(f"https://api.github.com/users/{user}/repos") if response.status_code != 200: print(f"Sorry! Could not get details for {user} from github!") exit() repos = response.json() # Convert JSON to dict for repo in repos: print(repo['name']) pri...
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
4b1ecbe8bfc1dfb288e7e30b8ba859c26d6a53c9
b13ca274b4463c9900840ee6516094b7509b6041
/empower/lvapp/lvaphandler.py
b5c42204161a1e3cc0f451116cafa63d304a1803
[ "Apache-2.0" ]
permissive
imec-idlab/sdn_wifi_manager
09d206f2f649aa715752d3c44e011d3f54faf592
eda52649f855722fdec1d02e25a28c61a8fbda06
refs/heads/master
2021-06-23T08:03:22.482931
2020-12-03T11:30:10
2020-12-03T11:30:10
162,106,793
0
0
Apache-2.0
2019-03-27T16:23:31
2018-12-17T09:33:47
Python
UTF-8
Python
false
false
3,522
py
#!/usr/bin/env python3 # # Copyright (c) 2016 Roberto Riggio # # 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 applicabl...
[ "pedroisolani@gmail.com" ]
pedroisolani@gmail.com
a2be10df8f5d1ea4680193e91049bd3d406fbf87
747ef767341c4e6ecd1cad733fc84781951f2424
/pq/2020/p7/C/solC1.py
0318815ab20422cb93a5a75f01f4b1e8317f0281
[]
no_license
islami00/csc102
4cdfd761814bab0d7ef45f2270aa70bf411d233b
93c89f7b087ff90c34b508b12d654c42857adbd2
refs/heads/main
2023-06-19T06:27:47.620859
2021-07-15T16:25:10
2021-07-15T16:25:10
348,317,933
0
0
null
null
null
null
UTF-8
Python
false
false
57
py
n = [12, 3, 3, 4, 4, 5] ls = [x for x in n if x % 2 == 0]
[ "islam-machine@gmail.com" ]
islam-machine@gmail.com
4ec929b17336e778d3d9066994a98845264bb1ae
e168e0dde760fc5fac8f96f8ac9f6d86ba471685
/ex41.py
84577b13ad6e3f8c529a9cbbc79c903904ce4212
[]
no_license
Kalinitch/LPTHW
a9db1d61d3497c374670fc38f58123216aa32d01
a005cbd09a5bae1cd77a7f1c7777ad277d078510
refs/heads/master
2021-09-06T11:13:17.876476
2018-02-05T21:36:19
2018-02-05T21:36:19
111,433,628
1
0
null
null
null
null
UTF-8
Python
false
false
2,419
py
import random from urllib import urlopen import sys WORD_URL = "http://learncodethehardway.org/words.txt" WORDS = [] PHRASES = { "class %%%(%%%):": "Make a class named %%% that is-a %%%.", "class %%%(object):\n\tdef __init__(self, ***)" : "class %%% has-a __init__ that takes self and *...
[ "31504128+Kalinitch@users.noreply.github.com" ]
31504128+Kalinitch@users.noreply.github.com
f4c8214ad10722f296a55d35be50738047f802c1
0ffaf53637a5c2f776c8b65957007c2a59667ca4
/access_presentation_data/flow_logic.py
bd34acdb4b20e7c38c21d7946681777846884335
[]
no_license
henriquekfmaia/LTSimApi
a4667de6c871be10c68fdfb1762c78e086ce3ec2
f77f5a8dfa44522496bb16cd613c888bdfe134e7
refs/heads/master
2020-03-20T06:08:29.875501
2018-10-23T12:09:02
2018-10-23T12:09:02
124,909,083
0
0
null
null
null
null
UTF-8
Python
false
false
1,632
py
import math import logic.comparer as co def add_flows(flowA, flowB): flowA.waterFlow.value = float(flowA.waterFlow.value) + float(flowB.waterFlow.value) totalMass = float(flowA.massFlow.value) + float(flowB.massFlow.value) if totalMass == 0: totalMass = 1 wA = float(flowA.massFlow.value)/totalM...
[ "henrique.maia@poli.ufrj.br" ]
henrique.maia@poli.ufrj.br
72207f113df60216c97329d5cb3193a0ab4d1938
8edf69b3e354c09fb0950ea7be19e92b20b8d208
/pyzkaccess/ctypes.py
321cb0062313080fdf84b7beef9c96569ebc2934
[ "Apache-2.0" ]
permissive
redjanym/pyzkaccess
41f57a42026b67da97f6ba4081f9fbdd0c30813d
051236992d5b3f6bdb01fe64b7a787b0c22369a9
refs/heads/master
2022-12-10T04:24:21.328624
2020-09-07T22:11:34
2020-09-07T22:11:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
"""This module is intended to safety import Windows-specific features from `ctypes` stdlib module on non-windows platform -- they are replaced by mock objects. Despite the code which uses that features becomes partially unoperable in this case, we can import it and generate documentation for instance """ import warning...
[ "gosha753951@gmail.com" ]
gosha753951@gmail.com
9e4155600c0214f59a5e96c16b9db5ae5e42af68
c4a0e8e5707f95c934a82e92a32cf749e35ab8d1
/Chapter3/numberprint.py
b96674777e5b1719dec3f306c7d998f7b31627a7
[]
no_license
Blattarex/PublicFolder
2c42c5b760f03f53501c3a28834b91cf1eea721f
46b7d57fb92796fb0ac533b12125505c65b35889
refs/heads/master
2020-04-23T11:47:12.165028
2014-02-28T02:04:06
2014-02-28T02:04:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
file = open("binary.dat", "rb") size = struct.calcsize("i") bytes_read = file.read(size) while bytes_read: value = struct.unpack("i", bytes_read) value = value[0] print(value, end=" ") bytes_read = file.read(size) file.close()
[ "pidgetmidget@gmail.com" ]
pidgetmidget@gmail.com
bf439e9862b4ae08f44e047b1d51ff58c9ae6f67
c6666d0235d1d03ed9a5a2d1a3cfa9ccc9d9e88c
/webcore/migrations/0001_initial.py
bc167afd1bfb17d3738481c8cc02fc4ac5b3fcf0
[]
no_license
boiyelove/savingsensei
67dc8a5690c7599dd126159837af6e567852aa73
8acd46ebd770b9e18f64e14ff08bfd2ddbcc0edc
refs/heads/master
2021-10-20T01:32:10.775234
2019-02-25T03:27:31
2019-02-25T03:27:31
172,426,033
0
0
null
null
null
null
UTF-8
Python
false
false
1,812
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-20 12:21 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Banner'...
[ "daahrmmieboiye@gmail.com" ]
daahrmmieboiye@gmail.com
40dbe20a67504c37c5be2abfab99add67569df21
585bac463cb1919ac697391ff130bbced73d6307
/36_ValidSudoku/solution1.py
91569e66f6dee678a57f5dd30000308804bcd22a
[]
no_license
llgeek/leetcode
ce236cf3d3e3084933a7a4a5e8c7766f7f407285
4d340a45fb2e9459d47cbe179ebfa7a82e5f1b8c
refs/heads/master
2021-01-22T23:44:13.318127
2020-03-11T00:59:05
2020-03-11T00:59:05
85,667,214
1
0
null
null
null
null
UTF-8
Python
false
false
769
py
class Solution: def isValidSudoku(self, board: List[List[str]]) -> bool: seen = set() for i in range(len(board)): for j in range(len(board[0])): val = board[i][j] if val == '.': continue if str(val) + 'in row ' + str(i) in seen: ...
[ "angleflycll@gmail.com" ]
angleflycll@gmail.com
7050fce62d11317def18ad9ac77a6d3dfed8819d
b4ca970112c5eefeb5863535aefbea8b51ac4daa
/app.py
73706eb3be17717dc19fcbe4f946b3e5b618c363
[]
no_license
ramitsharma94/financial_summarizer
59c84d2a670605059840a21c5bac36848a076e42
13a75ba5bc648c2ede9d0f8f9595ed7cf8e7c439
refs/heads/main
2023-07-06T09:22:40.173135
2021-08-09T21:56:34
2021-08-09T21:56:34
314,419,824
0
0
null
null
null
null
UTF-8
Python
false
false
3,622
py
from flask import Flask, render_template, url_for, request, redirect, jsonify, Response # from flask_sqlalchemy import SQLAlchemy import flask_excel as excel from datetime import datetime import pandas as pd from werkzeug.utils import secure_filename from flask_uploads import UploadSet, configure_uploads, DOCUM...
[ "noreply@github.com" ]
ramitsharma94.noreply@github.com
f8711cdf3509fa00badbd49057ade5fedad53403
94b2834ded570173806e7c49b9bbf0e36d57d2cf
/weather_api/users/migrations/0001_initial.py
bc1d65974c906974e97b3ce328a099a8eb5de3a8
[ "MIT" ]
permissive
dimka2014/weather-api
2bb2ef02357ab1f498f7469b3dfe4d46c9be6772
14456b87c2da2edf4350f822788e04287d62e744
refs/heads/master
2021-01-20T05:32:40.930109
2017-05-04T11:21:38
2017-05-04T11:21:38
89,790,449
0
0
null
null
null
null
UTF-8
Python
false
false
2,360
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-04-28 10:57 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length')...
[ "dimabelyaev27@gmail.com" ]
dimabelyaev27@gmail.com
ec4a35b2fe0721b18cf3992900a6e0b2644a3bc7
a5525982bbb505a1d0e6ede817938eb87281d447
/tests/smoketest/scripts/create_account_list.py
9da9abf73638ad74ed295229da77c4bbd3054769
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
Oskii/Ezira
09966cf37da91fa18c7392f5d6acb0b943ae97fc
e8e8f0648940298850ff33136fcd5cd2030539d3
refs/heads/master
2020-03-09T00:59:32.724717
2019-04-26T02:19:37
2019-04-26T02:19:37
128,502,128
0
0
null
null
null
null
UTF-8
Python
false
false
1,563
py
#!/usr/bin/env python3 """ Create list of all steem accounts in file. Usage: create_account_list.py <server_address> <output_filename> """ import sys import json import requests def main(): if len( sys.argv ) != 3: exit( "Usage: create_account_list.py <server_address> <output_filename>" ) url = sys.argv[1...
[ "eu-be@tlen.pl" ]
eu-be@tlen.pl
7840c7e3a7666d10832cfc9de216c5f356783730
2fbdf22081ea33ad23e246ffd390438b89e4f6b6
/PerceptronClassifier/main.py
589676e77fcbb3c8cd32e691a25212b9dfab6e31
[]
no_license
Vladimir1994/MachineLearning
bb13836abc8ea523b10890a9208009ffa4e9db84
7fd8a9b10fe97b1df80309e92e6cd6e6c5f75cb6
refs/heads/master
2021-01-10T15:23:05.173110
2016-04-09T21:14:22
2016-04-09T21:14:22
48,575,524
0
0
null
null
null
null
UTF-8
Python
false
false
1,306
py
import numpy as np from sklearn.linear_model import Perceptron from sklearn.metrics import accuracy_score from sklearn.preprocessing import StandardScaler def count_accuracy(train_markers, train_features, test_markers, test_features, is_standard): if is_standard: scaler = StandardScaler...
[ "vladimir.matveev.1994@mail.com" ]
vladimir.matveev.1994@mail.com
8ac537b07be9198d7e763729701e1d2f9534ce38
456f6b8e7a8df0ea3e7c80a183a665f4066ef11d
/mulTwoInt.py
5eeb78d1e241c012f8e9cd4b081829ed913f8d77
[]
no_license
diksha002/TD3_Diksha_Dwijesh
441118500865aed4908032b99e04501f0717160b
36609fd73f4d7edaf2f0ba38825e3a77932812c5
refs/heads/master
2021-02-14T19:23:51.276272
2020-03-10T20:20:49
2020-03-10T20:20:49
244,827,955
0
0
null
null
null
null
UTF-8
Python
false
false
599
py
import sys def mul(a,b): multiply= a * b return multiply if __name__=="__main__": if ( len(sys.argv) > 3 ): print ("Erreur! Entrez que deux valeurs") elif ( len(sys.argv) == 1 ): print ("Erreur! Entrez deux valeurs") a = input("premier valeur: ") b = input("deuxieme valeur: ") a = int(a) b = int(...
[ "dwi.rag123@gmail.com" ]
dwi.rag123@gmail.com