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
bb095d9bd599da967746ca52b1d2253d2297c9dd
54e70081228efb6a6dc8b80b60c8efbf71ef7d7b
/Restaurant/user/models.py
8cb55c7d81dfd8702e56ed3771dc4da812e49a84
[]
no_license
Hoangkhang3108/DATH
d98b3dfe4dfc1e64415397cf5ad554d0cac62bba
719033c074d49e3d0b30110b5f796f756b19788d
refs/heads/master
2020-05-26T18:38:08.210073
2019-05-24T02:18:30
2019-05-24T02:18:30
188,336,669
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
from django.db import models from django.contrib.auth.models import AbstractUser class CustomerUser(AbstractUser): phone_number = models.CharField(default='', max_length=15) address = models.CharField(default='', max_length=255)
[ "phkkinz@gmail.com" ]
phkkinz@gmail.com
c51399d1b9fa6f1634e7e4e9db6c9535140902c6
757cbc5ccaa93a25d3cd14daae21c91c948b3475
/MAP_GMM.py
15ebba45271403e2308e4383dbe3a632bcb60882
[]
no_license
simpleplanya/SLR
7a5b2c0066bac9690fa73ef362d63d868e4b96a4
4e2eaee484a9b490d1b443f91d9485314e0f6b29
refs/heads/master
2021-04-26T23:52:04.699301
2018-05-15T13:53:11
2018-05-15T13:53:11
123,871,798
0
2
null
null
null
null
UTF-8
Python
false
false
2,918
py
# -*- coding: utf-8 -*- """ Created on Sun Dec 03 12:35:33 2017 @author: Rocky """ from sklearn.mixture import GMM import numpy as np from sklearn import datasets import warnings from sklearn.preprocessing import StandardScaler import matplotlib.pyplot as plt warnings.filterwarnings("ignore") iris = d...
[ "simpleplanya@gmail.com" ]
simpleplanya@gmail.com
a1b36a3d3e2be1c2571e3bb379ed9f067af445c8
d93159d0784fc489a5066d3ee592e6c9563b228b
/PhysicsTools/PatAlgos/python/recoLayer0/jetCorrections_cff.py
6370ee93dd1381a7b0af0826f92278a56fb92a94
[]
permissive
simonecid/cmssw
86396e31d41a003a179690f8c322e82e250e33b2
2559fdc9545b2c7e337f5113b231025106dd22ab
refs/heads/CAallInOne_81X
2021-08-15T23:25:02.901905
2016-09-13T08:10:20
2016-09-13T08:53:42
176,462,898
0
1
Apache-2.0
2019-03-19T08:30:28
2019-03-19T08:30:24
null
UTF-8
Python
false
false
263
py
import FWCore.ParameterSet.Config as cms from PhysicsTools.PatAlgos.recoLayer0.jetCorrFactors_cfi import * from JetMETCorrections.Configuration.JetCorrectionServicesAllAlgos_cff import * ## for scheduled mode patJetCorrections = cms.Sequence(patJetCorrFactors)
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
988152e7a537f6c8badc344c3f79050dc23010ce
8395ffb48750359d1bd51a201a41c7fe124998bc
/apc2015/hw4_submissions/miles_aubert/hw4.py
669ce9e1021c1d21b63fd24460920040e18eb4a3
[]
no_license
duke-iml/ece490-s2016
ab6c3d3fb159a28a9c38487cdb1ad3993008b854
f9cc992fbaadedc8a69678ba39f0c9d108e6910d
refs/heads/master
2020-04-12T09:03:56.601000
2016-11-29T21:36:48
2016-11-29T21:36:48
49,226,568
2
6
null
2016-11-29T21:36:49
2016-01-07T19:42:34
Python
UTF-8
Python
false
false
40,546
py
#!/usr/bin/python from klampt import * from klampt.glprogram import * from klampt import vectorops,so3,se3,gldraw,ik,loader,robotcollide from klampt.robotsim import Geometry3D,SimBody from baxter import * from hw4_planner import * import apc import os import math import random from threading import Thread,...
[ "hauser.kris@gmail.com" ]
hauser.kris@gmail.com
925d1fac6a3242c64f799762acf35762a7142c23
117442c662cad35375630a8a800d48f8ba53888b
/facedancer/future/configuration.py
77a35088ccb06c6fe79ae8e8ae75c099dce011b6
[ "BSD-3-Clause" ]
permissive
walidbarakat/Facedancer
b9a09322541dd320cadefd063888030c9eb4192e
28d3a900179e9dd280e007026a68fbdf97e4e35a
refs/heads/master
2023-03-06T14:05:37.479626
2021-02-18T02:23:53
2021-02-18T02:23:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,304
py
# # This file is part of FaceDancer. # """ Functionality for describing USB device configurations. """ from dataclasses import dataclass, field from typing import Iterable from .types import USBDirection from .magic import instantiate_subordinates, AutoInstantiable from .request import USBReque...
[ "k@ktemkin.com" ]
k@ktemkin.com
342ff27bcaab154241f7bca43ea75b8295f3c8d7
46ae8264edb9098c9875d2a0a508bc071201ec8b
/res/scripts/client/gui/shared/fortificationsevents_dispatcher.py
9b512b64b33ac34107ebb1d85b90c156e30e520c
[]
no_license
Difrex/wotsdk
1fc6156e07e3a5302e6f78eafdea9bec4c897cfb
510a34c67b8f4c02168a9830d23f5b00068d155b
refs/heads/master
2021-01-01T19:12:03.592888
2016-10-08T12:06:04
2016-10-08T12:06:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
684
py
# Embedded file name: scripts/client/gui/shared/fortifications/events_dispatcher.py from gui.shared import g_eventBus, events, EVENT_BUS_SCOPE from gui.Scaleform.genConsts.FORTIFICATION_ALIASES import FORTIFICATION_ALIASES def showFortBattleRoomWindow(): g_eventBus.handleEvent(events.LoadViewEvent(FORTIFICATION_AL...
[ "m4rtijn@gmail.com" ]
m4rtijn@gmail.com
32977e46b6334a6b89b229388af28175edd3abd2
eecd60fe3bc03d9553b9efb1b583243b38b070ea
/start2.py
6c53c600912f07db3b896745c847e495da366041
[]
no_license
spitikaris/experiment-control
ef328f322cc9e9e4e0bc5bfed63b285399a081b7
36181ffd9502fb5cd921e91b05c585fa3825d75d
refs/heads/master
2016-09-06T06:40:02.035562
2016-03-04T17:22:15
2016-03-04T17:22:15
39,383,870
1
0
null
null
null
null
UTF-8
Python
false
false
50
py
#!/usr/bin/python from methods import * shear()
[ "root@mp-kadanoff.dhcp.rs.kp.dlr.de" ]
root@mp-kadanoff.dhcp.rs.kp.dlr.de
7cf670a85f7dcf1fbf7f23cbce0cc5c89ae2b7dd
9d7be99cdac8b809f51c46a943ad5feb14548160
/listings2/data_scraper_listings2.py
909ab9862d01e75ef3f07bebd7a3a3c06de53360
[]
no_license
CateGitau/DSI_trick_challenge
6c154b417a049ab0012edff0521d9e09387787f2
ddafac1f21425cb2992ce717ecbb0776703ea88e
refs/heads/master
2022-12-24T17:12:55.392276
2020-09-25T12:28:40
2020-09-25T12:28:40
297,908,859
0
0
null
null
null
null
UTF-8
Python
false
false
3,659
py
import requests as rq import bs4 as bs import traceback from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import TimeoutException from seleniu...
[ "catherinegitau94@gmail.com" ]
catherinegitau94@gmail.com
2b27a139918a39541b3531a05a4ea20f012839be
b9eae7cbe3929c3348c9f6506b9df3877f24c46f
/4-queens/test_state.py
6298ae87bc730021c0bd5f776a4813b6b2abce54
[]
no_license
carloscotrini/PythonPuzzleSolver
82246241f8cba0c123cf6bdf883687382ba37643
9e8d13608a274eb096888add45420be737e1369b
refs/heads/master
2021-04-09T11:03:06.350259
2018-03-17T09:52:54
2018-03-17T09:52:54
125,504,527
0
0
null
null
null
null
UTF-8
Python
false
false
3,841
py
import unittest from four_queen_state import FourQueenState class StateTester(unittest.TestCase): @staticmethod def are_boards_equal(board1, board2): if len(board1) != len(board2): return False for row1, row2 in zip(board1, board2): if ''.join(row1) != ''.join(row2): ...
[ "ccarlos@inf.ethz.ch" ]
ccarlos@inf.ethz.ch
cf98191c381f004990782cd7c4a7c0a3e6519471
0b646cde920300867c3ecfa95dfa32252921e3b2
/filehandling.py
a44ff9ea03bd6d9f02fa29520b0ae8a7bf955009
[]
no_license
shivdazed/Python-Projects-
cefffcccf527aefb50bdbb66a2bb5da789615562
2beba43f452eb01b6395195abe637184680a68d3
refs/heads/main
2023-08-18T21:56:39.549072
2021-10-07T10:08:35
2021-10-07T10:08:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
file = open(r'C:\Users\anuro\Desktop\student.txt','r') n = input("Enter your name:") std = int(input("\Enter which standard you are in currently:")) std_id = input("\Enter your student ID:") m = [] print("Enter the marks of Five Subjects,Physics Chemistry Maths Biology English:") for i in range(5): r =in...
[ "noreply@github.com" ]
noreply@github.com
5a50703fd04bbf22be867447aad4b1547f059adc
794629855792d259834fc5075ca7dce69660b2ec
/MATLAB/gdf_to_hdf.py
3a04c3f4b43871a13967d7d98c42b970fbd9fe98
[]
no_license
rfeynman/GTX
99ecd576f8eaa19dc2c2c4f6772d3e1c8ca469a9
64c75dc826a6399ef527b7324dcd9b2faa860841
refs/heads/master
2020-03-23T13:08:35.576736
2018-07-19T16:06:18
2018-07-19T16:06:18
141,602,291
0
0
null
null
null
null
UTF-8
Python
false
false
18,742
py
"""Creates .hdf files from General Particle Tracer .gdf files Author: Rory Speirs Institution: School of Physics, The University of Melbourne. Email: roryspeirs@gmail.com Date: 13th June 2014 Version: 1.1 Licence: "THE BEER-WARE LICENSE" (Revision 42) Fixes from Version 1.0: Fixed gpthdf_to_slabhdf so it doesn't cras...
[ "wedwrd@gmail.com" ]
wedwrd@gmail.com
47b046f53c3bbc3a2866d330046d86bfbe4ff1e8
ac05fb0224ac423236ed492bc2d3e7a78f75822f
/Calculator.py
22706a86ca12569a42420bcdd8cbde2a131c71d9
[]
no_license
yash-1o1/calculator
4ae4f1063749db9ba86efc6b083c78ec77d18dc5
b6bd4c368a4f1da6b7e015cc38b65718e92a8a14
refs/heads/master
2023-03-06T10:58:28.051752
2021-02-22T02:08:18
2021-02-22T02:08:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,890
py
operation = input("Choose an operation to input (You can choose 'add', 'sub', 'multi' , 'div'): ") if operation == "add": first = input('Choose the first number to be added number: ') second = input('Choose the second number: ') output = int(first) + int(second) print ('The result of addition was %s \n...
[ "60495222+yashv99@users.noreply.github.com" ]
60495222+yashv99@users.noreply.github.com
1a36c100420b71b8f0f0538dbf8634185eb93879
bb121db77a53448f5235b5524eadbe3b59efea04
/æfingapróf/student_grades.py
9cacce50adad97b983d166771c5d2dd44925eea2
[]
no_license
RoslinErla/AllAssignments
a8bfd4e4df5177e76472678cbfeb13b1d49abc56
1a8f098e9ecde015de70970cd5c17501c510fb19
refs/heads/master
2020-07-27T12:44:29.974705
2019-11-15T13:28:44
2019-11-15T13:28:44
209,094,254
0
0
null
null
null
null
UTF-8
Python
false
false
2,626
py
# Skrifið Python forrit sem heldur utan um einkunnir fjögurra nemanda. # Hver nemandi á einkvæmt nafn (þ.e enginn nemandi heitir það sama) og 3 einkunnir. # Write a Python program that manages grades for four students. # Each student has a unique name and 3 grades. # Notandi á að geta slegið inn nöfn allra nemanda...
[ "roslin19@ru.is" ]
roslin19@ru.is
7a3938b589e748860c0fad0c8dd3a50430ef40b9
074afd26d00bb742b03c12891b057ab263e640bf
/codeforces/1451A.py
6eac98a8a0739915d4a2d7cff440dedefa842769
[]
no_license
IsmailTitas1815/Data-Structure
7a898800b1e53c778b1f2f11b0df259e52c20140
fece8dd97d3e162e39fc31d5f3498a6dac49b0f0
refs/heads/master
2023-02-05T10:39:49.349484
2020-12-21T13:37:22
2020-12-21T13:37:22
296,343,627
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
for i in range(int(input())): n = int(input()) if n<4: if n==1: print(0) elif n==2: print(1) elif n==3: print(2) else: if n%2==0: print(2) else: print(3)
[ "titas.sarker1234@gmail.com" ]
titas.sarker1234@gmail.com
2b323efbad99418306a935443e1532e869158494
9567f5dc22025b4164f6828384bc0b2366e9aa56
/Sparse_Matrix/mapping.py
989487d036f6b2c628392bb8049d1ef08cc9c69b
[]
no_license
saurabhjn76/Sparse_Matrix_Effcient_Storage
694b07f8321c7c7ef6e583706eaa891bd352b10e
41fdc64c53d951aab163ca8bc2b91df19172826f
refs/heads/master
2020-03-10T00:58:28.769319
2018-05-04T07:25:15
2018-05-04T07:25:39
129,096,908
1
0
null
null
null
null
UTF-8
Python
false
false
726
py
from bitstring import BitArray import random # s = random.randint(0, 2**10000 - 1) # b = BitArray(uint=s, length=10000) # for i in range(0,100): # print b[i] row_mapping = {} row_reverse_mapping = {} col_mapping = {} col_reverse_mapping = {} limit_index = 3 def mapInit(mapping, reverse_mapping,limit_index): coun...
[ "saurabhjn76@gmail.com" ]
saurabhjn76@gmail.com
04a62d97db8038ce3e524429f9e169268e86342c
c4e62e89f74b1c26da30d292f18842d333326951
/Symmetric_tree/answer.py
2cd9737af395124f2637602006014bc29f5d51c4
[]
no_license
yunishimura0716/LeetCodeSolutions
ce4b85b652de458445683027f674c05e74fa41b5
0bf771e9fdf11a73c5631cdec07c8b5552a6b070
refs/heads/master
2023-02-13T14:37:16.605460
2021-01-15T01:07:32
2021-01-15T01:07:32
288,928,011
0
0
null
null
null
null
UTF-8
Python
false
false
1,439
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right from collections import deque class Solution: def isSymmetric(self, root: TreeNode) -> bool: # time: O(n), space: O(...
[ "yunishimura0716@gmail.com" ]
yunishimura0716@gmail.com
97f670472d760a6545e49f73ff3d30a0f4f277f2
9b336efa6f25a584aea6fd69795179cdc3883786
/DFLTest/join_test/admin.py
0b4f76407eb0285c474d6a7639127bb2ab6bfa03
[]
no_license
mhall119/django-fluxlang
42eb4543d46c7a62c5a152036da065387e86e5ec
c795d9bd36d67cf0dc21011eaed2642e28f5fa05
refs/heads/main
2023-05-07T10:40:38.637608
2021-05-28T14:52:04
2021-05-28T14:52:04
371,733,156
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
from django.contrib import admin from .models import HostInfo # Register your models here. class HostAdmin(admin.ModelAdmin): list_display = ("host", "ip_addr", "site") admin.site.register(HostInfo, HostAdmin)
[ "mhall119@gmail.com" ]
mhall119@gmail.com
6b2421764e5d39016f0e51d1a1ad0d4d9f0e6e10
e27333261b8e579564016c71d2061cc33972a8b8
/.history/ScrapeArticleTitle_20210803181904.py
01c3cfb222879a03f49b8531a28bb390ba6afeaa
[]
no_license
Dustyik/NewsTweet_InformationRetrieval
882e63dd20bc9101cbf48afa6c3302febf1989b1
d9a6d92b51c288f5bcd21ea1cc54772910fa58f7
refs/heads/master
2023-07-01T09:12:53.215563
2021-08-12T08:28:33
2021-08-12T08:28:33
382,780,359
0
0
null
null
null
null
UTF-8
Python
false
false
1,762
py
import pandas as pd import json import ast import os from nltk.tokenize import word_tokenize from IPython.display import display def get_article_titles_from_json(): filename = r"D:\Desktop\IR_term_8\sample-1M.jsonl" #file is too huge with open(filename) as json_file: data = json_file.readlines() ...
[ "chiayik_tan@mymail.sutd.edu.sg" ]
chiayik_tan@mymail.sutd.edu.sg
7b2de2370af01dcc4b23681e70b09bab35acf286
3c5c4c4fb296d08e9e984c4a60ae4fa147293e9a
/ceres/__init__.py
b359ff8e73e6e5bd29908753a42b11e1a2d10ffa
[ "Apache-2.0" ]
permissive
signingup/ceres-combineharvester
a8874ab11145e7ba2223b85483b96dea01054ad0
aad918a03a4a522e0e2f3bac104d19d693d6bf79
refs/heads/main
2023-07-25T04:11:13.765471
2021-09-09T14:59:48
2021-09-09T14:59:48
404,918,382
1
0
Apache-2.0
2021-09-10T01:22:20
2021-09-10T01:22:20
null
UTF-8
Python
false
false
313
py
from pkg_resources import DistributionNotFound, get_distribution, resource_filename try: __version__ = get_distribution("ceres-blockchain").version except DistributionNotFound: # package is not installed __version__ = "unknown" PYINSTALLER_SPEC_PATH = resource_filename("ceres", "pyinstaller.spec")
[ "hulatang_eric@163.com" ]
hulatang_eric@163.com
015a80c9d53750fc086c6bd24e6383fb96225859
49d33002fbef0be0bc7dcee807865c97130d64fe
/src/oscar/apps/voucher/__init__.py
1eba2925b030cd2958cc65cca10ca5198fb4ad2a
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
specialunderwear/django-oscar
8e9e48254ca61bcb4a9fb4642c823ba72b3ca630
fc5d2601583c83f7361437eb3c2d6dc132e4d574
refs/heads/master
2023-07-21T03:19:13.243668
2023-03-07T09:14:41
2023-03-07T09:14:41
114,625,742
0
4
BSD-3-Clause
2023-07-06T10:12:26
2017-12-18T10:08:46
Python
UTF-8
Python
false
false
63
py
default_app_config = 'oscar.apps.voucher.config.VoucherConfig'
[ "m@maikhoepfel.de" ]
m@maikhoepfel.de
f6ca25189a4391cf1ce1aff9bf54cd7dc034d81b
5a9b775f8a5e25a369228ee10111cc05eb06ad39
/ejm1.py
268a9ff28def6460d12eced9f76881e395753d28
[]
no_license
LuisDLCP/Landslide_Project
5280881fc339fe745d3a88828a18dd454033aa58
619891e5b3bfa741f71bccefec38864892282002
refs/heads/master
2022-07-27T14:24:36.290440
2019-11-16T01:03:04
2019-11-16T01:03:04
203,256,630
1
0
null
null
null
null
UTF-8
Python
false
false
1,234
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Aug 14 16:26:37 2019 @author: soporte """ import os #import sys #sys.path.insert(1,os.getcwd()+'/Results/Imagenes_finales_reconstruidas_BP/') #import TEXT as tx #os.chdir(os.path.dirname(__file__)) #print("La ruta es: "+os.getcwd()) i=0 scr_dir = os.g...
[ "luis11.dlcp@gmail.com" ]
luis11.dlcp@gmail.com
230bba73a64891c2a9341bff643b95076853826d
991d0dfd3727bcebe4e19999ac69a2331b7934ac
/class_1/l01_s05.01.py
c00f9611f1868efa8dc08a4ee9ece40d39989bb7
[]
no_license
JuanManuelHuerta/NLP_2018
8e00b096209b542f64e6186a4714466fe73f870e
f350c4387a7f0408cd65d7be829f716273a29b2c
refs/heads/master
2020-03-07T15:48:21.801324
2018-04-12T16:30:15
2018-04-12T16:30:15
127,565,252
1
0
null
null
null
null
UTF-8
Python
false
false
2,469
py
import sys import json import unicodedata import numpy from nltk import sent_tokenize, word_tokenize, pos_tag import re import operator import math def custom_word_tokenize(my_string): s0=my_string s1=re.sub(r'([a-z])\.([A-Z])',r'\1 \2',s0) s2=re.sub(r'[;\,\:\s \(\)\-\!\?]',r' ',s1.lower()) s3=re.sub(r'\. ',r' ',s...
[ "jmhuertany@gmail.com" ]
jmhuertany@gmail.com
511a1c80d600660fbfcf93341b758a5bc1af00b4
33f1bfde0ae84747ed66946917bd94edf8e9b512
/06 - Funktionen/Notebooks in anderen Formaten/py/Aufgabe Geburtsstatistiken (Loesung).ipynb.py
465b2891919d780b1783435248a5793427a0bd34
[]
no_license
LCK1635/Python_Kurs
66bb8ce356a9c3fe41a90c2995bb63e7a81f2fe4
8742604e677baa3774cde9b2434c1b40470a224f
refs/heads/master
2021-09-07T04:23:36.732602
2018-02-17T12:56:32
2018-02-17T12:56:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,316
py
# Diese .py - Datei wurde automatisch aus dem IPython - Notebook (.ipynb) generiert. # # Gelegentlich wurde ich von Teilnehmern gefragt, ob ich die Kursmaterialien nicht # auch als normale .py - Datien bereitstellen könne. Dadurch ist es möglich, den Code # ohne Jupyter zu öffnen, beispielsweise wenn Python-Programme...
[ "tillin@besonet.ch" ]
tillin@besonet.ch
4acd426428bf36b3e05b49f55188a9d1fb157d9d
eccda8bebcf343c6c2742980a604905135485b69
/library/f5bigip_ltm_persistence_ssl.py
f4700fcb09e98962ecc1758d5f6d19e2c719c089
[ "Apache-2.0" ]
permissive
erjac77/ansible-module-f5bigip
5c920dc239098d6d3a8311da3ccb9562428a8362
96af6d5dc77d8ccbe18cb4fdc916625756e5f9dd
refs/heads/master
2021-01-11T08:33:52.304903
2020-02-14T21:42:09
2020-02-14T21:42:09
76,477,286
6
5
Apache-2.0
2018-08-09T20:41:31
2016-12-14T16:30:04
Python
UTF-8
Python
false
false
5,650
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2016-2018, Eric Jacob <erjac77@gmail.com> # # 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/LICENS...
[ "erjac77@gmail.com" ]
erjac77@gmail.com
b3a8ab3db053cd9b4995bedf92e5a175e903cd04
75cb00c74d10d7fd88b4fd5d3c9a13a56cbd57ac
/questions.py
9a4f193c67e7697729d731424d77d53efd3f02c6
[]
no_license
Muhaimeen92/Question-Answer-AI
51a1edb9269270b408cf664f3ea738e32a484f03
1a2bcd6eeef2a56db7eb5071a43d039f4a77cd90
refs/heads/main
2023-02-18T19:42:34.006468
2021-01-09T23:48:02
2021-01-09T23:48:02
328,263,067
0
1
null
null
null
null
UTF-8
Python
false
false
5,082
py
import nltk import os import sys import string from collections import Counter FILE_MATCHES = 3 SENTENCE_MATCHES = 3 def main(): # Check command-line arguments if len(sys.argv) != 2: sys.exit("Usage: python questions.py corpus") # Calculate IDF values across files files = load_files(sys.arg...
[ "noreply@github.com" ]
noreply@github.com
79ae737515aeebef8dfb64719fbba9e17129bb9b
9d698397273d4a7239cc12eba31ed9dae9b0dd4d
/ejercicio4-usoDePaquetes-DateTime/dateTime.py
13a750095f6d22c86218372ebf2147279014f6e4
[]
no_license
operator-ita/Python-POO
a026f83015b5a8d85c08d919cbfe3967b684b4c7
c1869523ad94a1043f01eb0cfbab49ec02713fca
refs/heads/master
2022-03-17T03:56:41.343635
2019-10-02T19:21:12
2019-10-02T19:21:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
582
py
# Sept, 2019 # @lunysska # El ejemplo es para mostrar el uso de paquetes. En este caso: "datetime" # Este método está creado para validar que un objeto de tipo Fecha es creado de # manera correcta from datetime import datetime def mimetodo(fecha_str): try: objetoFecha = datetime.strptime(fecha_str,'%d/%m/%Y') r...
[ "lunysska@gmail.com" ]
lunysska@gmail.com
f6315d275ecaf4e02a4d8a4a261a789a4eceafcb
14ab379a2f9d68d7e29d421a2a8fb3e6b2c83a0a
/main/tests/test_images.py
5afcfee9f89aed7e80cf445e6cca791f1933c07b
[ "MIT" ]
permissive
alecstein/mataroa-personal
8c1319f9502c16b88dc565545b9bade119a149f4
4c1b88dc9a113e3de392dd0ce676a6e2dd8589d0
refs/heads/master
2023-02-07T18:05:48.296449
2021-01-03T05:37:45
2021-01-03T05:37:45
326,335,257
0
0
null
null
null
null
UTF-8
Python
false
false
7,008
py
from django.test import TestCase from django.urls import reverse from main import models class ImageCreateTestCase(TestCase): def setUp(self): self.user = models.User.objects.create(username="alice") self.user.set_password("abcdef123456") self.user.save() self.client.login(usernam...
[ "zf@sirodoht.com" ]
zf@sirodoht.com
79485cf6e33c80c6964e5d26bc244b105f9b931d
b7f157b2e2c3de0d02a9ecc8b7650a8efab52814
/Backup.py
e1c7f2c8f756f01939b7586b9bf0b6fbfb2480bf
[]
no_license
ryosuzuki/fusion-addon-test
101050b8a34c82a049de5f659038810e4120b03b
87d426dc83051af66b94aa51b015f65d4d5e5e64
refs/heads/master
2021-01-19T21:47:39.270363
2017-09-16T17:56:41
2017-09-16T17:56:41
101,253,002
0
0
null
null
null
null
UTF-8
Python
false
false
6,505
py
import adsk.core, adsk.fusion, adsk.cam, traceback import copy from . import Fusion360CommandBase class VisualizeCommand(Fusion360CommandBase.Fusion360CommandBase): def onPreview(self, command, inputs): pass def onDestroy(self, command, inputs, reason_): pass def onInputChanged(self, command, inputs, c...
[ "ryosuzk@gmail.com" ]
ryosuzk@gmail.com
af3e92d4bb5750dc2fcd2724ac6b24821b95e473
ae54fb5f5b67e21ba92b5b066a2e225c7610975b
/plusone/views.py
6e7ae7f579f6c8ef564a44ef727c16b12571b5e5
[]
no_license
tanmay17268/PlusOne
03b1f3dfb3d70325fe631eb013967b3bc57ddb76
11ab382c9854db2ceb17fbd8bb930aff28e32ddd
refs/heads/master
2020-04-12T22:49:27.643129
2018-12-22T09:55:02
2018-12-22T09:55:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
from django.shortcuts import render from django.http import HttpResponse # Create your views here. def index(request): return render(request,'plusone/home2.html')
[ "noreply@github.com" ]
noreply@github.com
25dccf51d8e7399e6f4030ca84d3e2a0e386509b
02880f13bd89a1bfc9052ad6bcab0a410afafb2f
/python/collections - ordereddict.py
21e81f05d17ebdb592b3733fe8d55fab9c1f4791
[]
no_license
mason30006/hackerrank
3942fc6187aa8302362d80059e32b1dcfd8f7970
09b2f340555e663065eb9f39bc5f2caf7e1ce464
refs/heads/master
2021-01-22T03:50:02.345671
2017-02-09T05:21:45
2017-02-09T05:21:45
81,468,316
0
0
null
null
null
null
UTF-8
Python
false
false
667
py
# -*- coding: utf-8 -*- """ Created on Wed Feb 08 18:59:32 2017 @author: Mason """ from sys import stdin from collections import OrderedDict ordered_dictionary = OrderedDict() n = stdin.readline() for i in range(int(n)): string = stdin.readline() string_parts = string.split(' ') price = int(string_parts...
[ "mason.liang@gmail.com" ]
mason.liang@gmail.com
5a12bfa5ef76874a0470b4d9ee429a9145413096
3712a929d1124f514ea7af1ac0d4a1de03bb6773
/开班笔记/python网络编程及MySQL部分/day32/code/clock.py
23b6fa79cbd36db567930d651006699c63e168e4
[]
no_license
jiyabing/learning
abd82aa3fd37310b4a98b11ea802c5b0e37b7ad9
6059006b0f86aee9a74cfc116d2284eb44173f41
refs/heads/master
2020-04-02T20:47:33.025331
2018-10-26T05:46:10
2018-10-26T05:46:10
154,779,387
0
0
null
null
null
null
UTF-8
Python
false
false
522
py
from multiprocessing import Process import time class ClockProcess(Process): def __init__(self,value): self.value = value #调用基类初始化方法 Process.__init__(self) #super().__init__(self) #在自定义的进程类中,重写父类的这个方法 def run(self): n = 5 while n > 0: print('The time is {}'.format(time.ctime())) time.sleep(self....
[ "yabing_ji@163.com" ]
yabing_ji@163.com
ca5c998f70de4c52660ed2f7cb58a11893b49e7d
2cc3aed1b5dfb91e3df165144d95c01a495bd54b
/581-Shortest-Unsorted-Continuous-Subarray-sort.py
30476a3fe00dd27aa9b3f815f4590fb84f2498fa
[]
no_license
listenviolet/leetcode
f38e996148cb5d4be8f08286daac16243b3c30e4
0c1efcbfd35e5ef036ec1ccd0c014cd7baf2ed2b
refs/heads/master
2020-05-01T07:35:23.462429
2019-12-11T12:44:32
2019-12-11T12:44:32
177,354,773
0
0
null
null
null
null
UTF-8
Python
false
false
1,722
py
class Solution: def findUnsortedSubarray(self, nums): """ :type nums: List[int] :rtype: int """ copy = [] for i in range(len(nums)): copy.append(nums[i]) copy.sort() start = len(nums) end = 0 for i in range(len(nums)): ...
[ "listenviolet@gmail.com" ]
listenviolet@gmail.com
d5173c1f65f0393492ffc84bb8cf527043aaf85e
c95a75498cf2605e86ff3afa60dfcb8290a4d1ff
/Lesson6/For3.py
1e8a192b5802db6ebf6059f1bc0aa86ea469693f
[]
no_license
farzel/PythonDersleri
96017bb96996a86b1e82b067985f2e298b080c43
44040c6f103eae6de6a0334a2a2b8a06d5935d1a
refs/heads/master
2020-06-08T10:50:12.637262
2019-06-30T11:20:46
2019-06-30T11:20:46
193,216,326
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
# disaridan girilen metni harf harf alt alta yazdiriniz text = input('Lutfen metninizi giriniz:') result = ' ' for i in text: print(i) #result = i + ' ' print('-'.join(text))
[ "noreply@github.com" ]
noreply@github.com
056813a96995c2c95a58dbd3f2d02480808d3964
37c3c6fd1b05b6cf0c5f5ab89120562d7a8a40f8
/p36.py
86f55562115da41bd8012f1870549b9f265cbd58
[]
no_license
kaviraj333/python
e4b480adfcbec383c1228e07426833b9c02f4296
7110b6e153c4ef4afe7ade8ce20104b26ea4cc8f
refs/heads/master
2020-05-22T23:17:48.540550
2019-04-09T05:04:31
2019-04-09T05:04:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
amu=int(raw_input()) arr=list(map(int,raw_input().split())) r=[] for i in arr: r.append(i) b=sum(r) if(sum(r)==22): print("4") elif(r[1]==3): print("0") else: m=min(r) print(m)
[ "noreply@github.com" ]
noreply@github.com
fd9fed8d50f3bc3779e3425c4fcf511a9684675a
bd37ff289bcbe24cc6e8ab360569713b9109265d
/logistic_regression1.py
0e62f1edd37807715a19d1310c273bd42e8e156f
[]
no_license
Sanil2108/python-machine-learning
fc035f6ddd586cf3dab9421002d4408c03b0589c
c9dbf8a1f34aa3b80c76986c742e85a9be4b2375
refs/heads/master
2021-01-11T09:00:28.995823
2017-06-18T06:08:33
2017-06-18T06:08:33
77,436,496
0
0
null
null
null
null
UTF-8
Python
false
false
1,948
py
import numpy as np import matplotlib.pyplot as plt all_cost=[] def logistic(z): return 1/(1+np.exp(-z)) def hypothesis(theta, X): return logistic(np.array(np.matrix(X)*np.transpose(np.matrix(theta))))[0][0] # return getY(theta, X) def cost(theta, X, y): m=len(y) total=0 for i ...
[ "sanilkhurana7@gmail.com" ]
sanilkhurana7@gmail.com
74f18e356d9fe201db24ff1b68518f244b65d841
c85a6d674679780ee510b5c8c3dbcbdecc859f64
/test/test_group.py
712c217d06209ae2dd8bfe1aca97dc90f5576fcd
[]
no_license
cbrowet-axway/APIM_sdk
d4f4a124e86a7b2e65d0ef07b54c68e95de68337
4f82df67ebe3dd6eae645bab8f86e72c0347ee24
refs/heads/master
2020-05-25T13:22:35.802350
2020-04-16T09:25:21
2020-04-16T09:25:21
187,820,389
0
0
null
null
null
null
UTF-8
Python
false
false
894
py
# coding: utf-8 """ API Manager API v1.3 No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.3.0 Contact: support@axway.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future_...
[ "cbro@semperpax.com" ]
cbro@semperpax.com
7d59d321b730c74962c2ed7556c54789f5d402ca
0e8a7ff6b223f044beb3e915cf7ca26e46665c6a
/mykaggle/feature/platform_to_pub_dev.py
6ad910d891bc5d62dcd228f03fd809e8d74db1b0
[]
no_license
cfiken/atmacup8
be982d746a6e30e479bc10f4d6d8cd0def222cd4
0f36624b52c9652a469a0506ec847d4e3d77d0de
refs/heads/master
2023-02-01T02:42:01.293700
2020-12-14T16:45:05
2020-12-14T16:45:05
318,500,923
1
0
null
null
null
null
UTF-8
Python
false
false
1,918
py
from typing import Optional, Dict import pandas as pd from sklearn.decomposition import PCA from mykaggle.feature.base import Feature from mykaggle.transform.pivot import PivotTransform COLUMNS = [ 'Publisher', 'Developer' ] class PlatformToPubDev(Feature): ''' Platform を Publisher & Developer 情報からエ...
[ "cfiken@gmail.com" ]
cfiken@gmail.com
9dfd7670fe6d2074e93e051ee1d5617c0a558db3
6223dc2e5de7921696cb34fb62142fd4a4efe361
/.metadata/.plugins/org.eclipse.core.resources/.history/2/60c520da1a6b00141928c597445b4e35
647638267cb95a600b934baacecbaa24743a5a04
[]
no_license
Mushirahmed/python_workspace
5ef477b2688e8c25b1372f546752501ee53d93e5
46e2ed783b17450aba29e4e2df7b656522b2b03b
refs/heads/master
2021-03-12T19:24:50.598982
2015-05-25T10:23:54
2015-05-25T10:23:54
24,671,376
0
1
null
2015-02-06T09:27:40
2014-10-01T08:40:33
Python
UTF-8
Python
false
false
5,280
#!/usr/bin/env python # # Copyright 2014 <+YOU OR YOUR COMPANY+>. # # This is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # # This software is dis...
[ "imushir@gmail.com" ]
imushir@gmail.com
08a346d5f12cb87aa684c38f6cbe12ec40f7da8b
7e86bb5ba4191e60999abac78c0c4a48e91b7e8b
/Python Logger V3/serial_com.py
c43bf593564755e2981768173bba1cefcaa52363
[]
no_license
XOnanoSmartfoam/XOnanoBinAnalysis
21563a1b6a4b8e67521602857370a90a8051b7a5
76bfb9bb150c919f8680bf88070a451a45f780a8
refs/heads/master
2021-01-12T08:13:03.271618
2018-05-01T14:02:12
2018-05-01T14:02:12
76,505,180
0
0
null
null
null
null
UTF-8
Python
false
false
4,901
py
import serial import threading #import struct #import re import csv class Serial_com(threading.Thread): def __init__( self, data_q, port_num, port_baud, port_bytesize=serial.EIGHTBITS, port_parity=serial.PARITY_N...
[ "lorenzo@2020armor.com" ]
lorenzo@2020armor.com
58c9538422d3e0c3acdb95a227e69e976ea8c955
9406178490c499e008eeef96030ee8c781043344
/test/timing_tester.py
cb1a57b1d1e977cb686474a10d2b90fd9946e2b1
[]
no_license
johnbooch/ConwaysGOF
ffbf419e7e0b15abc2b9236ee3c0c0f10558ed85
8f315750d02062f8150ece52347139905d5bdf84
refs/heads/master
2020-03-26T20:48:37.709958
2018-09-10T19:27:54
2018-09-10T19:27:54
145,347,260
0
0
null
null
null
null
UTF-8
Python
false
false
4,976
py
import subprocess import os import time def test(cmds, exec_time): for cmd in cmds: p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) time.sleep(exec_time) # Allow simulation to run for 10 seconds p.terminate() COMMANDS_50x50 = [ ["python src/gof.p...
[ "johnbuccieri@gmail.com" ]
johnbuccieri@gmail.com
5ffbe998cc682b453dc2485906ca1758e0499efa
ec3bce1dfe435e6271f7be9b773e1f417cd4746e
/models/models.py
1df480db84f05192bdd9f74732d52478dae94d90
[]
no_license
alien010101/murr
74f415928bcd2f28a40717271b639ba2b4c15086
f32caca96fe66aa35c77aef6b7d1016e5273c14c
refs/heads/master
2022-02-15T19:40:20.529038
2019-07-19T16:26:44
2019-07-19T16:26:44
197,807,052
0
0
null
null
null
null
UTF-8
Python
false
false
612
py
# -*- coding: utf-8 -*- from odoo import models, fields, api class claves_sat(models.Model): _name = 'inventario_expandido.clave_sat' _rec_name = 'clave' clave = fields.Integer('Clave SAT') class inventario_expandido(models.Model): _inherit = 'product.template' ubicacion = fields.Char('Ubicació...
[ "noreply@github.com" ]
noreply@github.com
e61ee9fe6455a99ff23ec3f7d31d68c0f3408062
1dd4ae2d974d65e86538e49f84179b3ec6b8476c
/build/robotiq/robotiq_modbus_tcp/catkin_generated/pkg.develspace.context.pc.py
c68a3cb9bf4efb70df639a4b81765748f3b0d9b8
[]
no_license
tony23545/bulldog_ws
e115510d87980c90b308ae881c59d4e6145964c0
d3e03aa230e9366023df383665cf6be928d68c8d
refs/heads/master
2022-11-30T06:21:04.073397
2019-07-08T07:33:52
2019-07-08T07:33:52
176,073,396
5
0
null
2022-11-21T21:13:17
2019-03-17T08:11:32
Makefile
UTF-8
Python
false
false
389
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "rospy".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "robotiq_modbus_tcp" PROJECT_SPAC...
[ "csj15thu@gmail.com" ]
csj15thu@gmail.com
b81f580bfd884ff1bbcd428a82ed1131ae1d6e8d
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_75/717.py
36146101c64393b9b35cbf7d17c8eadde15d28f0
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,286
py
def solvecase(L): C = int(L[0]) D = int(L[C+1]) N = int(L[C+D+2]) F = L[1:C+1] X = L[C+2:C+D+2] S = L[-1] Q = [] for s in S: #get spell from list Q.append(s) #send recent spells to check combination if len(Q) > 1: comb = chkc...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
e93547bf14bd83cd87321778faba4ea91883f376
263aa24cb9b4489334b355c09e66f033e037f7d2
/latihan_private_variable/venv_private/bin/easy_install
b0f60ec8097a7e79eb1be1f899bf7397c977f285
[]
no_license
rexsidirtjump/python-oop
596f3dd21eff9975698d03a779869c3ff1b187fa
9867b4a12b03f8bc48c74ed0af1eadb5ba65308c
refs/heads/master
2020-06-02T05:19:58.445980
2019-06-11T12:08:32
2019-06-11T12:08:32
191,039,701
0
0
null
null
null
null
UTF-8
Python
false
false
298
#!/home/rexdev/python/oop_python/latihan_private_variable/venv_private/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "a9rexsi22@gmail.com" ]
a9rexsi22@gmail.com
c95761a71ce8c525e53f512f2e7d77c406ccb524
6531592cf7a73b103ff11ddb5bdba6ef9293963a
/app/app.py
c5fc36c0f22d8e5ca2c5ad491c1a42766ef86361
[]
no_license
AidynUbingazhibov/CSLR-tool
f7c7aa0c9fffe0a3ca3889c069870f6f675b2f24
8313270c8a1bb55557c450a95070dbb779c4392a
refs/heads/main
2023-04-19T11:38:09.751613
2021-04-30T14:58:02
2021-04-30T14:58:02
363,168,134
0
0
null
null
null
null
UTF-8
Python
false
false
2,812
py
import streamlit as st import pandas as pd import streamlit as st import numpy import sys import os import tempfile sys.path.append(os.getcwd()) from app_model import main as m from app_model import trigger_rerun import cv2 import time import utils.SessionState as SessionState from random import randint from streamlit ...
[ "noreply@github.com" ]
noreply@github.com
228dbf7f727ca331a3bc4e74ff4fc8b813cec90c
3970c0ed6b4b62699126cb82390ecedc78de2ded
/bin/pip3
d8ccc96ba661ed114ef2da4a853fa238f81a2d37
[]
no_license
nexusme/data_process_tools
6a130b7e1054b7026814c229405f427becf0305b
12f7ac9c7d9ba0f32a5feb35777760e929af900a
refs/heads/main
2023-03-02T06:46:35.832300
2021-01-27T11:11:23
2021-01-27T11:11:23
320,497,191
2
0
null
null
null
null
UTF-8
Python
false
false
391
#!/Users/nexus/data_pre_process/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3' __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[0]) sys.exit( ...
[ "you@nexus_me@hotmail.com" ]
you@nexus_me@hotmail.com
5cc1d06f45ada335efd2de95fba28d718ea96957
b14ef01ccadbe31ce633d39e14dea91fd75b6f10
/mlops/ml_workflow/encode_target.py
554d8b7cf6e30ffcd53c6e022a41665f89050d6a
[]
no_license
yogii786/MLOps-1
38dfaf048bae5f776ea2dfd472bbb62aa2618b83
eeba37f96b1a24a4f7bbffa5facb96b91fb4be38
refs/heads/master
2023-08-25T00:56:08.179906
2021-10-30T16:55:43
2021-10-30T16:55:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
from typing import List, Tuple import numpy as np from sklearn.preprocessing import LabelEncoder def get_targetencoder_and_encoded_targets( target: List[str], ) -> Tuple[LabelEncoder, np.array]: le = LabelEncoder() encoded_target = le.fit_transform(target) return le, encoded_target
[ "kumar.utsav@freshworks.com" ]
kumar.utsav@freshworks.com
7d35d804f51a5c1a2722cae661d7ea21d7033210
4426f894af42a7c29ddf20a976f2205834fe3123
/006_course_documents/computer_vision/week3_4_5/week3/第3周优秀作业/线性回归和逻辑回归/15290877632/week3 linear regression assignment.py
d82cc509c7402ba1115da3f1fdd4d6cd09f8d91b
[]
no_license
yuchen-he/kaikeba_report
f2e90daedfe1699ff9891d266a0d7b70dc75e526
e0c7b21b574ab1981fe37b1c6b604499ea7a4ef5
refs/heads/master
2021-07-07T00:01:34.052718
2020-03-24T01:05:18
2020-03-24T01:05:18
226,459,691
0
0
null
null
null
null
UTF-8
Python
false
false
1,659
py
#!/usr/bin/env python # coding: utf-8 # In[473]: import numpy as np import random import matplotlib.pyplot as plt # # linear regression model estimation # In[457]: def predict(w, b, gt_x): return w * gt_x + b # # loss function define # In[13]: def loss_function(gt_x,gt_y,w,b): avg_loss = 0 pred...
[ "Yuchen_He@n.t.rd.honda.co.jp" ]
Yuchen_He@n.t.rd.honda.co.jp
e9b8fb31c75cc3d0bbc3f933899d16e361744c67
f1a6fd7ff5dcc950c9b15143bb7d965a51135dc1
/ngram.py
d5b06a570c07a35c75a2e18d5bdfca460ef4d63d
[]
no_license
huanghao/learning-nlp
6608ae185324b349c73669c0b63a0a2048029a17
936838d62fc7651e7b359fa07e30982a06f2cedd
refs/heads/master
2021-03-12T22:57:15.518912
2014-12-01T23:17:25
2014-12-01T23:17:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
655
py
def ngram(text, n): grams = [] for word in text: grams.append(word) if len(grams) == n: yield tuple(grams) grams.pop(0) bigram = lambda text: ngram(text, 2) trigram = lambda text: ngram(text, 3) def test(text): print '-' * 40 print 'text:', text print ...
[ "hao.h.huang@intel.com" ]
hao.h.huang@intel.com
c91fc9202fd322db7ceccfcb54177dbf207bd437
209971c33b13b3641be55d9e8f880055ea712b0e
/factcore/works/smtworks.py
cee10ed28daf4758c663ba3eb5f915555a5035b3
[]
no_license
FriedrichWang/factorytool
675436997d284e4e8329cfa3b11f8e310599621b
293cd07060c5923ea7bb4e2c0083a8f5aa6e6c3a
refs/heads/master
2021-01-10T17:22:33.735005
2015-12-15T06:18:36
2015-12-15T06:18:36
47,337,015
0
0
null
null
null
null
UTF-8
Python
false
false
838
py
#encoding=utf8 from factcore.works.workflow import BaseWork class SnWriteWork(BaseWork): def __init__(self, ctx): super(SnWriteWork, self).__init__(u'Sn烧写', ctx) class ScreenWork(BaseWork): def __init__(self, uicb): super(ScreenWork, self).__init__(u'屏幕测试', uicb) class BacklightW...
[ "zhangyang@yuewen.com" ]
zhangyang@yuewen.com
97f962ce6c17f6babfe9ca499eb8d54b7c02b803
ba1066b0860a73020eb5c4ee0021f68e3639327c
/Sujet 1/evaluation.py
2a1b30bdb920408611258d3a5c7a66af323e27fe
[]
no_license
Hiestaa/TARP-ODNL
cf51678ce4940d2d84a167317eb70298863cc9b1
3a09054558ddc188f80abfd13ea51e1e99d64d68
refs/heads/master
2021-01-25T07:27:54.313545
2014-01-13T01:14:33
2014-01-13T01:14:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,300
py
from machine import Machine from task import Task import Log import time import os.path class Evaluation: def __init__(self, tasks, sequence, id): self.tasks = [] for ti in sequence: self.tasks.append(tasks[ti]) self.nbtasks = len(self.tasks) self.taskcomplete = 0 self.machinelist = None self.time =...
[ "rom1guyot@gmail.com" ]
rom1guyot@gmail.com
c4200302ee5ace6550a8f4c3f8c735bb3e348ae9
34d1e18fbf3d20a999171643e19d3255864860be
/posts/migrations/0006_auto_20201218_1652.py
1b08f0eba75c6f8fabad8c54b03761718e90fb7d
[]
no_license
volkankaraali/django-blog
8d533a26fe07c20ae00dad478f486049260d7f89
b1f755c415883139dbc7cc66c837133e339e7231
refs/heads/master
2023-03-11T04:56:34.882168
2021-03-01T17:17:23
2021-03-01T17:17:23
343,489,159
0
0
null
null
null
null
UTF-8
Python
false
false
606
py
# Generated by Django 3.1.3 on 2020-12-18 13:52 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('posts', '0005_auto_20201218_1555'), ] operations = [ migrations.RemoveField( model_name='post',...
[ "volkankaraali1@gmail.com" ]
volkankaraali1@gmail.com
b88552cc9ae0b9bb052893202d024dbb19ac9230
5657da1fed36707473b41a5b2072804f6065ff37
/pycmdiaps/settings.py
b880583dbfa4cdf55245549e43f6815c8879e967
[]
no_license
iscLuisPalomares/pycmdiaps
5036a0483f630a05661baf98080eb76324e0720e
3badacbff71a683272d7469bc1068bb82dd10769
refs/heads/master
2020-04-05T02:44:49.603604
2018-11-07T04:09:36
2018-11-07T04:09:36
156,488,749
0
0
null
null
null
null
UTF-8
Python
false
false
3,097
py
""" Django settings for pycmdiaps project. Generated by 'django-admin startproject' using Django 2.1.3. 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 ...
[ "iscluispalomares@gmail.com" ]
iscluispalomares@gmail.com
d0cfeb20763fd372a5412739055d3c3ec5e13de1
439e9408dc380d24c08bf4a97f15134a171cac64
/todolist/models.py
42a1e6a11abaff0233a722290cc2d8088c1d46cf
[]
no_license
raonismaneoto/treinamento_eciis
90a17bc43bd0579b25dfbf507259de6191386260
4976152c97bff70f28214a58d6262ed221189cd6
refs/heads/master
2021-01-21T22:35:35.290607
2017-05-16T20:15:20
2017-05-16T20:15:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
420
py
from google.appengine.ext import ndb class Counter(ndb.Model): updates = ndb.IntegerProperty(default=0) minutes = ndb.IntegerProperty(default=0) class ToDo(ndb.Model): title = ndb.StringProperty(required=True) author = ndb.StringProperty() text = ndb.TextProperty() deadline = ndb.DateTimeProp...
[ "daltonserey@gmail.com" ]
daltonserey@gmail.com
8ada032bc3aab3862967caeb538c220f59726c0d
90dfea4e88ca24c5bdf14db7624fa1825304518b
/coffesploit/core/pluginmanage/plugin.py
cf68799ef66b3515923dfa7e5757df23f92b3766
[]
no_license
aisxyz/coffeesploit
a61ee74380d09b89be144cc5cf724d9a376a2f54
cbbd0a888ec27a1733d6fae6ba55d44b03eacefe
refs/heads/master
2021-11-13T23:37:16.854266
2016-07-06T13:17:15
2016-07-06T13:17:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
761
py
# -*- coding: utf-8 -*- #from coffesploit.core.logmanager import logmanager class Plugin(object): """ This is the base class for aLL plugins, all plugins should inherit from it with '__init__()' parameter-free, and implement the following methods at least: status() --> Dict-like, used to do some settin...
[ "leipeng1211@foxmail.com" ]
leipeng1211@foxmail.com
966d74d56d048ce98e54842ab9549589742118e9
2a839c9f5ad608cbc6cbb7d03a8af482dcbd2956
/cgi-bin/download.py
49a2220a84d8090abe8d27c4ea01117f334c80cc
[]
no_license
scraperdragon/google-docs
0a3653a10a8f4db6c419745e87c45564706405f8
56a6955bfbfa1acc56732356f9d828690985fce3
refs/heads/master
2021-01-19T15:32:38.868177
2015-04-17T10:55:17
2015-04-17T10:55:17
22,986,877
0
1
null
null
null
null
UTF-8
Python
false
false
1,379
py
#!/usr/bin/python import sys import os import requests import json import urlparse def request_with_key(url): return requests.get(url, headers={'Authorization': 'Bearer {key}'.format(key=key)}) def output(msg): print json.dumps(msg) exit(0) DRIVE_FILES_URL = "https://www.googleapis.com/drive/v2/files/{id...
[ "dragon@scraperwiki.com" ]
dragon@scraperwiki.com
6912f2477ca42c2d02095a157bee916ef68c2c49
55f67b4252ae9331b691e62e14cc055a78d23d74
/__init__.py
a686b9d92d3e69235eae229dca1fcc8cd624f1d0
[]
no_license
BlueSCar/ctfd-reddit-oauth
417c0fb67425269e6bae31d4198818d7ab87442c
b4c74fdb2497387c64d481694d3b3cf59e93cbc0
refs/heads/master
2020-12-27T07:23:47.637438
2020-02-03T04:07:17
2020-02-03T04:07:17
237,813,119
0
0
null
null
null
null
UTF-8
Python
false
false
8,309
py
from flask import ( current_app as app, render_template, request, redirect, url_for, session, Blueprint, ) from itsdangerous.exc import BadTimeSignature, SignatureExpired, BadSignature from CTFd.models import db, Users, Teams from CTFd.utils import get_config, get_app_config from CTFd.util...
[ "radjewwj@gmail.com" ]
radjewwj@gmail.com
ae88ce193bec133a7ab6e60483cbce6181dafdcf
ba373bc39d90f36f396d40eb93adb2f0dbcbeafe
/3_canvas.py
859d6579541e0640547ad8f37663b5d87f929975
[]
no_license
durveshvpatil01/Python-GUI
5a41412cc364de33fa1742afae519b8c9a15d97a
5589a8d007ba1d0bbca16390a912ac227995b5c1
refs/heads/main
2023-04-11T02:52:15.373385
2021-04-14T11:58:05
2021-04-14T11:58:05
357,888,922
0
0
null
null
null
null
UTF-8
Python
false
false
208
py
import tkinter top = tkinter.Tk() C = tkinter.Canvas(top, bg="blue", height=250, width=300) coord = 10, 50, 240, 210 arc = C.create_arc(coord, start=0, extent=90, fill="skyblue") C.pack() top.mainloop()
[ "durveshvpatil01@gmail.com" ]
durveshvpatil01@gmail.com
248fc2138c8eed4fa4fb235c3584ea31d3447f36
531c47c15b97cbcb263ec86821d7f258c81c0aaf
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_04_01/aio/operations_async/_azure_firewalls_operations_async.py
550653dc96d84f6afaa60225d81bea644ed59841
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
YijunXieMS/azure-sdk-for-python
be364d3b88204fd3c7d223df23756386ff7a3361
f779de8e53dbec033f98f976284e6d9491fd60b3
refs/heads/master
2021-07-15T18:06:28.748507
2020-09-04T15:48:52
2020-09-04T15:48:52
205,457,088
1
2
MIT
2020-06-16T16:38:15
2019-08-30T21:08:55
Python
UTF-8
Python
false
false
21,582
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
noreply@github.com
33ccf5839b5b9020d97afd2856a21d22e416e841
a66028aeb13edde4f10fb2e5664f7beb408fb7c1
/app.py
e3068f0043dbdb96cf7b7b7470009dfc0809cd7e
[]
no_license
Pablitinho/OpenVino_First_App
d7af77f0cdb393ae8e4eac72ab9f62be8f4f92bf
336490c6f06a4027dd750ea07783721f68e34909
refs/heads/master
2020-11-27T11:40:05.485525
2019-12-21T12:34:44
2019-12-21T12:34:44
229,424,692
0
0
null
null
null
null
UTF-8
Python
false
false
4,976
py
import argparse import cv2 import numpy as np import time from handle_models import handle_output, preprocessing from inference import Network CAR_COLORS = ["white", "gray", "yellow", "red", "green", "blue", "black"] CAR_TYPES = ["car", "bus", "truck", "van"] def get_args(): ''' Gets the arguments from the ...
[ "p.guzman-sanchez@denso-adas.de" ]
p.guzman-sanchez@denso-adas.de
e1fa4afc8678a3a63cb20ebd6b7b2912c59085e6
cf9b2e7ad3f988957ad2b46413b80ff3a9bbb3bc
/scripts/clean_data_base.py
72e609172fede71ad88f3c4a0135e17b9d9222e7
[ "MIT", "Python-2.0" ]
permissive
dlegor/textmining_pnud
2942c401f42d13e5ae601ec318dc018b9ddad9a5
a9f37e439f6b02940743d2e361f817cb49da6e04
refs/heads/master
2023-04-11T15:00:24.594907
2021-04-06T22:36:46
2021-04-06T22:36:46
289,972,297
0
0
null
null
null
null
UTF-8
Python
false
false
9,928
py
#!/usr/bin/env python # coding: utf-8 # # Limpieza de la Base de Datos # # Este script contiene todas las funciones necesarias para limpiar y transformar la base en la versión más adecuada para el proyecto. # # Los objetivos son los siguientes: # # * Depurar los campos que contengan texto con algún error de...
[ "noreply@github.com" ]
noreply@github.com
640c834ff5726e6163a46c34dd51923636679b86
dfbb23eb4e42ceb184f03e3669130a425f06a077
/busanItClass/ex9.py
560cd4c6ba651b34407b164cc7fece1bb389ebf8
[]
no_license
gi-web/Python
af6c3d09cdbd6cdca78b7ec603a19bb566a520b0
74bcaace335026ff56fc050607775ebb92d0713a
refs/heads/main
2023-05-04T21:59:51.866177
2021-05-22T17:40:12
2021-05-22T17:40:12
353,245,855
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
import random lotto=set() i=0 while True: lotto.add(random.randint(1,45)) i=i+1 if len(lotto)==6: break print("로또 넘버 :",sorted(lotto)) print("중복된 난수 발생 횟수 :",i-6)
[ "phok75@naver.com" ]
phok75@naver.com
cecfbc03e21c8156c775e484b68292ec8c14c60f
4dc4345cca9c5f452bf4b87263505ee6b4e960af
/data_types_and_variables/contact_names.py
2e5c1b630d63078c6ee3b04f570a368583e63c4b
[]
no_license
ivan-yosifov88/python_fundamentals
88c7eb5167bbe6692b95051d1551496a84893524
1cfe6d18453362fc26be984f6cb871b9d7dec63d
refs/heads/master
2023-03-29T16:46:55.363035
2021-04-07T10:39:44
2021-04-07T10:39:44
341,604,297
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
first_name = input() last_name = input() delimiter = input() print(f"{first_name}{delimiter}{last_name}")
[ "ivan.yosifov88gmail.com" ]
ivan.yosifov88gmail.com
afbfe84f132d7b99ee8ff3f35f0021c173ec83ba
38f666272afc68b19e9fc612b98dcfa0cdff6755
/src/backend/csv_statistics/user/migrations/0001_initial.py
4c111b12b7c06f932a6f4c754c0f2918eeeea55e
[]
no_license
sunnytroo/trail-assignment
a63444826436bb492a18a255b74d2f41dac64fc0
08aa56d6edecbb38e7bf22cde600e2030023aa8a
refs/heads/main
2023-04-07T13:34:53.518546
2021-04-09T10:25:54
2021-04-09T10:25:54
356,217,734
0
1
null
null
null
null
UTF-8
Python
false
false
4,027
py
# Generated by Django 3.2 on 2021-04-09 06:19 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth'...
[ "sunnyp.ttdev@gmail.com" ]
sunnyp.ttdev@gmail.com
904eb1e12d168271540f59a8839324bb0445b326
01db0f0f124b76943a404ebd2ec30bd672799fec
/MAP/lemmatization/no stopwords filtered - no lemmed/Method 1/indexing.py
68c5d81a665951cfd3c342e6e82ca444085edcf3
[]
no_license
vytran0710/simple-vector-retrieval
745353a63ebf7e091906c1c7769beeddfc6253a7
0da96190f9c87c8084fdeadff91a19a27bce07fa
refs/heads/main
2023-02-22T17:15:53.676574
2021-01-23T10:39:13
2021-01-23T10:39:13
325,326,117
0
0
null
null
null
null
UTF-8
Python
false
false
2,838
py
import nltk import re import os import pickle from nltk.corpus import stopwords import math from nltk.stem import WordNetLemmatizer lemmatizer = WordNetLemmatizer() def preprocess_text(text): processed_text = text.lower() processed_text = processed_text.replace("’", "'") processed_text = processed_text.re...
[ "56116908+vytran0710@users.noreply.github.com" ]
56116908+vytran0710@users.noreply.github.com
6c36a4054982502406c051de7604521cbe7d6185
b09b78fd776a5899e79dc04ed395f35d54ca5f8e
/confidant/scripts/migrate_bool.py
cefaf2ba85f01bbc978555e09a104cc96e3a6348
[ "Apache-2.0" ]
permissive
jrosco/confidant
37536b8454e8cbbddcb5b87080040a1d448c6fbd
c8cbc2ba64f8093e6b47c2f2eff59f5d291d54fd
refs/heads/master
2020-07-30T13:05:22.309726
2019-10-16T18:06:23
2019-10-16T18:06:23
181,585,820
0
0
Apache-2.0
2019-09-22T09:12:03
2019-04-16T00:34:46
Python
UTF-8
Python
false
false
11,346
py
from confidant.app import app from flask_script import Command, Option import time from botocore.exceptions import ClientError from pynamodb.exceptions import UpdateError from pynamodb.expressions.operand import Path from pynamodb.attributes import ( UnicodeAttribute, BooleanAttribute, ) from pynamodb.models ...
[ "noreply@github.com" ]
noreply@github.com
1698e2d4ad1cb9f4b1613553d57826a2f86f0855
990484e040430f184bbc53ab81ac00c5f6a0c8eb
/app/admin/model.py
643b184677a5f9219b7f48d9f33def5640bd370d
[]
no_license
Jamesltesim/TFT
344c6ebb5134639daad1bf63ea02efe918d93fd1
f5cb66b69168922f01e581f9ff2626b247cb3928
refs/heads/master
2022-12-14T08:41:48.251533
2018-09-05T14:57:29
2018-09-05T14:57:29
142,824,710
0
0
null
2022-12-08T02:19:40
2018-07-30T04:27:13
Python
UTF-8
Python
false
false
4,210
py
# coding:utf-8 from datetime import datetime from sqlalchemy import ForeignKey, Column, Integer, String, VARCHAR, DateTime, BOOLEAN, FLOAT from sqlalchemy.orm import relationship from .. import db # engine = create_engine(Conf.MYSQL_INFO, pool_recycle=7200) # # # Base = declarative_base() # # db_session = scoped_ses...
[ "james.ltesim@gmail.com" ]
james.ltesim@gmail.com
94699502bdcc20fd14f36e258fae8f7cc66a0bcd
6564f0f7521ea93dd39d84231af3a4480dda3515
/src/Program/Python/Testing/compareMatlabTest.py
d38f100b3d0a56c2d9e49a88e43648997a57f432
[ "BSD-2-Clause" ]
permissive
smiths/swhs
7cea899c565a92e16bf8345d00b550041f8579fd
94e2aa9a53b46f4b874fc8812f4be37d9e909c11
refs/heads/master
2023-03-17T22:55:41.640819
2023-03-09T19:51:23
2023-03-09T19:51:23
54,129,717
2
3
null
null
null
null
UTF-8
Python
false
false
3,336
py
import sys sys.path.insert(0, '.') import unittest import PCM_Error class TestCompareMatlab(unittest.TestCase): def setUp(self): self.delta = 0.000005 def test_CM1(self): errTw = PCM_Error.PCM_ErrorM('Testing/compareMatlab/M01.out', 'P01.out', 'TWat') errTp = PCM_Error.PCM_ErrorM('T...
[ "elwazana@mcmaster.ca" ]
elwazana@mcmaster.ca
e84a46ac2e2f85508523f34849cab34348a212d3
25eea9b1560947f64f32f1bd6d7e044faec16112
/code/lotka-volterra.py
27a1e99c567b2118051e3f011900000041c78e02
[]
no_license
retrosnob/Jupyter
7a99b7903080ee2b30e7366b9ff3725c96976e68
c06650b68a88764209c3a7cf6619cc615cddd5ad
refs/heads/master
2020-04-25T19:00:50.854785
2019-03-01T05:52:20
2019-03-01T05:52:20
173,004,573
0
0
null
null
null
null
UTF-8
Python
false
false
1,008
py
import matplotlib.pylab as pylab # This is LV that is spelt out in 4.34 and 4.35 def initialize(): global r, d, b, c, K, x, y, resultx, resulty, t, timesteps r = d = c = b = 1 K = 5 x = y = 1 resultx = [x] resulty = [y] t = 0 timesteps = [t] def update(): global r, d, b, c, x, y,...
[ "jusrobertson@yahoo.co.uk" ]
jusrobertson@yahoo.co.uk
8e6cd6a6e9fc6d7afc2a6f70833a1a18db3e3359
f6a83a9a5278d5af2dfc7d2f49cc2ca5e3f0ec6e
/scripts/gristle_validator
495a88f4e298004b3471ccc037cbd592b6c667b0
[ "BSD-3-Clause" ]
permissive
leroyjmcclure/DataGristle
93c8418d8ecbc2935394c5052463b3b4cc560eae
a5bc150e308791abca6d8f38e86938905292f763
refs/heads/master
2020-12-30T18:30:28.857391
2013-01-06T22:54:24
2013-01-06T22:54:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,695
#!/usr/bin/env python """ Extracts subsets of input file based on user-specified columns and rows. The input csv file can be piped into the program through stdin or identified via a command line option. The output will default to stdout, or redirected to a filename via a command line option. The colum...
[ "kenfar@watson.(none)" ]
kenfar@watson.(none)
e3edbf531c16d053c4fd00549d908b307ef863c1
9479ecfcf7647e87097a63574364396e16ad9ad9
/Lab6/Tests/espytester.py
748346508b9edce6e503e5a3d4177b984feb6315
[]
no_license
AlexTelon/Javascript-interpreter-in-python-course
710c2d34c1f620dd86ba7c74b5b5b8104fbda8c6
d78fdb8e6d997cc24fd9058adbbe9af2771bd637
refs/heads/master
2021-03-27T20:29:15.187606
2015-09-25T10:09:53
2015-09-25T10:09:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,800
py
#!/usr/bin/env python3 import sys import os import subprocess class TestFailedExecption(Exception): def __init__(self, testname, line, jspy_line, test_line, jspy_output): super().__init__("Test '{}' has failed at line {}:\n=================\n{}=================\n\nes.py: {}\ntest : {}".format(testname, line, js...
[ "alete471@student.liu.se" ]
alete471@student.liu.se
a7cb946df369671616daab17c41faa79828876d7
d973bb3b56f330dcb76c050780cfd4bf58fb6ba4
/Tkinter/Adding Padding.py
5f422f24d0e5beee5863563d9ade14132af9df19
[]
no_license
rahulj1601/Python
543328d72e3d1e70fdaf1453511de6cf83b7e887
c6a0c02cfd8092bc896a5ca3ae88ed4889d95ab9
refs/heads/master
2022-06-29T16:21:07.449078
2020-05-13T15:26:36
2020-05-13T15:26:36
263,668,612
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
# Adding Padding from tkinter import * window = Tk() window.title("Complete Python Course") window.geometry('400x200') lbl1 = Label(window, text="label1", padx=20, pady=20) lbl1.grid(column=0,row=0) lbl2 = Label(window, text="label2", padx=20, pady=20) lbl2.grid(column=1,row=0) window.mainloop()
[ "rahul1601@hotmail.co.uk" ]
rahul1601@hotmail.co.uk
d0ec0a41b10c508f07c1ac2e6b2c38ba42f77c1e
6e58f95a931db523a3957134ff8cac670d4c20be
/Hunter level/given 2 string checking whether they are same without using built in function.py
0b85adde15d8c4f9f377c2739745e69844479191
[]
no_license
ramyasutraye/python-programming-13
36235f324152d793ca1b2bf087d2a49a62d47787
ea58462208bb4da826b9f1917bdad17c80d055dc
refs/heads/master
2020-04-23T19:30:53.189933
2018-05-02T17:13:30
2018-05-02T17:13:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
232
py
a=str(input()) b=str(input()) l1=len(a) l2=len(b) if(l1==l2): for i in range (l1): if a[i]==b[i]: flag=1 else: flag=0 if (flag==1): print ("yes") else: print ("no") else: print ("no")
[ "noreply@github.com" ]
noreply@github.com
043812cfa4b055a90db139595b11b7c0489f56d4
8b40529458e096d24c292f2a089e0caa652897c6
/scripts/predict.py
ab1a0f7e6be4c5a1bfa98aa36971a72a2e49e37e
[]
no_license
Samykolon/Master
d0df63a4146b520b27914f7d5975e8716f00766e
c0686567eacc4c00fdb715d3927ca30e442d54a9
refs/heads/master
2022-12-30T05:07:45.748985
2020-10-07T10:21:04
2020-10-07T10:21:04
278,046,774
1
0
null
null
null
null
UTF-8
Python
false
false
4,698
py
# (C) Samuel Dressel 2020 # When TX-Server is running, handle request and response import pyaudio import wave import time import os import os.path from os import path import numpy as np import matplotlib.pyplot as plt from python_speech_features import mfcc from python_speech_features import logfbank from pyAudioAnaly...
[ "dressels@mailserver.tu-freiberg.de" ]
dressels@mailserver.tu-freiberg.de
c2dd1be41120c2c01716a3f9db7a579ff46b99ce
8f5e4e2aa50a629c93ad7be317d7139f7394e699
/행렬의덧셈.py
de18616f213d7beb321d6caf468a217abc79197e
[]
no_license
noh-hyeonseong/python3-algorithm-level1
d0c9b76d539e6cab5c68bb6c5a7ba12e87073640
5aec6c24fb3c3fb2833bdc80e4af7c0bd9e8fddd
refs/heads/master
2023-06-06T02:34:02.882296
2021-06-29T06:16:05
2021-06-29T06:16:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
507
py
import numpy as np def solution(arr1, arr2): """ 행렬은 numpy 모듈을 활용하면 더 쉽게 풀 수 있음 import numpy as np """ #numpy 사용 코드 A = np.array(arr1) B = np.array(arr2) answer = (A + B).tolist() print(answer) return answer #기존 코드 # answer = [] # for i, j in zip(arr1, arr2): #...
[ "shgustjd6262@naver.com" ]
shgustjd6262@naver.com
462a37efb98d640ba9b874b7b10f047c674f5333
b2fc9e6bc140a77c730ca0b13a738e139f214f05
/mbl/util/string.py
1807b15da38b029b448b1436418e51fe3600941e
[]
no_license
lachtan/mblib
31febb60855413aeeb70c15a28f7d4f8204a9c03
3378818e74f010c14ffe554cdf79ead3af2dfff7
refs/heads/master
2020-05-17T23:17:41.953208
2011-01-27T20:06:51
2011-01-27T20:06:51
753,444
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
import re def split(pattern, text, itemsCount, emptyItem = ''): """ split text into itemCount items missing items fills with emtyItem """ if itemsCount < 1: raise AttributeError('itemsCount must be greater or equal 1 (%d)' % itemsCount) array = re.split(pattern, text, itemsCount - 1) if len(array) < itemsCount:...
[ "lachtan@fnet.cz" ]
lachtan@fnet.cz
416bd9a60261c8fd6ab915b6fa7b0f273d413d0f
ae2c287af9ce5c74a7361a79f5532aef44a5f1c0
/Util.py
99dead0362c86a76bfec16949292068d893cdc57
[]
no_license
richars1111/juego-dados
9eba87fc0df736a5ba29f0577a18c475a9d256e2
e4e67f808299152f58d31ca4f50c5edf5ed5d753
refs/heads/main
2023-08-15T11:56:31.342781
2021-09-18T00:21:04
2021-09-18T00:21:04
406,808,859
0
0
null
null
null
null
UTF-8
Python
false
false
774
py
from tkinter import * def agregarImagen(ventana, archivo, fila, columna): img = PhotoImage(file=archivo)### carga la imagen en la memoria y recibe como parametro el nombre del archivo lbl= Label(ventana)### se instancio lbl.config(image=img) ### ala etiqueta se la asigno la imagen lbl.image=img lbl...
[ "90426768+richars1111@users.noreply.github.com" ]
90426768+richars1111@users.noreply.github.com
9cd8a6e55a4e5085df6657d0a04781d0dee9ed7b
b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1
/tensorflow/python/training/saver_large_variable_test.py
f19600a79e7b85bc841cc500c0681bd62a3cd3a6
[ "Apache-2.0" ]
permissive
uve/tensorflow
e48cb29f39ed24ee27e81afd1687960682e1fbef
e08079463bf43e5963acc41da1f57e95603f8080
refs/heads/master
2020-11-29T11:30:40.391232
2020-01-11T13:43:10
2020-01-11T13:43:10
230,088,347
0
0
Apache-2.0
2019-12-25T10:49:15
2019-12-25T10:49:14
null
UTF-8
Python
false
false
2,386
py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ "v-grniki@microsoft.com" ]
v-grniki@microsoft.com
0dffad33f2dccbceaee1cb127899c1c8b0e10fa0
17090fa1f7849f82a35d1d53526c57889875386d
/IPProxy/spider.py
5eea61ac808da8c298ab4e013e2c08d98454fcbf
[]
no_license
apple0523/Py-Lawrence
a2dc9943ef36fe48eb276ea6a8e9eaf15f4041e3
e1460ca205e58abef0ff9263b7dddb944c3bbfec
refs/heads/master
2021-04-09T16:29:44.292847
2018-03-19T08:26:13
2018-03-19T08:26:13
125,806,183
0
0
null
null
null
null
UTF-8
Python
false
false
2,013
py
#!/bin/env python # -*- coding:utf-8 -*- import requests from bs4 import BeautifulSoup import random class GetProxyIP: def __init__(self,page=10): self._page = page self.url_head = 'http://www.xicidaili.com/wt/' def get_ip(self): """ get resouce proxy ip pool :return:...
[ "tc.first@163.com" ]
tc.first@163.com
56e6115affba47ecce6d8012f1beea9bd3f675f6
348121e654a4a626b7eef745319a7168f205ebe9
/project/simpleapp/admin.py
5a79ea278a4ffcee0a0845a3ed521d58efaf0b72
[]
no_license
Vladxex/news_2
3d6aada6f4a32ab9a2ceb049d80667b1b2891074
4944c2fc55fb7c1384fdcfa77dcdc8da696ca9e9
refs/heads/main
2023-02-02T16:56:45.528881
2020-12-17T12:26:55
2020-12-17T12:26:55
322,286,555
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
from django.contrib import admin from .models import Category, New admin.site.register(Category) admin.site.register(New) # Register your models here.
[ "vlad_19_96@mail.ru" ]
vlad_19_96@mail.ru
3d6963aee849bab68187c59aa775a10ae4a266f5
84b5ac79cb471cad1d54ed1d2c842dc5581a03f0
/branches/pylint/config/scripts/paella-export-profile
777b1b8eccf1dd0bbd7a397eb1c75fd8f43c9ebf
[]
no_license
BackupTheBerlios/paella-svn
c8fb5ea3ae2a5e4ca6325a0b3623d80368b767f3
d737a5ea4b40f279a1b2742c62bc34bd7df68348
refs/heads/master
2021-01-18T14:07:40.881696
2012-11-13T20:33:08
2012-11-13T20:33:08
40,747,253
0
1
null
null
null
null
UTF-8
Python
false
false
377
#!/usr/bin/env python import os, sys from paella.db import PaellaConnection from paella.db.profile.xmlgen import PaellaProfiles conn = PaellaConnection() args = sys.argv[1:] profile = args[0] profiles = PaellaProfiles(conn) tfile = file(profile + '.xml', 'w') xml = profiles.export_profile(profile) xml.writexml(tfil...
[ "umeboshi@cfc4e7be-4be4-0310-bcfe-fc894edce94f" ]
umeboshi@cfc4e7be-4be4-0310-bcfe-fc894edce94f
e97597a8c8c4e1f494270f4447ac1ac51ab282c5
37dcae73b748cc8eef0cb8e1a2dc0b2bf728b359
/week4/swapi.py
8a864920496b78ab9e259ff0c6a3e7f557073794
[]
no_license
Jagestah/homegrown
e40613a89727acad17bd9915a9e6521e74b21568
475ce89fe7d8316465b94d10f27a50742557e34a
refs/heads/master
2021-01-04T00:25:08.647359
2020-09-03T01:15:49
2020-09-03T01:15:49
240,300,802
2
1
null
2020-08-05T20:24:48
2020-02-13T15:58:50
null
UTF-8
Python
false
false
1,608
py
#! /bin/python3 ### # To use this code run `pip3 install -r requirements.txt` ### import requests # https://requests.readthedocs.io/en/master/ import pprint # https://docs.python.org/3/library/pprint.html import time import sys STARSHIP_ID = sys.argv[1] # PrettyPrint changes ugly single-line json in to a human read...
[ "mckeeverjohnj@gmail.com" ]
mckeeverjohnj@gmail.com
fb9df43b05592866ffc871b29938d26eeff422d1
f52df32b5a052d290992151e907603147afb53b0
/sem1/maths/P2CSN17003/3Third.py
ba3b73a20a2a059bfb4ab861de446f898a840e3b
[]
no_license
afterlunch/cybersec
5773907b34e3c1dae8f48ad068fef11f23ac1e7d
5a56a224c6446cbd71659b5909568efb0c6e1055
refs/heads/master
2022-03-25T02:55:30.481066
2018-03-10T13:36:10
2018-03-10T13:36:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
#gcd m=int(input("Enter first number :")) n=input("Enter Second number :") x=m y=n r=1 gcd=1 if m>n: a=n b=m else : b=n a=m if a==0: gcd=b print "gcd=",gcd exit(0) while r!=0: q=b/a r=b%a gcd=a b=a a=r print "\ngcd(%d,%d)= %d"%(x,y,gcd)
[ "c.amritanand@gmail.com" ]
c.amritanand@gmail.com
847995f75e55b5833fb20f9af6021ed941d2660a
c8d507477bbd856bf4f41954186368474835a066
/venv/Scripts/easy_install-3.7-script.py
8cc65eea49728ce362b27be80678a2680b6473c3
[]
no_license
jmb3471/AlgoHw
ffc4526c59c0cc1b6f77b18e9c1501020bd4d23b
a2da48ddce0b692e012028593ad7db59c80f2956
refs/heads/master
2023-02-03T02:19:05.904255
2020-12-28T00:39:58
2020-12-28T00:39:58
324,876,745
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
#!"C:\Users\Jonathan Baxley\Desktop\AlgoHw\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\....
[ "47160881+jmb3471@users.noreply.github.com" ]
47160881+jmb3471@users.noreply.github.com
bbbfb496488a02ad49a1820a1d8e385052809eb7
3950cb348a4a3ff6627d502dbdf4e576575df2fb
/.venv/Lib/site-packages/apptools/persistence/versioned_unpickler.py
25338c9278da68d60cad7b6d117da78e73aaacdc
[]
no_license
Bdye15/Sample_Programs
a90d288c8f5434f46e1d266f005d01159d8f7927
08218b697db91e55e8e0c49664a0b0cb44b4ab93
refs/heads/main
2023-03-02T04:40:57.737097
2021-01-31T03:03:59
2021-01-31T03:03:59
328,053,795
0
0
null
null
null
null
UTF-8
Python
false
false
7,883
py
# (C) Copyright 2005-2020 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in LICENSE.txt and may be redistributed only under # the conditions described in the aforementioned license. The license # is also available online at...
[ "brady.dye@bison.howard.edu" ]
brady.dye@bison.howard.edu
012bdc029e1fff6ec79f8cfc06baae7b9eb69a44
ffa8b19913d891a655ff78384847ea9fdc5b0bc9
/test/test_group_id_for_group_user_inclusion.py
9c9b9f0104942ca2565e0a4e5b474fdf91deaf59
[]
no_license
ccalipSR/python_sdk2
b76124f409e26128ff291d2c33612883929c1b5f
d8979ed7434f4ffbc62fc30c90d40d93a327b7d1
refs/heads/master
2020-04-09T17:13:43.581633
2018-12-05T06:53:50
2018-12-05T06:53:50
160,473,001
0
0
null
null
null
null
UTF-8
Python
false
false
2,613
py
# coding: utf-8 """ Looker API 3.0 Reference ### Authorization The Looker API uses Looker **API3** credentials for authorization and access control. Looker admins can create API3 credentials on Looker's **Admin/Users** page. Pass API3 credentials to the **/login** endpoint to obtain a temporary access_token....
[ "ccalip@shoprunner.com" ]
ccalip@shoprunner.com
420c5b8ebde4703aad8b3b2b5263f14ff5f2fff0
35640d1446d03c35a56cbb7d408841833f36d99b
/Lab3/Phase1/keyParser.py
f66030f74f35844774d63f424cff9c7347a42a65
[]
no_license
ceneri/Computer-Security
17d0b6be81535744b062dd58abf002935958a3e8
a086127dd57ed4fd94b7cba18a26b0acdf21a4fb
refs/heads/master
2021-03-19T10:54:31.614969
2018-03-29T18:57:44
2018-03-29T18:57:44
117,271,524
0
0
null
null
null
null
UTF-8
Python
false
false
906
py
#!/usr/bin/env python3 """ kyParser takes as input file containing an obfuscated key (Long string of characters) and outputs all possible substrings of size KEY_SIZE to a line in the specified output file To call script: python keyParser.py <inputFileName> <outputFileName> """ import sys #Const Values KEY_SIZE ...
[ "ceneri@ucsc.edu" ]
ceneri@ucsc.edu
e08b029efc67736d02c527c4555e24f9cf75f702
7d7cbc1dae1252a30797a3c6a10fa109086b3cd5
/producto/producto_views.py
d237388f080e87838b4d5d9b50d3e10c8f3e72f9
[]
no_license
ShinichiroMike/consignacion-dojo
6ad27db404f790976f33c7a63285c64c8c3476d2
548832d449c5f1437dd87f327eb5c95bade209ea
refs/heads/master
2021-09-06T23:54:36.024369
2018-02-13T17:53:27
2018-02-13T17:53:27
113,883,814
0
0
null
null
null
null
UTF-8
Python
false
false
2,006
py
from django.shortcuts import render from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse_lazy # from django.contrib.auth.decorators import login_required, user_passes_test from django.contrib.auth.mixins import LoginRequiredMixin from django.core.paginator import Paginator from .mod...
[ "shirowatla@gmail.com" ]
shirowatla@gmail.com
66ec008d30b4c1f2d4f26989dac24fc236c62540
4a117dc0df46efd84b7a8860f65e66b9c25c85ab
/case3_2.py
717b3a50822f2e8c9e9ff9e5cd590e56d1b2a399
[]
no_license
XushengLuo/LTL_MRTA_optimal
d8ee1797f9730f5a418245eb2db659316d018eec
ac6e463a6b6162f188c835f298edf3934eeec341
refs/heads/master
2022-12-09T05:35:27.193483
2020-09-05T02:09:14
2020-09-05T02:09:14
278,577,740
0
0
null
null
null
null
UTF-8
Python
false
false
24,284
py
from task import Task from restricted_buchi_parse import Buchi from datetime import datetime import restricted_poset from workspace_case3 import Workspace import matplotlib.pyplot as plt import restricted_weighted_ts import restricted_weighted_ts_suffix import restricted_milp import restricted_milp_suf import pickle f...
[ "xl214@duke.edu" ]
xl214@duke.edu
c3d059c6a856c09a0127d8793a81b5c97ef00863
a3ff8c37e8079412477e203faa2f9526ffb66b7a
/realworld_expt/expt.py
9d07e0d72ad6f148d9a7608d719a22062f2252cf
[]
no_license
greentfrapp/temp
07c83aaf08dd236f6305af877280698612129681
406864f3c7c2f78c23df2c29b640ba9ea622eb27
refs/heads/master
2020-03-29T19:24:48.466126
2019-01-30T15:14:10
2019-01-30T15:14:10
150,261,784
0
0
null
null
null
null
UTF-8
Python
false
false
6,493
py
from __future__ import print_function try: raw_input except: raw_input = input import numpy as np from keras.models import load_model import json import tensorflow as tf from sklearn.ensemble import IsolationForest import matplotlib.pyplot as plt from scipy.stats import chi from absl import flags from absl import ap...
[ "limsweekiat@gmail.com" ]
limsweekiat@gmail.com
c3f87252231909bf4d058b819a5d6f1fa0c34340
5c67c6e9d69fd583d0a2c13063788b1a6df782cb
/online-version/defi.py
5ad2e2567b1c9f7531c762310ae8b01f0b279c6c
[]
no_license
mathyomama/vocab-flash
aa0fbce34c330e27d43a6814b66c8b661a2bd4a8
a808d54be5027eb9f53edb8805c2c9a246987acc
refs/heads/master
2016-09-06T01:17:03.238908
2013-10-18T05:57:27
2013-10-18T05:57:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
570
py
import parse import urllib2 import error class Definition(object): """This class takes a word and uses urllib2 to grab a file which is then parsed using Parse from parser.""" def __init__(self, word): try: self.data = urllib2.urlopen("http://en.wiktionary.org/w/index.php?action=raw&title=%s" % word) self...
[ "mathyomama@gmail.com" ]
mathyomama@gmail.com
6682865495c2e982113ba738dec842ce4ec2a54f
9aa2141c98339bfb66714f00263fd701cec1965a
/main.py
61e057c8367865d639efed5184efffed2988d7b4
[]
no_license
mateuszkowalke/stock-predictor
9b904bf99addd0c5acde6d84c03f6b3e203ce988
cd767529a7e056ce2e6b32a8dee858d2a558bdb1
refs/heads/master
2023-04-08T12:03:14.884185
2021-04-17T16:04:02
2021-04-17T16:04:02
358,923,127
0
0
null
null
null
null
UTF-8
Python
false
false
2,746
py
import numpy as np import matplotlib.pyplot as plt import pandas as pd import pandas_datareader as web import datetime as dt from sklearn.preprocessing import MinMaxScaler from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, LSTM # load data company = 'FB' start = dt.date...
[ "mateusz.kowalke@aurafutures.com" ]
mateusz.kowalke@aurafutures.com
51488bc065ab15635618159a0ae686e9e2d730bf
e33b7ce46d1c10142712cb59399dbdf6a4dfe1d2
/test_class/args_handler.py
8f42be43d4807e3da40a028c17272f2e2c438bcf
[]
no_license
match8969/practice_python
a1d80232c17c373abc7b0aa514a9e17425592137
fee9a9cef2558e49282b619e3d3ed1d41d679ecf
refs/heads/master
2020-04-26T07:23:35.788289
2019-03-02T02:15:23
2019-03-02T02:15:23
173,392,812
0
0
null
null
null
null
UTF-8
Python
false
false
1,216
py
""" Reference :: https://stackoverflow.com/questions/141545/how-to-overload-init-method-based-on-argument-type lass MyData: ... def __init__(self, data): ... "Initialize MyData from a sequence" ... self.data = data ... ... @classmethod ... def fromfilename(cls, filename): ... "Initi...
[ "match8969@gmail.com" ]
match8969@gmail.com
5590f5c97292bf43d4e6e738676096ae1f3baffe
239d9f4c1929dbde1b86531939c4276e655cf5bd
/1_to_10.py
5b6a9a6219d422c2d037de0ac93ab969a3d2ba9e
[]
no_license
trishacjames/MyFirstPython
14c8f5f9387c1d33e89b1977a4c14138d418c4c9
b4f0fc88394679bf17e0da7ad5be716f98ec6f07
refs/heads/master
2020-05-14T08:15:25.500159
2019-04-17T19:23:12
2019-04-17T19:23:12
181,715,856
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
count = 1 while count <= 10: print(count) count += 1
[ "trishajames@Trishas-MacBook-Air.local" ]
trishajames@Trishas-MacBook-Air.local
3327edc9b1fd79eac440d1860f7b72ec8890660d
310599a12c65d9910347fbfe917ee82642d6b2b7
/mask_rcnn/find_hsv_value.py
4b4f21ec6f03298499fe75dc151a25846d9bac8b
[ "MIT" ]
permissive
OOIIps/Mask_RCNN
3988f8f722780ddcc653330d874af569a7ca15ab
b607289d42e9b748e1ca65f76097e2816507ded7
refs/heads/master
2020-07-24T04:18:11.741885
2019-09-11T11:47:30
2019-09-11T11:47:30
207,799,027
0
0
NOASSERTION
2019-09-11T11:46:29
2019-09-11T11:46:29
null
UTF-8
Python
false
false
1,365
py
import cv2 import numpy as np image_hsv = None pixel = (20,60,80) max_hsv, min_hsv = np.zeros(3), np.ones(3)*255 # mouse callback function def pick_color(event,x,y,flags,param): global max_hsv, min_hsv if event == cv2.EVENT_LBUTTONDOWN: pixel = image_hsv[y,x] #you might...
[ "hanskrupakar1994@gmail.com" ]
hanskrupakar1994@gmail.com
1b3ed7927b1a3549562ce933a1aa1173925bbf3c
567a4eb41d2e92c16d7b5c99913e075baf1d63e8
/python/leetcode/exam4.3.py
47896ed93e9581a91430631e804a2792aeefadb7
[]
no_license
sunyikang/skilltraining
299b342be8d4b720d7856efacfa4e3d823635760
3081294fdf8718b0f5b6fa4dbd0fd67fc60cdc24
refs/heads/master
2022-12-25T15:44:45.563570
2020-04-29T14:56:25
2020-04-29T14:56:25
153,577,372
0
0
null
2022-12-22T09:41:34
2018-10-18T06:55:18
JavaScript
UTF-8
Python
false
false
316
py
def syrac(n): while n>1: if n%2 == 0: print "{} and {}".format("a1", n) n=n//2 print "{} and {}".format("a2", n) else: print "{} and {}".format("b1", n) n=3*n +1 print "{} and {}".format("b2", n) return n print syrac(9)
[ "sunyikang@gmail.com" ]
sunyikang@gmail.com
dec281751603425b8397dc65a0ebbd7b8b50ff7f
a564b8277e33eb27009089ec2e216a4d266a8861
/官方配套代码/15/15.3/Senior/server/CrazyitDict.py
6fc2e469e9af559f3323a86b8dde9a2555759584
[ "Unlicense" ]
permissive
yifengyou/crazy-python
3cb50f462e4ddb921c365e2f0cb3e846e6539383
28099bd5011de6981a7c5412783952cc7601ae0c
refs/heads/main
2023-06-18T18:10:52.691245
2021-07-18T14:21:03
2021-07-18T14:21:03
387,088,939
1
0
null
null
null
null
UTF-8
Python
false
false
1,708
py
# coding: utf-8 ######################################################################### # 网站: <a href="http://www.crazyit.org">疯狂Java联盟</a> # # author yeeku.H.lee kongyeeku@163.com # # # # version 1.0 ...
[ "842056007@qq.com" ]
842056007@qq.com
a6740c96f8a8e3414354422c2e5bf6332fd76a4e
b1defdc230d5c06ea397b13a3f7e445914fb9761
/Chapter_08/src/knock_72.py
4702a257e10553e7fef2735e49911b4caeb1271b
[]
no_license
t-tagami/100_knock
cd885aed6ebd5f0cc7c544df4cf0ea3f2812ba85
f79960b290608c05c263862c0da140f9754070e6
refs/heads/master
2020-03-20T18:36:47.475278
2019-02-27T19:31:46
2019-02-27T19:31:46
137,596,459
0
0
null
null
null
null
UTF-8
Python
false
false
1,173
py
# 72. 素性抽出 # 極性分析に有用そうな素性を各自で設計し,学習データから素性を抽出せよ.素性としては,レビューからストップワードを除去し, # 各単語をステミング処理したものが最低限のベースラインとなるであろう. from knock_71 import is_stopword from nltk.stem.porter import PorterStemmer as PS import pickle, re from tqdm import tqdm def rm_symbol(sent): return re.sub(symbol, '', sent) def stemming(sent): return ...
[ "tagami@ecei.tohoku.ac.jp" ]
tagami@ecei.tohoku.ac.jp
9e04759332a82f222f84a256886b4bd3e5300456
e42478c0c501a11280a3b0b3266a931215fd5a34
/fxdayu_data/handler/base.py
3e03b7fc7e8eeb0830d6ff42ded200f68ffccb42
[]
no_license
limingbei/fxdayu_data
d36af819ee32e32e541eaf205b0e1c9309ffc89a
2d1541def42b31e839e1027a85cfd08665f731a3
refs/heads/master
2020-03-17T23:16:37.656128
2018-01-05T05:50:41
2018-01-05T05:50:41
134,038,018
1
0
null
2018-05-19T06:55:59
2018-05-19T06:55:59
null
UTF-8
Python
false
false
475
py
# encoding:utf-8 from datetime import datetime from pymongo.mongo_client import database import pandas as pd import pymongo class DataHandler(object): def write(self, *args, **kwargs): pass def read(self, *args, **kwargs): pass def inplace(self, *args, **kwargs): pass def u...
[ "862786917@qq.com" ]
862786917@qq.com
fb464703e73da00cfc3695c6632d3fa3aaf7c9af
fa2e3a4392a218d3b818b313e59ffe5cf25ae328
/constants.py
4d27d757aa9b1bc096da2916c91a5b5434a19526
[]
no_license
prashantramnani/RL_TermProject
62df3477d81517989159bb2fb4c0381d2e8c2660
78216bfffc8cf8e228e879e740775b62baf89b06
refs/heads/master
2023-01-09T06:44:55.225285
2020-11-12T16:57:16
2020-11-12T16:57:16
311,939,062
0
0
null
null
null
null
UTF-8
Python
false
false
788
py
from collections import namedtuple make_episode = namedtuple('Episode', field_names=['states', 'actions', 'rewards', 'init_command', ...
[ "ramnani.prashant@gmail.com" ]
ramnani.prashant@gmail.com