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
f5d0e48c3c53e1cf2b510d508a8c698bdd55892a
c04cd0fb88a51670bc06247601dc44af7d16f50b
/Category/bar_charts_to_ppt.py
aed75fab2409c5f6fa575eeb6cba257004e7b3d9
[]
no_license
slim-shah/Knime_Workflow_demo
e162593f5b468e490fec59dfdcfc17f2ca1d0ab2
871b9df14c865bdaf331eb8ea887006f66bd32e8
refs/heads/master
2021-04-15T17:15:14.045880
2018-03-26T09:53:33
2018-03-26T09:53:33
126,807,982
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
from pptx import Presentation #SLD_LAYOUT_TITLE_AND_CONTENT = 1 prs = Presentation('Growth of Category.pptx') slide = prs.slides.add_slide(prs.slide_layouts[9]) title_placeholder = slide.shapes.title title_placeholder = 'Hello' pic_left = int(prs.slide_width * 0.15) pic_top = int(prs.slide_height * 0.1) pic_width =...
[ "slimshahda97@gmail.com" ]
slimshahda97@gmail.com
5227f9d6b5eb4371104a5de1424d2bec42568366
59beef06efb305f1b39e85cfdfb69221241ff9df
/pororo/tasks/paraphrase_generation.py
2225891c0cd3ddef948906807b8e8bda4a265419
[ "Apache-2.0", "BSD-3-Clause", "HPND", "MIT", "ISC", "Python-2.0", "Unlicense", "LicenseRef-scancode-secret-labs-2011", "BSD-2-Clause" ]
permissive
saimishra/pororo
747bb506f92b35a9da7e18f43e20d4954db5d985
1f61b331d07c22fb9e8ee051a5f6c0c91ae67062
refs/heads/master
2023-02-28T09:06:24.492863
2021-02-03T08:19:25
2021-02-03T08:19:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,253
py
"""Paraphrase Generation modeling class""" from typing import Optional from pororo.tasks.utils.base import PororoFactoryBase, PororoGenerationBase from pororo.tasks.utils.download_utils import download_or_load class PororoParaphraseFactory(PororoFactoryBase): """ paraphrase generation using Transformer Seq2...
[ "huffonism@gmail.com" ]
huffonism@gmail.com
56e4f4d212052b25d4ddeb66cb7f8131c3cad155
24b45cd696fcb2001019b21ec5fb5bcf9f5794f9
/angularJSversion.py
8bbe5264df723abda98de28e6a4f500a03d1625b
[]
no_license
Bazskillz/coala-bears
492d11343c7fa16bc4def624d30d66411c8573bb
7db69b73cc73a9524b17699e59f5c4624ee2d9da
refs/heads/main
2023-02-11T09:33:57.111982
2021-01-07T21:21:15
2021-01-07T21:21:15
314,247,723
0
0
null
2021-01-07T21:01:12
2020-11-19T12:54:29
Python
UTF-8
Python
false
false
450
py
import logging from coalib.bears.LocalBear import LocalBear class angularJSversion(LocalBear): def run(self, filename, file): for line in file: if '"angularjs": ' in line: logging.debug("HIT!") yield self.new_result("Found...
[ "noreply@github.com" ]
noreply@github.com
719131a310f356ebd894b51e12750e04e1d0b138
79bcfe1ef0cd82bca98b367d574d5ff6bfc7c27f
/codigo/rugbymofreak/src/classification_tests.py
c49e81eeaad41280ae6a8b65debcb827681d163c
[]
no_license
luciamr/tesina
a962819087f56462d92849c97297a16e9cbefe11
d927c2f7d79131c7d9cc922338d41761a2c03993
refs/heads/master
2021-03-27T13:38:12.964831
2016-10-06T16:06:06
2016-10-06T16:06:06
27,589,970
0
0
null
null
null
null
UTF-8
Python
false
false
12,359
py
# This script is used to test different classifiers on the mofreak data. Quick and dirty script, not necessarily extensible. import numpy import pylab from sklearn import svm, pipeline from sklearn.kernel_approximation import RBFSampler, AdditiveChi2Sampler from sklearn.decomposition import PCA from sklearn.ensemble i...
[ "lucia@cifasis-conicet.gov.ar" ]
lucia@cifasis-conicet.gov.ar
5a4c47575345054bc275919e15ab49390207af4c
cfbb78a82b9ee9b125eb11b1a7abf607704a0b2d
/scatter.py
74d23eb7a900b0bb81f198575473a450cf6e7323
[]
no_license
dimpy-chhabra/sup
4323b180f89a8188010844c4ee7f0b24015734f9
69ade5c0984bd9d124afe6db78e8e7762b94b958
refs/heads/master
2020-03-08T08:10:27.263963
2018-04-26T18:42:59
2018-04-26T18:42:59
128,014,720
0
0
null
null
null
null
UTF-8
Python
false
false
555
py
import matplotlib.pyplot import pylab import csv import pandas as pd dataSet_1 = pd.read_csv('data_news_hillary.csv') dataSet_2 = pd.read_csv('data_news_Trump.csv') #source_name desc_subjectivity desc_polarity titl_subjectivity titl_polarity y = dataSet_2.source y2 = dataSet_1.source #data_1 = dataSet_1.desc_polari...
[ "dimpychhabra@yahoo.co.uk" ]
dimpychhabra@yahoo.co.uk
7e7e0400ffe2834140e94109ce4329b16205fa98
3034e86347c71bf7e7af9e5f7aa44ab5ad61e14b
/pbase/day18/classMyList.py
814391481cac5af7082c88e154e183db16732870
[]
no_license
jason12360/AID1803
bda039b82f43d6609aa8028b0d9598f2037c23d5
f0c54a3a2f06881b3523fba7501ab085cceae75d
refs/heads/master
2020-03-17T00:43:42.541761
2018-06-29T10:07:44
2018-06-29T10:07:44
133,127,628
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
class Mylist(list): def insert_head(self,element): self[0:0] = [element] L = Mylist(range(5)) L.insert_head(-1) print(L)
[ "370828117@qq.com" ]
370828117@qq.com
a41a3904dfdcdee0e727b00a0ec2e8dfc1657f97
173e0aed80b0d0c01252dd2891be6967f60ce008
/healthcare/api-client/v1/hl7v2/hl7v2_messages_test.py
06ae20b41a350c427386f1d25cb88cd42f6f9ec2
[ "Apache-2.0" ]
permissive
yuriatgoogle/python-docs-samples
a59298504c73d7f272637b033662d920dfcc314b
9fb1bf82b447e920fe9b80564cc110d1e50f43ab
refs/heads/master
2023-04-08T03:36:18.691386
2021-02-28T17:17:57
2021-02-28T17:17:57
337,138,011
1
0
Apache-2.0
2021-02-28T17:17:58
2021-02-08T16:30:52
Python
UTF-8
Python
false
false
7,415
py
# Copyright 2018 Google LLC All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "noreply@github.com" ]
noreply@github.com
ae28b288e8588b7a164a13119aebe56843af8a10
89a90707983bdd1ae253f7c59cd4b7543c9eda7e
/programming_python/Dstruct/OldIntro/stack3.py
e1a2711fb805383ddc41021d2bab73940be3a07f
[]
no_license
timothyshull/python_reference_code
692a7c29608cadfd46a6cc409a000023e95b9458
f3e2205dd070fd3210316f5f470d371950945028
refs/heads/master
2021-01-22T20:44:07.018811
2017-03-17T19:17:22
2017-03-17T19:17:22
85,346,735
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
class Stack: def __init__(self): self.stack = [] # initialize list def push(self, object): self.stack.append(object) # change in-place def pop(self): top = self.stack[-1] # top = end del self.stack[-1] # delete in-place return top def empty(self...
[ "timothyshull@gmail.com" ]
timothyshull@gmail.com
afc602d9bdf3bf7677eb8bf36c2ee1c2b0579314
d7d2536a22439178eadf92e92f99422dce6d1a0d
/useraccount/urls.py
4b5f541cc49966640b2e6867b09b76ccaf95f807
[]
no_license
nkpc14/PlantFlix
56dac037f9a1cadd7f6b1b2f850511525b19ab78
0dd71d9a0ead1a8e33c8e29008e6469870809035
refs/heads/master
2020-09-03T07:39:18.139394
2019-11-07T16:20:57
2019-11-07T16:20:57
219,418,294
0
0
null
null
null
null
UTF-8
Python
false
false
266
py
from django.urls import path from .views import * urlpatterns = [ path('', PlantFlixUserList.as_view(), name='users-list'), path('get/<int:pk>', UserView.as_view(), name='users-list'), path('signup', PlantFlixUserCreate.as_view(), name='users-list'), ]
[ "32247486+nkpc14@users.noreply.github.com" ]
32247486+nkpc14@users.noreply.github.com
af15bb2708ac33286e3cd7ea1907e886af99d6d6
127fa3dd454434b4c7526afe161177af2e10226e
/2018ๆ กๆ‹›็œŸ้ข˜/็ฝ‘ๆ˜“ ๆ“ไฝœๅบๅˆ—.py
bfda124710b7fbdb1440fc50027fa803d3ac8b78
[]
no_license
lunar-r/sword-to-offer-python
966c46a8ddcff8ce5c95697638c988d83da3beab
fab4c341486e872fb2926d1b6d50499d55e76a4a
refs/heads/master
2023-04-18T18:57:12.126441
2020-11-29T09:51:23
2020-11-29T09:51:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
# -*- coding: utf-8 -*- """ File Name๏ผš ็ฝ‘ๆ˜“ ๆ“ไฝœๅบๅˆ— Description : Author : simon date๏ผš 19-4-9 """ def helper(nums): if nums == [1]: return [1] return [nums[-1]] + helper(nums[:-1])[::-1] """ ๆ‰พ่ง„ๅพ‹ [nums[-1], nums[-3], ...., nums[-4],nums[-2]] """ def helper2(nums): nums = nu...
[ "2711772037@qq.com" ]
2711772037@qq.com
c0a102ad95fccafa50e9a55290f3204b98a38ab8
c56d3f1e7dde1c4556759b7005a60056003b7d54
/scrapprj/middlewares.py
61223d127e344b565e6bba1da0636086229472a9
[]
no_license
alefrolov/scrapprj
b73c2f98775f7d1de1e2ec4987bbea5f6ef9bb07
70c470327df09dd7c87dbe2d8cb652aa6aa40285
refs/heads/master
2023-03-05T05:28:32.771100
2018-11-29T22:12:31
2018-11-29T22:12:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,601
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class ScrapprjSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrapy...
[ "Alex@ya.ru" ]
Alex@ya.ru
fb6a14738a0a1697a8faf85de8928e5f2f6051e5
7c3ae114503112f1435acfad9be6be041cb7762c
/robotarena/roborally/robots/scaredycat.py
2bc67425c87df782442e76643477764b7a91b5ce
[ "Apache-2.0" ]
permissive
sdherr/robot-arena
e95cf559b86776b4aec05b93afb1b974049449ee
0cca149a74cb758d617912042621f642ebac9f8e
refs/heads/master
2021-01-22T06:40:27.127685
2017-02-13T03:30:43
2017-02-13T03:30:43
81,780,182
0
0
null
2017-02-13T03:17:28
2017-02-13T03:17:28
null
UTF-8
Python
false
false
573
py
import random from roborally.api import * def move(): my_moves = list(MOVES) scored_moves = {} for move in my_moves: scored_moves[move] = score(move) min_score = min(scored_moves.values()) return random.choice([move for move in scored_moves if scored_moves[move] == min_score]) def score(move): # Score ...
[ "ken.ganong@gmail.com" ]
ken.ganong@gmail.com
f7c2aa264a5e5ac7293a87fa6c6ebe060740e356
43e8af55bd953a3e435810574f0d4db8a00bcd82
/nut/apps/api/views/sla.py
e3eb61cce1a35fe3874df8a51f75571aca1504c3
[]
no_license
bopopescu/nut
3818cc66e543870180dae943944ef026f191a385
39c58afe7fa7be185b1a3ac64e8c295d16601bd6
refs/heads/master
2022-11-18T05:28:14.209311
2017-09-29T10:32:54
2017-09-29T10:32:54
282,010,209
0
0
null
2020-07-23T17:05:57
2020-07-23T17:05:56
null
UTF-8
Python
false
false
769
py
from rest_framework import generics from rest_framework.permissions import IsAdminUser from apps.core.models import Selection_Article from apps.api.serializers.articles import NestedSelectionArticleSerializer from apps.api.permissions import Admin_And_Editor_Only class RFSlaListView(generics.ListCreateAPIView): ...
[ "anchen@guoku.com" ]
anchen@guoku.com
113cb5acc88ecdd692bbe9af0b8d3a02610d3f18
3e67503851365b38a7ac0e78b5ae54eeac2cc5e8
/information/migrations/0013_auto_20200927_1051.py
c4d18126290885d5f77520633ae0dbe60fd99a9d
[]
no_license
JOHNYXUU/Ahu-Curriculum-Design-of-Principles-of-Database
121c52f2b77b0122ffa06e89ee3e06030af05e04
f4298882feb5d109eb010feb39d453e6f3953508
refs/heads/master
2022-12-25T10:35:31.818740
2020-10-09T12:48:25
2020-10-09T12:48:25
302,631,512
4
2
null
null
null
null
UTF-8
Python
false
false
387
py
# Generated by Django 3.0.3 on 2020-09-27 02:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('information', '0012_auto_20200927_1033'), ] operations = [ migrations.AlterField( model_name='ware', name='wname', ...
[ "1163444531@qq.com" ]
1163444531@qq.com
17c14221dd22255ed751dc3f60dafc64a8e62399
01857ef455ea60eccaf03b5a9059ec83e9803c2e
/nicegui/tailwind_types/text_align.py
476e196f84b46e2c187f30f1984c510e8a9430c5
[ "MIT" ]
permissive
zauberzeug/nicegui
f08312cc1f393deca79e0e84a2506d3a35efff16
c61b1315f29d51e26cc1168207f5616b302f8df0
refs/heads/main
2023-08-18T18:09:30.937322
2023-08-18T15:04:00
2023-08-18T15:04:00
365,250,183
5,128
271
MIT
2023-09-14T01:50:56
2021-05-07T13:55:05
Python
UTF-8
Python
false
false
129
py
from typing import Literal TextAlign = Literal[ 'left', 'center', 'right', 'justify', 'start', 'end', ]
[ "falko@zauberzeug.com" ]
falko@zauberzeug.com
2ed8a5ddc32ec856e5b12247439bf6992e88fb69
09eee55bbff98de8c790054fe4cd5ad24c193181
/homeassistant/config/custom_components/sensor/zte_router.py
a6ae89ba355c4db71d2aaee0bdd44ebac7cff698
[]
no_license
peleccom/hass_config
53d9feb1c6b5da7211e1a5bd43c39eb8d9769c26
26b8c90f3773a85cb4e1c4fe676869f62866fc41
refs/heads/master
2022-12-14T20:40:08.673476
2022-11-26T12:14:11
2022-11-26T12:21:49
140,076,993
1
0
null
null
null
null
UTF-8
Python
false
false
6,367
py
""" Sensor for ZTE router. """ import logging import re import voluptuous as vol import homeassistant.helpers.config_validation as cv from datetime import timedelta from telnetlib import Telnet from homeassistant.const import (CONF_NAME, CONF_DISPLAY_OPTIONS, CONF_HOST, CONF_PORT, CONF_USERNAME, CONF_PASSWORD) from ho...
[ "peleccom@gmail.com" ]
peleccom@gmail.com
6d436950f72fdebca3a2b9ddcdfb8295af5e2ef8
f100a01e9629b4073968b3cf40fef1f5c07318b4
/home/migrations/0003_auto_20200817_1405.py
ac1e0cd7bb8cde7a187d8161ed79cc84bcb640ce
[]
no_license
reiosantos/rkh_website
2b48856a4cef1e19fa0604c291552f8e2f01de0c
551df5a9953bf7517fc2520000618612e47ff2ff
refs/heads/master
2022-12-05T15:45:40.517499
2020-08-17T19:59:26
2020-08-17T19:59:26
288,273,639
0
0
null
null
null
null
UTF-8
Python
false
false
811
py
# Generated by Django 3.1 on 2020-08-17 14:05 from django.db import migrations, models import wagtail.core.blocks import wagtail.core.fields import wagtail.images.blocks class Migration(migrations.Migration): dependencies = [ ('home', '0002_create_homepage'), ] operations = [ migrations...
[ "ronireiosantos@gmail.com" ]
ronireiosantos@gmail.com
0f5012b740558463761ad7c2c0edf8aac3ec1da1
24f2b56ac7458e72f1f90abd16302a41dbaa7977
/starter.py
94875abe1fc3276f82d887f3786c9079988b1128
[ "MIT" ]
permissive
rmechler/aws-swf-boto3
0397db99e4f45adba09d16b504b94d6c50346bf4
122144b11dc0e142f9e4e3797a1e96ffd39786a7
refs/heads/master
2021-01-21T18:46:29.073499
2016-05-25T22:00:18
2016-05-25T22:00:18
59,585,186
0
0
null
2016-05-24T15:28:06
2016-05-24T15:28:06
null
UTF-8
Python
false
false
446
py
#!/usr/bin/python import swf_helper import logging from argparse import ArgumentParser parser = ArgumentParser() parser.add_argument("-w", "--workflow-id", type=str, dest="workflow_id", default="test-1", help="workflow ID", metavar="workflow_id") args = parser.parse_args() WORKFLOW_ID = 'test-1' response = swf_help...
[ "rmechler@cisco.com" ]
rmechler@cisco.com
075c8cdbfc5841798c3a4bd57ab4ee7c7d9494c7
712d63f842d5dddcd21889cc5edabf2381662d3a
/py2-kms/client.py
5410c485552160f3dd6e37c4e012a43ff4767428
[ "Unlicense" ]
permissive
13128228284/py-kms
6d91e4e39291b14742d9852ce141b051da2d3aaf
3d154f8cf5d572087103397057702596caea41e2
refs/heads/master
2020-04-28T01:43:28.633934
2019-04-17T14:20:23
2019-04-17T14:20:23
174,868,599
0
0
Unlicense
2019-04-17T14:20:24
2019-03-10T19:10:12
Python
UTF-8
Python
false
false
11,643
py
#!/usr/bin/env python import re import argparse import binascii import datetime import random import socket import string import sys import uuid import logging import os import errno import filetimes, rpcBind, rpcRequest from dcerpc import MSRPCHeader, MSRPCBindNak, MSRPCRequestHeader, MSRPCRespHeader from kmsBase im...
[ "noreply@github.com" ]
noreply@github.com
156fd1f615108a6a975110457e3f01ee5b5a7ca9
c858d9511cdb6a6ca723cd2dd05827d281fa764d
/MFTU/lesson 2/practice_robot/robot-tasks-master/task_25.py
ed88ac2f39e4be1dd10bd7d1af830ef72db2fa21
[]
no_license
DontTouchMyMind/education
0c904aa929cb5349d7af7e06d9b1bbaab972ef95
32a53eb4086b730cc116e633f68cf01f3d4ec1d1
refs/heads/master
2021-03-12T11:15:02.479779
2020-09-17T08:19:50
2020-09-17T08:19:50
246,616,542
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
#!/usr/bin/python3 from pyrob.api import * @task def task_2_2(): def chest(): fill_cell() move_right() fill_cell() move_right() fill_cell() move_down() move_left() fill_cell() move_up() move_up() fill_cell() move_down(2)...
[ "tobigface@gmail.com" ]
tobigface@gmail.com
b0a7d0decaed56f6352cea3a737a4b1d712e05b7
1833d04a610604e2ce0ee95c1eb93e64403a6e07
/pyassign5.py
4ccd8f73abe9cbde7f40b1c00620dc5d665cc6d6
[]
no_license
PoojaKamboj/AllPythonAssignments
fe9292aea3faf1dedd3ebbaeeb7d597de811ac2a
0a538699eed22a3b59473c47e962a812ecc76cc0
refs/heads/master
2020-03-19T12:18:50.656520
2018-07-01T10:25:12
2018-07-01T10:25:12
136,510,109
0
1
null
null
null
null
UTF-8
Python
false
false
2,886
py
# Take 10 integers from user and print it on screen myList = list() print("\nEnter values to List : ") for i in range(10): int_val = int(input(("Enter %d value : ") %(i+1))) # Taking input from user myList.append(int_val) print("Integer List : " ,myList) # Write an infinite loop.An infinite lo...
[ "noreply@github.com" ]
noreply@github.com
11f133b5743530c70732435cdbdab5330259df50
75b9d4487eac9e9017d528df0a5c9a0e93822ffc
/ClaseVehiculoNuevo.py
9ef8be7bd58adfaa17279cb21aac5bfe69918558
[]
no_license
Marcos556149/UNIDAD-3-ACTIVIDAD-6
8072b7c216640932f2c4a6998363778947fdb2cc
a0f3a98da5e045adb2a326f724fbf0c5ec1077dd
refs/heads/main
2023-05-05T07:59:22.526828
2021-05-31T04:57:41
2021-05-31T04:57:41
372,386,389
0
0
null
null
null
null
UTF-8
Python
false
false
1,191
py
from ClaseVehiculo import Vehiculo class VehiculoNuevo(Vehiculo): Marca1= 'Tesla' __version= '' def __init__(self,mod='',cant=0,col='',pre=0,ver=''): super().__init__(mod,cant,col,pre) self.__version= ver def __str__(self): print("VEHICULO NUEVO") return 'Modelo:...
[ "noreply@github.com" ]
noreply@github.com
ddf58b250c7f058d2c834a8d0fa0382a06543ac1
d82de8384b06dc5788b60d08c93f5f20214f60c6
/defs/keras_mlp.py
b838746655925fd05195c19314883845a5405ab9
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
hyunghunny/hyperband
810d79f5f2600bddcdcb73d997ae1f1ab6e85995
ac07fa5a41eabbbdd6cf8c02628ade183207e5ec
refs/heads/master
2020-05-22T21:52:30.022693
2019-05-14T11:04:29
2019-05-14T11:04:29
186,536,539
0
0
NOASSERTION
2019-05-14T03:18:15
2019-05-14T03:18:14
null
UTF-8
Python
false
false
4,624
py
"function (and parameter space) definitions for hyperband" "binary classification with Keras (multilayer perceptron)" from common_defs import * # a dict with x_train, y_train, x_test, y_test from load_data import data from keras.models import Sequential from keras.layers.core import Dense, Dropout from keras.layers....
[ "zajac.zygmunt@gmail.com" ]
zajac.zygmunt@gmail.com
1b3221ba8ff6401dc3e95db960e66b8d4d2943ec
17ca4c286c70277c626735bb7959e0fc08a8be1f
/start/editor/ActivityScriptExporter.py
095c1f94a0c806a8992183245073dbbc2e0a3880
[]
no_license
huazhicai/kidney
6edae18eee63a8f71cb6cde3a070526192ecdcf1
87ec2bcc5929e641870ec89e08fbe1177748434e
refs/heads/master
2022-11-10T20:59:42.970794
2020-04-29T01:39:09
2020-04-29T01:39:09
200,326,570
0
0
null
null
null
null
UTF-8
Python
false
false
49,143
py
๏ปฟ# coding: utf-8 import os import math import csv import re import traceback """ NOTE: ้ข„ๅญ˜ๆ•ฐๆฎ็š„runTimeDataไป…ๆ”ฏๆŒไปฅไธ‹ๅ‡ ็ง็ฑปๅž‹ 1. String -> string 2. Float -> float 3. Int -> int 4. None -> None 5. Vec3 -> (a, b, c) -> math3d.vector ่ฟ™้‡Œไฝฟ็”จtuple่กจ็คบVec3, ๆ•…tupleๆ•ฐๆฎ็ฑปๅž‹่ขซๅ ็”จ """ # TODO: ๆ•ฐๆฎๆ ก้ชŒ # TODO: const function ๅ†…ๆ•› # TODO: Vec3 C...
[ "936844218@qq.com" ]
936844218@qq.com
93f988f8434a28ac537e6aa41024262334b8bd8c
9bedd3e8c8b84cf4c8fa3ab1b04bfa0fddd1707e
/pymela/tools/tag_creators.py
3e9e4c0106b5f9773424cb1d8028a280ab57c6c3
[]
no_license
ckallidonis/Pymela
6266b9285bff84cf22ac3de17c79819030b78ab3
1cb0e4cd578073808ea14816a8a690909360634d
refs/heads/main
2023-03-17T05:58:19.966750
2021-03-16T14:25:27
2021-03-16T14:25:27
314,623,326
0
0
null
2021-01-07T00:21:40
2020-11-20T17:25:55
Python
UTF-8
Python
false
false
962
py
''' Created on Nov.23, 2020 @author: Christos Kallidonis Copyright (C) 2020. All rights reserved. Helper functions that create tags used as keys in various objects ''' valSgnPN = lambda i: ("+" if i > 0 else "") + str(i) valSgnN = lambda i: ("" if i > 0 else "") + str(i) def momH5(mom,jc = '_'): return 'mom'+ j...
[ "kallidonis@gmail.com" ]
kallidonis@gmail.com
14b571e28b701feb5fb4fd9e579333e6895f223b
6108da1779a14d6eb3641b1f84a2a09f36678278
/scripts/corpus/json_utils.py
ac69e6a880ed96f76d5fba7489241286782bf21d
[]
no_license
ShawonAshraf/emotion-classification-isear
55def5fa4f4519021d78521720ad9e0254968784
03035ec2db487d10fab117889c682a25f35bfd8d
refs/heads/master
2023-08-30T02:09:19.289558
2021-11-15T02:52:12
2021-11-15T02:52:12
283,501,779
1
0
null
2021-11-15T02:52:13
2020-07-29T13:07:56
Python
UTF-8
Python
false
false
378
py
import json import os """ read from a json file and returns the content as a python object -> list / dict """ def read_json_file(json_path): if not os.path.exists(json_path): print("File does not exist. Exiting ....") exit(1) else: with open(json_path, "r") as jsonfile: ...
[ "shawon13@live.com" ]
shawon13@live.com
f30bdf31413b0ddc5c61eee3ae905f28120a9e8c
739a4501128c948d73b522db2fca0b2a3f3de95e
/old_stuff/blender3d_exporter/io_export_pascal3d/p3d_export_armature.py
2dd479a1f621b2c55617d4a92c2ccfe4c5fc317d
[ "MIT" ]
permissive
soerensen3/pascal3d
68be3af62adb473c96198ba44155c8f74cd03d8b
4671d383bd9e4ce13142104b18ec23954f445858
refs/heads/master
2021-04-06T18:40:16.813755
2019-01-29T21:35:39
2019-01-29T21:35:39
125,377,509
8
3
null
null
null
null
UTF-8
Python
false
false
4,172
py
# -*- coding: utf-8 -*- """ Created on Thu Sep 11 23:44:04 2014 @author: johannes """ import bpy from . p3d_helper import * from mathutils import * from . p3d_export_anim import * def ExportBonesActions( Config, Bones ): for Bone in Bones: BoneMatrix = Matrix() Config.File.write("{}b...
[ "johannes.soerensen@gmail.com" ]
johannes.soerensen@gmail.com
a8225118f48451a97437b3a5591febc28c132342
5afac6cca24a469fdddc7dcf9d9e48f7f5221933
/BiDLSTM-master/nn_layers.py
3b2c3f3e65774e7db9b0c20a79751b4052f17157
[]
no_license
biswajyoti2607/quora-question-pairs-experiments
b5c2ffc4b3082b2c10062f923c0e93afa7b06ca6
8bfdaf1aa9232bf3c01408e27551f410e99db892
refs/heads/master
2020-03-13T17:21:30.979335
2017-12-01T17:29:00
2017-12-01T17:29:00
112,755,687
0
0
null
null
null
null
UTF-8
Python
false
false
4,086
py
""" This file contains the rest of the layers in the network. """ import theano from theano import tensor from util import numpy_floatX from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams def embeddings_layer(x, Wemb, dim_proj): """ Returns the one-hot vector x after encoding in the Wemb...
[ "biswajyoti@gatech.edu" ]
biswajyoti@gatech.edu
5d9db594141e523299b132bb63b29929f1a35ebe
aeb2f0bb7b01f87a1b6c65b88b216bed47025fe5
/experiment/model225_3.py
89d3aacb28fc16f8f206203bc05a981c353f8a0e
[]
no_license
kurupical/riiid
7e68239cd50243fbb734bf433d60ebd7469cb180
7bab580ce03d03873748a6afc91092c11871465f
refs/heads/master
2023-03-30T04:15:54.109815
2021-04-04T01:20:33
2021-04-04T01:20:33
302,828,112
2
1
null
null
null
null
UTF-8
Python
false
false
27,225
py
import numpy as np import pandas as pd import gc import random from tqdm import tqdm from sklearn.metrics import roc_auc_score from sklearn.model_selection import train_test_split import seaborn as sns import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.utils.rnn as rnn_utils from torc...
[ "kurupical@gmail.com" ]
kurupical@gmail.com
bbe6002915498beb2e376cc05a40e4a8f0294afc
0f58e79ee760e54183d69d707cfbbcfd1f0aa9ed
/setup.py
7721788f99902b49c29487a550b28e116a7f3e4d
[]
no_license
AnneYinSJ/pystream
771896066be2cf12b7d3db592fbcc8cb17729198
92893a91a03b6410261de00da83068fe42d90eb4
refs/heads/master
2020-05-16T09:01:49.169266
2019-03-30T20:04:00
2019-03-30T20:04:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,608
py
from setuptools import setup, Extension, find_packages from Cython.Build import cythonize import Cython import numpy as np import os libs = [] if os.name == 'posix': libs.append('m') dirs = [np.get_include(), '.'] extensions = [] # ----------------------------- algorithms ----------------------------- # ------...
[ "vt.turrisi@gmail.com" ]
vt.turrisi@gmail.com
462611dfa57951daafc012909847ccf8fa2f644e
60c84d8dc4b30731193745bf0580584087efe337
/examples/hello/hello.py
53bd3f56564ec3d0888b59c23c85a01ffe0e0ee1
[]
no_license
danse-inelastic/pyregui
f321917f6c0c955356d8b87f6466c3acddd5b194
3d7f90352361cbdbaa553002be6e810e84b3f44d
refs/heads/master
2020-04-05T18:57:14.422685
2013-06-14T00:30:44
2013-06-14T00:30:44
34,145,791
0
1
null
null
null
null
UTF-8
Python
false
false
1,078
py
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # # {LicenseText} # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # from pyre.components.Component import Component class hello(Component): 'A greeter that says "hello"'...
[ "linjiao@caltech.edu" ]
linjiao@caltech.edu
0b16e097fdaf58999c9428e768d344bdaabaeb74
b7e580300600eccd906817db68eadd3988a6f68d
/rest101/superhero/migrations/0003_auto_20200304_2305.py
bc98233f07e27a62473a57c087c41bf9fbd699d9
[]
no_license
Prasan1/rest
01c54d913300d9533930b32d1afbbf7b835a68c5
be4549727d2118c15655ca8f21d5b015a2d5c16e
refs/heads/master
2021-03-23T19:37:27.503022
2020-03-16T02:41:49
2020-03-16T02:41:49
247,478,613
0
1
null
2020-03-16T12:17:30
2020-03-15T14:07:23
Python
UTF-8
Python
false
false
619
py
# Generated by Django 3.0.3 on 2020-03-05 04:05 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('superhero', '0002_auto_20200304_2214'), ] operations = [ migrations.AlterModelOptions( name='superhero', ...
[ "prasanna.puaudyal@capgemini.com" ]
prasanna.puaudyal@capgemini.com
202f024bbb7de7efa4e06907f005302147decfc9
fdbdbf4dd1ccbdf6ff3f23ed441de58f57753c33
/helloworld.py
2bc20ebb1427e3b18c372e7738fa86f6dcab488e
[]
no_license
antondlf/Homework1
bd0fa36b8a9027f7e2d4847a9a3f7f16102c292c
d36a323a5375062e8e4d9a1620415e6bbf9964c0
refs/heads/main
2022-12-29T15:55:01.560719
2020-10-19T20:04:15
2020-10-19T20:04:15
303,840,249
0
2
null
2020-10-19T20:04:16
2020-10-13T22:11:18
Python
UTF-8
Python
false
false
1,308
py
# Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/ # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modi...
[ "noreply@github.com" ]
noreply@github.com
a5abfa7a61778e4bbeea6fb77cdeef314fff171f
0cd407f6a73c21bbeb52958665fc2872bd25e83b
/python/snippets/file_splicer.py
9af41130b54a71493342a76b7d3b476c46453a1a
[]
no_license
ikenticus/blogcode
178c6d99e7805490fbe95417d6e28d1f64b0ce9d
550b57c46284bb2e47ac23b3984792f3e68d73ea
refs/heads/master
2023-07-05T09:00:55.780386
2023-06-30T02:08:10
2023-06-30T02:08:10
1,432,663
4
3
null
2023-01-05T17:26:25
2011-03-02T22:12:14
Python
UTF-8
Python
false
false
1,123
py
''' Splice one file into many - match line on cfg_pre - split line by cfg_sep - use index cfg_idx for output filename ''' import os import sys from pprint import pprint cfg_idx = 1 cfg_sep = '"' cfg_pre = 'job(' cfg_out = 'output' def splice(data, outdir, ext): name = None for d in dat...
[ "Kent.Lee@resy.com" ]
Kent.Lee@resy.com
62784316908e7cbe2cae8d4846b6e889a330c571
3e1dd5fe52a3083fd2d98d1518cc3174a8a03658
/myawards/migrations/0010_auto_20210124_1905.py
6f52d3c41191054de3acd3b3862fd809cf1c2d0a
[ "MIT" ]
permissive
ucynthy12/awards
777ba0d5878db4c6563f8dc147428a7620107193
51c993b2e5b779103f1a43246d939a66364a187c
refs/heads/master
2023-02-20T12:38:29.469288
2021-01-24T20:57:58
2021-01-24T20:57:58
329,887,686
1
0
null
null
null
null
UTF-8
Python
false
false
1,338
py
# Generated by Django 3.1.5 on 2021-01-24 17:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myawards', '0009_auto_20210123_1225'), ] operations = [ migrations.AlterField( model_name='rate', name='content', ...
[ "ucynthy12@gmail.com" ]
ucynthy12@gmail.com
9ef0313a78d7df9a2072dd19e7b8a17ce7012b41
fff67f30c7cbe366a84c7eed7c82258a12b53411
/setup.py
58e945a1b1ea918271b33d92b80fab085627826f
[ "MIT" ]
permissive
N0x1s/b64
98871d21a6aaef32ba55f4f53bc4c65312a7713f
632ec603b7c558d7ca9bebe12cdf7300a3b52c5f
refs/heads/master
2022-11-08T07:39:09.502826
2020-06-25T17:25:18
2020-06-25T17:25:18
274,590,737
4
0
null
null
null
null
UTF-8
Python
false
false
1,018
py
from distutils.core import setup setup( name='b64', packages=['b64'], version='0.4', license='MIT', description='convert html/local/online data to base64 fast, easy and clean', author='n0x1s', author_email='n0x1s0x01@gmail.com', url='https://github.com/n0x1s/b64', download_url='http...
[ "ilyasselfatimy9@gmail.com" ]
ilyasselfatimy9@gmail.com
f31c16c5d140c382a22a09d71a9596909e6fab63
57d49730e08d631f590fabcc88bf30fb5dfc1a59
/ZOAC2(18238).py
43b7cb9be8a791f7356fb078a3521f41a0e48d6c
[]
no_license
wargin-E/Baekjoon
acb0275e240741bf8122cac07af1e91d1425ba84
76773699acb07ffd3d7fec3c9adfc85bfafab800
refs/heads/master
2021-05-21T03:53:48.631819
2021-02-14T10:22:49
2021-02-14T10:22:49
252,531,304
0
0
null
2020-04-09T09:35:24
2020-04-02T18:10:21
Python
UTF-8
Python
false
false
1,005
py
dictionary=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"] starting_alphabet="A" destination_alphabet=0 def minimum_distance(dictionary,starting_alphabet,destination_alphabet): for k in range(0,len(dictionary)): if dictionary[k]==starting_alph...
[ "noreply@github.com" ]
noreply@github.com
733f9358c73617a8542ae58b5af6e60c4fd3b6da
831fc9a25077345226874a103a46724a3906ddbe
/b_list/urls.py
5b00c938cb3bbe4efe019852ead1926ef5a8a777
[ "BSD-3-Clause" ]
permissive
softwareprojectPHD/b_list
a2f6c0890b0dbd348c77d62cdac81db69ea2e2c3
7efc5d15750b0fd366a40eef4794a0356f309327
refs/heads/master
2020-12-25T09:27:44.477238
2016-04-16T03:54:13
2016-04-17T03:58:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,378
py
""" Root URLconf. """ from django.conf.urls import include from django.conf.urls import url from django.contrib import admin from blog.views import EntryArchiveIndex from flashpolicies.views import no_access # Redirect views which prevent an older URL scheme from 404'ing. from . import views urls = [ url(r'^...
[ "james@b-list.org" ]
james@b-list.org
78abd3a4e3fbcc34e0e8ec4eaef5fe5ac4e374e9
c9fd4301e3cbbb7b1144b1985be79c05f218be1c
/application/models.py
a5a46cc6b6a6bbe892650a273866213b57692901
[]
no_license
Solertis/Psychographic-Segmentation-Of-Consumer-Behaviors
a6d76ace3f2bb6037125c2ed530cb1f2def1de3c
f17405b7ec59e9ae8c0cde2fb9fcb12caf4d05e2
refs/heads/master
2020-04-23T17:16:01.603556
2017-08-20T10:29:30
2017-08-20T10:29:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
732
py
from django.db import models from django.contrib.auth.models import Permission, User from mongoengine import * def user_directory_path(instance, filename): # return 'documents/user_{0}/new/{1}'.format(instance.user.id, filename) return 'application/static/application/images/user_{0}/new/{1}'.format(instance.us...
[ "noreply@github.com" ]
noreply@github.com
9c079ffee4a8446340856d6c9a3f18c21f3f77a0
a81c1492783e7cafcaf7da5f0402d2d283b7ce37
/google/ads/google_ads/v6/proto/errors/account_link_error_pb2.py
bcb4b476f4b191721a76ed542da5e88fb13651ea
[ "Apache-2.0" ]
permissive
VincentFritzsche/google-ads-python
6650cf426b34392d1f58fb912cb3fc25b848e766
969eff5b6c3cec59d21191fa178cffb6270074c3
refs/heads/master
2023-03-19T17:23:26.959021
2021-03-18T18:18:38
2021-03-18T18:18:38
null
0
0
null
null
null
null
UTF-8
Python
false
true
3,974
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v6/errors/account_link_error.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import ref...
[ "noreply@github.com" ]
noreply@github.com
1ae8eddbd844dfaff811a922e66a120228c8cf01
eb3f8ee889969a675d6d44e13a89236bcf273389
/src/isanlp/processor_syntaxnet_remote.py
e20857109b647169b1fc4b26683eb30ae7f0b707
[ "MIT", "Python-2.0" ]
permissive
IINemo/isanlp
d14ce4b15e31d0eced0a1588db3f33ac73f88083
88e8b6edd0785718b118e2cbf3822b26f2a33cff
refs/heads/master
2023-07-08T02:11:22.096613
2023-06-27T15:13:56
2023-06-27T15:13:56
121,495,819
65
9
MIT
2023-05-11T14:45:05
2018-02-14T10:05:20
Python
UTF-8
Python
false
false
4,205
py
from .annotation import WordSynt from .annotation_repr import CSentence from .conll_format_parser import ConllFormatStreamParser import sys import socket import logging logger = logging.getLogger('isanlp') class ProcessorSyntaxNetRemote: """Processor for calling SyntaxNet remotely. It is intended to w...
[ "artemshelmanov@gmail.com" ]
artemshelmanov@gmail.com
c371911079fd8ad137118cf71c9d851ae79c6e20
d0b637b44baa2abaf76e2f7dadb138d63ea089b2
/old_code/QualityKmerToFasta.py
deae89767ea528064b58b6e7ad01f1965f656a32
[]
no_license
Strideradu/OverlapFind
c0af03a3c47462ca5a0c2ebecf95eb8821a8e349
397007293cde571dee165dc5318421812e8d6863
refs/heads/master
2021-01-19T11:25:23.959784
2018-01-29T19:19:49
2018-01-29T19:19:49
82,241,007
0
0
null
null
null
null
UTF-8
Python
false
false
2,407
py
# -*- coding: utf-8 -*- """ Created on Thu Jan 19 12:13:17 2017 @author: Nan """ import os import sys from Bio import SeqIO import numpy as np from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from Bio.Alphabet import generic_dna from collections import Counter import quality_kmer def count_score_kmer(rec...
[ "dunan00001@hotmail.com" ]
dunan00001@hotmail.com
6586ba17d3c64f3b0ee887616f7f4e4e07d684fb
d0bb6390880d8c14062510712664869b03cfb9bc
/IOTserver/py_resources/auth.py
7ddeb93890df5b28ad39a29bab4a35ab826738cc
[ "Unlicense" ]
permissive
luismmorera/IoT_ESD
a4f9fba7fb7819bfdd13c747fd946af8e6d1f393
4b2740a6b44493c845dc3e3498f60c31136b33f4
refs/heads/master
2023-05-31T04:39:19.959272
2021-06-19T17:33:15
2021-06-19T17:33:15
367,965,761
1
0
null
null
null
null
UTF-8
Python
false
false
1,341
py
import pickle import os.path from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request class auth: def __init__(self, SCOPES, CLIENT_SECRET_FILE): self.SCOPES = SCOPES self.CLIENT_SECRET_FILE = CLIENT_SECRET_FILE def get_credentials(self): ...
[ "luis.mmorera@alumnos.upm.es" ]
luis.mmorera@alumnos.upm.es
440e4c560ae61fe94aa2b5cb5c987c940277427d
63dfcc893b0b24e632074107a322a713b42c7508
/lastpage/resource.py
a39404dc2360680d314dcda11efe0089aae46e33
[ "Apache-2.0" ]
permissive
jkakar/lastpage-server
c2d206d58baa96c02b417c28f381fa8ba1aeb7ff
313927d343101968fa9654e8710343e8a988e131
refs/heads/master
2020-12-25T01:50:29.802340
2011-08-03T22:15:04
2011-08-03T22:15:04
2,154,301
0
0
null
null
null
null
UTF-8
Python
false
false
11,529
py
# Copyright 2011 Fluidinfo Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you # may not use this file except in compliance with the License. You # may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "terry@fluidinfo.com" ]
terry@fluidinfo.com
95f1540887394030c26f2f55d4910567d0642e49
6dfa271fb41c9d4a1a74ce34c4bee252a2d86291
/sympy/thirdparty/pyglet/pyglet/window/xlib/cursorfont.py
16c5e740ecd81ff97be40c31104783842b690ad0
[ "BSD-3-Clause" ]
permissive
gnulinooks/sympy
7e4776cd1ea24bde56dbc17207611a9bc7523e50
46f63841f96cd025289b91ba9db3e261138d720a
refs/heads/master
2016-09-10T18:56:49.556138
2009-04-05T14:10:49
2009-04-05T14:10:49
169,114
1
0
null
null
null
null
UTF-8
Python
false
false
3,295
py
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2007 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ "ondrej@certik.cz" ]
ondrej@certik.cz
5e0fa71248a72d116471e1ebbb5d85a675191bed
4429c23d283d28d0e6a3d784517146ee69b82f74
/strings.py
05be2839ad570445c6db9dbdc746b56dee5584de
[]
no_license
rajesh0025/intermediate-python
f8d8e64887bf7b1182e91f156bf62efa07b36c62
0cd25724c3a03cdc4bcba17159bde7bdb5933fc0
refs/heads/main
2023-07-11T18:33:08.658845
2021-08-16T10:52:18
2021-08-16T10:52:18
314,479,542
2
0
null
null
null
null
UTF-8
Python
false
false
2,086
py
#strings orederd immutable text representation # we can use sclicese in strings my_string ="hello world" sub=my_string[5:2:-1] #[start::end::gap b/w each char] print(sub) my_string ="hello world" print(my_string.startswith("hello")) print(my_string.startswith("world")) print(my_string.endswith("world")) prin...
[ "noreply@github.com" ]
noreply@github.com
c6371779de8aeb3db8983e514c6240c6528cb326
08efe66527ef088c985b2731a80ec217f6d64e27
/DiscordBot.py
a8732cb40fd4fb92c627f8cd7eadbc2af99cc2cf
[]
no_license
cmd-k/DiscordBot
14d17e793bcce59b0d17a57f11e6be4c0ecef44f
e221e802232c2757ba552a7b96199637d8a04d92
refs/heads/master
2021-03-18T22:30:03.514327
2020-03-13T15:03:40
2020-03-13T15:03:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,471
py
import asyncio import time import discord from discord import Member client = discord.Client() messages = 0 anzahlZรผge = 0 feld = [['1','2','3'],['4','5','6'],['7','8','9']] @client.event async def on_ready(): #console text wenn gestartet und ready ist print("Hey dudes me is {}".format(client.user.name))...
[ "finnp@schule.koeln" ]
finnp@schule.koeln
1a7f5319009ed0666fd94a80ff9343ec1cc10202
1a41e00d8a585cac18e667a68a3c71b7a79cc8fe
/test_script.py
4aecbfef74ad439a7f2d82028d320dc0a78ef445
[]
no_license
xianhegithub/deeprm
56aa7206b5713546dc8f5b5eb6acd5439ca11b88
c82220249a03e02ec5f89854c09d6ba713efdcb1
refs/heads/master
2022-12-07T17:05:44.701290
2020-09-02T21:34:57
2020-09-02T21:34:57
292,399,156
0
0
null
2020-09-02T21:32:52
2020-09-02T21:32:52
null
UTF-8
Python
false
false
73
py
import os os.system("THEANO_FLAGS='device=gpu0' python -u pg_re_xh.py")
[ "noreply@github.com" ]
noreply@github.com
7aa59aea975905e32d5a95f52ad0352ff138a8cb
8f7dd3ff195cfb32138693c7f26b8daf860ad68b
/math_series/series.py
5e2ee689ccd682a070b3a57e44b5b1d46bf8a006
[]
no_license
mrobeidat/math-series
e241563a8f599169448d1e801b1189176ed5b40f
5f6e27086227046f8d81953889afba5601912ea2
refs/heads/main
2023-08-29T20:35:13.507862
2021-11-01T14:29:24
2021-11-01T14:29:24
423,444,678
0
0
null
null
null
null
UTF-8
Python
false
false
485
py
def fibonacci(n): if n == 0: return 0 if n == 1: return 1 if n > 1: return fibonacci(n-1)+fibonacci(n-2) def lucas(n): if n == 0: return 2 if n == 1: return 3 if n > 1: return lucas(n-1)+lucas(n-2) def sum_series(n,first=0,second=1): ...
[ "y.linux96@gmail.com" ]
y.linux96@gmail.com
eaed7ba6c6b86c670cb4dca633d285a1e400b6d3
8b21292a6b866a6b2b3a54802ecc3369840d0a1f
/APITesting.py
3250aebbc5738fb94eb19e0bc491ec69bc97c547
[]
no_license
Sahi1012/Automations
2fdc71475be04ae2c929eba41e5b553d7812a662
55b28a0bb86fd784be1131ad6745a353399eefd6
refs/heads/master
2021-03-28T18:18:47.707797
2020-05-27T13:15:31
2020-05-27T13:15:31
247,884,049
0
0
null
null
null
null
UTF-8
Python
false
false
592
py
import json import requests import jsonpath url = "https://reqres.in/api/users?page=2" get= requests.get(url) #print(get) #Display Response Content #print(get.content) #print(get.headers) #Validate Response Code response_code = get.status_code assert response_code == 200 print(get.headers.get('Date')) print(get.h...
[ "geekergeek1012@gmail.com" ]
geekergeek1012@gmail.com
6daaf89e48c59092496821c2c18d5ea4a9650384
0f02cf1470124e57b0e3f79c2adeb789dc1fb1ac
/Preparation/SimilarityNER.py
8497af154d28335757fa57df715318e407b7182d
[ "MIT" ]
permissive
chenhan97/PersonGAN
8fd06679df1895cfce7b38f3533a2a0bf3455c9f
573704cbb7d2269135795c768d79dc979c821477
refs/heads/master
2022-04-29T13:39:03.340243
2022-03-29T11:14:40
2022-03-29T11:14:40
160,812,967
3
1
null
null
null
null
UTF-8
Python
false
false
1,898
py
from nltk.tag import StanfordNERTagger import sys sys.path.append("..") from utils import Util import os def TextNERExtractor(filepath): NERList = ['LOCATION', 'PERSON', 'ORGANIZATION', 'MONEY', 'PERCENT', 'DATE', 'TIME'] model_filename = sys.path[0] + '/Preparation/models/english.muc.7class.distsim.cr...
[ "noreply@github.com" ]
noreply@github.com
aab90cce97303add44325afff2ac246e0fb5bed5
86f46a8c637726d1a69d5b326b6ff1890c901cc8
/blog/helper.py
e1408cced2ec63ac621d8ebe87adbd6ac2260756
[]
no_license
ErikBZ/instant-crush
00af49145e1f0afe516c0b1b3749b19514ca8104
5fc0bd580bf071c43e1c736d97f3ec6b4ba683f1
refs/heads/master
2021-03-27T18:52:18.848277
2017-10-27T13:33:59
2017-10-27T13:33:59
95,374,793
0
0
null
null
null
null
UTF-8
Python
false
false
983
py
# file for some functions that don't need to live in # in the django specific files import os from django.conf import settings from django.utils.timezone import localtime, now from .models import Blog def get_md_file(md_path): md_file = ""; dir = os.path.join(settings.BASE_DIR, "content/" + md_path) # ve...
[ "zapatabrandon@gmail.com" ]
zapatabrandon@gmail.com
746438e8b55784eaf8d646743e2aee5439493ec8
662a9f2efe3f30eff1f72dd3b7a7b89a5844f5cf
/system/README/user-prefs.conf.spec
e725c508e1b2f906cfec50ee53e13230542cfc85
[]
no_license
roniandgit/splunk
23e1f3a8cfb0844d423a5e756b69756574b7292c
4faf4c75e19ae234965318ad6db7aed2ea98f33a
refs/heads/master
2020-04-27T10:48:16.347056
2019-03-07T04:42:16
2019-03-07T04:42:16
174,269,934
0
0
null
null
null
null
UTF-8
Python
false
false
3,732
spec
# Version 7.2.4.2 # # This file describes some of the settings that are used, and # can be configured on a per-user basis for use by the Splunk Web UI. # Settings in this file are requested with user and application scope of the # relevant user, and the user-prefs app. # Additionally, settings by the same name whic...
[ "mrsayantabasak@gmail.com" ]
mrsayantabasak@gmail.com
03b546b952137e54723329d1559c8288fabd29d9
765189a475513378ae80c97faf38b99e3ce1dc28
/algorithms/401-500/476.number-complement.py
2a0252d82de04ee699e259e24f88bb2856487172
[]
no_license
huilizhou/kemu_shuati
c8afc979f57634e066f6ce98da879cf1ed4e6b95
55b52cfff699aa71d92dd09d150ce71628b21890
refs/heads/master
2020-04-29T01:13:53.784665
2019-03-15T01:16:06
2019-03-15T01:16:06
175,723,493
0
0
null
null
null
null
UTF-8
Python
false
false
704
py
class Solution(object): def findComplement(self, num): """ :type num: int :rtype: int """ # ไบบๅฎถ็š„่งฃๆณ• # return 2 ** (len(bin(num)) - 2) - 1 - num # # ๆˆ‘็š„่งฃๆณ• # z = bin(num)[2:] # z1 = '' # for i in z: # if i == '1': # ...
[ "2540278344@qq.com" ]
2540278344@qq.com
9c9914865de3c1df41c80e63a0c11656069a6471
0455bd20bfc0fdd9b8553d033891e5b31e2e9384
/CrunchbaseInitial/CrunchbaseDataExtraction/AsianGendersNonEntrepreneurs.py
e278a5d1b35335d8f68f2f83f007fc2ada86f1e0
[]
no_license
kyriacosar/LInC-Eclipse-Repository
a0419305b824d8adcab0d31ab71ce9e4e2307f22
c480e071f9e571224e55983c3e9c6d0f70d0e511
refs/heads/master
2020-12-02T21:25:36.537787
2017-07-27T09:25:00
2017-07-27T09:25:00
96,314,446
0
0
null
null
null
null
UTF-8
Python
false
false
1,868
py
''' Created on Jul 11, 2017 @author: kyriacos ''' import json import math if __name__ == '__main__': e_file_in = open("../../../../Documents/Crunchbase Project Data/Microsoft/Crunchbase Results/Data Dictionaries/Crunchbase_Non_Entrepreneurs_FaceAttributes_Dictionaries.json", "r") e_file_out = open("../../../...
[ "Kyriacos" ]
Kyriacos
e2daf2c10b89897b95813eb9b9aa8cb2a7c61e8b
9b422078f4ae22fe16610f2ebc54b8c7d905ccad
/xlsxwriter/test/comparison/test_textbox04.py
486daa245958fcdc1dee5ed14a655faaee774af2
[ "BSD-2-Clause-Views" ]
permissive
projectsmahendra/XlsxWriter
73d8c73ea648a911deea63cb46b9069fb4116b60
9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45
refs/heads/master
2023-07-21T19:40:41.103336
2023-07-08T16:54:37
2023-07-08T16:54:37
353,636,960
0
0
NOASSERTION
2021-04-01T08:57:21
2021-04-01T08:57:20
null
UTF-8
Python
false
false
1,369
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
fea8328430f99719be80b3244d0aa3325e8de808
4f08a8172142c09b4d4f05f302ff120e91ef2f09
/src/train_att.py
c540ba36179dc736124e28a7b68dcab9d93c9629
[]
no_license
rpmcruz/background-invariance
d6e434d2da9c32bd0e9d7456263cfda5fa741ca9
5c5e4587f35f817473a0cacdf76059947eb5972e
refs/heads/main
2023-02-18T04:48:37.518278
2021-01-16T12:43:06
2021-01-16T12:43:06
330,155,526
0
0
null
null
null
null
UTF-8
Python
false
false
4,217
py
# https://towardsdatascience.com/self-attention-in-computer-vision-2782727021f6 # https://arxiv.org/pdf/1801.09927.pdf import argparse parser = argparse.ArgumentParser() parser.add_argument('dataset') parser.add_argument('--epochs', type=int, default=100) parser.add_argument('--batchsize', type=int, default=8) parser....
[ "ricardo.pdm.cruz@gmail.com" ]
ricardo.pdm.cruz@gmail.com
977b1e7ce55933a751614e974582e0c561f72d3c
353a149675375ba0895798933455d9c0718c9cb9
/.venv/bin/wheel
37a0e7d2adc33bee7dab690c9f9726a0a6934134
[]
no_license
dhdepddl/produce101
c69906f0de6c2ce6c407edacdfddd316364d18e4
538c3c211c544ec4f8f613465e8014f2883f6bad
refs/heads/master
2021-01-23T05:46:00.122176
2017-05-31T20:34:37
2017-05-31T20:34:37
92,986,292
0
0
null
null
null
null
UTF-8
Python
false
false
268
#!/Users/Young-eunKim/Downloads/csProject/aws/produce101/.venv/bin/python # -*- coding: utf-8 -*- import re import sys from wheel.tool import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "dhdepddl@gmail.com" ]
dhdepddl@gmail.com
f7af1f93ea513112a11febdbc0200461756311cf
a9ee69f84351a80cc02c971a04344c7c58d0154d
/CSGO_match_detail.py
bd8e8b561909f07a5dd36de14dbcf27153f75fa4
[]
no_license
yanlele9654/Dota2matchIDandELOscoreupdate
679673b17039ea8bec56690b4ed0fecb1bab41b6
9dad5df8bfd191cfb86d970a544727ad9da7fcb3
refs/heads/master
2023-02-10T12:56:36.517401
2021-01-08T05:51:00
2021-01-08T05:51:00
262,246,120
0
0
null
null
null
null
UTF-8
Python
false
false
3,005
py
# -*- coding: UTF-8 -*- #%% import pandas as pd import pymongo import DataBaseAccess_c as DBA import dota2_api db_eng_1 = DBA.DbInfoGenerator('vpgame').info # db_eng_2 = DBA.DbInfoGenerator('model_builder').info # ่ฟžๆŽฅๅˆฐๆœฌๅœฐๅบ“ client = pymongo.MongoClient(db_eng_1['host'], 7974) # Newclient = pymongo.MongoClient(db_eng_...
[ "ziaoyan@gmail.com" ]
ziaoyan@gmail.com
4cb2807167fc3041090d3ad932f279538d7d8e6d
3cb84cc8fec5c4a661b35bb1206e4e1488bf24ae
/src/predictionAlgorithms/sequenceCorelation/multiImageSequenceTransformation.py
14978da46ef4ee832f925310a582674ff836fda6
[ "MIT" ]
permissive
aivaras-ciurlionis/meteo
dbdf3fad13884e42264c309e166381009eb2a82d
434759d16f7cca505d280475611d1fef5176827b
refs/heads/master
2023-07-20T03:35:51.176354
2020-05-24T11:50:15
2020-05-24T11:50:15
115,193,737
0
0
MIT
2023-07-05T21:01:45
2017-12-23T12:19:49
Python
UTF-8
Python
false
false
2,969
py
import numpy from src.predictionAlgorithms.correlation.baseTransformation import BaseTransformation from src.utilities.imageAnalysis.pixelsRainStrengthConverter import PixelsRainStrengthConverter class MultiImageSequenceTransformation(BaseTransformation): transformations = [] baseName = 'Multi image sequence...
[ "aivarasciurlionis@gmail.com" ]
aivarasciurlionis@gmail.com
7c807805926e18c66667a6c5a5ddb2ab2e810823
6a675191b9104b3bd306f3e588bf7f81185071f5
/example.py
0392a6db5dd412b57af2e27f0f1a41b5f3943814
[ "MIT" ]
permissive
daviskirk/subseqs
8acc00d063dcdcb68dd0a6ef6c427bf66cac8b57
8e538b1d1857413721c27eb47b567e9b7fedddf6
refs/heads/main
2023-03-30T15:07:32.352141
2021-04-01T06:49:59
2021-04-01T06:49:59
353,602,460
0
0
null
null
null
null
UTF-8
Python
false
false
1,811
py
import pyximport; pyximport.install() import pandas as pd import numpy as np import numba as nb from numba import jit, njit from time import perf_counter, perf_counter_ns from subseq import is_subseq_py, is_subseq_rs from cy_subseq import find_loop_cy import cython def find_loop(seq, subseq): n = len(seq) m...
[ "davis.e.kirkendall@gmail.com" ]
davis.e.kirkendall@gmail.com
0b4d9d25c17ed1578e764ccaff622ee73acbde60
7f831c5c2fe6d34ff59453c58e4ebd701b4efc7f
/venv/bin/pylint
4e14f78291791db9e42cdc9baa2ce59a75f14018
[]
no_license
bunny1985/NotifierServer
cb1797ceb492402a3813c69f281f038565292b44
3c6f1c6422b4cfb360e4ac9c201119594c1f4ac5
refs/heads/master
2022-12-09T14:42:26.876353
2017-12-21T23:17:47
2017-12-21T23:17:47
115,055,570
0
0
null
2021-06-01T21:48:20
2017-12-21T23:16:06
Python
UTF-8
Python
false
false
252
#!/home/michal/Project/notifyTest/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pylint import run_pylint if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run_pylint())
[ "mb.michal.banas@gmail.com" ]
mb.michal.banas@gmail.com
03f5b30b8b31f117f607625f46e2d24b23d191a9
ba7a297f75b016a286d677b55343f60de69a9453
/model/utils/test_policy.py
591ffda8ab89a016e1b7abca18156654a5eb41bf
[ "MIT" ]
permissive
TheMonocledHamster/Counsel
5666d11216c3cfee49e13b13fbf5723d6b43d698
d2e4a2566d4d571d9ba0babe9a15750d827327b7
refs/heads/master
2023-05-10T15:57:06.061065
2023-04-22T11:39:56
2023-04-22T11:39:56
553,064,046
3
0
MIT
2023-04-22T07:33:10
2022-10-17T16:53:28
Python
UTF-8
Python
false
false
3,903
py
import joblib import csv import os import os.path as osp import torch import sys sys.path.insert(0, '../../') from .logx import EpochLogger from ..env import CloudEnv def load_policy_and_env(fpath, itr='last', params=None): # handle which epoch to load from if itr=='last': # check filenames for epoch...
[ "adithyah07@gmail.com" ]
adithyah07@gmail.com
088f5a935085713d1f20c82d2f95e0ba31e9fc85
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/difference-of-squares/6bb2f99092244bb48dce2c00c19a804f.py
bad5f033d6a46058afa17473abbfba5fefc147e7
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
1,191
py
# -*- coding: utf-8 -*- from __future__ import division def difference(n): """ differences(int) -> int Return the difference between the square of the sums and the sums of the squares up to n. """ return square_of_sum(n) - sum_of_squares(n) def square_of_sum(n): """ square_of_sum(...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
3468a788789a89e21d9f7bca64d58226d88bd41f
f329f3061e3a72b2562bb242dfe1a2ed07fe65f0
/plugins/yongyou_zhiyuan_a6_app.py
b860deb6797eb3a2707688c9c7b7c34d87871b9e
[ "MIT" ]
permissive
ver007/getcms
58263174355eb16bae95b74f6efaff5069b4ce56
da03c07457abc266cacddc3ccd67126f0b03da3d
refs/heads/master
2021-01-19T07:01:51.453626
2016-04-13T08:28:14
2016-04-13T08:28:14
56,134,430
0
0
null
2016-04-13T08:27:38
2016-04-13T08:27:38
null
UTF-8
Python
false
false
164
py
#!/usr/bin/env python # encoding: utf-8 def run(whatweb, pluginname): whatweb.recog_from_file(pluginname, "yyoa/common/js/javaSeesion.js", "f_showallCookie")
[ "hackerlq@gmail.com" ]
hackerlq@gmail.com
ee32f1fbf5d8f763a4e5b636a2b60dcbbde94db1
98a26171e36e2e6f54fb067b62f36147c5bb2f52
/Desafios/venv/Scripts/easy_install-script.py
c73dc38f1ea23a3c7b2073b4c24a9e6f90206b2e
[]
no_license
brpadilha/exercicioscursoemvideo
d75361726b9863c34a06883ce8f26131104c1dd8
1b82492a1bb6b7cfaf4b74b4fa9ea9eedad4b6ff
refs/heads/master
2020-03-11T22:48:45.747256
2019-05-03T17:18:11
2019-05-03T17:18:11
130,303,531
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
#!"A:\Projeto curso python\Desafios\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install' __requires__ = 'setuptools==28.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw...
[ "brpadilha.dev@gmail.com" ]
brpadilha.dev@gmail.com
ea78d6fb59ce193e9097c5c549b653d24cd1882a
54fce28140274c1136ef58283e7f6925ba67c32f
/aws/run_ec2_instance.py
5de82a1cdf73ae5501a65826f500af3fefe0a54e
[]
no_license
mohitsingla123/Industrial-Assistent
0bd8b06c82ac9a290ef0a2740fc654f67ca0e0f9
de95f5d2dd1e3ecf4f4ca3352865a8e00d5da527
refs/heads/master
2022-07-11T04:23:34.432295
2020-05-18T16:09:54
2020-05-18T16:09:54
260,149,901
1
1
null
null
null
null
UTF-8
Python
false
false
1,459
py
import create_ec2_instance import ec2_instance import os import sys import time '''To provide choice to the user whether he wants to create the instance or change the state to stop or start of the existing instance''' def state_choice(st_ch): if st_ch==0: create_ec2_instance.main() ...
[ "noreply@github.com" ]
noreply@github.com
96c866757520ccc5e307a307a8fd697449d3becc
11485f818c6b7b6cf35c84d1abab77881e4e2004
/ambience/modules/phash/phash_web.py
fefa08cbfeca4ae0b5e46b2c151d8abd326d48b8
[]
no_license
fu4303/photos-scenery
f398659579982d20573485b98b825cc2a2ee7cdd
c475363564f1e8cf551f24829a8104bcab88f66c
refs/heads/master
2023-06-17T12:11:53.495380
2021-07-15T19:01:31
2021-07-15T19:01:31
386,404,116
0
0
null
null
null
null
UTF-8
Python
false
false
5,946
py
import uvicorn if __name__ == '__main__': uvicorn.run('phash_web:app', host='127.0.0.1', port=33336, log_level="info") import faiss from pydantic import BaseModel from fastapi import FastAPI, File,Form, HTTPException from os import listdir import numpy as np from scipy.fft import dct from numba import jit import cv...
[ "44163887+qwertyforce@users.noreply.github.com" ]
44163887+qwertyforce@users.noreply.github.com
dee47a4c698525f9918c3cb48749bf0d284021a0
520f9caeb5c380c42efb26f6778340e8fa7deba8
/Novice/02-04/listkerja/list/models.py
de355f6194c5b08910e9803b62c61ef780a2d8c6
[]
no_license
Tama96/praxis-academy
1fda57d4ddae1d87deb5bede2e9475e01ab75214
b4de60ea0246dac6ee5f898454e5942e0ca91ac8
refs/heads/master
2022-12-26T13:49:09.925185
2020-10-12T01:39:07
2020-10-12T01:39:07
287,658,864
0
1
null
null
null
null
UTF-8
Python
false
false
182
py
from django.db import models # Create your models here. class Tugas (models.Model): Task = models.TextField() #Status = models.TextField() #Action = models.TextField()
[ "aldypratama96@gmail.com" ]
aldypratama96@gmail.com
5470cb1f96191a6a4abe8370fa67ee1c31561713
3f02c24c865c30113cc622a4fe19cfdeace0dfc5
/dashboard/api.py
c1fb432c4021c8a0b04284dae9fb8d4b2d42f21a
[]
no_license
ravi1173/django_login
7385dfac41e55dd849e09728e22bfe71db1bea5a
36d17b34b5a3b8bf5ac25c585a23d7808ae49894
refs/heads/main
2023-08-26T08:42:55.828435
2021-11-05T10:40:36
2021-11-05T10:40:36
424,098,314
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from .serializers import * class ImagesList(APIView): def get(self, request): model = my_images.objects.all() serializer = ImagesSerializer(model, many=True) ...
[ "noreply@github.com" ]
noreply@github.com
812c60a9a62f39e42d66aaf3a54af5b8ea26977c
42ad8af851f911a12ea831d752897ecba597abcc
/wargame/migrations/0006_challange.py
99dd38ccf69b1e8202e0b750f77fb82ac527b384
[]
no_license
wojtekzozlak/wargame
75d2afebbaaa19a8d57f24bfd778f4f1cb39de76
d61b8c60be70f5fc1c514e8b08e61a2cd5691061
refs/heads/master
2020-12-20T12:42:00.472359
2016-08-04T20:43:58
2016-08-04T20:43:58
53,892,223
0
0
null
null
null
null
UTF-8
Python
false
false
1,220
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-08-02 07:38 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependen...
[ "wzoltak@localhost" ]
wzoltak@localhost
098652f1ba5f7e35f2cd33828c5f556fb7f691c3
866efb0624cf3ceb9903ed34aaab3e7d11c8bd27
/9y10.py
56e042c3e52de2a8e3fcef525a71726d6921c01f
[]
no_license
StephyMunoz/ExamenADD
9dfa4983f7f037478edc763883e062c9edc82b54
40db1a0f4a9811756f3ad54052f0dc452c6052f2
refs/heads/main
2023-02-12T19:22:19.012280
2021-01-19T04:46:46
2021-01-19T04:46:46
330,797,239
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
import pandas as pd from pymongo import MongoClient import csv client = pymongo.MongoClient("mongodb+srv://esfot:esfot@cluster0.845nq.mongodb.net/animalsandRecycling?retryWrites=true&w=majority") try: client.admin.command('ismaster') print('MongoDB Atlas connection: Success') except ConnectionFailure a...
[ "noreply@github.com" ]
noreply@github.com
3bf9d2b2c05304b6e664170afe451608b5884827
56832c284c45fa19ea0de80c38a432271ad6d144
/app/server.py
07bc5e35871f29dccf47f1448e1c46b9e6e19bff
[]
no_license
biancarosa/music-stats-api
c42bbf5395e9ace4fade1f6726ba54b893c171b9
6e855bab2e07f82c03b13d306f91ad427da1495a
refs/heads/master
2022-07-11T20:34:04.568634
2018-01-09T16:00:15
2018-01-09T16:00:15
116,841,138
0
0
null
2019-06-09T03:53:59
2018-01-09T16:28:48
Python
UTF-8
Python
false
false
828
py
# encoding: utf-8 """Inicia aplicaรงรฃo flask.""" from flask import Flask, jsonify from app.health_check import blueprint as health_check_blueprint from app import logger LOG = logger.new(__name__) def setup(): """Monta uma API flask e registra seus blueprints.""" LOG.info("Creating API.") api = Flask(__na...
[ "me@biancarosa.com.br" ]
me@biancarosa.com.br
8f2320db05e849c4bc3d43febb2099b487e896cd
f3cd34c154e9d791c9c70ea75ffab43257b4fedc
/Interface.py
55c08969a3af000664cb5f9c849da86eac2a7231
[]
no_license
rafatespindola/ProjetoIntegrador2
b24ed1a86fb2adf8edf2813a4ea402e3a674d0a0
2092e86d483178aac53b72454f38cd98cc4c7628
refs/heads/master
2020-05-19T15:33:39.853301
2019-06-06T21:36:30
2019-06-06T21:36:30
185,087,865
0
0
null
null
null
null
UTF-8
Python
false
false
4,392
py
from Communication import * from Treasure import * import threading import time from os import system, name #------- atributos do SS --------- # isRobo = 0 def atualizarmapa(lista): A = list(lista) for x in range(0, 8): for y in range (0, 8): A = list(lista) if(y==0): ...
[ "rafatespindola@gmail.com" ]
rafatespindola@gmail.com
8b9709abb675aab988c321e62f856a53d3a011e2
37ecd827fc193d9085c491bea4bf51ce971a11fa
/sklearnpractice/linearregression.py
9d6744ebecbe23ef0ae80713772cc3aff8ecc4b7
[]
no_license
heblade/learnPython3
fc01bf024e1f95633c990e398a641d544b6d0b8d
dfd2cd6952f56c346ffe0dbdcf95f4f5eaca517e
refs/heads/master
2021-09-02T14:44:26.749660
2018-01-03T08:31:08
2018-01-03T08:31:08
105,245,518
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
from sklearn.linear_model import LinearRegression from sklearn.model_selection import cross_val_predict from sklearn.datasets import load_boston from sklearn.metrics import explained_variance_score, mean_squared_error import numpy as np import pylab as pl boston = load_boston() x = boston.data y = boston.target linere...
[ "blade.he@morningstar.com" ]
blade.he@morningstar.com
ba06bd7292f8e629f4ba451286d9ca78aa821f4b
ea02b744a4c87035fc9819adab761b09255ca8a0
/2.py
6a70eaefa6fe1e15dd84984bb761777468d3c0a8
[]
no_license
tigerthelion/advent-of-code-2019
4405d5c7513c8fd984a624fabbd940918a3a23a3
016b19894805a71a4c31d799f18bcd5891a93595
refs/heads/master
2020-09-28T12:27:56.735899
2019-12-09T03:36:25
2019-12-09T03:36:25
226,778,612
0
0
null
null
null
null
UTF-8
Python
false
false
2,261
py
program = [1,0,0,3,1,1,2,3,1,3,4,3,1,5,0,3,2,13,1,19,1,6,19,23,2,23,6,27,1,5,27,31,1,10,31,35,2,6,35,39,1,39,13,43,1,43,9,47,2,47,10,51,1,5,51,55,1,55,10,59,2,59,6,63,2,6,63,67,1,5,67,71,2,9,71,75,1,75,6,79,1,6,79,83,2,83,9,87,2,87,13,91,1,10,91,95,1,95,13,99,2,13,99,103,1,103,10,107,2,107,10,111,1,111,9,115,1,115,2,11...
[ "bjt.thompson@gmail.com" ]
bjt.thompson@gmail.com
87c0bb86ab7e49b7da4231abad6364ea302f122e
b5b1be6063901bd0bc97c3fbc2c26be1d02ce79e
/output/__init__.py
e9b0cb52d8081c4e39506efa55060fb586d86b77
[]
no_license
dssg/rcra
ff566ff388596a733757e4de27631cbabdc7f15c
fcdd8f95c25902e46c55d85cbc4fe54196163f3d
refs/heads/master
2021-06-11T13:09:01.686456
2017-02-24T05:19:51
2017-02-24T05:19:51
61,817,642
1
2
null
null
null
null
UTF-8
Python
false
false
252
py
from drain.data import FromSQL facilities = FromSQL(""" select rcra_id, zip_code, dedupe_id as entity_id from output.facilities join dedupe.unique_map using (rcra_id) """, tables=['output.facilities', 'output.handler_names']) facilities.target=True
[ "eric@k2co3.net" ]
eric@k2co3.net
919f7d6944f73974b7fe12fde93dea2c2b2ab328
738aee780a09095cf78f43383b74fe31968b3e61
/fundamentals/fundamentals/function_intermediate_i.py
266817c272af4ad0063712ca1fffb5c8e96020c8
[]
no_license
csmatthews1/Python
6940c710b9bb282044b109c4bf0c903344aedf89
0abaa4ff0b57f6ea23e2d10154d94059c1c4372c
refs/heads/main
2023-08-06T04:15:12.218307
2021-10-11T17:10:53
2021-10-11T17:10:53
401,413,280
0
0
null
null
null
null
UTF-8
Python
false
false
1,577
py
x = [ [5,2,3], [10,8,9] ] students = [ {'first_name': 'Michael', 'last_name' : 'Jordan'}, {'first_name' : 'John', 'last_name' : 'Rosales'} ] sports_directory = { 'basketball' : ['Kobe', 'Jordan', 'James', 'Curry'], 'soccer' : ['Messi', 'Ronaldo', 'Rooney'] } z = [ {'x': 10, 'y': 20} ] #update value...
[ "86792473+csmatthews1@users.noreply.github.com" ]
86792473+csmatthews1@users.noreply.github.com
d14fb1d43dc3d360f35e8f8cf30463263d7b729e
6944866ffa5b6899c812cbd06929cd29896f557d
/oauth_dropins/mastodon.py
567dea787adeec4c951c61cbd9db7e18b92723d2
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain", "Unlicense" ]
permissive
stedn/oauth-dropins
f7b329c69f79297dfc6f8060c10d2b069c5cb0a8
afe5cc946e2d969a37d83e2a093195c1d5cf27db
refs/heads/master
2021-05-23T15:56:22.354077
2020-03-27T17:40:51
2020-03-27T17:40:51
253,368,311
2
0
Unlicense
2020-04-06T01:31:32
2020-04-06T01:31:32
null
UTF-8
Python
false
false
12,423
py
"""Mastodon OAuth drop-in. Mastodon is an ActivityPub implementation, but it also has a REST + OAuth 2 API independent of AP. Uh, ok, sure. API docs: https://docs.joinmastodon.org/api/ Interestingly: as usual w/OAuth, they require registering apps beforehand...but since AP and Mastodon are decentralized, there's no ...
[ "git@ryanb.org" ]
git@ryanb.org
64b3f19b920cf2ef85bbd55f568c52dfebcb448e
23928301ed2ff498252cf400fb22af77bc237656
/meiduo_api/apps/contents/admin.py
2cd59eb409e561dab8e793bfcfbc1ba7e5048281
[]
no_license
lanxuyang/meiduo_site
261657ad99d4fb5cecf072361f8fbb3499360908
777401235ebbeb99f822cafe47531ce71fe4def9
refs/heads/master
2020-09-22T02:30:57.617206
2019-03-14T00:45:30
2019-03-14T00:45:30
225,018,316
1
0
null
2019-11-30T13:42:21
2019-11-30T13:42:20
null
UTF-8
Python
false
false
134
py
from django.contrib import admin from . import models admin.site.register(models.ContentCategory) admin.site.register(models.Content)
[ "jerry.liubing@gmail.com" ]
jerry.liubing@gmail.com
d3496fd26e6b3bb167a75d8585d01b0454ce14ec
27dd31929023cea60b481f2e0c05f1394cd2691a
/netchecker.py
2dd00212e3fe5341cc3861aff1ff2b2dcd9d9ba7
[]
no_license
adminempire/pentestpi-port
f11c4c777bb69df32f6f9008bc6b1e4c912485df
1245b0aca94588226da0ed34bdcba2d0bd572964
refs/heads/master
2021-01-20T06:06:09.926404
2014-03-26T06:33:01
2014-03-26T06:33:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,935
py
#!/usr/bin/env python2 import subprocess import re # Constants IWCONFIG = "iwconfig" IFCONFIG = "ifconfig" ipre = re.compile("addr:[0-9.]+") class Device(): """Class that defines a device object.""" ifname = None ip = None def __init__(self, ifname): self.ifname = ifname if __na...
[ "jl@adminempire.com" ]
jl@adminempire.com
7772812ab1b3ee82383dff5bf42fefc38b7d651f
d6474e6ecd24ca291a62371621535cc6b344bc4b
/cs61a/projects/scheme/scheme_reader.py
6def4ce2c43c88d1cc1421c9042e461c0cba2750
[]
no_license
williamwang0/Coursework
1d14121dab1a843f4b82755972c6eb98228bb901
a8eec4cd3f3175062aad64579dd747afee00826a
refs/heads/master
2020-07-08T15:41:37.923352
2019-08-31T23:31:33
2019-08-31T23:31:33
203,714,084
0
0
null
null
null
null
UTF-8
Python
false
false
6,448
py
"""This module implements the built-in data types of the Scheme language, along with a parser for Scheme expressions. In addition to the types defined in this file, some data types in Scheme are represented by their corresponding type in Python: number: int or float symbol: string boolean: ...
[ "wwang0430@berkeley.edu" ]
wwang0430@berkeley.edu
5820da32b2e5e20654de32623f69f4536d704f73
8799e7fb96abb8922d40c8534553887b846870d0
/client/game/MouseGame.py
f9eacca90bc62d4776bcea50cd64dbc515b0f758
[]
no_license
awakening95/Catch-Catch
7d0e5c0b329890954715a633f3547f021b60cd94
87bc4403bfa92b559dfbe7bc8d773b8a318cad29
refs/heads/master
2020-09-13T12:19:17.822630
2019-12-09T04:50:49
2019-12-09T04:50:49
222,775,643
0
0
null
null
null
null
UTF-8
Python
false
false
19,381
py
#!/usr/bin/evn python import pygame import asyncio import random import math import pyautogui import socket import os import glob live_list = [True, False, False, False, False, False] control_live = False WHITE = (255, 255, 255) BLACK = (0, 0, 0) pad_width = 1280 # 1024, 512 640, 360 pad_height = 720 mouse_width = ...
[ "awakening95@naver.com" ]
awakening95@naver.com
33a35015fa000b26ac58e46c1a4864e421259f6c
4b0487c0852c24de9f3ab90e52109d425b709b9a
/colorization/util.py
d08223a4ee745925a59ed5eb312714a820365bf0
[]
no_license
RuolinQu/CS520-Intro-to-AI-project
327d923c9b997bf169ae3188a3dbbd3b6bb2d6df
446c4e2db113f26cf252c7da92e6b8c78e9c0f2e
refs/heads/master
2021-08-11T03:39:00.940314
2021-01-05T22:14:10
2021-01-05T22:14:10
238,278,285
1
1
null
null
null
null
UTF-8
Python
false
false
619
py
import numpy as np import cv2 def mean_padding(image,n): mean=np.mean(image) h,w=np.shape(image) image_pad=np.zeros((h+2*n,w+2*n)) image_pad.fill(mean) image_pad[n:n+h,n:n+w]=image return image_pad def initializeFilter(size, scale = 1.0): stddev = scale/np.sqrt(np.prod(size)) return np...
[ "quruolin95@gamil.com" ]
quruolin95@gamil.com
60398c62b4d0d98472e28c1228240e17ae865c49
63ac1ebd4c82d5128caf22800e7df6a582683a0b
/website_calendar/controllers/main.py
b52f1ef34bd70dd847ced6c82d5af09eb3aa2463
[]
no_license
Darknroses/pedinnails
5cce55c66330ec2e3f30d4ea0f883e85df68e56e
56584712ee11758a5473b959ad075dcd5fc04636
refs/heads/main
2023-08-23T02:27:11.147977
2021-10-08T03:26:00
2021-10-08T03:26:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,445
py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import datetime from dateutil.relativedelta import relativedelta import pytz from babel.dates import format_datetime, format_date from werkzeug.urls import url_encode from odoo import http, _, fields from...
[ "toan@syncoria.com" ]
toan@syncoria.com
9f4252f5cb1f766315de51f2b117bd05243e6cb3
d13d5f0faab22556a55507c3a7fe558c8639187c
/setup.py
f074c19e09c9d6ef711682f4e79a929c7c5a0fa8
[]
no_license
st9540808/ChatBot
6627092b5c309fd7e2580f7e843a39ece963a616
459a74f3b513da1c1b5a8a4dea0984c1f98672cc
refs/heads/master
2021-09-02T07:41:04.717672
2017-12-31T15:27:28
2017-12-31T15:27:28
114,142,707
2
0
null
null
null
null
UTF-8
Python
false
false
1,066
py
import sys import telegram from flask import Flask, request import first_transition as ft app = Flask(__name__) bot = telegram.Bot(token='434221090:AAGIniGBERUTy6bTkPqQgZzP3UXkhU4eif8') bus = ft.BusInfo() def _set_webhook(): status = bot.set_webhook('https://cbd9b717.ngrok.io/hook') if not status: pr...
[ "st9540808@gmail.com" ]
st9540808@gmail.com
ca4233e96235fc0c51199d4ec636baa2356b6554
a97af2ae2b132f4a467c00135e00e7434b722403
/prac_03/password_check.py
71e2a7aa12bfe09a9f23e538af33fd6809e2237d
[]
no_license
daniel-bush/Practicals_CP1404
a4dec44603d751bc37efcdffb0235c3d757fe777
4919d79f86a87969cec38e40cf34dc0f599390e0
refs/heads/master
2023-01-04T11:03:46.042788
2020-10-28T13:22:21
2020-10-28T13:22:21
290,442,213
0
0
null
2020-09-03T09:30:54
2020-08-26T08:37:46
Python
UTF-8
Python
false
false
436
py
MIN_LENGTH = 10 def main(): password = get_password(MIN_LENGTH) print_asterisks(password) def print_asterisks(password): for char in password: print("*", end="") def get_password(MIN_LENGTH): password = input("Password: ") while len(password) < MIN_LENGTH: print("Password must ...
[ "Themepw999GH1987" ]
Themepw999GH1987
4a9e8aa14c6caaa64e388c73cf1955139791697f
3a771b72dae1aae406b94726bcbcf73915577b18
/q11.py
7957ae29604c51312fee4b0a13e0a5bfe42decff
[]
no_license
SHANK885/Python-Basic-Programs
4fcb29280412baa63ffd33efba56d9f59770c9dc
157f0f871b31c4523b6873ce5dfe0d6e26a6dc61
refs/heads/master
2021-07-18T18:24:10.455282
2018-11-19T07:02:27
2018-11-19T07:02:27
138,009,231
0
0
null
null
null
null
UTF-8
Python
false
false
584
py
''' Question: Write a program which accepts a sequence of comma separated 4 digit binary numbers as its input and then check whether they are divisible by 5 or not. The numbers that are divisible by 5 are to be printed in a comma separated sequence. Example: 0100,0011,1010,1001 Then the output should be: 1010 Notes: As...
[ "shashankshekhar885@gmail.com" ]
shashankshekhar885@gmail.com
c51784928162c8a674b9a5deffb9654d0c8ef600
0dcb2348314ad4f9021f7cd1661bf8f80a4d592a
/RightTriangleApp.py
e7eab9763f8eebee32106af35af45ed63052e8c8
[]
no_license
GhulamMustafaGM/PythonChallenges
62cfa7a86d1bc780e75978db012408c545229778
d3c16b173994968ce8bcb67a35a70ca860b640b9
refs/heads/master
2023-03-08T11:39:21.967898
2021-02-15T22:07:15
2021-02-15T22:07:15
325,989,469
1
0
null
null
null
null
UTF-8
Python
false
false
882
py
# Right Triangle import math print("Welcome to the Right Triangle Solver App") # Get user input side_a = float(input("\nWhat is the first leg of the triangle: ")) side_b = float(input("What is the second leg of the triangle: ")) # Calculations side_c = math.sqrt(side_a**2 + side_b**2) side_c = round(side_c, 3) ar...
[ "mustafaji@gmail.com" ]
mustafaji@gmail.com
1fbbba47143217fdc15bcfdfc0c824212343623f
5fa2b72654e7676ce4cff1c5d3d115bab9a7d30f
/conanfile.py
4911a064e42314e20bac8948c26cdc79c8d9ce32
[]
no_license
ambroff/conan-visit_struct
86fbf970b2c148abaa71be9cc396bac18bcb41c0
9b80802f3a54454f4475f37ac9e80727919316c5
refs/heads/master
2020-04-08T21:08:31.190979
2018-11-29T21:39:53
2018-11-29T21:39:53
159,730,977
0
0
null
null
null
null
UTF-8
Python
false
false
1,014
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from conans import ConanFile, CMake, tools import os class VisitStructConan(ConanFile): name = "visit_struct" version = "1.0" url = "https://github.com/ambroff/conan-visit_struct" description = "A miniature library for struct-field reflection in C++" ...
[ "kyle@ambroffkao.com" ]
kyle@ambroffkao.com
beb8b556b8292e3e60a49a4dd5625d013750d1d7
aa480d8b09dd7ad92c37c816ebcace24a35eb34c
/third-round/43.ๅญ—็ฌฆไธฒ็›ธไน˜.py
cf3fd3f45529613e3a133392c58f55c8d88caa5a
[]
no_license
SR2k/leetcode
7e701a0e99f9f05b21216f36d2f5ac07a079b97f
de131226159865dcb7b67e49a58d2ddc3f0a82c7
refs/heads/master
2023-03-18T03:37:02.916453
2022-09-16T01:28:13
2022-09-16T01:28:13
182,083,445
0
0
null
2023-03-08T05:44:26
2019-04-18T12:27:12
Python
UTF-8
Python
false
false
1,634
py
# # @lc app=leetcode.cn id=43 lang=python3 # # [43] ๅญ—็ฌฆไธฒ็›ธไน˜ # # https://leetcode-cn.com/problems/multiply-strings/description/ # # algorithms # Medium (44.96%) # Likes: 862 # Dislikes: 0 # Total Accepted: 205.5K # Total Submissions: 457.8K # Testcase Example: '"2"\n"3"' # # ็ป™ๅฎšไธคไธชไปฅๅญ—็ฌฆไธฒๅฝขๅผ่กจ็คบ็š„้ž่ดŸๆ•ดๆ•ฐย num1ย ๅ’Œย num2๏ผŒ่ฟ”ๅ›žย num1ย ๅ’Œย ...
[ "luozhou.csy@alibaba-inc.com" ]
luozhou.csy@alibaba-inc.com
e21d152f45de841949af418b3a1b04c8ac9e5f34
3ec04f397e18c9b8136cb5bfa26079b15568e0e3
/downloader/context.py
aeae072516e1a9a786ddfe9780217fddbe42990b
[]
no_license
fagan2888/soundcloud-dl
3c8a772debe27746bca80ff998ca166232a4531f
3ff77425553e8f765ec452a83076c4cc16ad54ab
refs/heads/master
2022-04-13T00:23:54.908666
2020-03-07T05:13:06
2020-03-07T05:13:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
import sys import os sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from config import client_id
[ "suyash.behera458@gmail.com" ]
suyash.behera458@gmail.com
6b9b9ead9132737c8e9590117045b92764a234ae
11a4f47647bc2113641ef44b0cafc3011ca5ad69
/VBinterface.spec
f9d675882d7dc0194bec10194138dd296530a9b0
[]
no_license
LucioPg/VBinterface
617d9f9006ce1666f0a575f0aee72d9fe8eb8c50
f8db385e2cad3a74bac5433b50b5acbb644cc39c
refs/heads/master
2020-09-09T11:21:04.646925
2019-11-13T10:33:12
2019-11-13T10:33:12
221,433,366
0
0
null
null
null
null
UTF-8
Python
false
false
1,006
spec
# -*- mode: python ; coding: utf-8 -*- block_cipher = None a = Analysis(['main.py'], pathex=['C:\\Users\\Lucio\\PycharmProjects\\VBinterface'], binaries=[], datas=[], hiddenimports=[], hookspath=[], runtime_hooks=[], excludes=...
[ "lucio.di.capua@gmail.com" ]
lucio.di.capua@gmail.com
4b817c90da1a1bf413b75b098e4e7aced20b4cdb
8034442a9778043b1d886220a3c928327b6297d4
/Case_rbm/vlan_bond/index.py
2225ed51c99d287e815f12237d49525615f04bb8
[]
no_license
wangqian0818/auto_test
5efe6d7b41ff01e6a9f10211674f55e195484a1c
803a485d9720f090f7fa5d4482092cc4e7d9aa73
refs/heads/master
2023-08-24T01:27:40.956398
2021-11-02T02:12:14
2021-11-02T02:12:14
367,355,734
0
0
null
null
null
null
UTF-8
Python
false
false
1,056
py
#coding:utf-8 from common import baseinfo vlanCardid = str(baseinfo.gwVlanCardid) vlanA = str(baseinfo.vlanA) vlanB = str(baseinfo.vlanB) #้…็ฝฎไธ‹ๅ‘ #ๅˆ—่กจ้‡Œ้ข็š„้กบๅบไพๆฌกไธบ๏ผšๆŸฅ่ฏขๅ‘ฝไปค๏ผŒ้ข„ๆœŸ็ป“ๆžœ case1_step1={ "step1":[f"export cardid={vlanCardid}&&switch-jsac --set --module 12 --switch on",f"export cardid={vlanCardid}&&switch-jsac --get | grep ...
[ "wangqianjob0818@163.com" ]
wangqianjob0818@163.com
9f48906c1b9de377c3ac9cfb75b91d0f5fdffaca
b40770127462ff2ac9ca9c8c2a427839ce00c8e6
/sdks/python/apache_beam/internal/metrics/cells.py
44ee3953b4685ebaf1215850b40dffe49d41acee
[ "Apache-2.0" ]
permissive
PolideaInternal/beam
99f6fcd17dfc8320152d433bd106cde93af33f62
7223fb3d6bb43e956a480a7f6640c62c78350aab
refs/heads/master
2021-07-12T19:38:08.047853
2020-11-05T05:46:51
2020-11-05T05:46:51
232,585,848
1
1
Apache-2.0
2020-11-08T14:10:37
2020-01-08T14:46:29
Java
UTF-8
Python
false
false
5,538
py
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
[ "heejong@gmail.com" ]
heejong@gmail.com
4fac2c031badc7ec46cb85af953b08954fb12561
b7b43e286059b7ecaa2564b9b91cd2f10de4f5b3
/files/default/iprule-smart-add.py
9ab5914bcae4faaa2a3405bb9404371000ed01ea
[]
no_license
ym/chef-iproute2
6bd87d469488105eb2cd846c6d0ac5329dad5602
23e85b4434f808691ca222c958b4ce7800b5cde1
refs/heads/master
2021-01-20T21:11:59.610759
2016-06-01T10:29:53
2016-06-01T10:29:53
60,167,843
1
1
null
null
null
null
UTF-8
Python
false
false
2,209
py
#!/usr/bin/env python from pyroute2 import IPRoute from pyroute2.netlink.rtnl.fibmsg import FR_ACT_NAMES from netaddr import IPNetwork from socket import AF_INET import click ipr = IPRoute() FR_ACT_NAMES_MAP = dict((v, k) for k, v in FR_ACT_NAMES.iteritems()) IPRULES_MAP = { 'family': 'family', 'action': FR_A...
[ "i@xswan.net" ]
i@xswan.net
78a6189426285641334e96eb52250ffb83f8de7a
cf0c0ad8707802ab74bd7b66869ab5715359aea4
/trading_strategy_learner/ManualStrategy.py
6c8fc6816f93b0fd5fc24e3401eb02cbffff417d
[]
no_license
yubailibra/Machine_Learning-CourseProjects
074dde678659fca437e95fbce15fee8f5d6a23b5
858db25ccf43acc79c03a007b0b58c365900f841
refs/heads/master
2020-04-24T11:00:15.707464
2019-03-10T18:50:44
2019-03-10T18:50:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,972
py
# name: Yu Bai; ID: ybai67 #implement testPolicy() which returns a trades data frame according to the Manual Strategy import os import pandas as pd from indicators import * from marketsimcode import * def testPolicy(symbol="JPM", sd=dt.datetime(2008, 1, 1), ed=dt.datetime(2009, 12, 31), sv=100000): #prices =...
[ "yubailibra@yahoo.com" ]
yubailibra@yahoo.com
d1d81bf00ebe1dfccd8e1c08d0c0757afe92f0ab
5db12cd9e0be631afe739102b18254e15761a4e2
/studios/account/admin.py
c7d369b9a6770535ed452f5182cb8a7bd51346b8
[]
no_license
mustgern/sitegood
60646544ccf762a0729f85f52f74dbcf99ed24f2
6aba72a7812739fb9ea6460ebc9b1641321ea50b
refs/heads/master
2022-11-22T22:29:19.401462
2020-07-30T10:25:29
2020-07-30T10:25:29
283,474,154
0
0
null
null
null
null
UTF-8
Python
false
false
119
py
from django.contrib import admin from .models import Users # Register your models here. admin.site.register(Users)
[ "noreply@github.com" ]
noreply@github.com
5d506815f5dc84a3bd1828dcf28536a7cf28de68
e603275243725c6ef7e3d6a608994b773c79d853
/third-party/stanza/stanza/research/metrics.py
e4ff49dcef1cb1eb413bb15a5a961756a7cd919e
[ "Apache-2.0" ]
permissive
futurulus/rl-cards
07adad2c2572aaa58eddb90ea916b564ee16092b
080d9c043b77794e9306111d8c3af82ad9ef4a8f
refs/heads/master
2020-04-12T09:35:03.809920
2017-04-11T21:57:30
2017-04-11T21:57:30
64,797,924
1
0
null
null
null
null
UTF-8
Python
false
false
9,314
py
import numpy as np ''' import warnings try: import nltk.translate.bleu_score as nltk_bleu except ImportError as e: warnings.warn('Cannot import nltk; BLEU will be unavailable: ' + str(e)) nltk_bleu = None ''' from .bleu import corpus_bleu from .instance import Instance # NOQA: for doctest from .learner im...
[ "wmonroe4@stanford.edu" ]
wmonroe4@stanford.edu
7ff5ace33b7b5f94bd27e78e54a51bb4adfe7e97
e58fcc1467ad81084b016d2a48d672d75da2c058
/rdkit/Code/DataStructs/Wrap/testSparseIntVect.py
3cc02547f6b0be4e87ec009699478e2eb5f412f7
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ali1810/sol_heroku
294375d70c656452749e959bfb851a50defc0e01
97b548ce7d864e6fed936c53b790c1dc8038cff2
refs/heads/main
2023-08-15T06:18:26.933254
2021-09-14T10:20:19
2021-09-14T10:20:19
405,223,280
0
0
null
null
null
null
UTF-8
Python
false
false
5,585
py
# $Id$ # # Copyright (C) 2007,2008 Greg Landrum # # @@ All Rights Reserved @@ # import os, sys import io import unittest import pickle from rdkit import RDConfig from rdkit import DataStructs as ds import random def feq(v1, v2, tol=1e-4): return abs(v1 - v2) < tol class TestCase(unittest.TestCas...
[ "noreply@github.com" ]
noreply@github.com