blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6a50d416e82bfa47032577495e12de28200cdfc4 | da845c11ff741c1b20a8999427416ec821c411ed | /get_ids.py | e89ce65ef50f70dd837734e96e5d87e0b6697e53 | [] | no_license | lrakocev/controversial_nlp_stimuli | 56c3e3502368b0d4b9ef2b18096a65d27615458f | b3aa329840b72ae77c9f39a7eeb97226bc501185 | refs/heads/master | 2023-02-12T20:28:10.040123 | 2021-01-15T13:05:16 | 2021-01-15T13:05:16 | 290,066,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py |
fp = open("lines.txt")
for i, line in enumerate(fp):
if i%2 == 0:
relevant = line.split("/")
print(relevant[6][3:])
| [
"lrakocev@mit.edu"
] | lrakocev@mit.edu |
f10b80df0563910b0b8c76d603d37e7f23385b94 | 6bd0477c7932b3ab71df15ccc8cdfcd422412c7c | /calculator.py | 9d1226e226b0e8102129f60346075b1f63084a94 | [] | no_license | shruti09-sh/gui | a42365d796bb811d3777eac82545d21378987178 | 5082b78df3f0f0c4ab880da0d1c827d7c7c9bd30 | refs/heads/master | 2022-12-31T18:40:53.250489 | 2020-07-28T07:36:18 | 2020-07-28T07:36:18 | 283,132,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,265 | py | from tkinter import *
root = Tk()
root.title("Simple Calculator")
e = Entry(root, width=35, borderwidth=5)
e.grid(row=0, column=0, columnspan=4, padx=10, pady=10)
def button_click(number):
# e.delete(0,END)
current = e.get()
e.delete(0, END)
e.insert(0, str(current) + str(number))
def button_clea... | [
"shrutimishra998@gmail.com"
] | shrutimishra998@gmail.com |
8635affae9dfb55c30f1f87e30006a90f43cf69f | 945a82f10abed392ad003ed9e24ccdb771cbf603 | /0908-multipul_stars/output/HD7449_1536554997.6376133*/GP_multi_stars.py | 9ef38a28c4c2c4599f73e4de7e1d89b0a2ca8dec | [] | no_license | jinglinzhao/Python_codes | f4454aa286ae4abb7911a9ce0fc21f96e09f2713 | e4334ab9721c7fc72f94cd1aa04e6add158ee3a8 | refs/heads/master | 2021-04-12T08:38:35.677200 | 2019-10-22T03:34:42 | 2019-10-22T03:34:42 | 126,131,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,381 | py | # based on GP_85390_george_SE_2_planets.py
import numpy as np
import matplotlib.pyplot as plt
from rv import solve_kep_eqn
#==============================================================================
# Import data
#==============================================================================
star = 'HD7449'
p... | [
"jinglinzhao@gmail.com"
] | jinglinzhao@gmail.com |
4710d21fbfea2df8d991523e703199f7c8cd9443 | 43101203c71d137953562bcb544da3cb4b2a9b2e | /common.py | 15d585d09b3f2f1b71beb25429a0a395179bdaec | [] | no_license | yingjunwu/mydrawer | 3c9a9487fe5cddd8f0c0b052422491270fda6240 | 72f5037b35180f7ca585c7bc2639751695302f94 | refs/heads/master | 2020-04-13T12:33:46.261325 | 2019-01-02T23:19:46 | 2019-01-02T23:19:46 | 163,206,033 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | import matplotlib.pyplot as plt
import numpy as np
import pickle
import os
import pylab
import matplotlib
import csv
from matplotlib.font_manager import FontProperties
from matplotlib.ticker import LinearLocator
OPT_FONT_NAME = 'Helvetica'
TICK_FONT_SIZE = 20
LABEL_FONT_SIZE = 22
LEGEND_FONT_SIZE = 24
LABEL_FP = FontP... | [
"yingjun.wu@ibm.com"
] | yingjun.wu@ibm.com |
a39a3ef7471999418850c2d6024480d62807a7f5 | 0b914f59e00aa0a31ac4def1466dab10a7e64c63 | /10-Orthonormal-Basis/04-Implement-Gram–Schmidt-Process/playLA/GramSchmidtProcess.py | 46fb6685c3e2b70a12c11cffc526bc16e9102bdd | [] | no_license | dashuaiit/Play-with-Linear-Algebra | 28bb9b99d90855357615d8a52104a9cc14b626e4 | e86175adb908b03756618fbeeeadb448a3551321 | refs/heads/master | 2022-12-28T17:13:48.413912 | 2020-10-16T12:19:33 | 2020-10-16T12:19:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from .Vector import Vector
from .Matrix import Matrix
from .LinearSystem import rank
def gram_schmidt_process(basis):
matrix = Matrix(basis)
assert rank(matrix) == len(basis)
res = [basis[0]]
for i in range(1, len(basis)):
p = basis[i]
for r in res:
p = p - basis[i].dot(r... | [
"liuyubobobo@gmail.com"
] | liuyubobobo@gmail.com |
ffd044eba5723c178b6dac4ad896d45fe0e7edeb | 839330a55562b18a8374858b6bf6b5e155f1996f | /5.py | 1db13e45300f762cf4a57544c97844fc410413b0 | [] | no_license | Leeyp/Euler | d30bd53bd439de9b3f90af3b4c3f0582adc8306c | 99c153d81ee729f09019876987fdda956162b57c | refs/heads/master | 2020-12-24T20:51:45.075354 | 2016-05-12T01:00:52 | 2016-05-12T01:00:52 | 57,938,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | # define and initialise data structure
numbers = range(1,21)
# define and initialise variables
answer = 2520
alldivided = False
# determine if the number can be divided by numbers from 1 to 20
while alldivided == False:
for x in numbers:
if answer % x != 0:
alldivided = False
break... | [
"lee.yangpeng@dhs.sg"
] | lee.yangpeng@dhs.sg |
2d296491a90b3aa6d5a6a0d6a856ec7efcbaf94b | 45af9f532692892095b1d861b47c8dcc28df2671 | /libs/serialcommunicate.py | 1551aa07cc6bf177808d0becd9b4c5f6ea786803 | [] | no_license | lianwutech/plugin_gzxx_zigbee | 062a66a8bd06e98a6f38664acfb4f341a9a1eb97 | d08df977205ca9906750c18ee676b293de07952d | refs/heads/master | 2016-09-06T00:10:59.160002 | 2014-08-19T12:05:54 | 2014-08-19T12:05:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
""":mod:`serialcommunicate` -- 串口通讯模块
"""
#-*- coding: utf-8 -*-
from time import sleep
from serial import Serial
class SerialCommunicate():
def __init__(self):
self.__terminate = False
self.serial = Serial()
def open(self, settings):
try... | [
"daviddeng.china@gmail.com"
] | daviddeng.china@gmail.com |
eaa1980c4999c61e6a1b1e8b001eb7515914d8ae | 00d478ed3c25faeebdd5d0a968c8487e1528c7b9 | /code.py | 15bc0b76be29e77d7f825c12844746ec01d92f66 | [] | no_license | mehulved/eRobot | 70e7865e70cc78a56ed3a7530135762a25bc6033 | 9c4df8f0b0047eed6459ce24ca2d5fecd84bd8e9 | refs/heads/master | 2021-01-23T11:20:05.559194 | 2012-02-17T18:16:14 | 2012-02-17T18:16:14 | 3,295,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | import web
render = web.template.render('templates/')
urls = (
'/(.*)', 'index'
)
app = web.application(urls, globals())
class index:
def GET(self, smiley):
result={} # let's define an empty dictionary which will store the returned results
# Match the smiley from the emoticon.txt file and sto... | [
"mehul.n.ved@gmail.com"
] | mehul.n.ved@gmail.com |
4541a82799368fab9e03ac4133c6b562d23eea77 | 9b793f985c510495eac89ff753f573c50ddfc389 | /lesson2/task1/variable_definition.py | 18cc8b10170e7df4dc543268603a5a42c6085404 | [] | no_license | trishnolberto/SUMMER_BOOTCAMP_2018_Python | 1e0ca76587dff962a11ef007b9dd3039c05bf1f2 | bfc205c799abb3aed80109a25e4a0ea535aaebec | refs/heads/master | 2021-05-08T19:57:21.825156 | 2018-02-11T23:33:21 | 2018-02-11T23:33:21 | 119,588,780 | 0 | 0 | null | 2018-01-30T20:13:14 | 2018-01-30T20:13:14 | null | UTF-8 | Python | false | false | 432 | py | """
Los comentarios en python comienzan con el caracter (#) e incluyen la linea.
Agregue un nuevo comentario al archivo
"""
a = b = 2 #Esto se llama una asignacion encadenada". Asigna el valor 2 a las variables a y b
print("a = " + str(a)) #Explicaremos la expresion str(a) mas adelante en el curso
print("b = " + str(... | [
"patricianolberto@hotmail.com"
] | patricianolberto@hotmail.com |
afa02ec373230a67f07ad959574a246764b17fe5 | 2b307b57973033ca5a1c87de9b1d7a11832a0d91 | /usrprofile/MultiWidget.py | b4f371bdc8d9ec603e5fbe04118e096611227747 | [] | no_license | susanta97/Personal | 99c7bb97134a1da86737b4ec3c90e716ac08948d | 98862f7c452323cc11c8401091810af7ac256ca9 | refs/heads/master | 2023-04-21T13:49:21.948147 | 2021-05-10T16:07:46 | 2021-05-10T16:07:46 | 366,091,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | import datetime
from django import forms
from django.db import models
YEAR_CHOICES = [(year, year) for year in range(2000, datetime.date.today().year + 1)]
MONTH_CHOICE = [(month, month) for month in range(1, 13)]
class MyMultiWidget(forms.MultiWidget):
def __init__(self,attrs=None,*args,**kwargs):
widget... | [
"shreyadatta420@gmail.com"
] | shreyadatta420@gmail.com |
ca36bf4ccde3e54834fea70d04ff2cdb8c1f4678 | 517939db10ab70011921f84f3a618ae5d568c617 | /pddm/mj_envs/hand_manipulation_suite/hammer_v0.py | 8782529c851aae1553c0f72a6f174012d716c40b | [
"Apache-2.0"
] | permissive | Ray006/PDDM_hand | fedefbfd53b1d0de512119853cdb983cbab77543 | 232fc9767c6a7784d55c4f52825f6453263e84aa | refs/heads/master | 2022-12-27T03:19:39.070455 | 2020-10-08T09:09:06 | 2020-10-08T09:09:06 | 302,277,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,320 | py | import numpy as np
from gym import utils
from pddm.mj_envs import mujoco_env
from mujoco_py import MjViewer
from pddm.mj_envs.utils.quatmath import *
import os
class HammerEnvV0(mujoco_env.MujocoEnv, utils.EzPickle):
def __init__(self):
self.target_obj_sid = -1
self.S_grasp_sid = -1
self.ob... | [
"leihejun@gmail.com"
] | leihejun@gmail.com |
1f3799e00f16c5d93cd2f2db5eb86b1f77be65c8 | 485da8036924014a01769b5f5e063b7860fa349a | /protocols/.ipynb_checkpoints/cell_resuspension-checkpoint.py | 9c4e6e07955169615c0c43729fa83f611cbfaa2c | [] | no_license | goodarzilab/opentrons | 3b421d888b8643c5e2a9600557937bbb1aff51ff | 7a5a06a9ceff5a2477551cc0f982d26461d41f76 | refs/heads/main | 2023-07-29T05:48:59.793022 | 2021-09-20T17:30:40 | 2021-09-20T17:30:40 | 387,921,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,375 | py | from opentrons import protocol_api, types
import sys
sys.path.append("/root/utils")
from common_methods import load_tips, discard_tips, eliminate_droplets, mixing
#Metadata
metadata = {
'protocolName': 'Cell Fixation',
'author': 'J. Wang',
'description': 'Protocol for Cell Resuspension',
'apiLevel': '2... | [
"jwang@rumi.ucsf.edu"
] | jwang@rumi.ucsf.edu |
3e9a449132186dbbe06082a0202caddb2be86192 | ca2e55b8f828dad7bdc5caf471cbaaf01d0f6c31 | /researchlibrary/api/migrations/0006_auto_20160608_1031.py | 7f4105f0ba99b0db0b37b3baecb2d39e8369d3c3 | [] | no_license | FUB-HCC/ACE-Research-Library | 87909b5c25ca7997aedad970266351d75a15d6af | db0b3e9c0cd58fc0246bf5411b3dc96abe11e6c2 | refs/heads/master | 2021-01-22T00:04:01.702595 | 2016-12-18T19:54:06 | 2016-12-18T19:54:06 | 55,814,628 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-06-08 10:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0005_resource_accessed'),
]
operations = [
migrations.RenameModel(
... | [
"drescher@ferret-go.com"
] | drescher@ferret-go.com |
898be5f1ed3a675b2d9971aedc556ae1ff1e600b | cbf9ed072d00d33e0953ebd19df7d300074ce7d4 | /plot.py | 5477b2f00c6beca5637ecea52b15393a7bd27fe6 | [] | no_license | sjr113/stdp_mnist | 23947798baf7fcb80e4ccb005912d441c7d9f62c | fc8498be86ece03aadcb6c6ac68bf123675f52ee | refs/heads/master | 2021-01-20T12:41:24.413326 | 2015-06-18T11:30:38 | 2015-06-18T11:30:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py |
# coding: utf-8
# In[1]:
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import sys
input_size =28
output_num = 8
#im = plt.imshow(np.zeros((input_size,input_size)))
start = 100
stop = 350
output_num = int(sys.argv[1])
par_start = int(sys.argv[2])
for run_i in range(200):
stdp... | [
"qianliu.bjut@gmail.com"
] | qianliu.bjut@gmail.com |
e9d5c1eb22ee324a43f5a5ae8fd69dbb5b384dc0 | f1a199e076049196d75f2861aca8f43910ad3d35 | /keras/keras_cnn.py | 61a0c0b41b2b3e77bbd5ad69d8cedf83c31a7a95 | [] | no_license | 1021546/test_keras | 090f7f7681b47b388e0e9ca69f74eec72136c4e7 | b2e811583c8670e20a6c7d317e0a9454c46efc1d | refs/heads/master | 2021-05-01T10:50:38.611322 | 2018-02-11T10:05:04 | 2018-02-11T10:05:04 | 121,108,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:7faf85598d3a5fa0f5d67614c4a9910bf796e2f75b0d2d85ad7001a84138beeb
size 3619
| [
"jerryhuang0312@gmail.com"
] | jerryhuang0312@gmail.com |
d81641a11b6e564780f2eb5f425b1e15178fc775 | 1d74b3820784fbfc85e422b7eadcb5b711780918 | /util/constants.py | 87781b78a571c152727d881594b00b92be4bc97c | [] | no_license | zackls/cardai | 9dd073fc4974f0584e5906de6ad62ec22932820a | ea0a196de4abe8f46537300209a9cef2ebc78033 | refs/heads/master | 2020-05-29T20:34:35.099696 | 2019-07-16T03:24:42 | 2019-07-16T03:37:46 | 189,355,427 | 1 | 0 | null | 2019-07-16T03:37:47 | 2019-05-30T06:05:35 | Python | UTF-8 | Python | false | false | 653 | py | agent_constants = {
"learning_rate": 0.4,
# decay happens every game
"learning_rate_decay": 0.001,
"discount_factor": 0.8,
"endgame_discount_factor": 0.975,
"random_action_rate": 0.1,
"dyna_steps": 10,
"verbose": False,
}
run_constants = {
"num_games": 1000,
"verbose_mod": 50,
}
game_constants = {
"num_age... | [
"zack.littkesmith@gmail.com"
] | zack.littkesmith@gmail.com |
3241ce017a8a3b52af4fd49a00d0a060833977ed | 78ffaabc9d66521dd0921faef34a902688b37f87 | /mysite/blog/migrations/0003_auto_20201108_1348.py | a1c7ed6d6f3766f7c7534a31335921310406a5ff | [] | no_license | Dmclosa/Django-3 | b766f09611c54f9427e0197a1ee2fb19a368edfc | 45c3ef76dd564c673d82186068972d82c63e64bc | refs/heads/main | 2023-01-24T21:36:01.975908 | 2020-11-21T14:38:12 | 2020-11-21T14:38:12 | 311,193,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # Generated by Django 3.1.3 on 2020-11-08 05:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_comment'),
]
operations = [
migrations.AddField(
model_name='comment',
name='email',
field=... | [
"closadavidmathew.dmc@gmail.com"
] | closadavidmathew.dmc@gmail.com |
1504d39ef20e08c04e1cdc4746b68ebbb0bcc192 | d2f91b93ad42aaefa5fc315a9b3a5d45d07fa705 | /slbman/venv/Lib/site-packages/aliyun/api/rest/rds/RdsDescribeDBInstanceClassesRequest.py | 33ce5a2e88dcb9457c34ba33df1ea05109b25fc6 | [] | no_license | junlongzhou5566/managePlatform | 66cb5bc5b176147ff0038819924f7efa8df1d556 | 3201ba1a11b05c86db5f42aa9ca8eaf1cc20e216 | refs/heads/master | 2021-03-29T00:58:23.337808 | 2020-03-17T09:50:21 | 2020-03-17T09:50:21 | 247,910,365 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | '''
Created by auto_sdk on 2015.06.23
'''
from aliyun.api.base import RestApi
class RdsDescribeDBInstanceClassesRequest(RestApi):
def __init__(self,domain='rds.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
def getapiname(self):
return 'rds.aliyuncs.com.DescribeDBInstanceClasses.2013-05-28'
| [
"645647713@qq.com@qq.com"
] | 645647713@qq.com@qq.com |
f398d3b06ab094a54439b2f4315ad474a76e55f2 | 6f30245f27a9568155f69648faf148c278136029 | /hhapps/cmd/stock_api.py | dd7da5d6c78ea0bde4abd7f69423a01f7dd4884b | [] | no_license | r202-coe-psu/hh-apps | 82495ffec7fb09155afa4e8f571051aad824acb4 | a15453b7f502a2a71ccb89ba4c4ebe95ef3ca86f | refs/heads/master | 2021-05-03T05:48:40.766349 | 2017-08-06T22:45:30 | 2017-08-06T22:45:30 | 120,584,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py |
from hhapps.stock import api
def main():
options = api.get_program_options()
app = api.create_app()
app.run(
debug=options.debug,
host=options.host,
port=int(options.port)
)
| [
"boatkrap@gmail.com"
] | boatkrap@gmail.com |
0d473486304fff7a83e1909e8c90e620fa821d26 | 2eeec0b3637ef24375908ead4383dd74793fe554 | /shoppingcart/shopping.py | abe66bb218fa588a1f5e8d2e17da2dca24e189af | [] | no_license | CarolineFang/Project | 12428a34a3b15aa5c57dd8c6dd442d68faab42e5 | 42602a104352cc3643b56ba247e7633afc8e1428 | refs/heads/master | 2020-03-28T17:27:22.995582 | 2018-09-14T13:45:48 | 2018-09-14T13:45:48 | 148,791,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,352 | py | product_list=[
('Iphone',5800),
('Mac Pro',9800),
('Bike',800),
('Watch',10600),
('Coffee',31),
('Python',120),
]
shopping_list = []
salary=input("Input you salary:") #让用户输入工资
if salary.isdigit(): #判断用户输入是否为int类型
salary=int(salary)
while True: #进入死循环
for index, ... | [
"jasminesyann@gmail.com"
] | jasminesyann@gmail.com |
3c8447c84711cec663780d3e273b465fe46bb636 | 7d4b51942b46ccd389b2d0ffcb24555ce74211b5 | /testsuites/posca/testcase_dashboard/posca_stress_ping.py | 7a5a8fb8848bfe6dba801dc017b9aaa6e4a92246 | [
"Apache-2.0"
] | permissive | hashnfv/hashnfv-bottlenecks | 105be1664b23f9dd92ceaeb702bb225697297ed7 | 9185bc4e34ddbd98d2b5b4ced26d7ffb2bb9fc51 | refs/heads/master | 2021-07-22T07:45:53.461273 | 2017-10-20T07:31:01 | 2017-10-20T07:31:46 | 108,937,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,217 | py | #!/usr/bin/python
##############################################################################
# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies t... | [
"liyin11@huawei.com"
] | liyin11@huawei.com |
65adf0f1151d5c9b9604e68bf69694aa8cbc53f0 | 2cdf8cb29ff93b6426f14fd55609621cfc1c4fe9 | /django_example/urls.py | 0b6339763911d0bbc886b22e7b3a50e20a9b2a48 | [] | no_license | vqc/django_example | df60a62e2663b97a7ae649a42cf681047583d757 | a9172875285fec41c37465036816d90dd3269b1a | refs/heads/master | 2021-01-11T07:01:56.277124 | 2016-10-30T04:52:47 | 2016-10-30T04:52:47 | 72,315,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | """django_example URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cl... | [
"vince@cvq.cc"
] | vince@cvq.cc |
33cfa93322cb6d35e4ac2ab3d28b777657471eab | 078000714e66190a5cc6fc21fb959da04cc7bb3e | /test/test_packages/classic_closure_example/example.py | dc593328a3f3164a659e05905775e1c06a06714b | [] | no_license | weiliu93/PythonMiniInterpreter | a219cd2cc4e54195b8a100b97559294a8f9f97f6 | 8cac656bb594565ac730d28479095eed5dd1e3bf | refs/heads/master | 2020-04-21T20:52:28.930492 | 2019-02-25T07:24:15 | 2019-02-25T07:24:15 | 169,859,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | def func():
value = 1
for _ in range(10):
def inner_func():
print(value)
yield inner_func
value += 2
func_list = list(func())
for f in func_list:
f()
| [
"jxlw2014@163.com"
] | jxlw2014@163.com |
43f725c92d3678bf53fec0c65b5ea0c57bc20ced | 817a2c097a6e944c776b591cf9d07a33ccecb91f | /python-practice/CoreySchaferTutorials/18_random_data_example.py | 271c9bba87280e9b853cc8fc10cab25d182124d1 | [
"MIT"
] | permissive | YoungsAppWorkshop/coding-practice-archive | 7c33127e87c4c048e1d30599c9e1da99e7800866 | e5c5f7fd48bfc9a6d70936a1c860297231404331 | refs/heads/master | 2020-04-04T23:06:20.157728 | 2018-11-23T00:43:07 | 2018-11-23T00:43:07 | 156,347,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | #!/usr/bin/env python3
''' Super simple module to create basic random data for tutorials'''
import random
first_names = ['John', 'Jane', 'Corey', 'Travis', 'Dave', 'Kurt', 'Neil', 'Sam', 'Steve', 'Tom', 'James', 'Robert', 'Michael', 'Charles', 'Joe', 'Mary', 'Maggie', 'Nicole', 'Patricia', 'Linda', 'Barbara', 'Elizab... | [
"ryviusm6@gmail.com"
] | ryviusm6@gmail.com |
ab4ddaa525f0af038fd27984ccf21aea86d3a3e9 | 00c1a2bf4f0b9af287f336b8c6f6e52390ce2d6f | /loyihaapp/models.py | 469b15e2afded2764c98c114693a9488e5d9a12f | [] | no_license | bekzod886/Django_loyiha | c038598539e3dd0efe122eceb49d77b3b2145edb | 5c1e0459db3a891ba6bd2a33f51fd575173e8fd8 | refs/heads/main | 2023-07-02T16:39:17.591120 | 2021-08-05T08:16:27 | 2021-08-05T08:16:27 | 391,806,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from django.db import models
# Create your models here.
class Meva(models.Model):
title = models.CharField(max_length=255)
img_url = models.CharField(max_length=255)
desc = models.CharField(max_length=255)
price = models.FloatField()
| [
"you@example.com"
] | you@example.com |
f79483185e215778d5fecabccfdf8eff6e7de4e7 | 56e424f875c70eefb19bb7228146682e7e9b37a7 | /botorch/test_functions/eggholder.py | 8a962dd96249f9dd6bdc2f0fc7cafb19ddf59959 | [
"MIT"
] | permissive | cnheider/botorch | 16817259e1b169940587f12c8c42cdcf6e0507bf | 1d90aaff64b2f1e1f49bcac233b45ba18427f6fd | refs/heads/master | 2020-05-18T11:42:46.138645 | 2019-05-01T07:33:53 | 2019-05-01T07:38:04 | 184,386,467 | 0 | 0 | MIT | 2020-04-12T02:22:48 | 2019-05-01T08:04:58 | Python | UTF-8 | Python | false | false | 876 | py | #!/usr/bin/env python3
import torch
from torch import Tensor
GLOBAL_MAXIMUM = 959.6407
GLOBAL_MAXIMIZER = [512, 404.2319]
def neg_eggholder(X: Tensor) -> Tensor:
r"""Negative Eggholder test function.
Two-dimensional function (usually evaluated on `[-512, 512]^2`):
`E(x) = (x_2 + 47) sin(R1(x)) - ... | [
"balandat@fb.com"
] | balandat@fb.com |
ae1c913301242ed2e5a7ec3ba3dccc982f58f106 | a764825fc8bdc3141e5f59eeb73efea378a98570 | /library/yahoo-finance/constants.py | 0f125092f92dfc1ac6ca921ad12641cad4f117c4 | [] | no_license | YauheniPo/py-robot-framework-api-testing | 59a56e0056cd7d0e16d1f8d2c91143a8435a0507 | 53129289ee8684bc2f54c533ec7baeef1e2440ef | refs/heads/master | 2022-12-19T12:02:22.919134 | 2020-09-20T10:42:51 | 2020-09-20T10:42:51 | 287,671,349 | 0 | 0 | null | 2020-09-20T10:26:36 | 2020-08-15T03:38:50 | RobotFramework | UTF-8 | Python | false | false | 187 | py | EPAM_SYMBOL = 'EPAM'
EPAM_WEBSITE = 'http://www.epam.com'
EPAM_LONGNAME = 'EPAM Systems, Inc.'
APPLE_SYMBOL = 'AAPL'
APPLE_WEBSITE = 'http://www.apple.com'
APPLE_LONGNAME = 'Apple Inc.'
| [
"ip.popovich@mail.ru"
] | ip.popovich@mail.ru |
cf5232006921ce80f92f29008e1e66683214afa9 | 4f935960c688bb306a9808b9a0f47480a1a3d33a | /fastai2/callback/cutmix.py | 1f182c8d3701ad765019fd43909d6f91fe436c03 | [
"Apache-2.0"
] | permissive | AccidentalGuru/fastai2 | c3297919f2c2455f8c8a5ee81a5590afe87df34a | e816625945d87c2d9ac6521150f235942912bf74 | refs/heads/master | 2021-05-26T22:59:55.066904 | 2020-04-08T13:18:11 | 2020-04-08T13:18:11 | 254,182,464 | 1 | 0 | Apache-2.0 | 2020-04-08T19:33:43 | 2020-04-08T19:33:42 | null | UTF-8 | Python | false | false | 2,296 | py | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/74_callback.cutmix.ipynb (unless otherwise specified).
__all__ = ['CutMix']
# Cell
from torch.distributions.beta import Beta
from ..vision.all import *
# Cell
class CutMix(Callback):
"Implementation of `https://arxiv.org/abs/1905.04899`"
run_after,run_valid = [... | [
"sylvain.gugger@gmail.com"
] | sylvain.gugger@gmail.com |
288d8d7c40583c3905ac151043ba97b23f38e21e | 3fda5565df061fbc7565a216ba31ab0bbc959517 | /Part 2 - Regression/Section 4 - Simple Linear Regression/linear2.py | 6cd789b05131125b7677d1421cc8b496a81ca0a9 | [] | no_license | mrpandey1/ml | 2414511cfbb4375f6d70cb06235f7bf4e9084431 | 357a7fdd4904b5ed8940d5dc610fb9a467a36790 | refs/heads/master | 2021-03-21T04:09:56.901663 | 2020-09-13T14:52:03 | 2020-09-13T14:52:03 | 247,262,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 18 11:36:45 2020
@author: Baraka
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
dataset=pd.read_csv('Book1.csv')
dataset2=pd.read_csv('test.csv')
X=dataset.iloc[:,1:2].values
y=dataset.iloc[:,-1:].values
z=dataset2.iloc[:,0:1]
from sklearn.l... | [
"pandeynishant12345@gmail.com"
] | pandeynishant12345@gmail.com |
7347fbf197616979bef0fd4e3c6863d7e6916654 | dd6c21308e1cba24658c8ca7a49e2499cd167da6 | /venv/Lib/site-packages/guardian/utils.py | 5ca593620ebeb53f3e24e8634be26a4a05d93173 | [
"MIT"
] | permissive | ansonsry/Freshshop | 3a53db4d6d0bf1d6705498869a13a3aa7db6ab8c | 79ab8beb1aa993f6365182c8d3bb478ee4e028f8 | refs/heads/master | 2021-06-20T18:54:08.009409 | 2019-07-26T02:56:55 | 2019-07-26T03:02:27 | 198,931,513 | 0 | 0 | MIT | 2021-03-19T22:33:14 | 2019-07-26T02:23:49 | Python | UTF-8 | Python | false | false | 7,153 | py | """
django-guardian helper functions.
Functions defined within this module should be considered as django-guardian's
internal functionality. They are **not** guaranteed to be stable - which means
they actual input parameters/output type may change in future releases.
"""
from __future__ import unicode_literals
from dj... | [
"ansonsry@sina.com"
] | ansonsry@sina.com |
3e833b152d38ab88722ac8b4a74b346482f9c13c | 52be424b04c054a0497f907980585174446c8ba6 | /src/transforms.py | 4ab7752002f3ef65d18cb80d5157f0daf32ee55a | [] | no_license | fjavadi/Hierarchical-part-based-disentanglement-of-pose-and-appearance | 4ce89c1d1ba8647a2a02bd27367cc25a49433f59 | 3f7e84e4250663dc7d43ac22ff9f6617d2f7d3cc | refs/heads/master | 2023-02-04T06:45:50.431544 | 2020-12-20T08:05:02 | 2020-12-20T08:05:02 | 322,464,654 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,364 | py | import numpy as np
import PIL.Image
### source code from : https://gist.github.com/WChargin/d8eb0cbafc4d4479d004
class RGBTransform(object):
"""A description of an affine transformation to an RGB image.
This class is immutable.
Methods correspond to matrix left-multiplication/post-application:
for e... | [
"noreply@github.com"
] | noreply@github.com |
3e2788309401446a57f822b73fe85ff0ca6cbb4f | 2d3cb841cb2a3d6c8df44024cb544e4a7a890ee4 | /assignment1/cs231n/classifiers/softmax.py | 54d5241abe1bbabd6cf2881cd1d4d3361d33f5b7 | [] | no_license | cjl0222/CS231n_2020 | c76433fa77ba1d4119ecafa23d66f5a80f11915c | 735545333c3bbcda51f435f65ca5597ae03b4dfc | refs/heads/main | 2023-02-03T16:57:59.160786 | 2020-12-21T12:38:23 | 2020-12-21T12:38:23 | 313,875,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | from builtins import range
import numpy as np
from random import shuffle
from past.builtins import xrange
def softmax_loss_naive(W, X, y, reg):
"""
Softmax loss function, naive implementation (with loops)
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
... | [
"cjl0222@qq.com"
] | cjl0222@qq.com |
79d88bf1733d1c1fca0937556a063ed32f9f7ba1 | 6f42fd7b046e19b5ec41f8b0b529d46d931db003 | /C8/EX1/classroom.py | c0e1a186bf9a8ed378d339c74ce1c5fa27ab664d | [] | no_license | jonasclaes/TM_Python_Sem_1 | 31d91020c00618be7affe51444a1909605b04a36 | 02e6a981c8db37e146d4f98fdff4c3d43b990c4d | refs/heads/master | 2023-02-14T23:23:38.114282 | 2021-01-17T14:44:41 | 2021-01-17T14:44:41 | 297,259,657 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | # Jonas Claes <r0841639@student.thomasmore.be>
with open("../files/classrooms.txt") as file:
line = file.readline().rstrip()
classroom_student = line.rstrip().split(";")
while line:
if line != "\n":
classroom = classroom_student[2]
students_in_room = 0
print(cl... | [
"jonasclaes2001@outlook.com"
] | jonasclaes2001@outlook.com |
bb1120e719d1785c1f98abff2ed433823a6d88bc | 587af12396ace1215c77adfc948f844551a0b7e6 | /chat/migrations/0014_auto_20200804_1953.py | 15fdc53f0c9cf6cbb85dfa6cb97230e5708c4300 | [] | no_license | Jaybee020/Mingle | f1414ae14591e98ebd1ce501b43d0e33f33415a7 | 529d4314fd241e33d0bf7a91f8697360867faca1 | refs/heads/master | 2023-03-07T00:13:34.507840 | 2021-02-22T16:42:17 | 2021-02-22T16:42:17 | 321,622,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # Generated by Django 3.0.6 on 2020-08-04 18:53
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('chat', '0013_auto_20200727_2330'),
]
operations = [
migrations.AlterField(
model_name='conversationmessage',
... | [
"olayinkaganiyu1@gmail.com"
] | olayinkaganiyu1@gmail.com |
aeeb30057e46d20ff40ac4413d362dbb505be121 | 51390b13e999db7577d2389ff8f77ef12e3386fc | /postcodes_audit.py | 0eb557ad497c7ac4ca95130b8d49df415623d54e | [] | no_license | venkat8424/Wrangling-OpenStreetMap-Data | b354192737ac05d55fb7bb58298db30d21ef2494 | 897bebbd7995baa51d154d811bcb2eccc67234ca | refs/heads/master | 2021-01-01T18:00:31.076660 | 2017-08-28T18:03:40 | 2017-08-28T18:03:40 | 98,223,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | """
Author : Sai Venkat Kotha
This script audits the postcodes
"""
#importing necessary packages and modules
import xml.etree.cElementTree as ET
wrong_postcodes = []
def audit_postcode(wrong_postcodes, postalcode):
"""
This function checks if the postcode is in the expected format or not
and adds the bad... | [
"venkat8424@gmail.com"
] | venkat8424@gmail.com |
90d4c660d0cd1e00e4e063eff79f31aaaf635e41 | 95ed5173865ea5930ac1f4280e3bce78411ea956 | /examples/plot_wage_education_gender.py | 47305c351dc39a8a18ed0feba01340058cc5e141 | [
"CC-BY-3.0",
"CC-BY-4.0"
] | permissive | FedericoV/stats_in_python_tutorial | c0e99039f8f76e453bf511b99ad906fdf3111509 | 0e7607e36896790eeb3753ecb3b8ee82db206a97 | refs/heads/master | 2021-01-18T00:23:38.240447 | 2015-08-26T13:20:45 | 2015-08-26T13:20:45 | 41,425,683 | 1 | 0 | null | 2015-08-26T12:58:37 | 2015-08-26T12:58:36 | null | UTF-8 | Python | false | false | 2,679 | py | """
Test for an education/gender interaction in wages
==================================================
Wages depend mostly on education. Here we investigate how this dependence
is related to gender: not only does gender create an offset in wages, it
also seems that wages increase more with education for males than
f... | [
"gael.varoquaux@normalesup.org"
] | gael.varoquaux@normalesup.org |
c4b8dc8085997384c991bd821a50cf250b9e32a6 | f82ca354391c19a753d319b38f8a69369e60f960 | /src/lib/device_detector/parser/client/mobileapp.py | 6ee635612ab5c9fdfe29e806a5fa3a79fa541683 | [
"MIT"
] | permissive | martbhell/wasthereannhlgamelastnight | 8398920ab1b6cf998d8f91ef5598a8e28de57a8d | c40f9f12ed4c066d4f42095e96e9a87a8581d99d | refs/heads/master | 2023-08-10T05:10:46.960500 | 2023-07-18T03:56:22 | 2023-07-18T04:02:33 | 37,021,751 | 5 | 0 | MIT | 2023-08-29T19:16:07 | 2015-06-07T15:38:26 | Python | UTF-8 | Python | false | false | 288 | py | from . import BaseClientParser
class MobileApp(BaseClientParser):
fixture_files = [
'local/client/mobile_apps.yml',
'upstream/client/mobile_apps.yml',
]
def dtype(self):
return self.calculated_dtype or 'mobile app'
__all__ = [
'MobileApp',
]
| [
"martbhell@users.noreply.github.com"
] | martbhell@users.noreply.github.com |
18c42dc1470dbf8c95e84c267720bbc9dbf6235c | 35ae46a82f4be0f1f0a9cc8fa13044f67aa2c833 | /Recoverer/scripts/db/types.py | 399637878ad0cb8c660ec742497c5325fb8e22d3 | [] | no_license | agustingianni/instrumentation | 82af65a4d6378ed62adc8182787fea59691b4a54 | 30904ca05c57715e32bf88d2d6bafc1c8527c4b7 | refs/heads/master | 2021-01-02T08:42:14.866557 | 2018-12-06T16:36:55 | 2018-12-06T16:36:55 | 99,045,945 | 32 | 6 | null | null | null | null | UTF-8 | Python | false | false | 20,144 | py | '''
Created on Jun 5, 2012
@author: gr00vy
'''
from logging import info
from time import time
from sqlalchemy import Column, Integer, String, BigInteger, LargeBinary
from sqlalchemy import ForeignKey, Sequence
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declarative_base
fr... | [
"agustingianni@gmail.com"
] | agustingianni@gmail.com |
77312f95bcd1a7339cd4c1947de0bfdfd073a681 | 14f0cb0df9c9ce2f54bb52f97cc0e85f2565d7a0 | /LDE-video/models/base_model.py | 68988ab7857f8470480fdfa7bbf07ea5979cab30 | [] | no_license | ArmandCom/VariationalKoopman | 9c98529d09e0bd7a909f8ee19fb31e8179e399a2 | 9192c0862db430c21762e2c752435e8e153ae3cf | refs/heads/master | 2021-03-26T22:35:38.982115 | 2020-03-19T01:53:43 | 2020-03-19T01:53:43 | 247,757,549 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,063 | py | import os
from collections import OrderedDict
import torch
import pyro
'''
Basic functions.
'''
def init_weights(m):
class_name = m.__class__.__name__
try:
if class_name.find('Conv') != -1:
m.weight.data.normal_(0.0, 0.02)
if m.bias is not None:
m.bias.data.fill_(0)
# elif class_name.f... | [
"armand.comasrf@gmail.com"
] | armand.comasrf@gmail.com |
f2e6015b515e915c24bf44cb57a88c4e12c0939f | e8ae11e5017507da59e2e92d423b6a1994490de4 | /env/lib/python2.7/site-packages/azure/mgmt/scheduler/models/service_bus_brokered_message_properties.py | 336add898c6253ae0f23c0ab299ae3681b024271 | [] | no_license | teopeurt/ansible-ubuntu-server | 613d00cea28bc6531acf4a39aeeb9cd0baa2a391 | b5b6127d2ee9723c5088443efe2ffb8ae30cfea7 | refs/heads/master | 2021-06-28T12:49:50.935753 | 2017-07-31T17:34:33 | 2017-07-31T17:34:33 | 98,912,808 | 0 | 1 | null | 2020-07-24T00:05:31 | 2017-07-31T17:32:56 | Makefile | UTF-8 | Python | false | false | 3,997 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 co... | [
"me@teopeurt.com"
] | me@teopeurt.com |
e262d2c692e9b6febb6bc7ff2f027ee5b228bd61 | 46e4850f5de5766c93d2bd4af727e8e499acb8e0 | /layers/layer.py | 6d90a85df153571a8fcf599e24839883f403296a | [] | no_license | eipc16/OCR_NeuralNetwork | 32e02c6d1b96502982e4e0c58be59afa40b3b3b0 | f4c412cd70a1b516989fe5254755c810ca4e33a5 | refs/heads/master | 2022-12-14T19:53:43.852957 | 2019-12-10T19:58:03 | 2019-12-10T19:58:03 | 129,393,262 | 0 | 0 | null | 2022-12-08T06:55:04 | 2018-04-13T11:31:37 | Python | UTF-8 | Python | false | false | 1,797 | py | import numpy as np
class Layer(object):
def __init__(self, layer_name='abstract-layer'):
self._name = layer_name
self._input_layer = np.array([])
self._output_layer = np.array([])
def __call__(self, previous_layer_size, optimizer, calc_error=True):
raise NotImplementedError
... | [
"pprzemek.312@gmail.com"
] | pprzemek.312@gmail.com |
9ed0fdfefdf7006316db3f03a97b40008588cfa4 | 2966b05a4b8239a3ab95acf26423e706582e4b42 | /kvirt/kvm/__init__.py | 6daebf1c19ebe570816a6f49688f4d84bfdb1e97 | [] | no_license | goffinet/kcli | 80ea47c3b928ee1c7d85a7c4519f82c6c8144cee | 69b225137bf543fabcebd7478802fb9d725a82ab | refs/heads/master | 2021-01-19T19:18:42.803401 | 2017-03-02T01:29:39 | 2017-03-02T01:29:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61,596 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
interact with a local/remote libvirt daemon
"""
from kvirt import defaults
from iptools import IpRange
# from jinja2 import Environment
from kvirt import common
from netaddr import IPAddress, IPNetwork
from libvirt import open as libvirtopen
import os
import string
imp... | [
"karimboumedhel@gmail.com"
] | karimboumedhel@gmail.com |
736161870e667539d1e9e7bad15b9338ae570d46 | 5b39106e3d8a612e03c46af2d5bf77956bdb78a1 | /scprojects/migrations/0017_auto_20200203_2214.py | 9933a81dce3098d3edc1bca8e93198f005327481 | [
"MIT"
] | permissive | cassidyschneider/projects-platform-backend | 4f43d07878ec0bf4bf0854fce12920c52bd5dccc | b5ebce71e2377970283da0f8f3ddd7dae201c80e | refs/heads/master | 2022-09-18T04:50:46.624923 | 2020-04-30T05:10:40 | 2020-04-30T05:10:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | # Generated by Django 2.2.6 on 2020-02-03 22:14
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scprojects', '0016_auto_20200123_1721'),
]
operations = [
migrations.RemoveField(
model_na... | [
"shakhanova.n@gmail.com"
] | shakhanova.n@gmail.com |
ee7894de224e86ee5b507b76557a47b31f489cfc | b08e453584318d2a450bad1d045095ad7d95894d | /apps/incidents/admin.py | c14705d25e785e45f4a11a178522ad214c7c7a01 | [
"MIT"
] | permissive | danmoz/openduty | 1bd5657ed4427960615acaf51eded8258ceb3b3b | ff97baba94f4af71191e2cc35a4ee5d236dac95a | refs/heads/master | 2020-06-15T21:52:06.504032 | 2019-07-05T11:58:01 | 2019-07-05T11:58:01 | 195,401,433 | 0 | 0 | MIT | 2019-07-05T11:54:06 | 2019-07-05T11:54:05 | null | UTF-8 | Python | false | false | 658 | py | from django.contrib import admin
from apps.incidents.models import Incident, IncidentSilenced
@admin.register(Incident)
class IncidentAdmin(admin.ModelAdmin):
list_display = (
'id',
'service_key',
'incident_key',
'event_type',
'description',
'details',
'occ... | [
"catalin.coroeanu@icloud.com"
] | catalin.coroeanu@icloud.com |
526fc63acad3c5f8fcb33c7c80da36792c3d394c | bb59673f03379997da2306443b32a20c29ee5a70 | /bookmark/models.py | b934c6e11322d0457ae580a23aea2dc1257e4d7c | [] | no_license | JeongGyuJun/bookmark | b77cd6bf43af2b919c9694478e2f4e78d876cdac | f6a667d678effc1f53d9b287023d1849f4c6062d | refs/heads/master | 2020-07-03T03:15:56.581307 | 2019-08-11T13:28:11 | 2019-08-11T13:28:11 | 201,767,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | 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
... | [
"wjdrbwns1@gmail.com"
] | wjdrbwns1@gmail.com |
5446911228a23d0ce8f7dbd421a0e1852611c3eb | d475836e29947e62ba5b11f816ff8794c1a9a15b | /mala/networks/unet.py | 69065fb3450211f489ccfa133c3c6da69b2a9467 | [] | no_license | afcarl/mala | ea2777480dc512173649969b562c021e8f603e61 | 9ae10fdae314c205a3e3a4a9468eb55fda3e04b8 | refs/heads/master | 2020-03-18T17:57:52.198724 | 2018-04-11T16:47:01 | 2018-04-11T16:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,865 | py | import tensorflow as tf
def conv_pass(
fmaps_in,
kernel_size,
num_fmaps,
num_repetitions,
activation='relu',
name='conv_pass'):
'''Create a convolution pass::
f_in --> f_1 --> ... --> f_n
where each ``-->`` is a convolution followed by a (non-linear) ac... | [
"jfunke@iri.upc.edu"
] | jfunke@iri.upc.edu |
e319bb0acc21c48610508c3c21fe13b8677a4560 | 947635316a9a40d53db5a8db9d5aaa94f33c169b | /apps/books_authors_app/urls.py | 0f4865d3a8924a96317917e6c62cdeda775dac0d | [] | no_license | jadenpham/books_and_authors | b9b96042e44f744123731d6e39e33a134b579837 | 7b6bee89b00d9454f89b06451a2fdf6c62d6042a | refs/heads/master | 2020-06-06T18:38:43.364351 | 2019-06-20T01:02:41 | 2019-06-20T01:02:41 | 192,824,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from django.conf.urls import url
from . import views
urlpatterns=[
url(r'^$', views.index),
url(r'^add_book$', views.add_book),
url(r'^book_info/(?P<book_id>\d+)$', views.book_info),
url(r'^book_info/(?P<book_id>\d+)/add_author$', views.add_author),
url(r'^authors$', views.all_authors),
url(r'^... | [
"tjaden.pham@gmail.com"
] | tjaden.pham@gmail.com |
e643e7e82c014086d290c39d39a507f120ea7360 | c9d02cc6ac33723f8dbd7013ae3210c28691d125 | /instances2dict_with_polygons.py | 8a0f2948b2862672119535a3eaf35bfc13c2eae1 | [] | no_license | nhtlongcs/cityscape_to_polylines | 05c040a998d0bfdf9ff1958f540229a8b69e1c48 | 55f91fc33c50fc5563164fb215c7af7c3f11a278 | refs/heads/master | 2022-04-28T09:52:01.628969 | 2020-05-02T07:17:51 | 2020-05-02T07:17:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,557 | py | #!/usr/bin/python
#
# Convert instances from png files to a dictionary
# This files is created according to https://github.com/facebookresearch/Detectron/issues/111
from __future__ import print_function, absolute_import, division
import os, sys
sys.path.append( os.path.normpath( os.path.join( os.path.dirname( __file_... | [
"you@example.com"
] | you@example.com |
40caabf240734bc24a8f05eb3465f5f1233414a2 | f5817674fde9bd74e0f358b9a24beb9ae0c19b20 | /api/migrations/0002_auto_20181017_2159.py | ef6963fd00cfefcb82ccba5bc4a6ae08f3b7bd0e | [] | no_license | anthonychen1109/job_app_tracker_backend | 448131bae2afd4cb3ea266b931ce9075995620f8 | eed35754d3fd878323ccc541bbbbbd49e4dbc093 | refs/heads/master | 2020-03-31T06:44:50.291335 | 2018-10-19T03:32:34 | 2018-10-19T03:32:34 | 151,993,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | # Generated by Django 2.1.2 on 2018-10-17 21:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='company',
name='app_date',
),
mi... | [
"chen.anthony.1109@gmail.com"
] | chen.anthony.1109@gmail.com |
278b14556a62e97d8eed9d9306ce2f2604727363 | b1389562340bd7e1541e2aac572855a1598a325f | /common/plugins/apps/http_utils/http_utils_common/backend.py | 820f5d6d73a12b6a3b81cd1af1193aafb36604be | [] | no_license | sanzenwin/goodmo | bbbd0d3c14b9bdc84e61321978a893269a3c765c | 6db948dbae632b4fe5bb80dd29bb0c453bad3972 | refs/heads/master | 2020-03-13T18:25:44.046633 | 2018-08-20T11:37:13 | 2018-08-20T11:37:13 | 131,235,423 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | import settings
from common.dispatcher import receiver
from http_utils.signals import http_setup
from http_utils_common.server import Response
from . import status
handler_map = {}
def handler(name):
def wrapper(func):
handler_map[name] = func
return func
return wrapper
@receiver(http_setu... | [
"sanzenwin@gmail.com"
] | sanzenwin@gmail.com |
f0839bca7c0e341332170563a732cbc1ed2fb49c | 56c9670b7e9a43572d203498e3fb7e917e097bd1 | /vkapp/migrations/0001_initial.py | 6220bc503cbda07ecb2eb2076c94668c1205de3b | [] | no_license | dev-method/vekomet-redesign | 58840d6b43061bd64bf715ff8ad79bdf2bc59d00 | 5f946d5cbb9f755ebd08fdaaa8bfe851eebe9a0a | refs/heads/master | 2023-03-09T17:33:14.742741 | 2020-07-04T12:59:44 | 2020-07-04T12:59:44 | 264,360,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,402 | py | # Generated by Django 3.0.2 on 2020-02-12 17:05
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='VKMessage',
fields=[
('id', models.AutoFiel... | [
"dev.method.mail@gmail.com"
] | dev.method.mail@gmail.com |
eea64d13a9b9e501d67e09b3316d74dc54007207 | edd1adb88112045d16d3e6417117d45ceed4a634 | /classical/woodworking-sat11-strips/api.py | 54d9042dbc3b4d84a2cf98e4827effa7980c343b | [] | no_license | AI-Planning/classical-domains | 26de25bf23622f95c877960c1d52f444922d8737 | 4bd0b42d89ea02bd38af6f93cf20a0ab0cbda9d9 | refs/heads/main | 2023-04-27T07:55:55.832869 | 2023-03-29T01:46:11 | 2023-03-29T01:46:11 | 253,298,999 | 24 | 12 | null | 2023-04-18T01:45:39 | 2020-04-05T18:02:53 | PDDL | UTF-8 | Python | false | false | 2,598 | py | domains = [
{'description': 'Simulates the works in a woodworking workshop where there is some quantity of wood that has to be polished, coloured, etc. using different tools with different costs. Parameters of each problem are the parts to be done and the quantity (in % of necessary) of available wood (boards). The hig... | [
"christian.muise@gmail.com"
] | christian.muise@gmail.com |
fd30e10269a1c219ecb619e535115a84fadcedbf | 03f40b220330c3cd8e8a7a8709d1ed54dbfc9a5e | /example_project/youtube/youtube.py | 07b7ae940d89ae85a3db0d13b763ba1e91385140 | [] | no_license | iskeltan/youtube_search | c600182082f5b766416f604c896c189fe1977093 | af5e8d906f5a678d63e3205dc4a829fa55546484 | refs/heads/master | 2020-12-04T23:46:15.950901 | 2016-08-23T21:34:24 | 2016-08-23T21:34:24 | 66,345,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | ../../youtube.py | [
"iskeltan8@gmail.com"
] | iskeltan8@gmail.com |
110a13b4805a07f87af4cc7b33df61d4dc855b05 | 6b8eb30cac4e56ba14c7c381c904a0df824367cd | /manage.py | b105c1769dc434f3853b1c0b7e4fd7ec8081df90 | [] | no_license | saviolinski/jmhero | 2a810504a13f55d1877e45b830cb02a44a1261f8 | 9c988f38bb1ae5b56ebde72fc742ec8153a52375 | refs/heads/master | 2020-03-16T01:22:28.507251 | 2018-05-05T17:47:06 | 2018-05-05T17:47:06 | 132,438,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "jm.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"saviolinski@gmail.com"
] | saviolinski@gmail.com |
3c5eb2c6bf9c023422831c5ca31f64b01a36fb0a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/86/usersdata/164/57228/submittedfiles/pico.py | 97909e0698fdec2d38710817dcbb466f593e1da4 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | # -*- coding: utf-8 -*-
def pico(b):
cres=0
decres=0
for i in range (0, len(b), 1):
c=len(b)/2
if (c>=0):
while (b[i]<b[i]+1):
cres=cres+1
if (c<=len(b)):
while (b[i]>b[i]+1):
decres=decres+1
cont=decres+cre... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9721410cd89a882dc8d67aeb9e2701ac9ffb7ddf | 3ffdd05a61e7f6e4721cfcc425705583dd863f93 | /GMM_clustering/libraries/tests/test_gmm_clustering.py | 71140c2e444d5a6e16cf8ed1ff0b434aeb400ce1 | [] | no_license | Runjing-Liu120/sensitivity_to_stick_breaking_in_BNP | 3f3a97e7ed473690efc563dab37629a616784f30 | 98ad2c6abfc0c3a42c9f4ee5e6ceed76f9c55626 | refs/heads/master | 2020-04-09T21:08:24.146209 | 2019-05-18T12:02:59 | 2019-05-18T12:02:59 | 160,593,024 | 2 | 1 | null | 2019-05-18T11:58:50 | 2018-12-05T23:48:36 | Jupyter Notebook | UTF-8 | Python | false | false | 3,956 | py | #!/usr/bin/env python3
import sys
sys.path.insert(0, '../libraries')
import autograd
import autograd.numpy as np
import autograd.scipy as sp
import scipy as osp
import gmm_clustering_lib as gmm_lib
import simulation_lib
from numpy.polynomial.hermite import hermgauss
import unittest
import numpy.testing as testin... | [
"runjing_liu@berkeley.edu"
] | runjing_liu@berkeley.edu |
67b5e173635e87fa0097cf2489830b531d7ecc12 | 464a17b6dfd3eda7de0eb1836b7c24416eb563f4 | /train_multi_gpu.py | 48ee3abd5a2ce3cf0df80e2411e229f2ca0eb27f | [] | no_license | GuardAsuna/xception-tensorflow-multigpu | 71515c04234312e7fc4e3a7e228a33b357b4bcc0 | e8ea575f4290ea1dfddc024c0ffaf9e085a28b33 | refs/heads/master | 2020-04-24T07:00:20.237023 | 2019-02-21T02:18:27 | 2019-02-21T02:18:27 | 171,784,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,488 | py | from builtins import range
import tensorflow as tf
from tensorflow.contrib.framework.python.ops.variables import get_or_create_global_step
from tensorflow.python.platform import tf_logging as logging
from net.xception import xception
import os
import time
slim = tf.contrib.slim
from data.data_pipeline import ... | [
"18512503190@163.com"
] | 18512503190@163.com |
8d0c0ec6c26dd8ca75070e254b80b621de439e00 | ce81c83e1de3512369518bcd8524ab02aefd1ca9 | /binding.gyp | 2813f8e515589375f4b474364b1dcb02b025d228 | [
"MIT",
"ISC"
] | permissive | ambethia/Krypto-trading-bot | e43a2c852e80630979e3ff4b9392ed43bdce3605 | 6b0513d2ea91b4bc4b93c126d30fbf8fcbbb88e1 | refs/heads/master | 2023-09-02T17:59:56.982724 | 2017-06-20T11:58:36 | 2017-06-20T11:58:36 | 94,921,566 | 1 | 0 | null | 2017-06-20T18:13:25 | 2017-06-20T18:13:25 | null | UTF-8 | Python | false | false | 199 | gyp | {
'targets': [
{
'target_name': 'K',
'sources': [
'src/lib/K.cc',
'src/lib/stdev.cc'
],
'include_dirs' : [ '<!(node -e "require(\'nan\')")' ]
}
]
} | [
"ctubio@users.noreply.github.com"
] | ctubio@users.noreply.github.com |
2691d4e2fcd1060926b734171d61fc077aac74a1 | 2d73ac2c921bb84756478e042ba33ba09c6f8be0 | /sxm_player/workers/status.py | 874b3668f44ed5921ce5b6e4d90da1fffd866df8 | [
"MIT"
] | permissive | fdigeron/sxm-player | 7aa6aba111b1c6bedf6ed8e6c89f7d66feb26c8d | 2ca91fe216d1ad823b1ad7f9cfe43db4a016bd96 | refs/heads/master | 2023-06-23T18:34:47.892363 | 2021-07-30T13:27:04 | 2021-07-30T13:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | import httpx
from ..queue import EventMessage, EventTypes
from .base import SXMLoopedWorker
__all__ = ["StatusWorker"]
CHECK_INTERVAL = 30
class StatusWorker(SXMLoopedWorker):
NAME = "status_check"
_ip: str
_port: int
_delay: float = 30.0
_failures: int = 0
def __init__(self, port: int, i... | [
"cbailey@mort.is"
] | cbailey@mort.is |
fb1065881bc383b4ac0368389d1d1105f92882e0 | c91b110b9b86278e472a3aa301442f85e4fd8087 | /u2net_torch_src/batchgenerators/tests/test_sanity.py | a65f1df148a0c3ddeda31700e233413a0f46a942 | [] | no_license | Shannongxn/u2net_torch | f85d60cc955f247bb6a296b54881f00997c23ac8 | 16547754c81e5dec88e45fb95975cb5c306a300d | refs/heads/master | 2020-07-23T20:51:24.592390 | 2019-07-04T12:37:05 | 2019-07-04T12:37:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # Copyright 2017 Division of Medical Image Computing, German Cancer Research Center (DKFZ)
#
# 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
#... | [
"huangcaojiujiu@gmail.com"
] | huangcaojiujiu@gmail.com |
27be0cf675a07a8dc96401d6136c51c8f2d6ed35 | 20274a4277948a936a62de6492362ffe061828f7 | /mundo2/ex016_D73.py | f4597d90164552571294a42054760240960da452 | [] | no_license | jorgeromeromg2/Python | b5de8fa6ceda597ec65e43b226ddf85d32b5bdaf | 571eb82d36f5ae8a74aabef42af5cd37d7b0d32f | refs/heads/main | 2023-05-15T02:50:47.908966 | 2021-06-09T03:49:57 | 2021-06-09T03:49:57 | 374,211,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | times = ('Flamengo', 'Internacional', ' Atlético - MG', 'São Paulo', 'Fluminense', 'Grêmio', 'Palmeiras', 'Santos',
'Atlético - PR', 'Bragantino', 'Ceará', 'Corintians', 'Atlético - GO', 'Bahia', 'Sport', 'Fortaleza', 'Vasco',
'Goias', 'Coritiba', 'Botafogo')
br = 'CLASSIFICAÇÃO BRASILEIRO 2020/2021'
... | [
"78120390+jorgeromeromg2@users.noreply.github.com"
] | 78120390+jorgeromeromg2@users.noreply.github.com |
194ece8eb5500c9cef13cb81e02b3295e286d7ff | ad179250adf0dc45188646b5f7e4dc29e66628d2 | /Concept.py | 2f85846728432b5c0037ea7a4b06fc432094f44d | [] | no_license | mdnls/tramp-odt | 1791dc4e25eccdfde9a2521a325d06a2717c0303 | cdfbb24a70d695ca9397149794465f4c1fcadf30 | refs/heads/main | 2023-09-05T10:05:09.301114 | 2021-11-23T14:55:44 | 2021-11-23T14:55:44 | 404,383,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | from tramp.algos import ExpectationPropagation
from tramp.variables import SILeafVariable as O, SISOVariable as V
from tramp.channels import ProductChannel, GaussianChannel, ConvChannel
from tramp.priors import GaussianPrior, VonMisesPrior
from tramp.likelihoods import GaussianLikelihood
import numpy as np
class Diff... | [
"daniels.g@northeastern.edu"
] | daniels.g@northeastern.edu |
437414b9dc22912199d8b85f37893d2ccff3a99e | d13d2c48649f7d4a4bd6b6f62bb6b9ea177331ff | /gui_spider.py | f3ecd615dba00ba3962337d941b8227ada760d25 | [] | no_license | seeker-bin/GUI-12306 | 5c5392fbdc3be00ec025b6ce7bb7d34e057f55ca | b480e61d71e3af613316cdd256923bada9c8c25e | refs/heads/master | 2021-06-19T06:03:33.281041 | 2017-06-01T09:53:31 | 2017-06-01T09:53:31 | 93,034,495 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,206 | py | # -*- coding:utf8 -*-
from Tkinter import *
from ScrolledText import ScrolledText
import urllib2
import ssl
import json
from city import *
ssl._create_default_https_context = ssl._create_unverified_context
headers = {
'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/5... | [
"cb_0328@icloud.com"
] | cb_0328@icloud.com |
788216b1e329b4e7ff13c78d312fe6a32c1f508a | 3c074e509c9d6b7c40deefc16f8e9235483e4d89 | /ras_detection/scripts/classify.py | 48266f7cc947c1bcd750f79bbc00353a44095f1e | [] | no_license | reichlin/RAS | 8766b8d4772f00265e4337904da6824cb4d47412 | b90e4898a9e9859fd4e25d964fd0c8cbdffe1d31 | refs/heads/master | 2022-02-10T09:11:56.353053 | 2019-07-19T15:07:24 | 2019-07-19T15:07:24 | 197,792,109 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,603 | py | #!/usr/bin/env python
import rospy
from geometry_msgs.msg import Point
from sensor_msgs.msg import Image
import cv2
from cv_bridge import CvBridge, CvBridgeError
import numpy as np
from keras.models import model_from_json
from keras.models import Model
import tensorflow as tf
from keras import backend as K
from ras_msg... | [
"noreply@github.com"
] | noreply@github.com |
cfdc5c14013630e610a586b320bf708cda421dd0 | 871107e8ac9e7631057c9c9b02d3fd733e00fe2c | /Client/screens/introscreen.py | 602202fdfd03760e173b0f4593127a50fce4d43b | [] | no_license | jamesfowkes/Snackspace | 40993cfc26b23463939ebaa8fa37f666086be3c9 | d93633aaf25039b9a548b073e69d8f23c94b71e3 | refs/heads/master | 2018-12-30T10:56:48.786485 | 2013-10-24T20:49:04 | 2013-10-24T20:49:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,157 | py | """
introscreen.py
The first screen to be displayed when snackspace starts.
"""
from .displayconstants import Colours, Screens
from .screen import Screen
from .introscreen_gui import IntroScreenGUI
class IntroScreen(Screen, IntroScreenGUI):
""" Implementation of introduction screen """
def __init__(self, wi... | [
"jamesfowkes@gmail.com"
] | jamesfowkes@gmail.com |
4d05f74cbb9132e70edb69cf4a8dc5270f72bcc2 | 97c49fb1cf2dbc584223e8bdec506eb3550f14d7 | /PyFileMaker/FMProError.py | 89c73778cc587eac323b269001057b4cb175538c | [] | no_license | rickaramirez/PyFileMaker | c2b28480427517532be7e18b32edea6da99df8b3 | ff32bd28f14f8c5109b9684a97e48e0f569f98f6 | refs/heads/master | 2016-09-07T18:47:57.754329 | 2010-02-23T08:28:29 | 2010-02-23T08:28:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,486 | py | # PyFileMaker 2.0 - Integrating FileMaker and Python
# (c) 2002-2003 Pieter Claerhout, pieter@yellowduck.be
#
# http://www.yellowduck.be/filemaker/
# Import the main modules
from exceptions import StandardError
# The error number to messages mapping
FMProErrorNum = {}
FMProErrorNum[-1] = 'Unknown error'
... | [
"pieter@yellowduck.be"
] | pieter@yellowduck.be |
26c2fae3cf0ee743c9a4250523f34f667e6edaa9 | 7ac33bb22b5d31ed28e5a88e143383837d055044 | /script.py | 04c705823e6736227d91e7b687dfb32c12f0a32a | [] | no_license | jamesnguyenvo/csgostats | 2f4cb12f530d2a8001e831683f7d8c5c260575f0 | d0c3230762c256d7c4bb56e086f88fa664a38f58 | refs/heads/master | 2020-05-16T00:15:05.755882 | 2019-04-21T19:55:30 | 2019-04-21T19:55:30 | 182,576,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | from win10toast import ToastNotifier
import requests
url = 'https://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v0002/?appid=730&key=12A1D1DE83F9932934EDD6DF2BA00463&steamid='
steamid = '' # steam ID
final_url = url + steamid
data = requests.get(final_url).json()
# valve server stats
stats = {
'tota... | [
"jamesvo@Jamess-MacBook-Air.local"
] | jamesvo@Jamess-MacBook-Air.local |
958688ea33bc8fb8d22155dea000f34f75850e62 | 4add013a6a0420069474fc88d7fab5e9ac2e31c3 | /gym_deep_humor/__init__.py | 3e7cfe30f9bf70e6865648f5e387c81632f00716 | [] | no_license | kcaras/gym-deep_humor | 1a0823c33c72d485fa22750b049742a541e8210a | b736f1425272746d12f9a023f9d7c004471c625f | refs/heads/master | 2020-04-27T08:48:22.667048 | 2019-03-22T19:16:22 | 2019-03-22T19:16:22 | 174,186,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from gym.envs.registration import register
register(
id='deep_humor-v0',
entry_point='gym_deep_humor.envs:FooEnv',
)
register(
id='deep_humor-extrahard-v0',
entry_point='gym_deep_humor.envs:FooExtraHardEnv',
) | [
"kcaras6@gatech.edu"
] | kcaras6@gatech.edu |
7a9a55edd4ae691cc34fd5fc145b8192fd95e8d6 | cd3a24dc40d413b4a9138faef281f8903d275cfd | /UI/GridLayout.py | f4dba2b80d1ef8247e296dac29d1e6665985d521 | [] | no_license | wandieinnocents/python_gui_tkinter | ccb857c9500d57bd402a392d52e7f133a35f6f2c | b500c093397e87a166f6c5806c78cf2f1280cc85 | refs/heads/master | 2020-06-06T17:07:08.468566 | 2019-06-24T10:53:50 | 2019-06-24T10:53:50 | 192,800,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py |
#python Grid Layouts
from tkinter import *
from tkinter import ttk
def main():
#root of layout
root = Tk()
#add style
style = ttk.Style()
style.theme_use('classic')
#adding labels to grid format
ttk.Label(root,text="green",background="Green").grid(row=0,column=0,padx=5,pady=5,sticky='... | [
"wandieinnocent2@gmail.com"
] | wandieinnocent2@gmail.com |
3dd8660eed53064c4439f1f5d6692774495f1ed8 | 4e139c024f09eb547304c2cb2d1399a334f66c92 | /wikigen/settings.py | 615f81170857207c997a2aa14e95fc6fc85ecc86 | [] | no_license | epochx/PEER | 04dd77fd638858fe285c9fcee3ad6a4ccd283e9a | de52c45d121b63dee28f72b68de2625c8ec2bb66 | refs/heads/master | 2023-02-27T15:29:09.086756 | 2021-02-01T07:54:29 | 2021-02-01T07:54:29 | 264,897,876 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | #!/usr/bin/env python
# -*-coding: utf8 -*-
import os
CODE_ROOT = os.path.dirname(os.path.realpath(__file__))
HOME = os.environ["HOME"]
DATA_PATH = os.path.join(HOME, "data", "PEER")
SPLITS_PATH = os.path.join(DATA_PATH, "splits")
EDITS_PATH = os.path.join(DATA_PATH, "edits")
RESULTS_PATH = os.path.join(HOME, "res... | [
"edison_marrese@hotmail.com"
] | edison_marrese@hotmail.com |
d6b5386e2ea175f5f51171bffa0c9efee0e4d949 | c9094a4ed256260bc026514a00f93f0b09a5d60c | /homeassistant/helpers/debounce.py | 23727c2a00fe774c1bdc55970457e11e4ddccf7a | [
"Apache-2.0"
] | permissive | turbokongen/home-assistant | 824bc4704906ec0057f3ebd6d92788e096431f56 | 4ab0151fb1cbefb31def23ba850e197da0a5027f | refs/heads/dev | 2023-03-12T05:49:44.508713 | 2021-02-17T14:06:16 | 2021-02-17T14:06:16 | 50,231,140 | 4 | 1 | Apache-2.0 | 2023-02-22T06:14:30 | 2016-01-23T08:55:09 | Python | UTF-8 | Python | false | false | 3,861 | py | """Debounce helper."""
import asyncio
from logging import Logger
from typing import Any, Awaitable, Callable, Optional
from homeassistant.core import HassJob, HomeAssistant, callback
class Debouncer:
"""Class to rate limit calls to a specific command."""
def __init__(
self,
hass: HomeAssista... | [
"noreply@github.com"
] | noreply@github.com |
4d9da1b97a7ec4e40354010c4cab7ec95cfa29a6 | 9ebbc93e3c0f349f8fec876ad11a984bfbb466b1 | /15_MRC_Q&A/evaluation.py | ae1d5985762329ae628c1ef0759b3e404330e30e | [] | no_license | aifactory-space/AI-Challenge2020 | caa11c474cdc310453a31a392e02ea3e50e75f13 | f220f5bc46ca84a772bd46d508b035a367cf04e3 | refs/heads/master | 2022-10-31T05:16:27.881528 | 2020-06-20T10:33:08 | 2020-06-20T10:33:08 | 273,737,179 | 0 | 0 | null | 2020-06-20T15:46:07 | 2020-06-20T15:46:07 | null | UTF-8 | Python | false | false | 2,043 | py | import argparse
import json
import numpy as np
def edit_distance(r, h):
d = np.zeros((len(r)+1)*(len(h)+1), dtype=np.uint8).reshape((len(r)+1, len(h)+1))
for i in range(len(r)+1):
d[i][0] = i
for j in range(len(h)+1):
d[0][j] = j
for i in range(1, len(r)+1):
for j in range(1, l... | [
"ukus04@gmail.com"
] | ukus04@gmail.com |
35b1f1dbd01f2f70566c868e06b3ad8a1bac15c0 | 9f04331e0aeaae6e124a21704179cd059bb1f042 | /datasets/load_dataset.py | 0ddde30131e401a02537c5d8911a6b7ba32dadfe | [] | no_license | tocab/SemEval2017Task5 | 52107e5ad5366bdf7ae4c65987dec237f2563341 | 3b07915e803756b98552868e0f39549333a11bf7 | refs/heads/master | 2021-01-21T17:31:55.265340 | 2017-05-21T14:41:30 | 2017-05-21T14:41:30 | 91,962,367 | 4 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,888 | py | import pandas as pd
import sys
import json
def load_track1_full_data(path):
# Load track 1 data
# Create new pandas dataframes
try:
with open(path) as file:
data = json.load(file)
except:
print("File not found")
sys.exit(1)
# Load to pandas dataframe and norma... | [
"tobias.cabanski"
] | tobias.cabanski |
80b67f02969c9e25bb199fa693882cd8c23954e3 | 06f70908fdfe69a7fb21a54fd29a80c15b3b677e | /instagram/settings.py | 26c7aba24447626af86e57e3356796bfadd6bf21 | [
"MIT"
] | permissive | Libb521/insta-clone | 29d273806a778b670bdd55f03e8ad411fe281008 | 4eb7c0f58705b61687eb6c22dd8794b93b592b05 | refs/heads/master | 2021-11-27T06:07:58.540341 | 2021-04-09T05:15:50 | 2021-04-09T05:15:50 | 245,084,322 | 0 | 0 | MIT | 2021-09-22T18:41:12 | 2020-03-05T06:16:29 | Python | UTF-8 | Python | false | false | 4,095 | py | """
Django settings for instagram project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"eotieno39@yahoo.com"
] | eotieno39@yahoo.com |
e45e706f80a74d2a8924775331da036844f19fd9 | ef821468b081ef2a0b81bf08596a2c81e1c1ef1a | /Python OOP/Iterators_and_Generators-LAB/Squares.py | 219b82c3944acc802bf2321227dea9b7f7341b33 | [] | no_license | Ivaylo-Atanasov93/The-Learning-Process | 71db22cd79f6d961b9852f140f4285ef7820dd80 | 354844e2c686335345f6a54b3af86b78541ed3f3 | refs/heads/master | 2023-03-30T20:59:34.304207 | 2021-03-29T15:23:05 | 2021-03-29T15:23:05 | 294,181,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | def squares(n):
for i in range(1, n + 1):
yield i ** 2
print(list(squares(5))) | [
"ivailo.atanasov93@gmail.com"
] | ivailo.atanasov93@gmail.com |
73bb9fd147653f6d9d103a8499a042d25ba78891 | 00cdd6be58d4670f233714511062ba324f31c18d | /rango/models.py | 49667d722e38d9416816d0ea3317d826a43d1b2f | [] | no_license | alaitama/Rango_Django | 5f1853830ca7b4cd379edef18f3e4d6ff26e20f5 | cb0e9f9f35fd6643f2e753d44026be84a7bb2789 | refs/heads/master | 2021-05-27T10:10:35.547772 | 2014-04-27T11:11:20 | 2014-04-27T11:11:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | from django.db import models
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=128, unique=True)
likes = models.IntegerField(default=0)
views = models.IntegerField(default=0)
def __unicode__(self):
return self.name
class Page(models.Model):
categ... | [
"ramborghacklab@gmail.com"
] | ramborghacklab@gmail.com |
45af9fc9f57374b307fe0fac5c45f0812642e6f5 | 1788e5102d18779b60facf920cd3c1b7be69934e | /prediction_app/views.py | 198580c89a07fac850bdd79054db2986d5a9af36 | [] | no_license | jaisharma639/zomato-prediction | 71597a6da2307a4dbc5e5b39040c7cdc9c7304a5 | 6e0c80168caf270ac37193babb6cb4b310da1095 | refs/heads/master | 2021-07-11T06:09:52.177512 | 2020-09-08T12:43:14 | 2020-09-08T12:43:14 | 197,124,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,717 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponse
from .models import ActiveMatches, Question, Choice, Participants, Activity
from django.contrib.auth.forms import UserCreationForm
from django.contrib.au... | [
"zomato@Zomatos-MacBook-Pro.local"
] | zomato@Zomatos-MacBook-Pro.local |
81608d1980eaa0bcd10242f77e99c0a5aad22b73 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-apm/huaweicloudsdkapm/v1/model/delete_app_request.py | 7b641893dbfb446555ef0b94333f7954ceaf7ae2 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,007 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DeleteAppRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute n... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
fad5fa14e58566b599d48530019454a3c9605935 | 7449145e66e6f74e2c33f0cd88ba031ce6e9f307 | /tools/data/contract_extractor.py | b079f7373e3f567d860d7c8a60a739cbd43a4133 | [] | no_license | christoftorres/Osiris | 59d0ee698bd6c577e61682c5e58c4796d0f599ef | d1ecc37c8721add4cf8755759e44d4f2a6e66d83 | refs/heads/master | 2023-03-16T09:59:59.164215 | 2023-03-07T13:59:23 | 2023-03-07T13:59:23 | 147,698,282 | 54 | 23 | null | 2023-03-07T13:59:25 | 2018-09-06T15:56:48 | null | UTF-8 | Python | false | false | 4,668 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import queue
import threading
import pymongo
import os.path
import hashlib
from pymongo import MongoClient
from html.parser import HTMLParser
from importlib import reload
NR_OF_THREADS = 10
BYTECODE = True
MONGO_HOST = '127.0.0.1'
MONGO_PORT = 27017
DATAB... | [
"christof.torres@uni.lu"
] | christof.torres@uni.lu |
6b6e0ba56f8e908e3f80262323969292da502408 | 9107101b4d6556218bab5a0cde9e57a7dc60cb05 | /WebPostShow/models.py | 91ada1996e952c46b2ffcc512b5fa35a6b7f62ae | [] | no_license | wzq1254/HMIDisplay | 8fba7cd158d766b7242fbcdf757cf4422daed11f | 83108764e5285cd2f56796044bfb28fb989a177e | refs/heads/master | 2021-01-21T23:20:29.047322 | 2017-06-23T14:58:16 | 2017-06-23T14:58:16 | 95,228,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class station_info(models.Model):
#"""docstring for station_info"""
station_name = models.CharField(max_length=30)
station_state= models.CharField(max_length=30)
def __str__(self):
return self... | [
"1484442935@qq.com"
] | 1484442935@qq.com |
cbd694d67c5985c58ecb43d81a9b857bc29e0727 | 1afa1b1929d1cd463cd9970174dd58ce2ca6eb1e | /configs/mobilenet_v3/lraspp_m-v3s-d8_scratch_512x1024_320k_cityscapes.py | a5507b4beaae675a1e5075a8fbd154ca5b5265c5 | [
"Apache-2.0"
] | permissive | CAU-HE/CMCDNet | 2328594bf4b883384c691099c72e119b65909121 | 31e660f81f3b625916a4c4d60cd606dcc8717f81 | refs/heads/main | 2023-08-08T17:21:57.199728 | 2023-07-28T07:34:40 | 2023-07-28T07:34:40 | 589,927,845 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | _base_ = './lraspp_m-v3-d8_scratch_512x1024_320k_cityscapes.py'
norm_cfg = dict(type='SyncBN', eps=0.001, requires_grad=True)
model = dict(
type='EncoderDecoder',
backbone=dict(
type='MobileNetV3',
arch='small',
out_indices=(0, 1, 12),
norm_cfg=norm_cfg),
decode_head... | [
"flyhxn@qq.com"
] | flyhxn@qq.com |
1ec3972f161407b72c9c5724ae569dc5f5c16214 | 919b2cf838d61e4f91050f82d95f20b459f80805 | /booksShare/migrations/0003_book_profile_image.py | 40569947b0b168c7a89a1d843ee18fff1df7ce5e | [] | no_license | NitroLine/django_local_library | 04240ce42b66ae961411e1dc5c5c16158dc7012b | a330ffaf7d2b07473e9e6c3c2a40d90f1a20866d | refs/heads/master | 2022-02-19T12:34:46.666540 | 2021-03-27T13:14:07 | 2021-03-27T13:14:07 | 199,437,107 | 0 | 0 | null | 2022-02-10T12:52:23 | 2019-07-29T11:08:31 | HTML | UTF-8 | Python | false | false | 463 | py | # Generated by Django 2.2.3 on 2019-07-26 08:31
import booksShare.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('booksShare', '0002_book_author'),
]
operations = [
migrations.AddField(
model_name='book',
... | [
"sergey.and.natasha@yandex.ru"
] | sergey.and.natasha@yandex.ru |
ac04a4c0cd1e0002fe003e6408b503253f27d889 | 66f57a6dc4618620555d9174a7019cd69db41e54 | /Extra Work/03 Welcome to Python/Control flow (loops, expressions)/Fibonacci/fibonacci.py | a3c863fe800aad5be06d12907b1597b594ca865a | [] | no_license | kimoba/Code-in-Place-2021 | c5439c24f5b00effb649308186b419c0be38903c | 333eb8ee51993036ba801b853a33d20d48c497e6 | refs/heads/main | 2023-04-26T07:41:24.821724 | 2021-05-31T15:25:34 | 2021-05-31T15:25:34 | 362,616,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # define max term
MAX_TERM = 10000
def main():
curr_term = 0 # current term
next_term = 1 # adds one, next term
while curr_term <= MAX_TERM:
print(curr_term) # 0
term_after_next = curr_term + next_term # new variable = 0 + 1
curr_term = next_term # change 0 to 1
next_te... | [
"kimobachi@gmail.com"
] | kimobachi@gmail.com |
23f4895cd0af5bdd6bc4f0149235667d48a657a2 | 028126f353381d24de6193e1961b8dc3b6dffbc8 | /dec_to_hexadec.py | 1221f42cc33ea838895e0c5af290d16ec9279435 | [] | no_license | omsatam/Coding-practice | afb5c929fc143ad0c9f423ae525e95a710eb16ba | 26fe81879d6d9c10f759ded9def19c11c85b98c6 | refs/heads/main | 2023-07-05T22:37:14.130584 | 2021-08-05T06:08:47 | 2021-08-05T06:08:47 | 392,550,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | def decimalToBinary(n):
binary = ''
while(n):
number = n % 16
n = n//16
if number == 10:
number = 'A'
elif number == 11:
number = 'B'
elif number == 12:
number = 'C'
elif number == 13:
number = 'D'
elif numbe... | [
"noreply@github.com"
] | noreply@github.com |
f0311f7f3ef01524fcea4f7d97bce7259519254d | 95748f5c0dd18ef948c4e92b92b8bda969105d26 | /casim_satellite_modis_IWP.py | c5b52764966283618cd0d81956d5d8b8c74801ae | [] | no_license | Numlet/INP_code_PhD | bd18521d175f9fe4b21e740a490f02c7cc85ee1a | 8dc121d1145cd7e7c3eb67798c5a0991797a797d | refs/heads/master | 2021-03-22T00:46:47.659221 | 2017-11-07T08:45:24 | 2017-11-07T08:45:24 | 41,450,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,445 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 20 14:12:18 2017
@author: eejvt
"""
import iris
import iris.plot as iplt
import matplotlib.pyplot as plt
import matplotlib
import sys
import glob
dir_scripts='/nfs/see-fs-01_users/eejvt/UKCA_postproc'#Change this to the downloaded folder
sys.path.a... | [
"eejvt@leeds.ac.uk"
] | eejvt@leeds.ac.uk |
0dcd4da8ba93af01ab018273589a6b07fa06ff68 | 92d3ca91ac8ad2aea6d0c05c09c3e84b97077b7d | /containers/monitor/scripts/parsers/ps.py | 6a2b66df5a253010f21afbf6efdf3a921b55e546 | [] | no_license | shaweifeng/TechOps | 2bf47987a5b95a675b4667dffe7a5db3cf70e53c | 6cc41cf15475c258654408a4d6fcf5180117d5f8 | refs/heads/master | 2021-01-21T17:57:00.889848 | 2017-02-11T21:52:29 | 2017-02-11T21:52:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | import json
attributes = ['filename', 's2s.host']
def parse(data):
unix_timestamp = int(data['filename'][0:13])
lines = data['content'].split('\n')
#Extract list of field names
fields = lines[0].replace('%', '').split()
fields = ['user', 'pid', 'cpu', 'mem', 'vsz', 'rss', 'tty', 'stat', 'start', 'time', 'c... | [
"rgelhau@gmail.com"
] | rgelhau@gmail.com |
ffacfd3b7c38deeea54e4391a071f77952173405 | fc3b2dc2d11eb982c62ff7f1eb7c260b08b22f5c | /public_data_4-19.py | 6f0a1f5aa9c3d4213c79b1d367230417ab75ea4f | [] | no_license | vivshaw/4-19-public-data-talk | 307c5663bd099e27ca37b614a0cfcac0a9413b15 | 586d713ad4a7ce68c952daa499175c348d0f3a27 | refs/heads/master | 2021-01-19T20:58:01.109178 | 2017-04-19T09:35:50 | 2017-04-19T09:35:50 | 88,583,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,944 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 13 20:05:43 2017
@author: hvivi_000
"""
from functools import reduce
import xlrd
import pandas as pd
import seaborn as sns
import folium
import pygeoj
# Returns a dictionary with the MSA as the key and a list of length 3 as the
# value, containing MSA name, a set of zip... | [
"hvivianshaw@gmail.com"
] | hvivianshaw@gmail.com |
3a30e52508d4bd8992e31300089c0ac95f77a0dd | 0b7b8f0b00104df12018ce918b3db7b55484cefb | /django_test/wsgi.py | 45a4119d5a3e06ee8eeba1e4607bce5695e68323 | [] | no_license | immanoj16/django-test | 05ab548d91baea9d48a7eb9ad6eaa5e2990bdb6a | 63e7a06459bace318a282b2edbfaa60c01612e70 | refs/heads/master | 2020-03-19T17:47:41.575551 | 2018-06-13T03:12:58 | 2018-06-13T03:12:58 | 136,778,256 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_test.settings")
application = get_wsgi_application()
application = DjangoWhiteNoise(application) | [
"manoj@triveous.com"
] | manoj@triveous.com |
ba099f0cd0ba3ea92097e9c78e5a74937b9f2825 | 03f1af1fb07f637f95a223c454fd3bd010305112 | /Source/Inspectors/Attributes/attributes_table.py | f97b1e2517b45567089c7ed32c0ca2148dcb9dc8 | [
"BSD-2-Clause"
] | permissive | JaneliaSciComp/Neuroptikon | fcac68407d97315246f54b8da532d5ed1ccd368c | de0cdb26248f6d0d8bea594124c1dd7a155d406d | refs/heads/master | 2021-01-01T19:43:19.949401 | 2015-11-30T20:28:42 | 2015-11-30T20:29:04 | 23,592,154 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,836 | py | # Copyright (c) 2010 Howard Hughes Medical Institute.
# All rights reserved.
# Use is subject to Janelia Farm Research Campus Software Copyright 1.1 license terms.
# http://license.janelia.org/license/jfrc_copyright_1_1.html
import wx, wx.grid
from pydispatch import dispatcher
import datetime, sys, weakref
from ne... | [
"midgleyf@86afb187-6117-0410-83e3-87b601379a31"
] | midgleyf@86afb187-6117-0410-83e3-87b601379a31 |
553c12fa39f287e4eb87083f3e794b8bcf4a1273 | 352935eaf61a8ba94f759810dcee2084fd211f15 | /src/models.py | c178965d9010a56c4613b4561fcdc7f4a4bb6844 | [] | no_license | SoheeKANG/flaskBoiler | fe3090858062c869ec418b4109aa309839d9fb93 | 27d072f3220944c865917ed7f95e347dd88c467e | refs/heads/main | 2023-05-28T17:08:46.121911 | 2021-06-10T10:18:42 | 2021-06-10T10:18:42 | 368,067,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | from sqlalchemy import Column, Integer, String, Text, TIMESTAMP, ForeignKey
class User:
__tablename__ = "User"
id = Column(String(20), primary_key=True)
password = Column(String(20), nullable=False)
username = Column(String(20), unique=True, nullable=False)
email = Column(String(30), unique=True,... | [
"hnb4831@naver.com"
] | hnb4831@naver.com |
2d7854170ec59e5368a1570547a74466e7fec9d3 | dc5e05d448ea4cdbc13e1e6cdeb0e017843b9d24 | /all_negative_elements.py | 101a0b0533f40e05406dbf2bdcf4d1d554fcdda7 | [
"Apache-2.0"
] | permissive | divu050704/Algo-Questions | fcb0420bfc3b7adc39860cf17058beabf84b0665 | c2578e6f64f756b8f44bb85fe3fdea17b8b1a32e | refs/heads/main | 2023-06-04T03:29:10.159208 | 2021-06-15T06:55:52 | 2021-06-15T06:55:52 | 371,586,739 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | def move_negative_elements(x):
print('Original list:\t',x)#We will first print the original list
size = int(len(x))#Length of the list
for i in range(0,size):
if x[i] < 0:#if x[i] is negative
main = x[i]#we will first save the element in variable because we are going to pop the element ... | [
"70474633+divu050704@users.noreply.github.com"
] | 70474633+divu050704@users.noreply.github.com |
bb3e8dea9f7f63c84f10bccac7e3385a07ac7588 | ffcc8017e0430501f5471d4cc09341cc80d36e05 | /tests/interpreter/test_Scope.py | 70cdcad988a16a8e6c0eae0b9a06c08a02c313ba | [
"MIT"
] | permissive | sh805190/nustack | 2becba0ac019d5e00e164679d1bc3534b12a138e | d51132c585064e2554dd6cb29ec6bba416d1b727 | refs/heads/master | 2021-04-26T22:07:47.553216 | 2016-03-14T19:14:56 | 2016-03-14T19:14:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | from nustack.interpreter import Scope, ScopeLookupError, ScopeUnderflowError
import pytest
def test_init():
s = Scope()
assert s._scopes == [ {}, ]
def test_pushScope():
s = Scope()
s.pushScope()
assert s._scopes == [ {}, {}, ]
s.pushScope({"one": 1, 1:"one"})
assert s._scopes == [ {}, {},... | [
"stanleybookowl@gmail.com"
] | stanleybookowl@gmail.com |
b15286a91fa67b5334fba0a6cfa7a3e3f54c625b | c7de9d903c8798381be2d2a1e6c8032ce34e25bc | /leecode 74 Search a 2D Matrix.py | 42377c132f8cc9bde58384d5eeb6dc676c732e66 | [] | no_license | thePureSky/leecode | 4e31e1edf63b4f8c144ec9046fe9480efbdc1993 | 9ce3584b6ce309bf48bb1a696d630cb360e5b416 | refs/heads/master | 2021-01-21T13:11:17.504061 | 2016-05-24T08:54:34 | 2016-05-24T08:54:34 | 45,465,142 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | __author__ = 'YE'
class Solution(object):
def searchMatrix(self, matrix, target):
"""
:type matrix: List[List[int]]
:type target: int
:rtype: bool
"""
m = len(matrix)
n = len(matrix[0])
low = 0
high = m - 1
while low <= high:
... | [
"hyzhenze@163.com"
] | hyzhenze@163.com |
2f85d93437e59fb1b2ea83f61de183c722add46c | c532eea91e84f58f4ba57c27c6c24046498bde22 | /HelloPython/day03/MyOop03.py | 52cef566d3fc47d0caf98d78c48c1a519d466bf0 | [] | no_license | seaweedy/python | b9010f3277da09311a6d128d7f992874137c7c82 | 3f966223e19011318ed45308e89afe7d217e6ea4 | refs/heads/master | 2023-01-01T17:53:58.845336 | 2020-10-21T08:10:30 | 2020-10-21T08:10:30 | 301,929,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | class Human:
def __init__(self): # 생성자
self.name = "홍길동"
print("constructor")
def __del__(self):
print("distructor")
if __name__ == '__main__':
a = Human()
b = Human()
| [
"ismh5279@gmail.com"
] | ismh5279@gmail.com |
14067f6f82f3997a27fc5ad97402f02c7cc321c9 | 229561eefe76a0eb77bccf8ba0da0c593ff17bd1 | /testDjango/settings.py | 33a505142ba9118566d53d3f6f8e5611eea3cc03 | [] | no_license | foxsugar/django_cmcc | 40c5a3e0981ab8480bd0c8f5355ac1ecc3508097 | 7ad04acfa17a8e027c68f5b25113114e4cc057db | refs/heads/master | 2020-12-24T06:39:04.279601 | 2016-11-25T05:05:32 | 2016-11-25T05:05:32 | 73,464,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,748 | py | """
Django settings for testDjango project.
Generated by 'django-admin startproject' using Django 1.10.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import... | [
"redalert3@126.com"
] | redalert3@126.com |
751cef4fdcbdc941ba185f81fffcc297dc4b616e | 9d21ebcf7ae304d4d43e7db6939438dcdc2c365c | /Fluids_Properties_Dictionary.py | 4cac75eb9b6027dc1ad5ffc6ad238272af65029b | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | lcarasik/Generic-Scripts | 798f66b5824c2d770f6e3b3fd8d766a5226958f7 | 67f7a99db5126e9051ba682a3e2d82084e7121aa | refs/heads/master | 2021-12-02T01:11:00.684450 | 2021-11-25T18:34:54 | 2021-11-25T18:34:54 | 60,369,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | '''
Dictionary of Fluids and properties (density, Specific Heat, Viscosity, and Thermal Conductivity)
type dictionary name in iPython counsel to get properties
to get specific property -> type DictionaryName['Property'] in the iPython Counsel
Example : Ethanol['density']
Output: '0.7892 g/cm3'
'''
# How to define a d... | [
"lane.carasik@gmail.com"
] | lane.carasik@gmail.com |
0a074ebe496f4856b72639ad8a22b520bf287b14 | 88bdb0fc7cbeaeb2ddd741820853e32aeb29631f | /app.py | 2d278058cb9045d349ded9cd849cf19a61f038cb | [
"MIT"
] | permissive | buechechristian/NeuroCritic | da123af4ce49c6021a7f01a859e0666a525a5242 | 6baa3ee6b2c886665b67d8999783dddb880e445d | refs/heads/master | 2021-01-24T10:39:41.897998 | 2016-10-23T21:08:44 | 2016-10-23T21:08:44 | 70,313,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!venv/bin/python
from flask import *
from flask import Flask, render_template, request
from home import *
import jinja2
app = Flask(__name__, template_folder="templates")
app.register_blueprint(home)
if __name__ == '__main__':
app.run(debug=True) | [
"buechech@umich.edu"
] | buechech@umich.edu |
6ef6b2fd3971b5e1cb545bea797be9b805f5c16b | e2c8c637010403275e4467a7a1c881ac7ff2ab2b | /tkinter/tkinter drop downmenu.py | c910cb60b155e3a107035c5dd4ebe5b726da6ccf | [] | no_license | Drishya1/tkinter | a3b0b132300f5277510971d7250221f359007830 | 81028c74333fd320ec82b6d12e756503298e8cb3 | refs/heads/main | 2023-08-31T12:42:54.647147 | 2021-10-18T12:12:50 | 2021-10-18T12:12:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | from tkinter import *
root = Tk()
root.geometry('555x333')
root.title('menu bar')
def daddy():
print("hehe")
yourmenubar = Menu(root)
m1 = Menu(yourmenubar,tearoff=0)
m1.add_command(label='save',command = daddy)
m1.add_command(label='view',command = daddy)
m1.add_separator()
m1.add_command(label='e... | [
"noreply@github.com"
] | noreply@github.com |
5429beeaeeefb73acc0e24d52d82d2de32aad575 | f6a4430ee426702467142b5909c961660a9a0ab4 | /dne-security-fmc-code/1_fmc_auth.py | b2eb03a6f7e093e5107fb046f68dc106d62e283d | [] | no_license | josepla/devnet | f07901ed48ac2a02b85835aefea82cc48c9ce70a | 31f352d347c3c31a7a2255a1ac59ff3d9902100e | refs/heads/master | 2021-06-07T14:36:41.026292 | 2019-01-27T16:51:11 | 2019-01-27T16:51:11 | 167,833,080 | 1 | 0 | null | 2021-06-01T23:20:33 | 2019-01-27T16:52:01 | Python | UTF-8 | Python | false | false | 1,247 | py | #!/usr/bin/env python
import json
import sys
import requests
#Surpress HTTPS insecure errors for cleaner output
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
FMC_USER = "apiuser"
FMC_PASSWORD = "C1sco12345"
FMC_HOS... | [
"noreply@github.com"
] | noreply@github.com |
df348e14d755b39f5502493836abc26b73a94792 | 8bbeb7b5721a9dbf40caa47a96e6961ceabb0128 | /python3/324.Wiggle Sort II(摆动排序 II).py | d276668f063a9cc860cd18310872f77ccd38876f | [
"MIT"
] | permissive | lishulongVI/leetcode | bb5b75642f69dfaec0c2ee3e06369c715125b1ba | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | refs/heads/master | 2020-03-23T22:17:40.335970 | 2018-07-23T14:46:06 | 2018-07-23T14:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,414 | py | """
<p>Given an unsorted array <code>nums</code>, reorder it such that <code>nums[0] < nums[1] > nums[2] < nums[3]...</code>.</p>
<p><b>Example 1:</b></p>
<pre>
<strong>Input: </strong><code>nums = [1, 5, 1, 1, 6, 4]</code>
<strong>Output: </strong>One possible answer is <code>[1, 4, 1, 5, 1, 6]</code>.</pre... | [
"lishulong@wecash.net"
] | lishulong@wecash.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.