blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6eed4f68b4a484742a4e25d761a324ca9159e9c2 | ecd2b21b7bb6a47ffc45757021c6916ece3f7f93 | /K-State/CIS505/Finished-Assingments/Ex2/Ex2-Submit/heapmodule.py | cffaadb3337f3eb5a7842b11fa1bc13954bcd70e | [] | no_license | amgregoi/School | 312bc9449f5584713a475f0e8a64af0805169425 | effb6b6d0667a19437efd15d15a43cf95fda6ac2 | refs/heads/master | 2021-01-17T06:50:39.438326 | 2016-06-23T05:03:40 | 2016-06-23T05:03:40 | 47,589,088 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,336 | py |
### HEAP-STORAGE MODULE
"""The program's heap is a dictionary that maps handles to namespaces.
An object is itself a namespace (dictionary).
heap : { (HANDLE : NAMESPACE)+ }
where HANDLE = a string of digits
NAMESPACE = a dictionary that maps var names to ints:
... | [
"amgregoi@ksu-wireless-236-202.campus.ksu.edu"
] | amgregoi@ksu-wireless-236-202.campus.ksu.edu |
9595472d083f5d6051f654065f02bd5e115c5b03 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /call_case/point/week.py | 04be7fe9699394beff5a98745c1fa176eb31c35f | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py |
#! /usr/bin/env python
def feel_public_man_on_same_number(str_arg):
work_old_person_about_person(str_arg)
print('important_fact')
def work_old_person_about_person(str_arg):
print(str_arg)
if __name__ == '__main__':
feel_public_man_on_same_number('early_way_or_fact')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
274d5b7edcf55ff421d4509772cb169cfd2fbe18 | 8a42be3f930d8a215394a96ad2e91c95c3b7ff86 | /Build/Instalation/ProtoBuf/MarathonTests/Marathon 1.1/ProtoBufEditor/TestCases/Basic1/FullEdit_Edit_Menu_3.py | bce361629eac5e19e1052f684c002d4d767bc045 | [] | no_license | java-tools/jrec | 742e741418c987baa4350390d126d74c0d7c4689 | 9ece143cdd52832804eca6f3fb4a1490e2a6f891 | refs/heads/master | 2021-09-27T19:24:11.979955 | 2017-11-18T06:35:31 | 2017-11-18T06:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,458 | py | useFixture(default)
def test():
from Modules import commonBits
java_recorded_version = '1.5.0_11'
### Check out ....
if window(commonBits.applicationName()):
select('FileNameTxtFld', commonBits.sampleDir() + 'Ams_LocDownload_20041228.bin')
#commonBits.setRecordLayout(select, 'ams Store')
click('Edi... | [
"bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec"
] | bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec |
0b8a24015738311184532fc1236d333df4fedb66 | 338f2c2243d9bd59ca61bb67b6573fe02d20a82c | /base.py | fb8a1d6705fc0314336401537c3886bc4c45a7e4 | [] | no_license | kakn/gilbert | 33f7d60ac5e986694ee8fa8482a5587ab91d337d | 158f037e1e9c71b573bca90d4a85b7e42880477e | refs/heads/main | 2023-02-05T05:27:34.977679 | 2020-12-28T17:01:17 | 2020-12-28T17:01:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,407 | py | """
░██████╗░██╗██╗░░░░░██████╗░███████╗██████╗░████████╗
██╔════╝░██║██║░░░░░██╔══██╗██╔════╝██╔══██╗╚══██╔══╝
██║░░██╗░██║██║░░░░░██████╦╝█████╗░░██████╔╝░░░██║░░░
██║░░╚██╗██║██║░░░░░██╔══██╗██╔══╝░░██╔══██╗░░░██║░░░
╚██████╔╝██║███████╗██████╦╝███████╗██║░░██║░░░██║░░░
░╚═════╝░╚═╝╚══════╝╚═════╝░╚══════╝╚═╝░░╚═╝░░... | [
"noreply@github.com"
] | noreply@github.com |
43e7d1bdb613cf561d4e96e96936a5fe6c55911a | 4d99f1e9dea4f18494af0667cf1ea60a0f5c7a78 | /Files/write.py | b60a8857aa0fb13164d1c9cda4a87e3112aa7bc6 | [] | no_license | arshsaluja/Python-s | deaff42e9827105f3096e47b9d6535a0fdf848ff | 0c2621f1be12aae170b5ef07d65b3d752040bc3a | refs/heads/master | 2020-12-02T04:01:00.988895 | 2020-06-14T23:24:19 | 2020-06-14T23:24:19 | 230,881,375 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | openfile = open("mymoviescript.txt", "wt")
openfile.write('I wish I had an idea for a movie...\n')
openfile.close()
| [
"noreply@github.com"
] | noreply@github.com |
1cdceab23d7b6534836ca39512729389aa317371 | 3d2252485728a26602643c5029198d2920335071 | /gen_train_data_test_data.py | 8d3ab94da2f26848db83bc568fc843956ab88873 | [
"MIT"
] | permissive | heronimus/bird_species_classification | deeb018b64092ad8f581cdcb73907e5f92089a5f | 46cd36f11604c906c5dcd9e6422bb8c100a6a0f6 | refs/heads/master | 2021-07-12T06:53:28.501292 | 2020-09-02T05:42:04 | 2020-09-02T05:42:04 | 195,226,180 | 0 | 0 | MIT | 2020-09-02T05:42:06 | 2019-07-04T11:06:55 | Python | UTF-8 | Python | false | false | 2,707 | py | import cv2
import numpy as np
from os.path import join
from os import listdir
from keras.utils import np_utils
species = [
"blasti",
"bonegl",
"brhkyt",
"cbrtsh",
"cmnmyn",
"gretit",
"hilpig",
"himbul",
"himgri",
"hsparo",
"indvul",
"jglowl",
"lbicrw",
"mgprob",
... | [
"kmr2907akash@gmail.com"
] | kmr2907akash@gmail.com |
432e27d6105ccfb6588961c2b1b300043b1c27f2 | 193c3cf11fe60dbea5d35dfa831edfadbecd7104 | /LightManager/preferences.py | 378e929effb97a827d195ee063bd070743be3746 | [] | no_license | jordanSautron/LightManager | 04ad4d8ada21124db74e1580cdaa2d09fc9c1f3b | 863c938ef34bc41a912b25bcb81b783bfdb4d117 | refs/heads/master | 2022-09-10T07:59:11.741566 | 2020-04-12T23:05:15 | 2020-04-12T23:05:15 | 254,673,792 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | """
This module contains every addon's preferences
"""
import bpy
from bpy.props import EnumProperty
ADDON_NAME = __package__.split('.')[0]
class LightManagerPreferences(bpy.types.AddonPreferences):
bl_idname = ADDON_NAME
ui_mode: EnumProperty(
default='HEADER',
items=[
('HE... | [
"sautron.jordan@gmail.com"
] | sautron.jordan@gmail.com |
50a2162bd21b21dae81fac4f1f37e28576c0ecdb | 1c390cd4fd3605046914767485b49a929198b470 | /leetcode/maximum-ascending-subarray-sum.py | 61a33fa7a8a41c75f746313b88415da2a7871dd3 | [] | no_license | wwwwodddd/Zukunft | f87fe736b53506f69ab18db674311dd60de04a43 | 03ffffee9a76e99f6e00bba6dbae91abc6994a34 | refs/heads/master | 2023-01-24T06:14:35.691292 | 2023-01-21T15:42:32 | 2023-01-21T15:42:32 | 163,685,977 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | class Solution:
def maxAscendingSum(self, a: List[int]) -> int:
n = len(a)
s = 0
z = 0
for i in range(n):
if i > 0 and a[i] > a[i-1]:
s += a[i]
else:
s = a[i]
z = max(z, s)
return z
| [
"wwwwodddd@gmail.com"
] | wwwwodddd@gmail.com |
f6e08ba178e5acb150ddfe7f0ea4567e32438e47 | cd69f6cd58ed195bc8cce6e6a68bc7636c1c0081 | /src/Case2.py | f2b19e42fd939ab6c49458ed0df64d6ef69efcce | [
"Apache-2.0"
] | permissive | EstudoAAS/linear-algebra-refresher-course | 0441ec9c1c9a6525c37d96cc9506ea7c54aafd2f | cf5ba417e8bbbb8a6683161e4cd7397ebb384c00 | refs/heads/master | 2021-01-19T17:59:15.720415 | 2017-09-01T21:44:16 | 2017-09-01T21:44:16 | 101,103,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | import vector
def main():
print(vector.Vector([-0.221,7.437]).magnitude())
print(vector.Vector([5.581,-2.136]).normalized())
print(vector.Vector([8.813,-1.331,-6.247]).magnitude())
print(vector.Vector([1.996,3.108,-4.554]).normalized())
main() | [
"allerasouza@gmail.com"
] | allerasouza@gmail.com |
e57ec5de902759565ff35ff3e79168c5e2bd870e | a8f48e380ed42bc406b8b94255566c3ce854d6df | /rainday/appConfig.py | 79c071a2da87196b6a5d21704b459e468d1f25ba | [] | no_license | yurkee/DayliyProject | b9646cddd8add1872a09cfc60ded0a5c81e2163b | 6eb0928573881dd6250f8bcf28e6e3ef0c336f85 | refs/heads/master | 2023-06-11T14:49:23.114208 | 2021-06-28T09:48:19 | 2021-06-28T09:48:19 | 380,981,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # coding:utf-8
"""
@Author : Cong
@Time : 2021/6/21 16:32
"""
configData = {}
with open('app.config', 'r') as file:
datas = file.readlines()
for line in datas:
if line.startswith('#'):
continue
key = line.split("=")[0]
value = line.split("=")[1].replace("\n", '')
... | [
"weisicong0619@dingtalk.com"
] | weisicong0619@dingtalk.com |
c8b7abd781a2513ddfc4ee2f3794e0963f294ffd | 20e57914367e784560cc7eaa87056099c7ace564 | /plot_MS_collect_data.py | 4d191bf50c36ca0ef489947a53857b46d9cc383c | [] | no_license | zhengang-zhong/distributionally_robust_optimization | cea464dd629e6b90297fa275e37320cb108af37d | a5aa339140fb9adc23a05ec500b32f24f7feb3f3 | refs/heads/main | 2023-07-11T08:26:59.483997 | 2021-08-16T11:01:39 | 2021-08-16T11:01:39 | 330,395,144 | 22 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,072 | py | import numpy as np
import matplotlib.pyplot as plt
def plot_tex_setting():
plt.rc('text.latex', preamble=r'\usepackage{amsmath}') # für \text{..}
plt.rcParams['text.usetex'] = True
# plt.rcParams['figure.subplot.bottom'] = .265
plt.rcParams['figure.subplot.bottom'] = .265
plt.rcParams['figure.subp... | [
"zhengang.zhong@gmail.com"
] | zhengang.zhong@gmail.com |
b62e4aa5f5c4546fdfa04eda9e0a88bd93db0717 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02729/s489492294.py | a74a86a9ade12d70a71e31be302ab59ebafe9346 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | import math
def combinations_count(n, r):
return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))
def main():
n, m = map(int, input().split())
if n < 2:
even = 0
else:
even = combinations_count(n, 2)
if m < 2:
odd = 0
else:
odd = combinations_c... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
73bd7db44b6cc15d7dd9efc06d383f68b910b287 | 0448a662b1f16c1e9fae8c9c382bcfba69a5ac07 | /35.IniciarSesión.py | 292a7a6b2e5375b9761fc43f5e91874ab5b87f2e | [
"CC0-1.0"
] | permissive | JDKdevStudio/Taller30Abril | 4daace5668bd39dbe1662e126ea549ac34f20a62 | fe8094b6669899aae50154a6d380ce583531699a | refs/heads/main | 2023-04-16T17:06:59.953753 | 2021-04-30T15:30:03 | 2021-04-30T15:30:03 | 363,182,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | while True:
try:
usuario = str(input("Porfavor digite un usuario: "))
contra = str(input("Porfavor digite la contraseña: "))
if usuario == "carlos" and contra == "1234":
print("Bienvenido de nuevo carlos")
break
else:
print("Contraseña erro... | [
"noreply@github.com"
] | noreply@github.com |
28227e4dc68b0652a7a0a9a6a0219f7496c37833 | 4caa087dcb95a6a7dbe8cc49fde383e9f2aa4426 | /mmtrack/models/vid/fgfa.py | 58cd96d42546da1fd9ac8018f98712f781126e98 | [
"Apache-2.0"
] | permissive | open-mmlab/mmtracking | 1e55c69cc1a264b3c9546c19332a38e9621430ed | e79491ec8f0b8c86fda947fbaaa824c66ab2a991 | refs/heads/master | 2023-09-01T15:41:04.322684 | 2023-04-25T13:25:18 | 2023-04-25T13:25:18 | 291,213,368 | 3,263 | 604 | Apache-2.0 | 2023-08-26T04:05:00 | 2020-08-29T06:16:56 | Python | UTF-8 | Python | false | false | 15,851 | py | # Copyright (c) OpenMMLab. All rights reserved.
import warnings
import torch
from addict import Dict
from mmdet.core import bbox2result
from mmdet.models import build_detector
from mmtrack.core import flow_warp_feats
from ..builder import MODELS, build_aggregator, build_motion
from .base import BaseVideoDetector
@M... | [
"noreply@github.com"
] | noreply@github.com |
625dda6943acbebfb71c78a141b1df9c79d5f2b3 | 39e3091637c76d28c23d55499d1d4faa641a6c38 | /python/fe4.py | 6d7dc964f2ddc82330fca75f19e8aa8a4c8e52d7 | [
"MIT"
] | permissive | hyolin97/bigdata_web | 146bdcee609cc6c9c05188d4c02673b6b32d5fa3 | bcbce9e4d9fd3996f7e3c834596167c41741f350 | refs/heads/master | 2021-06-28T01:52:13.830050 | 2019-03-31T13:56:16 | 2019-03-31T13:56:16 | 119,010,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | select,answer,numStr,num1,num2=0,0,"",0,0
select=int(input("1.수식 계산기 2. 두수 아이 합계:"))
if select==1:
numStr=input("***수식을 입력하세요:")
answer=eval(numStr)
print("%s 결과는 %5.1f입니다"%(numStr,answer))
elif select==2:
num1=int(input("***첫번째숫자를 입력하시오:"))
num2=int(input("***두번째숫자를 입력하시오:"))
for i in range(num... | [
"35828851+hyolin97@users.noreply.github.com"
] | 35828851+hyolin97@users.noreply.github.com |
ee140f97e2454be1575f79772d7548dcb581ff0a | 7dfe15213459ed945c4dd909e239045e74463b0a | /utils/transferPointsUv.py | eddf66ee1bbc331a027f3168cf385a7a947cad7d | [] | no_license | jonntd/mayadev-2 | 5314a088665313d851175d5cc30b856ae120070b | 1bd54f143acb7ecc1e99fa0a4fb4c3db63fa248d | refs/heads/master | 2023-03-17T21:09:21.114253 | 2020-12-23T23:23:24 | 2020-12-23T23:23:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | import maya.api.OpenMaya as om
driver = 'pSphereShape2'
driven = 'pSphereShape1'
mSel = om.MSelectionList()
mSel.add(driver)
mSel.add(driven)
driverDag = mSel.getDagPath(0)
drivenDag = mSel.getDagPath(1)
driverMFnMesh = om.MFnMesh(driverDag)
driverVtxMIt = om.MItMeshVertex(driverDag)
drivenMFnMesh = om.MFnMesh(dr... | [
"anton.stattin@gmail.com"
] | anton.stattin@gmail.com |
03a7d6b0a953d17284f0c7c33996a38e495e7aa0 | 9e992de6e5a8e47b59ea575ae67e57058bf45b3c | /iotDjango/settings.py | 47bc57e192ec7d66de1c92e61f21c2ecf0803972 | [] | no_license | santyLB9925/iotDjango | ff340c40df1c164eaf0d28ec1c0d4204860da1a0 | 8e0d1d0e1401c07ea756f76746402276bdefb170 | refs/heads/master | 2020-05-24T14:40:51.334308 | 2019-05-18T04:30:51 | 2019-05-18T04:30:51 | 187,314,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | """
Django settings for iotDjango project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
... | [
"43245565+santyLB9925@users.noreply.github.com"
] | 43245565+santyLB9925@users.noreply.github.com |
d0fce14c0a6bd8572d815aa2b3327b1fe6206278 | f6d4a8086cbd11b0e7c2e3f75a2fb0880bc47f68 | /Kiraya/apps.py | b8d7c51b0f4fbbf2ebf1e64a9114055db2e331b6 | [] | no_license | seandeviniii/Kiraya | babfc39152cce80989c99ce69322a93f4eee1617 | 93de56dbc4e775196e03331f139879609ca2ede7 | refs/heads/master | 2020-03-06T15:27:03.745324 | 2018-04-08T09:57:15 | 2018-04-08T09:57:15 | 126,956,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class KirayaConfig(AppConfig):
name = 'Kiraya'
| [
"shaanrocks1997@gmail.com"
] | shaanrocks1997@gmail.com |
a147c5361d4cee8cbedb8350f9740a4b2fbca6bc | 1b211b2625b53813398babe048e88988aff3633e | /rltorch/algs/q_learning/DQNTarget/agent.py | 84136a3c21113ef357083d7f045b44c7771f8af0 | [
"MIT"
] | permissive | Jjschwartz/rltorch | 07b115767ed3aa39d516ebbeeeea9e3f111fdd5e | eeb2ad955f018d768db98c4a2be5da96a75579f6 | refs/heads/master | 2021-12-14T01:06:49.155976 | 2021-11-29T03:02:20 | 2021-11-29T03:02:20 | 238,176,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | import torch
from rltorch.algs.q_learning.DQN.model import DQN
from rltorch.algs.q_learning.DQN.agent import DQNAgent
class DQNTargetAgent(DQNAgent):
def __init__(self, name="DQNTarget", **kwargs):
super().__init__(name, **kwargs)
# Target Neural Network related attributes
self.target_d... | [
"Jonathon.schwartz12@gmail.com"
] | Jonathon.schwartz12@gmail.com |
1f8cf8e7bda22df267f367e3dbd60608936c57a8 | ede210ecd1d89ce3dc54755c7bdc0f1dcfc88037 | /core/features/process_data.py | 65c5a0c7d142e3268e2c6ef5058642696a517578 | [] | no_license | LonelyDaoist/mlflow | 0acb82d467e029451eec16696d8467af1c270603 | a2c155590af8e83a506f5aeda31625b96c147cc1 | refs/heads/main | 2023-05-08T17:26:11.488039 | 2021-05-28T00:49:38 | 2021-05-28T00:49:38 | 370,650,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | import os
import sys
import pandas as pd
import numpy as np
import mlflow
PATH = os.environ["PYTHONPATH"]
def process(raw_data):
red = pd.read_csv(f"{raw_data}/red_wine.csv",sep=";")
white = pd.read_csv(f"{raw_data}/white_wine.csv",sep=";")
red["type"] = 1
white["type"] = 2
data = pd.concat([re... | [
"ghabaroughassen@gmail.com"
] | ghabaroughassen@gmail.com |
163dc1b4f9a05cf24422cac3ced608c4c4e768f8 | 60163aa3ba64492218082fb9cf980944a32c43ae | /omega_miya/utils/Omega_Base/tables.py | ebb5ddb4b3c7c63c8f9a61726498fa95d2c97d46 | [
"Python-2.0",
"MIT"
] | permissive | 58563528/omega-miyabot | 63322ce2140d8d04b310741e81a38f48d562b3ef | d0c04bf06c193d90ad968973c924b01b7bdd735d | refs/heads/main | 2023-07-04T09:42:38.017986 | 2021-07-30T06:56:18 | 2021-07-30T06:56:18 | 392,531,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,014 | py | import nonebot
from sqlalchemy import Sequence, ForeignKey
from sqlalchemy import Column, Integer, BigInteger, String, DateTime
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declarative_base
global_config = nonebot.get_driver().config
TABLE_PREFIX = global_config.db_table_prefix
# 创建... | [
"ailitonia@gmail.com"
] | ailitonia@gmail.com |
74629208c15fdeab63fc87df6a43365b04f6f8ef | f318085a59b061fce733fda34d5587129b6d2047 | /examen/problema-2.py | 0c2c2c367a0cf4d1b9bdac664b37a2fb7714c69d | [] | no_license | ochesto/esi-ce5303 | 7b933667f35e978b7541770097860ed8d8dec3c7 | aaf0f8c38c628d5bd041fbb2850dd9af6d1a7ccc | refs/heads/master | 2020-07-08T14:59:44.923818 | 2019-11-15T03:26:23 | 2019-11-15T03:26:23 | 203,707,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,017 | py | # Fabian Astorga Cerdas
# Ernesto Ulate Ramirez
from threading import Thread
import queue
import time
# inputs / outputs
input_array = [0, 0, 1, 0, 3]
output_array = []
# global variables
amount_zeroes = 0
ak = queue.Queue()
bk = queue.Queue()
ck = queue.Queue()
dk = queue.Queue()
ek = queue.Queue()
fk = queue.Queue... | [
"ernesto.ulate@gmail.com"
] | ernesto.ulate@gmail.com |
ffeef5d33acdb08a6571a823192f8c0613dc75bc | fef8c4dacdd1a19bd4ef9982b47d2c1fe77a4ea4 | /src/pygone.py | 09f8bafb62dab48f67e00425657760120f115d88 | [] | no_license | Aloril/pygone | 6548f0769c93fd0513561656000317e37e78f923 | 2eaad99c5e5e0088237f1a9b523dca87e3e502ac | refs/heads/master | 2022-12-17T09:24:20.518632 | 2020-09-24T11:50:57 | 2020-09-24T11:50:57 | 298,381,790 | 0 | 0 | null | 2020-09-24T19:57:14 | 2020-09-24T19:57:13 | null | UTF-8 | Python | false | false | 29,585 | py | #!/usr/bin/env pypy3
import math, sys, time
PIECEPOINTS = {'p': 100, 'r': 480, 'n': 280, 'b': 320, 'q': 960, 'k': 6e4}
ALLPSQT = {
'p': [[0]*8,
[78, 83, 86, 73, 102, 82, 85, 90],
[7, 29, 21, 44, 40, 31, 44, 7],
[-17, 16, -2, 15, 14, 0, 15, -13],
[-26, 3, 10, 9, 6, 1, 0, -23... | [
"breese@scsgrandrapids.com"
] | breese@scsgrandrapids.com |
c5778b848e1a4633f1101a6b345d0ef4a74f2d8b | efaee41c5662b25af1c1eefbeeb3efc136096665 | /backend/server/apps/endpoints/models.py | ce9c4211bc0f299352e904cc91cf723b0b716a54 | [] | no_license | edgarbasto/machine-learning-webservice | ad93ddd5b667658f9ebfc7c3234debe1c4ef494c | 1deacaaf3dba29cbc5f7c089e5b8d46641fc09b9 | refs/heads/master | 2020-09-13T10:00:57.652982 | 2019-12-06T17:28:07 | 2019-12-06T17:28:07 | 222,735,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | from django.db import models
# Create your models here.
class Endpoint(models.Model):
'''
The Endpoint object represents ML API endpoint.
'''
name = models.CharField(max_length=128)
owner = models.CharField(max_length=128)
created_at = models.DateTimeField(auto_now_add=True, blank=True)
clas... | [
"edgar.pt@gmail.com"
] | edgar.pt@gmail.com |
767056e6660c9bdda0475c00bac87e823eca2023 | 729243a020efed22445849c5cd95e78506f9845d | /Semana04/Multiprocess/mpprog04.py | c6500fcd68472c271798a46ffc0d79607a84c8cd | [] | no_license | yuri-almeid/SEII-YuriLimaAlmeida | 6f031667943f469827bcb89db968d5b7a0188c2f | 81fbf275fcc74a99d8b3630c953aece416546416 | refs/heads/main | 2023-08-10T19:49:18.162469 | 2021-10-07T11:02:25 | 2021-10-07T11:02:25 | 347,435,913 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | import concurrent.futures
import multiprocessing
import time
start = time.perf_counter()
def do_something (seconds):
print('sleeping {seconds} in 1 seconds(s)..')
time.sleep(seconds)
return 'done sleeping'
# roda o executor
with concurrent.futures.ProcessPoolExecutor() as executor:
f1 = executor.submit(do_... | [
"yurilima95@gmail.com"
] | yurilima95@gmail.com |
564fa4166165e29ab7d5d089ff642ae892e463ee | 824d98a9d8bb129073e5816962ddf31494580201 | /iLQRController.py | f32326dbb6b8cd7ff4604448216ee7707d9216bd | [] | no_license | rhester5/dynamics_and_control_sim | 9f804b164372c14b9baa507cd39fe4e333c829d3 | adaab02e0e0b8cfa5453593c8728936d57ae3a87 | refs/heads/main | 2023-05-23T22:48:25.923238 | 2021-06-17T17:10:08 | 2021-06-17T17:10:08 | 377,906,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,863 | py | import sys
sys.path.append('../ilqr/ilqr')
from ilqr import iLQR
from iLQRCost import iLQR_cost
import numpy as np
# class iLQR_Controller():
# def __init__(self, dynamics, trajectory, actions, linear, num_steps,):
# self.dynamics = dynamics
# self.trajectory = trajectory
# self.actions = actions
# self.line... | [
"rahv7245@mit.edu"
] | rahv7245@mit.edu |
59a5d48378d296750f67db8bbb5961de3268bce6 | 4a10c668331cd32fb0efc4de3c0e2608fd48d47d | /pipeline_simulation/scripts/summarize_simulation_stats_all.py | 8de7984bd79a7168d6bc146f7959a8f7140d8e75 | [] | no_license | joannahard/Genome_Biology_2019 | 312df456c15447cac6cd7809bd89638ffbf54324 | 51f70d6e6ee9927af160153e5fb787fc847b097f | refs/heads/master | 2020-04-27T17:38:48.094704 | 2019-03-11T12:10:29 | 2019-03-11T12:10:29 | 174,530,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | import pandas as pd
import os, sys, math
from argparse import ArgumentParser
parser = ArgumentParser(description='Merge all stats from lira,conbase,monovar & sccaller')
# [Required input]
parser.add_argument('-o', '--outprefix', metavar='outprefix', help='Outprefix', required=True)
parser.add_argument('-i', '--infil... | [
"bengt.sennblad@scilfelab.se"
] | bengt.sennblad@scilfelab.se |
f3bf30a1633fb85c491ee3d011f3937fe306d3bd | a6fae33cdf3d3cb0b0d458c2825a8d8cc010cd25 | /l3/z2/.history/population_20200522202231.py | ffc71c3c452970dfdc5d316b5285cc18dab8386d | [] | no_license | Qabrix/optimization_amh | 12aab7c7980b38812ec38b7e494e82452a4176b4 | 6a4f5b897a4bef25f6e2acf535ba20ace7351689 | refs/heads/main | 2022-12-28T10:57:00.064130 | 2020-10-17T22:57:27 | 2020-10-17T22:57:27 | 304,983,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,819 | py | import random
import numpy as np
from utils import decision
class Inhabitant:
def __init__(self, gene, value=0):
self.gene = gene
self.value = 0
def __iter__(self):
for char in self.gene:
yield char
def __len__(self):
return len(self.gene)
def __getitem__... | [
"kubabalicki@gmail.com"
] | kubabalicki@gmail.com |
48346c248586b26277996331954eb2e6c4b6b052 | 14d846c87eada5c39f05a9e5d9c5d8d1638dae37 | /test/provider/test_requests_provider.py | bfc10abf08c8836de2b4249484ea6776ce55a778 | [] | no_license | ShaneLee/windscreen | ec738b2b085e1b2ab11304300f2ede742446ee8a | f6f25b7429c64861ce9d53f10c975ef73a188981 | refs/heads/master | 2023-06-25T10:41:06.464216 | 2021-07-24T13:45:55 | 2021-07-24T13:45:55 | 388,843,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import unittest
from src.provider.requests_provider import RequestsProvider
class TestRequestsProvider(unittest.TestCase):
def test_get_requests(self):
self.assertIsNotNone(RequestsProvider().get())
if __name__ == '__main__':
unittest.main()
| [
"me@shanel.ee"
] | me@shanel.ee |
a803771bd0a74ff59e8144cfac65ca2320281bb0 | 741c769a5d38b8ba563fa399d5358b9146d6989d | /fakeRequests.py | 953b6b9ce4b4956ababa5ad5bd53b19916c6d0be | [] | no_license | RogerMonteiro124/Python | 54397b1182028619ead8bb491bbb432e2a11d1a4 | 0606032bf1598441ee0bc3f63aca80183e403021 | refs/heads/master | 2021-01-19T10:17:09.122070 | 2018-04-06T20:36:28 | 2018-04-06T20:36:28 | 87,849,093 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,228 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#Developed by Roger Monteiro
#Github: https://github.com/RogerMonteiro124
import os
import urllib
from urllib import FancyURLopener
from random import *
def getUrl():
os.system("setterm -foreground green")
url=raw_input('Endereco do site alvo:\n>_http://')
return str(ur... | [
"noreply@github.com"
] | noreply@github.com |
8d004556ac7cdf7846fd6ce3fd624d9082919774 | 904fd885e9c9c629246aa2c8b533745604bc55c2 | /09. Decorators/01. Lab/02. Vowel Filter.py | 3b6a2c9851b59f96f8639f74dd1600609de38c28 | [] | no_license | Tuchev/Python-OOP---June---2021 | 3cc5e9206f910262d567f4f151bb6cd1b17779fe | 782efd1bde9a4177d6fcd3a33c85a48d7c8991fd | refs/heads/master | 2023-07-07T05:31:27.384073 | 2021-08-11T12:00:51 | 2021-08-11T12:00:51 | 387,717,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | def vowel_filter(function):
def wrapper():
letters = function()
return [letter for letter in letters if letter.lower() in "aouei"]
return wrapper
@vowel_filter
def get_letters():
return ["a", "b", "c", "d", "e"]
print(get_letters())
| [
"g.tuchev@gmail.com"
] | g.tuchev@gmail.com |
66583f834ce0817cdac30dd67385d1cb0b84b683 | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/client/gui/Scaleform/locale/CREW_OPERATIONS.py | a4684bacfdaafe4122ed2edf2f9193f51aec4da7 | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 3,029 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/locale/CREW_OPERATIONS.py
class CREW_OPERATIONS(object):
RETURN_WARNING_MEMBERSINBATTLE_TOOLTIP = '#crew_operations:return/warning/membersInBattle/tooltip'
RETURN_WARNING_MEMBERDEMOBILIZED_TOOLTIP = '#crew_op... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
3533c8b4a56628c86921a0853ec4dbe46f9fdc31 | 6f3389c93cf1057bca5398940932561c19dbec1d | /Solving Club/휴강기간/이진수2.py | 845a4033c4f3f9f7848517c39d2134794469ec92 | [] | no_license | Jeonseoghyeon/APR | 0af9ac1b4ba666a97d78b92e3e599c5a8bc87acc | 7a3822913b84ae6ecf80c8e35c7c8e400981d1fe | refs/heads/master | 2020-12-23T13:55:24.194463 | 2020-06-30T07:00:23 | 2020-06-30T07:00:23 | 237,172,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | import sys
sys.stdin = open("이진수2_input.txt","r")
T = int(input())
for tc in range(1,T+1):
N = float(input())
i = 0
result = ""
while i !=13:
i+=1
N *= 2
if N == 0:
print("#{} {}".format(tc,result))
break
else:
if N >=1:
... | [
"jsh28592@gmail.com"
] | jsh28592@gmail.com |
80da78c8d02078a86dfcc60853d66eadc2c25c7d | 404df203a3fbcde272856db26835381400a3f896 | /venv/bin/pip3.8 | ee6fd9c5ab18215234ab7856026729d7f6b6370d | [] | no_license | fayza-khan/DecoratorsGenerators_Questions | ad6858d5bac7b5ab81ed69514d5a7b5134bf45c5 | d4bf2393e68ac8b685efbd2df4ae6c47670ddd3b | refs/heads/master | 2022-12-23T10:32:12.280386 | 2020-10-03T16:23:07 | 2020-10-03T16:23:07 | 300,924,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | 8 | #!/Users/test/Desktop/python_pycharm/decorators/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"fayzakhan8126@gmail.com"
] | fayzakhan8126@gmail.com |
4bba01aef14bab61d523392feb74baf039036236 | d8f672acc944ab09d63d938682b4890d2de70039 | /crcapp/admin.py | 91e922513591a90655d8181b1f609438ad9d2948 | [
"Unlicense"
] | permissive | tuckj3569/mywebsite | 28c971c919e7c82f37965d62c05c0bfb50ff0d24 | 1123d00380634207a03281d121792dda7a6c0136 | refs/heads/master | 2022-05-30T08:24:31.427905 | 2018-08-31T02:03:10 | 2018-08-31T02:03:10 | 145,658,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from django.contrib import admin
# Register your models here.
from .models import Car,Orders,Store,Customer
@admin.register(Car)
class CarAdmin(admin.ModelAdmin):
list_display=['Car_MakeName','Car_Model','Car_Series','Car_SeriesYear','Car_PriceNew']
@admin.register(Orders)
class OrdersAdmin(admin.ModelAdmin):
lis... | [
"38771207+tuckj3569@users.noreply.github.com"
] | 38771207+tuckj3569@users.noreply.github.com |
d5fb01fc5f5ddc9d417b7f00ddc7f123c601ec92 | ba7f4e6241244a0e5d58e3a66c128774a344f25c | /projectGNT/gnt/migrations/0002_auto_20171214_1153.py | d5e7a4d0a65a917482b36247229be9b9faa0af17 | [] | no_license | joelranjithjebanesan7/Give-and-Take-API | 83158ba1af2603b523f112d0f577534fdbb9b377 | a646b09b93479b5066fa69ca0db8a83829b0407f | refs/heads/master | 2021-08-31T11:21:09.934108 | 2017-12-21T05:32:06 | 2017-12-21T05:32:06 | 114,759,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-14 11:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('gnt', '0001_initial'),
]
operations = [
mi... | [
"joel@tivonaglobal.com"
] | joel@tivonaglobal.com |
d85b393ecf305e5519f1c7e9e3090bf56c993193 | 991143820bf4746c681f380039f7311c76024a94 | /wb5m3.py | 46b7eb0ff31e17e0a6bae74c5ba842c03bbd0184 | [] | no_license | ddaannddrree/baseball | 60be947cd2fef24546850c64034c17130ec07367 | d03858619aec96d438d9ac41dcd434baa53d1590 | refs/heads/master | 2020-12-29T02:21:41.812361 | 2017-06-01T05:06:37 | 2017-06-01T05:06:37 | 38,767,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,527 | py | #!/usr/bin/python
import urllib
import urllib2
import xml.etree.ElementTree as ET
import datetime
from bs4 import BeautifulSoup
import re
import time
from datetime import date
from datetime import timedelta
from datetime import datetime
import string
import collections
import copy
import pdb
import sys
import traceback... | [
"github@davidandre.com"
] | github@davidandre.com |
f20a396d57ccb70fae8a2111ec008e29306a02f6 | 8b6e22a9ffce2830f3a718441d5644de17fc04e4 | /Observe_And_Solve_782. Transform to Chessboard.py | d479a8cb5b3810f5e1a55a49848cae1a3c536c78 | [] | no_license | lonelyarcher/leetcode.python3 | 8fc0e47e63ce1b1466d8990a0b0d4c226cafed9d | f3ec3e6a82ad092bc5d83732af582dc987da6aac | refs/heads/master | 2020-03-08T06:42:15.172664 | 2020-02-26T21:16:23 | 2020-02-26T21:16:23 | 127,977,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,792 | py | """ An N x N board contains only 0s and 1s. In each move, you can swap any 2 rows with each other, or any 2 columns with each other.
What is the minimum number of moves to transform the board into a "chessboard" - a board where no 0s and no 1s are 4-directionally adjacent? If the task is impossible, return -1.
Exampl... | [
"xumeng@gmail.com"
] | xumeng@gmail.com |
a78f0dff4519e307c8328160d7fcb679f8b2d6a5 | 12458f134f349ae1443f17c297eae7a2725f1181 | /twoStep/keychain/management/commands/checkintegrity.py | b4163468e9b1ff377d3f41f6964ba48f52bad8a4 | [] | no_license | aeaa1998/cifrado-keychain-back-end | 48ce1f872cb842542976ad954b37d7d91f5a14ea | ce4e3e104dd9a1839de3a8f9e89234b688e78b0a | refs/heads/master | 2023-01-13T19:53:36.805400 | 2020-11-19T05:18:38 | 2020-11-19T05:18:38 | 303,234,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | py | from django.core.management.base import BaseCommand
from django.contrib.auth.models import User
from keychain.models import KeyChain, App
from keychain.lib import *
from hashlib import sha256
from django.core.files.storage import FileSystemStorage
from pathlib import Path
import os
class Command(BaseCommand):
def ... | [
"augustoalonso98@gmail.comn"
] | augustoalonso98@gmail.comn |
6a48ec22acbff8efec462b02e62692b6e3657252 | 925fa0208e07ac2aeb64f9201249a91f48b900fa | /LeetCode/buySell.py | c2ca23a5f4c2ece5b722241fab4b2700d7c57e6d | [] | no_license | Sanchi02/Dojo | 984eb3cba26e43a8f6f0ef9c93f7aed24527b3ae | b25288c42a67d8639195f3fddef698f5cd179aac | refs/heads/master | 2022-03-18T02:58:27.506082 | 2022-03-13T12:11:18 | 2022-03-13T12:11:18 | 197,040,319 | 0 | 0 | null | 2019-07-15T17:14:20 | 2019-07-15T17:06:36 | null | UTF-8 | Python | false | false | 1,042 | py | # Say you have an array for which the ith element is the price of a given stock on day i.
# If you were only permitted to complete at most one transaction (i.e., buy one and sell one share of the stock), design an algorithm to find the maximum profit.
# Note that you cannot sell a stock before you buy one.
# Example... | [
"sanchibadkas@gmail.com"
] | sanchibadkas@gmail.com |
f2a0f2554553caf14c358e31a7c6a467e481fa1d | e096f35070c78472661bf425176c9b39b7405eed | /python/log_analysis/log_velocity_to_file.py | 9ea5d302c3ed3c06997c238dd3f02dc5f3666195 | [] | no_license | ripl/lcm-python-scripts | 50c09bb6fbea6ee8f5277e07a046b7766dd4ac91 | aa5820cf4b9881d96a9f3ea88a2934f1693b45bf | refs/heads/master | 2021-09-24T14:33:21.042042 | 2018-10-10T15:52:21 | 2018-10-10T15:52:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | from time import time
import lcm
from ripl.orc_debug_stat_msg_t import orc_debug_stat_msg_t
from ripl.velocity_msg_t import velocity_msg_t
import threading
from sys import argv
class log_lcm_listener(object):
def __init__(self, log_name):
self.lc = lcm.LCM()
self.base_lcm_msg = None
self.su... | [
"mwalter@ttic.edu"
] | mwalter@ttic.edu |
9e36f8b04946d9147e7be4c63f951e7ed275219c | 033407a52993a19ac4299a459a1ef01df4ec3d26 | /scripts/cluster_data.py | de22bebcb58e3c94ad4ac1a33e1ebb51946d1d55 | [
"BSD-3-Clause"
] | permissive | oxpig/learning-from-the-ligand | 27070e883b6b7780801a7a31d310e68fd81d1bd8 | 4ab2d72994c403d72549bcbff5abd8620b91527c | refs/heads/master | 2023-01-07T23:26:13.518102 | 2020-11-17T15:50:28 | 2020-11-17T15:50:28 | 296,307,884 | 4 | 1 | BSD-3-Clause | 2020-11-17T15:50:30 | 2020-09-17T11:35:21 | Jupyter Notebook | UTF-8 | Python | false | false | 4,327 | py | """Clusters the PDBbind 2017 refined set by 90% similarity to proteins in the core set.
Usage:
cluster_data.py [-h] <pdbbind_2016_dir> <cluster_file> <training_set_file> <test_set_file>
Arguments:
pdbbind_2016_dir top-level directory of the PDBbind 2016 database
cluster_file file containing BL... | [
"FBoyles@users.noreply.github.com"
] | FBoyles@users.noreply.github.com |
38b53f3d8bc7344999eff20c47386782a5e8d5bc | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/connectedk8s/azext_connectedk8s/_utils.py | 2a988f348cfbba081397f4cb65ee1a28e28fadda | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 26,287 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
2972890ca8b9bc86b37c737a11cd49d5efe0d684 | 48e37a05093c797b96133455b771354ef60d231c | /perceptronTest.py | d958682d3f019c146ee0253e8282ed643218f352 | [] | no_license | StewartFong/deepLearning | f3757250b33040d7ddfe46338c5de6e45852c63e | d4c7f7d77a2b8daf94bb2640f43ec60f89c23bb7 | refs/heads/master | 2021-01-18T16:59:25.680092 | 2017-04-20T08:09:21 | 2017-04-20T08:09:21 | 86,779,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | import numpy as np
import pandas as pd
import perceptron as pt
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
df = pd.read_csv('./iris.data',header=None)
y = df.iloc[0:100,4].values
y = np.where(y=='Iris-setosa',-1,1)
X = df.iloc[0:100,[0,2]].values
ppn = pt.Perceptron(eta=0.1,n_iter=10)
p... | [
"fongzeo@gmail.com"
] | fongzeo@gmail.com |
0dbf59418bfb45e7f93191e3e49627ee0ad3dfee | f3b233e5053e28fa95c549017bd75a30456eb50c | /jnk1_input/26/26-24_MD_NVT_rerun/set_7.py | 315e7341f06312978ff865a1d5b6bd3680458db7 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | import os
dir = '/mnt/scratch/songlin3/run/jnkl/L626/MD_NVT_rerun/ti_one-step/26_24/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_7.in'
temp_pbs = filesdir + 'temp_7.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in la... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
43da45409a62395c63dc06135e37a58a4f087665 | 41c605bf3a002a757cb2344cff526d7a7ae56ea9 | /plotly/graph_objs/funnelarea/__init__.py | 1d50afd8acbf77872facfc0cdfb7eda983e73ff3 | [
"MIT"
] | permissive | Jonathan-MW/plotly.py | 9674b90b5de11fd9089e6afefd04b57bc4587829 | 7528c00772f44dee24c0df7e15d70a4852f171a8 | refs/heads/master | 2020-05-30T06:04:13.621478 | 2019-05-31T10:34:15 | 2019-05-31T10:34:15 | 189,571,988 | 2 | 0 | MIT | 2019-05-31T09:59:53 | 2019-05-31T09:59:53 | null | UTF-8 | Python | false | false | 62,191 | py |
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Title(_BaseTraceHierarchyType):
# font
# ----
@property
def font(self):
"""
Sets the font used for `title`. Note that the title's font used
to be set by the now depr... | [
"noreply@github.com"
] | noreply@github.com |
9a350a1e02190f8e9335b851789a6fb8e807266f | ad8ded1e86419d13a692b974a4fe83786a4dbdb1 | /six_sept/programiz/one.py | b8beeb9195487f66e3c9d5e7ea608c9081490292 | [] | no_license | avengerryan/daily_practice_codes | 9934d7d6c1be2c8e89567e327ccd4af5a8eb89c2 | 34b1d8b772694de9414a15269fdc59284d74c11b | refs/heads/master | 2022-12-23T13:59:54.968089 | 2020-09-14T09:28:27 | 2020-09-14T09:28:27 | 295,375,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py |
# Illustrate different set operations
# define 2 set variables and let us perform set operations: union, intersection, differnece and symmetric difference
# Python offers a datatype called set, whose elements must ne unique.
# define three sets
E = {0, 2, 4, 6, 8}
N = {1, 2, 3, 4, 5}
# set union
print('Union of... | [
"avengerrmk@gmail.com"
] | avengerrmk@gmail.com |
858ead6f49b3990656b4f1e64e109108e372eb19 | 3c46fc1dc783d852068e7cea4c2d889441f44e5c | /Yejun/a117_traversing_turtles.py | 132ca784ae84713a0710975993d48798c0c0924b | [] | no_license | YejunShin/ok | af0547da69c388aae57f0117a7522ae2e6a58734 | 3410b4bbba38fb94d223d471ebf976d6d55e6072 | refs/heads/main | 2023-08-20T23:28:33.031358 | 2021-10-27T19:57:18 | 2021-10-27T19:57:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | import turtle as trtl
# create an empty list of turtles
my_turtles = []
# use interesting shapes and colors
turtle_shapes = ["arrow", "turtle", "circle", "square", "triangle", "classic", "arrow", "turtle", "circle", "square", "triangle", "classic"]
turtle_colors = ["red", "blue", "green", "orange", "purple", "... | [
"noreply@github.com"
] | noreply@github.com |
c258dad73d7f55d76bb09326f7f9827f92373fbe | 1ee26dbdab85038e6411712d9128aaa6500d1f51 | /rnn_model/model_tr.py | 1a725ebe4c6cdc9c838269d920034380d191ec2d | [] | no_license | YuxingZhang/prescription | a9ffa8f7d06f495010162f80319d9c532f4be685 | f5738846624b477f6fe80a3b953142479a3b6924 | refs/heads/master | 2021-05-04T10:45:26.556519 | 2017-01-31T10:17:23 | 2017-01-31T10:17:23 | 52,454,935 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,245 | py | # use linear 1-hidden layer neural network to combine lhs embedding with RNN embedding, then output the lhs embedding
import numpy as np
import theano
import theano.tensor as T
import lasagne
from collections import OrderedDict
from settings import CHAR_DIM, C2W_HDIM, WDIM, SCALE, N_BATCH, GRAD_CLIP, REGULARIZATION, L... | [
"zhangyx233@gmail.com"
] | zhangyx233@gmail.com |
69876f7acf5e525e713fa8bb7a03cbeed0882f58 | 0a2702822c02f05a4e58342409adec9e2895a1ea | /svm.py | 50d962d6eddebdbcc7c75ff84269b2e2e08bb075 | [] | no_license | jerrybonnell/philograph | 3a8f4583955f8fb80ea79f62b8c62a42ad4d2088 | e855549f185f55ef09094ae40dc97d7e6e8695c6 | refs/heads/master | 2020-03-25T13:28:48.026375 | 2018-08-07T06:32:35 | 2018-08-07T06:32:35 | 143,827,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,022 | py | '''
name: svm.py
last modified: 14 mar 18
scikit support vector machine
'''
from sklearn.datasets import load_files
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn import svm
from sklearn.svm import SVC
from sklearn.pipeline i... | [
"jerrybonnell@Jerrys-MacBook-Pro.local"
] | jerrybonnell@Jerrys-MacBook-Pro.local |
4841102767e2a141ed6c0b60f40bb9fd4e63fccc | c406ea0f453d74842f38b50fc19e73a7be5eb552 | /plotWindow.py | f9f8ff9929738bf5d187c2788bbbfb0f532c6b1b | [] | no_license | sanatanSharma/Packet-Sniffer | a31f24ea6cad05c61b3ffb6319a820ad59ead445 | b4f0204a595276754585509e6fab37fbe61c9a08 | refs/heads/master | 2021-01-10T03:57:30.102301 | 2016-03-27T20:07:29 | 2016-03-27T20:07:29 | 53,147,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'plotWindow.ui'
#
# Created: Wed Mar 9 22:13:04 2016
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
import netifaces
try:
_fromUtf8 = QtCore.QString.fr... | [
"sanatansharma1996@gmail.com"
] | sanatansharma1996@gmail.com |
f6012aea9501255f4a81796810ce43a16f9d87ce | 305c91b5cf6c8df96c6f0f0190f7258f784e97fe | /build/lib/intersect/featureExtractors/video/eyesTracking.py | 66b9518deae55afaf4614e2d478eeae74b0f2aed | [] | no_license | sarat-ravi/old-intersect | aed55731da35d3d83f2d52779486ea1291262cec | f5529146831ba860c6e462dc4f5d1c9cadb900b7 | refs/heads/master | 2021-05-27T11:15:25.963102 | 2012-10-16T16:26:38 | 2012-10-16T16:26:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | import cv
haarEyes = cv.Load('../../util/opencv/data/haarcascades/haarcascade_eye.xml')
#haarNose = cv.Load('../../util/opencv/data/haarcascades/haarcascade_mcs_nose.xml')
#create window
cv.NamedWindow("w1", cv.CV_WINDOW_AUTOSIZE)
#get camera
camera = cv.CaptureFromCAM(-1)
storage = cv.CreateMemStorage()
#the ind... | [
"sarattallamraju@gmail.com"
] | sarattallamraju@gmail.com |
cf9672714199bd408118c63132d3fa48bad96896 | 9ce8a834e0c3bc10d5bf68102dc1d4ca68969221 | /naukri_com/naukri_com/pipelines.py | d3d841758aea57710c738d5f6c05e5a0bf7730e3 | [] | no_license | goyal-vi/Scrapy | 9d7795a21a085386cb7f19e560da69091c01630d | 10f533a5b4826ceaea6dae810d23be9bcb0b59a1 | refs/heads/master | 2020-03-29T06:43:05.606244 | 2018-10-19T16:34:11 | 2018-10-19T16:34:11 | 149,637,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import datetime
class NullValueHandlerPipeline(object):
def process_item(self, item, spider):
attributes = ["job_t... | [
"vishnugoyal15cs@aryacollege.in"
] | vishnugoyal15cs@aryacollege.in |
5a8dd459ebdd018f8c66fc542395695651c5d86e | 6951c0757c8e1e96ac0506739995de084a8f3a9b | /overview/p22_functions/test_task2.py | 8a5250b3e45900f9b33daff2e968b36912cc10ef | [] | no_license | ElazarNeeman/python_zth | 3b6df77e76ed60ae39027c7c4d551f7dd0b5959d | cf50b5b8fb7ce27ebdd4bf7b0fb8642fff5a675a | refs/heads/master | 2022-01-10T18:45:19.216481 | 2019-07-15T05:58:41 | 2019-07-15T05:58:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py |
from unittest import TestCase
from utils import check_output
class TestTask(TestCase):
def test_task(self):
check_output("""[34, 15]
sample is 12, avg is 11.0
True
sample is 10, avg is 11.0
False
""")
| [
"awaizman@gmail.com"
] | awaizman@gmail.com |
c5cef68b6cec709ede680fcc8ca5b24855609bb7 | f5c0e62aa391ab22136a3cb1549c124ed64fde3c | /python/020/problem_020a.py | 794b8fb8400f46cf2f747ce9d96a0d3aa57fffcc | [] | no_license | vivekpabani/codeabbey | cc2381d5f99c396a4f182b8ee9f2b1a8f1997451 | 410acb4c30edcdeadb0013cac614c5b44a8f7e75 | refs/heads/master | 2021-01-15T22:29:13.974958 | 2015-06-13T22:27:54 | 2015-06-13T22:27:54 | 29,312,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | #!/usr/bin/env python
"""
Problem Definition :
"""
__author__ = 'vivek'
import time
startTime = time.clock()
def count(s):
return str(len(filter(lambda x : x in 'aeiouy', s)))
filename = 'input.txt'
data = open(filename, 'rt').readlines()
print ' '.join(count(data) for _ in xrange(int(data[0])))
print "R... | [
"viky.pabani@gmail.com"
] | viky.pabani@gmail.com |
37fefa600fcdc4c403857557f6a6eb94e25b1234 | d3daa3f262ff7735fbb831b72c7c21f7b9f34496 | /Visualization of COVID19 data/world.py | 23cfed7ce5a87428320bfd00eecc430fa199eb60 | [] | no_license | chandbud5/ML-geek | b5f83cb750057635f7d7bfc249c3177e59a4ed6d | 2d3ccc70ea5ff56a33a64b7ea542e9746636269b | refs/heads/master | 2022-08-26T10:32:11.496920 | 2020-05-28T09:30:59 | 2020-05-28T09:30:59 | 264,594,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
df = pd.read_csv("D:\Datasets\Corona\owid-covid-data.csv")
dfw = df.loc[df['location']=='World']
dt = dfw['date'].values
y = dfw['total_cases'].values
plt.plot(dt,y,'r--')
plt.xticks(np.arange(0, 138, 10), rotation=-90)
plt.title("Total... | [
"noreply@github.com"
] | noreply@github.com |
25dd3a7f073792d6cc69bc98506aae38efb5cb1d | e52d0feabfa7a4799bc2e8b5fd3b084986372b62 | /wyw/wyw/wsgi.py | 42ccf60fee3c34f101be8dee89fcc798633a5397 | [] | no_license | AManMustHaveACode/test | c54250bb974f0dabd1454deb6a4341f9fdd04cf9 | f018bea6b8e5bdd22923c2fddf2c9dda5df3ac12 | refs/heads/master | 2021-05-13T16:59:19.425465 | 2018-01-10T14:00:09 | 2018-01-10T14:00:09 | 109,942,467 | 0 | 0 | null | 2017-11-08T07:39:04 | 2017-11-08T07:29:28 | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for wyw 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/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_... | [
"William.Wang@aniu.com.cn"
] | William.Wang@aniu.com.cn |
77e03ec4b537fd119009cff84d08e25fe63682a2 | 95b1c0959b66d87a5adb63019394757ad44e0a0f | /Blog/migrations/0007_alter_content_subject.py | ac2a4cc896d0e2a6273f1cd4ca1f013866a07f7e | [] | no_license | RashedEmon/E-Learning | f365ecb829f0232f9c5d04ed569271d4105c3b6a | 1a27f44fdc53eba5538f1e282dbb0bf006f2aedf | refs/heads/master | 2023-08-10T22:01:48.786845 | 2021-09-13T06:25:28 | 2021-09-13T06:25:28 | 405,856,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # Generated by Django 3.2.4 on 2021-06-29 17:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Blog', '0006_content_subject'),
]
operations = [
migrations.AlterField(
model_name='content',
... | [
"rashedulb13@gmail.com"
] | rashedulb13@gmail.com |
45f21066e6b40766a385b6d44a52ee81c90e9038 | f337bc5f179b25969ba73e7680ffb0a0616e3b97 | /python/Programmers/압축.py | d885803689d55ac754078635c0323baf65573504 | [] | no_license | raiders032/PS | 31771c5496a70f4730402698f743bbdc501e49a3 | 08e1384655975b868e80521167ec876b96fa01c8 | refs/heads/master | 2023-06-08T10:21:00.230154 | 2023-06-04T01:38:08 | 2023-06-04T01:38:08 | 349,925,005 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | """
https://school.programmers.co.kr/learn/courses/30/lessons/17684
[3차] 압축
풀이1.100점
"""
def solution(msg):
answer = []
dictionary = dict()
for i in range(1, 27):
dictionary[chr(i - 1 + ord('A'))] = i
last_sequence = 27
i = 0
while i < len(msg):
w = msg[i]
while i + 1 ... | [
"nameks@naver.com"
] | nameks@naver.com |
480fd5595117d08f8f1e74d0ddbda121f7dadff2 | 4c4785ed8f5fed43891872f69d01fa3bc1192136 | /16_Machine Learning with Tree-Based Models in Python/09_Gradient_Boosting.py | 891da5c5aea3f935a733b8efe99ef932f0776d21 | [] | no_license | CodeInDna/Data_Scientist_With_Python | 6ed04534948fe692169b56c72b4021b32eb35751 | 9820f4ae232317cec4d13a3eb26e3a59ba98c31b | refs/heads/master | 2020-09-23T14:19:37.426778 | 2019-12-23T15:39:15 | 2019-12-23T15:39:15 | 225,519,493 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | # Define the GB regressor
# You'll now revisit the Bike Sharing Demand dataset that was introduced in the previous chapter. Recall that your task is to predict the bike rental demand using historical weather data from the Capital Bikeshare program in Washington, D.C.. For this purpose, you'll be using a gradient boosti... | [
"ykarelia323@gmail.com"
] | ykarelia323@gmail.com |
44d1c356795a3f33a7b06a0a997d7a64361c2e5a | a043b5c950596cbfe65720840b4122d76fbb9a33 | /baselines/clinc_intent/sngp.py | 503a5bc840cd22ecdacd70b659a09f6160b0b5be | [
"Apache-2.0"
] | permissive | lilujunai/uncertainty-baselines | e5a73b4ec4c8b9b6f3b54b02064598406298253d | 7f529d426d67f27185b1526e74a5cfcfe0e937f7 | refs/heads/master | 2023-01-19T07:03:54.055881 | 2020-11-19T23:51:34 | 2020-11-19T23:52:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,832 | py | # coding=utf-8
# Copyright 2020 The Uncertainty Baselines 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 ap... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
0d221ea9321948901060631c15e09af6c5d79f3e | 8040e42ae636f971fb8018f5a2b17b28e864b6c8 | /Lesson 3/closedsummation.py | 7f4aaab0febc822db9ec89282958d15b8fd0e3a3 | [] | no_license | mariesstl/SWDV-610-3W-20SP2 | 9d5aee54ea63975301b53a7c6f73ffbb052f6d0d | 4f75296e43caf58123123ee6cbf28779d975714a | refs/heads/master | 2021-05-18T07:08:44.655391 | 2020-05-03T06:25:57 | 2020-05-03T06:25:57 | 251,172,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | def sumofNumber(number):
return(number*(number+1))/2
for i in range(5):
print("Sum is %d required:%10.7f seconds:"%sumofNumber(100000))
| [
"noreply@github.com"
] | noreply@github.com |
a946b4dc8f65dae073a32eb56d2cd8c524cc983d | a8c59aa8bbc7fd6435e1c97c21f7a5ce4fa9c219 | /TreeDS/InOrder.py | 495e19f576201085578bac236f918ee3d68cf3f9 | [] | no_license | vsikarwar/Algorithms | 7529843245f7c813cb85ad8d32c5ec77bdc1f681 | c8331de29c92ce0cdb6f28b31d3913b126dc7d53 | refs/heads/master | 2021-05-31T11:25:50.579943 | 2016-06-20T07:43:48 | 2016-06-20T07:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | '''
http://www.geeksforgeeks.org/inorder-tree-traversal-without-recursion-and-without-stack/
Inorder Tree Traversal without recursion and without stack!
'''
#TODO | [
"vsikarwar87@gmail.com"
] | vsikarwar87@gmail.com |
9a9082d5a71fccbd64436f9906a2f481e3e6bae2 | 17fb6b997c2ab707651fe719f1456dfae3aae052 | /uvaonlinejudge/10731 - Test.py | 6a37032df15370809e370189129a179521a58861 | [] | no_license | dmitry-pechersky/algorithms | 40b6184400bcf818c2590b9413ce1bf510b3b355 | 74f13f6e256c2e0c1503ec4bafa6b3e0f227fe2c | refs/heads/master | 2023-05-31T14:20:51.882551 | 2023-05-11T06:59:53 | 2023-05-11T06:59:53 | 122,305,451 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | def read_test_case():
m = int(input())
if m == 0:
return None
adj_list = []
dic, words = {}, []
for i in range(m):
letters = input().split()
for letter in letters:
if letter not in dic:
words.append(letter)
dic[letter] = len(words) ... | [
"whoisdmitry@gmail.com"
] | whoisdmitry@gmail.com |
10f26951642d1479230b1d7838ed6428fc350b43 | a2de196944d01850b7796d86e76daa48fa0e6e02 | /faceCount/cameraShow.py | 4ee69041758aeba473e222ba84fab77f6629b992 | [] | no_license | kimasenbeck/Stanchion | 98a829f60878a312d81b1034c5e17786c38a08dc | 27599914368c395239676ee3d0ccf8017e659dd2 | refs/heads/master | 2020-05-30T14:26:32.709007 | 2015-09-20T08:54:16 | 2015-09-20T08:54:16 | 42,785,659 | 0 | 0 | null | 2015-09-20T14:13:44 | 2015-09-19T18:55:03 | Python | UTF-8 | Python | false | false | 260 | py | import cv2
cap = cv2.VideoCapture(1)
while (True):
ret, image = cap.read()
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
cv2.imshow("camera", image)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
| [
"vasu_agrawal@yahoo.com"
] | vasu_agrawal@yahoo.com |
d5253492be0fb197bfd0496a00963b2b762e1b3d | 08822413c041552656e322e5fdbfbdc69f39c0da | /build_db.py | dfd50d50855ea3b9d7dee96e481f5e1a2540ff92 | [] | no_license | hwa0jang/CareU | 2844c8d171fc681f22bd985dcd033d198d1a2fae | dc91766b276780b6c500d02ee6d0940ebb6fc048 | refs/heads/main | 2023-02-01T10:41:59.567277 | 2020-12-15T21:18:34 | 2020-12-15T21:18:34 | 320,557,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | import sqlite3
import argparse
parser = argparse.ArgumentParser(description="arguments for building a test database.")
parser.add_argument('--db', default='hospital.db', help='sqlite3 database')
parser.add_argument('--schema', default='schema.sql', help='schema definition')
parser.add_argument('--data', default='hospi... | [
"jwy4881@naver.com"
] | jwy4881@naver.com |
c7b46febd9a80ad6259fb48260fe8a7b196963ef | 15cedab2ca5660fa7282036fee61974d47c1862f | /property/migrations/0001_initial.py | 790661255d8cccecc4df1887f95e7b915d0ecaaf | [] | no_license | Gaurav-bh/Property_management | 586066b90f4b3a16e8471c807223320cfe855cda | 16f3fd4dfa0eb387bd8b7e7738e697834225ea73 | refs/heads/master | 2022-11-25T21:00:17.328613 | 2020-07-30T04:41:53 | 2020-07-30T04:41:53 | 281,425,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | # Generated by Django 3.0 on 2020-03-25 17:11
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Property',
fields=[
('id', models.AutoField(a... | [
"gb19101998@gmail.com"
] | gb19101998@gmail.com |
c5baea97447b402d4a27d5d287f85562afbc6f20 | 139bcabc7f724e5ff163eb065bbca5f78034450d | /tests/test_meaning.py | 907337c0356afa4b5febc8a9b1949ed63376663b | [
"Apache-2.0"
] | permissive | cdpierse/breame | b612a6e6a960030dafe643b3e7ed25d271c6cb27 | 1bd0758ff625b155e5bc3687e6c614a8755b0e6d | refs/heads/main | 2023-08-17T07:46:28.213314 | 2021-10-04T10:21:06 | 2021-10-04T10:21:06 | 408,470,171 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | from breame.data.meaning_constants import DIFFERENT_MEANINGS_US_UK_COMMON
from breame.meanings import different_meanings_exist, get_meaning_definitions
def test_different_meanings_exist():
for meaning in DIFFERENT_MEANINGS_US_UK_COMMON:
assert different_meanings_exist(meaning)
def test_different_meaning... | [
"charlespierse@gmail.com"
] | charlespierse@gmail.com |
4854ad6f74c351ff18efff9437bc795e9de8c5e7 | 8da0ad6aed9c7f25ad6c2938f5106b174c943cd8 | /trainer.py | ed3aff1e263c0d49a75cd8d3dd755aed2dab5189 | [] | no_license | CreaterLL/Pretraining-CLIR | 4d01f7af6cd2431aca18f3d4efe159b3460ff099 | 32423a7af33beb0412e08064c0883f9740029e6f | refs/heads/master | 2023-06-24T11:15:14.873534 | 2021-07-20T17:46:29 | 2021-07-20T17:46:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,488 | py | import os
import math
import time
import copy
import numpy as np
from logging import getLogger
from collections import OrderedDict
import apex
import torch
from torch import nn
from torch.nn import functional as F
from torch.nn.utils import clip_grad_norm_
from torch.utils.data import DataLoader
from torch.utils.dat... | [
"puxuan@asimov-7.svail.baidu.com"
] | puxuan@asimov-7.svail.baidu.com |
c37871887b09d2659db01a5f99c19f028d015c89 | 2180a6e2ab8245a9ed980cdf4b95279043b44ee4 | /optimization/parse_table_datacmds.py | 91df74b76d09b3fc80ae721f8c6ec26d6d2f7f71 | [] | no_license | jessicasunya/zice-2014 | 5d9f09fc74a0e7752cb6c5ce6d912ae22c83c20e | 4aa450c465044600a604d40290fa927096e45a41 | refs/heads/master | 2020-06-11T01:47:34.072195 | 2014-02-05T19:29:52 | 2014-02-05T19:29:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,256 | py |
# /Users/clarissasweet/Dropbox/zice-2014/optimization/parse_table_datacmds.py
# This file is automatically generated. Do not edit.
_tabversion = '3.2'
_lr_method = 'LALR'
_lr_signature = '\xa29\x9a\x8d\xac\x17er\x03\xef\xcd\x7f \t8\xce'
_lr_action_items = {'QUOTEDSTRING':([5,6,9,11,12,31,32,33,34,35,36,37,38,39... | [
"drobert.pugh@gmail.com"
] | drobert.pugh@gmail.com |
89461bcdad9cff6bebe4cc3fd352934d287418fb | 81c07a76c5013583280c6279d656be7638f17792 | /apps/echo_server/test.py | d1358c8c1c2e47d310e4590b0149f0161d782a11 | [
"MIT"
] | permissive | AjayBrahmakshatriya/trusted_browser | 41c24a4a765cc42250044371416a4c404381f1c8 | 256bb2373e3abe7032faaba84706219e22d89d53 | refs/heads/master | 2021-07-17T23:28:09.005244 | 2020-06-19T15:16:20 | 2020-06-19T15:16:20 | 181,587,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
import time
import sys
def run_test():
print "Running echo server test..."
chrome_options = Options()
chrome_options.add_argument("--headless")
domain = "localhost"
if len(sys.argv)... | [
"ajaybr@mit.edu"
] | ajaybr@mit.edu |
ff1c5517b56920922b2e61460fdb4203c04ac9a1 | 33febf8b617ef66d7086765f1c0bf6523667a959 | /probpy/inference/conjugate/bernoulli.py | 9ef2ab5b1170d6b7d6b6e3e7c07efbca855f18ab | [] | no_license | JonasRSV/probpy | 857201c7f122461463b75d63e5c688e011615292 | 5203063db612b2b2bc0434a7f2a02c9d2e27ed6a | refs/heads/master | 2022-07-07T06:17:44.504570 | 2020-04-15T14:52:20 | 2020-04-15T14:52:20 | 245,820,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | from probpy.core import RandomVariable
from typing import Tuple
from probpy.distributions import beta, bernoulli
from probpy.inference.conjugate.identification import _check_no_none_parameters, _check_only_none_is
class BernoulliBeta_PPrior:
"""predictive conjugate for bernoulli likelihood with beta parameter pri... | [
"jonas@valfridsson.net"
] | jonas@valfridsson.net |
524e8f75d190e053c9c468f5cf67f92f1260aa13 | 94ee1e5383201c5911a6c76095df19541dd13366 | /ChorusGUI/run_probMW.py | c1bd0e977879d1ea98a64966bc188a6b3d51f01f | [
"MIT"
] | permissive | zhangtaolab/Chorus2 | f74ee55104683f9492454a127e29bc486cdf7191 | 8d695578e9f302daea99a63b5be0990650ad3479 | refs/heads/master | 2023-07-12T03:09:59.158606 | 2023-07-03T03:01:29 | 2023-07-03T03:01:29 | 173,018,157 | 13 | 12 | MIT | 2020-07-26T13:11:23 | 2019-02-28T01:25:50 | Python | UTF-8 | Python | false | false | 12,813 | py | import numpy as np
from PyQt5 import QtWidgets, QtGui, QtCore
import sys
# from ChorusGUI.probMW import Ui_MainWindow
# from ChorusGUI.Probes import Probes
from probMW import Ui_MainWindow
from Probes import Probes
from matplotlib.widgets import SpanSelector
import pandas as pd
import os
class DesMainWD(QtWidgets.QMai... | [
"forrest_zhang@163.com"
] | forrest_zhang@163.com |
c5f7a99036bd3fcc65d1ae352d6c445659ba366d | 1a7b47bb1ff483b236211aaa5cc648b9c7854853 | /Lab4/dataset/marmot_test/raw.py | 96fc2b54d1d0a07c059282ce25a8077877ea62b9 | [] | no_license | ruoyuryc/Deep-Learning-and-Practice-2020-Spring | 4929ed3aa83312029daf724d76554f8768a23e4c | 7ac9fc9163635aff8ae386c610396ae4646f8095 | refs/heads/master | 2022-10-20T04:45:37.648427 | 2020-06-15T15:24:25 | 2020-06-15T15:24:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224,172 | py | import json
import re
raw = [('abandonned','abandoned'),('aberation','aberration'),('abilties','abilities'),('abilty','ability'),('abondon','abandon'),('abbout','about'),('abotu','about'),('abouta','about a'),('aboutit','about it'),('aboutthe','about the'),('abscence','absence'),('abondoned','abandoned'),('abondoning',... | [
"s1357andy871207@gmail.com"
] | s1357andy871207@gmail.com |
ce8b0ccddfd7609297323b335c25e3b87c13527f | 12069a0145682efe422a8aa174b850875fb3e36d | /leetcode_python/Tree/most_frequent_subtree_sum.py | bf5260e427e1228c797071b53e3abf3fc9a3fc02 | [] | no_license | ChillOrb/CS_basics | 313c8293f54e44993fa83595ff7fea21c30fa952 | 5195b032d8000a3d888e2d4068984011bebd3b84 | refs/heads/master | 2023-07-08T00:29:01.312220 | 2021-09-07T00:25:18 | 2021-09-07T00:25:18 | 403,811,622 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,469 | py | # 508. Most Frequent Subtree Sum
# Medium
#
# Given the root of a tree, you are asked to find the most frequent subtree sum. The subtree sum of a node is defined as the sum of all the node values formed by the subtree rooted at that node (including the node itself). So what is the most frequent subtree sum value? If th... | [
"f339339@gmail.com"
] | f339339@gmail.com |
887eb9563d4fdde01071692b7a09b5f1cd7e623e | 508bb4b0877c9c19538291486eefabf8ab8e3bb9 | /ArchDaily/spiders/archdaily.py | 59776b23391c1978f6d3e1de97cb72b03cbf4d4f | [] | no_license | rtfeng/ArchDaily | 41c06c3e13b53a0d45c69927d7facffa6bc41181 | 7c763ea0b759d088b6f556d2da39da9a9329e9e9 | refs/heads/master | 2021-09-14T07:02:14.929212 | 2018-05-09T07:04:26 | 2018-05-09T07:04:26 | 131,031,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,634 | py | # -*- coding: utf-8 -*-
import scrapy
import re, os, datetime
from ArchDaily.items import ArchdailyItem
from scrapy import Selector, Request, log
class ArchdailySpider(scrapy.Spider):
name = 'archdaily'
allowed_domains = ['www.archdaily.com']
# start_urls = ['https://www.archdaily.com/']
start_urls = ... | [
"halertfeng@gmail.com"
] | halertfeng@gmail.com |
6331adc8b57af06bf4c3d8ec2aee6b208e54a461 | e582e61f60434f4f07ed7f0dcfe0a49bfa151a1a | /model_tm.py | fedb983e37b60e01cd49d35efdc5ae9b3a0d217d | [] | no_license | Rosaniline/CarND-BehavioralCloning | 7746fc49f0df82e0a06560280cc00f56d62a093f | 34232d356c7edd93a64deed073a50cf7cf9ab3a4 | refs/heads/master | 2020-03-27T22:23:30.049793 | 2018-09-04T14:20:47 | 2018-09-04T14:20:47 | 147,226,748 | 0 | 0 | null | 2018-09-03T16:02:45 | 2018-09-03T16:02:45 | null | UTF-8 | Python | false | false | 7,264 | py |
# coding: utf-8
# In[1]:
import pandas as pd
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import os
import sys
from sklearn.model_selection import train_test_split
from sklearn.utils import shuffle
import cv2
from keras.models import load_model
from keras.models import Sequential
from keras.... | [
"pin_lin@trend.com.tw"
] | pin_lin@trend.com.tw |
6a4b2e145f40c959e23399889cfea28fad1ad7ba | f8032055a1d0bfcc328ab52409d8451c1f5cee64 | /src/blog/migrations/0001_initial.py | bdab009279ee9ac34329d34bdac97e39ed1dcb72 | [] | no_license | SpeedSick/onekbtu-django | f1db13398959b51c7ce3675fe90e845cef8ab064 | 1a5198af36980964d65b7d7cbe1b39dfc6dc305d | refs/heads/master | 2020-04-20T13:42:05.363750 | 2019-02-02T20:58:16 | 2019-02-02T20:58:16 | 168,875,788 | 0 | 0 | null | 2019-02-02T20:42:18 | 2019-02-02T20:42:17 | null | UTF-8 | Python | false | false | 544 | py | # Generated by Django 2.1.4 on 2019-01-02 17:21
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(aut... | [
"muslimbeibytuly@gmail.com"
] | muslimbeibytuly@gmail.com |
1e56f13587ecadb0d8cf92d0896eb30fa2dd6514 | 2b8bb3cf9c140e363592e19398fb639a40d321e7 | /WarehouseProfiles.py | 897c2e7cc28cbfd4556719ff94fa9769c7665b77 | [] | no_license | VinceBa/Warehouse-Profiles | c68370284f7a8c789f7449bf9dc99272fb2eaaed | e2fae223408bd6f5915c6e7e7a0bae4252edcb9b | refs/heads/main | 2023-03-20T23:25:45.720234 | 2023-03-09T17:52:13 | 2023-03-09T17:52:13 | 328,413,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,116 | py | #
#
# A python macro for Freecad
# to easely and quickly build profiles
# wrote by Vincent Ballu
# any remarks: vincent.ballu@gmx.com
# release as a freeware: on your risks.
# check all dimensions for a professional use!
# suitable use:
# automatic: select an edge on 3D display (sketch, line...) then launch... | [
"noreply@github.com"
] | noreply@github.com |
63ec5eccfc491a2921fe75994e203d976bc35358 | f07fd563c67f6da73caaaba205c6a56242805266 | /Model_training/5_train_test_split.py | 175981c78bd4a36967690264522c643b7550e5e8 | [] | no_license | stankusnt97/StrideTech-AI-Deploy | 98df0bfe5cd55f948e495c8a8bccb00012a5d407 | 5943286698040ed0f05f5d374ee60baeda9691d9 | refs/heads/master | 2023-01-20T08:28:32.462657 | 2020-12-03T20:05:24 | 2020-12-03T20:05:24 | 318,306,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py |
import numpy as np
from sklearn.model_selection import train_test_split
X = np.load('framed_X.npy')
Y = np.load('framed_Y.npy')
X_train, X_test, y_train, y_test = train_test_split(X, Y, test_size = 0.2, random_state = 0, stratify = Y) # 80/20 split on train/test, typical split
print("X_train shape is: " + str(X_tra... | [
"74618267+stankusnt97@users.noreply.github.com"
] | 74618267+stankusnt97@users.noreply.github.com |
daa0d3a1f8f62bc66605216fe7354b5fde00a714 | a6eed190690b3883954a134017e73b6506a29a64 | /apps/cards/management/commands/import_common_english_words.py | 722fa7b570225d0141d4542ed6c809603e9a8a46 | [] | no_license | ubihinon/spelling | 6069f7079e2112495d9196e5ef42346a8207e3c5 | a28e4831b188ec410e78ff980cd7035ca0c58277 | refs/heads/master | 2023-02-27T03:02:33.459006 | 2021-01-30T14:32:31 | 2021-01-30T14:32:31 | 213,395,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | import openpyxl
from django.core.files import File
from django.core.management import BaseCommand
from apps.cards.models import Card
ROOT_DICTIONARY_FOLDER = './oxford_dictionary_scraper/'
class Command(BaseCommand):
def handle(self, *args, **options):
word_dictionary = openpyxl.load_workbook(
... | [
"vladimir@what.digital"
] | vladimir@what.digital |
1cc73f66c9c69bba295a21434fc6ec62abc5c5d4 | c1da5c1530ff768d9c9ed61b70f7913eb1c4172e | /Practice/Recursion/PermutationOfArraysOfArray.py | 2361e290785e72009123f7441bc8791a9a152c4a | [] | no_license | saumyasinha023/PythonProgramming | b3773d52e1058deebeffab0315d154784c154f87 | 610474ee649df184ff24c00d869f69ffd7af52e5 | refs/heads/master | 2021-05-10T11:02:11.160595 | 2018-03-12T17:29:34 | 2018-03-12T17:29:34 | 118,398,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | class Solution():
def findPermutations(self, arr):
tmp, final = [], []
for each in range(len(arr[0])):
final = self.helper(arr, [arr[0][each]], final, 1)
print(final)
def helper(self, arr, tmp, final, index):
if len(tmp) == len(arr[0]):
final.append(tmp)
... | [
"saumyasinha023@gmail.com"
] | saumyasinha023@gmail.com |
6d1a80dc45e42a12a16da8c0ca9b41e4e896d2a3 | 69323ef926f905f2bc73bc04139c7d568fd931b2 | /Dutch Flag Partition.py | cb611d6051a63f01863d9f62f3e379ccc46879eb | [] | no_license | charlie-ww/Date_Structure_hw1_code | 1ffe38febab970d8235f47b67a0e44652eb0c80d | f128ac6c876e56d331e3e18d3cb7f981ab22260c | refs/heads/master | 2023-08-27T06:10:05.141076 | 2021-10-28T07:06:24 | 2021-10-28T07:06:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | # code from https://www.techiedelight.com/quicksort-using-dutch-national-flag-algorithm/
def swap(A, i, j):
temp = A[i]
A[i] = A[j]
A[j] = temp
# Partition routine using the Dutch national flag algorithm
def partition(A, start, end):
mid = start
pivot = A[end]
while mid <= end:
if A[... | [
"smallforest0819@gmail.com"
] | smallforest0819@gmail.com |
70190dd7c1f27c1814b8a24685b77a3a012e84bd | 317058436d87ae947d12a41841fff5c09ee34856 | /index.py | 6dcd4b6de41dfbdcc49e14d1a7686cb93bae3828 | [] | no_license | Zattri/Fortify | fe943634877696d161356dcbb27d6aa9533ebbd5 | fc7841ed19a430e6da126ca3b1a97160147b230f | refs/heads/master | 2021-05-09T16:07:25.263532 | 2018-02-03T18:43:50 | 2018-02-03T18:43:50 | 119,107,893 | 5 | 0 | null | 2018-02-03T18:43:50 | 2018-01-26T21:59:40 | Python | UTF-8 | Python | false | false | 2,272 | py | # Make a default starting value for resource dictionary
resourceDictionary = {"stone": [50, 3], "wood": [50, 3], "clay": [50, 3], "hide": [50, 3], "gold": [50, 3], "workers": [30, 2]}
# Building Index, contains all the buildings of a village
buildingIndex = [None] * 10
buildingIndex[0] = ["Stone Quarry", "A larg... | [
"noreply@github.com"
] | noreply@github.com |
fa2ec9394bf24356e2611e93ee8acea3082da037 | 1ad512e9023e7ed43f8f3647733718ba65c20ce8 | /extra_apps/xadmin/plugins/ueditor.py | 2da178fd7c6e76f66dd5682f231608c66925391f | [] | no_license | caijunrong31/MxOnline2.7 | e660bfa0619c4ef94ce9da614388370ec4c74725 | a60054a2938fcc0707be4c0903df1afa75e9cbb0 | refs/heads/master | 2020-03-10T20:18:48.010733 | 2018-04-17T14:16:06 | 2018-04-17T14:16:06 | 129,567,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | # _*_ coding: utf-8 _*_
__author__ = 'cai'
__date__ = '2018/1/13 14:12'
import xadmin
from django.db.models import TextField
from xadmin.views import BaseAdminPlugin, CreateAdminView, UpdateAdminView
from DjangoUeditor.models import UEditorField
from DjangoUeditor.widgets import UEditorWidget
from django.conf... | [
"13113389477@163.com"
] | 13113389477@163.com |
8e1a750e7c2c4b05387e141918d6b4c3e7020d8e | 6ba00ac7c7fe4b6ad0496f017b15221c9b155362 | /6_merging_lists.py | 7e49afec8b8ac2e27bda5dddea2b037f0802a157 | [] | no_license | SaveliiLapin/learning_projects | a0cdfb6479ed7fa01d3dcfda7489066c094a0366 | cbbf7efba4225955e5a160fe5034dd2b9c51cb5a | refs/heads/main | 2023-08-21T14:42:23.231001 | 2021-10-11T18:32:06 | 2021-10-11T18:32:06 | 416,041,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | def merge(aa, bb):
cc = []
p_1 = 0
p_2 = 0
for i in range(len(aa) + len(bb)):
if p_2 == len(bb) or p_1 < len(aa) and aa[p_1] < bb[p_2]:
cc.append(aa[p_1])
p_1 += 1
else:
cc.append(bb[p_2])
p_2 += 1
return cc
a = list... | [
"noreply@github.com"
] | noreply@github.com |
5ff53f04c66bc52149067232691909d9566d288d | a1dfba3829797aa0f5707401a4c688b8d51a4351 | /quotes/urls.py | affb9890382e4686099ffcff894a725d85c63997 | [
"MIT"
] | permissive | abumukhlis/mfdw_project | 1d73993844e2e985b5d5595efc28515af9f99127 | 3368a270716a0937a6acdf62b120e46c10d1c7cc | refs/heads/main | 2023-01-28T10:23:00.293205 | 2020-12-09T21:22:58 | 2020-12-09T21:22:58 | 319,397,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | from django.urls import path
from . import views
from .views import QuoteList, QuoteView
urlpatterns = [
path('', views.quote_req, name='quote-request'),
path('show/<int:pk>', QuoteView.as_view(), name='quote-detail'),
path('show', QuoteList.as_view(), name='show-quotes'),
]
| [
"codewithazeez@gmail.com"
] | codewithazeez@gmail.com |
5ab05d6eb7c9ea34dff5a334d58e2842c5f1b550 | 3d8fb949cc6f81b4cd406b82b07145c986ae3036 | /malc0de.py | b72d73a4d8b519f9a297ec1873ed77f4e5f6822d | [] | no_license | ckane/revolutionuc-cybersecurity | 8a99a256d6f722f01d15fe20da0f399317c66deb | 2778d076e8e1e2b09e78da56d48a2725aa8bfca3 | refs/heads/master | 2020-12-24T19:28:06.734914 | 2016-04-16T18:29:54 | 2016-04-16T18:29:54 | 56,092,819 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | #!/usr/bin/env python
import untangle
import sys
import json
import re
import requests
def add_domain(d, i, com):
# stolen from https://github.com/crits/crits/wiki/Authenticated-API
url = 'http://localhost:8080/api/v1/domains/'
data = {
'api_key': 'a4eab72098c263d74d23e3745b361e910fe68ffa',
... | [
"kaneca@mail.uc.edu"
] | kaneca@mail.uc.edu |
d9f7090fed4813fead0b2a20f583e935fccc1d34 | 15b17d497bb7a3edaf3aa8e55615da837737ff29 | /mysite/settings.py | 0ce2c378ffb5604f5ccf4737c2403d4c6ca8b533 | [] | no_license | kaurk123/nginx-demo | f5e7a745ba71cfac58645213017880c56084c13d | 861e468baf56358d488fd341d6b3023b7658ffb0 | refs/heads/master | 2020-03-29T20:38:07.163938 | 2018-09-25T20:04:18 | 2018-09-25T20:04:18 | 150,322,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,145 | py | """
Django settings for mysite 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 os
... | [
"fastlife0094@gmail.com"
] | fastlife0094@gmail.com |
ca196829e12d80283dfb117eec1b1041f7507d33 | 619054eaea6b93fb3ad354606029363817088285 | /rai/rai_node_gateway/rai_node_gateway.py | cec6e8d68f4859a99c91d669fb2f04d0619c20a4 | [
"MIT"
] | permissive | raicoincommunity/Raicoin | e3d1047b30cde66706b994a3b31e0b541b07c79f | ebc480caca04caebdedbc3afb4a8a0f60a8c895f | refs/heads/master | 2023-09-03T00:39:00.762688 | 2023-08-29T17:01:09 | 2023-08-29T17:01:09 | 210,498,091 | 99 | 16 | MIT | 2023-08-29T17:01:11 | 2019-09-24T02:52:27 | C++ | UTF-8 | Python | false | false | 15,653 | py | #!/usr/bin/env python
#V1.0.0
from dotenv import load_dotenv
load_dotenv()
import argparse
import asyncio
import ipaddress
import json
import logging
import os
import sys
import time
import uuid
import uvloop
import secrets
import random
import traceback
from logging.handlers import TimedRotatingFileHandler, Watched... | [
"bitharu7@gmail.com"
] | bitharu7@gmail.com |
dfa38f16796343775aab6b5aaab97725728628ce | 72c4cea551df0bee51c5740926b2fdb1feaf3470 | /tools/refactor/js_parse_perfstatic.py | d552ba2460a12738457a2a00a6339456e891d9f0 | [
"MIT"
] | permissive | joeedh/fairmotion | 2955fda64b36a634c42c3382b20f18dae189d13f | fc0bca395057cd3e78f91bcb1796b6c5eda73d2b | refs/heads/master | 2023-05-26T20:03:51.583970 | 2023-05-14T16:07:53 | 2023-05-14T16:07:53 | 34,099,859 | 1 | 0 | MIT | 2023-03-05T21:45:57 | 2015-04-17T06:13:09 | JavaScript | UTF-8 | Python | false | false | 6,077 | py | import ply.yacc as yacc
import sys, os, os.path
import traceback
# Get the token map from the lexer. This is required.
from js_global import glob
from js_ast import *
from js_lex import tokens, StringLit, HexInt
from ply.lex import LexToken, Lexer
#AST nodes that are used in intermediate stages of parsing,
#but are... | [
"joeedh@gmail.com"
] | joeedh@gmail.com |
1f29edeb5b173d78d62774a09a1d46f9f6df82b7 | c8963254f944e40478f39c7828c3c1713e1f0270 | /googlesearch/models.py | acb87fceb21054ce9cdf7991205f0195a08942ec | [
"MIT"
] | permissive | Animenosekai/googlesearch | 452d00bf56b7384d794054f684fea2bdfaefa670 | 346bcaf7b344c6cf7c8fdd63d9493648dad9a163 | refs/heads/main | 2023-06-01T02:05:01.088463 | 2021-07-02T01:48:22 | 2021-07-02T01:48:22 | 381,765,261 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | """
File containing the different classes used in googlesearch
"""
from urllib.parse import urlparse, parse_qsl
from bs4 import BeautifulSoup
from googlesearch.constants import BASE
class SearchResultElement():
def __init__(self, resultobj: BeautifulSoup) -> None:
# get the url
href = str(resultob... | [
"40539549+Animenosekai@users.noreply.github.com"
] | 40539549+Animenosekai@users.noreply.github.com |
30463a6893689613709e9817f4c3415559c6cbd7 | 4f93dfb321f96d54a38db5645e4bc22f1091c9f8 | /index.py | a5ac30d3bb5ced9be89a6c2a8f0273c9313f0a78 | [] | no_license | Cybercube125/100-Days-of-Code | c76b485a51d0e841ca5a4782789349bb8c6ef5a2 | af049e16305d8c56940afb84b1ec5d9c93528cad | refs/heads/main | 2023-05-31T17:30:18.866224 | 2021-05-29T16:18:28 | 2021-05-29T16:18:28 | 369,295,209 | 0 | 0 | null | 2021-05-29T16:18:29 | 2021-05-20T17:57:37 | JavaScript | UTF-8 | Python | false | false | 49 | py | # Yes! my first python code!
print ("hello word") | [
"esteemcube125@gmail.com"
] | esteemcube125@gmail.com |
abc41d47cf966fd630060950a5299a94b2fe8138 | 2edbf14b9423274293b1f804b65b3982644290ae | /library/migrations/0004_publishinghouse.py | f12fef5cfbc135f7886a118cb1d459b5b07f92ee | [] | no_license | kobtsev-m/Library-Site | fb4d2c197d4c7e01bf0a0100624724f723715ab6 | 80f2440bbf46366ad2eca25b25a6221f29c0f83c | refs/heads/master | 2023-01-02T02:28:19.352013 | 2020-10-21T21:59:29 | 2020-10-21T21:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | # Generated by Django 2.2.6 on 2020-10-19 12:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('library', '0003_auto_20201018_0119'),
]
operations = [
migrations.CreateModel(
name='PublishingHouse',
fields=[
... | [
"kobtsev.x@gmail.com"
] | kobtsev.x@gmail.com |
13c62545d97b06087f70b2eed17fd540d01bc661 | f54fecc8bd9d7bb260d6a5d096bd6725de3fbb76 | /utilst.py | 918c54ff23de689908c46eadc0c354f1775f2bdf | [] | no_license | shrutarv/Time-Series-Classification | 72712c11ecf13bc77effd5c810067350e30ccef8 | dcc97340fac663502f05dd94e9a8e7e3a2acd45f | refs/heads/master | 2022-12-15T22:27:59.809235 | 2020-08-28T22:02:08 | 2020-08-28T22:02:08 | 291,153,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,259 | py |
import numpy as np
import pandas as pd
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
matplotlib.rcParams['font.family'] = 'sans-serif'
matplotlib.rcParams['font.sans-serif'] = 'Arial'
import os
import operator
import utils
from constants import UNIVARIATE_DATASET_NAMES as DATASET_NAMES
fr... | [
"shrutarv.awasthi@gmail.com"
] | shrutarv.awasthi@gmail.com |
c54e132e2c3ed48eb672402557a0e4308b32bd75 | d1e28c0ad42708faa19e5ec435590deca7fa3213 | /bin/pip3 | f3694030230c6bf38d6dcd4f5e9c16d7ab5af012 | [] | no_license | ranunup/trydjango-11 | d02853b447442c547bbb835e783c1f6e638a4eb8 | 847341664287f9d64e6e9d58f8f5e3d6b159b891 | refs/heads/master | 2020-03-10T14:49:15.093948 | 2018-04-13T17:49:11 | 2018-04-13T17:49:11 | 129,435,598 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 245 | #!/Users/ndoda/dev/python/django/trydjango-11/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ndoda@ndodas-MacBook-Air.local"
] | ndoda@ndodas-MacBook-Air.local | |
5af25377a0f2d60e9b5cfb74dc02e330c572e14c | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/utp.py | b049a5c5bcf9e29814b26a11d16bdd2b1177806c | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
7d609b1f3ea4936504ad93c5663c75f832096ee4 | cf676db9ee2d56a3c7f296278d5f2818e396068a | /shell.py | 9148011ebe90a1033e1b0f2133fb2763fd08de4c | [
"MIT"
] | permissive | lines-of-codes/ConfusedScript | 9c3043f51a54561a24e5a4079a6802cbc3ef0387 | d706c8dfaa3ad0eb203dec0f3087eb5c8999ff1f | refs/heads/main | 2023-05-13T03:20:35.863742 | 2021-06-07T16:17:15 | 2021-06-07T16:17:15 | 374,379,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | import processor
from timeit import timeit
class RequestExit(Exception):
pass
print("// ConfusedScript Shell //")
print("Use \"exit ()\" (Without double quotes) or Press CTRL+C to exit")
printNone = False
try:
while True:
command = input("ConfusedScript > ")
if(command.startswith("xi (")): raise RequestExit
... | [
"49134472+lines-of-codes@users.noreply.github.com"
] | 49134472+lines-of-codes@users.noreply.github.com |
14e4c28cea28c51a2497f90a5c391d84aabb1828 | d14be9a07437f395c36c73aebfd1c5434ff4300e | /vmware_static_dhcp/cli.py | b7defeb0cbe357c0268b8710c0ca50b5f8014635 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | zcutlip/vmware-static-dhcp | f6122cdb7ca0fcd895c536d3a23e2469bfceaedc | 4f7747703bca8f440c56407c5e1437cfe9ff8cba | refs/heads/master | 2020-09-08T11:13:41.192702 | 2019-11-12T03:11:03 | 2019-11-12T03:11:03 | 221,117,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | import sys
from .vmware_static_dhcp import main as vmware_main
def main():
vmware_main(sys.argv[1:])
| [
"uid000@gmail.com"
] | uid000@gmail.com |
2b60a3dfa41d07aebae1a58a2e613f6e95eaa5d1 | a159732177503832bd6da137b6730c131bb6d60e | /pytorchTUT/302_classification.py | bc8a1bdf368b2283e49fe093637a1a50d8f7849e | [] | no_license | yulizi123/tutorials | aa53281620b23173dbc862054decd4dd43e4adb9 | f792615ef3388f8bb42759d99df2cd16ec48761e | refs/heads/master | 2021-01-20T08:25:31.671634 | 2017-05-03T12:41:03 | 2017-05-03T12:41:03 | 90,144,952 | 0 | 0 | null | 2017-05-03T12:10:59 | 2017-05-03T12:10:59 | null | UTF-8 | Python | false | false | 2,628 | py | """
Know more, visit 莫烦Python: https://morvanzhou.github.io/tutorials/
My Youtube Channel: https://www.youtube.com/user/MorvanZhou
Dependencies:
torch: 0.1.11
matplotlib
"""
import torch
from torch.autograd import Variable
import torch.nn.functional as F
import matplotlib.pyplot as plt
torch.manual_seed(1) # repro... | [
"morvanzhou@hotmail.com"
] | morvanzhou@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.