blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fba5b1edc643035c2449182821d32651f04b2fec | ee9aad70746059af6700ec4412a33b9b7664439f | /OrganizedExample/Data/cleanQueryTweetsFormatted.py | 31b0b0e7705109611eb4dd6a6197dfe43de17e10 | [] | no_license | GeethikaRao/twitter-data-analytics | eff78315e028812fa166b54f041582059aaba5ae | 1566f7ea95e4834b68ab9fee2e894165633f612d | refs/heads/master | 2021-06-21T13:45:07.880606 | 2017-08-14T21:23:19 | 2017-08-14T21:23:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | '''
Nathaniel Gottschalt, Reena Sharma, Garikapati Geethika
Data Mining 431 Project
'''
#Taking raw tweets and clean
import json
import HTMLParser
import string
data = []
with open('queryTweetsRaw.txt') as f:
for line in f:
data.append(json.loads(line))
superlist = []
result = []
#stop words
stopwords = ["rt"] ... | [
"geethika.garikapati@connexussecure.com"
] | geethika.garikapati@connexussecure.com |
e72f967c4e0f7d6ff29d147aa687c0c58ba0e8dc | 0d1869abcb1730e3ba0f68078dfbfca37a74d6d6 | /contact_form_mail/settings.py | 3a327f9e0803f53f76e89d0dc22ff1fb8535215a | [] | no_license | michealnaita/contact_form_mail | 5193214d8c011ebf116def79bc65fa6a707aad78 | 3f760ae4969407ce54bf6ea7b3a4cd0597728166 | refs/heads/main | 2023-07-08T04:50:40.458703 | 2021-08-16T09:57:05 | 2021-08-16T09:57:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,272 | py | """
Django settings for contact_form_mail project.
Generated by 'django-admin startproject' using Django 3.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
fr... | [
"arthur.nangai@gmail.com"
] | arthur.nangai@gmail.com |
ae2ae2af70bccd86615425e49b28a242180a53e5 | 95fd5e70b04c76d0acafcab36e2363db5d26ac70 | /when.py | d0bed43cb75aded57e276698c521622b2ca508b2 | [] | no_license | xiocode/xio | 17a87c13b6f4ffc08920696720062bac9d792b52 | a7ffb918fb31224133004f421eb839f43622c4d5 | refs/heads/master | 2021-01-21T22:26:15.497643 | 2013-05-29T17:59:54 | 2013-05-29T17:59:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,357 | py | # -*- coding: utf-8 -*-
""" Friendly Dates and Times """
# Disable pylint's invalid name warning. 'tz' is used in a few places and it
# should be the only thing causing pylint to include the warning.
# pylint: disable-msg=C0103
import calendar
import datetime
import locale
import os
import pytz
import random
import ... | [
"xiocode@gmail.com"
] | xiocode@gmail.com |
bdf9507226d0438b749c24b49dab098c9882c567 | f595954c8b22e2a99d18f76035f7c51fbcfd93bc | /server/engine_grs/Backup/mdbconnector.py | f103d0024cf658ae4dd645e03480b67a4dd556ca | [
"MIT"
] | permissive | Teddywonseokyoo/-GRS | eeea883bed7bf69e27c874f8c79a6ab2b9cbbf16 | 23fd7f0542d6cbfc1e39b707788a8f461c7d3249 | refs/heads/master | 2021-01-20T15:51:32.804747 | 2017-06-05T05:07:40 | 2017-06-05T05:07:40 | 90,797,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | from pymongo import MongoClient
import pymongo
import urllib
password = urllib.quote_plus('gas1meter2iot')
client = MongoClient('mongodb://grsdatamanager:' + password + '@107.170.216.212')
print client
db = client.grsdata
cursor = db.grstasks.find({"superviser" : "" }).sort([("inputdate", pymongo.ASCENDING... | [
"noreply@github.com"
] | noreply@github.com |
abde4fa8241af25cdddd5bc2549e057ce4bb89ce | 07b08da4cc5aca9dc025b3b3d35237c273ce406e | /cognitiveSQL/Thesaurus.py | ca297a4b4e28bf89ad29064389d5949b9082a0af | [
"Apache-2.0",
"GPL-3.0-only"
] | permissive | dhmodi/medical-affair-assistant | 971d8f6c3b6eb718b4cd8b15bacfe6d5a0bc5411 | e8fe0e3053f8a7fae03b699a7694ba4ca9e8c75d | refs/heads/master | 2022-06-21T06:33:30.041259 | 2020-05-02T11:21:11 | 2020-05-02T11:21:11 | 119,974,948 | 0 | 0 | Apache-2.0 | 2020-05-02T11:21:40 | 2018-02-02T11:43:06 | Python | UTF-8 | Python | false | false | 1,408 | py | # -*- coding: utf-8 -*
import sys
import importlib
#importlib.reload(sys)
#sys.setdefaultencoding("utf-8")
import unicodedata
class Thesaurus:
def __init__(self):
self.dictionnary = {}
def add_entry(self, word, synonyms):
self.dictionnary[word] = synonyms
def add_synonym_of... | [
"dhaval.modi@hpe.com"
] | dhaval.modi@hpe.com |
5205e0d08b31a6a0750413ca83da64652095801b | 4064264a33e342581a1fe2919df33a8ad40fd6b8 | /Aim2/Modules/UKBBpreprocess.py | b44275612baa9a0c72ea2706ce4069f6cc2e0494 | [] | no_license | ryanyxw/COVIDGenomeAnalysis | 6c6ffdafc1d627a37ec4cb230f476310335734f8 | 1538a59fb260862c8484518a6e2f8b8657860530 | refs/heads/master | 2022-12-08T21:25:18.297812 | 2020-08-20T01:24:49 | 2020-08-20T01:24:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | import numpy as np
import csv, re
import pandas as pd
#Infile = 'I9_CORATHER.gwas.imputed_v3.both_sexes.txt'
def buildtxt(Target_chr, Disease_type, Directory, Infile):
Outfile = "[v2] Pos_and_Pvalue_by_Chr" + str(Target_chr) + "_" + Disease_type +".txt"
open(Outfile, "w")
Output = open(Outfile, "a")
... | [
"noreply@github.com"
] | noreply@github.com |
2193a7c2fdf9577b030346d726ee2e285606e306 | 5097d41b760da532094a6e3e26ccfb7354e0972c | /learming_logs_app/migrations/0003_topic_owner.py | af7eb2e14225b33d116d19b7fd47aeb2f5404502 | [] | no_license | mnoskovv/learning-log | 8a2cf07fb3afc4974d626df8d3de4a41645c3f71 | eb16342b5b17ccd23a8da008b758592021b17e73 | refs/heads/master | 2023-08-03T07:40:00.658526 | 2020-04-09T13:08:01 | 2020-04-09T13:08:01 | 235,308,668 | 0 | 0 | null | 2021-09-22T18:47:11 | 2020-01-21T09:49:23 | Python | UTF-8 | Python | false | false | 619 | py | # Generated by Django 3.0.2 on 2020-03-22 09:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('learming_logs_app', '000... | [
"nikita01noskov@gmail.com"
] | nikita01noskov@gmail.com |
a233d4e8b9afc6d98a3d8ee9809d4b0450623742 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /Ff84aGq6e7gjKYh8H_6.py | 44234b3c35513f59dda8ddfcdac696049dd11660 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py |
def minutes_to_seconds(time):
if int(time[-2:]) >= 60:
return False
else:
return int(time[:time.index(':')]) * 60 + int(time[-2:])
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
fa8970d696858d4094c92f803a24be8c5c86bc62 | d4a2b7a18a93c7a53909bd89ee210bed6191d33e | /MG5/4_4.py | d6b18b8d1273ac17c42ee9ff66b27f48e89c6b2f | [] | no_license | MichalGk94/Python | bbcf80237a26778cc54a88011eab2add3dfbd2e5 | e7f45de336241b9bc9d8bc9f7a6f4175ab746e20 | refs/heads/master | 2021-09-08T01:58:00.673264 | 2018-03-05T18:19:30 | 2018-03-05T18:19:30 | 106,870,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | def fibonacci(n):
wynik = 0
liczba = 0
if n <= 2:
return 1
elif n == 3:
return 2
else:
f1 = 1
f2 = 2
wynik = 0;
for i in range(2, n-1):
wynik = f1 + f2
f1 = f2
f2 = wynik
return wynik
x = input("Ktory wyraz ... | [
"noreply@github.com"
] | noreply@github.com |
f934729068d063b44311238abbd5b002b0319ae6 | f042383cbc9f10837ebdb5b9033a0263f6a43698 | /python_modules/dagster/dagster/core/asset_defs/assets_job.py | b510853c43b3a6bf0cbb7206a30b3fd81781f850 | [
"Apache-2.0"
] | permissive | helloworld/dagster | 664e6636d68bafa5151418c9d4316a565717f5ee | 779e27faa3e46b7d043cb9624617e655a9ed570c | refs/heads/master | 2022-03-24T12:15:36.626783 | 2022-02-26T01:34:29 | 2022-02-26T01:34:29 | 464,019,094 | 0 | 0 | Apache-2.0 | 2022-03-05T20:23:14 | 2022-02-27T02:38:17 | null | UTF-8 | Python | false | false | 11,534 | py | from typing import AbstractSet, Any, Dict, List, Mapping, Optional, Sequence, Tuple, Union, cast
from dagster import check
from dagster.core.definitions.config import ConfigMapping
from dagster.core.definitions.decorators.op import op
from dagster.core.definitions.dependency import (
DependencyDefinition,
IDep... | [
"noreply@github.com"
] | noreply@github.com |
158edc1ec3432b7254e2b4b94ef7abf43c183cd2 | 2eff6590e7fb5a1cffad5d00dd4f95489458b66b | /faang.py | 6e254eb0f239630939ba8dec3f522d97c3afb716 | [] | no_license | tmcbrigido/faang-stock | 47bed19645b4d8b6d29abcd5c8886b0bbdddbb89 | af2b653494df9596e1163073fdb82679a68f5066 | refs/heads/master | 2020-11-28T20:46:20.716330 | 2020-01-04T22:42:40 | 2020-01-04T22:42:40 | 229,916,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,605 | py | import datetime
import pandas_datareader.data as web
import matplotlib.pyplot as plt
from matplotlib import style
import matplotlib as mpl
# Define the timefrase used for this project
start = datetime.datetime(2014, 1, 1)
end = datetime.datetime(2019, 11, 30)
# Import the data that we will use
df = web.DataReader(... | [
"tmcbrigido@gmail.com"
] | tmcbrigido@gmail.com |
e18fa20d8366072fbd6170c21806e8cf7de9ff27 | df7d656303b70b2a9b1222666365818b1062da67 | /Rutinas.py | 316ab058a8ead5c72d3b3e58207c40306ed64e71 | [] | no_license | sebassilva/brotecito | 5a0d291a4b2c2e61e484f8474e59256f8977646c | 12f7bab947acba45720c6c3feb4324d77f6eb071 | refs/heads/master | 2020-09-12T20:18:32.172464 | 2019-11-20T00:49:50 | 2019-11-20T00:49:50 | 222,541,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from datetime import timedelta
class Rutinas:
def __init__(self):
seconds = timedelta()
pass
def luz(self,sensor):
sensor.when_light = self.light
def light(self):
print("Hay luz")
seconds = seconds + timedelta(seconds=1)
| [
"sebastian@booxlab.com"
] | sebastian@booxlab.com |
6b5ac68b2b62cef373c03502f2023abeff8a9711 | 09100581ec44e41dca30979bf097c2387015b071 | /the_foodie_network_app/resources/util.py | a0c81621c3a880e239bdbe472d1e8118c87fd456 | [] | no_license | akashmantry/the_foodie_network_backend | 0189a090b73a1bb8c208e61a4fe1d3a8086f8acb | 8251005fed0e747915e064f0644c9a16f87c9294 | refs/heads/master | 2021-05-07T09:01:59.003849 | 2017-11-03T23:38:37 | 2017-11-03T23:38:37 | 109,451,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | from flask import request
from functools import wraps
from the_foodie_network_app.config import Config
import jwt
from the_foodie_network_app.database.models import User
def token_required(func):
@wraps(func)
def decorated(*args, **kwargs):
token = None
if 'x-access-token' in request.headers:
token = reque... | [
"akashmantry@gmail.com"
] | akashmantry@gmail.com |
425b9a76d9a527064777ddeb9460337e3badf4ef | 55f43997fba47dd72dd9863a9649d8d353a25f51 | /instagram/wsgi.py | 7b71ccc654f816bb0e9a08ac3cbbccaac39d9343 | [
"MIT"
] | permissive | LoiseMwarangu/Instagram | ce4b06dc1b14d3345cc8691cfbc4fc02d9d13c81 | 1bb0791a69350e0b9a3d2864d7132c6a605360d7 | refs/heads/master | 2022-12-14T21:24:48.881581 | 2019-03-14T14:14:18 | 2019-03-14T14:14:18 | 174,509,456 | 0 | 0 | NOASSERTION | 2022-12-08T03:01:37 | 2019-03-08T09:37:54 | Python | UTF-8 | Python | false | false | 258 | py | import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "instagram.settings")
application = get_wsgi_application()
application=DjangoWhiteNoise(application)
| [
"loisemwarangu@gmail.com"
] | loisemwarangu@gmail.com |
fca6aa6b50454400c806572c6da45f3e3a03cb48 | 74eee1efe84d49084731833fad23de75334a0a25 | /excel练习/excel_copy.py | 9bf91badd0301e38010c37fdd3e2e8ac5d6a671e | [] | no_license | chengengyu/Python | 61de4f717d8994dd7aee102a126771d4fc9600f1 | ba771069e8d5c5bb827c1d727f0fc609b37fa06a | refs/heads/master | 2022-02-25T19:50:12.241692 | 2022-02-13T05:48:36 | 2022-02-13T05:48:36 | 73,597,658 | 0 | 0 | null | 2016-11-20T09:54:05 | 2016-11-13T05:34:20 | Python | UTF-8 | Python | false | false | 1,627 | py | __author__ = 'eling'
from openpyxl import Workbook, load_workbook
import copy
class BugInfo(object):
def __init__(self, BugNum, OpenInfo, ResolveInfo, CloseInfo):
self.BugNum = BugNum
self.OpenInfo = OpenInfo
self.ResolveInfo = ResolveInfo
self.CloseInfo = CloseInfo
SourceFileName = in... | [
"cgy008@outlook.com"
] | cgy008@outlook.com |
3dd51cde5fdbdc6321338ce9a565bb6b23112c26 | 30109f5f173f4e51a20cfcaf6ec41628b177f553 | /fhir/resources/structuredefinition.py | 56118989c2386d775da26b02b7cf0d5bf1a7f79c | [
"BSD-3-Clause"
] | permissive | arkhn/fhir.resources | 82c8f705c8f19e15621f2bb59fd17600c0ef3697 | 122e89c8599c4034bb3075b31d1a1188e377db91 | refs/heads/master | 2022-12-16T07:58:19.448071 | 2020-08-13T03:59:37 | 2020-08-13T03:59:37 | 288,683,730 | 1 | 0 | NOASSERTION | 2020-08-19T09:01:02 | 2020-08-19T09:01:01 | null | UTF-8 | Python | false | false | 23,609 | py | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/StructureDefinition
Release: R4
Version: 4.0.1
Build ID: 9346c8cc45
Last updated: 2019-11-01T09:29:23.356+11:00
"""
from typing import List as ListType
from typing import Union
from pydantic import Field
from . import backboneelement, domain... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
6b71d3d92d65401d6fb5407d1cf62f26725c9907 | d9e093c9dde225f7aa93a55dd9f8cef7a31554b8 | /src/Model.py | f2309dd1227532fde1d65124e17a0f4ca18d5f00 | [] | no_license | bhaskarnn9/Decision_Tree | 82ea3f2c75da35b223dd3ad03c1ee569e13261ea | 6c2f6cef6b4572a8fe9bc49651a8d6d46b589604 | refs/heads/master | 2021-01-09T17:51:52.382457 | 2020-02-28T17:25:08 | 2020-02-28T17:25:08 | 242,396,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from sklearn.tree import DecisionTreeClassifier
def model(x_train, y_train):
model_dt = DecisionTreeClassifier()
model_dt.fit(x_train, y_train)
return model_dt
| [
"bhaskarnn9@gmail.com"
] | bhaskarnn9@gmail.com |
18af521eec108724726ec5adcdda8d372e30cc21 | b452bec081866efe25bab30b98d84181e766735f | /Aula 11.py | fbb66cb3819324b8e176ea596a0d5312b0c0b27f | [
"MIT"
] | permissive | camiloprado/Curso-Python | d40fe11019e410914d4dfaf6f14abcb63e4fdbb6 | de7ab850c3010397ef8d82531757e4e4339d1bb6 | refs/heads/main | 2023-03-07T08:29:18.234983 | 2021-02-28T22:50:13 | 2021-02-28T22:50:13 | 343,232,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | T = float(input('Digite a temperatura em °C:'))
F = T * 1.8 + 32
K = T + 273.15
print('A temperatura em:\nFahrenheit: {}°F\nKelvin: {}K'.format(F, K)) | [
"camilovgprado21@gmail.com"
] | camilovgprado21@gmail.com |
5a70b3dd55fd3d9c45bbbf134b407923549c6c38 | 50edd95cf9ea295b4216e10361a3dfc7e029a660 | /anipose/train_autoencoder.py | e5534bcc6a314c1726f5d863fc601e59da0b5da8 | [
"BSD-2-Clause"
] | permissive | goyallon/anipose | 5fc03b66b5a362d8ea151c6df4cc6049bccabb15 | 2239cd04f1e6d1f21ff62aab005ebfe6fed351c8 | refs/heads/master | 2022-11-05T06:59:14.077907 | 2020-06-15T23:39:10 | 2020-06-15T23:39:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,255 | py | #!/usr/bin/env python3
from sklearn.neural_network import MLPRegressor, MLPClassifier
import pandas as pd
import os.path
import numpy as np
from glob import glob
from ruamel.yaml import YAML
import pickle
def get_dataset_location(model_folder):
config_fname = os.path.join(model_folder, 'config.yaml')
yaml =... | [
"krchtchk@gmail.com"
] | krchtchk@gmail.com |
220f90b48520a6be2e038fa30ada57931ce95040 | d88aa7b0bd55f73d9ac705f18e24cfb8fcd13a63 | /tests/test_user/test_user_model.py | 64ec45d5d04938fa3cdcae92750ee3002fd10daa | [] | no_license | guidiego/pylerplate | 0f8f826a2e0349d97968874a2b2c3827aa9e2d9a | 03adeeeb8b443b214e5237f40048895b491c6487 | refs/heads/master | 2020-05-02T22:54:37.276176 | 2019-07-09T20:04:37 | 2019-07-09T20:04:37 | 178,266,287 | 0 | 0 | null | 2019-04-04T14:08:36 | 2019-03-28T19:05:29 | null | UTF-8 | Python | false | false | 858 | py | import pytest
from app import bcrypt
from modules.user.models import User
from utils.errors import AuthenticationError
user_info = {
'email': 'test2@test.com',
'name': 'Test2',
'password': '123456'
}
def test_create_user():
new_user = User(**user_info)
new_user.save()
assert new_user.email... | [
"pedrodaumas@gmail.com"
] | pedrodaumas@gmail.com |
4b6919850f299c61adeca136eb8288fc0dc88ade | c1cf94d9286a88457130448e1e8724b015cf7df3 | /jogo.py | 0372e8045a436d71466ed13b5b35430bf7982c7d | [] | no_license | arthur-sabioni/JogoPythonOpenGL | 55883356f32b16426c523118746a4db28a59b4d0 | 7b9902e968659fa13bc573500df260befdc5e32c | refs/heads/master | 2022-11-17T02:42:43.849786 | 2020-07-08T20:25:43 | 2020-07-08T20:25:43 | 278,186,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,560 | py | from OpenGL.GL import *
from OpenGL.GLUT import *
from OpenGL.GLU import *
import pygame
from JogadorClass import Jogador
from AtiradorClass import Atirador
from RazanteClass import Razante
from TelaClass import Tela
from random import randint
def loadImage(image):
textureSurface = pygame.image.load(image)
... | [
"noreply@github.com"
] | noreply@github.com |
964cfab6381ea5b1a9577e79c16426b7beb2cab5 | 01eca44be6eb85a0e67a2d0c6e8abf4ac26d7fcc | /venv/Scripts/pip3-script.py | 65dd573485a27e533b1ac3f07422090272f7da8b | [] | no_license | davrivas/python-learning | f44335333f50a4699d0e3d688e2c6aa3513c7162 | 2f1eec1d52099d68ca727af96ebfde828406eafb | refs/heads/master | 2020-07-15T15:22:45.494393 | 2019-08-31T21:03:49 | 2019-08-31T21:03:49 | 205,591,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | #!C:\Users\davr\PycharmProjects\python-learning\venv\Scripts\python.exe
# 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)?$', '', sy... | [
"d.rivas95@hotmail.com"
] | d.rivas95@hotmail.com |
bfd0efb0e36b0b024bbc189449f2c3d4196954f4 | 6532c9e25a1e664826c9f527b2a948522a7b675b | /data analyze/database/kuyun_word_create_table.py | 32a0274f123c5977d9ba127d8d7f0f4d20f95a9e | [] | no_license | maxin5452/coolyun | f1fa485d387619e4eac6c0722538c0bc60776882 | dc458187a110b0ad12618c6f15d5e0c225bf0af2 | refs/heads/master | 2021-01-20T07:00:08.433740 | 2017-08-27T14:30:36 | 2017-08-27T14:30:36 | 101,525,090 | 0 | 0 | null | 2017-08-27T02:39:47 | 2017-08-27T02:28:13 | null | UTF-8 | Python | false | false | 752 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import MySQLdb
# 打开数据库连接
db= MySQLdb.connect(
host='127.0.0.1',
port = 3306,
user='root',
passwd='000000',
db ='testdb',
)
# 使用cursor()方法获取操作游标
cursor = db.cursor()
# 如果数据表已经存在使用 execute() 方法删除表。
cursor.execute("D... | [
"noreply@github.com"
] | noreply@github.com |
aa4343291122dd23416402289795bff275cac613 | f301c6e7c7b97fac42c03db9a25575f9f396912d | /app.py | 501baea045324cabfc3dc110ef056b80a2cdc77b | [] | no_license | asukmawan/surfs_up | d4c2934d1f0825ad7f3cc4bba83c8f45b4db5956 | 59574419caa8d2b749b09575098b8efd1e176d21 | refs/heads/main | 2023-02-13T02:27:24.886423 | 2020-12-20T14:35:40 | 2020-12-20T14:35:40 | 321,559,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,900 | py | # Setup the weather app
#1. import dependencies
import datetime as dt
import numpy as np
import pandas as pd
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
# Setup the Database
engine = c... | [
"asukmawan85@gmail.com"
] | asukmawan85@gmail.com |
4b95149358f6dfefe0687c5d6e8ae4f54758fb4a | b74320ad439e37dfa48cd8db38dab3b7a20a36ff | /src/diffusers/pipelines/dance_diffusion/pipeline_dance_diffusion.py | b2d46c6f90f142635dec50da02b00fe63b3e40c2 | [
"Apache-2.0"
] | permissive | huggingface/diffusers | c82beba1ec5f0aba01b6744040a5accc41ec2493 | 5eeedd9e3336882d598091e191559f67433b6427 | refs/heads/main | 2023-08-29T01:22:52.237910 | 2023-08-28T18:16:27 | 2023-08-28T18:16:27 | 498,011,141 | 17,308 | 3,158 | Apache-2.0 | 2023-09-14T20:57:44 | 2022-05-30T16:04:02 | Python | UTF-8 | Python | false | false | 6,254 | py | # Copyright 2023 The HuggingFace Team. 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 applicabl... | [
"noreply@github.com"
] | noreply@github.com |
d6e06778da1716fbaaf68b4e91319ac1c219ef43 | daaf133cc4146ecd3b0df5ceafea84daa6bac2ce | /project/notes/serializers.py | 085cf9d4da8d8d79ed810d541f550edae69f4dcb | [] | no_license | core-api/heroku-app | 8c29452c609e4ff2344542e1e952a343f29953f6 | 7f03a36dc34baddcdf4cda8534ab800a98e079c9 | refs/heads/master | 2023-07-20T05:34:25.707890 | 2016-01-20T12:32:12 | 2016-01-20T12:32:12 | 32,865,301 | 1 | 0 | null | 2016-01-20T12:23:01 | 2015-03-25T13:11:06 | Python | UTF-8 | Python | false | false | 326 | py | from rest_framework import serializers
class AddNoteSerializer(serializers.Serializer):
description = serializers.CharField(max_length=100)
class EditNoteSerializer(serializers.Serializer):
description = serializers.CharField(max_length=100, required=False)
complete = serializers.BooleanField(required=F... | [
"tom@tomchristie.com"
] | tom@tomchristie.com |
86068bfd992218949b5ac84033b0fc92b8e8480d | c6f1420a16f4b9bcebbc8c4a2f47a57908544386 | /scripts/collect_training_data.py | d33a4e0e1721ff93abc94dc70305df928d5af0ca | [] | no_license | AndreasZachariae/petra_patient_monitoring | 0324b1cc56dace0a31cf210a11aee5961e9ad21d | 6b099eb4a68506767f97577565e3580689ef2dda | refs/heads/master | 2023-02-10T23:31:46.794627 | 2021-01-11T17:26:13 | 2021-01-11T17:26:13 | 323,618,194 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,406 | py | #!/usr/bin/env python3
import numpy as np
import pandas as pd
import rclpy
from rclpy.node import Node
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
import cv2
from petra_interfaces.msg import PatientFeatures
############################################# Konstanten #################... | [
"zaan0001@hs-karlsruhe.de"
] | zaan0001@hs-karlsruhe.de |
67909727dea76eb4f1eeb39edfacc633490c1ac9 | 601971884962c3208f7a2feabc8d48e0635a0120 | /Web/Plant_project/Plant/settings.py | 4ce164002b26360c2286e05cba699178ac823338 | [] | no_license | graceFor/Hanium_Project | 91d94b9c9eeffb15b68f53a1b031fbe26e89057a | 13c40fcc8b84ff4d39a2deecd4b2fe9eb1b7e08a | refs/heads/master | 2022-11-30T06:10:28.762145 | 2020-08-12T08:15:31 | 2020-08-12T08:15:31 | 278,850,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,279 | py | """
Django settings for Plant project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# B... | [
"tbgusrud12@gmail.com"
] | tbgusrud12@gmail.com |
9dfec48e40772393fd8d7d112751345456b6b289 | 28cbd8542834e5d9dd04b36a3dd11cd8d0df0ea9 | /UIForFileMovementFunc.py | 3eedf83a58de740668e157b5e6ff3c9639a497d8 | [] | no_license | reismahnic/Python-Program-For-Moving-Files-With-UI-And-Last-Run-Display | 43becc58d8fc79cfbed76f7a17586756b11a3dff | a2b48cf0eaab1213d66b094cbf48225bb6b4b4ab | refs/heads/master | 2020-07-12T06:59:07.945791 | 2017-06-14T22:23:06 | 2017-06-14T22:23:06 | 94,277,568 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,660 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Python Ver: 3.6.1
#
# Author: Reis Mahnic
#
# Purpose: Moves recently edited files from one folder to another. Also displays last moved date and time.
#
#
# Tested OS: This code was written and tested to work with Windows 10.
import os
from tkin... | [
"reismahnic@gmail.com"
] | reismahnic@gmail.com |
d63c6983f2dcdf576ef3ebfafdf14196ef632044 | c64269774427d81b474b923839c0ed24a8ac38f1 | /zoomident.py | d46f2d4485be6163432d1a911b8fb0b80d66ca34 | [
"LicenseRef-scancode-public-domain"
] | permissive | euske/python3-toys | ba6be94c61e75473426909d0a23d65b9eb54bf2a | 9945f22167e580f6e3ba1dc4a1513d25f2e6bafa | refs/heads/master | 2023-04-01T04:55:20.477855 | 2023-03-27T02:54:28 | 2023-03-27T02:54:28 | 45,541,191 | 8 | 7 | null | null | null | null | UTF-8 | Python | false | false | 20,046 | py | #!/usr/bin/env python
##
## Usage:
## $ ./zoomident.py -i meibo.csv -i extra.txt -p10:10 report.csv
##
## report.csv:
## 祐介 新山,,2022/01/01 12:34:56,2022/01/01 12:35:00,1,Yes
## 新山 (祐),,2022/01/01 12:34:56,2022/01/01 12:35:00,1,Yes
## 99B99999 新山祐介,,2022/01/01 12:34:56,2022/01/01 12:35:00,1,Yes
## シンヤマユ... | [
"yusuke@shinyama.jp"
] | yusuke@shinyama.jp |
49ada0f710f8c4cfc75d72062f98d7d676d520c4 | f8e71f84205a81d11d4fda4c53c2db9b3fa0dd65 | /chloroform/templatetags/chloroform.py | 95be5897475b86ac48c76cfe10f7beb600cdde71 | [] | no_license | cecedille1/chloroform | 789dbf0e283ae8bc561de63317b0c21a6ff01fe9 | 68a68cb3d094e69987135668abd2ebcb80b993b1 | refs/heads/master | 2021-06-03T00:45:30.426587 | 2018-04-23T10:17:10 | 2018-04-23T10:17:10 | 254,330,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from django import template
from chloroform.forms import ContactFormBuilder
from chloroform.models import Configuration
from chloroform.helpers import ChloroformTagHelper, FormHelperGetterMixin
register = template.Library()
class ChloroformHelperGette... | [
"gregoire@emencia.com"
] | gregoire@emencia.com |
30e78d2b6cb33880f8469deab8d18521ad8705d3 | ef76f8bcea6cc5331b4c8873704426f1aacfd60d | /tests/test_likenumpy.py | 33b1e97bd9a7e2c4fce6a68e09a09b1832715d35 | [
"BSD-3-Clause"
] | permissive | DumbMachine/awkward-array | 10a51c8ac471839e435bb471f45b6624c4f982cb | 8f54cc5d4de3bc56628676243bfe63c683667f16 | refs/heads/master | 2020-04-15T17:43:42.684480 | 2019-01-18T18:39:46 | 2019-01-18T18:39:46 | 164,884,686 | 1 | 0 | BSD-3-Clause | 2019-01-18T18:33:23 | 2019-01-09T15:06:24 | Python | UTF-8 | Python | false | false | 6,027 | py | #!/usr/bin/env python
# Copyright (c) 2018, DIANA-HEP
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list ... | [
"jpivarski@gmail.com"
] | jpivarski@gmail.com |
0430c8e68c0e36d441ff3a4c2768d2abb1a26a4f | 7847756062b6952fd881e3f0896c1dc600a0ba66 | /Arrays and Strings/MaximumSumIncreasingSubsequence.py | 74ae17c3980ecfff8c398cb3f0baa89e62e521b9 | [
"MIT"
] | permissive | renowncoder/hello-interview | be22214f02631a9e17643af054cfbe3411c8da1a | 78f6cf4e2da4106fd07f4bd86247026396075c69 | refs/heads/master | 2021-01-03T11:36:30.862323 | 2019-06-01T02:58:22 | 2019-06-01T02:58:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | """
Maximum Sum Increasing Subsequence
https://practice.geeksforgeeks.org/problems/maximum-sum-increasing-subsequence/0/?ref=self
"""
def maximum_sum_increasing_subsequence(numbers, size):
"""
Given an array of n positive integers. Write a program to find the sum of
maximum sum subsequence of the given ar... | [
"dileep.pandey@asu.edu"
] | dileep.pandey@asu.edu |
2504e3d14d7c689b9a20d6c18fc8b18a0c2c892e | 75a3749bbcede8e9ba432ec4422e3e55ff01852d | /devel/lib/python2.7/dist-packages/kautham/srv/_ReqPlan.py | 206e039157b1e2ac8103f985802156b6668c25a8 | [] | no_license | fersolerv/Ros_Regrasp | 749508dc992dda35b36b6f8952c7e40b2ae18bf0 | 8f6b3ac0ec16bff13890abc60a1c5acc6289c9ea | refs/heads/master | 2020-03-22T03:18:15.049574 | 2019-08-29T12:58:41 | 2019-08-29T12:58:41 | 139,424,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,355 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from kautham/ReqPlanRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class ReqPlanRequest(genpy.Message):
_md5sum = "fb05da14d2435383dc6c819a... | [
"fer.solerv@hotmail.com"
] | fer.solerv@hotmail.com |
7d7826a4d5a3e34518f0869319124c892f24f540 | f47fb0266f9f90bff0b6701f6cb46083f565e028 | /ando/tools/generator/bidsconverter.py | 6f5b2a8ef61356ea80674b86dcf73fcdbd12ff6b | [
"MIT"
] | permissive | Slowblitz/AnDO | d8dc452a9ea0b34e0b96ec8f1e542652ee1be6ce | c6c6477f41342fb31de57da097ee066c96e9130c | refs/heads/master | 2023-05-28T00:57:23.249749 | 2021-05-18T07:17:54 | 2021-05-18T07:17:54 | 330,702,652 | 0 | 0 | MIT | 2021-01-18T15:07:00 | 2021-01-18T15:06:59 | null | UTF-8 | Python | false | false | 2,951 | py | from abc import ABC, abstractmethod
from collections import defaultdict
from pathlib import Path
class BidsConverter(ABC):
def __init__(self, dataset_path, **kwargs):
self.dataset_path = Path(dataset_path)
self._kwargs = kwargs
self._participants_dict = dict(name=Path('participants.tsv'),... | [
"noreply@github.com"
] | noreply@github.com |
4fe98793df58d5e1bf85fc96af28a813a0e52817 | 906e8d5711f64b45db1541ea15ab5de50c73fafa | /src/api/listeners/console.py | 9ab2fd7769322fa1b97d3a3048b9ab91dc515ed7 | [
"MIT"
] | permissive | yagrxu/infrabox | 079cb2f04f13dc31811698fe94354e32e8ea91e1 | 1d8789db1968897fd471d4dbc1480395d365ff85 | refs/heads/master | 2021-04-15T10:31:54.697521 | 2018-03-21T21:48:12 | 2018-03-21T21:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | import json
from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT
from eventlet.hubs import trampoline
from pyinfraboxutils.db import connect_db
from pyinfraboxutils import dbpool
from pyinfraboxutils import get_logger
logger = get_logger('console_listener')
def __handle_event(event, socketio, client_manager):... | [
"steffen@infrabox.net"
] | steffen@infrabox.net |
9e59cfabe06d7aee1aed1b645a3af1b9c7cbd09a | 825f89203b1f1b1c5e05bab87b764cfd78c9e64d | /mysite/mysite/settings.py | 4854e96520e9fd88ceb8cc9debbd79b45583ce1b | [] | no_license | jaredharley/learn-python | d3086967c1f67a0baa48071e3c7a359da88ebfbd | d54926714ac399e317d723cb237328bfdf0dbec2 | refs/heads/master | 2016-09-05T13:28:37.685244 | 2016-01-06T05:00:04 | 2016-01-06T05:00:04 | 28,735,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,132 | py | """
Django settings for mysite project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | [
"jared@jaredharley.com"
] | jared@jaredharley.com |
c9457f2571685a6762cf2e937a5be97dcb5f5e05 | 205c1bd0e473f0e9aa31db1256aec5d1f5a233d4 | /word break/1.py | bc1b430c1b4d8348d2f9deda7ddead62247e4488 | [
"MIT"
] | permissive | cerebrumaize/leetcode | 4256215a3762a5de7f3258d43a03cae11357641d | 869ee24c50c08403b170e8f7868699185e9dfdd1 | refs/heads/master | 2021-01-12T09:20:10.891530 | 2017-10-17T06:15:21 | 2017-10-17T06:15:21 | 76,133,209 | 0 | 0 | null | 2016-12-23T07:22:58 | 2016-12-10T19:31:44 | Python | UTF-8 | Python | false | false | 694 | py | #!/usr/bin/env python
'''code description'''
# pylint: disable = I0011, E0401, C0103
class Solution(object):
'''Solution description'''
def func(self, s, wordDict):
'''Solution function description'''
d = [False] * len(s)
for i in range(len(s)):
for w in wordDict:
... | [
"yingxiuc@sfu.ca"
] | yingxiuc@sfu.ca |
630e3b59bc97ae65efd9cdf123fa18dc17a216c8 | 69c81130633ba4d41b1ec938f0fc586f777e95ba | /setup.py | 7e3762cd896e38a132a848717fe69bc6b7b3c13b | [
"ISC"
] | permissive | pregiotek/drf-tracking | d8ff934e884e7908f997f524d4e363914c2f11b2 | f40c87a7e392009cdffa7b893e964b51f2faeb5b | refs/heads/master | 2021-01-18T07:51:57.961574 | 2016-09-09T14:34:44 | 2016-09-09T14:34:44 | 67,803,102 | 1 | 0 | null | 2016-09-09T13:54:10 | 2016-09-09T13:54:08 | Python | UTF-8 | Python | false | false | 2,771 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import os
import sys
from setuptools import setup
name = 'drf-tracking'
package = 'rest_framework_tracking'
description = 'Utils to log Django Rest Framework requests to the database'
url = 'https://github.com/aschn/drf-tracking'
author = 'Anna Schneider'
author... | [
"annarschneider@gmail.com"
] | annarschneider@gmail.com |
597769bb6af4fe6e7af805283822cccd04fed89e | 69bfc9d5bf983ca0cf98ed53f8eace0f1b77e60b | /application/controllers/pies/delete.py | b9c3d21a4512a2834344692d64fa18f28265432c | [] | no_license | RicardoAntonio24/otomi | 679c26f4c85b7782bfbd768e5f16f33524599f2f | 1f40bd3b5af1337c1c6c518d7289d13538da7568 | refs/heads/master | 2020-05-24T04:39:28.208177 | 2019-05-16T21:19:57 | 2019-05-16T21:19:57 | 187,097,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | import config
import hashlib
import app
class Delete:
def __init__(self):
pass
'''
def GET(self, id_palabra_pies, **k):
if app.session.loggedin is True: # validate if the user is logged
# session_username = app.session.username
session_privilege = app.session.p... | [
"1717110251@utectulancingo.edu.mx"
] | 1717110251@utectulancingo.edu.mx |
5366df88285235633e44287a3950189650d383b1 | 2d9cea7839a900921850f2af1ccafc623b9d53b9 | /websecurityscanner/google/cloud/websecurityscanner_v1alpha/types.py | 594571c6551b0c0557820428c4ec53212cbc344e | [
"Apache-2.0"
] | permissive | smottt/google-cloud-python | cb28e8d59cc36932aa89e838412fe234f6c4498c | 2982dd3d565923509bab210eb45b800ce464fe8a | refs/heads/master | 2020-03-31T21:12:02.209919 | 2018-10-10T18:04:44 | 2018-10-10T18:04:44 | 152,571,541 | 0 | 1 | Apache-2.0 | 2018-10-11T10:10:47 | 2018-10-11T10:10:47 | null | UTF-8 | Python | false | false | 2,175 | py | # Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | noreply@github.com |
d0f53731c66521d73bfc425db0bd9aa49b385163 | 5d355461220921ccee1b96b764452da26d40f304 | /leadmanager/accounts/serializers.py | 2a069ad4eb67eb9641ec740e6c82d8b4989dd596 | [] | no_license | craigbunton/lead_manager_react_django | ec36dc1a1e376ed1d1a1305b5d480675e9bd7872 | 7f5b35f2978b0350b29e98462ae0afd84c725832 | refs/heads/master | 2023-01-29T03:26:35.390790 | 2020-01-23T10:46:24 | 2020-01-23T10:46:24 | 218,880,992 | 0 | 0 | null | 2023-01-07T11:17:35 | 2019-10-31T23:58:53 | JavaScript | UTF-8 | Python | false | false | 1,080 | py | from rest_framework import serializers
from django.contrib.auth.models import User
from django.contrib.auth import authenticate
# User Serializer
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ("id", "username", "email")
# Register Serializer
class RegisterS... | [
"29607732+craigbunton@users.noreply.github.com"
] | 29607732+craigbunton@users.noreply.github.com |
5b359b667dad448b3a80c84e30867c87d641f496 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/str_get_element-42.py | 890eb44f037c7631688f2cc5967b68b4d12596ca | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | x:str = "abc"
a:str = ""
b:str = ""
c:str = ""
def str_get(s:str, $TypedVar) -> str:
return s[i]
a = str_get(x, 0)
b = str_get(x, 1)
c = str_get(x, 2)
print(a)
print(b)
print(c)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
00c829a3af846d4b674adb602f7b10fbd85dd30f | 03408fccb18ad545aea32ca3fe82acae54261a1f | /check for n and its double.py | 4e34fa68d1c04ef9fd8d3f52054524222fa35179 | [] | no_license | rehoboth23/leetcode-base | 7253f768da27a75650704980f0e0ab039123e84d | 9d8dfd05f6367ea2b5e2b1c490f09a18fa5e8a14 | refs/heads/main | 2023-01-02T11:11:07.539139 | 2020-10-25T17:41:53 | 2020-10-25T17:41:53 | 307,154,350 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | class Solution:
"""
use set matching theory; check first then add last to account for 0
"""
def checkIfExist(self, arr: [int]) -> bool:
s = set()
for i in arr:
if 2 * i in s:
return True
if i / 2 in s:
return True
s.add(... | [
"rehobothokorie@Rehoboths-MacBook-Pro.local"
] | rehobothokorie@Rehoboths-MacBook-Pro.local |
e5aa8b2e31423c297291bfb6fa1566f5d4d0ffd4 | 87026962f460910c8ea3319f26bce1fcb9b0d9b0 | /comprehensions/os_walk.py | 83e8c9417ed835292bb5d48dacdad3760e4fb3b9 | [] | no_license | psyoblade/python-for-dummies | 566cf772dee4c99e32202d9975470756e0a12ac0 | edf1aec90cda81ccb6a40785bd6fd7b110173e72 | refs/heads/master | 2022-05-31T18:08:28.608291 | 2022-05-05T10:37:12 | 2022-05-05T10:37:12 | 123,752,733 | 0 | 0 | null | 2022-05-05T01:10:41 | 2018-03-04T03:19:57 | Python | UTF-8 | Python | false | false | 526 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import os
# [ value ]
def os_walk_dirs(root, ext):
return [os.path.join(d[0], f) for d in os.walk(root) for f in d[2] if f.endswith(ext)]
# for python_file in os_walk_dirs('.', '.py'):
# print(python_file)
inner_outer = [str(inner) + ":" + str(outer) for inner in ... | [
"psyoblade@ncsoft.com"
] | psyoblade@ncsoft.com |
ab5719fac5041d62271c2e6278c29f604e00f121 | 14fdd90df17717516b6ef7496f2934f9f9614d9d | /rest_app/main.py | 7ccc7e10ad7aa88f587a92ff0855ba9e81de9237 | [] | no_license | rafee/mlDataAssignment | 16ea10526f559a99686f109e9c8236e88d8e3b6e | db3792fa6da3469ae185f5199f8807dac14a81b5 | refs/heads/master | 2020-08-24T12:52:27.609709 | 2019-11-08T23:24:10 | 2019-11-08T23:24:10 | 216,829,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,944 | py | from flask import Flask, jsonify, request
import csv
from google.cloud import storage
app = Flask(__name__)
def parse_method(BUCKET='assignment1-data', FILE='Input-Data/NDBench-testing.csv'):
client = storage.Client()
bucket = client.get_bucket(BUCKET)
blob = bucket.get_blob(FILE)
csv_data = blob.dow... | [
"mij.rafee.1344@gmail.com"
] | mij.rafee.1344@gmail.com |
36fddc7fd02e3a92abe9ba83dd50b520aac10d94 | 16d86ac6f2a8b471f8bf56fb47561eb1230a2be7 | /Exemplos/CursoPython/Aula02/exemplo_classes.py | e42e324053892d2a0efa7afc37b22dec2d92316c | [
"MIT"
] | permissive | Winderson/inteligencia-artificial-1 | f872a38c156690e257fcae8bd0fee2106a8af36f | 19acf6ce5c6d14f306f47bd1a07e227633458df9 | refs/heads/master | 2020-03-30T07:24:41.005736 | 2018-09-26T23:29:26 | 2018-09-26T23:29:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,188 | py | #!/usr/bin/env python
# SINTAXE:
# class <NomeDaClasse>(<classe_pai>):
# <metodos>
from typing import List
import numpy as np
class Aluno():
"""Representa um aluno da escola."""
def __init__(self, nome:str = ''):
"""Construtor da classe."""
# No construtor sao declarados os atribut... | [
"chaua@users.noreply.github.com"
] | chaua@users.noreply.github.com |
da3e82dfc76303e43f05fa7cf081576377d5b684 | d6b99ab3cc7108f4f0cc0be899641ac990e30db9 | /multipleOf3or5/test.py | a42133ea858991b66c5473b82f3bb50e49e4df3b | [] | no_license | AsemAntar/codewars_problems | ef97e8a8058551276cdb943a07474cbeb9353c4d | c0ae0a769e16211c2b8e325d1116a6cebd3be016 | refs/heads/master | 2020-08-10T02:01:12.411030 | 2019-12-15T22:45:20 | 2019-12-15T22:45:20 | 214,229,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | import unittest
from multiple_of_3_or_5 import solutions, solution, math_solution
class TESTSOLUTIONS(unittest.TestCase):
def test_solutions(self):
with self.subTest():
self.assertEqual(solutions(10), 23, 'should be 23')
with self.subTest():
self.assertEqual(solutions(11), ... | [
"asemantar@gmail.com"
] | asemantar@gmail.com |
1a3b2dcbc469c0bd1ee4f977fbf9cca6dd710acc | 05b262df0935338ed8b86110acad96332a5ba424 | /{{cookiecutter.directory_name}}/{{cookiecutter.pkg_name}}/tests/unit/route_test.py | abb4ca0d8b717e4b65d96acade0f0e7353d4498c | [] | no_license | ramonlimaramos/ramons-cookie-py | 0705906060e4f40c35b4b5f46e4cb6d91c0e276d | 2728e35482ca570c34cc13f9e47030a7476c323c | refs/heads/develop | 2023-03-29T20:54:11.332821 | 2021-04-08T20:57:09 | 2021-04-08T20:57:09 | 346,442,689 | 1 | 0 | null | 2021-04-08T20:57:10 | 2021-03-10T17:46:34 | Python | UTF-8 | Python | false | false | 717 | py | from unittest import TestCase
from flask import Flask
from {{cookiecutter.pkg_name}}.tests.mixins import JsonMixin
from {{cookiecutter.pkg_name}}.api import api
class RouteTest(JsonMixin, TestCase):
def setUp(self):
super(RouteTest, self).setUp()
self.app = Flask(__name__)
self.app.regist... | [
"ramonlimaramos@gmail.com"
] | ramonlimaramos@gmail.com |
e5abf28f7e9696925ef3d1e4157a0d1afd8b47ba | d5322a991d6d9f1f943efd02b78fb1f32eafdee5 | /cnn-rate-distortion/tools/dataset.py | 4c5aa413db5dfb5152a84d8f5a6c3c6fe03925b9 | [
"Apache-2.0"
] | permissive | duckcrack/cnn-rate-distortion | 9667ae23d6666a2cd63ae55a5206979ed38fa315 | 670826aff3c6232b5b4399f9b80f2078c606f41c | refs/heads/master | 2023-03-17T21:59:25.836891 | 2020-06-18T15:35:33 | 2020-06-18T15:35:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,957 | py | #
# Copyright 2020 BBC Research & Development
#
# 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 agree... | [
"mcsan_16@outlook.com"
] | mcsan_16@outlook.com |
44409bdac0a0b49c9b2be22d241b768ad0259208 | a84f01e6a2419cfa6e4aeaa42e211a7767769666 | /src/utils.py | edd8fa5bb5a8c005a678b71b91ce78d73e7d994f | [] | no_license | MarkusGW/trading_evolved | 4ad11b18b49763969e8132ff432da629a742301a | 90dd50c1e608f8dc9841ac29b4b5c6c1d72b0380 | refs/heads/master | 2023-01-14T03:59:15.320872 | 2020-11-22T12:08:08 | 2020-11-22T12:08:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | import pandas as pd
from typing import List
idx = pd.date_range(start="1997-01-01", end="1997-01-10", tz="utc", freq="D")
EQUITIES = [
"JNJ",
"KO",
"AXP",
"HON",
"DIS",
"PG",
"INTC",
"AMGN",
"VZ",
"GS",
"UNH",
"CSCO",
"WMT",
"JPM",
"MRK",
"MCD",
"MMM... | [
"hsm207@users.noreply.github.com"
] | hsm207@users.noreply.github.com |
b6efe0490d8451eae030d3b8436a66669ef88d37 | 6b26161e09d76c265a628a9f985e25ce06d61f0f | /src/openpose-baseline/src/predict_3dpose.py | 43aa6ff5f4a8eb1fc5415ba63a4b457dbcb95689 | [
"MIT"
] | permissive | iamarcel/thesis | 362925af6549eac149b6c4c30b9f0f27f3c125e1 | ecbf8fbdce8ef54a85757eaf3dae7337c2b30581 | refs/heads/master | 2021-04-18T22:33:44.406582 | 2018-08-14T11:09:51 | 2018-08-14T11:09:51 | 126,800,975 | 2 | 0 | null | 2020-03-30T20:38:32 | 2018-03-26T08:55:35 | Python | UTF-8 | Python | false | false | 20,728 | py |
"""Predicting 3d poses from 2d joints"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import math
import os
import random
import sys
import time
import h5py
import copy
import matplotlib.pyplot as plt
import numpy as np
from six.moves import xrange # ... | [
"dev@mrcl.io"
] | dev@mrcl.io |
95d818af2f4d1b2556855c88d57e7be0018bcf71 | 4248fdd3d9791f74f4d2be799f4fe5547e5d59ce | /HeightofSparNonSymm.py | 41a5c0c67ba7ae9d4759d459bd7f60e8545893f6 | [] | no_license | rcbeneduce/TritonUAS | d8afe407c48c8853929af22af80f8d957c559eb6 | e3dcc0d9cd01c5587dd3add4493b68950644c2a1 | refs/heads/main | 2023-03-02T00:57:11.820777 | 2021-02-07T19:35:30 | 2021-02-07T19:35:30 | 331,475,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 20 08:15:12 2021
@author: Ryan
"""
#For Triton UAS
#determination of max height of Spar at desired locations
#source equations found at:
#airfoiltools.com/airfoil/naca4digit
#nonsymmetrical airfoils only
#see other file for symmetrical airfoils
#symmetrical airfoils will ... | [
"noreply@github.com"
] | noreply@github.com |
7e326e95b2f215277fad954226ecacab2de1fc80 | ff861e42ddc870274000de686665c8c8430a05b9 | /news/news_api/serializers.py | 9103a96e3c54ccfc85ffe44cdcfccb5943f225bf | [] | no_license | vkhalaim/develops_test | c312b8e9261a4dab0cd6417e0bbee5b2d280b5b8 | 2492c2b8181dc1cc4e27876e9aa8ed76c19ee641 | refs/heads/master | 2022-12-07T08:27:52.272297 | 2020-09-03T10:02:06 | 2020-09-03T10:02:06 | 292,081,779 | 0 | 0 | null | 2020-09-02T17:06:07 | 2020-09-01T18:52:44 | Python | UTF-8 | Python | false | false | 728 | py | from rest_framework import serializers
from .models import Post, Comment
class PostSerializer(serializers.ModelSerializer):
comments = serializers.HyperlinkedRelatedField(
many=True, read_only=True, view_name="comments-detail"
)
class Meta:
model = Post
fields = [
"t... | [
"vasyl.khalaim@ukr.net"
] | vasyl.khalaim@ukr.net |
8d709de8cf0a40a56f67797e504889b8262839ae | f3ac8922bf8b8358c117825975c25b43ac342c07 | /TestDatas/Common_Datas.py | 1ea84d5e89f3d23e37504fdae10547127ec2ea92 | [] | no_license | tangtangmao/KetangpaiWebtest | be176c8048e9036cc99a5a974f93dc85bd764f32 | 34683dbe5cd8254d217023214836654114e5e1b2 | refs/heads/master | 2022-04-26T22:09:27.096734 | 2020-04-29T07:20:08 | 2020-04-29T07:20:08 | 256,442,839 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#@Time : 2020/4/4 11:16
#@Author: hxj
#@File : Common_Datas.py
#用来存放一些公共的全局配置
#全局的系统访问地址,登陆连接
web_login_url="https://www.ketangpai.com/" | [
"1185375204@qq.com"
] | 1185375204@qq.com |
bb474a8dff0c79f39dff9351ec66adbebf334cc2 | e5eb6503958f794aaba90636b3415564e984e2d8 | /datamodel/migrations/0015_auto_20191212_1501.py | dddb54ff4581f68fae0ad7bed903b0109ba060b9 | [] | no_license | AdrianCV412/PSI_Extraordinaria | 4005217c61e9d88538be21911fa6367e365190ec | 5e3da07c7d71c1c817445ae73d02c5c07284d7ab | refs/heads/master | 2023-07-22T07:37:53.022367 | 2020-06-11T11:05:14 | 2020-06-11T11:05:14 | 269,599,552 | 0 | 0 | null | 2021-06-10T22:59:50 | 2020-06-05T10:22:24 | Python | UTF-8 | Python | false | false | 391 | py | # Generated by Django 2.2.7 on 2019-12-12 15:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('datamodel', '0014_auto_20191210_1713'),
]
operations = [
migrations.AlterField(
model_name='move',
name='date',
... | [
"adrian.callejo@estudiante.uam.es"
] | adrian.callejo@estudiante.uam.es |
f1a26d8535ee4e801718164bb5381dda69821129 | a9fe1b5c320cdef138ac4a942a8b741c7f27de7c | /LC1165-Single-Row-Keyboard.py | b61ee59f2cb456449c1170110439d12eae92960f | [] | no_license | kate-melnykova/LeetCode-solutions | a6bbb5845310ce082770bcb92ef6f6877962a8ee | ee8237b66975fb5584a3d68b311e762c0462c8aa | refs/heads/master | 2023-06-28T06:35:33.342025 | 2021-07-30T06:59:31 | 2021-07-30T06:59:31 | 325,106,033 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | """
There is a special keyboard with all keys in a single row.
Given a string keyboard of length 26 indicating the layout of
the keyboard (indexed from 0 to 25), initially your finger is
at index 0. To type a character, you have to move your finger
to the index of the desired character. The time taken to move
your fin... | [
"forkatemelnikova@gmail.com"
] | forkatemelnikova@gmail.com |
02dd977436f11939f930ff3f807955ba0b959b3d | c97be8b4d3b7622cfbaec735fcb945c140f6e358 | /mysite/settings.py | f1b9c25ac2a217fe889d1e3200fccc156d840eb8 | [] | no_license | Mulannn/my-first-blog | 9603adf2497c977531941afd9cdeb1d3cf109c8f | f7f3ca7f327c02832fb15e7045dfa3c2f3e9b3d6 | refs/heads/master | 2020-03-27T19:25:15.686643 | 2018-09-01T14:39:49 | 2018-09-01T14:39:49 | 146,987,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"lepar.sarolta@gmail.com"
] | lepar.sarolta@gmail.com |
199702ad609cce49f16724e9aaa7caa86a4959f6 | e2b6ff88f4b57c815fa60516ec11c611617fad7f | /archives/migrations/0035_auto__add_field_mediacollectivity_role__add_field_archivecollectivity_.py | 32ec20fb54866fb8789338f5ec7fc72c70810fb1 | [] | no_license | funkyminh/archiprod | 7ed5507f5097e1d3db14fef7c45ebda2e6238579 | 89772ca8ef70960157fefefff5f3a893f91f3635 | refs/heads/master | 2016-08-05T04:58:05.836863 | 2015-04-22T15:03:48 | 2015-04-22T15:03:48 | 34,397,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,855 | 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):
# Adding field 'MediaCollectivity.role'
db.add_column('archives_media_collectivities', 'role',
... | [
"minh@MacBook-Air-de-Minh.local"
] | minh@MacBook-Air-de-Minh.local |
45b1e2030a82a579787b6264898649012691ae6a | e17eeedcd07cfbfe8879ba27654dc399964da466 | /openstackclient/tests/unit/network/test_utils.py | 6252d7f76644760b40d5c7515fda4ce8ec159195 | [
"Apache-2.0"
] | permissive | sapcc/python-openstackclient | 2ec0a0af8c7010fd12a8c92c3df1e70bb9e2c52d | 8aafc9e687b0dcf15709d4029b55b0271160f1ce | refs/heads/master | 2023-04-16T03:09:21.987741 | 2021-08-01T20:57:20 | 2022-04-05T17:16:52 | 96,403,544 | 0 | 0 | Apache-2.0 | 2023-04-04T01:36:45 | 2017-07-06T07:50:31 | Python | UTF-8 | Python | false | false | 2,051 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distrib... | [
"skaplons@redhat.com"
] | skaplons@redhat.com |
5e521d0a7227ad3e4be3e4a0d4b7c4ea655d494e | 62491ec663dd603c8e72efca44b58ec31afdff39 | /up/apps/messaging/models.py | 427bf4dc50aadaa24e942f722bda5611e1813a76 | [] | no_license | chuck-swirve/up | 63a2d617cdbefaa1ac91cfbe09b28045344a5ed7 | a18f6118853df80694a33b81b710fca094f736db | refs/heads/master | 2021-01-18T22:12:53.238169 | 2016-08-22T02:27:29 | 2016-08-22T02:27:29 | 72,303,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,008 | py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
from django.conf import settings
from django.db import models
from django.db import transaction
from common import models as common_models
class Inbox(common_models.BaseModel):
owner = models.OneToOneFie... | [
"chuck-swirve@users.noreply.github.com"
] | chuck-swirve@users.noreply.github.com |
c11e9e17d2a71e4dc915d7c7f64e14d6bf9b9f5b | 27dc0d3f94b947120657098db4139e0341b593ba | /examples/ensemble/plot_monotonic_constraints.py | 6146a3bb72db1065dd5cb68126e785a2a3bd57c8 | [
"BSD-3-Clause"
] | permissive | ABHIGPT401/scikit-learn | 06283a56290903d4831591cb2218798f0302df65 | 4448dd47162a04164d9edd771d1f5d73bcf9c4fe | refs/heads/main | 2023-09-01T09:55:03.066820 | 2021-10-07T04:58:50 | 2021-10-07T04:58:50 | 411,531,901 | 1 | 0 | BSD-3-Clause | 2021-09-29T04:39:58 | 2021-09-29T04:39:57 | null | UTF-8 | Python | false | false | 2,203 | py | """
=====================
Monotonic Constraints
=====================
This example illustrates the effect of monotonic constraints on a gradient
boosting estimator.
We build an artificial dataset where the target value is in general
positively correlated with the first feature (with some random and
non-random variati... | [
"noreply@github.com"
] | noreply@github.com |
fceff945861b4786665c029e26c74008e81d768d | 357a19924fb68d8c32bf77fbc201f61cedac6937 | /POM_UnitTest_HTMLReports_Framework_SDET/TestCase_Orange_hrm_login.py | 8425c7594f0988dcbd840e58386c3b03d7f096e2 | [] | no_license | Chi10ya/Selenium-with-Python | e2ecb0d3454f8e82bca0e89a38ddb5d6b3627533 | df0169cc75212157fc1314461d2d8c8dff36c500 | refs/heads/master | 2022-10-23T22:48:12.956801 | 2020-06-10T07:45:09 | 2020-06-10T07:45:09 | 256,746,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | from selenium import webdriver
import unittest
from selenium.webdriver.common.by import By
import HtmlTestRunner
class OrangeHRMTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
chromeDriverPath = "C:\\Users\\chaitanya.mohammad\\PycharmProjects\\Python_Selenium_BrowserDrivers\\chromedriver.e... | [
"mchintuk@yahoo.com"
] | mchintuk@yahoo.com |
f357352e2b4139eaa7e6bef581fb10ea734d9cf2 | fa07722e4f803c42ee57a7a7fd511d95bad079e4 | /r_rprj_mt.py | 003d4a629edbb8fe793b0370f8000e6157f3ca9f | [
"MIT"
] | permissive | Ivanych999/gispython | 48207c50c3101383dec41a4ae2a90805ec51a7f3 | f15842ea502f235afbda638ce2769a0057c97eea | refs/heads/master | 2021-01-18T07:21:40.112534 | 2015-10-29T14:38:37 | 2015-10-29T14:38:37 | 44,006,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,155 | py | # -*- coding: utf-8 -*-
__author__ = 'medvedev.ivan@mail.ru'
import os,sys,datetime,argparse,threading,time,shutil
from osgeo import gdal
from gdalconst import *
from Queue import Queue
queue = Queue()
LOCK = threading.RLock()
# CONSTs
folders = {
0.5: '0_5', # subfolder for raster with 0.5 pixel size
1.0: '1_0', ... | [
"medvedev.ivan@mail.ru"
] | medvedev.ivan@mail.ru |
0192dd21e181ec805541dd1f7348647918833069 | 61f8caa755c5f77984f0513ca60392a889154495 | /src/Tfit_param_histograms.py | bb43bae7ce465d1f4af41cd0c6d9ca2a89f3c7f2 | [] | no_license | jdrubin91/GROAnalysis | 1f45aaf9185fd574b64c56f855dfaa7202625157 | fb692c3d9975f003d51929f4a07f466f43b7feaf | refs/heads/master | 2021-01-10T08:59:05.207471 | 2017-12-12T17:54:13 | 2017-12-12T17:54:13 | 49,988,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | __author__ = 'Jonathan Rubin'
import os
import sys
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from matplotlib import rcParams
rcParams.update({'figure.autolayout': True})
from scipy.stats import gaussian_kde
from scipy.stats import norm
import numpy as np
import math
#Return parent direct... | [
"jonathanrubin@rl1-194-245-dhcp.int.colorado.edu"
] | jonathanrubin@rl1-194-245-dhcp.int.colorado.edu |
81918093546a7302b6a193c07d3dbc4b5974fd75 | 61487f888f6d4383a2f357c53aabf298df0d9343 | /golImage.py | 1d80f69a4c7767e882db4e602f27d0fb35606e6b | [
"MIT"
] | permissive | dwoiwode/Game-Of-Life-Media-Renderer | b44475b4cf417aba648a457929db7fa04dbf8d3b | 05ad2eb52a4c5cc4f7e2e92adc0820c1b616beba | refs/heads/master | 2021-06-24T19:02:19.155725 | 2020-12-28T22:14:00 | 2020-12-28T22:14:00 | 195,087,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,520 | py | import os
import random
from pathlib import Path
import cv2
from tqdm import tqdm
import utils.colormaps as cm
from gol import GoL
from imageRenderer import RenderSettings, renderImage
class GoLImageRenderer:
def __init__(self, folder, width, height, fpg=1, showNeighbourCount=False, showGridlines=False,
... | [
"mail@dominik-woiwode.de"
] | mail@dominik-woiwode.de |
f387437c4d43d4be308abb9110efec9f3d4d303c | a550d4097c993601d4159f03bc148f19b721c530 | /train_lda.py | ba20227a90a90b297c2ba6a490112f99796fa780 | [] | no_license | nitinhardeniya/hackpredict | 35ccea4934c010c28aed0cbf488c212c66895096 | a4f2c20cee811aedc90e476580a77c51c6e02979 | refs/heads/master | 2020-05-30T03:11:37.150740 | 2015-04-11T13:35:54 | 2015-04-11T13:35:54 | 33,776,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,297 | py |
#########################################################################################
#: The main utill to train the LDA using gensim
# more info http://radimrehurek.com/gensim/
#: Author :Nitin Hardeniya
#########################################################################################
import sys
import... | [
"nitin@Nitins-MacBook-Pro.local"
] | nitin@Nitins-MacBook-Pro.local |
f3cf5e33ee6238e6931cf49d8df1824ab21d1b81 | 8dc1f6120dbc06fc4ceddba50c63bc8fc0057366 | /TrabalhoFinal.py | 256b5dc0f8fcbf50cc6d18b53e5855aed430ee69 | [] | no_license | tedescovinicius/Trabalho-final-Disciplina-de-Algoritmos | d314e31e96eb2511afe84cd737e7e29982340f18 | 654d87d5105a6f0c7f1b285d3966fe3f9b2a622f | refs/heads/master | 2022-09-11T15:57:17.569437 | 2019-12-16T15:16:23 | 2019-12-16T15:16:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,540 | py | import os
def clear(): #Importação biblioteca para limpeza de tela
os.system('cls' if os.name == 'nt' else 'echo -e \\\\033c')
class cadastro: # Classe cadastro para tipos de dados
nome=''
sobrenome=''
cpf=''
email=''
endereco=''
telefone=0
nconta=0
lcredito= 1000
saldo= 0.0
def dados (l): # Função dados... | [
"viniciusluistedesco@gmail.com"
] | viniciusluistedesco@gmail.com |
e5b816a271981e5e88da96fe714366af82c5840e | bf64d19174ef332f39e2d8210f3eb4f783262554 | /lib/generate_defect/zlrm_Generate_the_defects_data.py | 75ffb5c6ed53c7e27cde20f4b9f75e40f2a2ca73 | [] | no_license | juzisedefeimao/cv | 3e4dd7deee471321e071ca996769fc3b65481993 | fb9e9292030481f5a26efde4003fb83d37a34962 | refs/heads/master | 2020-05-30T14:29:13.253563 | 2019-06-02T01:08:53 | 2019-06-02T01:08:53 | 189,791,743 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,276 | py | from PIL import Image
import numpy as np
from time import strftime
import os
import xml.etree.ElementTree as ET
class Generate_Defect():
def __init__(self, save_image_root=None, save_label_root=None, read_label_root=None,
read_defect_root=None, save_fail_label_root=None, save_fail_image_root=None... | [
"17696272096@163.com"
] | 17696272096@163.com |
f340ae17ed7dee7981490e76342aa9850c34df1d | 5b832a08d8967d8d82f44f1d494b9d3474d68a4c | /chall55.py | fca83463b9c140f7fbe01fef90ed179f4a155d6c | [] | no_license | webhacking/webhacking.kr | 7cce9425316bb462f0d87d71b14302f3a1e8b0e3 | 3e540003cbaf33e5620bee532f71a3722ecd7cfa | refs/heads/master | 2021-01-01T04:28:59.077842 | 2015-06-13T08:44:08 | 2015-06-13T08:44:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | import requests
url='http://webhacking.kr/challenge/web/web-31/rank.php?score=1%09or%091%09and%09right(left(pAsSw0RdzzzZ,'
param='),1)='
cookies={'PHPSESSID':'v8vr9tl8nj5ic89us02rjcgua2'}
#print requests.get('http://webhacking.kr/challenge/web/web-31/rank.php?score=1%09or%091%09and%09right(left(pAsSw0RdzzzZ,1),1)=0x6... | [
"ur0n2@sju.ac.kr"
] | ur0n2@sju.ac.kr |
10a98cde3457743f33c29b120825b0bd0c19af31 | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /tools/mo/openvino/tools/mo/front/onnx/gathernd_ext.py | b638ad0cc4d29c517ebaa0ba1bf96d72f56e7752 | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | Python | false | false | 575 | py | # Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from openvino.tools.mo.ops.gathernd import GatherND
from openvino.tools.mo.front.extractor import FrontExtractorOp
from openvino.tools.mo.front.onnx.extractors.utils import onnx_attr
class GatherNDFrontExtractor(FrontExtractorOp):
... | [
"noreply@github.com"
] | noreply@github.com |
113d8826277c464d78f5df2901a3616ed0be649c | 307089d509d2b72ac036b7fcc5bd60f5759cca6f | /opencv/timelapse-usb.py | 5796e4b04d7171718fe2ddbaca9b0b4efb04bce1 | [] | no_license | bluemooninc/campi | 45a7bf480d6c507a20f132c64ed8315776ccacbb | 7614e2847e12442c1900281662b7bac587a9ee46 | refs/heads/master | 2020-04-06T13:12:41.184245 | 2016-09-06T14:40:03 | 2016-09-06T14:40:03 | 52,285,836 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,127 | py | import cv2
import numpy as np
import time
import datetime
import logging
import scp
import ConfigParser
import os.path
import os
import socket
import glob
import re
import lcd
##
## config
##
inifile = ConfigParser.SafeConfigParser()
inifile.read("/home/pi/camlaps.ini")
serialno = inifile.get("user","serialno")
frameWi... | [
"root@raspberrypi.(none)"
] | root@raspberrypi.(none) |
51ebb937c14abbd238fc78b2b7209d12b00a2742 | 3abb791b043178ee56c46288eed930a435194cff | /streamlit_test_main.py | a6a070812e8d933b73ad986d0323596b88524240 | [] | no_license | masatoraogata369/streamlit_test | b8a0d1577b9df9c8d38c7b8377ea9e0d0724d0b6 | 5e5e9e46dd595a48755bd5dceaf30435dac96d36 | refs/heads/master | 2023-04-15T01:32:14.888087 | 2021-04-28T23:33:44 | 2021-04-28T23:33:44 | 362,457,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,011 | py | """
streamlitを試す、爆速でデータ可視化、分析アプリを作成できる。
**メモ
conda環境なのでconda installでインストールする
マークダウン言語の書式に対応、マークダウン:マークアップの簡単なやつ
#の数で構造を示し、バックコーテーションで囲いがつく
インタラクティブなウィジェットも作れるよー
"""
import streamlit as st
import numpy as np
import pandas as pd
#import time
from PIL import Image
st.title("Streamlit 入門")
st.write("displa... | [
"m.ogata.369@gmail.com"
] | m.ogata.369@gmail.com |
7d914fe69c7e5bff93630dbda1b39b6086d3bc58 | 4c7d74c860c763e8f53eed5ad9bacced58ca253e | /p4/audit.py | c6a63d59a4a31ba6ecc4d27882d68b69468a5685 | [] | no_license | djlee11/udacity-dand | e2261a37090da64e3254de23f7ad0dd041be7536 | 3faa4fb64d3223bdd8650e176fcd317249ec9799 | refs/heads/master | 2021-10-09T21:46:13.855480 | 2019-01-03T19:06:40 | 2019-01-03T19:06:40 | 106,338,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,612 | py | import xml.etree.cElementTree as ET
from pprint import pformat
import pprint
import re
from collections import defaultdict
osmfile = './input/sample.osm'
street_type_re = re.compile(r'\b\S+\.?$', re.IGNORECASE)
num_type_re = re.compile(r'\b[0-9][0-9][0-9]$|\b[0-9][0-9]$')
lowercase_re = re.compile(r'\b[a-z]+\b')
capit... | [
"daniel.j.lee11@gmail.com"
] | daniel.j.lee11@gmail.com |
8a7738f0d32537b2f0994883b51fa8ae1b0e8c30 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-hilens/huaweicloudsdkhilens/v3/model/delete_secret_response.py | aa4df97a980ce2ea5cf944f3cadf638e76878e29 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,211 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DeleteSecretResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the va... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
8503376b74b2a923b8e2a3000559857a39e7f56c | f79ad09628384296750132040c008c8c6f3a24b2 | /Kotomi/Kotomi/blog/views.py | 39d9303308c92fed4a6517015a321d8a465ce0e9 | [
"Apache-2.0"
] | permissive | 1tuanyu/Django | 4cd671ab2cb0cc7394431f470a29f6061388e9f4 | 466b4b4b1a5b3b81c3315fd26e8dfa8ddad7d272 | refs/heads/master | 2021-01-24T21:12:35.910075 | 2018-03-29T12:21:44 | 2018-03-29T12:21:44 | 123,267,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | from django.shortcuts import render
from blog.models import Article
# Create your views here.
def Home(request):
articles = Article.objects.all()
return render(request, 'home.html', {'articles':articles})
def Post(request):
return render(request, 'post.html')
def Post_success(request):
... | [
"noreply@github.com"
] | noreply@github.com |
3a51ca22b295a333d9652b5110a5ba537c2e0b23 | ff1bc2cf1cd042201df0a11da62b38725af55bfb | /setup.py | 1d2392e1304ab5e3c0320a0aff81a1543c3e8308 | [
"MIT"
] | permissive | darkbarker/pybarker | a425181149d79436c92b4ded6e3dbfc3b5934c32 | e04c79cab6ca6005761391f0bd267b8e69aed7ea | refs/heads/master | 2023-08-20T19:19:57.424908 | 2023-08-14T20:11:03 | 2023-08-14T20:11:03 | 190,403,537 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from setuptools import setup, find_packages
from os.path import join, dirname
import pybarker
setup(
name="pybarker",
version=pybarker.__version__,
packages=find_packages(exclude=["tests"]),
include_package_data=True,
long_description=open(join(dirname(__file__), "README.md")).read(),
install_... | [
"barkdarker@gmail.com"
] | barkdarker@gmail.com |
f0726feaad28d68f162f4eb3e242c62833307ecb | cdb186ad49bba1406c81f634b936e73f8cb04009 | /ABC/120/d2.py | 59601ef036cf61ce1bab54e68b795dbf3a972c45 | [] | no_license | ToshikiShimizu/AtCoder | 9e46f5581f2c1f5149ce1394d61d652cda6256a3 | 41fe6408c20c59bbf1b5d7ee9db2e132f48ad1ac | refs/heads/master | 2023-07-26T22:45:51.965088 | 2023-07-10T14:11:35 | 2023-07-10T14:11:35 | 148,154,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | class UnionFind:
def __init__(self, n):
self.nodes = n
self.parents = [i for i in range(n)]
self.sizes = [1] * n
self.rank = [0] * n
def find(self, i): # どの集合に属しているか(根ノードの番号)
if self.parents[i] == i:
return i
else:
self.parents[i] = self.f... | [
"tamreff3290@gmail.com"
] | tamreff3290@gmail.com |
4f82550e771ed9f4ab7424687d1833c1afbf8e2e | 7e61a8a6724ab1f6fe2cf8ec896faa7c9c56866a | /precision_tool/lib/pt_dump.py | 155bd8c516519a714a4df3690457ba38c94b0d71 | [
"Apache-2.0"
] | permissive | BruceDai003/tools | 66f91972c2deb547bbeb8220735647efcb224a90 | 332f112457e61b235e7cc4bc1e156dbe14456c3c | refs/heads/master | 2023-08-22T23:34:51.359807 | 2021-10-29T01:58:56 | 2021-10-29T01:58:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # coding=utf-8
import os
import re
import time
import sys
from lib.util import util
from lib.constant import Constant
import config as cfg
from lib.precision_tool_exception import catch_tool_exception
from lib.precision_tool_exception import PrecisionToolException
class PTDump(object):
def __init__(self):
... | [
"derek@derek-HP-EliteBook-840-G5"
] | derek@derek-HP-EliteBook-840-G5 |
5f85a771ec230122fb965c210478c90c309f52ed | 5d392d98549b0e0968510c9f23cc0ea3319d7e8a | /webapp/handlers/councilMemberHandler.py | c1b7560dce26c997c0abfe18513be0e83c8cddad | [] | no_license | jimclouse/MosaicRx | 27b9fc510cc146e2b7a56500da31f67fb79649c4 | c4165494a801f7c0ae045e0cef6ab6ac3c20c6df | refs/heads/master | 2020-12-24T15:14:33.109075 | 2014-12-04T16:07:13 | 2014-12-04T16:07:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | #! python
import tornado.web
from partyHandler import PartyHandler
from webservice import graphService
class CouncilMemberHandler(PartyHandler):
@tornado.web.asynchronous
def get(self, councilMemberId):
partyId = graphService.getPartyId('cm', councilMemberId)
PartyHandler.get(self, partyId) | [
"jclouse@glgroup.com"
] | jclouse@glgroup.com |
fe4b088965733c8cd6566d2b0f2c4b92ba22e423 | 1aa0ec8b98e66adc191627a3fbbed3aa28c67da9 | /app/reduce-count-quarter-q2/route.py | 60423bf257de638f27f06d90be8ee1d7154423af | [] | no_license | sfenman/openfass-new-york-taxi | bd51a32cd5ca84516f63163cc310a4a8fbe26b54 | e517328371a586a475c11c452e3af4f5b5dd4b06 | refs/heads/master | 2023-03-14T21:43:18.496034 | 2021-03-26T23:25:11 | 2021-03-26T23:25:11 | 345,122,872 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | class Route:
def __init__(self, route_id, vendor_id, pickup_datetime, drop_off_datetime,
passenger_count, pickup_longitude, pickup_latitude,
drop_off_longitude, drop_off_latitude, store_and_fwd_flag):
self.route_id = route_id
self.vendor_id = vendor_id
self.... | [
"vasileios@konstantinou.dev"
] | vasileios@konstantinou.dev |
54a7dd065083236b7cf6bdf9d3d0e9405dab0f29 | 1c3f4acfdedd139ee7b05093fd26a8becc6c1cd8 | /CURSO DE PYTHON 3/Mundo 1 - Fundamentos/3 - Usando módulos do Python/Exerc017.py | d9df3c45b9e8f8ac53ec6e58a3f12109a224efb4 | [] | no_license | thiagosousadasilva/Curso-em-Video | 7d358384e03b9289bf62c90d2268e0654fbae9a7 | 2419797fcd688dcb78ca110ed18e06daec3bbcc4 | refs/heads/master | 2023-03-01T06:21:35.855862 | 2021-01-27T11:50:37 | 2021-01-27T11:50:37 | 258,023,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # Faça um programa que leia o comprimento do cateto oposto e do cateto adjacente de um
# triângulo retângulo. Calcule e mostre o comprimento da hipotenusa.
# h² = Co² + Ca² - ou usar pronto no modúlo math
import math
print("=========== desafio 017 ============")
CatOp = float(input('Informe o comprimento do cateto opos... | [
"10331515+thiagosousadasilva@users.noreply.github.com"
] | 10331515+thiagosousadasilva@users.noreply.github.com |
5a1bb3ebb5d23d720a4240471f0ea019787bdee9 | 984a797d9f81dd8d60a4d9f0861d1e8a88581026 | /PY/Week 3/CLASS/fibonacci.py | ab556c0f9174deb2b4cba1bba532f80617811d1a | [] | no_license | Yazurai/ELTE-IK-19-20 | 69e6c39b609886cce66155aaaadd0aaeb0415440 | 46fe1699885577d7fd7ffe06b3969ef34dd7e6d5 | refs/heads/master | 2020-07-23T02:19:08.724761 | 2019-12-17T10:23:10 | 2019-12-17T10:23:10 | 207,415,313 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | def fibonacci(n):
fibList = [1,1]
for i in range(2, n, 1):
fibList.append(fibList[i-2] + fibList[i-1])
return fibList
| [
"saof2t@labimg.inf.elte.hu"
] | saof2t@labimg.inf.elte.hu |
f4be12af244d26d05589402a082c127df231e385 | f9549f2657202068d331d81b519a51ed7c3f3776 | /0x06-python-classes/6-square.py | 44b00c18e9ba0d4007b99e94d994b9a4f2d74312 | [] | no_license | BardoftheOzarks/holbertonschool-higher_level_programming | 0e54774bd2581137cb58e116ac7e2985967ccd60 | 191484674583d084b15129a38788e82d4869c555 | refs/heads/master | 2023-04-20T01:01:50.221645 | 2021-05-13T21:20:32 | 2021-05-13T21:20:32 | 291,762,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | #!/usr/bin/python3
'''Creates a class with two attributes'''
class Square:
'''A class with two private instance attributes'''
def __init__(self, size=0, position=(0, 0)):
if type(size) is not int:
raise TypeError('size must be an integer')
if size < 0:
raise ValueError(... | [
"1886@holbertonschool.com"
] | 1886@holbertonschool.com |
b6c4e6243f7aed9aeb62bb560838ff5c8daa92fe | 94b9589d8eb357f784f425051ffb10aa6d2104fa | /lib/doconce/__init__.p.py | cb305805b347a221aa72ac2fccf05f1fe1447c5c | [
"BSD-3-Clause"
] | permissive | sjsrey/doconce | 29607366756a3f48568a128a88c9bb5d65dc3d9d | 7bd32f8b0c99ad6f1173df0c8e058ea1bd400e28 | refs/heads/master | 2021-01-15T17:55:48.436706 | 2015-08-25T09:30:19 | 2015-08-25T09:30:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | '''
# #include "docstrings/docstring.dst.txt"
'''
__version__ = '1.0.3'
version = __version__
__author__ = 'Hans Petter Langtangen', 'Johannes H. Ring'
author = __author__
__acknowledgments__ = ''
from doconce import doconce_format, DocOnceSyntaxError
| [
"hpl@simula.no"
] | hpl@simula.no |
5c1ae67adb38e75d56a6b033979191ccaf1b9c4c | 06a26410235304ca3061f2abf861ceef3eef6c22 | /tools/BUILD | 8ca73d1470ef71b2fb4ba46f3bc7997dcc8e7d46 | [
"Apache-2.0"
] | permissive | mjbots/rules_mbed | d36354388661f5b1eaed3b88daf3fe201d4ab29c | 4a7094b9082625de3b979eae7f5df705cf110695 | refs/heads/master | 2023-01-13T21:56:15.464329 | 2023-01-09T12:47:59 | 2023-01-09T12:47:59 | 157,472,176 | 21 | 6 | null | null | null | null | UTF-8 | Python | false | false | 830 | # -*- python -*-
# Copyright 2018 Josh Pieper, jjp@pobox.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/LICENSE-2.0
#
# Unless required by applic... | [
"jjp@pobox.com"
] | jjp@pobox.com | |
5f102bdaa532902c1a9f811afa1e6ef43103f512 | 9381f6e3c6e13295467726ced5e6e4a8b3dedc45 | /api/follow.py | 575b6114cb170c195dfd90306b6d089122052f2d | [] | no_license | ayushi0407/twitterback | 7043a8053c7eca5807e081413369935420943b39 | 566dff5d068a86ae556b59b7e101178cc38a9d2c | refs/heads/master | 2022-12-16T11:40:46.470416 | 2020-09-12T10:10:19 | 2020-09-12T10:10:19 | 294,917,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from rest_framework import permissions
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import Is... | [
"ayushi.bansal@ad.avantis.reg"
] | ayushi.bansal@ad.avantis.reg |
2b839ebabd98bcd1a390bd0a54812a9f5ccb336c | 3e6eecee5db3eedf395111a2abfe96bc3593fccd | /main.py | 965d940990f142146dfcb4e4ca3cdf8a398b7628 | [] | no_license | cassiostp/gauss_jacobi_seidel | 07c1d84f0f4e77ec6bc793a85e20944b76cb416c | 433277d47d81374e89a94884c0625cb58a339cbd | refs/heads/master | 2021-01-17T17:44:50.210833 | 2016-07-10T23:36:40 | 2016-07-10T23:36:40 | 63,022,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | import gauss_jacobi_seidel as gj
import matriz_inversa as mi
print("valor de n:")
n = int(input().strip())
A = []
b = []
for i in range(n):
print("digite os elementos da linha", i+1, "da matriz A separados por espaço")
A.append([int(i) for i in input().strip().split()])
print("digite os elementos de b separad... | [
"cassio@localhost.localdomain"
] | cassio@localhost.localdomain |
858f100f30a77b9896b990ff08eca4a6d9244282 | f3cc5ee09c357fa9731dd4e3e4d575dfce02d97c | /sandboxsite/restapp/urls.py | 37153599f2606e83db9dfe7dd0bab930e04ae639 | [] | no_license | luafran/django_sandbox | 458c2d520417e07a849da6b2988dd0521a208cc6 | b114adb11ad402bfcfcb6d4bec204b456b6bac20 | refs/heads/master | 2020-05-15T16:50:59.451052 | 2013-10-02T22:26:58 | 2013-10-02T22:26:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from django.conf.urls import patterns, url
from django.conf.urls import include
from rest_framework.urlpatterns import format_suffix_patterns
from restapp import views
urlpatterns = patterns('',
url(r'^$', views.api_root),
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
url(... | [
"luafran@gmail.com"
] | luafran@gmail.com |
2f79fe00c71069bbe2135128f1342bdedca5b0c0 | ff76c7227c0fc0f0c691bc0592d6d5f67afd2d5e | /Classifier.py | 5a127b22d41b6402c02216dd4d6b799407b1b1cd | [] | no_license | HaTiMuX/SFC-Routing | 5bbd97aadc81b6983ddaef995f87502602a83067 | 6cb5157f72aad530b2b5b18dd3ea1b0d443f41d1 | refs/heads/master | 2016-09-06T01:17:31.449316 | 2014-07-02T09:05:40 | 2014-07-02T09:05:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,494 | py | #@Author=HaTiM#
#@Title=Classifier#
#@Function=MARK PACKETS DEPENDING ON SPECIFIC RULES#
import nfqueue, socket
from scapy.all import *
import os
<<<<<<< HEAD
os.system('iptables -A PREROUTING -j NFQUEUE --queue-num 0')
def conversion(N):
b = []
div = [10000, 1000, 100, 10, 1]
i=0
for d in div:
if N/d==1:
b... | [
"chikhi.hatim@gmail.com"
] | chikhi.hatim@gmail.com |
6c6f33f15b63b5e19d285baad83f87e0e8d5507d | eda4a1f746555c9cefa7020f94cd6cc2e73a5588 | /beancount2gnucash.py | c4b738ae4438024152a3fa948ec29188f4c8f64c | [
"MIT"
] | permissive | juniorkrvl/beancount2gnucash | f03d6ff4f5ee1b5f37fd8f7da1d80b6b8423ae86 | 3e647e3e53429fd1e95a750601dbac1534d1dac2 | refs/heads/master | 2023-03-15T09:39:40.007648 | 2018-12-23T23:15:39 | 2018-12-23T23:15:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import os.path
import csv
from collections import defaultdict, OrderedDict
from difflib import get_close_matches
from beancount import loader, core
LEDGER_FILENAME = "ledger_filename"
GNUCASH_ACC_TYPES = {"BANK", "CASH", "ASSET",
"CRE... | [
"lebenlechzer@gmail.com"
] | lebenlechzer@gmail.com |
528e65d3ed31b3633bd16eca31c0589448258003 | 1a39f63f7eb10ade06babcc42277ed5c6920d6d9 | /main.py | 5ad459c28a5df223af183ec09b8646ff957de84b | [
"MIT"
] | permissive | TanishqSinghAnand/Snake-Game | 8e8c9661c7e882ec2aafaa9c60cee9a18ca0ac8a | 7443ef88d033035225f0680828b5cacbf565d976 | refs/heads/master | 2023-01-22T22:48:22.107623 | 2020-11-19T05:08:49 | 2020-11-19T05:08:49 | 314,266,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,429 | py | import random
import pygame
import sys
from pygame.locals import *
FPS = 15
WINDOWWIDTH = 640
WINDOWHEIGHT = 480
CELLSIZE = 20
assert WINDOWWIDTH % CELLSIZE == 0, "Window width must be a multiple of cell size."
assert WINDOWHEIGHT % CELLSIZE == 0, "Window height must be a multiple of cell size."
CELLWIDTH = int(WINDOW... | [
"codertanihsq@gmail.com"
] | codertanihsq@gmail.com |
2e25806580836631d6e2798b5384d8666c21ee62 | 5806179a278376dc3e74e9f325e32ab822549388 | /anlysisHtml.py | 364b4dfbee42b3d54a4c6afcb5e3b2d41d5b4486 | [] | no_license | wobuaixiatian/python | 6d3253354c1e70759268a4e91f131dfc270ea7cd | 99d70bc2a2a456e185f2f5b1f712db69221efcba | refs/heads/master | 2021-08-28T04:44:41.636349 | 2017-12-11T07:33:19 | 2017-12-11T07:33:19 | 110,091,373 | 0 | 0 | null | 2017-11-09T09:05:02 | 2017-11-09T09:01:32 | null | UTF-8 | Python | false | false | 560 | py | #!/usr/bin/env python3
#coding=utf-8
from html.parser import HTMLParser
class HeadingParser(HTMLParser):
inHeading = False
def handle_starttag(self, tag, attrs):
if tag=="h1":
self.inHeading=True
print(attrs)
print(len(attrs))
print(attrs[0])
print(attrs[0][0])
print("Found a Heading 1")
def hand... | [
"noreply@github.com"
] | noreply@github.com |
32b159d3e89f55e8eccccecfaf31297f24ad7ebc | 2d9fe8fb852c1db37d4408e5ee4fe1b5baa5b3ba | /question7.py | 461623baea8f4c9fbe702e729b34d90d7359dde4 | [] | no_license | tUNg131/Problem-sets | 6a1348612f53f85caa56fc3992e82701dbf84013 | 9bc917dd74bff82eb1ddd2d46a9b6748560f77e0 | refs/heads/master | 2020-12-02T13:56:06.188396 | 2020-01-02T05:44:32 | 2020-01-02T05:44:32 | 231,029,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | import pdb
items =[int(x) for x in input().split(',')]
rowNum = items[0]
colNum = items[1]
values = [None] * rowNum
for i in range(rowNum):
values[i] = [j*i for j in range(colNum)]
print(values)
| [
"halethuy.hlt@gmail.com"
] | halethuy.hlt@gmail.com |
6c4f6816a6de12a44d590d811c46cefc4ea60004 | c1ad3ee7e6445f59bc010c044ca08668b157fc8e | /Logic/Logic.py | 7b70b3edf977b96fac36d6509c932e41806dd0fc | [] | no_license | MennaAly/StockMarket | 2bbc79cc7e085ca5c808d5c5f7b3a3b3530f03a3 | 5372ca30bbc280da1d3539112171ce9b069ea736 | refs/heads/master | 2020-03-24T14:07:56.892422 | 2018-07-29T21:45:17 | 2018-07-29T21:45:17 | 142,760,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py |
class logic():
def collectColoumnData(self,data):
coloumn = ''
for idx,element in enumerate(data):
if idx != len(data)-1:
coloumn = coloumn + element + ','
else :
coloumn = coloumn + element
return coloumn
def seperateColumnDat... | [
"mennaali365@gmail.com"
] | mennaali365@gmail.com |
aaaf565ad47e8103eb9e97641bdf8ffd51d95875 | d1da57ac542041d33a5b9e422d80ae5266b5c21f | /utils.py | 1b8fab5ba1147a0c13037d24a6e36ac113cb92fa | [] | no_license | GiBg1aN/TVVSD | 17937c9c7a38e751c38299ec2e5f9af8b406a847 | 4c43b10456dba55fc35690bff486f87cc857df14 | refs/heads/master | 2023-01-05T00:20:47.705989 | 2020-11-08T09:21:51 | 2020-11-08T09:21:51 | 177,809,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,645 | py | import numpy as np
import pandas as pd
def filter_senses(senses: pd.DataFrame, sense_labels: pd.DataFrame) -> pd.DataFrame:
"""
Remove senses that are not used in dataset images.
Args:
senses: A dataframe of verb senses
sense_labels: A dataframe containing the correct sense for each
... | [
"bigagliagianluca@gmail.com"
] | bigagliagianluca@gmail.com |
03e5eae2cb9acad5815aa5fbf6229dcc8d178b22 | c33fd38d2c79ca740b0bcde934034168a37698aa | /myenv/bin/gunicorn | 95c1f3bdbc438aa3fd5fd24b7744132c8568e1c9 | [] | no_license | kxnaylorCLE216/resumeSite | 7531da230b35e7abb057f53cb44d747e22c4c81a | 7aaa2aa59ae1fc4b8faf7c56c904c65b9fdf9b6e | refs/heads/master | 2022-10-06T04:47:28.667125 | 2019-06-28T02:59:02 | 2019-06-28T02:59:02 | 193,295,961 | 1 | 0 | null | 2022-09-23T22:26:15 | 2019-06-23T01:56:11 | Python | UTF-8 | Python | false | false | 248 | #!/home/kxn/Repos/resumeSite/myenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"naylorkx@gmail.com"
] | naylorkx@gmail.com | |
ea4b5219ef13b73d5f4b75e5b228f31c963c9b3d | 4d9cc4aa35cf950f7cf2a90b8feae293901bb560 | /docsite/source/conf.py | c65216b602969da9c566722a48fb88a88a4a3a46 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wgd3/dcaf | 0dc445daf04832f43d4a895314508f46750be821 | 24d95d74072d0946cba499e671e3440a7bb4e574 | refs/heads/master | 2021-01-12T11:46:25.511293 | 2016-04-08T17:42:33 | 2016-04-08T17:42:33 | 54,895,839 | 0 | 0 | null | 2016-03-28T13:56:03 | 2016-03-28T13:56:03 | null | UTF-8 | Python | false | false | 9,376 | py | # -*- coding: utf-8 -*-
#
# CSC DCAF documentation build configuration file, created by
# sphinx-quickstart on Thu Mar 3 14:19:20 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | [
"mtnbikenc@gmail.com"
] | mtnbikenc@gmail.com |
41117c486c96cbc1a0b8327e00987380acb66a43 | 7a755ea07e20f238d171d0a00fae10c03c7fb873 | /plfit/plfit.py | fcfb89053086b20a7cab3b3807df4e1137583ec4 | [
"MIT"
] | permissive | tbowers7/plfit | 14bedc6af0d62e70b201d3047d84b99a33b744cb | 37c831d674927cfde9c7e9e85623cd7bd056b950 | refs/heads/master | 2020-05-20T19:29:30.715766 | 2014-02-05T20:20:15 | 2014-02-05T20:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,899 | py | # -*- coding: latin-1 -*-
#
# intended to implement a power-law fitting routine as specified in.....
# http://www.santafe.edu/~aaronc/powerlaws/
#
# The MLE for the power-law alpha is very easy to derive given knowledge
# of the lowest value at which a power law holds, but that point is
# difficult to derive and must... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
a80d9b938594db48e8dd0d649481f0021e23eaa1 | 7d8332bbe03ec8c896f6ead97fa3b29a06e9b14f | /Q002.py | 7a786079b8bca93cdc6399d9cc94b0a2b210eb0e | [] | no_license | geomotion-luka/python-exercises | ea96f050ce4dd811ded973d147d4423678588420 | 79d3abced3492e263a8a9ad0003ce0b2503a40dd | refs/heads/master | 2020-04-08T18:16:39.221184 | 2018-12-11T08:25:01 | 2018-12-11T08:25:01 | 159,600,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | #----------------------------------------#
# Question 2
# Level 1
#
# Question:
# Write a program which can compute the factorial of a given numbers.
# The results should be printed in a comma-separated sequence on a single line.
# Suppose the following input is supplied to the program:
# 8
# Then, the output should be... | [
"luka.peric@geomotion.com.au"
] | luka.peric@geomotion.com.au |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.