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
220 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
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
f2671d36c0e36c603edd4e644c8fe5e3c47c3207
ad3eca78df0539defdf3697de863fd4f2334ae5d
/kfold/kfold-13.py
3cea01a6f082375bd88c1f9be112a4e6265ffc4e
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
AinoraZ/similarity
6f74ca826d9123cd5d69832047dec4a4cbde9a72
25ef2b613f135b7ac06abdfa4f8e161b0009f324
refs/heads/master
2021-03-10T00:26:47.435985
2020-04-25T11:33:58
2020-04-25T11:33:58
246,398,657
0
3
null
2020-06-03T10:02:08
2020-03-10T20:14:13
Python
UTF-8
Python
false
false
269
py
import glob, os dataset_dir = '/opt/datasets/data/simulated_flight_1/train/' test_data_dir = dataset_dir + '0/*' all_files = glob.glob(test_data_dir) all_files.sort() for filename in all_files[2304:2496]: os.rename(filename, filename.replace('/train/', '/test/'))
[ "vytautas@valaitis.net" ]
vytautas@valaitis.net
2dd331830c8da0eca6ca46d05d214d1443501f2f
4ede275efc8bc9f9ef121dc37215d2f0d8453e36
/primer1.py
20a96af89513d28f097429ac8bc17040ee3ff8f6
[]
no_license
shanthivimalanataraajan01/code
bfa8a441b0c360aebd02248ad4433cc21889c3d2
ea467ae1eefd68a5dceaa53aab7149d31bd5faf6
refs/heads/master
2020-04-15T05:01:03.625422
2019-05-17T09:35:45
2019-05-17T09:35:45
164,405,963
0
2
null
null
null
null
UTF-8
Python
false
false
177
py
#vimala #hi m,n=map(int,input().split()) x=' ' for n in range(m+1,n): if n>0: for i in range(2,n): if n%i==0: break else: x=x+str(n)+' ' print(x.strip())
[ "noreply@github.com" ]
shanthivimalanataraajan01.noreply@github.com
c52a5c1676bcf0d5ccf2d2f211d671bdb31e6b0b
a51e4a1299cd5e2f5a5205f49a9c82a3e9e6939d
/1.3 Data Preprocessing with Scikit-Learn/7.2 Labeled Data.py
4fc125b2f5df3eb197300115e2699c650600bec4
[]
no_license
Deviloxide/Introduction-to-Machine-Learning
0309861a63e91766eadf4be64d57dbe18efe359a
9599066dd747e2f4deb1b87b10ba7abd7c3ed314
refs/heads/main
2023-05-26T00:14:14.764233
2021-06-09T15:36:55
2021-06-09T15:36:55
373,716,827
0
0
null
null
null
null
UTF-8
Python
false
false
3,099
py
from sklearn.datasets import load_breast_cancer from sklearn.decomposition import PCA import matplotlib.pyplot as plt # The coding exercise in this chapter involves completing the separate # _components function, which will separate principal component data by # class. # To do this, we first need to compl...
[ "noreply@github.com" ]
Deviloxide.noreply@github.com
256a6d27be8d5d13a5dd9e245e5f27869dd2051e
b04cd64d459c607591c319732f1214afe5ed011b
/practice/orm外键练习.py
fc302d552a6d7a571dc46676e1517c22210409d0
[]
no_license
xm369083227/pyScripts
fb318938946eec8e5557095187d6f58e433b2309
26ce200fe3e51bf699ffca0588a63c91a355bdfc
refs/heads/master
2020-03-27T23:31:00.003520
2018-09-20T06:06:33
2018-09-20T06:06:33
147,323,947
0
0
null
2018-09-05T09:56:48
2018-09-04T09:47:53
Python
UTF-8
Python
false
false
2,254
py
#author:xm #coding:utf-8 from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column,Integer,String,DATE,ForeignKey from sqlalchemy.orm import sessionmaker,relationship #连接mysql引擎,echo为程序运行信息的启动开关 engine = create_engine("mysql+pymysql://root:Xt2018@58.206....
[ "369083227@qq.com" ]
369083227@qq.com
9439da95bdf627509cf8fe25d37f12226346b06e
157112318ce2f16c91b2f4cf27913dbb5d134379
/text_clsf_lib/preprocessing/vectorization/data_vectorizers.py
0bc6d3528213d662ee961c4ef898ad4e87985b40
[]
no_license
dawidbrzozowski/sentiment_analysis
550f8258f9dcd0f70cc97c5ad0ac2167e948d028
f016984a560cfd437cbcef59cdf5aae67916cabb
refs/heads/master
2023-02-17T20:11:14.915771
2021-01-18T18:26:30
2021-01-18T18:26:30
330,398,553
0
0
null
null
null
null
UTF-8
Python
false
false
933
py
from text_clsf_lib.preprocessing.vectorization.output_vectorizers import OutputVectorizer from text_clsf_lib.preprocessing.vectorization.text_vectorizers import TextVectorizer class DataVectorizer: """ This class is meant to vectorize X and y (texts and outputs). To perform that, it uses TextVectorizer an...
[ "noreply@github.com" ]
dawidbrzozowski.noreply@github.com
a451e7f6d55784dc1c2e5f0f53537cc861388029
96cebf0a96ce88ee10c5b73006e82f82e03e3445
/data_loader/setup_database.py
2f16a4125c0ec95865dc063346b818618f9e6428
[]
no_license
madhukar01/fampay_ytsearch
6d97067555807b6d221996105308f282b764d074
34f7da7587b6e09c097c96eef506d6ea09a3c993
refs/heads/master
2022-12-10T02:18:49.319391
2020-08-26T08:39:47
2020-08-26T08:39:47
290,190,217
0
0
null
2020-08-26T08:39:48
2020-08-25T10:57:18
null
UTF-8
Python
false
false
699
py
from rethinkdb import RethinkDB ############################################################################### # Database setup script ############################################################################### def setup_database(): r = RethinkDB() r.connect(host='localhost', port=28015).repl() try:...
[ "mholla8@gmail.com" ]
mholla8@gmail.com
163e0034af894a9a7ead6fc469d11e2a2b917cf5
58b3ef7362ad040f4ea3b976837fa023af8f2426
/GoodShearTestCase/ToastDemo.py
f91bc5b7585870b461b46106d1ebecbfff9b837c
[]
no_license
Ghuashang/GoodShears
1b76d9d670954c7b7fc8cb8e381f9ca5c0142917
89bdbc52320d2a08dd029bfc7e9734646565498c
refs/heads/master
2021-03-07T09:40:34.284168
2020-03-10T09:25:21
2020-03-10T09:25:21
246,258,016
0
0
null
null
null
null
UTF-8
Python
false
false
1,768
py
# 导入webdriver库 from appium import webdriver from selenium.webdriver.support.ui import WebDriverWait import time #定义空字典 device_info={} device_info['platformName']='Android'#设备平台 device_info['platformVersion']="6.0.1"#设备系统版本 device_info["deviceName"]="DUK_AL20"#设备名称 device_info["device"]="hlteuc"#设备厂商信息 device_info["app"...
[ "1946259605@qq.com" ]
1946259605@qq.com
f9df0948e54785143d5fea418eb952470e8e1864
a809187985e3aa4ffd35a0bbadf5f39ccb29f304
/parabola_functions22.py
c9a146f11b2a3eeea0e7683452afd07799e43e98
[]
no_license
RajrocksIT/python_parabola_functions
95f3b52777fdbe955d0581182dfa680bf5a8fa26
b33bddc94f3ac5f310a64e687d9857cdccd49ba4
refs/heads/master
2020-06-08T01:15:36.210477
2019-06-21T16:46:53
2019-06-21T16:46:53
193,131,931
0
0
null
null
null
null
UTF-8
Python
false
false
1,576
py
# Now lets makes changes so that it comes to original form. try: import tkinter except ImportError: import Tkinter as tkinter def parabola(x): y = x * x / 100 return y def draw_axes(page): # canvas changed to page page.update() ...
[ "chinnirajesh90@gmail.com" ]
chinnirajesh90@gmail.com
670a9c4656b1ed4889e4390c5fe424466c8af425
e7d65f8773a8c736fc9e41e843d7da6da5cc2e0b
/py3plex/algorithms/network_classification/PPR.py
0339b2da13f9375d038028962e9f8485a7392e37
[ "BSD-3-Clause" ]
permissive
hanbei969/Py3plex
768e86b16ca00044fcb4188e01edf32c332c8a2a
1ef3e0e6d468d24bd6e6aec3bd68f20b9d9686bb
refs/heads/master
2021-01-03T18:19:24.049457
2020-02-12T16:51:14
2020-02-12T16:51:14
240,188,307
1
0
BSD-3-Clause
2020-02-13T05:57:16
2020-02-13T05:57:16
null
UTF-8
Python
false
false
4,584
py
## set of routines for validation of the PPR-based classification from ..node_ranking import * from ..general.benchmark_classification import * import pandas as pd from sklearn.svm import SVC from sklearn.metrics import f1_score import time import numpy as np import multiprocessing as mp from sklearn.model_selection i...
[ "skrljblaz@gmail.com" ]
skrljblaz@gmail.com
0a2c635b30ba3fceb06674f761530776ee51e64e
c1a05663947ad6ba03183c91add95500b622d74e
/PYTHON/code/failed/grammar.py
e452f842db06f513198551ec78edfe6af7e747ee
[]
no_license
qhb1001/A-simple-interpreter
c90ca6334cf448a98ee0a38a2d4edabb8e2d745a
ed9200bfc7d50f5a2f1fc6132372d025d836da4d
refs/heads/master
2020-04-10T09:34:38.303791
2019-05-08T08:46:48
2019-05-08T08:46:48
160,941,087
4
0
null
null
null
null
UTF-8
Python
false
false
5,071
py
import exceptions import lexical # first deal with the brackets def check_brackets(lines): line_number = 0 # if last if lines == None: exit() for line in lines: stack = [] line_number += 1 for token in line: # if this is a '(', then just push it into the s...
[ "z694895876@gmail.com" ]
z694895876@gmail.com
90916e2114b0ee3e7317d3d5a8fa9e0691727229
866549190585e349c926a70cf2d3f767a3e72bde
/examples/larson.py
5e5eb5bbd717629c7d54b7b992d258417df11a67
[]
no_license
russelltsherman/rpi-ledshim
9e6a15e4b3f140e7a1f00adc83212eb8e2445066
3d4acf5a70ac4507ff45dcbf2d2c73313a32f5ff
refs/heads/main
2020-12-10T20:44:53.291042
2020-01-13T22:31:05
2020-01-13T22:31:05
233,707,189
0
0
null
null
null
null
UTF-8
Python
false
false
777
py
#!/usr/bin/env python3 import time import ledshim ledshim.set_clear_on_exit() REDS = [0] * ledshim.NUM_PIXELS * 2 SCAN = [1, 2, 4, 8, 16, 32, 64, 128, 255] REDS[ledshim.NUM_PIXELS - len(SCAN):ledshim.NUM_PIXELS + len(SCAN)] = SCAN + SCAN[::-1] start_time = time.time() while True: # Sine wave, spends a little ...
[ "russell.t.sherman@gmail.com" ]
russell.t.sherman@gmail.com
e398d0079296284a5b09029a6040ba7474bc34b9
0d12834f4e393ecb35211c04c88f31eaf724a4dd
/src/model/pl_model.py
e5eff989fba027a5e4af271882be3db3ff33c647
[]
no_license
killsking/atrc
be39f21b87d6cbfda3206e7e08ca70afde83a02b
5714e58db809dad7bc6d71b6b6be83f241105278
refs/heads/main
2023-07-12T18:24:21.871045
2021-08-23T09:10:31
2021-08-23T09:10:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,665
py
import os import torch import torch.nn as nn import pytorch_lightning as pl from . import builder from . import utils_model class MultiTaskModel(pl.LightningModule): def __init__(self, model_backbone: str, in_index: str, model_head: str, tasks: ...
[ "brdavid@student.ethz.ch" ]
brdavid@student.ethz.ch
afd09bb83a3a90a1805d56e217fcd7384f04c39c
b4f1f3d454306ba6dcf1d197dbcf80f9d4326a97
/venv/lib/python2.7/site-packages/troposphere/redshift.py
056d6102a4227599d8bb11f130bbdf6823b70faa
[]
no_license
clearnote01/i-am-a-pokemon
d81ffbbef7b90594798509b0fafc1ef0577d2553
e3b12c0cb000c89a5007c88608b783b68fd0f8a3
refs/heads/master
2021-01-19T17:36:34.391035
2017-04-15T17:41:04
2017-04-15T17:41:04
88,333,579
1
1
null
2020-07-25T23:46:29
2017-04-15T08:11:26
Python
UTF-8
Python
false
false
2,692
py
# Copyright (c) 2014, Guillem Anguera <ganguera@gmail.com> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject, AWSProperty from .validators import boolean, integer class Cluster(AWSObject): resource_type = "AWS::Redshift::Cluster" props = { 'AllowVersionUpgrade': (...
[ "clearnote01@gmail.com" ]
clearnote01@gmail.com
b4e53cc53f327c176ac752687f666fa108fb1ffb
0ffb1c51608db9af003c774aff26d55478f8959c
/Aula1/aula1_ex3.py
88bca3b0f84ae07a47f987f4a7c811358877c7bc
[]
no_license
miguelgallo/Python2019_1
b8573aa31d0cff96584cd06c30f57df09e7b7e71
1c6ae770ba6db385353739bccc682f0ec11bdecf
refs/heads/master
2020-04-28T12:18:52.587285
2019-07-11T17:28:03
2019-07-11T17:28:03
175,272,526
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
print('Este código calcula os zeros da função y = 3 *x^2 - 4 *x -10') a = 3 b = -4 c = -10 delta = (b ** 2) - 4 * a * c x_1 = (-b + ((delta)**(1/2)))/(2*a) x_2 = (-b - ((delta)**(1/2)))/(2*a) print('Os zeros da função ocorrem com os seguintes valores: x_1 = ', "%.3f" % x_1 , ' e x_2 = ' , "%.3f" % x_2)
[ "noreply@github.com" ]
miguelgallo.noreply@github.com
3d85b60c535e510cd5fac34fa8f7216174d05472
79218f2de150f9681beed51658cd23bd291d4933
/docs_build/conf.py
902accac229e9d24dd94619d6c7156d6d7d9e340
[ "Apache-2.0" ]
permissive
thomaskwscott/kafka-connect-shell-source
9d590fdabf059bf203efb419132028525dfae2df
c07b4d0b53fefb4d6e1ef3b964576096a6f0fec2
refs/heads/master
2020-04-23T05:17:07.156960
2019-02-23T21:10:14
2019-02-23T21:10:14
170,935,439
0
0
null
null
null
null
UTF-8
Python
false
false
8,558
py
# -*- coding: utf-8 -*- # # Kafka Connect Shell documentation build configuration file, created by # sphinx-quickstart on Wed Dec 17 14:17:15 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated...
[ "thomaskwscott@gmail.com" ]
thomaskwscott@gmail.com
fbcf2f345a377b236e4d5dd331708ae9b0e6cc03
392a4f5c76414fcbed17dd5dccaf2f64096659a2
/app_frame/page/market.py
0630ce30172d3d8b20da2105324e02b39ca1bd86
[]
no_license
Allison001/homework
3bd5794c8bdd944f827f3e8008eea1831f90644b
1ab910d21ad4348a212b226758cfa8244ea03bfc
refs/heads/master
2023-04-08T22:48:56.667737
2021-04-15T03:38:56
2021-04-15T03:38:56
324,184,733
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
import yaml from selenium.webdriver.common.by import By from app_frame.basepage import BasePage from app_frame.page.search import Search class Market(BasePage): def goto_search(self): self.run_step('../page/market.yaml','goto_search') # self.find_and_click((By.XPATH,"//*[@resource-id='com.xueqiu...
[ "zhangyingxbba@gmail.com" ]
zhangyingxbba@gmail.com
3eab17b4d99bc2897c9558af70613ded3c6884d6
633ed4f252fb0562465e8c16c2a9a72381219e4a
/PycharmProjects/HelloWorldProject/PythonLearnAgain/ch5/ch5_class_def_iterations.py
580d97ecb534fdb221500466dee5d7e5390a9d6f
[]
no_license
venkunikku/exercises_learning
5c3731f7bb8ec895a59d7eb8e4e3ed18911ef548
6fff208a8f218209f1a380e639ba1cd7b5a8e5b2
refs/heads/master
2021-04-29T00:23:01.487906
2017-06-02T21:26:10
2017-06-02T21:26:10
77,713,063
1
0
null
null
null
null
UTF-8
Python
false
false
768
py
class Iterator: # def __new__(cls, *args, **kwargs): # print("Called when new object is created") # def __init__(self, a): # print("Called when object is created") # def __del__(self): # print("called when object is destored") li = [] def __init__(self, max): self.max...
[ "venku.buragadda.acc@gmail.com" ]
venku.buragadda.acc@gmail.com
c948e4c49f57de913ea20ae7dd968cb11a338119
76294c1bb35afe5bb1fca1a46a8b3c6fd777c2cf
/test/wx/test_filehelper.py
1cb731bf42b056a51ae95258be15ef7d99f3a791
[]
no_license
robotsstudio/wxRobot
4f9c0ece2b4e02085bd582199d9713c664cbea32
355e903422543372430f39a9693a424aa1c2df16
refs/heads/master
2020-05-21T10:38:11.320463
2018-10-25T02:10:30
2018-10-25T02:10:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,340
py
#!/usr/bin/env python # encoding: utf-8 # @Time : 10/18/18 __author__ = 'MiracleYoung' import functools, threading, time import itchat from itchat.content import * import sys, os print(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__f...
[ "miracleyoung0723@gmail.com" ]
miracleyoung0723@gmail.com
0d5831a00990b638ea1e36c31bbf02d7b0c7d605
2c308baea6968125fd69b365b0341d16b02b65a3
/quantylab/systrader/creon/bridge_django.py
faab6455f3c67de7cc36820a76c064029559c0cd
[]
no_license
spica2002/systrader
da3f81d73a030a7a1d7b41b2919c649c1fdfe5bc
9491d294f328d8114ef89868ba3273acf0182f25
refs/heads/master
2023-04-14T03:33:18.925740
2021-04-24T02:33:03
2021-04-24T02:33:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,648
py
import json from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt from quantylab.systrader.creon import Creon from quantylab.systrader.creon import constants c = Creon() @csrf_exempt def handle_connection(request): if request.method == 'GET': # check co...
[ "quantylab@gmail.com" ]
quantylab@gmail.com
1ceb6046b361c47e2aeb6f2e8d5fcf37b576a647
ffa2e1cd0adc8cb9f548bf322f6a0d81f101035b
/cloudbaseinit/tests/plugins/common/userdataplugins/cloudconfigplugins/test_set_hostname.py
a84e2ba8ae4d400bba17b18814b9a7682fbe9d82
[ "Apache-2.0" ]
permissive
ader1990/cloudbase-init-1
87c754c9374797a476eb2b75ed0d3b3d96de6d14
4b0d94cd0fe484c2f323fb47f14c8563b4cfdfb2
refs/heads/master
2023-08-07T18:57:48.478125
2020-02-07T17:47:25
2020-04-03T17:10:09
25,139,191
0
2
Apache-2.0
2020-04-14T10:50:31
2014-10-13T02:05:45
Python
UTF-8
Python
false
false
1,476
py
# Copyright 2016 Cloudbase Solutions Srl # # 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...
[ "scaraiman@cloudbasesolutions.com" ]
scaraiman@cloudbasesolutions.com
f9754e638f7f0ac79325079232c3d5fc0e6698ee
52951a030d9988d33b7a148c4997c1240ced4216
/cgen/cgen/cuda.py
8d444c942fb8d3963557f03928775b08ad9a07fe
[]
no_license
chiaracoetzee/asptutorial
d99632fbb8ea561f12912f344d9451fe547bdd0d
4cc60645aa06054eb59d2e821b96d36cef68782a
refs/heads/master
2021-07-11T08:16:22.865970
2012-04-02T14:07:37
2012-04-02T14:07:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
582
py
from __future__ import division from cgen import DeclSpecifier class CudaGlobal(DeclSpecifier): def __init__(self, subdecl): DeclSpecifier.__init__(self, subdecl, "__global__") class CudaDevice(DeclSpecifier): def __init__(self, subdecl): DeclSpecifier.__init__(self, subdecl, "__device_...
[ "dc@moonflare.com" ]
dc@moonflare.com
4b1787ae72aefebe880c2c4b230b6b170670ff17
79187d5ada48d8c9abd85da9ec8cf367cda18099
/custom/fastai.customold/callbacks/one_cycle.py
3975821fcc304d354c2730aca7d4c1b4ac12328d
[ "MIT" ]
permissive
MichaelSluydts/schnetpack
92331eb12ea8aa3b910e168cba0e263d0b318dbf
9ca068d1f43ee4aff5bc2b6b0d5714c3ac484470
refs/heads/master
2023-02-24T15:35:19.906745
2021-02-01T12:22:13
2021-02-01T12:22:13
334,938,523
0
0
null
null
null
null
UTF-8
Python
false
false
2,166
py
"Supports 1-Cycle style training" from fastai.core import * from schnetpack2.custom.fastai.callback import * from schnetpack2.custom.fastai.basic_train import Learner,LearnerCallback __all__ = ['OneCycleScheduler'] class OneCycleScheduler(LearnerCallback): "Manage 1-Cycle style training as outlined in Leslie Smit...
[ "michael.sluydts@epotentia.com" ]
michael.sluydts@epotentia.com
ec72f0f7a89df64431f0e586bcb6b77cb150443b
42a23fabbf3280340377c777021950ba1351657c
/users/views.py
f95e13c8d5c672c2e64697090bd44b9d1873c422
[]
no_license
adineshshylaja/8210Assignment1
9046f09dcdfa9d3c483c2c7a223b9e7ef97c6c8a
5faf6af827e426364fca6350802982477ee388fc
refs/heads/master
2022-12-12T22:03:44.832689
2020-09-14T04:53:42
2020-09-14T04:53:42
293,982,704
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
from django.shortcuts import render from django.urls import reverse_lazy from django.views import generic from .forms import CustomUserCreationForm # Create your views here. class SignUpView(generic.CreateView): form_class = CustomUserCreationForm success_url = reverse_lazy('login') template_name = 'signu...
[ "adineshshylaja@unomaha.edu" ]
adineshshylaja@unomaha.edu
50651266817835bab17e23e3b97ff1c9a1bda761
68e5cf2b601df44734e1ce5ea947cf54531dfa22
/cms/cms1/views1.py
ff03c30134915d0c1f3acd60e9940926dad51a6f
[]
no_license
Amit-031296/cms1
b77440fb446f1bc6cfce3822f73d629c8ffe841a
eea09e45519d3be7c5dfabe2ce73a37c7104a7e4
refs/heads/master
2023-04-06T06:21:22.547657
2021-03-31T12:51:36
2021-03-31T12:51:36
353,355,209
0
0
null
null
null
null
UTF-8
Python
false
false
5,728
py
from rest_framework import status from rest_framework.response import Response from rest_framework.decorators import api_view, permission_classes from rest_framework.permissions import IsAuthenticated from rest_framework.authentication import TokenAuthentication from rest_framework.pagination import PageNumberPaginatio...
[ "amitv.mumbaii@gmail.com" ]
amitv.mumbaii@gmail.com
c5a017a2520ae0196d0bdd007873614abd29c5f0
4bde0c6c41a27efa068d89663e190403131ee118
/06_merge_sort.py
07179f04d25f7240d50e36724880214020bdfabf
[]
no_license
wangshaobo08/algorithm
7919510281a3b8cfede2d80ced06b152795af574
ef3b83b977014ff2fe760f8b533ace56c33e4cad
refs/heads/master
2021-10-23T18:50:21.225749
2019-03-19T09:55:56
2019-03-19T09:55:56
122,831,467
0
0
null
null
null
null
UTF-8
Python
false
false
903
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2018-12-10 20:50:47 # @Author : sober (wangshaobo08@gmail.com) # @Link : https://www.jianshu.com/u/b2d5110e9a57 # @Version : $Id$ def merge_sort(arr): n = len(arr) if n <= 1: return arr mid = n // 2 left_li = merge_sort(arr[:mid]) ...
[ "wangshaobo08@gmail.com" ]
wangshaobo08@gmail.com
c7d2e24957a8f5d7a7276553f6d133a9933b2d8a
385e00e3d48446baf20cb3d0fbf9db0344cd95da
/test/visualization/test_utils.py
9e8a593f52ffbe911da59c3806471afc61755eca
[ "Apache-2.0" ]
permissive
oliverdial/qiskit-experiments
d670f9151116e2e7d9a67f304a23313aa31fc30f
a387675a3fe817cef05b968bbf3e05799a09aaae
refs/heads/main
2023-06-24T08:07:19.505243
2023-06-09T21:01:59
2023-06-09T21:01:59
362,153,676
0
0
Apache-2.0
2021-04-27T15:03:52
2021-04-27T15:03:51
null
UTF-8
Python
false
false
4,818
py
# This code is part of Qiskit. # # (C) Copyright IBM 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
[ "noreply@github.com" ]
oliverdial.noreply@github.com
a5a768716529aae693d0c0183cc71a5de0059dcd
f2348887dbffbd2124376b97c942939e78093e8f
/test2.py
b0e537cd2b086f870432a74523e1be14d079f806
[]
no_license
BomberDim/Python-practice
f2d0c9051b67a0269b04861c205d268611ed259b
b55baabaed088449dc70cda9f09e706f3614fbf3
refs/heads/master
2020-05-19T09:57:42.117307
2015-12-13T16:17:06
2015-12-13T16:17:06
42,327,071
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- i = 1 while i < 11: print(i) i += 1 print ("Конец программы")
[ "roman.voronkin@gmail.com" ]
roman.voronkin@gmail.com
464ffd8a81e68c2134ff5fb1d332fa541231862b
b85ab4b1199e7b36d50b25269a56cc21acac2722
/scripts/demultiplex_casava_fastq.py
5f0935d16a0b842aa00cf217045c7db5d75ad1d1
[ "MIT", "GPL-1.0-or-later" ]
permissive
SciLifeLab/scilifelab
20e2ab7b53200d3d4d98c2f34d21d516c0d9de83
79960f7042118f900bd1eaabe4902ee76abd8020
refs/heads/master
2020-12-29T03:07:03.365483
2019-01-22T09:32:43
2019-01-22T09:32:43
4,002,536
1
6
MIT
2020-02-17T12:09:12
2012-04-12T07:58:18
Python
UTF-8
Python
false
false
1,339
py
"""Demultiplex a CASAVA 1.8+ FastQ file based on the information in the fastq header """ import sys import argparse from scilifelab.utils.fastq_utils import FastQParser, is_read_pair def demultiplex_fastq(index, fastq1, fastq2): filter = {'index': index} fp1 = FastQParser(fastq1,filter) if fastq2 is...
[ "pontus.larsson@scilifelab.se" ]
pontus.larsson@scilifelab.se
0b9316b1cd3f2f756c659bfeef922ef8efed975a
f064b7f41011d14191d994a2f917cbb57da40770
/tutorial 4_Variables.py
40856496a035c157980fb86ff4812ddf30a47b2e
[]
no_license
naveensambandan11/PythonTutorials
5980f77def0e4f040852bb16d8fcd58a3f4767ec
668ba99dd81a494e1072f5fdc10b8441078835d2
refs/heads/master
2022-04-20T04:47:09.589115
2020-04-20T07:28:21
2020-04-20T07:28:21
257,203,001
1
0
null
null
null
null
UTF-8
Python
false
false
950
py
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> x=6 >>> y=5 >>> x+5 11 >>> x+y 11 >>> print x + ('apples') SyntaxError: invalid syntax >>> print(x + 'apples') Traceback (most recent cal...
[ "noreply@github.com" ]
naveensambandan11.noreply@github.com
7736ed51fe1a1691133e354fb1c1d6372fd47acf
4a238068e29a1f6871cc049a0486b20b27e781de
/Habana/benchmarks/resnet/implementations/resnet-tf-sys-420gh-tngr/TensorFlow/computer_vision/Resnets/utils/optimizers/keras/lars_optimizer.py
4c64f2a9dc780522a575d18bc7c554999bcaf59b
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Pixelz-Inc/training_results_v1.0
61b4555ad482b189d1966be3edd127858addd628
c507130c4e04c1f274a9ae8b7284aac79f26325a
refs/heads/master
2023-08-18T22:46:13.316503
2021-10-22T04:01:57
2021-10-22T04:01:57
399,047,712
0
0
NOASSERTION
2021-08-23T09:37:25
2021-08-23T09:37:25
null
UTF-8
Python
false
false
9,194
py
# Copyright 2018 The TensorFlow 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 applica...
[ "vsb@fb.com" ]
vsb@fb.com
696bd35da64e17e822d288f6f255b2ede67b799f
f14c198ad1b8f6324956e5bcdb4cd910c67eb3e1
/exercises/migrations/0002_auto_20200511_0132.py
3bd35216046044ede8444a9f139c160196dd3b7a
[ "Unlicense" ]
permissive
rattletat/python-homework-server
8150e9059d43cc24677a632fbac503856a66e971
abfac831ed45cc567a6a1610edee934200ffada7
refs/heads/master
2022-12-26T02:25:48.455504
2020-10-01T11:08:24
2020-10-01T11:08:24
258,362,901
1
0
null
null
null
null
UTF-8
Python
false
false
1,209
py
# Generated by Django 3.0.5 on 2020-05-10 23:32 from django.db import migrations, models import exercises.helper import exercises.storage import exercises.validators class Migration(migrations.Migration): dependencies = [ ('exercises', '0001_initial'), ] operations = [ migrations.AddFie...
[ "michael.brauweiler@posteo.de" ]
michael.brauweiler@posteo.de
17cab5b93cd1dec250015db0bddaadb9015ff413
c6ed7cf05f46db66fa71ee5c251954f7fcdab67e
/object-oriented-program.py
d314056817abdf72d28b09c5d6e9ac4d4f9c59d9
[]
no_license
KFranciszek/python-tutorial
84cfbbe55b3ef13418d79ab323b499a24362aa77
575a334a6b4b0c591194c57d104bdd710d5d6478
refs/heads/master
2020-12-31T07:18:30.196411
2016-03-10T15:47:52
2016-03-10T15:47:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
class exampleClass: eyes="blue" age=22 def thisMethod(self): return 'hey this method worked' print exampleClass exampleObject=exampleClass() print exampleObject.eyes print exampleObject.age print exampleObject.thisMethod()
[ "mmadej@sigma.ug.edu.pl" ]
mmadej@sigma.ug.edu.pl
3ddb09c649bea4922aeb00e020172bdd08f3f780
b2628e2c583928a52fd261a114f608c299796f7e
/leetcode/lessons/array/370_range_addition/__init__.py
71296b5620b19be26f5802dc631e2d0e2919dde5
[ "MIT", "Python-2.0" ]
permissive
wangkuntian/leetcode
22f0326453650898c3680d36bbb3053bba78fa11
e8dc9c8032c805a7d071ad19b94841ee8e52e834
refs/heads/master
2022-02-20T18:08:41.953746
2022-02-17T01:35:33
2022-02-17T01:35:33
221,393,840
0
0
MIT
2021-11-19T01:52:30
2019-11-13T07:01:28
Python
UTF-8
Python
false
false
3,256
py
# !/usr/bin/env python # -*- coding: utf-8 -*- """ __project__ = 'leetcode' __file__ = '__init__.py.py' __author__ = 'king' __time__ = '2022/2/14 19:15' _ooOoo_ o8888888o 88" . "88 (| -_- |...
[ "wangkuntian1994@163.com" ]
wangkuntian1994@163.com
294ae3a7c890e586c2da0d3b832995c6a1a6de4c
9407457c5724316cf7019a87adbde8de5a5ab4c5
/reconstruct-original-digits-from-english/solution.py
f9cb9ec958df247b2fb4031a761a5b22310748d7
[]
no_license
andriitugai/Code_Challenges
7f3b7e344341b7ec736b32e93e21eb01f49d698c
d4b8e016c0117df4614e715e8b172f4abaa646fc
refs/heads/master
2023-04-19T03:42:59.807354
2021-05-04T13:34:16
2021-05-04T13:34:16
351,730,724
0
0
null
null
null
null
UTF-8
Python
false
false
804
py
class Solution: def originalDigits(self, s: str) -> str: def decremental(num, word, control_char): n = s_counts.get(control_char, 0) if n: for c in word: s_counts[c] -= n result.extend([str(num)] * n) s_counts = {} ...
[ "andrii.tugai@gmail.com" ]
andrii.tugai@gmail.com
a5f68b739dca61aab1451a4a8f934959b269946f
ced555353fd2ac54654274b3a8aa84680cb78c01
/0425/42502.py
58843b70bb958b731ed13e9d3dd836ebc57fa463
[]
no_license
aw6629/pratice
69801dfef5ad98b7da3627f234e1fa4351a41cd2
0981e50fd42123391e1a48890cebf638c2e24d6b
refs/heads/main
2022-12-24T22:02:55.045505
2020-10-05T08:17:59
2020-10-05T08:17:59
301,325,003
0
0
null
null
null
null
UTF-8
Python
false
false
450
py
x=int(input('input len')) y=int(input('input wid')) class rect: def __init__(self,len,wid): self.__len = x self.__wid = y def area(self): print('面積=',x*y) def perimiter(self): print('周長=',2*x+2*y) class squa(rect): def __init__(self,x): super().__init__(x,x) d=squ...
[ "b6569496@gmail.com" ]
b6569496@gmail.com
a51d88e25ec1dc0494fa59f51cddc8b8f646c3ee
98df159a4efcbb43a07a3b983f8b30fd5a1d4d4b
/test-test.py
955b0701cc06da79ee991b87ecbbbb4207bdba08
[]
no_license
Lumia720/L-layer-Neural-network
e6390020e4f2c67242899f6fefdca1796e8f55ae
9d05997d3411e54d4404a655239edef8b5b3fe8e
refs/heads/master
2020-08-06T22:21:06.760074
2019-10-06T14:04:06
2019-10-06T14:04:06
213,179,020
0
0
null
null
null
null
UTF-8
Python
false
false
140
py
# -*- coding: utf-8 -*- """ Created on Wed Apr 10 17:18:20 2019 @author: ttl80 """ import numpy as np A1 = [[3,3],[4,4]] print(A1) A1.list
[ "pavlova.julia@gmail.com" ]
pavlova.julia@gmail.com
ed266d2bd928f39ccd13797dd06884870914583f
54f95342dde22c2efe5e44e2edfecd13bfd98787
/ejercicios_obligatorios/ejercicio_2.py
0820693f943d403cb626469bbec1702419d07240
[]
no_license
LucianoBartomioli/-EDU-POO_IRESM_2021
3293e98aada2ae8bd3221991a9ac95200f0541bd
dfaca205c31b95cf784cd8c04ae8060c9c3950da
refs/heads/main
2023-04-14T20:44:10.449823
2021-05-01T22:13:44
2021-05-01T22:13:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,550
py
nombre_ciclista = "" ciclistas = [] while nombre_ciclista != "0": nombre_ciclista = input("Ingrese el nombre del ciclista: ") if nombre_ciclista != "0": tiempo_de_carrera = float(input("Ingrese el tiempo de carrera: ")) if tiempo_de_carrera < 0: while tiempo_de_carrera < 0: ...
[ "69654179+LucianoBartomioli@users.noreply.github.com" ]
69654179+LucianoBartomioli@users.noreply.github.com
7503c66bb83cc8fac576b2e0b803de64e6108c4c
d95a9767f5de4f1951ad9faa5b701089f0e7e187
/teachers inter2.py
ee3150a56515d31f39c6ae89c34566cb7d6d8112
[]
no_license
TomSadeh/Teachers_PIAAC
4df72e766c400906cc5ef119b5a8674adde0bd6a
0f078b8f1cdf11404c0dd359c73b5177f15afb5f
refs/heads/main
2023-03-12T12:02:08.804731
2021-02-21T22:06:34
2021-02-21T22:06:34
341,014,208
0
0
null
null
null
null
UTF-8
Python
false
false
4,444
py
import pandas as pd import numpy as np import math import matplotlib.pyplot as plt def invert(string): """ A function which invert a string. Parameters ---------- string : string the string to invert. Returns ------- string An inverted string. Req...
[ "noreply@github.com" ]
TomSadeh.noreply@github.com
779a661995aadef8a57f6133081f9846279fb570
885bb5d50bb5a3433b6a571e934347c61f1427f1
/hw5/task1.py
6afd468b7668aef541cfa4596dde33b9291f7738
[]
no_license
abhi-phoenix/Data-mining
824f0c54c77f668599ebf6627e0f223770a53d08
601c3a1c236fb02966a3af19b114005ddaa81279
refs/heads/main
2023-07-25T12:34:07.749911
2021-09-09T07:40:47
2021-09-09T07:40:47
404,628,647
0
0
null
null
null
null
UTF-8
Python
false
false
7,317
py
from pyspark import SparkContext, SparkConf from pyspark.sql import SparkSession import sys import json import re import collections import time import math import random from itertools import combinations import binascii import json start = time.time() def generate_prime(m,number_of_primes): def ...
[ "noreply@github.com" ]
abhi-phoenix.noreply@github.com
6a1d507ecf64c91e7e343636b91b18096cc98ccf
39b9c3c223cb1a48fb2386c2166c2601d0301a2b
/qtTest.py
5f8ea21f8bf10687645ea16db6f83898879cd3b2
[]
no_license
AlexCornish/BLSFormatter
98da607fd8fac50d6d468aad2dfa55f5268f898d
5de9ec211fda3eee597f1fd1149921210c4a16d5
refs/heads/main
2023-02-07T06:50:07.042423
2020-12-31T19:21:50
2020-12-31T19:21:50
325,335,500
0
0
null
null
null
null
UTF-8
Python
false
false
4,639
py
import sys import os import commodity import industry from PyQt5.QtWidgets import QApplication,QLineEdit,QPushButton,QCheckBox,QWidget, QVBoxLayout,QHBoxLayout,QLabel, QRadioButton,QGridLayout, QButtonGroup, QFileDialog import webbrowser class GUI(QWidget): def __init__(self): super(GUI,self).__...
[ "noreply@github.com" ]
AlexCornish.noreply@github.com
4f0d3727a003f65b28d97e95316cdc9eefd284eb
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_196/ch80_2020_04_13_18_23_05_143280.py
f6edda895b2e0e2bcd29788dd3078b902f425c3f
[]
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
151
py
def interseccao_chaves(dic1,dic2): lista = [] for a in dic1.keys() and in dic2.keys(): lista.append(a,b) return lista
[ "you@example.com" ]
you@example.com
5d60feb8769d1485490b5ef335ee7b4911efa151
ffc550bca3253e9ec50eb4f9dee2822863414a6d
/Lab08/signals.py
40336fac9d7d2afa48d381a1fb69e2be454fae05
[]
no_license
WangyuanhaoNB/ECE364
0841bbd9065c2673182cdd9b8ab49bd7db48ab38
0f0690477dbd307ad4dcb7283242ddb1e7c5b462
refs/heads/master
2020-05-03T07:41:28.000166
2017-12-13T01:13:48
2017-12-13T01:13:48
149,058,137
1
0
null
null
null
null
UTF-8
Python
false
false
1,548
py
import moduleTasks #Part III def loadMultiple(signalNames, folderName, maxCount): d ={} for signalName in signalNames: try: list_vals , num_non_vals = moduleTasks.loadDataFrom(signalName, folderName) except (OSError,ValueError): d[signalName] = None else: ...
[ "ee364d27@ecegrid-thin8.ecn.purdue.edu" ]
ee364d27@ecegrid-thin8.ecn.purdue.edu
94b8dc6ded544809973f96e4c6c5d7f9a07def5e
a4429ad2de2f58fdb5765dbec65378723780a904
/Actividades/practica2-1/graph.py
af398353fdcf8475c8ec342f24b173f79dd79403
[ "MIT" ]
permissive
alfonsoirai/Advanced-Databases-Course
ad389921452f44cbb0b4ba3842d5e2fdc503ea4a
1bb333e1b40980d0dbcae75db3a7df42be0b3b01
refs/heads/master
2021-04-27T19:41:44.007238
2018-02-28T18:35:56
2018-02-28T18:35:56
122,362,718
0
0
null
null
null
null
UTF-8
Python
false
false
2,561
py
import pandas as pd class Node(object): def __init__(self, id, name): self.id = id self.name = name self.level = 0 self.adjacency = {} def add_connection(self, node, cost): self.adjacency[node.id] = [cost, node] def toString(self): string = str(self.id) + "...
[ "pon.alfonsoirai@gmail.com" ]
pon.alfonsoirai@gmail.com
e043ac5e94b702c4a8dff5d511c9e222e9602a5f
629a7acf0a16a1a939e59bcf1128340fb724eac0
/optimization/Optimizers/LinearModelOptimize/LinearOptimize_scale.py
25ab67da7b903798be4b07a67216e6a12a1acf73
[]
no_license
qingswu/2020_staj
c1f66b26c8c6d71bb167988392b8e5f346c5b64e
93365eb461ed8a0897267c71d6935279824b391f
refs/heads/master
2022-12-16T08:49:35.815702
2020-09-09T23:53:54
2020-09-09T23:53:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,651
py
import torch import Tracker import torch.optim as optim import math import numpy as np import matplotlib.pyplot as plt import sys sys.path.append("../../Data/Scenarios") sys.path.append("../../Data/Train") import trainData dataPacks = trainData.trainDataPacks dtype_torch = torch.float64 torch.autograd.set_detect...
[ "atakan_bedel@hotmail.com" ]
atakan_bedel@hotmail.com
b7935778e4af05b4794433f47991deced92fb943
d9a469bc9cff39d89e7cb04e4fc537763aee9aca
/binance_chain/exceptions.py
957d3ed87c3cd1eb28ab1f816979271c6ed5ca5f
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
sammchardy/python-binance-chain
d017c0f1e6bd84d28017f87e2d229b21a2ee8b8a
19d7d639cc912a27ec86831338c2a2dc96289d50
refs/heads/master
2023-05-11T19:15:44.912507
2021-06-01T03:14:25
2021-06-01T03:14:25
172,324,144
310
111
MIT
2022-06-30T10:55:19
2019-02-24T10:29:29
Python
UTF-8
Python
false
false
1,626
py
import ujson as json class BinanceChainAPIException(Exception): def __init__(self, response, status_code): self.code = 0 try: json_res = json.loads(response.content) except ValueError: if not response.content: self.message = status_code ...
[ "hello@sammchardy.net" ]
hello@sammchardy.net
a1f12290c23d8395dcfa64805afb025e05f935ec
7575d136a22c0476330646a06f99676a79c7e117
/lib/notifications.py
9f00d14ddbce9ba041833718e5ca730bd40296c5
[]
no_license
ryant71/fitly
5d7d87a363e4808647364c8d2f2809d3864d0d9b
49070dd43549e1c84d65e5ef8125ab5b61f62efa
refs/heads/master
2021-02-23T08:55:52.848095
2020-03-03T23:28:21
2020-03-03T23:28:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,650
py
from lib.sqlalchemy_declarative import db_connect, withings, stravaSummary, athlete from sqlalchemy import func from datetime import datetime, timedelta import dash_bootstrap_components as dbc def last_body_measurement_notification(): session, engine = db_connect() last_measurement_date = session.query(func.m...
[ "ethanopp@gmail.com" ]
ethanopp@gmail.com
3122241b31020e0b087e3f2e049ab486e87621ba
119fd27a34eb3ef48f1075c899790a5b1387ddcf
/model.py
4115b13b9bca7ac8ff77a127c7a5934e572cac2f
[]
no_license
xieyuanhuata/pizza
2c158ab031cd90461e478456288069e5d1a2f8b6
ad52e8795d213c522c2b70d34135b64fc97fa3bf
refs/heads/master
2023-03-07T02:16:53.394831
2017-07-31T05:48:44
2017-07-31T05:48:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,800
py
""" A.I. Pizza CEO Bhban Imagination Garden Latest Modification : 6/22, 2017 """ import tensorflow as tf import inspect __author__ = "BHBAN" decay = 0.9 class BEGAN(object): def __init__(self, batch_size, is_training, num_keys, input_length, output_length, learning_rate): self.input_mus...
[ "bhban@kakao.com" ]
bhban@kakao.com
288adf9ab5077d9b7d3daaad38895722092bdf56
d5c23a2b29e52f2762faaca36f01032d7ceee898
/manage.py
af6afcf1949521a2c2f363f34a5218526aa6016e
[]
no_license
fbwinghsa/musicchat
d6a33a319844d3af98b88fa0a901988819983070
2ce44c9c2d810e25d4666de581b9e5325a2b80f4
refs/heads/master
2020-05-18T22:30:08.732180
2014-11-03T09:14:41
2014-11-03T09:14:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "musicchat.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "fubo01@B000000041299.internal.baidu.com" ]
fubo01@B000000041299.internal.baidu.com
692c8de911e9fb1876f5df1f7ef733905ec6483e
6362f80ea7a3b5ccc0f53751271327ecc6852e0c
/Topics/Elif statement/Coordinates/main.py
a89069c78ab7e7d944e6ffa085dcd50236fe155e
[]
no_license
vinaym97/Hangman
e592672f6902bad0e8abffb802dc2872c428ef84
0ef0961b02d4186a6b1da62419ce2573ffb56f6d
refs/heads/main
2023-07-11T09:00:56.913046
2021-08-17T13:38:57
2021-08-17T13:38:57
387,756,264
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
x = float(input()) y = float(input()) if (x == 0 and y == 0): print("It's the origin!") # elif (x == 0 and y == ((-10 <= y < 0) or (0 < y <= 10))) or (x==((-10 <= x < 0) or (0 < x <= 10)) and y == 0 ): elif (x > 0) and (y > 0): print("I") # elif (x < 0) and (y > 0): elif x < 0 < y: print("II") elif (x < 0)...
[ "69107994+vinaym97@users.noreply.github.com" ]
69107994+vinaym97@users.noreply.github.com
304d0aadd4793582691ecaac867aac3b2e6711df
52e73b8542367309610aedc20d99c1669cef3076
/algorithm/regression/linear_regression.py
0f72e64dec72f46e0ba27c12e879e652536478bf
[ "Apache-2.0" ]
permissive
coding-chenkaikai/pytorch
ad52b7bb3a0cf7864e8cb7a21839a0127b306491
c6201829dcd4556f1a796f0404357223a2233573
refs/heads/master
2020-05-30T04:52:07.359435
2019-06-01T07:37:03
2019-06-01T07:37:03
189,550,767
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
# -*- coding: UTF-8 -*- import torch import numpy as np import matplotlib.pyplot as plt import torch.nn.functional as F from torch.autograd import Variable print(torch.__version__) print('gpu: ', torch.cuda.is_available())
[ "ckk2019@outlook.com" ]
ckk2019@outlook.com
a86baf9fdc83809dd1793223124161e35450f92e
2372203835f4550af81c2549d18d47ef7fb0b75a
/api/utils.py
9b59c911aefd9bab6a229261b54b24a06ba0e916
[ "MIT" ]
permissive
batpad/go-api
7071b7a3ca13bdda283ae717d6cfecdf9dbd4f6b
6c187396fddae9ebcb923540824c86c40f8254bb
refs/heads/master
2022-12-09T22:23:52.772748
2019-12-11T16:15:11
2019-12-11T16:15:11
227,409,969
0
0
MIT
2021-12-13T20:28:13
2019-12-11T16:22:56
Python
UTF-8
Python
false
false
671
py
def pretty_request(request): headers = '' for header, value in request.META.items(): if not header.startswith('HTTP'): continue header = '-'.join([h.capitalize() for h in header[5:].lower().split('_')]) headers += '{}: {}\n'.format(header, value) return ( '{metho...
[ "dl@dereklieu.com" ]
dl@dereklieu.com
0d9d93fefe298f84e13f4389bb039b2ea8cf1f26
a760adeac660bcd2b6d32e28ef204b31b3adca34
/0x02-python-import_modules/1-calculation.py
c1e1c1fa99efa9582b29995735ff28fc790b2e64
[]
no_license
eserebry/holbertonschool-higher_level_programming
4f694ab1444654cfdb6a708bbbf20ae763334ee1
706cdd32371ec5f2971e8f8277d5c95ceadb5fc8
refs/heads/master
2020-03-09T13:51:52.376133
2018-09-08T03:31:19
2018-09-08T03:31:19
128,821,206
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
#!/usr/bin/python3 if __name__ == "__main__": from calculator_1 import add, sub, mul, div a = 10 b = 5 print("{:d} + {:d} = {:d}" .format(a, b, add(a, b))) print("{:d} - {:d} = {:d}" .format(a, b, sub(a, b))) print("{:d} * {:d} = {:d}" .format(a, b, mul(a, b))) print("{:d} / {:d} = {:d}" .fo...
[ "elenaserebryakoff@gmail.com" ]
elenaserebryakoff@gmail.com
825d01fdf3e99cfa53d1e7db9a1f88f76509a82c
4b76914d18b2cc59f0c263f668a16080eb987a46
/mmlclient.py
4ac00bc3c545a2cfa138ed18335f2876fa83aacd
[]
no_license
BenLand100/MMLDaemon
addfa3390094502ffe890da9610e672078a07ab4
ebd371f1d2cfd0f4a1ade7728ed951b0f13bbbff
refs/heads/master
2016-09-06T09:13:36.584123
2011-01-12T20:40:55
2011-01-12T20:40:55
1,246,381
1
0
null
null
null
null
UTF-8
Python
false
false
3,484
py
#!/usr/bin/python """ * Copyright 2010 by Benjamin J. Land (a.k.a. BenLand100) * * This file is part of the MMLDaemon project. * * MMLDaemon is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either ...
[ "benland100@gmail.com" ]
benland100@gmail.com
e697e2c61f46b0fc54fa6f465b65c02000ca78d5
72cc3e8bb9f3a4e04c445fef5ab447bc01023e24
/Baekjoon/if조건문/04.사분면고르기.py
34d220ff7ee22010ce61cc2d724adbde9d6f0331
[]
no_license
Choe-Yun/Algorithm
ace65d5161b876e8e29e6820efac70466d5e290b
546c89453d061cc48634abf195b420a494a9528f
refs/heads/master
2023-05-01T21:51:51.823576
2021-05-24T13:57:00
2021-05-24T13:57:00
365,746,601
0
0
null
null
null
null
UTF-8
Python
false
false
1,133
py
### 문제 # 흔한 수학 문제 중 하나는 주어진 점이 어느 사분면에 속하는지 알아내는 것이다. 사분면은 아래 그림처럼 1부터 4까지 번호를 갖는다. "Quadrant n"은 "제n사분면"이라는 뜻이다. # # 예를 들어, 좌표가 (12, 5)인 점 A는 x좌표와 y좌표가 모두 양수이므로 제1사분면에 속한다. 점 B는 x좌표가 음수이고 y좌표가 양수이므로 제2사분면에 속한다. # # 점의 좌표를 입력받아 그 점이 어느 사분면에 속하는지 알아내는 프로그램을 작성하시오. 단, x좌표와 y좌표는 모두 양수나 음수라고 가정한다. ### 입력 # 첫 줄에는 정수 x가 ...
[ "cjh7687@gmail.com" ]
cjh7687@gmail.com
5fcd80e755545cb1696b792d22db6bfeb15d37fb
b502a06d1c9a887c8c991ae9933c8ad9135b9007
/runme.py
59418c1ff156b1635016bee0c0ac703cf36dd7af
[]
no_license
bbargar/ECON498_Final
da4638186f14c22b305875a6216715697e869101
eeedd3b05ba99331df545a2413a1f8f1b9cc131a
refs/heads/main
2023-01-30T00:17:47.926700
2020-12-12T18:53:15
2020-12-12T18:53:15
320,752,787
0
0
null
null
null
null
UTF-8
Python
false
false
1,287
py
import kfold_template import pandas as pd from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import confusion_matrix from sklearn.metrics import accuracy_score import numpy as np import json dataset = pd.read_csv('business_sample_csv.csv') # print(dataset) target = dataset.iloc[:,2].va...
[ "bbargar@clemson.edu" ]
bbargar@clemson.edu
05cdd6e0b5aadfcd1453901287e445578f2b8e29
6ba38fe94e7ea5146c633f56f59c0c3278d695a7
/build/build_for_ios
d6425614eecc82e40f167b7e162c91cecd846058
[ "MIT" ]
permissive
mworks/mworks
b49b721c2c5c0471180516892649fe3bd753a326
abf78fc91a44b99a97cf0eafb29e68ca3b7a08c7
refs/heads/master
2023-09-05T20:04:58.434227
2023-08-30T01:08:09
2023-08-30T01:08:09
2,356,013
14
11
null
2012-10-03T17:48:45
2011-09-09T14:55:57
C++
UTF-8
Python
false
false
941
#!/usr/bin/env python3 import argparse from subprocess import check_call def main(): parser = argparse.ArgumentParser() parser.add_argument('--archive', action='store_true', help='create an archive for distribution') parser.add_argument('version', nargs='?', help='version number')...
[ "cstawarz@mit.edu" ]
cstawarz@mit.edu
441e60c7846fde6cca41e6cbb3845b685e4f8672
09e5cfe06e437989a2ccf2aeecb9c73eb998a36c
/modules/cctbx_project/cctbx/symmetry_search/boost_python/SConscript
be2824dfaa2fdc51694642b708bafd590f93bda6
[ "BSD-3-Clause-LBNL", "BSD-3-Clause" ]
permissive
jorgediazjr/dials-dev20191018
b81b19653624cee39207b7cefb8dfcb2e99b79eb
77d66c719b5746f37af51ad593e2941ed6fbba17
refs/heads/master
2020-08-21T02:48:54.719532
2020-01-25T01:41:37
2020-01-25T01:41:37
216,089,955
0
1
BSD-3-Clause
2020-01-25T01:41:39
2019-10-18T19:03:17
Python
UTF-8
Python
false
false
216
Import("env_cctbx_boost_python_ext") env = env_cctbx_boost_python_ext.Clone() env.Prepend(LIBS=["cctbx", "omptbx"]) env.SharedLibrary(target="#lib/cctbx_symmetry_search_ext", source=[ "symmetry_search_ext.cpp", ])
[ "jorge7soccer@gmail.com" ]
jorge7soccer@gmail.com
4f1ec457cdb2aff59d8558ed5d090e890e081fa7
80a689cecd96315e55e6452d201e6531868bdc99
/management/commands/pdk_nudge_ios_devices_boto.py
c82c6760ca2673b2252cf9062343fe8914127764
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
kamau-edwin/PassiveDataKit-Django
d36fad6b366fef32c96941b10455b054abd44f7c
95db5701f88c74328b0611124149fdffa079e7b8
refs/heads/master
2021-01-06T17:25:50.471370
2020-02-26T21:17:32
2020-02-26T21:17:32
241,416,694
0
0
Apache-2.0
2020-02-18T16:56:09
2020-02-18T16:56:07
null
UTF-8
Python
false
false
5,828
py
# pylint: disable=no-member,line-too-long import json import re import boto import boto.exception import boto.sns from django.conf import settings from django.core.management.base import BaseCommand from ...decorators import handle_lock, log_scheduled_event from ...models import DataPoint class Command(BaseComman...
[ "chris@audacious-software.com" ]
chris@audacious-software.com
cebcfbab3351bb97acf855a4e8a6a0e12ecff3e0
d88f9acfe09d79f06cf251b8cbbb012b55d99f39
/Scraping/test_scraping/create_sqlite_db.py
95e1b304f3fc724c65ddf601e4224bbe7e44b3ed
[]
no_license
Twishar/DataAnalysis
535beb795e30b8ac07767a61f1ebfbc60546271f
e5d5ba9ba0b9a51031e8f1f4225bc35d848159dd
refs/heads/master
2022-03-04T19:02:30.917729
2019-11-15T14:18:53
2019-11-15T14:18:53
98,515,695
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
import sqlite3 conn = sqlite3.connect('allo_db.sqlite') c = conn.cursor() c.execute('''CREATE TABLE allo_parse (search_param text, results text);''') conn.commit() conn.close()
[ "stognienkovv@gmail.com" ]
stognienkovv@gmail.com
271487705d8947bbf1c2301040973dd2bc9272d9
5f56a24a1514cd1c5790a7141ad35145ff906b5b
/katakana/model.py
700443cdece16abfa484d7852bcae0567ca63b67
[]
no_license
hoangcuong2011/katakana
822a06f8f39f6efe62aa571f783f3eb3e30dec0b
d20e267454fb4b5342c175cc4eb4d735dc20f1c7
refs/heads/master
2020-08-06T10:27:18.061814
2019-07-21T06:46:33
2019-07-21T06:46:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,589
py
import json import os import shutil import numpy as np from tensorflow._api.v1.keras.layers import Input, Embedding, LSTM, TimeDistributed, Dense from tensorflow._api.v1.keras.models import Model, load_model from . import encoding DEFAULT_INPUT_LENGTH = encoding.DEFAULT_VECTOR_LENGTH DEFAULT_OUTPUT_LENGTH = encoding...
[ "berrysboy@gmail.com" ]
berrysboy@gmail.com
28dcbf981159120bc9be52143d078899e8a57677
02ed5777f4090c3ac38ba42b7dd26798de22af71
/src/handler/push_service_handler.py
099247d32fb73e089ac5bc7cec160a45771731c4
[]
no_license
tigerinsky/push-server
5125df4a640ea106bce3774f4d474d50a8abf53b
b2fff90dc235575efd12b621842fc9175e8f5e2f
refs/heads/master
2021-01-22T17:58:03.912766
2015-08-23T07:47:27
2015-08-23T07:47:27
35,807,022
0
1
null
null
null
null
UTF-8
Python
false
false
15,111
py
#!/usr/bin/env python #coding:utf-8 import sys reload(sys) sys.setdefaultencoding('utf-8') sys.path.append('./gen-py') import time import httplib import urllib import json import random import itertools from third import xinge import gevent import gevent.monkey from push import PushService from push.ttypes import * ...
[ "jkfbupt@gmail.com" ]
jkfbupt@gmail.com
9858f8027cfdcb40a2b8916164d29d4d43e252c8
9f43b7e689c04b23b47b09a15be121a564db5020
/tests/unit/test_helpers.py
e55b5ab9488a7547bc8aa30b9a71f2406ef21019
[]
no_license
Beartime234/slack-quizdata
63fea58953154b440e26d38cdb6c7eb07f296cac
ae1a0561e8dc4a5da4ed36071389ffcf131cb8ac
refs/heads/master
2021-06-07T11:58:00.716572
2019-12-27T04:41:22
2019-12-27T04:41:22
152,212,713
0
0
null
2021-04-30T21:58:31
2018-10-09T08:08:45
Python
UTF-8
Python
false
false
1,400
py
import pytest from uploader import helpers def test_generating_unique_id(): ret = helpers.generate_unique_id() assert type(ret) == str def test_check_if_id_in_question(): question_without_id = {"question": "blah"} ret_without = helpers.check_if_id_in_question(question_without_id) assert ret_with...
[ "josheatonis234@gmail.com" ]
josheatonis234@gmail.com
36ed25a8f241d3d99be52f87083b2f2bd2e59b8c
6fddbb2ddc1c2447619a6b7cbdf9052b2a357bb5
/preprocessing/processers/__init__.py
4408c397b7aca40a4e6c4c531431d962284dcd21
[ "Apache-2.0" ]
permissive
fagan2888/floods-gans
d896eeb923d4850697c7e230f6e3d5b66837f919
787dc2a3c08483c68a687b4355c0f0f6f2711ab9
refs/heads/master
2022-04-09T20:07:29.471949
2020-02-24T14:06:40
2020-02-24T14:06:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
81
py
from .flipper import Flipper from .saver import Saver from .loader import Loader
[ "vsch@protonmail.com" ]
vsch@protonmail.com
25f56a9c5358e117323c6a83feb396401feb9da6
405e9b1635112285adecaf655e4fde82541eb656
/src/main/python/parse/diskio/trace2list.py
3e1ad478da9a4be2e3d0ef35f5af0ac4ba0616b8
[]
no_license
AlexJuarez/tracery-work
a019867dc42f786f0ae7de0e7e801268ab5977d7
ed0bffb70451aea4b7dcee88795ddfd2a256aedb
refs/heads/master
2021-06-03T18:57:31.498480
2016-08-03T03:54:42
2016-08-03T03:54:42
64,812,730
0
0
null
null
null
null
UTF-8
Python
false
false
7,428
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from trace_parser import TraceParser from collections import defaultdict import argparse import re # IO trace format: # Timestamp Op Count Thread CPU Filename Pg-Count D...
[ "slinger@fb.com" ]
slinger@fb.com
f6de9c1334547fde5a62cc5def9e69351be99975
a01e7f87a0088965e2e0a02476d2df12a49a1a18
/cmds/network/client_server/transferFile_server.py
0b3fe2d70b42942ea32fd3e3528228e3ff446eb0
[]
no_license
gsrr/IFT_jerry
0456a8a1fb98f84ad5c26dc36bdf32e2d85c750c
4c2f6900dfd7ae7f6b3cc2150b1c1be236b4c95c
refs/heads/master
2020-04-04T05:30:10.544252
2019-08-22T09:12:03
2019-08-22T09:12:03
48,145,836
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
import socket import sys HOST = '127.0.0.1' PORT = 8888 s = socket.socket(socket.AF_INET , socket.SOCK_STREAM) try: s.bind((HOST , PORT)) except socket.error , msg: sys.exit() s.listen(10) conn,addr = s.accept() print addr path = conn.recv(1024) print path fd = open(path , 'wb') data = conn.recv(1024) while data...
[ "root@" ]
root@
26c41c4d14a5a00568d2e7b0def3c41e9006bae4
9e172019f6bb85bf95a7c49f96d6f21cdf0232a2
/20th/towerOfHanoi.py
b820c9e3569d84c4ff306498ce5d360aa504872d
[]
no_license
razakadam74/Interview-Preparation
249628295f37ee6b5a023ac5aa8b195041f83573
43d4eef94e51ddf24085b4a82ba56e8cc2857091
refs/heads/master
2020-04-01T11:19:06.165423
2018-10-23T14:54:07
2018-10-23T14:54:07
153,156,869
2
0
null
null
null
null
UTF-8
Python
false
false
378
py
def solveTowerOfHanio(height,fromPole,toPole, auxPole): if height >=1: solveTowerOfHanio(height - 1,fromPole, auxPole, toPole) moveDisk(toPole,fromPole) solveTowerOfHanio(height -1, auxPole, toPole, fromPole) def moveDisk(toPole, fromPole): print('Moving from Pole {} to Pole {}'.format...
[ "razakadam74@gmail.com" ]
razakadam74@gmail.com
2c4c70d9f94ee4beff9ab3f311d1fba80ecd5ff8
1bdf2523289cd9207c177702c1e36dadd6f847b5
/Project5-classification/perceptron_pacman.py
a47c906ce8ce505245601e225c8a27fac320c98b
[]
no_license
xelarock/artificial-intelligence
6e7e449a7b5c9dafd19d8beae16997896bb867d9
3a4ae46ceac4a15834f4587dc26eac5d58648f6d
refs/heads/main
2023-01-01T02:27:02.404143
2020-10-26T15:30:27
2020-10-26T15:30:27
307,408,784
0
1
null
null
null
null
UTF-8
Python
false
false
2,805
py
""" THIS CODE WAS MY OWN WORK , IT WAS WRITTEN WITHOUT CONSULTING ANY SOURCES OUTSIDE OF THOSE APPROVED BY THE INSTRUCTOR. Alex Welsh """ # perceptron_pacman.py # -------------------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do ...
[ "welsh6263@gmail.com" ]
welsh6263@gmail.com
08cc518875bd409711acadb43c70cbc56a0cee66
2c1fc9f7d510232c85a6e4e4b7da5d1c59f1096f
/linkedlist/pairwise-swap.py
7a049c372c9808dae115060b1f7ddfb803221419
[]
no_license
rohitjain994/must_do
eed4dc28aeb4972548be1b2890c3afaefb7e5b20
c279fe2dfdecc8d8d0ae7af053002d059ecf259b
refs/heads/main
2023-08-16T20:39:58.046112
2021-10-03T16:41:16
2021-10-03T16:41:16
390,668,029
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def swapPairs(self, head: ListNode) -> ListNode: if not head or not head.next: return head start = head.next.next head, head....
[ "rohitjain@Rohits-MacBook-Pro.local" ]
rohitjain@Rohits-MacBook-Pro.local
3f39b4c11c3aa082d210897c4b788bb31b2e0551
8fcc27160f8700be46296568260fa0017a0b3004
/client/carbonui/control/windowDropDownMenu.py
6c26d7806b20cec4ebb3158345c97b472461b7f6
[]
no_license
connoryang/dec-eve-serenity
5d867f4eedfa896a4ef60f92556356cafd632c96
b670aec7c8b4514fc47cd52e186d7ccf3aabb69e
refs/heads/master
2021-01-22T06:33:16.303760
2016-03-16T15:15:32
2016-03-16T15:15:32
56,389,750
1
0
null
2016-04-16T15:05:24
2016-04-16T15:05:24
null
UTF-8
Python
false
false
1,453
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\carbonui\control\windowDropDownMenu.py import carbonui.const as uiconst from carbonui.primitives.container import Container from carbonui.primitives.fill import Fill from carbonui.primitives.line import Line from carbonui....
[ "masaho.shiro@gmail.com" ]
masaho.shiro@gmail.com
f67de883a6752ffbaab01bd20e984e4ddb2a51eb
7a40213ccfe36a16c803cf37111b96148a0a69a6
/tests/unit/async_/io/test_class_bolt5x1.py
2ee26b130a08e1ce24775282c0adad56c15af6cc
[ "Python-2.0", "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
neo4j/neo4j-python-driver
6bc0ae1acf63e65e8b6db8bc890e1d8ae45d7b7d
1bd382f48e00c748c83cb910401a74336fbf2feb
refs/heads/5.0
2023-09-06T05:19:09.892773
2023-09-05T15:04:40
2023-09-05T15:04:40
35,100,117
873
214
NOASSERTION
2023-09-05T15:04:42
2015-05-05T13:08:20
Python
UTF-8
Python
false
false
22,452
py
# Copyright (c) "Neo4j" # Neo4j Sweden AB [https://neo4j.com] # # This file is part of Neo4j. # # 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 # # https://www.apache.org/licenses/LICENSE-2...
[ "noreply@github.com" ]
neo4j.noreply@github.com
f2f030f5726a06e38038e9244e679fbeaed5496b
cb4a07ed613c3d97391d92cf5a3411c0a42ff973
/leetcode/122.py
bc03cc73056deb2481491d8a5fe0f998e49011a6
[]
no_license
ZMbiubiubiu/For_Test
27a2c3d432294c4eb2bd9a9e532dcfdf3c148068
6aada343a11890fc0078c3769aed2196ef7186b2
refs/heads/master
2020-06-14T01:34:57.853361
2019-07-20T14:52:15
2019-07-20T14:52:15
194,852,634
0
0
null
null
null
null
UTF-8
Python
false
false
816
py
""" 买卖股票的最佳时机 II 给定一个数组,它的第 i 个元素是一支给定股票第 i 天的价格。 设计一个算法来计算你所能获取的最大利润。你可以尽可能地完成更多的交易(多次买卖一支股票)。 注意:你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。 """ class Solution: def maxProfit(self, prices: 'List[int]') -> int: # 只要后一天比当前的股票价格高,我就买入,然后后一天卖出 # 赚到了所有交易日的钱,所有亏钱的交易日都未交易,理所当然会利益最大化 bonus = 0 fo...
[ "zhangmeng.lee@foxmail.com" ]
zhangmeng.lee@foxmail.com
b86320a322d8f942de143704a086974303d1bcca
6bf2c00376d7a76909d4d85e0fac39962855dcfb
/bookmark/models.py
384cd387100bcb7502287a067725cd575530cd40
[]
no_license
young84/django_project
2f0b6d808d338d5636b296b7110d767a5595b3de
26e15097d19615146fa8b84736aeb62e8d0360c0
refs/heads/master
2023-01-31T23:33:45.106578
2020-12-21T07:42:50
2020-12-21T07:42:50
323,263,847
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
from django.db import models from django.urls import reverse # Create your models here. class Bookmark(models.Model): site_name = models.CharField(max_length=100) url = models.URLField('Site URL') def __str__(self): return "이름 : "+self.site_name + ", 주소 : "+self.url def get_absolute_url(self)...
[ "dlsduddl985@daum.net" ]
dlsduddl985@daum.net
fa3e6a6040101a1c6605f060bbdfcd97858cad90
14344ea4c081bbfb9639cc33dcf843b9134b7d5b
/mindspore/nn/probability/infer/variational/svi.py
8aca1221ac80f0405c43c22d853a591e87c1a5fc
[ "Apache-2.0", "Libpng", "LGPL-2.1-only", "MIT", "IJG", "Zlib", "BSD-3-Clause-Open-MPI", "AGPL-3.0-only", "MPL-2.0-no-copyleft-exception", "MPL-1.0", "MPL-1.1", "MPL-2.0", "LicenseRef-scancode-unknown-license-reference", "GPL-2.0-only", "Unlicense", "LicenseRef-scancode-proprietary-lice...
permissive
Joejiong/mindspore
d06318e456c000f6368dbe648daa39d82ba6a2da
083fd6565cab1aa1d3114feeacccf1cba0d55e80
refs/heads/master
2022-12-05T07:17:28.737741
2020-08-18T07:51:33
2020-08-18T07:51:33
288,415,456
0
0
Apache-2.0
2020-08-18T09:43:35
2020-08-18T09:43:34
null
UTF-8
Python
false
false
2,819
py
# Copyright 2020 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 a...
[ "zhangxinfeng3@huawei.com" ]
zhangxinfeng3@huawei.com
bceb62f49e71304ad6adf8db18b2019cd7b907f3
428a970ee7aca21d1a7556f8937ebc8e4f06f394
/tests/test.py
e0caeb8c9491e0743cb807e704e2038d2bd0a962
[ "MIT" ]
permissive
SriramRamesh/ImageScraper
42f5615ffe8e590a1e9f5a0838d2ce6636474513
41d5f328a74bea01e067d7deb219de5251b77789
refs/heads/master
2020-12-25T00:20:10.408740
2015-02-09T18:38:58
2015-02-09T18:38:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
#testset.py #yet to write proper tests. # TEST 1: Check if 3 images are dowloaded from ananth.co.in/test.html from nose.tools import eq_ def test_sum(): eq_(2+2,4)
[ "sananthanatarajan12@gmail.com" ]
sananthanatarajan12@gmail.com
bc9fb2afed22a652d7a229f920fb725987c8015a
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/7DrvnMeY2Ebzk2mfH_8.py
cdf4c6f5d8fb4f7a25817718499599ad9938b579
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
import re ​ body_insert = '(?<=<body>\n)' body_append = '(?=\n</body>)' body_rewrite = '(?<=<body>\n)(?:\n|.)+(?=\n</body>)'
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
0c297e81d5ab99eb43ea0c1b3d9a817d82935b03
7aebf21ea5e46697804d395b1a32f8f97b9acc5c
/models/Bert-deepwide/bert_attention.py
2578d791610fca342abbd1d5c9c7d341597c467f
[]
no_license
chenxingqiang/RecSys-CTR-Model-2020
d37b4a5b336bcdcf908780c116b6407c998e772c
3407657dc71427daf33b4a962173f36467378c1e
refs/heads/main
2023-07-04T17:56:26.926269
2021-08-27T08:45:05
2021-08-27T08:45:05
399,761,150
0
0
null
null
null
null
UTF-8
Python
false
false
13,369
py
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
[ "noreply@github.com" ]
chenxingqiang.noreply@github.com
4c6a44c71806a1a72dd99124ec9b6b5efd0ec15f
e7cd755171976f00cca3fb9747573c8b0ff06b10
/trophy/migrations/0001_initial.py
108d94d225f6bc74ef4f6d7d9df1b2585dd6a1a6
[]
no_license
derriqo/Awardsdw
fa3b44a98ac37bcf79859737979e3cf55e66e28a
1e2ef581a616b723e0f412f3d7231576967c1460
refs/heads/master
2020-04-29T04:13:42.944553
2019-03-21T17:25:58
2019-03-21T17:25:58
175,831,723
0
0
null
null
null
null
UTF-8
Python
false
false
1,727
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-03-18 10:47 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations...
[ "williamderrick100@gmail.com" ]
williamderrick100@gmail.com
73001255a8f7dbbfd61f269fe5197b9756ba3082
f15b0cc981a7484bae48cd5bde82c9f6ab510f3a
/mysite/settings.py
1cc9346f7b86bc5e6e5f75c3a1b2eee5758f1c33
[]
no_license
SabryCedra/my-first-blog
8e851764d505663331726e53490bff1d37cd15ad
4ca8955a3db785d23eb10f0a9e17c90590b69ebb
refs/heads/master
2021-01-17T17:15:23.809818
2016-07-02T15:34:19
2016-07-02T15:34:19
62,449,388
0
0
null
null
null
null
UTF-8
Python
false
false
2,702
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.8. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths i...
[ "sabry93_4ever@hotmail.it" ]
sabry93_4ever@hotmail.it
42144426a8e54f20974cf27336604f14ea52c22b
16b1265dbd22ed99eae50fca99fbfd5c36db20be
/stringÖvningar/module16.py
31f974459ef3ce759cedbfb2279a4f385cc16623
[]
no_license
athina-rm/string-vningar
320297d15b883e62e401f22dcacc3a8965a18e58
dcac23f178984fd757be82acef17d249a5f64b4d
refs/heads/master
2022-12-30T15:57:28.792511
2020-10-15T11:15:09
2020-10-15T11:15:09
304,301,354
0
0
null
null
null
null
UTF-8
Python
false
false
75
py
def incre(x): x=x+1 print(x) x=3 print(x) incre(x) print(x)
[ "athinamannaraprayil@gmail.com" ]
athinamannaraprayil@gmail.com
18dc511ca7e964ffb86151143fd018120be351dd
482d7d5770dfc17db5b1a0e780b634d3a9f5572a
/Project3/code/Flipped counties.py
9c909942d9dfbf7bca813ffccfd5049540d6eb76
[]
no_license
fmsilver89/FYS_STK_4155
5b9a878330f06a29ec6416aff92a06ebf0ba8dd8
189b7ef0d18cd9395eeab82702376ae91ad24d17
refs/heads/master
2020-09-11T13:24:15.963157
2019-11-16T10:18:21
2019-11-16T10:18:21
222,078,923
0
0
null
null
null
null
UTF-8
Python
false
false
733
py
import numpy as np import pandas as pd # Import CSV-file data = pd.read_table('Data/US_Election.csv', sep = ';', header = 0, encoding = 'latin1') # 2012 Election DEM_2012 = np.array(data.iloc[:, -2]) DEM_2012 = np.where(DEM_2012 > 0.5, 1, 0) # 2016 Election DEM_2016 = np.array(data.iloc[:, -4]) DEM_2016...
[ "noreply@github.com" ]
fmsilver89.noreply@github.com
ecee65f1859c9f82e0e68407c6063b9f18799178
eda523352682b87a6b750d970875d4647b86e5ea
/raw_data.py
10e81810818fca15c6d1693d0659dbd5c780751b
[]
no_license
flyleave/ZingSemi
f3d94b6dbc918f8da7e1784b322f4684982f48c3
124be0594a25cf4de19eac7d717a7a2f59703b5d
refs/heads/master
2021-08-31T17:21:56.253836
2017-12-22T07:03:06
2017-12-22T07:03:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,066
py
import cx_Oracle import pandas as pd import numpy as np import time import scipy.stats as st time_range = '201711' conf_df = pd.read_excel('CPK/Collection Character.xlsx') block_list = "'702'" #'711' now_time = time.strftime('%Y-%m-%d', time.localtime(time.time())) def connect2DB(): username = "frdata" u...
[ "30713012+StepyHan@users.noreply.github.com" ]
30713012+StepyHan@users.noreply.github.com
812988adf18876c0cce0bafb504a64050e1ff7f7
ddcf878cca43d49f73fd673279a97e82ced521e8
/peyotl/nexson_proxy.py
0695ac59e11bb24cc41859e401f46be707764742
[ "BSD-2-Clause", "Python-2.0" ]
permissive
OpenTreeOfLife/peyotl
ca5fcbc4f1754c3da7a25c93d89cfeaaad17057f
b50f7217966c18195c9b52be42454513ffa3e7f3
refs/heads/master
2023-08-03T14:35:46.793662
2023-07-26T20:30:08
2023-07-26T20:30:08
16,637,087
6
4
BSD-2-Clause
2023-07-24T20:02:30
2014-02-08T05:52:12
Jupyter Notebook
UTF-8
Python
false
false
13,589
py
#!/usr/bin/env python """Provides high level wrappers around a Nexson data model blob to let it be treated as if it were a list of OTUs and a list of trees Accessors return either references to part of the NexSON or wrappers around those entities (not copies!) Weakrefs are used, so the more inclusive containers must ...
[ "mtholder@gmail.com" ]
mtholder@gmail.com
1f70f4fccc266bf1e88c3b6567166559faf77759
093c78da7ed780049cbec1f3d8a0f9f2a334ccc1
/Day02/scripts/test01_testcase.py
4765c79510ad1d92471f5f1f96c7155c4b06f54c
[]
no_license
jason-girl/Study
d5191216c39b6b765630a99dfc1d3079f30384dc
a6574a74f0d3cd3ff44ddf8fe4d5884f118ea78c
refs/heads/master
2023-04-04T02:41:32.650966
2021-04-06T03:02:11
2021-04-06T03:02:11
322,759,930
0
0
null
null
null
null
UTF-8
Python
false
false
693
py
# _*_ coding:utf-8 _*_ # File Name: test01_testcase # Author: Emily # Date: 2021/3/2 16:45 # Description : TestCase使用 # 导包 import unittest # 编写求和函数 def add(x, y): return x+y # 定义测试类并继承 class Test01(unittest.TestCase): # 定义测试方法 注意:以test字母开头 def test_add01(self): # 调用要测的函数 result = add...
[ "741425387@qq.com" ]
741425387@qq.com
5a3675690263bd6753e2de539da4af61e2c1edf3
4f4635caac8e8dd5d1ef727f9945a1c3bbc61650
/python/hackerearth/Arrays/StrangeGame.py
989322470a387ebd6d7c074cf75481dc6a278ea0
[ "MIT" ]
permissive
ramo/competitive-programming-solutions
99cdc4a66d241d435b2e9be1056dff229acb48f9
3d857f8e492debbf229b35d50c6d2bebb83b57c4
refs/heads/master
2021-07-12T18:10:02.998097
2019-01-09T17:44:54
2019-01-09T17:44:54
136,951,958
3
4
null
null
null
null
UTF-8
Python
false
false
282
py
for _ in range(int(input())): n, k = map(int, input().split()) a = list(map(int, input().split())) b = list(map(int, input().split())) mx = max(b) + 1 ans = 0 for i in range(n): d = mx - a[i] if d > 0: ans += d * k print(ans)
[ "ramo.phoenix7@gmail.com" ]
ramo.phoenix7@gmail.com
83b50545d5766335a90a8efd425ce27ac02e7134
2ed3f72d9db845400c7e5ef65bece43ac211279f
/landreg/wsgi.py
305e7e2bdd7e9e316a7369e4f8664cd406f2efb7
[]
no_license
tech-cent/landreg
43e51f3576d1a490d7780d8407cffdd72bf0ee24
5c41128ea2a6712c12aaf51fc9dc90320e187212
refs/heads/dev
2022-12-10T10:10:14.129543
2019-12-05T16:40:12
2019-12-05T16:40:12
196,998,810
0
0
null
2022-05-25T02:22:29
2019-07-15T12:56:04
Python
UTF-8
Python
false
false
391
py
""" WSGI config for landreg project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTI...
[ "arthur.nangai@gmail.com" ]
arthur.nangai@gmail.com
528ccbf57f0de4800085949f0d1914babcafee23
6eb165eb8e6012574230604aa2960cb1cf5cac4c
/evaluation/evaluate_stats.py
18c3e7463e99aac3979826f82429fa376c363309
[]
no_license
Jakil83/Humanware-block2-b2phut3
60666889f7ea84c6ac2b785b148ff906e2c983cd
959b4da6c6aebab48f7e41a222bd05b5258b80f4
refs/heads/master
2020-04-23T13:57:41.059799
2019-03-16T02:05:08
2019-03-16T02:05:08
171,215,679
0
0
null
null
null
null
UTF-8
Python
false
false
2,234
py
import argparse import numpy as np from scipy.stats import wilcoxon def evaluate_stats(y_true, y_pred1, y_pred2): """ Statistical evaluation. Compare the distribution of the prediction of two different models using the Wilcoxon signed-rank test and print the p-value. Parameters ---------- ...
[ "jakil.slimi@gmail.com" ]
jakil.slimi@gmail.com
a317a9e4f4f5d6e738556b77ccdf5ca54c22337f
d8ef155d2b931642e448263d43fbf856b3a466c0
/certificates/__main__.py
ac85092b9df679740502289f380cc93e8e0a251c
[ "Apache-2.0" ]
permissive
diemesleno/certificates
a34632bc97a175fd739cdaa6d78f880316176a3c
7aedf80903304216c6d9a8c99efd4df5aa7f8049
refs/heads/master
2022-02-15T17:44:43.132433
2019-08-16T05:44:26
2019-08-16T05:44:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
610
py
import argparse from .certificates import make_certificates def main(): parser = argparse.ArgumentParser() parser.add_argument( "participants", help="csv filaname containing participants" ) parser.add_argument( "template", help="certificate template in svg format used to build" ) ...
[ "cassiobotaro@gmail.com" ]
cassiobotaro@gmail.com
eee490dcf526ffb10b67a1324f01736b974f8ce9
89f8a2e609c2b2a7e4ca10be3830200c7e8e438e
/ftp_homework/ftp_1/bin/start_server.py
e0741d5f538a88369aa9ea5194dab97ea4334bde
[]
no_license
boundshunter/s5-study
b8265ccc0d09f19624002b5919c5fb6104bf65d3
528eda7435a14a2a79c88af02695efec13972f25
refs/heads/master
2018-09-27T17:40:28.352951
2018-06-11T15:38:13
2018-06-11T15:38:13
111,669,896
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
#!/usr/bin/env python # -*- coding:utf-8 -*- __author__ = 'jfsu' import sys import os BaseDir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(BaseDir) from core import ftpserver if __name__ == '__main__': sv = ftpserver.FtpServer()
[ "76686094@qq.com" ]
76686094@qq.com
9a1f313eb6e673c676202754084889113cd6fc4f
9f682c3b6880c1683b5b7d2fa16b7f2f82398da9
/03_Django/나의 프로젝트/articles/migrations/0001_initial.py
d7027bf90ed0499d6386d586aedc9616eebf1c68
[]
no_license
nsk324/TIL
f5c132ed377cbed4e40889a1668d8e91c1ec44cc
55438d5db02ea7b080ef621bb17b0ba9a75fe27a
refs/heads/master
2023-01-11T21:42:24.899763
2019-11-29T05:29:29
2019-11-29T05:29:29
195,937,996
1
1
null
2023-01-07T21:53:36
2019-07-09T05:22:45
Jupyter Notebook
UTF-8
Python
false
false
1,415
py
# Generated by Django 2.2.6 on 2019-10-22 08:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Article', fields=[ ...
[ "ghn03153@gmail.com" ]
ghn03153@gmail.com
27a9e101cd4a7f253db5f5c89fb3068918340ead
34745a8d54fa7e3d9e4237415eb52e507508ad79
/Python Fundamentals/03 Lists Basics/Exercises/07_Easter_Gifts.py
172ea7853a18b1443adb30323f730642b61c1f6b
[]
no_license
DilyanTsenkov/SoftUni-Software-Engineering
50476af0dc88b267d72c56fa87eeb88d841164b2
fe446e3a50a00bb2e48d71ab8f783e0a4a406094
refs/heads/main
2023-08-12T18:18:42.144210
2021-09-25T11:10:38
2021-09-25T11:10:38
317,235,419
1
2
null
null
null
null
UTF-8
Python
false
false
870
py
gifts_names = input().split(" ") command = input() while command != "No Money": command_list = command.split(" ") if command_list[0] == "OutOfStock": if command_list[1] in gifts_names: for i in range(len(gifts_names)): if gifts_names[i] == command_list[1]: ...
[ "noreply@github.com" ]
DilyanTsenkov.noreply@github.com
47705667e33f6a7904b1f49b64c31ef0d425499d
613bac317b6094b6d055e1d2e83576611a47b535
/Lab-2/filters.py
6d18959c8ef3b325fdd875054cb09dcaf57c87d2
[]
no_license
Bylundc/ME-499-Python
2b082b9608613e35b5fc046d3e4d74dbb498a68d
30fedc6855268bc61a2a4f5cf25eeaee442fa502
refs/heads/master
2021-01-19T03:52:24.929976
2017-07-26T20:11:39
2017-07-26T20:11:39
87,340,116
0
0
null
null
null
null
UTF-8
Python
false
false
1,861
py
#!/usr/bin/env python #import Gnuplot, Gnuplot.funcutils import numpy from sensor import * # load raw data in rawme = numpy.loadtxt("raw",usecols=(1,)) print rawme # load raw data in rawmed = numpy.loadtxt("raw",usecols=(1,)) # define a MEAN filter def filtme(data): k = 0 filtered = [] while True: filtered +=...
[ "noreply@github.com" ]
Bylundc.noreply@github.com
79c9a8a19c7a2c262c379b8827e57615fb0863a1
228fc2d62fe49b75849dfd0ee2e58e1db2dff3a1
/app/extensions.py
6e1b0fdf409d98f52a4a5d55f998fe32683d3080
[]
no_license
wggglggg/wggglggg-todoism
de59b846c4ad52550e7972760047b99deea42ade
f52a18e3b3754bb86144a520a1578de22bfe8d54
refs/heads/master
2023-07-07T01:32:37.194325
2021-08-14T08:25:43
2021-08-14T08:25:43
387,105,559
0
0
null
null
null
null
UTF-8
Python
false
false
1,529
py
from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_wtf.csrf import CSRFProtect from faker import Faker from flask_babel import Babel from flask_login import current_user from flask import request, current_app db = SQLAlchemy() csrf = CSRFProtect() login_manager = LoginManager() fa...
[ "wggglggg@hotmail.com" ]
wggglggg@hotmail.com
cdbbb2e4e9b0b6b4cbd73db33338923d64f8d519
a862bf03863411c3bdeb34a16af0f61647384172
/utils/tests/test_utils.py
f5a4c2bbf2442581d0e25bb4e075ea662b86ed88
[ "MIT" ]
permissive
braun-steven/torch-utils
87765e542dc855c2a107b7c048899262a93d22be
e4a7057217de3daf7eeef144ca7b12bc909b8473
refs/heads/master
2022-11-28T16:14:12.072970
2019-09-27T11:12:02
2019-09-27T11:12:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,437
py
import numpy as np import torch from torch import nn import datetime import time import os import tempfile import unittest from unittest import TestCase from utils import ( ensure_dir, generate_run_base_dir, count_params, load_args, save_args, set_cuda_device, clone_args, set_seed, ) imp...
[ "steven.lang.mz@gmail.com" ]
steven.lang.mz@gmail.com
9b82ea80ac9c7574edc4782462994c25892b1184
201ea8fd49f7e029dcfdd951e307cac06c3a5ab0
/proj4/raw_sock.py
119ddd9b9c5f39e31412b660b3ed9683218cd114
[]
no_license
dingkple/FCN-Projs
34311356c4d93a95278d250fc2c64bdb3dd90936
52ee5fc572b8a6861b735005593c8d43aa32fef1
refs/heads/master
2021-05-01T19:35:20.001653
2016-11-14T13:57:33
2016-11-14T13:57:33
29,543,758
0
0
null
null
null
null
UTF-8
Python
false
false
24,070
py
#!/usr/bin/python import socket import socket from struct import * import commands import random import urlparse import time import sys import binascii BASE_SEQ = 0 CSEQ_NUM = 0 SSEQ_NUM = 0 CACK_NUM = 0 SACK_NUM = 0 SBASE_SEQ = 0 MSS = 1400 IP_ID = 0 NEED_PRINT = False DATA_RCVD = {} USER_DATA = ' ' LAST_RCVD...
[ "king.kple@gmail.com" ]
king.kple@gmail.com
f01c131352814fb648562b0c77b9f73fbbc0514c
96f5c1c61566a1f65a64838043d36eaaa6f27864
/lhalo_to_hdf5/__init__.py
043a4accd5ba90bcb2cf9d11c39cf9bfb9a2eb8c
[ "MIT" ]
permissive
jacobseiler/short_scripts
3ac19880c820d8b4a3e681760dceee53ae43c56d
a52637dce09407059b45fd4d5c32af5f8a87c3f7
refs/heads/master
2021-04-15T11:37:04.509829
2019-10-03T06:09:39
2019-10-03T06:09:39
126,785,952
0
0
null
null
null
null
UTF-8
Python
false
false
29
py
__all__ = ("lhalo_to_hdf5",)
[ "jseiler@swin.edu.au" ]
jseiler@swin.edu.au
2dbdd3de22cd35307bdf8d469a9124387145b253
2fc57e27bd74ca06a43f7ba6d192018cb282fc01
/functions_lab_1/start_point/tests/python_functions_test.py
6188ba6529c77b65131fa43d46a9947de6359d1c
[]
no_license
pvaliani/codeclan_hw2
39d59b77a6378f75eeca9f5a88afd752cf7ab095
f5b1ef72120e6aa317b1c700b025a7f48e3cb459
refs/heads/master
2023-01-04T09:39:07.185893
2020-11-04T21:45:53
2020-11-04T21:45:53
310,092,164
0
0
null
null
null
null
UTF-8
Python
false
false
2,987
py
from src.python_functions_practice import * import unittest class TestPythonFunctionPractice(unittest.TestCase): def test_return_10(self): return_10_result = return_10() self.assertEqual( 10, return_10_result ) def test_add(self): add_result = add( 1, 2 ) self.assertEqual( 3, add_resu...
[ "p.valiani@gmail.com" ]
p.valiani@gmail.com
4d756080e3866e9ce0f11af949a141e29330102a
14ed9961ba4a685b262c52d7234ac1cb76b9972c
/Codes/MPC/MPC-ball_balancer/controller.py
c8173b9bdeff170021ca87920d53e756bbd403dd
[]
no_license
gongchenooo/CS339-Quanser-Robots
5fbfc3bb2b8f5596b91f001127d86633fd2c6d06
e6208a2d48c85594dca6a115934ca9accb47db9d
refs/heads/master
2023-03-04T03:18:55.559660
2021-02-18T08:02:04
2021-02-18T08:02:04
339,973,882
2
0
null
null
null
null
UTF-8
Python
false
false
3,607
py
import numpy as np from Hive import Hive from Hive import Utilities from cannon import * class MPC(object): def __init__(self, env, config): self.env = env mpc_config = config["mpc_config"] self.horizon = mpc_config["horizon"] self.numb_bees = mpc_config["numb_bees"] self.ma...
[ "1057186837@qq.com" ]
1057186837@qq.com
ba79eca0f24f1d37729244332dbcd676824f7146
a4643b30586a66e9c7c189020bdf8d8a656215b0
/template_day/template.py
de581a31ddd960751b69467895e491353e44ec40
[]
no_license
Crinibus/adventofcode
db7bf6cb9098db388d2cc418ecc7df5e0f474323
1c81e388587fc7db3b59ec6ab6c38143880d90c9
refs/heads/master
2022-12-17T07:45:20.556732
2022-12-07T07:48:29
2022-12-07T07:48:29
225,465,739
0
0
null
null
null
null
UTF-8
Python
false
false
622
py
import pathlib def get_input() -> list[str]: root_path = pathlib.Path(__file__).parent.absolute() with open(f"{root_path}/input.txt", "r") as input_file: input_raw = input_file.readlines() return [line.strip() for line in input_raw] def get_answer_part_1(input_data: list[str]): pass def ...
[ "57172157+Crinibus@users.noreply.github.com" ]
57172157+Crinibus@users.noreply.github.com
8e7f462f54a5e8c377193b2b99995a768d177c25
88162a141dc3361bf0574b29b41096e57623d8e9
/src/python/gjettelek/gjettelek.py
1a26234825a987cea8aaa2609ab7add34e5498be
[]
no_license
kodeklubben/oppgaver
8ddc14297b33518d4532fe5c90170e981a9593a0
eb4b7d786563fc3c1d1b0324d00018198440aa1e
refs/heads/master
2023-09-05T21:09:37.505409
2023-08-01T06:08:56
2023-08-01T06:08:56
17,453,180
43
196
null
2023-08-23T11:27:25
2014-03-05T19:59:03
Python
UTF-8
Python
false
false
272
py
# gjettelek.py from random import randint number = randint(1, 100) guess = 0 while guess != number: guess = int(input("Please guess a number: ")) if (guess < number): print("Higher!") elif (guess > number): print("Lower!") print("Correct!")
[ "okpedersen@gmail.com" ]
okpedersen@gmail.com
fbd540a9a8a2dc77e250b42930f27847e6734bb8
53015e1d44805dc884b282583608ad5a03dcc8a0
/P25.py
a90e2715fab96b790dcef6f1b2647bc295e22732
[]
no_license
mitali-1703/Python-Lab-Work
0db24ed5d663f8b0ad09867594ad86d9c30b9b0d
30438481fd46fcfac93f06dd6cda2b961914f881
refs/heads/master
2023-04-22T01:57:51.526041
2021-05-13T18:38:14
2021-05-13T18:38:14
295,008,264
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
#Write a function calculation() which accepts 2 variables and calculates their sum and # difference in a single return call. def calculation(x,y): sum=x+y diff=x-y return(sum,diff) a=int(input("Enter first number:")) b=int(input("Enter second number:")) s,d=calculation(a,b) print("The sum and d...
[ "noreply@github.com" ]
mitali-1703.noreply@github.com