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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6e260c0f266108fca49853195f3c3f8c7721266f | 5f2b7f5eef576dfa575bac913c39c30607f946a1 | /Assignment1.py | ed4eb2bcf302203f7f796407791ca5a42df62013 | [] | no_license | Kolokodess/switch_python_Ada | f9c3a6728b25ca3d1cb30ea20ffb77de6bd73cd8 | 42a42751cac75fab4fb01505294be6a3ef25268e | refs/heads/master | 2021-06-18T11:07:38.416980 | 2017-04-04T08:41:46 | 2017-04-04T08:41:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | balance = float(raw_input ("Enter Balance:"))
Annual_interest = float(raw_input("Enter Annual Interest rate:"))
min_payment_rate = float(raw_input("Enter Minimum payment rate:"))
total_payment = 0
months = 1
while months <= 12:
#m_m_p = minimum monthly payment
m_m_p = min_payment_rate * balance
monthly_interest =... | [
"ada.oyom@gmail.com"
] | ada.oyom@gmail.com |
1b70bccd5370036cb4520982e27696d6b98d1e47 | 10729b1d8e2761e49c56a6a308ee6b2f486d4076 | /PropertyScraper/__main__.py | f60db63a37a55ba97aa880ef3f66de8d9c0edd6f | [] | no_license | thebend/real | 9042e4cd261bee306e3ffb81b26e55416851eb71 | db2a32ac356fdd7d342aed138cac744e31e329a0 | refs/heads/master | 2021-06-11T00:10:48.589182 | 2021-03-04T07:08:34 | 2021-03-04T07:08:34 | 82,351,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | #pylint: disable=C0103
''' Execute scraper with default settings '''
import logging
from datetime import datetime
from PropertyScraper import Scraper
log_filename = '{:%Y-%m-%d}.log'.format(datetime.now())
db_filename = '{:%Y-%m-%d}.db'.format(datetime.now())
logger = logging.getLogger('PropertyScraper')
file_handl... | [
"Benjamin Davidson"
] | Benjamin Davidson |
b374191a7cf732d53d219ab1e5838ac5a74b3ab2 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/cherrypy/test/test_virtualhost.py | e9b88bd297cb6047933124c32d619fd6c0d22cc0 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 3,718 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\lib\cherrypy\test\test_virtualhost.py
import os
curdir = os.path.join(os.getcwd(), os.path.dirname(__file__))
import cherrypy
from cherrypy.test import helper
class VirtualHostTest(helper.CPWebCase):
def setu... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
3cd88a93ec624282caf04872b0d591e54a297d80 | bd12b2b84643023ff65734bc187d0c05cc540c4c | /scripts/compare_comparators.py | fe07f218b50049761eee72939c20fa091c4412af | [
"Apache-2.0"
] | permissive | alexander-bzikadze/graph_diff | 27bdc3c25c4b3a567bda8c2c967a74ccb8f412f9 | c7d5510590d8f6999697a3e197d4e806c320e968 | refs/heads/master | 2021-05-16T13:03:25.026373 | 2018-05-01T18:16:35 | 2018-05-01T18:16:35 | 105,353,922 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | import logging
from graph_diff.graph import rnr_graph
from graph_diff.graph.graph_generator import GraphGenerator
from graph_diff.graph_comparison import generate_n_comparator_tests
from graph_diff.graph_diff_algorithm import GraphMapComparatorByNodeNum, GraphMapComparatorByEdgeNum
from graph_diff.graph_diff_algorithm... | [
"alexander.bzikadze@gmail.com"
] | alexander.bzikadze@gmail.com |
7f893bc5ede151e3ba8385f0ff5bff7a0cfe4beb | 497ead1ee1e09a2530aa771ae059989e341684d7 | /python/cuml/dask/preprocessing/LabelEncoder.py | 4c731de842b1d1109949e96d1b4ad9f7128da6cf | [
"Apache-2.0"
] | permissive | xieliaing/cuml | 193f5753696bbfd4de8e3eaef919c18da2fd1d1a | 78092ddde28d5a810e45d6186f049c1309121408 | refs/heads/master | 2022-11-10T16:45:38.818055 | 2022-11-03T23:12:07 | 2022-11-03T23:12:07 | 159,592,316 | 0 | 0 | Apache-2.0 | 2018-11-29T01:59:07 | 2018-11-29T01:59:07 | null | UTF-8 | Python | false | false | 7,769 | py | # Copyright (c) 2021-2022, NVIDIA CORPORATION.
#
# 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 agre... | [
"noreply@github.com"
] | noreply@github.com |
a0d3caee1fbf6c2afadd6139c75f0fb247dbe328 | b24e45267a8d01b7d3584d062ac9441b01fd7b35 | /Usuario/.history/views_20191102195546.py | 879e6589a3c510e2404c8ff9b59bed87520c898f | [] | no_license | slalbertojesus/merixo-rest | 1707b198f31293ced38930a31ab524c0f9a6696c | 5c12790fd5bc7ec457baad07260ca26a8641785d | refs/heads/master | 2022-12-10T18:56:36.346159 | 2020-05-02T00:42:39 | 2020-05-02T00:42:39 | 212,175,889 | 0 | 0 | null | 2022-12-08T07:00:07 | 2019-10-01T18:56:45 | Python | UTF-8 | Python | false | false | 3,630 | py | from django.shortcuts import render
from rest_framework import status
from rest_framework.response import Response
from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import AllowAny
from rest_framework_simplejwt.tokens import RefreshToken
from .models import Us... | [
"slalbertojesus@gmail.com"
] | slalbertojesus@gmail.com |
5e759521921a5fbee942af6ff03899975bbd0b35 | 84ab518741695c4cdaaaaad7aacd242a48542373 | /practicePrograms2.py | 2a9bca47df4a22c71dce1bbf0feda7d31fd35710 | [] | no_license | Aakashgarg743/Learn-Python | 755818988dc391dc9cdea7091a6488fdb39b0b3d | b5e832146845ed140e63f7f2151af70d21e44003 | refs/heads/master | 2023-08-11T08:14:00.474551 | 2021-09-29T13:52:33 | 2021-09-29T13:52:33 | 409,439,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,188 | py | # DICTIONARY
user = input("Welcome To My Dictionary\n['python', 'pip', 'functions']\nEnter any word that are listed above to get the meaning....\n").lower()
dic = {"python": "it is a programming language..", "pip":"it is used to install packages", "funcitons": "it is a block of code that only runs when it is called..."... | [
"91084902+Aakashgarg743@users.noreply.github.com"
] | 91084902+Aakashgarg743@users.noreply.github.com |
9418bf8162cced953666e74e72750c54214a25e4 | ca87c047f49a4aa893224466c4ea54e1801e0de2 | /code/pywin32/excel/extract_excel_data.py | 0659280bc294925a0cfacd0f9fb16e9b812f4540 | [] | no_license | jpereiran/jpereiran-blog | a46504871dfbd1a007090d4a39fe51ddced0032c | 08385e2e8b0a0440d1fda81293f8692c923174a1 | refs/heads/master | 2021-10-11T06:51:28.190808 | 2021-10-04T00:19:49 | 2021-10-04T00:19:49 | 192,151,831 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,971 | py | import win32com.client
import glob
import sys, io
# Open up Excel and make it visible (actually you don't need to make it visible)
excel = win32com.client.Dispatch('Excel.Application')
excel.Visible = True
# Select the path of the folder with all the files
files = glob.glob("folder_path/*.xlsx")
# Redirect the stdou... | [
"noreply@github.com"
] | noreply@github.com |
fc94bfc8c1c5fa1df951fab64844fca2a07b5310 | 8cf593d60d02be4692bce873656c85466fc1d8e1 | /cw7/Zad1.py | 44641eb1ec798de123460d5e7fff7ebaa097f101 | [] | no_license | michals-lab/Python | 502ad5202c962808d499e16545aea5ca73c3fe21 | 09e2c76368215e3345ee5130bf56ca626ffbbe38 | refs/heads/master | 2021-01-25T23:55:35.358748 | 2020-05-20T07:26:42 | 2020-05-20T07:26:42 | 243,231,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | import numpy as nu
x = nu.arange(3).reshape(1,3)
y = nu.arange(6,9).reshape(1,3)
print(x*y) | [
"59738119+michals-lab@users.noreply.github.com"
] | 59738119+michals-lab@users.noreply.github.com |
bb86890b77d314e21ced1d0d6e8ca9908fe3952a | baccbb4478c01c4c102cc1cfae56103f179a50d8 | /scripts/handle_mysql.py | 83cd4c7631baa42559ce110f8b02604fc0a58aa8 | [] | no_license | cheer1106/test_cheer | a09b5f11e85f06e0aa1c0fef69b6b30e069a38b1 | 6e29266daabdcf45a7a76da2a5653d6ef6b1c108 | refs/heads/master | 2020-09-29T08:27:03.935876 | 2019-12-10T10:44:30 | 2019-12-10T10:44:30 | 226,999,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,061 | py | """
============================
Author:cheer
# @time:2019-11-19 10:01
# @FileName: handle_mysql.py
# @Software: PyCharm
# @Cnblogs :https://www.cnblogs.com/*****
============================
"""
import pymysql
import random
from scripts.handle_yaml import do_yaml
'''
类封装的原则:不同功能写不同的方法
'''
class HandleMysql(object):
... | [
"1498053436@qq.com"
] | 1498053436@qq.com |
b08be16b6f55bbb29dd93651676a710322f99cdd | 2fcb5da42f0aff62c88189bd36fc5f61a40eb604 | /vardautomation/timeconv.py | 3b84b24deda8187b48a85d3ae7948559d45a7404 | [
"MIT"
] | permissive | tomato39/vardautomation | d45ec446a1cd06c2e7b7ec5378772953fa7b4caa | efa24d9420d6a6f732e8b0a846874a289a7cb095 | refs/heads/master | 2023-08-23T01:44:00.014196 | 2021-10-21T23:05:52 | 2021-10-21T23:09:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,647 | py | """Conversion time module"""
from fractions import Fraction
from .status import Status
class Convert:
"""Collection of methods to perform time conversion"""
@classmethod
def ts2f(cls, ts: str, fps: Fraction, /) -> int:
"""
Convert a timestamp hh:mm:ss.xxxx in number of frames
:... | [
"ichunjo.le.terrible@gmail.com"
] | ichunjo.le.terrible@gmail.com |
3f1b20e6325128b26f23eed22db51edb5211804d | e1d942fc4d0099c4a5fe7cf10fdf7e710da2a147 | /11/JackCompiler.py | 354594cea58f8aa55a8c2273f48dda940a0413fb | [] | no_license | AradAlon/Nand2Tetris | 1c5856a6cf5734661b8e848a4e5fbea5381f4603 | 1ca9948b1495b0f16bfa5c89c4be50944fa2380e | refs/heads/master | 2022-12-15T14:32:10.149762 | 2020-09-19T13:27:15 | 2020-09-19T13:27:15 | 296,870,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,213 | py | import sys
import re
import glob
OUT_PATH = ''
T_KEYWORD = 'keyword'
T_SYM = 'symbol'
T_NUM = 'integerConstant'
T_STR = 'stringConstant'
T_ID = 'identifier'
class JackCompiler:
def __init__(self, jacks):
self.analyze(jacks)
def analyze(s... | [
"noreply@github.com"
] | noreply@github.com |
ae8caa3e5755b5b934074980647e9b8a044a2e9a | 2d930aadf19b2ad6ea49725099d2f37475cd57f8 | /test/functional/wallet-dump.py | c3f723a19bbd46584fb33bce6dba37487abcdcbe | [
"MIT"
] | permissive | stratton-oakcoin/oakcoin | ea83774c9f6ea64adb8832770e6219ffb31edef6 | fe53193a50bd3674211448f1dcc39c6f9f042bb2 | refs/heads/master | 2021-01-20T13:22:05.877005 | 2017-05-07T10:09:57 | 2017-05-07T10:09:57 | 90,477,972 | 1 | 2 | null | 2017-05-07T10:09:57 | 2017-05-06T16:58:05 | C++ | UTF-8 | Python | false | false | 4,770 | py | #!/usr/bin/env python3
# Copyright (c) 2016 The Oakcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the dumpwallet RPC."""
from test_framework.test_framework import OakcoinTestFramework
from test_framew... | [
"s.matthew.english@gmail.com"
] | s.matthew.english@gmail.com |
ecf24d7d6ee11295a51d53aedecf26dcf7c0a36a | f57a425d2bfe242f59bfccefb844c06f6a924bb9 | /LinearRegression.py | d8742adbfb5eb3ca9eda275cfd5df8ec9b9b7d75 | [] | no_license | MostafaZegoo/NLP_Project | a48208d4626e1b2254f96757714db77f14ae2880 | 363942bea9d297c9af47e28a5fd35fcf8860dda2 | refs/heads/master | 2020-03-12T23:19:17.713877 | 2018-08-21T08:29:59 | 2018-08-21T08:29:59 | 130,863,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score,confusion_matrix,classification_report
... | [
"noreply@github.com"
] | noreply@github.com |
3753ecbbf592ed7d15df03a2549a45b42ac22766 | 224a906e91c7c1cc8778466ef785060871ede67d | /name_to_job.py | 4d1e39731dce00448b3ebe524814d3cbaed30fb8 | [] | no_license | Pavanisoma/Salary-Prediction-from-Name-Team-Competition- | 353c7fda0df873e7e41d8283929c9ed49fdc97e9 | 1ddf618cbc4df41171a1b87698c0a7b45f0eb574 | refs/heads/master | 2021-08-08T21:10:57.862710 | 2020-06-14T19:28:51 | 2020-06-14T19:28:51 | 191,850,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,272 | py | import numpy as np
from keras.utils import to_categorical
import keras.backend as K
import matplotlib.pyplot as plt
import random
from tqdm import tqdm
import nltk
import os
import time
import tensorflow as tf
import csv
from nltk.stem.wordnet import WordNetLemmatizer
from nltk import word_tokenize
tf.enable_eager_exec... | [
"noreply@github.com"
] | noreply@github.com |
31e5d88aad90549955249b4cb57b003d157e5527 | 620ca56701bce0add202f3cbe7c62036e4b1e359 | /Course_3/Week_1/validations2.py | 77d004fd5a9ff1e3999c8772722fd59fa072d73d | [
"MIT"
] | permissive | gpastor3/Google-ITAutomation-Python | 1f52dbff0b8f0832ab3fea4ac9c468c667363e1a | 6027750a33e8df883d762223bb0c4a5a95395bc0 | refs/heads/main | 2023-04-05T00:29:10.902116 | 2021-02-04T02:08:06 | 2021-02-04T02:08:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | #!/usr/bin/env python3
"""
This script is used for course notes.
Author: Erick Marin
Date: 01/06/2020
"""
def validate_user(username, minlen):
# An alternative to the raise keyword that we can use for situations where
# we want to check that our code behaves the way it should particularly
# when we want... | [
"emarin.iot@gmail.com"
] | emarin.iot@gmail.com |
22ff9336b110cd98c8003d9035ac0470e51ce429 | 1cd3305944de3d5b76ed91c9e0ac7e26b82f47ff | /2019/src/j4_s1.py | c8c5708d08518a425e322647be8957ec162d4269 | [
"Apache-2.0"
] | permissive | coachlivinglegend/CCC | 4b0b6d4bbe031de88275a2834a12ae74fa7bc54e | 6f98e81c7fef38bf70e68188db38863cc0cba2f4 | refs/heads/master | 2023-04-18T00:41:23.522774 | 2021-05-04T12:55:02 | 2021-05-04T12:55:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import collections
import itertools
import functools
import math
import re
import bisect
import random
rint = lambda: int(input())
rstr = lambda: input()
rints = lambda: list(map(int, input().split()))
rstrs = lambda: input().split()
wmat = lambda mat, sep: '\n'.join(sep.join(map(str, row)) for row in mat)
warr = lamb... | [
"kylexie186@gmail.com"
] | kylexie186@gmail.com |
c4cc3eae8ce8dc40427cfc6263c0d8d9207e33ce | e2590e0a78046a22131b69c76ebde21bf042cdd1 | /ABC201_300/ABC275/A.py | 6bc5a95d16891d1502a3adf5fbd2ff8aa0b3a6a3 | [] | no_license | masato-sso/AtCoderProblems | b8e23941d11881860dcf2942a5002a2b19b1f0c8 | fbc02e6b7f8c6583e5a4e5187463e0001fc5f4d8 | refs/heads/main | 2023-01-22T23:57:58.509585 | 2023-01-21T14:07:47 | 2023-01-21T14:07:47 | 170,867,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py |
N = int(input())
H = list(map(int, input().split()))
maxValue = max(H)
ans = 0
for idx,h in enumerate(H):
if(h == maxValue):
ans = idx + 1
break
print(ans) | [
"masato@seijinnoMacBook-Pro-2.local"
] | masato@seijinnoMacBook-Pro-2.local |
b01d1738f1683a3b3cff5b6198a8926953464429 | 084916df5eff5e2a3f19ac5d86c401b467cb3969 | /assignment1/bfs-wikipedia.py | 484c57e34cfa312faa7ec9728cc7539fd575ab0e | [] | no_license | cvalenzuela/NOC_Intelligence-Learning | 2850b87c2ead8be97be193375129eee2ea16c0e8 | 9074fae4f1e20d7f93ef6e1ef9f75b92374d2f51 | refs/heads/master | 2021-01-23T04:20:26.702674 | 2017-04-30T03:50:19 | 2017-04-30T03:50:19 | 86,189,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,938 | py |
# coding: utf-8
# An implementation of bfs based on Grokking Algorithms chapter 6 and NOC-S17-2-Intelligence-Learning bfs examples.
# Using a Breadth-First Algorithm (BFS), this script will search for the shortest way to get from one article in Wikipedia to a specific word or term used in another article.
# Cristóbal... | [
"cvalenzuela@nyu.edu"
] | cvalenzuela@nyu.edu |
16468fa7074d1375000d5ddc4377969b545f6089 | 2e9589362c3f53841c101de62e714a5bac3d8096 | /dataset_generator/word_embeddings/document_featurizer.py | b2abcd83bcf17e7f6052f59c79b1425136fb9bf4 | [] | no_license | nikhilsu/CitationRecommender | 8b61bd44c3884de010d698dd013938d6cc13a6dc | 44666e57664980ab6476182aa9a572b7ab68fa07 | refs/heads/master | 2023-04-11T01:07:05.379559 | 2021-05-21T14:31:53 | 2021-05-31T06:15:45 | 183,876,181 | 0 | 0 | null | 2023-03-25T01:08:58 | 2019-04-28T07:59:19 | Python | UTF-8 | Python | false | false | 4,672 | py | import numpy as np
from keras.preprocessing.sequence import pad_sequences
from sklearn.feature_extraction.text import CountVectorizer
from tqdm import tqdm
class DocumentFeaturizer(object):
STOPWORDS = {
'abstract', 'about', 'an', 'and', 'are', 'as', 'at', 'be', 'by', 'for',
'from', 'how', 'in', '... | [
"nikhilsulegaon@gmail.com"
] | nikhilsulegaon@gmail.com |
87542af4bb98ec1f4f2dd18363ced2a123b396b2 | f0eb4d12fdac429d5620c0823af0b0be54d9ae3a | /KerasTracker/QualitativeResultsFigure.py | 2c9149b99f691939d72647c667e16923e340162a | [
"Apache-2.0"
] | permissive | felixVil/LDASegment | 817cf7a5b8d101c7879b293d464c0428e37a776b | 25f59c9f43c76e64c0a1e4131fa3c12bab60b716 | refs/heads/master | 2023-03-28T03:23:20.419209 | 2021-03-30T23:10:35 | 2021-03-30T23:10:35 | 322,999,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | from UtilFunctions import *
import os
import numpy as np
def find_result_per_sequence_tracker_ind(sequence, tracker, ind):
result_sequence_path = os.path.join(results_path, tracker, 'baseline')
result_filename = '%s_001.txt' % sequence
result_filepath = os.path.join(result_sequence_path, sequence, result_... | [
"felixvil@post.bgu.ac.il"
] | felixvil@post.bgu.ac.il |
4cf799ae31dfe4802a0d9299a2f9c9087c10afe6 | 0add969034a82912bc6e19abc427abe883ee65bb | /theta_en_time_polar.py | a9683111bde6bafb250a54492723f599975e5624 | [] | no_license | Michael-Gong/New_LPI_python_script | eefd162fdbbc3c614c66e2b157ea5296e3bc8492 | 9de109c6f19aa60bdeaf102e9a1ec0baff5669ad | refs/heads/master | 2020-03-28T16:06:09.631550 | 2020-02-01T08:21:17 | 2020-02-01T08:21:17 | 148,659,608 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,511 | py | #%matplotlib inline
#import sdf
import matplotlib
import matplotlib as mpl
#mpl.style.use('https://raw.githubusercontent.com/Michael-Gong/DLA_project/master/style')
matplotlib.use('agg')
import matplotlib.pyplot as plt
import numpy as np
from numpy import ma
from matplotlib import colors, ticker, cm
from matplotlib.mla... | [
"noreply@github.com"
] | noreply@github.com |
e3cc6b9117ff7d7c9fee0eba2bd19618379ed048 | 1ab7fff33be75efb4b725cd6c3ba5566c29bed93 | /tutorial/tutorial/urls.py | 1245d82edb7947719fca3d3ca4448a39e0087e7a | [] | no_license | Anjali-Del/Anj | 5b0ea6b5bc2b9c17653014d830e2526ac215ce1b | c361bc29b3da6700c51967590cb5f3abeb66881c | refs/heads/master | 2021-01-15T17:41:27.574646 | 2015-07-30T05:11:00 | 2015-07-30T05:11:00 | 38,672,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | """tutorial URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"anjali@delhivery.com"
] | anjali@delhivery.com |
b17d3ad44bb4ae3b8a6f3fb5f6c5bbe92883ca46 | 9292bd4bd9589e08fa8277069b20abc0e6f9fd7d | /Clustering/app.py | 585d9a1b10894213868e017694d0e98d33e6322b | [] | no_license | Leonidesguerra/final_project | 53f416b872677a98ff823c6bddf1fb86ac8f3fc6 | 68c9f6b5e13aad89c6528b6b15c16261f33098d1 | refs/heads/main | 2023-06-15T21:29:28.365502 | 2021-06-29T03:03:28 | 2021-06-29T03:03:28 | 377,657,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,139 | py | import numpy as np
from numpy.core.fromnumeric import reshape
import pandas as pd
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session, session
from sqlalchemy import create_engine, func
# from config import DATABASE_URI
from flask import Flask, jsonify, render_templa... | [
"leonidesguerra@gmail.com"
] | leonidesguerra@gmail.com |
361e4d07975ca9bfa13fde5395e05cfab57a2474 | 847b39a71c85aeea7e3812f15f9bd5811edbec4d | /main2.py | b9ce4d61cef2890774a5093914c407f43e1f4fa5 | [] | no_license | arsalansaad/webcrawler | 559eee2c95e0e4e3699e7788958e57f57c6378ed | 2c70b769ce572d010bb1314303ad786de2304bac | refs/heads/master | 2021-01-19T15:02:52.725367 | 2017-08-21T10:00:27 | 2017-08-21T10:00:27 | 100,939,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | import requests
from bs4 import BeautifulSoup
url = "http://www.hindustantimes.com/editorials/"
sourcecode = requests.get(url).text
soup = BeautifulSoup(sourcecode, "html.parser")
for link in soup.findAll("div",{ "class": "media-heading headingfour"}):
print(link.text)
for item in link.findAll('a'):
... | [
"arsalansaad.iitkgp@gmail.com"
] | arsalansaad.iitkgp@gmail.com |
eb160d82373fb3bb62f2083ae5cbdbcf702d1379 | 738ae0290d91596086810298eb3ced56967d45d2 | /python-cmd/scrabble.py | 6f1cbea6c0101940856302143274ae5de62a01cf | [] | no_license | kkredit/hs-projects | 6e7a8732331a23eacd154b4c0c611adc8795a0a6 | 97edcedf8116db57791f6b8c4666329f694d13b5 | refs/heads/master | 2021-01-09T09:36:43.379173 | 2016-06-01T21:58:15 | 2016-06-01T21:58:15 | 60,213,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,442 | py | # scrabble.py
# A program to propose possible words in scrabble situations
# (mostly) Kevin Kredit
from string import *#split,lower
WORDLIST_FILENAME = "words.txt"
####################################NOT MINE##################################
def load_words():
"""
Returns a list of valid words. Words are st... | [
"k.kredit.us@ieee.org"
] | k.kredit.us@ieee.org |
bb7be13aa1ae689ed05a4e1ef6b48ef41a63abf7 | 34edc8b21515817caa87aedeb07b87515c33ebd0 | /shipping/serializers.py | c02da959ef30fc9d803c7ff4b5f9b8d0607690d0 | [] | no_license | waelbeso/Ftrina | b20c277030132b195af621d9e739040d42943a9b | 449868f8c095bb920a2aef2e2dc4cb80de8ec82a | refs/heads/master | 2022-09-06T16:34:40.391965 | 2018-05-27T12:19:05 | 2018-05-27T12:19:05 | 134,336,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,464 | py |
from shipping.models import Model,Zone
from rest_framework import serializers
from shop.models import WareHouse,Shop
from rest_framework.validators import UniqueTogetherValidator
class ModelSerializer(serializers.ModelSerializer):
def ShippingValidator(value):
import json
if "update" in value['method']:
... | [
"waelabbas@live.com"
] | waelabbas@live.com |
3ce6b9f20d08c14c582b9278fa91e5bb702c29b2 | e3472add507c7fc16d013c2e318ca4e28158a13a | /tcc_tf/deterministic_alignment.py | 4e8c87dc31aabe92912c8f4e9dd78be57da37059 | [
"Apache-2.0"
] | permissive | JiaHeng-DLUT/tcc_Temporal_Cycle_Consistency_Loss.pytorch | ebd5a9eba26a2332d81743c95a460eef2c690cb4 | 61490f457b406366f847822962f607e4c3d3e1bd | refs/heads/main | 2022-12-27T20:33:20.462667 | 2020-10-11T11:12:05 | 2020-10-11T11:12:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,375 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"noreply@github.com"
] | noreply@github.com |
4122d8dfdf03cb8b82f3ada1eac86eba2d701a0f | 72e76a8eeb3afbbd2d77eb79047410e3944947c5 | /datasets.py | ac3d0e16e9df457d922d542baa0547f0f858d3d7 | [] | no_license | Tirthraj93/Topic-Modelling-and-Clustering | f6a042141ed54f65ce00cd7c51dc138e72ba2f5a | 4a7edaa3845cf18f6bbd57fee740a6bd40c9cbfe | refs/heads/master | 2020-04-17T05:31:55.423827 | 2016-08-30T20:48:15 | 2016-08-30T20:48:15 | 66,976,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | from lda.utils import ldac2dtm
def load_ldac(file_path):
return ldac2dtm(open(file_path), offset=0)
def load_vocab(file_path):
with open(file_path) as f:
vocab = tuple(f.read().split())
return vocab
def load_titles(file_path):
with open(file_path) as f:
titles = tuple(line.strip() ... | [
"noreply@github.com"
] | noreply@github.com |
0c33b6b087134d2d154945f70cb86c1e18641dbc | f78bf2e853fd07aba9fb64617e7a3f6d169a5854 | /MANUFACTURER.py | a8e8270ea55eb738a2c8c8d40e3236483b84a9e1 | [] | no_license | daemonluo/ua-parser-python | b321e4581300bd6d59912a9e5e620d7d6637722a | a92fc61e44a11f24c834c754812425be2df44c40 | refs/heads/master | 2021-06-11T22:51:12.775335 | 2016-09-01T14:04:56 | 2016-09-01T14:04:56 | 67,136,467 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115,269 | py | #coding=utf8
import re
STRINGS_SAMSUNG = 'Samsung',
STRINGS_SHARP = 'Sharp',
STRINGS_SONY_ERICSSON = 'Sony Ericsson',
STRINGS_MOTOROLA = 'Motorola',
STRINGS_LG = 'LG',
STRINGS_HUAWEI = 'Huawei',
STRINGS_HTC = 'HTC',
STRINGS_COOLPAD = 'Coolpad',
STRINGS_ASUS = 'Asus',
STRINGS_ACER = 'Acer';
STRINGS_BASED = ' based devi... | [
"woshiluolaifeng@hotmail.com"
] | woshiluolaifeng@hotmail.com |
561487ce846747b6d7fb0034befaeceaa9bf589e | 4ae6e54a01e25d370929b49bbaa91c51b003d41a | /wwwroot/app/cgi-bin/AutograderBackEnd.py | a5ec7da5cc2a9cd932b912fdd77e998cb02ccbfb | [] | no_license | rdasxy/programming-autograder | 8197a827236dc5384f6f3ceeaf2fbadefdd5506c | f885c1cd37721e1cd0b3bf3b49cc44b9adb64d92 | refs/heads/master | 2021-01-22T05:33:28.971055 | 2012-12-27T21:53:24 | 2012-12-27T21:53:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,367 | py |
# 4th major iteration - refactoring to deal with changed authentication procedures
# and to deal with each problem in parallel.
import os, sys
import subprocess
import random
import string
import winprocess
import win32pipe
import win32file
import pickle
import autograde_utilities
import thread
import Queue
import... | [
"rdasxy@gmail.com"
] | rdasxy@gmail.com |
a2ff8efb83a37d60e0d1299f437db3a37bd87b9a | 1d943d6daf9c25a9737663091d81bb08a6de6ef6 | /main.py | 4ae6d7ee999c4d9cb970c7803bfe124add29fd61 | [] | no_license | Steveineiter/A-Star_visualization | 1b29cbdc0dd3dafbc69d467a9cd2446a04d25336 | 50c24bdcbc3c85650dbe2459648bc20b73da08a9 | refs/heads/main | 2023-01-01T00:34:41.195400 | 2020-10-29T15:58:18 | 2020-10-29T15:58:18 | 308,378,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,684 | py | try:
import pygame
import sys
import math
from tkinter import *
from tkinter import ttk
from tkinter import messagebox
except:
pass
# Game field
WIDTH, HEIGHT = (900, 900)
WINDOW = pygame.display.set_mode((WIDTH, HEIGHT))
# Colors
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
RED = (255, 0, 0... | [
"noreply@github.com"
] | noreply@github.com |
ba730b6a4b4982aa4ff13b5059b8122ad718b1b3 | 9d615b7174eecd4c8401513ca8cc21fc498fef5a | /api/views.py | 457826ebef472c327e82113a59326e527f03c40c | [] | no_license | AlexeySub/prephack | ef13e637da181cd6e46d0ace20bd79c9438fba21 | fe971421438d66f59cb2ce977dc736573c2e9ea3 | refs/heads/master | 2020-05-05T12:31:41.571292 | 2019-04-13T08:00:28 | 2019-04-13T08:00:28 | 180,032,825 | 0 | 0 | null | 2019-04-07T22:45:46 | 2019-04-07T22:45:46 | null | UTF-8 | Python | false | false | 2,920 | py | from api.models import User, UserAuthen, Message
from rest_framework import renderers, parsers
from django.views import View
from django.http import HttpResponse
from django.contrib.auth.hashers import make_password
from django.core import exceptions
from django import db
import jwt, time
from django.shortcuts import r... | [
"mr.317676@gmail.com"
] | mr.317676@gmail.com |
4c481d87668445176f6e0368afd5521ee3954e1e | 395828af169b8d808057d16a399db7ef0f3bd11c | /first_django/blog/migrations/0003_auto_20200204_2042.py | 29a281decf055703fc2480a376ed28e6059e50b4 | [] | no_license | yeonghan/yozora | 88103cea289dfd4cbad8a120d822db83bf52a1eb | 58174a2a7d5dab04f5736243e0789d628d250fc7 | refs/heads/master | 2020-05-23T01:41:30.325966 | 2020-02-24T15:51:22 | 2020-02-24T15:51:22 | 47,525,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # Generated by Django 3.0.2 on 2020-02-04 11:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_auto_20200128_2032'),
]
operations = [
migrations.RenameField(
model_name='comment',
old_name='Post',
... | [
"dudgks29@naver.com"
] | dudgks29@naver.com |
2870cf1b425dae0d303dc3b910f2b3820bac2b3e | c1abf5c7dd599b25d84c2026f97eaccd03dc4e46 | /movedown.py | 1da89fb7214f214508b7e7d52b1b88c29c20d425 | [
"MIT"
] | permissive | oknalv/linky | 09768abe96d95f2dcb67ff91c22663a4a69356cb | 78fba19946e2212b10f3d1a5b27c7d9329556290 | refs/heads/master | 2016-09-13T01:33:29.192646 | 2016-04-29T15:41:13 | 2016-04-29T15:41:13 | 57,393,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py | import webapp2
from base import BaseHandler
from link import Link, Container
from google.appengine.api import users
import time
class MoveDownHandler(BaseHandler):
def __init__(self, request = None, response = None):
self.initialize( request, response )
def get(self):
if not self.request.get("... | [
"thevlanko@gmail.com"
] | thevlanko@gmail.com |
d481c060b21ebf733f9e03348fe8dbb008dcb1a0 | 0f8e3eb9c3405409418428148f97f93627a886a5 | /gui.py | 4e644ecf6068f86453d27bbbc2aea5287e181a51 | [] | no_license | shikharsrivastava/Bot-Environment | dfd4a41ffc614f46eea129d102ba4441de39eae2 | 0afbfb61baae49ebe3bb22b3c257a251913c04e6 | refs/heads/master | 2020-06-12T15:44:21.965327 | 2018-01-30T08:01:53 | 2018-01-30T08:01:53 | 75,796,633 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 7,020 | py | import pygame,sys
from pygame.locals import *
import random
import time
from math import log
import subprocess
pygame.init()
DISPLAY = pygame.display.set_mode((800,800))
pygame.display.set_caption('Checkers')
BLACK = (0,0,0)
WHITE = (255, 255, 255)
RED= (255,0,0)
GREEN = (0, 255,0)
BLUE = (0,0, 255)
AQUA=(0, 255, 255)... | [
"noreply@github.com"
] | noreply@github.com |
4ce257895e21ccb0c844c1e6aa51c30a9ac4fe4d | 202f3112b74e0c46f906c95a3914e24a734aa5ea | /polls/models.py | d6bc4118f5fb516f0ed4046cca01b3b02017e094 | [] | no_license | markadeev/djangoapp | 36e19cfac9cff07bffec5f54a903b4ee2d64dded | ac94bfff12a47994f0d2af3a924ef76430d1bf80 | refs/heads/master | 2021-01-06T14:17:23.121078 | 2020-02-20T12:01:52 | 2020-02-20T12:01:52 | 241,357,222 | 0 | 0 | null | 2020-02-20T12:01:54 | 2020-02-18T12:37:04 | Python | UTF-8 | Python | false | false | 643 | py | import datetime
from django.db import models
from django.utils import timezone
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.question_text
class Choice(models.Model):
question ... | [
"markadeev@ukr.net"
] | markadeev@ukr.net |
cb1af45e6576cfaa0436075b85515ae1b2b235e3 | bd5e4b1317e741e2c241a7285f632e2beefb8cf4 | /bdd_example/settings.py | 8e9ebdb9d57d1d0f441518deb6fff4b0a41d7f97 | [] | no_license | asleao/bdd-django-tutorial-2 | c7e5c19af55c31097d7f705568f7b18b8405acd3 | fe79cf4dded6328290ce34a8b221b8276bc733cb | refs/heads/master | 2020-12-05T17:43:59.062935 | 2016-08-23T14:44:35 | 2016-08-23T14:44:35 | 66,375,593 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,143 | py | """
Django settings for bdd_example project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import ... | [
"andre.sp.leao@gmail.com"
] | andre.sp.leao@gmail.com |
bd143b97ac92cf6eef6bbe7e91edb34eafbf4540 | 60e9be8297b98075afb304ebae929f9cac30cf42 | /leetCode/Array/Easy/K-diff Pairs in an Array.py | 95442868e44479b644d955b4d724e4873131c538 | [] | no_license | sifact/Leet-Code-Problems | e4bbd0ab2d1349de32521650c9eeaa5ad3b8085f | eb62e8407dd0931841fbbb351aca5c415c226a07 | refs/heads/main | 2023-01-30T05:07:57.904604 | 2020-11-30T16:54:19 | 2020-11-30T16:54:19 | 317,285,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | from collections import Counter
def findPairs(nums, k):
# Count the elements with Counter
# if k > 0 for each element i, check if i + k exist
# if k == 0 for each element i, check if count[i] > 1
hash_map = Counter(nums)
count = 0
for key in hash_map:
if k > 1 and key + k i... | [
"noreply@github.com"
] | noreply@github.com |
1123236231c7d7542bb38bab826fbc2184d101e5 | 01b77be351755b7f2b49d40744751cf22f3953cf | /tools/json_schema_compiler/compiler.py | 38235e07f9c9833705f99c341b718ad1db3fdb11 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | bwahn/Havana | 4159876f98850fbfe873ccaaa3dc38739537e9f3 | 5e8bc991ea7e251e98efb6e54e0b8573e5503aa6 | refs/heads/master | 2020-05-31T21:40:08.597468 | 2013-09-03T15:40:14 | 2013-09-03T15:40:14 | 12,556,726 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,190 | py | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Generator for C++ structs from api json files.
The purpose of this tool is to remove the need for hand-written code that
convert... | [
"BW@BW-PC.(none)"
] | BW@BW-PC.(none) |
373f9f9cd537df8df9fb85fee9220607f78f2be6 | de5adea6b67660bfc45150ee56b6cf4957c8c4e7 | /main_app/migrations/0001_initial.py | f522eb7c2263895a61cc3153af186e867e0d5fdf | [] | no_license | arthuroe/treasure_gram | 70049a25009318d947488dea28505f65816d9d84 | 5ce93ed21284fee17640b15546011848de3115ac | refs/heads/develop | 2020-03-18T02:16:19.413381 | 2018-05-23T17:18:58 | 2018-05-23T17:24:16 | 134,182,468 | 0 | 0 | null | 2018-05-28T18:52:48 | 2018-05-20T20:02:49 | Python | UTF-8 | Python | false | false | 824 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-05-20 21:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Treasure... | [
"arthur.orache@gmail.com"
] | arthur.orache@gmail.com |
85c85d8ad12001b13683eb1cd155223c1da9f3cf | d69b96f8a2d4a0025b2513d49ad1726d53a9adcc | /sow/console.py | 033266b0b1c668bcddc24cc81ce0afa56dd6f3d4 | [] | no_license | mekhami/Sow | 3ed4fa82f2016899924692c979d5e2ed0ca20166 | aa55d69fa1d18ac9a35a24f67b126e39ca69b721 | refs/heads/master | 2021-01-10T19:16:59.841592 | 2015-06-26T15:50:00 | 2015-06-26T15:50:00 | 30,369,588 | 1 | 1 | null | 2015-12-31T20:00:36 | 2015-02-05T17:55:29 | Python | UTF-8 | Python | false | false | 932 | py | #/usr/bin/env python
###################################
## A Harvest Command Line App ##
###################################
'''Harvest.
Usage:
sow [options]
sow add [(<alias> <hours> <note>)] [-d|--date <date>]
sow show (today|yesterday|week | --date <date>)
sow reauth
sow delete [-a|--all] ... | [
"Lawrence.vanderpool@gmail.com"
] | Lawrence.vanderpool@gmail.com |
639a8318adc71b502d3f0053794000dbc4d50a3c | 6f8b9e95b2833de2a4f2c8413fe45133e540a5cf | /Sequences/tuples_examples.py | 93edf2eb0dd93f374233d64740dad825f86671a4 | [] | no_license | riteshelias/UMC | a658665d8653ef1ba72d65030b38da7462783ae7 | e30d42192290905b0a878b66f7634500868b174d | refs/heads/master | 2023-01-20T19:32:51.885534 | 2020-11-27T04:10:22 | 2020-11-27T04:10:22 | 316,398,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | dishes = [
("Kaju Katli", "Desi", "Dessert",
(
(1, "Cashew Nuts"),
(2, "Mawa"),
(3, "Sugar")
)
),
("Machow Soup", "Chinese", "Soup",
(
(1, "Noodles"),
(2, "Chicken"),
(3, "Chopped Veggies"),
(4, "Soya Sauce")
)
),
(... | [
"ritesh.elias@gmail.com"
] | ritesh.elias@gmail.com |
000950e05d418733d1aee53faa55ce0a11927353 | 87ef03b1ff43333361771976397908abeb56e496 | /venv/Lib/site-packages/gunicorn/http/body.py | afde36854d1b6ce7e58bdb115b34e09dbed4eee6 | [
"MIT"
] | permissive | pran01/AlgoVision | cba938db1f56c3b52e4868bcdda5283492b2902e | 40e85f3c55266f43ee103dfa0852a63af306a8d4 | refs/heads/master | 2023-04-05T21:01:39.513718 | 2021-04-30T18:56:33 | 2021-04-30T18:56:33 | 281,875,751 | 33 | 9 | MIT | 2021-03-20T04:56:44 | 2020-07-23T06:58:41 | Python | UTF-8 | Python | false | false | 7,297 | py | # -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
import io
import sys
from gunicorn.http.errors import (NoMoreData, ChunkMissingTerminator,
InvalidChunkSize)
class ChunkedReader(object):
def __init__(... | [
"pran.sinha1.0@gmail.com"
] | pran.sinha1.0@gmail.com |
6db6eac332058fd6e1c5a656fd107b838cd08767 | 2e2494148f19a2f51383a7eb8853c746a60b6db9 | /MemoryBlock.py | d5ff3a06afac5bbd0652a8c34e08b6793ac6c744 | [] | no_license | GrimaldoMike/Compiladores | a79614d77ac9baed3837d76ccfa70f664b62b3ee | 2d01512b537f523d608d79e91ec163ee7e2ab529 | refs/heads/master | 2021-01-10T17:40:55.376425 | 2016-05-06T20:23:58 | 2016-05-06T20:23:58 | 53,536,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | #NO FUE IMPLEMENTADO PARA EL PROYECTO
class MemoryBlock:
def __init__(self, start_dir, ints_start_dir, floats_start_dir, chars_start_dir, strings_start_dir, limit):
'''All blocks have to be in ascending order and non overlapping on init. We leave that to the developer that uses this class'''
self.bool... | [
"grimaldo.mike@hotmail.com"
] | grimaldo.mike@hotmail.com |
3881ce11f6a9512b8d49fa4fb9fdd8eedf5e4ae6 | 954f9a154066c65374b475f925f2e5a138a14162 | /bigdatamining/text_based/parser.py | 548979216515cbe8f5a21eb422fa2f33c8bfa6f7 | [] | no_license | reloadbrain/recommEngine | 8263673945b5af1f73d26c22625a3090e071e952 | 9d3a4227916cb8583e1faef572824a54a067e7d1 | refs/heads/master | 2020-03-11T01:49:48.925712 | 2015-12-03T13:31:48 | 2015-12-03T13:31:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | import nltk
import sys
import gzip
import json
######################################################
#
# Parser that take a text and reduce it to a tokenized/stemmed
# string.
#
# To debug call python parser.py
#
######################################################
def extract_terms(text):
#divide text ... | [
"Martintoni@MacBook-Pro-di-Martintoni.local"
] | Martintoni@MacBook-Pro-di-Martintoni.local |
32f142de985f427b2e3ecba10fa765f0c368c943 | 9460f8e795d65ff8667a9c1b0da7a141d2a9c849 | /blog/views.py | ebff93e410cfe142a882386fce08dfa8d44d8c0c | [] | no_license | wadewow/myblog | 3a06614872637d502a5b24c802429cfdb7b8e0a8 | af498894b3379bc876a93142122a29d31119735c | refs/heads/master | 2021-01-01T16:54:40.704270 | 2017-07-21T13:40:51 | 2017-07-21T13:40:51 | 97,951,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | # coding:utf-8
from django.shortcuts import render
# from django.http import HttpResponse
import models
# Create your views here.
def home(request):
'''
下面的语句相当于 select * from article where id = 1
'''
articles = models.Article.objects.all()
return render(request, 'blog/blog_home.html', {'articles'... | [
"949768106@qq.com"
] | 949768106@qq.com |
866fcd777ed57198ecc587fa85d3a71e6974ea99 | 9d1491368c5e87760131ba27d252ee2d10620433 | /gammapy/spectrum/powerlaw.py | 39edaeca1329962422682f6d153c6cf79d653ff1 | [
"BSD-3-Clause"
] | permissive | cnachi/gammapy | f9295306a8e81d0b7f4d2111b3fa3679a78da3f7 | 3d3fc38c111d2f490d984082750f8003580fe06c | refs/heads/master | 2021-01-20T23:37:59.409914 | 2016-06-09T08:36:33 | 2016-06-09T08:36:33 | 60,764,807 | 0 | 0 | null | 2016-06-09T09:55:54 | 2016-06-09T09:55:54 | null | UTF-8 | Python | false | false | 6,540 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Power law spectrum helper functions.
Convert differential and integral fluxes with error propagation.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import numpy as np
__all__ = [
'power_law_evaluate',
'... | [
"Deil.Christoph@gmail.com"
] | Deil.Christoph@gmail.com |
6fe7640c64822df4cca889a856f9099d33231595 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02860/s554783475.py | ba781c1a512917a311a200fc59b2e495d4dab5c5 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | n = int(input())
s = input()
if (n%2 == 1):
print("No")
else:
c = 0
for i in range(int(n/2)):
if (s[i] != s[i + int(n/2)]):
c = 1
if (c == 0):
print("Yes")
else:
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
023f6b987e1a2d0d2183da7b4e4d3ffb07f79497 | ac0dc4a4c9960bbbdca2db0eaf7c839f552b0546 | /nomdivertit.py | e0d0b5f3828c2a5978d6db4a5ee2855b81e97965 | [] | no_license | HectorGarciaPY/primer1.py | b7d237b82d6e3ca2cd09ea771a6e152c34fb55ff | 802aac5f442b4e1956cdd4f63a7767b94c30a775 | refs/heads/master | 2023-05-14T16:39:53.271639 | 2021-06-02T10:17:09 | 2021-06-02T10:17:09 | 297,622,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | contador=0
while True:
print("Escribe un nombre divertido:")
x=input()
if x[0]==x[(len(x)-1)] and x[1] == x[(len(x)-2)]:
print("Es un nom divertit")
else:
print("Ets un avorrit, el nom no mola")
contador=contador+1
if contador==2:
print("No tens gens d'originalitat. No pots tenir gos, no pots sortir al c... | [
""
] | |
f2a7ee60c707d01abd0cb97f85cf647ce9ebf4e3 | a6df74bc7c139734bd9ce9f48d51e08fdc7d7efb | /article/migrations/0006_auto_20210311_1721.py | 116d4f2900f9f0f393ad9eb58894d557a6c11b5c | [] | no_license | Erlan1998/python_group_7_homework_68_Erlan_Kurbanaliev | 5a7f210e51f1998e5d52cdeb42538f2786af3f9f | fdc92be2c5187c78fecdc713f58e0e3e9fc62cb1 | refs/heads/master | 2023-05-03T17:01:59.066596 | 2021-05-26T13:28:41 | 2021-05-26T13:28:41 | 368,165,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # Generated by Django 3.1.6 on 2021-03-11 17:21
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('article', '0005_auto_20210311_1319'),
]
operations = [
migrations.RenameField(
model_name='article',
old_name='tags',
... | [
"kurbanalieverlan@gmail.com"
] | kurbanalieverlan@gmail.com |
3b1a469d9c82b2869b62462652c2a0c924e3bb31 | 470e0a9dc07edfe13ca68f2a1b6d60d0e395e095 | /3-2.py | b67172d7abbc097ec46a4caa894c73eba80c02c4 | [] | no_license | mj08021/ThisIsCodingTestforGetaJob | 77ce8edab2bd855db9b96597982f58251d0bd31e | ad98b368956937065c6c396b2806351a4eaf12a2 | refs/heads/main | 2023-04-28T10:51:02.012344 | 2021-05-16T05:51:58 | 2021-05-16T05:51:58 | 316,853,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # N, M, K를 공백으로 구분하여 입력받기
n, m, k = map(int, input().split())
# N개의 수를 공백으로 구분하여 입력받기
data = list(map(int, input().split()))
data.sort() # 입력받은 수 정렬
first = data[n - 1] # 가장 큰 수
second = data[n - 2] # 두 번째로 큰 수
# 가장 큰 수가 더해지는 횟수 계산
count = int(m / (k + 1)) * k
count += m % (k + 1)
result = 0
result += (count)... | [
"replituser@example.com"
] | replituser@example.com |
5e0f3c0a44b787914d3dce78b805204bdbc0bee6 | 45ff5b1fc0414693087050cc738010a39833a1c6 | /backend/app/models/user_model.py | 40b513eef4cb444ed6161121188fa11d2eab1dd3 | [] | no_license | hanson190505/full-stack-fastapi-vue | 8606971d86dddc341bd98fa8310c70e4aaf54560 | 37121a3ddc50bcabea69433ac1d8318f7c9d870e | refs/heads/main | 2023-03-17T20:22:13.373644 | 2021-03-01T16:23:49 | 2021-03-01T16:23:49 | 327,338,913 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | from app.db.base_class import Base
from sqlalchemy.orm import relationship
from sqlalchemy import Column, String, JSON, Integer, ForeignKey
class DepartmentModel(Base):
name = Column(String(64), index=True)
parent_department = Column(Integer, ForeignKey('departmentmodel.id'), nullable=True)
sub_department... | [
"413506012@qq.com"
] | 413506012@qq.com |
d8863ebbb7cfbc6f46a2659c40eff9f0092bdcf6 | eb8660d8a7c7557af0fd681a4cce305e1fc73ef9 | /grpc/stt_client.py | 3179370f360474849612723415585af7faaf5ca0 | [
"Apache-2.0"
] | permissive | morfeusys/vosk-server | d4639eaaae7b2e171bd99618513100100d94e773 | 955517bfcc8a7ef3f93ed5ace50052234aa3bf74 | refs/heads/master | 2021-01-14T19:18:55.803416 | 2020-02-24T12:57:55 | 2020-02-24T12:57:55 | 242,727,733 | 1 | 0 | Apache-2.0 | 2020-02-24T12:14:17 | 2020-02-24T12:14:16 | null | UTF-8 | Python | false | false | 1,633 | py | #!/usr/bin/python3
import argparse
import grpc
import stt_service_pb2
import stt_service_pb2_grpc
CHUNK_SIZE = 4000
def gen(audio_file_name):
specification = stt_service_pb2.RecognitionSpec(
partial_results=True,
audio_encoding='LINEAR16_PCM',
sample_rate_hertz=8000
)
streaming_c... | [
"nshmyrev@gmail.com"
] | nshmyrev@gmail.com |
c82dcbc9cc057d4d5d64d87082af0f1e59d0a74b | 1eddf34d87d1c8fa06a71dd934bfdc4de8fd6752 | /binary_files_generation/stdp_table_generator.py | c928969be2abe27e46d842b9ea2238768d31ef9e | [] | no_license | galluppf/spackage_conv | b6367f0cd93ef02891512733e83a70f984f9b2a3 | 902c6d3be1a4fb7692056814eafd4d94a75a59d6 | refs/heads/master | 2021-01-13T02:32:09.383591 | 2013-09-30T12:04:41 | 2013-09-30T12:04:41 | 12,670,028 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,185 | py | #!/usr/bin/python
"""
Utility to generate an STDP table for SpiNNaker
__author__="francesco"
__date__ ="$22-Mar-2011 18:01:14$"
"""
BINARY_DIRECTORY = '../binaries/'
import ConfigParser, sys
from numpy import arange, zeros
from math import exp, log
from struct import pack
from pacman import *
# packs an array wi... | [
"francesco@inspiron.local"
] | francesco@inspiron.local |
ab6ea8ec66229564a0cc2f4945f5415503dcfec8 | 1bb20fd77f973f23878c04b1784569ebe76ca645 | /model/distrib_state.py | 3138fe08510eea286b89c9cba72bb01bc01931c2 | [] | no_license | keyofdeath/Tp-conceprion-objet | af25a838231547678e24aea7bd59533946a554e7 | 45e03ef694684c364f38f2592c5d6675fde04bdd | refs/heads/master | 2020-04-23T10:26:19.035227 | 2019-02-17T09:32:46 | 2019-02-17T09:32:46 | 171,104,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,344 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import logging.handlers
import os
PYTHON_LOGGER = logging.getLogger(__name__)
if not os.path.exists("log"):
os.mkdir("log")
HDLR = logging.handlers.TimedRotatingFileHandler("log/DistribState.log",
... | [
"swan.blanc.pro@gmail.com"
] | swan.blanc.pro@gmail.com |
781f1bed425ed743952b93b27a6dea0e2e1a1bad | a78e2aa069c38bb197a023df179d0c7e3f4c8469 | /Button.py | 8dd397c672b7d2b5da43f5e93177746ba2b64e14 | [] | no_license | KouhouMohamed/pythonProject | 74f6fa1051e109538d77904cc8a54da2c0a8d8ac | 662e10887bc4272e28a56bc43e953cf1492da5e8 | refs/heads/master | 2023-01-06T04:18:20.244340 | 2020-11-07T09:47:09 | 2020-11-07T09:47:09 | 310,811,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from tkinter import *
from tkinter import ttk #tkk is a class where buttons
def main():
root = Tk() #create a root ( a window)
but1 = ttk.Button(root, text="GetText")
Ent1 = ttk.Entry(root, width=30)
Ent1.pack()
but1.pack() # Add button to root
def ButtClick():
print(Ent1.get()) #ge... | [
"m.kouhou-etu@enset-media.ac.ma"
] | m.kouhou-etu@enset-media.ac.ma |
df952844481362845f3f8fd712d4e353b5c9b969 | cbe4c2c2d163d2e5c611a77258ec1eb2e92b6479 | /api/migrations/0006_auto__add_field_configset_delta_name__del_unique_configset_hwtype_id_c.py | ca28f0e726f18e3e7cf855cddfb86694ed061bf4 | [] | no_license | radhakrishnaa/DCP | 20bcd6ce8143b5011310c42be858d139fb0cfa7a | c7970393811ef6686aafa4a49b96115b05ac86b6 | refs/heads/main | 2023-08-14T03:47:14.841160 | 2021-09-13T14:40:50 | 2021-09-13T14:40:50 | 406,011,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,862 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Removing unique constraint on 'ConfigSet', fields ['hwtype_id', 'category_id', 'region_id', 'carrier_id']
... | [
"rtalluri@motorola.com"
] | rtalluri@motorola.com |
1d6007a5ebcba5fca71c8d3808860c34ac1f9ede | 0f0f8b3b027f412930ca1890b0666538358a2807 | /dotop/addons/base/ir/ir_filters.py | 7e792068539ec5262791dfa23e1034b0a6500c7e | [] | no_license | konsoar/dotop_pos_v11 | 741bd5ca944dfd52eb886cab6f4b17b6d646e131 | 576c860917edd25661a72726d0729c769977f39a | refs/heads/master | 2021-09-06T13:25:34.783729 | 2018-02-07T02:11:12 | 2018-02-07T02:11:12 | 111,168,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,584 | py | # -*- coding: utf-8 -*-
# Part of dotop. See LICENSE file for full copyright and licensing details.
import ast
from dotop import api, fields, models, _
from dotop.exceptions import UserError
class IrFilters(models.Model):
_name = 'ir.filters'
_description = 'Filters'
_order = 'model_id, name, id desc'
... | [
"Administrator@20nuo003-PC"
] | Administrator@20nuo003-PC |
b2e9aef98ce8e65f58c90611607ae2f1481b8d51 | 3bbf917e4525d84f4c42752cda3b072d83fbd77d | /Labs/Persisting Data/MoviesItemOps06.py | 88a449484d1f16322df20543e2fe93b17deb4983 | [] | no_license | renan-suetsugu/WorkshopPythonOnAWS | 2fe891efe779802bdf497ce57c9a042886fbe3a2 | 0dee38d6cb24f5a33c5ac48409c6112fb57bab0a | refs/heads/main | 2023-08-03T07:45:07.785458 | 2021-09-08T19:21:37 | 2021-09-08T19:21:37 | 400,149,268 | 0 | 0 | null | 2021-09-08T19:17:40 | 2021-08-26T11:47:11 | Python | UTF-8 | Python | false | false | 993 | py | import boto3
from botocore.exceptions import ClientError
import json
import decimal
# Helper class to convert a DynamoDB item to JSON.
class DecimalEncoder(json.JSONEncoder):
def default(self, o):
if isinstance(o, decimal.Decimal):
if o % 1 > 0:
return float(o)
else:... | [
"noreply@github.com"
] | noreply@github.com |
1ff773919aec1f3c3dc117cc8f3db600db5c9e89 | ad5b4790cf04b65f93729c56961d2feb3c6194cb | /tools/cpplint/setup.py | 030ea14ef2092c83e99ebe0ecf65808f32aac0ba | [
"BSD-3-Clause",
"MIT"
] | permissive | BoogeeDoo/mt19937 | 5b795e1f7221ef5a331824e745dc89610ead1f7e | 56f0f3f80cee8ec76d08c84a413b9dfc8928b8f7 | refs/heads/master | 2023-07-19T21:41:39.414715 | 2022-06-01T14:45:23 | 2022-06-01T14:45:23 | 117,514,446 | 4 | 1 | MIT | 2022-11-20T13:19:26 | 2018-01-15T07:53:45 | C++ | UTF-8 | Python | false | false | 2,955 | py | #! /usr/bin/env python
from setuptools import setup, Command
from subprocess import check_call
from distutils.spawn import find_executable
import cpplint as cpplint
class Cmd(Command):
'''
Superclass for other commands to run via setup.py, declared in setup.cfg.
These commands will auto-install setup_requ... | [
"i@2333.moe"
] | i@2333.moe |
e4d288a30baec61e2e198b96b3163e0cf87504db | b62b673d9ade27f3e924f822d5b075e38ae28aa1 | /tag-generator.py | 0b3a2f6604bfbf6b8e487b1159ac54c2965410c0 | [
"MIT"
] | permissive | Bhupesh-V/Bhupesh-V.github.io | 7cad5f3dac12ecab9613780713a18fd9fb466ac2 | 8efd2afe3a5e76df45caf796222a0e498e569ed6 | refs/heads/master | 2023-05-29T01:27:50.233594 | 2023-04-30T13:14:16 | 2023-04-30T13:14:16 | 182,211,988 | 3 | 2 | MIT | 2019-08-27T21:10:42 | 2019-04-19T06:13:58 | CSS | UTF-8 | Python | false | false | 1,349 | py | #!/usr/bin/env python
'''
tag_generator.py
Copyright 2017 Long Qian
Contact: lqian8@jhu.edu
Source: https://github.com/qian256/qian256.github.io/blob/master/tag_generator.py
This script creates tags for your Jekyll blog hosted by Github page.
No plugins required.
'''
import glob
import os
post_dir = '_posts/'
tag_... | [
"varshneybhupesh@gmail.com"
] | varshneybhupesh@gmail.com |
6ae2804678615a3a1654175705d975799f861089 | 0b67530ca1ed53251c343b38332ea7f61c18c1c5 | /cmd123.py | 84d2c5a452f8cf1d8fddb2175c5cc96c0b61a40f | [] | no_license | NikhilChaudhari11/nik1 | c4b27d305956e1560d333f962e0ee8db7760fa1a | fc129980c6f484e0c6f797fa3d20c4c0e095ef74 | refs/heads/master | 2020-12-11T09:07:47.073064 | 2018-01-12T17:21:49 | 2018-01-12T17:21:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import re
import time
import os
def cmd1(line):
line = re.split("\n+", line)
def batch1(line):
list11 = []
for i in line:
#print(i)
if(type(i) != 'None' and len(i) != 0):
#print(i.split()[0][0])
e = i.split()[0][0]
... | [
"nikhilc11@gmail.com"
] | nikhilc11@gmail.com |
1a7193f2ab76638143eedaff1d1f49fa6a2291d0 | b0504df295f3738827184f1aed86b48c0303e7ca | /data/pdbbind/example_conjoint_pdb/ecfp-pdb-refined2019-pocket.py | 7e4cc1038cb051f05001a762b7f2bed7a465b735 | [] | no_license | jank3/AlogP-DL | 3c47098cff36551518eb23629ceca809b4e366ea | e4029cc76dce5b196c4eebe4a66a560b7fe14e0c | refs/heads/master | 2023-03-18T17:47:40.055718 | 2021-02-28T07:49:46 | 2021-02-28T07:49:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py |
import pandas as pd
import numpy as np
from rdkit import Chem
from rdkit.Chem import AllChem
from rdkit.Chem import MACCSkeys
ligand = Chem.MolFromPDBFile('11gs_ligand.pdb')
pocketr1 = Chem.MolFromPDBFile('11gs_pocket_clean.pdb')
featureL=AllChem.GetMorganFingerprintAsBitVect(ligand,2,nBits = 1024)
featureL1=AllChe... | [
"xlxsdu@163.com"
] | xlxsdu@163.com |
ddcaf6e28b533963df17ac8f9f13f4ce3c77631f | 1581f1d66d6835b2c271295e3251c2dde239fec8 | /payment_gateway/pg_utils.py | 6036c701e7036016bef878326b20e168433fab8a | [] | no_license | abinash-kumar/pythod | 527659e3bdd161f9abcaaa9182dfe58044b3ff66 | 1469dc0cd9d6d72b2fe2e69f99542e470bea807b | refs/heads/master | 2023-01-30T02:54:10.729606 | 2020-02-24T07:18:51 | 2020-02-24T07:18:51 | 242,670,715 | 0 | 0 | null | 2023-01-25T13:57:52 | 2020-02-24T07:16:02 | Python | UTF-8 | Python | false | false | 2,318 | py | from motor_product import prod_utils as mpu
from health_product import prod_utils as hpu
HEALTH_INSURER_SLUG = {
'the-oriental-insurance-company-ltd': 'oriental'
}
def resolve_utils(transaction):
if transaction.product_type == 'motor':
return mpu
elif transaction.product_type == 'health':
... | [
"abinashlv@AbinashSymboMac.local"
] | abinashlv@AbinashSymboMac.local |
8303bfe6a087932e19cea98165604264c4a08b9a | f1244dd9a531a40f61c57acf7a7f11f9b2c9cb1f | /3-2/CSE 3210 (Artificial Intelligence)/Lab 6/3. Triangle by star.py | 2f99de4ed6a484bc04e642627c9f8dfd1a0cd4cf | [] | no_license | SabirKhanAkash/RUET-Lab-Works | 7e8be66e2d435108bed57b0335feb54d76ba23ef | 3f094a5ca364d92ef42831e9f2dfb75c3baad506 | refs/heads/master | 2022-08-30T10:38:04.209187 | 2022-08-26T18:02:26 | 2022-08-26T18:02:26 | 240,317,974 | 2 | 3 | null | 2022-08-22T05:15:33 | 2020-02-13T17:17:38 | Jupyter Notebook | UTF-8 | Python | false | false | 226 | py | def main():
n = int(input("Enter the value of n: "))
k = 2*n - 2
for i in range(0, n):
for j in range(0, k):
print(end=" ")
k = k - 1
for j in range(0, i+1):
print("* ", end="")
print("\r")
main()
| [
"39434260+SabirKhanAkash@users.noreply.github.com"
] | 39434260+SabirKhanAkash@users.noreply.github.com |
66f7f0ea804830c3090d2f78537d4b535a84b454 | 0bcfdf3ba3a0083a5254388bd8bd1d24bdb70e2a | /app/models.py | c44d7700e6af934c5cdb1ecf709c97b00c275fe9 | [] | no_license | Quinnan-Gill/microblog | 1d216d6a6f49162080a13209e51d13c2c7169af7 | c0b34a529b3434b1f29c139a90082c1b41b511ff | refs/heads/master | 2022-12-10T15:29:17.055685 | 2019-09-12T03:01:58 | 2019-09-12T03:01:58 | 165,971,072 | 0 | 0 | null | 2022-12-08T01:33:25 | 2019-01-16T04:03:10 | Python | UTF-8 | Python | false | false | 10,901 | py | import json
import redis
import rq
import base64
import os
from time import time
from datetime import datetime, timedelta
from hashlib import md5
from time import time
from flask import current_app, url_for
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
impo... | [
"quinnan.gill@gmail.com"
] | quinnan.gill@gmail.com |
79505b2c69220a3b4844e0e3ff6288faa3bd033b | 006f73f4cc37dda59904a85d346186897f00834a | /sorteo/urls.py | 3807308aa78b5b230eff8c9c0cdb1306d361e6ce | [] | no_license | nathanbernal/sorteo_django | 4ecd2cd85f5d2dcf7d0b825c5d6327ff080c3380 | b8c4ea6b674b3cdff3cd5aed002222955c592a6e | refs/heads/main | 2023-04-26T02:39:50.711438 | 2021-05-19T03:01:33 | 2021-05-19T03:01:33 | 368,727,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | from django.urls import include, path
from rest_framework import routers
from api import views
router = routers.DefaultRouter()
router.register(r'users', views.UserViewSet)
router.register(r'groups', views.GroupViewSet)
router.register(r'usuario', views.UsuarioViewSet)
router.register(r'activacion', views.ActivacionVi... | [
"nathanbernal@gmail.com"
] | nathanbernal@gmail.com |
0e188befbac224d8224dc6e6649007c2d0ccc5b5 | 8b1dcac39acfcee0f573dc71d608671dea2062a2 | /tools/hikyuu/interactive/draw/__init__.py | fcdb11396c845625805c5eebb3c406cd9deb7ab1 | [
"MIT"
] | permissive | eightwind/hikyuu | 4c876170b1e298105e7eaf9675b310ad378dd9a4 | 4dab98a93e2a9847f77d615d6900067fbf90b73d | refs/heads/master | 2021-08-26T05:32:39.813080 | 2017-11-21T18:59:16 | 2017-11-21T18:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | __version__ = "Only for pip dist" | [
"fasiondog@163.com"
] | fasiondog@163.com |
af415894f66167bbebd63ee550eeff6774fea102 | c9837ea5229fce8a13dc28b8efe583e6b1f80f06 | /tests/acceptance/test_async.py | 13e29325278b60432ce81e30cf21f808f32fc48d | [
"MIT"
] | permissive | appetito/procrastinate | 51de7e4e7e216514c4c417e0d496fdf968332092 | 5e47d99ede5fafc5717765ebde3e2782b131672a | refs/heads/master | 2022-09-18T19:49:24.958649 | 2020-06-03T08:03:19 | 2020-06-03T08:03:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | import pytest
import procrastinate
pytestmark = pytest.mark.asyncio
@pytest.fixture
def pg_app(pg_connector):
return procrastinate.App(connector=pg_connector)
async def test_defer(pg_app):
sum_results = []
product_results = []
@pg_app.task(queue="default", name="sum_task")
def sum_task(a, b)... | [
"joachim.jablon@people-doc.com"
] | joachim.jablon@people-doc.com |
1572ed7e2b86b6dc9bc339d9cf970e352a1bdfa1 | f5a2059897f30a77244c0e8426f54ad5bf0db0e3 | /resources/store.py | 82c62a12820e1ed584f44fccfd130f9033054a21 | [] | no_license | colemanGH319/stores-rest-api | c25a01199af1cfcfb3a899f7d4752c382c8870a8 | 44004f0f64a6bcae4fdc80245cb524b4d7958024 | refs/heads/master | 2020-04-01T15:04:55.172168 | 2018-10-17T19:14:47 | 2018-10-17T19:14:47 | 153,320,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | from flask_restful import Resource
from models.store import StoreModel
class Store(Resource):
def get(self, name):
store = StoreModel.find_by_name(name)
if store:
return store.json()
return {'message': 'Store not found.'}, 404
def post(self, name):
if StoreModel.fi... | [
"coleman.matt319@gmail.com"
] | coleman.matt319@gmail.com |
c2a7eee1f1f4756acddc4b286a978d0c08f441ef | 968970ca6a39c6cdc02cf8a79280630afa5ebc4f | /src/main/python/countTravelTime.py | d6476dd199a1c139cd1a6e86d4e433554f0a391c | [] | no_license | jdcc2/mbdtraffic | 91a5bc4347062971057eb9ec27bc40601240117e | ad2167cf5af63a0089f69d70f35340f68040b6ab | refs/heads/master | 2021-01-20T01:04:19.137668 | 2017-01-25T13:37:06 | 2017-01-25T13:37:06 | 79,126,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | #!/usr/bin/env python
import sys
import os
import json
import pyspark
# add actual job
def doJob(rdd):
print('traffic job')
#Map column names to column indices
columns = ['measurementSiteReference','measurementSiteVersion','index','periodStart','periodEnd','numberOfIncompleteInputs','numberOfInputValuesused','mi... | [
"jd@leetbook"
] | jd@leetbook |
a96020623f1f41176402c5c4583499aab4707dc0 | 7620448f67684c814121a6b772a824b792e43b5f | /utilities/annotate_from_genomic_features.py | f8ed6df46a00f868b17132d811bd70ae0311144d | [
"Apache-2.0"
] | permissive | Sisov/AlignQC | 2c2dd952d0d864a8d84daa86260b8ac5e8d1d9eb | f0677876408371ced09ba15b586489b9139828f4 | refs/heads/master | 2021-01-11T07:52:07.209342 | 2016-09-02T19:19:11 | 2016-09-02T19:19:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,263 | py | #!/usr/bin/python
import sys, argparse, gzip, re, os, inspect
#bring in the folder to the path for our utilities
pythonfolder_loc = "../pylib"
cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile(inspect.currentframe() ))[0],pythonfolder_loc)))
if cmd_subfolder not in sys.path:
... | [
"jason.weirather@gmail.com"
] | jason.weirather@gmail.com |
770f1a9f35b1bc5cf04b2acf5eb206b60f5e0aa8 | f2851c0d6125fc93f6dcd9c731180484bcf3299e | /Simple_baidu_baike/baike_spider/test.py | 62c20de996f7529ee4beed2a7108f60b418a465b | [] | no_license | FrankYang3110/Simple_baidu_baike_spider | da0b7a3478486d3fd36d46f04c01536d1751ecb8 | a54161f20f002615d0454da4f6c63359b083fdee | refs/heads/master | 2020-05-03T02:09:59.214644 | 2019-04-12T03:05:26 | 2019-04-12T03:05:26 | 178,360,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# a = set()
# print(a is None)
# def get():
# return
# a = get()
# print(a is None)
from fake_useragent import UserAgent
import re
import requests
from urllib.parse import urljoin
from lxml import etree
headers = {'User-Agent': UserAgent().random}
url = 'https://baike... | [
"43460484+FrankYang3110@users.noreply.github.com"
] | 43460484+FrankYang3110@users.noreply.github.com |
17fa82a9093701e46b8648bd51b5684c11c5f8c9 | 5d6365f4cc81272f8c481ee31f1111e8eca6dca5 | /alipay/aop/api/domain/BizActionLogDTO.py | bdaee8dcf4791f2ea8f5f6ac64c0cb3184f154de | [
"Apache-2.0"
] | permissive | barrybbb/alipay-sdk-python-all | 9e99b56138e6ca9c0b236707c79899d396ac6f88 | 1b63620431d982d30d39ee0adc4b92463cbcee3c | refs/heads/master | 2023-08-22T20:16:17.242701 | 2021-10-11T08:22:44 | 2021-10-11T08:22:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,378 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class BizActionLogDTO(object):
def __init__(self):
self._amount = None
self._biz_budget_apply_code = None
self._biz_budget_id = None
self._biz_name = None
self._... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
e5131ff29aa41698036707a61a86466d77e7d3b9 | 6c50bced6fb4474e4eb2e4f3c27a5ce38b0e6048 | /manage.py | e1fbda688388d8db4449c6abeb1423356d40d79b | [] | no_license | NMShihab/WebChatApp | 0d5651fe38baccfee186e59e32c2c79de2bb39a4 | 2dda4e750c370e74bbfbc42dce02432268194d46 | refs/heads/master | 2023-02-01T22:57:53.738222 | 2020-12-15T17:09:14 | 2020-12-15T17:09:14 | 319,082,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ChatApi.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"nmshihabislam@gmail.com"
] | nmshihabislam@gmail.com |
f0558330618b47efd52ea7dae4624354fe0c32ac | 89b45e528f3d495f1dd6f5bcdd1a38ff96870e25 | /pyneng/exercises/09_functions/task_9_2.py | e2a25f74f4ea48dd6a5f51879221d1048f8a5c94 | [] | no_license | imatyukin/python | 2ec6e712d4d988335fc815c7f8da049968cc1161 | 58e72e43c835fa96fb2e8e800fe1a370c7328a39 | refs/heads/master | 2023-07-21T13:00:31.433336 | 2022-08-24T13:34:32 | 2022-08-24T13:34:32 | 98,356,174 | 2 | 0 | null | 2023-07-16T02:31:48 | 2017-07-25T22:45:29 | Python | UTF-8 | Python | false | false | 2,935 | py | # -*- coding: utf-8 -*-
"""
Задание 9.2
Создать функцию generate_trunk_config, которая генерирует
конфигурацию для trunk-портов.
У функции должны быть такие параметры:
- intf_vlan_mapping: ожидает как аргумент словарь с соответствием интерфейс-VLANы
такого вида:
{'FastEthernet0/1': [10, 20],
'FastEthernet... | [
"i.matyukin@gmail.com"
] | i.matyukin@gmail.com |
265049dd5c7273612076608f805ee6f00e3f2430 | 82e0fb055637e3181c7b1c25b2c199213c130f1b | /Python/Funciones de Alto orden/Ejemplo4.py | eae624cd1e8e739a75e60ef4e2f55f361ea537d6 | [] | no_license | DangerousCode/DAM-2-Definitivo | ffd7d99a385e9d9a821887676ecd81d3e2e1ddfc | 6fcaad2342a68a6005e062bdd8603b900dcdf147 | refs/heads/master | 2021-01-10T17:58:44.570045 | 2015-12-16T15:19:25 | 2015-12-16T15:19:25 | 47,215,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | __author__ = 'AlumnoT'
'''Funcion dada una lista de numeros y un numero cota superior,
queremos devolver aquellos elementos menores a dicha
cota'''
lista=list(range(-5,5))
'''1)Modificar la sintaxis anterior para que solo nos muestre los numeros negativos'''
print filter(lambda x:x<0,lista)
'''2)Crear funcion a la que ... | [
"asantosq1@gmail.com"
] | asantosq1@gmail.com |
1989906ee223d14319cc93f1ef9c3f3bb7ce946e | addb8ac420db7328afd209639204b526edcf9a15 | /W-Maze/Tabular-Q/env.py | 4d3c5a70dc6ee69c0e79b15372fd8f60f18fcf08 | [] | no_license | logic2code/DelayResolvedRL | ee704c8d4e9b1df2867dbe0ac77ab112ee4c0d89 | a291875417a0e52fe09294d7f78ef9b3c9045b9c | refs/heads/main | 2023-07-14T04:39:42.115756 | 2021-08-13T06:57:31 | 2021-08-13T06:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,162 | py | import numpy as np
from collections import deque
class Environment:
"""Initialize Environment"""
def __init__(self, seed, delay):
np.random.seed(seed)
self.breadth = 7
self.length = 11
self.state_space = np.empty([self.breadth, self.length], dtype='<U1')
'''E... | [
"noreply@github.com"
] | noreply@github.com |
1109d37bf0366a1327a89aea8da48513a50ab171 | 62ccd6d2d3e10a4587c8e35a98879840656afe6a | /Bike.py | 30cd82c283c91fe6fe4cddc05843116def60d616 | [] | no_license | Swills2/python_OOp | b37bd5ee08f6f7e710219f1e6cb55f354f65bf5e | 8642fb765f784412f9b9d085f19d5810eef7e941 | refs/heads/master | 2020-04-07T10:56:39.132877 | 2018-11-20T00:22:56 | 2018-11-20T00:22:56 | 158,306,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | class Bike:
def __init__(self, price, max_speed, miles = 0):
self.price = price
self.max_speed = []
self.miles = miles
def displayInfo(self, price, max_speed, miles):
print(price, max_speed, miles)
return self
def ride(self, miles):
print("Riding")
miles += 10
return se... | [
"swills0055@gmail.com"
] | swills0055@gmail.com |
8224ec2ea7bc83f7d68a0df94cbee6f1ccdee3ae | 6fa6288bd21694bb144798d63b77a8e2924603e5 | /DataStructures/arrays/codility/cheap_letter_deletion.py | 3a1e1b0a156b1406efd8ebc982701ecdfd622bd2 | [] | no_license | akshatakulkarni98/ProblemSolving | 649ecd47cec0a29ccff60edb60f3456bf982c4a1 | 6765dbbde41cfc5ee799193bbbdfb1565eb6a5f5 | refs/heads/master | 2023-01-03T19:03:49.249794 | 2020-10-27T06:28:02 | 2020-10-27T06:28:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | """
You are given a string S. Deletion of the K-th letter of S costs C[K]. After deleting a letter, the costs of deleting other letters do not change. For example, for S =
"ab" and C = [1, 3], after deleting 'a', deletion of 'b' will still cost 3.
You want to delete some letters from S to obtain a string without two id... | [
"noreply@github.com"
] | noreply@github.com |
f34674523abde90b1c1b6d237f4f30d76afc7788 | ff9c5a10eea701b6b6be1ec7076b5dfab91b6a38 | /ex08.py | 6a748ab59f8096a77c05fccec2e922c387077bf3 | [] | no_license | CFEsau/learnpython | 21707fc15bcb09098e83b116bd77203158a65353 | 0616bf36c1a0e3b81cb6d0f5edc70c142904ca65 | refs/heads/master | 2021-01-18T15:51:13.948611 | 2017-08-15T15:09:24 | 2017-08-15T15:09:24 | 100,386,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | #ex08: Printing, printing
formatter = "%r %r %r %r"
print formatter % (1, 2, 3, 4)
print formatter % ("one", "two", "three", "four")
print formatter % (True, False, False, True)
print formatter % (formatter, formatter, formatter, formatter)
print formatter % (
"I had this thing.",
"That you could type up right... | [
"c.esau@shef.ac.uk"
] | c.esau@shef.ac.uk |
ac9c7f15ea1547bd32a8c41e2f64470813bf0d52 | 70054615f56be28373b00c9df96544ec822be683 | /res/scripts/client/gui/scaleform/daapi/view/meta/questswindowmeta.py | 66a92293420cda94a63d878facfa96ffceb268d2 | [] | no_license | wanyancan/WOTDecompiled | c646ad700f5ec3fb81fb4e87862639ce0bdf0000 | 9ffb09007a61d723cdb28549e15db39c34c0ea1e | refs/heads/master | 2020-04-17T23:13:15.649069 | 2013-11-15T16:37:10 | 2013-11-15T16:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from gui.Scaleform.framework.entities.DAAPIModule import DAAPIModule
class QuestsWindowMeta(DAAPIModule):
pass
| [
"james.sweet88@googlemail.com"
] | james.sweet88@googlemail.com |
f602f55691918872b41f72f9e122627a0f538a6e | 931841bd1de963e0dcfcf69114cec8c8c3f17323 | /search/avltree.py | 943eeeade92e526f2ae671c999a55416ecfaff7b | [] | no_license | sancheng/py-algos | 6f2e1e700c60224963f77b01c706a399b9897c1d | 1bb73d32a1cf4f95358df5d6e0aae2828098fd07 | refs/heads/master | 2021-08-21T21:07:33.199863 | 2017-11-29T03:10:26 | 2017-11-29T03:10:26 | 111,628,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,048 | py | class Node(object):
def __init__(self,val,parent,isleft):
self.val = val
self.parent = parent
self.leftchild,self.rightchild=None,None
if parent is not None:
if isleft:
parent.setleftChild(self)
else:
parent.setrightChild(self)
... | [
"sancheng@cisco.com"
] | sancheng@cisco.com |
0a7ff4211eaca98470e2742585ac72c1dbe492de | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02415/s303347384.py | f7612caa107b4023d41f174a9952151845dbb81a | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | word = input()
print(str.swapcase(word))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
46fd7987e76562876a9df13d571ec26da2089cf7 | bcc90e2a3ef609caf24fa427061750cb7ed807ba | /Decorator/ConcreteComponent.py | 5b6989308ff4c75e35df9b51e663518ce6ef0f15 | [] | no_license | vudt93/DesignPattern | 9140eb16544b1a02da1f889f5713b499166e9046 | 3f21df6be2b46fd4f5648b6d30b450699faabcbf | refs/heads/master | 2021-03-24T01:19:56.332113 | 2020-03-17T09:36:26 | 2020-03-17T09:36:26 | 247,502,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | from Decorator.Component import Component
class ConcreteComponent(Component):
def do_operation(self):
print("Operation") | [
"vu.do@cj.net"
] | vu.do@cj.net |
43730854b668cdc8e523b81d756b9615a915f5d5 | 2ff113af86a2cde69ccf114a98e3a2092f751993 | /Aula18/B - Replacing Digits/b.py | 12b37f10be0ef9aafdf7b37695fe1680e768444c | [] | no_license | Math-Gomes/ProgramacaoCompetitiva | 7874e6a3cbcfadb7d4c2366f178d69b02909daf8 | 4ce79f5cb564ba7e07fdcee0995aa476b883c7a3 | refs/heads/master | 2023-08-13T10:26:43.481381 | 2021-09-22T12:46:07 | 2021-09-22T12:46:07 | 380,554,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | if __name__ == '__main__':
a = list(map(int, list(input())))
s = list(map(int, list(input())))
while True:
max_s = max(s)
min_a = min(a)
if max_s < min_a:
break
s.remove(max_s)
a[a.index(min_a)] = max_s
print(*a, sep = '')
| [
"mathjvmf@gmail.com"
] | mathjvmf@gmail.com |
88881e340fd70a3969fd1822c2d1552ff989a8c7 | c56fdac92304316ebe52796d619e5e72c564475b | /hw2/perceptron.py | f55a6de69ef7e861414fa307acc847777cedc155 | [] | no_license | RamisesM/Learning-From-Data | 0cf043b0474992441d746c2aff8ef6c7134bc7e6 | dde2677773fea2bff48899371a58cebda75449ae | refs/heads/master | 2020-03-07T11:30:45.894709 | 2018-05-14T20:14:20 | 2018-05-14T20:14:20 | 127,457,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | import random
import numpy
class Point:
def __init__(self):
self.c = 1
self.x = random.uniform(-1,1)
self.y = random.uniform(-1,1)
self.vec = (self.c, self.x, self.y)
class Function:
def __init__(self):
self.f = [0, 0, 0]
def randomize(self):
points = [Point... | [
"ramises.martins@gmail.com"
] | ramises.martins@gmail.com |
2a132a7f304bf03097919aab6ebca25961224c39 | 4558f88bc7b48a692599aac4d2316201e6c95a02 | /scud/plt/er_log/phil.py | 0a245e28e09a42bb507e5403f76287bb172726c9 | [] | no_license | kroon-lab/scud | bb3f7dc05c1000c0816d1b458d1c74bd74413053 | b55423edb4b0e33110cf96fbd3828f86166924c9 | refs/heads/master | 2020-03-18T06:49:26.989684 | 2019-05-01T14:56:14 | 2019-05-01T14:56:14 | 134,412,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | import libtbx.phil
from scud.general.phil_methods import init_command_line_phil
def phil_parse(args=None,log=None):
'''
Contains default parameters, will process commandline params and
changes them
'''
# Default parameters
master_phil = libtbx.phil.parse("""
er_log
{
input
... | [
"l.m.j.kroon-batenburg@uu.nl"
] | l.m.j.kroon-batenburg@uu.nl |
670e94a3bedc2fa474c3d44db8f5ae1bab732516 | f3515dd05089b6491ccb4c28ac6654b7f86e77b0 | /hw_4/final_submittal/cross_validation_script.py | 11b87a12e232f801086c9ba118854eadc8e211eb | [] | no_license | jb08/AI | f17409832c0af8710957f4b4d6c80d90aa06f198 | 8f05d6989174b3c6b76547c5370042038a54e78d | refs/heads/master | 2021-01-01T04:12:10.496120 | 2016-06-09T16:40:58 | 2016-06-09T16:40:58 | 56,189,015 | 0 | 0 | null | 2016-06-08T17:06:55 | 2016-04-13T22:01:04 | Python | UTF-8 | Python | false | false | 5,263 | py | # Name: Megan Sinclair, David Williams, Jason Brown
# Date: 5/23/16
# All group members were present and contributing during all work on this project
#
# Note that there is a retrain function in this script. This function mirrors the training
# that is present in our bayes.py and bayesbest.py files. Mirroring it here ... | [
"jasonkingsley.brown@gmail.com"
] | jasonkingsley.brown@gmail.com |
b69ca6b786925c7020c263729f5d7bd1e74e3d05 | 35cf6fc79b8d6c335add8e55e0f4dca6f2816d1d | /Python_Study/第七模块学习/Day04/EdmureBlog/web/forms/base.py | ab198421829eb1b2c3ebc96a9c1743d571cc884e | [] | no_license | KongChan1988/51CTO-Treasure | 08b4ca412ad8a09d67c1ea79c7149f8573309ca4 | edb2e4bd11d39ac24cd240f3e815a88361867621 | refs/heads/master | 2021-07-04T15:57:56.164446 | 2019-07-24T15:28:36 | 2019-07-24T15:28:36 | 97,453,749 | 5 | 8 | null | 2019-10-30T22:05:12 | 2017-07-17T08:34:59 | Python | UTF-8 | Python | false | false | 208 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
class BaseForm(object):
def __init__(self, request, *args, **kwargs):
self.request = request
super(BaseForm, self).__init__(*args, **kwargs)
| [
"wangwei_198811@163.com"
] | wangwei_198811@163.com |
451da3310b48ed6fd08983ee33fda5f2b27b92fd | 24171ea136e2ec211792d1d7644cd5c945a6df35 | /test/41.py | a05e622c42a995a2e87dd72731ed1c176dae0dc4 | [] | no_license | reidevries/codecoach | 1329ab367dc8aa3f3dd76af0b7cbc975a7d67ccd | a6d8e3cf28a6d264b0aa6aa8a44cc315803954b2 | refs/heads/master | 2021-05-23T10:02:53.403344 | 2020-04-05T12:57:24 | 2020-04-05T12:57:24 | 253,233,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | #! /usr/bin/env python2.6
import re
import sys
import os
argv = len(sys.argv)
if argv != 2:
print "usage: ipfun.py <filename>"
sys.exit(1)
argo = sys.argv[1]
if (os.access(argo, os.R_OK) == 0):
print argo, "is not readable"
sys.exit(2)
InFile = open(argo, "r")
ipcheck = r"((([0-1]?[0-9]?[0-9])|(2[0-4][0-9])|(... | [
"raeaw@localhost.localdomain"
] | raeaw@localhost.localdomain |
fa423cdd35927ebb9664b82df50cab4322eebe1f | 9f75a1f7e1aa7c9e3bff6aeb261808d596b75fa5 | /agent.py | 8f2c88d0157d6805b784d73414cf0700d6839e53 | [] | no_license | butterkaffee/drlnd_project1 | 2609b97d4122683b25d2c22f452077d2ccde1f71 | 2843211006947f0598e5ba7c23f10e90e399d834 | refs/heads/master | 2020-05-31T06:42:36.942280 | 2019-07-08T17:25:56 | 2019-07-08T17:25:56 | 190,148,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,605 | py | import numpy as np
import random
from collections import namedtuple, deque
from model import QNetwork, DuelingDQN
import torch
import torch.nn.functional as F
import torch.optim as optim
BUFFER_SIZE = int(1e5) # replay buffer size
BATCH_SIZE = 256 # minibatch size
GAMMA = 0.99 # discou... | [
"noreply@github.com"
] | noreply@github.com |
014373df5e1938c8b39fd5fcaacbbd0655dfd64d | 4a53ae5afb11850196ac08763afc637a81ce1dbd | /turbo-entabulator/turbo_entabulator/utilities.py | 2e1a8a52db3511f74cc1a59121cdb99fb9f55ff6 | [] | no_license | xinyli-cumulus/TE_update | 5983309ef66f5316f56298fc3d7b1ef4fb0719d7 | 4e5b9299d3159bbcdd715c33cc08820ad2c8e3fb | refs/heads/master | 2021-05-26T10:49:14.229467 | 2020-04-08T14:10:19 | 2020-04-08T14:10:19 | 254,102,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,936 | py | #!/usr/bin/env python3
"""
Turbo-Entabulator utilities.
This file contains utilities used by the Turbo-Entabulator suite that don't
fall under the 'detections' or 'discovery' categories.
"""
# Copyright(c) 2018, 2019, 2020 Cumulus Networks, Inc
# John Fraizer <jfraizer@cumulusnetworks.com>
import json
import os
impo... | [
"noreply@github.com"
] | noreply@github.com |
b22afa174867cbcdb44387342cabbb4d1d5cce42 | 77a7f05272e82024cffa7ec3bf79b5cb5f90ee3e | /job_search_webapp_project/jobsearch/scraping/dice.py | e308bc35ab1f12a91bf963fe88d208574d75ae8f | [] | no_license | fergusonsa/JobSearch_Django | 5c3ff42cf59cd9380e5b10c3a2a64582382bbb55 | 35d626555b5dad8309358e3fde3c093a7df12702 | refs/heads/master | 2021-09-26T04:42:42.989940 | 2020-09-27T15:07:00 | 2020-09-27T15:07:00 | 85,593,500 | 0 | 0 | null | 2021-09-22T17:41:15 | 2017-03-20T15:26:32 | HTML | UTF-8 | Python | false | false | 20,929 | py | # coding: utf-8
import logging
import datetime
import re
import requests
from bs4 import BeautifulSoup
import geopy.geocoders
import geopy.distance
import geopy.exc
import jobsearch.scraping
import jobsearch.models as models
NUMBER_POSTINGS_PER_REQUEST = 25
MAX_POSTINGS_RETRIEVED = 1000
logger = logging.getLogger(... | [
"fergusonsa@yahoo.com"
] | fergusonsa@yahoo.com |
b3698f59655330a8fa5ab0c4d49985791d562870 | f284021b02f6331888b6d41cfc34d555367b3797 | /bin/easy_install | b9baf79171c742180e9e609b8b8fc87a1bd06354 | [] | no_license | Hubert51/Web_Django | aa8aa771de3085d7bff2fd2b64e8de131b9af537 | f48ad6260291311262a95f71ceda354990518dfc | refs/heads/master | 2020-01-23T21:38:44.507734 | 2016-11-29T02:17:52 | 2016-11-29T02:17:52 | 74,692,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/Users/gengruijie/Django1.10/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())
| [
"gengr@rpi.edu"
] | gengr@rpi.edu | |
0106c4e95e4cb7a8b9b3ea1a99c3e6cf72e413fa | ee461003c4836dcc2e7c493e7b705841825cba52 | /titanic/variable_builder.py | 5e497b440f4638a3102f6f594e2c37429bcd89c0 | [] | no_license | kenta-s/kaggle | 5e05b10b2455f8e5744dc4aab99def3b15681063 | b68ddfede3480214a163d4d8a778e4eb74d4f6f9 | refs/heads/master | 2021-06-24T03:37:41.385822 | 2018-10-27T00:36:04 | 2018-10-27T00:36:04 | 96,259,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,148 | py | import numpy as np
import pandas as pd
from IPython import embed
class VariableBuilder():
def __init__(self, file):
self.df = pd.read_csv(file)
def __call__(self):
valid_data = self.build_variable_x()
valid_data = np.array(valid_data).astype(np.float32).T
return valid_data
... | [
"knt01222@gmail.com"
] | knt01222@gmail.com |
e0f9841169ca668d1ced55ab7a6441e600ad51af | 064992da81d70b4df85fc192cddf93f2ded111a0 | /analytic_scripts/code_reimplementation/Android/android_reimpl.py | cdba8d7572a2f6a951af93712bab41bee11b75b4 | [] | no_license | maxxbw54/reuse_reimpl | 07fd42ee1708337d009a88e505b2a157e4aeaef9 | c88bc6671f791485dfd47a35c1c5d16415b5beac | refs/heads/master | 2021-09-14T11:28:28.835579 | 2018-05-12T13:41:27 | 2018-05-12T13:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,450 | py | import sys, subprocess, os, re
from collections import OrderedDict
import pandas as pd
def shellCommand(command_str):
cmd = subprocess.Popen(command_str, shell=True, stdout=subprocess.PIPE)
cmd_out, cmd_err = cmd.communicate()
return cmd_out
def removeBracketsInQuotes(line):
line = re.sub(r'\\\"', '',... | [
"le.an@polymtl.ca"
] | le.an@polymtl.ca |
883ff69f8f33ab9939a29caa2769bdfcffbdd30c | d6ce7d815af09eea09d8bc2c6f3aaa1b341270cc | /ros_ws/devel/lib/python3/dist-packages/cozmo_rc/srv/__init__.py | 56810697b51cdf3f2704bf4724155ca111994cdd | [] | no_license | danbrick92/cozmoRos | 7e47569e6d9cdd56c84b6cffb5b1fe46453f4b48 | f0345c70f58525d3cbd4227e109b468fa4a07e15 | refs/heads/main | 2023-09-03T21:30:52.839599 | 2021-11-18T01:33:15 | 2021-11-18T01:33:15 | 423,007,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | from ._light_req import *
from ._speaker_req import *
| [
"danbrickner@hotmail.com"
] | danbrickner@hotmail.com |
3312b51d5e5f1f3726320f7259525ad1936b0f31 | b7320c9d3b36973812314cb6cde6c056f3311972 | /general_test.py | 530964ae76bd5bac390bc7c9f6451797558492a2 | [] | no_license | dhueholt/Misc-bits | 27b75cf85026d0253e53f99197c11bbfc44baba6 | dc7219ea79234e661c5d8f9b113a26edacd94ec5 | refs/heads/master | 2022-02-14T23:16:16.831681 | 2019-07-22T20:18:40 | 2019-07-22T20:18:40 | 198,296,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | """ Test for VIIRS EDR product
Author(s): Daniel Hueholt @dhueholt GitHub
"""
from glob import glob
import matplotlib.pyplot as plt
from satpy import Scene
import cartopy.crs as ccrs
import pdb
FILENAMES = glob('/Users/dhueholt/Documents/Data/CloudMask/20190306/JRR*.nc')
SCN = Scene(reader='viirs_edr_gran', filen... | [
"dmhuehol@ncsu.edu"
] | dmhuehol@ncsu.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.