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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
db604c59ed67ae9680c1fe9108853daaf57af74b | 3d5958a79c02fe885324956bfead037999c73c7a | /trimesh/io/stl.py | 32912d8f687bcee9809cc8e06c6380fe138bfba6 | [
"MIT"
] | permissive | Mambix/trimesh | def56d14994076cfcc24e3c3d67d5e27bea5bb49 | 99d01909a1f4cf56d777a8339a6c2443cf37d6b8 | refs/heads/master | 2020-05-27T21:20:11.800221 | 2017-03-02T00:57:53 | 2017-03-02T00:57:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,643 | py | import numpy as np
# the exception raised if an STL file object doesn't match its header
class HeaderError(Exception):
pass
# define a numpy datatype for the data section of a binary STL file
_stl_dtype = np.dtype([('normals', np.float32, (3)),
('vertices', np.float32, (3, 3)),
... | [
"mik3dh@gmail.com"
] | mik3dh@gmail.com |
d3d1454a1e0b0444fc496dc034dc9ede20336aa2 | 98f92376ac0ad80c2970fa3e012649f3a12bf064 | /www/apis.py | b80488a0d5dfc337239d912efa0d2769cfe2af61 | [] | no_license | yuist/awesome-python3-webapp | 6adac8617390cf99f2d6a6e49b54a1559546ee45 | d29d69883a7606005927706ca5ef0f843b79985a | refs/heads/master | 2021-04-15T04:39:42.228713 | 2016-06-27T15:05:13 | 2016-06-27T15:05:13 | 61,437,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | '''
JSON API definition.
'''
import json, logging, inspect, functools
class APIError(Exception):
'''
the base APIError which contains error(required), data(optional) and message(optional).
'''
def __init__(self, error, data='', message=''):
super(APIError, self).__init__(message)
self.error = error
self.da... | [
"heygz@outlook.com"
] | heygz@outlook.com |
20fe5b0263f72b03e4ae1cdf890921f70b6e373a | 50a12a72e68d90fbd358e42b667242ad7c9373b1 | /shenfun/legendre/matrices.py | d2c18434839b61b1d0b412a8c8a9cfe43e93be08 | [
"BSD-2-Clause"
] | permissive | AMSSYu/shenfun | 1a3be63ec9ef8c5c97fff354838c2e88e65f71d3 | c4c657e217ab7bcfb7d6e213569d16e108c7f0b2 | refs/heads/master | 2023-05-19T11:13:36.979962 | 2021-06-08T14:20:46 | 2021-06-08T14:20:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,109 | py | r"""
This module contains specific inner product matrices for the different bases in
the Legendre family.
A naming convention is used for the first three capital letters for all matrices.
The first letter refers to type of matrix.
- Mass matrices start with `B`
- One derivative start with `C`
- Stiffness ... | [
"mikaem@math.uio.no"
] | mikaem@math.uio.no |
480d9a66e2a6c4e56d92084f3b27f5626c89d12a | f9b5c37a098ed940d943415aadda130c13271754 | /dailyfresh/f_goods/migrations/0003_auto_20180619_2120.py | 47da203ab64800d2950a865ce0879526e9bf7ef2 | [] | no_license | duanHongPy/django | cd00fe819576741a7c1860ea420275129d759d67 | 3fee019b3d8d50218410366d62eac29700f9e69a | refs/heads/master | 2020-03-19T23:28:01.420061 | 2018-06-21T02:53:19 | 2018-06-21T02:53:19 | 137,007,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-19 13:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('f_goods', '0002_auto_20180619_1910'),
]
operations = [
migrations.RemoveFi... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
47d6438fc39b3dc54f0f67e58b6c3bf2e0d5d439 | e7b6d3fc8665af1c7030316765d24da5e3986e29 | /utils/wdb.py | 877b061964204a1ec323b2cb86a9fc77c1c831e9 | [
"MIT"
] | permissive | convexy/pyutils | 9f3406a611835a49f0e05d6b4181476a74aad0a3 | a3d972f358f7f7ea5dfa0f49274e703ad2a66cb8 | refs/heads/master | 2022-12-19T17:03:48.139964 | 2020-10-17T05:13:16 | 2020-10-17T05:13:16 | 297,640,773 | 0 | 1 | MIT | 2020-10-17T05:13:18 | 2020-09-22T12:24:56 | Python | UTF-8 | Python | false | false | 2,051 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Module : utils.wdb
Function : DB接続クラス(MySQL)
How to use : from utils.wdb import WDB
with WDB() as wdb:
wdb.addQuery(...)
wdb.addParam(...)
wdb.execute()
Author : K.Shibuya
Version : 2020/... | [
"shibuya.keigo@gmail.com"
] | shibuya.keigo@gmail.com |
96e8c5c0de2d305c63d6d23a0b1aaeb507e67ff8 | ddd7d37f3a98b508e16f27978bf788fc61358225 | /wsgi.py | 06b4bc7a115d792c6e0690fac47c8d93e9c07d3e | [] | no_license | nbh847/bbs_practice | b124e59b86b8fb65b2e5ee34b8e7065a05bcee41 | 21946cbf27a34028a53144a2c202d763fda6ee21 | refs/heads/master | 2020-03-28T19:20:31.590484 | 2018-10-24T14:15:40 | 2018-10-24T14:15:40 | 148,966,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | #!/usr/bin/env python3
import sys
from os.path import abspath
from os.path import dirname
# 设置当前目录为工作目录
sys.path.insert(0, abspath(dirname(__file__)))
# 引入 app.py
import app
# 必须有一个叫做 application 的变量
# gunicorn 就要这个变量
# 这个变量的值必须是 Flask 实例
# 这是规定的套路(协议)
application = app.app
# 这是把代码部署到 apache gunicorn nginx 后面的套路
"... | [
"binhui.ni@yourdream.cc"
] | binhui.ni@yourdream.cc |
a2f936bfeb591ecfa923f0eca1b3550b486fba01 | 5553454020f1a9f277d05424d53ce4b4020e8b5c | /WSOL_CUB/utils_adl/util_bbox.py | dc1bdbee6cfce73c2ed7d1451592d6a85d5e70b8 | [] | no_license | anon-conference/Attributional-Robustness | 7a84832bb0b5dc3a8d822e691a4b069c2cfcb1fa | 003f4f3fb01baa715e33ca03240eb2b4ea6bf2f8 | refs/heads/master | 2020-09-15T03:32:43.844447 | 2019-11-23T05:11:39 | 2019-11-23T05:11:39 | 223,338,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,477 | py | import os
import numpy as np
import torch
import torchvision.transforms as transforms
from utils_adl.dataset_cub import CUBCamDataset, get_image_name
import cv2
def load_image_size(dataset_path='datalist'):
image_sizes = {}
with open(os.path.join(dataset_path, 'sizes.txt')) as f:
for each_line in f:
... | [
"Fruits@org"
] | Fruits@org |
dcf5faa2519dcf69ad7466317ad70a8daf665e55 | 4b28807c62ae456e26503493423c775fca315a66 | /backend/api/views/image_views.py | 9633e23470e5aa878e09ce2c94c8d3ad0480315f | [] | no_license | doohong91/ocr-project | fedbdf1158d972f32a747788661b0968735bfcbb | 22188f100df8414610c91b9eac98e15b6e746207 | refs/heads/master | 2023-02-20T18:57:19.654477 | 2020-08-23T08:57:22 | 2020-08-23T08:57:22 | 288,961,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from rest_framework.viewsets import ModelViewSet
from api.models import Image
from api.serializers import ImageSerializer
class ImageViewSet(ModelViewSet):
queryset = Image.objects.all()
serializer_class = ImageSerializer
| [
"doohong91@gmail.com"
] | doohong91@gmail.com |
8476d62e077536784330e0340da0fcce7fc8fbfa | 6dfc3af11a91d6e3c101f2cb655d222726170e71 | /pilotbid/migrations/0001_initial.py | a82a900cee90458a123818797d75b6b6153f3f53 | [] | no_license | seanburnz/swgpilotbid | 01fc83b8cf5a0d0020ce60f08e95d8cb826d7d26 | 1a5c60470ba8145b7b4be0326badf1dd90239ac8 | refs/heads/master | 2020-12-31T04:28:29.616313 | 2016-04-12T19:33:57 | 2016-04-12T19:33:57 | 56,021,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,826 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-12 15:40
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import pilotbid.models
class Migration(migrations.Migration):
initial = True
dependencies =... | [
"seanburns@hotmail.com"
] | seanburns@hotmail.com |
3b2933c2a78105815d35f620b0fe153ed6a99d8c | fca36ece36254e6175d7ac26791ae0e0abedd040 | /ex03.py | 8f728c512cd7fc125cef46901dabc8aa8b3eabc0 | [] | no_license | DikranHachikyan/python-programming-20190318 | 72c63ccdb716db871c755bb589e333c9fc57bcd5 | 0e6b4c599be3d69efdb4acf7817abc3d9d41eb7b | refs/heads/master | 2020-04-29T23:35:10.401263 | 2019-04-18T14:59:30 | 2019-04-18T14:59:30 | 176,480,840 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | #!/home/wizard/anaconda3/bin/python
def main():
x = int(input('x='))
if x < 10:
print('x={}'.format(x))
main() | [
"dhachikian@expert-bg.org"
] | dhachikian@expert-bg.org |
7c2da6da0584f39818fbf738cbb2c1a7d78c13aa | 8535bbc7781c4691880c935bd7025646f0dbb7c3 | /check mirror images of two arrays.py | daa0276c484e75516f27c7d2d1b8b51dc8139981 | [] | no_license | Mahadev0317/Codekata | 3b2149f3116ebe4b48b2059b873544c27b23ff39 | c35fa0ed0c4870faea69152638f461e743a9ff69 | refs/heads/master | 2020-04-15T04:59:17.062947 | 2019-05-29T04:46:35 | 2019-05-29T04:46:35 | 164,404,727 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | n=int(input())
li=list(map(int,input().split()))
lis=list(map(int,input().split()))
k=n-1
for i in range(n):
if li[i]!=lis[k]:
print("no")
break
k-=1
else:
print("yes")
| [
"noreply@github.com"
] | noreply@github.com |
bdb0d7c2b2a47298919e349fc76985435817b643 | ebba63ce2e6023e26d6c044031c4eb14495eb556 | /webex-bot-investigator.py | d3b83889d6310fb615968882140d2078156f7ed0 | [] | no_license | dmkazakoff/WebexTeams-Investigation-Bot | 76a35bdb20a655fa32790196c99132433669514e | 64e01f0b8c25c1cdf1fb787ab15510ccc6c4fcef | refs/heads/master | 2023-05-24T23:12:28.860050 | 2021-01-22T10:34:48 | 2021-01-22T10:34:48 | 238,867,878 | 1 | 1 | null | 2023-05-22T22:17:54 | 2020-02-07T07:37:32 | Python | UTF-8 | Python | false | false | 32,261 | py | from http.server import HTTPServer, BaseHTTPRequestHandler
import json
import ssl
import re
import sys
import math
import requests
import numpy
import mdmail
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry
from operator import itemgetter
from threatresponse import Threat... | [
"dkazakov@ashes.cc"
] | dkazakov@ashes.cc |
0a331a3b82ed7158160d649998ab4088aa59d354 | 0c7ab94ee2dafc06773b6e98a80b339c05d51c26 | /if__name__/b1.py | 62539b67c05a76d4e2dd5c401a3a1c5da341d10b | [] | no_license | shaukatmakandar786/Python | d228fd0ff5b1120e9fa6a875a6d588dbeb02f215 | e6227373b1a60e6f65a799ebea13c5811b117420 | refs/heads/master | 2022-11-25T17:25:32.554515 | 2020-08-05T17:02:45 | 2020-08-05T17:02:45 | 271,779,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | def fun(Str):
return f"my name is {Str}"
def add(a,b):
return a+b
if __name__=='__main__':
a=fun("shaukat")
print(a)
b=add(10,20)
print(b)
print(__name__)
"""
output:
my name is shaukat
30
__main__
""" | [
"shaukatmakandar786@gmail.com"
] | shaukatmakandar786@gmail.com |
bb81fe87bc92de5b59e0b31077919dbae35421be | 4b1424351ca131bc558a08071e868d2f4e9f57f9 | /layout_transformer/model.py | 998bd0cc3db8aac384a85304c550f0e99449042a | [
"Apache-2.0"
] | permissive | Byastal/DeepLayout | e339c92f2adda090d59f90ace80dde4c2e6b86ed | 60ebaca7f29a14d92c455f83e681c0bd8e2962fe | refs/heads/main | 2023-08-28T20:09:10.528693 | 2021-11-06T18:47:48 | 2021-11-06T18:47:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,500 | py | """
GPT model:
- the initial stem consists of a combination of token encoding and a positional encoding
- the meat of it is a uniform sequence of Transformer blocks
- each Transformer is a sequential combination of a 1-hidden-layer MLP block and a self-attention block
- all blocks feed into a central residual p... | [
"kamalgupta308@gmail.com"
] | kamalgupta308@gmail.com |
9637148b40d6ef83b7052912b70a02bdcb9aa020 | 685a6eebb045b876226a15b3fe5a5cc36949a137 | /image_collector.py | 768203ca9502a25eceb07409293d9a6a75e8da1a | [] | no_license | schoolboystev3/EECS149-Final-Project | c3eb712d720668b04014d87be926b5aa9542e8c4 | 10faf653bd6f3d1269b1cf6dd3eb6e257d8ab24f | refs/heads/master | 2020-09-06T04:26:42.685893 | 2019-12-17T18:06:55 | 2019-12-17T18:06:55 | 220,321,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | # USAGE
# python barcode_scanner_video.py
# import the necessary packages
from imutils.video import VideoStream
from pyzbar import pyzbar
import argparse
import datetime
import imutils
import time
import cv2
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-o", "... | [
"sam.hausman@gmail.com"
] | sam.hausman@gmail.com |
380aef44b9b7964ea582816fee79936176253abd | 8152e8fba564bcfa435c45dab41cd6f0b455f857 | /farmdation_project/farmdation/contrib/sites/migrations/0002_set_site_domain_and_name.py | 4c91e98dd67d65f97ee31ca5c1c705f719a236ea | [
"MIT"
] | permissive | panuta/django-storehouse | af068d9fb356f1f6243854c8944ff8146833202e | 6b90b0de231671b20f2f549a74a52d87694d821a | refs/heads/master | 2021-01-17T18:19:45.791785 | 2016-07-02T02:52:04 | 2016-07-02T02:52:04 | 62,430,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | """
To understand why this file is here, please read:
http://cookiecutter-django.readthedocs.org/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django
"""
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.db import migration... | [
"panuta@gmail.com"
] | panuta@gmail.com |
9404fc7b69c9461b11360f92805c0269adeb68e9 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/9e606bfdbe039112b609c263cb4dfc23e31ffe93-<check_regressors_train>-bug.py | 46b71af4c66c69b7a702b9f117d56ad37df9194f | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | @ignore_warnings(category=(DeprecationWarning, FutureWarning))
def check_regressors_train(name, regressor_orig):
(X, y) = _boston_subset()
y = StandardScaler().fit_transform(y.reshape((- 1), 1))
y = y.ravel()
regressor = clone(regressor_orig)
y = multioutput_estimator_convert_y_2d(regressor, y)
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
6e74ff13a757cf14389bdf87d1958299c5eb264a | 9635190b0da167ba14a0f5ce6a907ec49cc84d80 | /features.py | d70f37242da7fa372f25e41e9c5d2c3c4b78e091 | [] | no_license | RolyVy/Codit_Machine_Conditions_Monitoring | b8919062ebd32fd1bc546c3c43298353dbe87eb8 | a0ffe13056e9b56b60025c8c831d031ab10d89b1 | refs/heads/main | 2023-03-28T07:30:50.501487 | 2021-04-02T07:02:50 | 2021-04-02T07:02:50 | 350,279,837 | 0 | 1 | null | 2021-04-01T21:44:56 | 2021-03-22T09:18:01 | null | UTF-8 | Python | false | false | 20,216 | py | #importing the necessary libraries
import pandas as pd
import numpy as np
import librosa
from typing import Dict
class Features:
"""
CLass Features will contain all the functions to get the features of the sound file
"""
def get_y_sr(filename: str):
"""
Function ... | [
"rolin.vincent.16@gmail.com"
] | rolin.vincent.16@gmail.com |
f401f06b977dc76ec6fee894236d7022b6843790 | 77444baabdc7a6a1e50b07e0e544e6d6159ed056 | /models.py | a07b2c7898c1a012bffed8fb24c97cc57bcfb059 | [] | no_license | msottomaior/python-flask | 75ebf8f7ebe97d1194f420bc05242fa44d9302eb | fa3a0c09a67388d86bb5e625b88a4f50bda3d9dc | refs/heads/main | 2023-04-20T11:29:00.522273 | 2021-05-07T08:03:03 | 2021-05-07T08:03:03 | 358,240,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | #from main_flask import db
#from main_flask import app
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class Users(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(16), nullable=False)
passwd = db.Column('pass', db.String(16), nullab... | [
"sottomaior@tu-berlin.de"
] | sottomaior@tu-berlin.de |
642628c48b3da2656cea8041b8901746902abfd7 | 7ad4ef003ca4555cfa0eb75045c7895fb817429a | /user_profile/views.py | 925e8951fd49256728dfca908d7e59b439d7570f | [] | no_license | K-gns/MySite | c949d7e3e5693705a04dc0d60fe6410d7dff527b | ae26e6bc839eba1cdf1f724c991fb5e3a329b257 | refs/heads/main | 2023-05-21T21:38:38.886150 | 2021-06-13T15:43:28 | 2021-06-13T15:43:28 | 361,487,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | from django.shortcuts import render, redirect
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout
from rest_framework import generics
from django.http import HttpResponse
from rest_framework.views import APIView
from .serializers import UserSerializer, UserSerializerD... | [
"kb465@mail.ru"
] | kb465@mail.ru |
1f8bd03e1ef888abd81c307876d56b9be3c041cf | b3a2ac9eb02a6eef9e6f3504afabc6400f894f56 | /clld/tests/test_web_app.py | b32979cb1f2d24ff5e626188403624fba5dc541a | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | Anaphory/clld | 9f67c477e228eff05fdc7b7fa4310c703af02108 | bed1a6d08275a41fd7b5d13a0af19e4e538d186c | refs/heads/master | 2021-01-17T04:50:05.382411 | 2017-02-16T11:20:11 | 2017-02-16T11:20:11 | 66,831,136 | 0 | 0 | null | 2016-08-29T09:43:06 | 2016-08-29T09:43:05 | null | UTF-8 | Python | false | false | 3,180 | py | # coding: utf8
from __future__ import unicode_literals, print_function, division, absolute_import
import importlib
from zope.interface import Interface
from pyramid.testing import Configurator
from pyramid.httpexceptions import HTTPNotFound
from purl import URL
from clld.db.models.common import Contribution, ValueSet... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
ba67521102acfb8f7814511d76092c36dc6602be | 5ca85847885c6fd6f9728b0b2dffb66e96a81a1d | /hemlock/database/types/__init__.py | 6c06c43fc1ad509b883efcf9d4a7a2afd3756cbc | [] | no_license | syfreed/hemlock_test2 | 682d843636883a6a2b883932cd7282e9b865ebcd | 61933fd17630ddd1bb46d8f2090b1b039a3b4e99 | refs/heads/master | 2020-08-03T11:21:18.460905 | 2019-09-29T22:36:36 | 2019-09-29T22:36:36 | 211,733,895 | 0 | 0 | null | 2019-10-22T14:21:27 | 2019-09-29T22:25:30 | Python | UTF-8 | Python | false | false | 227 | py | """Custom Hemlock database types"""
from hemlock.database.types.data_frame import DataFrame, DataFrameType
from hemlock.database.types.function import Function, FunctionType
from hemlock.database.types.markup import MarkupType | [
"dsbowen@wharton.upenn.edu"
] | dsbowen@wharton.upenn.edu |
ac8f649d04007531ad6a48d8f38deff94af2a783 | 2f8880b822e7b2808cd038aaaffa3533ccf33464 | /python3/testing/alltest.py | 40f3130e0b771639e0c756412ae55dc8905e8756 | [
"MIT"
] | permissive | MauroBaresic/bioinf-string-matching-with-k-differences | e86392e5247d4c71e2872269a117c16f658757ce | e3b12ca74fe66fbd0c1eb33dde4d94d7aec4fb5b | refs/heads/master | 2021-01-22T01:10:21.993005 | 2015-01-21T11:33:51 | 2015-01-21T11:33:51 | 25,361,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | import os
import sys
import subprocess
file = open('resultTEXTS.txt', 'w')
file.write('text\tpattern\tk\ttime\tmemory\n')
file.close()
texts = os.listdir("./data/Texts")
texts.remove("pattern.fa")
texts.sort()
for number_of_texts in range(len(texts)):
path = './data/Texts/'+texts[number_of_texts]
print(path)
... | [
"tin.kovacevic@fer.hr"
] | tin.kovacevic@fer.hr |
2d10fcb93d6ae92cd8752f8f7f2960373c12e6c4 | de93e3843e446fca6c4658925c263bcfd42fc3cb | /crypto_ticker.py | cf9f75226222756828828f0c90e9478a2cd6dd65 | [] | no_license | jonodavis/nectar | b66b2b9790d8123f752b9d061f73e022f44cb7e3 | f5042f68907ee1247fae784ba13693f6a2971924 | refs/heads/master | 2022-12-10T10:31:05.587977 | 2019-10-04T02:23:43 | 2019-10-04T02:23:43 | 190,214,683 | 0 | 0 | null | 2022-12-08T05:22:30 | 2019-06-04T14:09:38 | Python | UTF-8 | Python | false | false | 1,950 | py | import threading
import requests
import sys
import time
import os
from termcolor import colored
prices = { 'BTCUSDT': { 'price': 0.00, 'delta': 0.00},
'ETHUSDT': { 'price': 0.00, 'delta': 0.00},
'LTCUSDT': { 'price': 0.00, 'delta': 0.00},
'XRPUSDT': { 'price': 0.00, 'delta': 0.00},
... | [
"jono.davis66@gmail.com"
] | jono.davis66@gmail.com |
e425d30c458f47745d2c0865a4a1b76ddf5d98d6 | 81e73a7907a8825fb88354f1d88d4c1a56451863 | /tdn_app/migrations/0001_initial.py | 7b1cd66edacb46ce297dbb4210f063e3e5608b7d | [] | no_license | zarqabiqbal1/TDN_APP | ba8309e92a6fa2df349ceb805deb9b8806a043a4 | eb74b50fe01635ade6d0b9e041463a0591f3f025 | refs/heads/main | 2023-04-15T17:18:52.102762 | 2021-05-03T09:08:27 | 2021-05-03T09:08:27 | 363,873,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # Generated by Django 3.2 on 2021-05-03 08:16
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UserModel',
fields=[
('user_id', models.CharF... | [
"zarqabiqbal@gmail.com"
] | zarqabiqbal@gmail.com |
df67e70950e1afba7bbc49e3c1d809e2e069b4f4 | ecb6b752523a126ef17895854b18e02df41c4cfe | /app_backend/tests/test_skf_categories.py | cd07666e4b26e67263b352f3da1a4e2f7482217e | [
"MIT"
] | permissive | zhanghe06/bearing_project | cd6a1b2ba509392da37e5797a3619454ca464276 | 25729aa7a8a5b38906e60b370609b15e8911ecdd | refs/heads/master | 2023-05-27T17:23:22.561045 | 2023-05-23T09:26:07 | 2023-05-23T09:39:14 | 126,219,603 | 2 | 5 | MIT | 2022-12-08T03:11:27 | 2018-03-21T17:54:44 | JavaScript | UTF-8 | Python | false | false | 1,824 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: test_skf_categories.py
@time: 2020-05-19 16:32
"""
import csv
import requests
def test_get_skf_categories(csv_name, category_id):
params = {
'id': category_id,
'language': 'en',
'source': 'webpim',
... | [
"zhang_he06@163.com"
] | zhang_he06@163.com |
caf51bcd0ad896541c705b69857642522b8ef72e | fc03b5e30509e397245b894998e0338536b3ee21 | /pairs.py | 41507d5ee87ca2cda600691c348243e8af9c2d12 | [] | no_license | tomOgn/HackerRankProblems | 54185bf63c307412c8f1b7180b4aeb107c5a66c9 | 213f13d1dc303336369d5c6ca449b07f5def7082 | refs/heads/master | 2021-01-12T11:07:46.347970 | 2017-02-28T17:04:52 | 2017-02-28T17:04:52 | 72,836,229 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #!/bin/python3
# www.hackerrank.com/challenges/pairs
def pairs(a, k):
a.sort()
start = 0
end = 1
count = 0
while start < len(a) and end < len(a):
diff = a[end] - a[start]
if diff == k:
count += 1
start += 1
end += 1
elif diff > k:
... | [
"tommaso.ognibene@gmail.com"
] | tommaso.ognibene@gmail.com |
91aaf6d522486538a0edfd27de42e4a83a77f21e | ab4b210d204512f51a4807a652ccc0edaabe3341 | /kombu/tests/test_functional/test_amqplib.py | 94b9bfc92db9136c20c361ea1cc76fe35f9ccf9a | [
"BSD-3-Clause"
] | permissive | mixedpuppy/kombu | 2c4ec30ccc8ab9ccb20bab525cd525febb085ce2 | 04b9a6f2fb6854fadbb4c29880866135354fdeef | refs/heads/master | 2021-01-18T08:40:39.106451 | 2010-09-06T22:41:02 | 2010-09-06T22:41:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,517 | py | import socket
import time
import unittest2 as unittest
from nose import SkipTest
from kombu import BrokerConnection
from kombu import Producer, Consumer, Exchange, Queue
def consumeN(conn, consumer, n=1):
messages = []
def callback(message_data, message):
messages.append(message_data)
messa... | [
"askh@opera.com"
] | askh@opera.com |
d0a7a0d59076a6329b48718e98847236c2761396 | 9238145bf991752d0542dc2679ca7c9af654047b | /min_depth_of_binary_tree.py | c7aafdea66c0f6f793cc28bfc5fdbdd0e47abaaa | [] | no_license | jaijaish98/ProblemSolving | d048a6168c50b3eaeec71be2e304c7aab2471258 | 3cdcba9c03b5951772f6ab72ef167a65febf1ee4 | refs/heads/master | 2023-08-08T10:08:43.908063 | 2023-07-26T05:32:24 | 2023-07-26T05:32:24 | 262,354,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | """
Minimum Depth of Binary Tree
Given a binary tree, find its minimum depth.
The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.
Note: A leaf is a node with no children.
Example:
Given binary tree [3,9,20,null,null,15,7],
3
/ \
9 20
/ ... | [
"jaijaish98@gmail.com"
] | jaijaish98@gmail.com |
d7cd1c72020ca50e799a607ef9ade3868c0fc2bc | 2c7398599eb0ce428c8fad94ee945c1a4a388447 | /Correlation/count_geo_topics_keywords_or.py | 215747bbbba251956fb20ab9900fb0699846eabd | [] | no_license | wangshilianghit/Social-media-as-sensor-for-air-quality | 6347cff03bb24b7aedfa0cc039d7e9518cabbbca | 9772981dd9a47e2d930b6565808c2da6411749d6 | refs/heads/master | 2021-01-09T21:55:00.124159 | 2015-06-01T02:09:27 | 2015-06-01T02:09:27 | 36,629,930 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,182 | py | #!/usr/bin/python
# coding=utf-8
from argparse import ArgumentParser
import mmseg
parser = ArgumentParser(description="count the number of messages each month for given topics")
parser.add_argument("-a", "--assign_file", type=str, help="assign file to be processed")
parser.add_argument("-l", "--lda_file", type=str, h... | [
"swang@login.clsp.jhu.edu"
] | swang@login.clsp.jhu.edu |
87c77b8a7436e083dbba1d4921e312892e2fe6fc | b53f4688e10f7057345591c0b152492987dc990f | /linear_regression/practical_issues/overfitting.py | 4e12c9b2ddfb9e241693b8483b3a3de1f345e55a | [] | no_license | anonymous-oracle/ml_in_python | 0737fae768e71e2f4297e69279fdf9d71bed6fc9 | 42ee9c59c19b45b8f49dcb5d6351506d3bfb3563 | refs/heads/master | 2022-12-05T13:13:23.709756 | 2020-08-25T16:01:20 | 2020-08-25T16:01:20 | 290,259,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | import numpy as np
import matplotlib.pyplot as plt
# # make up some data and plot it
# n = 100
# x = np.linspace(0, 6 * np.pi, n)
# y = np.sin(x)
#
#
# # plt.plot(x, y)
# # plt.show()
def make_poly(x, deg):
n = len(x)
data = [np.ones(n)]
# adding polynomial terms to data like in polynomial regression
... | [
"suhas.ks@reverieinc.com"
] | suhas.ks@reverieinc.com |
c98811f22c88e6db9c357a03664c33a7f461f821 | 682b529e222c54856a69f49c8423c4543ec422ea | /lambda_face_recognition_prebuilt/unpack.py | 3f12399e71ba7156a1857fa80a88dd05412cb26b | [] | no_license | tiivik/lambda_face_recognition_prebuilt | 1b1e6bc7c8875fb7efd1269005b6b6f8388cdd36 | 64cfa3784ccfc49d3081d8c1f499a6313dea0ca7 | refs/heads/master | 2020-04-21T01:54:48.433641 | 2017-11-19T09:45:43 | 2017-11-19T10:52:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | import os
import ctypes
import sys
from io import BytesIO
from zipfile import ZipFile
import requests
from safe_extractor import safe_extractor
import requests
deps_install='/tmp/'
deps_download='https://s3.amazonaws.com/lambda_face_recognition_prebuilt/deps.zip'
print("Downloading '{}' into memory. If this fails, y... | [
"jonathan@jonathanporta.com"
] | jonathan@jonathanporta.com |
434573e65c94e1399c84ca48af27758afb032b84 | 4d7856db0ae1368a95d45c94b183e0201d10e1d3 | /spartan/utils/settings.py | 03d417923f7f6bff30bc1c529d9c54b292936ea3 | [] | no_license | ivoianchev/Spartan | c9ef68aecaf1b244ba95da9be8b7b9aad54db459 | 65c3a70b60d69af04c687f3f11534ebc3849c767 | refs/heads/master | 2021-01-22T15:11:48.221099 | 2014-11-21T12:16:47 | 2014-11-21T12:16:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | import sublime
import os
# JSON File names
text_snippets_file = 'text-snippets.json'
css_snippets_file = 'css-snippets.json'
emmet_snippets_file = 'snippets-spartan.json'
# Load ST User settings
settings = sublime.load_settings('Spartan.sublime-settings')
# Get settings
def get( setting ) :
if setting == 'json_lo... | [
"stefan.2create@gmail.com"
] | stefan.2create@gmail.com |
c488105cdb3ec9c46619212572ae7622191356a8 | 3727e8c458021964b37c03cd1a6090298df75349 | /codeforces/old/471a.py | 459cee218ba6e31332ef28c65ea8b50973f331b5 | [] | no_license | descrip/competitive-programming | 7e9b09ef48e87083d922b8bf46f58793249edce9 | b2bdeba24569bbded7688d638b3c595529774e70 | refs/heads/master | 2021-01-11T19:53:17.724987 | 2017-01-19T05:40:10 | 2017-01-19T05:40:10 | 79,419,215 | 0 | 1 | null | 2017-11-02T18:13:21 | 2017-01-19T05:35:04 | C++ | UTF-8 | Python | false | false | 275 | py | import sys
a = [int(_) for _ in input().split()]
a.sort()
for i in range(len(a)):
if a.count(a[i]) >= 4:
for j in range(4):
del a[i]
break
else:
print("Alien")
sys.exit(0)
if a[0] == a[1]:
print("Elephant")
else:
print("Bear")
| [
"jezhao1999@gmail.com"
] | jezhao1999@gmail.com |
c4857b7af4b3b8661bebb68f4844ae55ccf76c45 | b99ada31bb9351d9efc19cce25cbce9548b5798d | /tests/test_rand_rotate90.py | e50c3e0c670f0787d8521bf34b928d7e508c70aa | [
"Apache-2.0"
] | permissive | mhubii/MONAI | 766b4623206066416167cc5cc387a073313aa646 | e4b3c369de1c408ac0dbbbdfdfb133c453d114bc | refs/heads/master | 2021-03-31T22:05:09.757191 | 2020-03-19T21:30:37 | 2020-03-19T21:30:37 | 248,135,127 | 0 | 0 | Apache-2.0 | 2020-03-18T04:04:40 | 2020-03-18T04:04:39 | null | UTF-8 | Python | false | false | 2,282 | py | # Copyright 2020 MONAI Consortium
# 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, s... | [
"noreply@github.com"
] | noreply@github.com |
97dfd341a117c598c051ba31a8779379bd9ac38f | c07a6a736a85b42d31a27a679bd8c4505ef3ddf0 | /rtk/deployment/core/gen.py | c878429bc4cb7efc7ee1a6251828bc4595e1adb6 | [] | no_license | RepublicOfThings/RTK | abe1d74cefa972e85aaf9875a464bb76876ac004 | 4b9176cb2bbcdedf96a9d1a43b761ad7153806e8 | refs/heads/master | 2021-06-22T14:06:10.821396 | 2018-06-18T20:30:20 | 2018-06-18T20:30:20 | 132,449,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,490 | py | import os
import re
import json
from .loggers import dlog
from ..templates import (defaults as default_settings,
template as template_settings,
deployment as deployment_template,
httpd_app as httpd_app_template,
httpd_pr... | [
"mark.l.douthwaite@gmail.com"
] | mark.l.douthwaite@gmail.com |
a3bbe682bb1f8236a8fc12c733d776bb39e6045e | 898cd981dbf81fc4b2f98c5508a25672f2bdea88 | /examples/udp_client.py | 1f8f6f10f6d3d6c5c918cdf9f6343e4f3c2aa39a | [
"BSD-3-Clause"
] | permissive | GottWall/GottWall | 1bd219d6e010c304c018038f95e9d6108ef26099 | 3b940fa27245a4160d5fe1af3ea15b8c8ac70a4b | refs/heads/master | 2020-04-06T03:42:14.965092 | 2015-10-10T07:27:43 | 2015-10-10T07:27:43 | 7,048,966 | 9 | 3 | null | 2014-02-09T19:41:41 | 2012-12-07T06:46:08 | JavaScript | UTF-8 | Python | false | false | 4,074 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import socket
from datetime import datetime, timedelta
try:
import ujson as json
except Exception:
import json
from random import randint, choice
import time
from stati_net.client import Client
logger = logging.getLogger('stati')
bad_requests = 0... | [
"Alexandr.S.rus@gmail.com"
] | Alexandr.S.rus@gmail.com |
89c865bc94f02684ecae0bba32352e3aa854d0e6 | 070256d3ade043e73947348b08c0e9f67019370c | /Playground/optical_flow.py | 810ed6ed16d63a1fe30affd23888741a691a98ef | [] | no_license | EfforiaKnight/OpenCVProject | 68b64fb867e727abe2f1c44df69731fea7081609 | 159a9f8edbd38fb764b45ce70151ad1735a11a6e | refs/heads/master | 2020-06-28T16:05:58.087520 | 2017-06-08T09:45:13 | 2017-06-08T09:45:13 | 74,488,946 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,381 | py | '''
optical_flow.py - Optical-flow velocity calculation and display using OpenCV
Copyright (C) 2014 Simon D. Levy
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either versio... | [
"tualet00@gmail.com"
] | tualet00@gmail.com |
dc6fdfbbefbba46be58c65ca80dc0b7bfbe5a67d | beaef0e11011fc87fe87c3bb2282ac0432db6983 | /uscar_numpy.py | 656629b4df2d87b2226657f2bdfc1227d0620935 | [] | no_license | saltfog/python | b09461b4191bea67d457e616aec7c6a8cbf2e874 | ee640ac45c057ad169400606ba7823bcd40aaf9f | refs/heads/master | 2021-01-18T22:20:11.317026 | 2017-04-28T02:05:38 | 2017-04-28T02:05:38 | 24,059,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py |
from numpy import *
import numpy
import wx
import os
#wx Object Creation
app = wx.App()
filename = wx.FileSelector()
#import file
pressureHydro = loadtxt(filename, unpack=True)
#numpy calculations
print pressureHydro
stdev = numpy.std(pressureHydro)
mean = numpy.mean(pressureHydro)
print "MEAN", mean
print "Stand... | [
"saltfog@gmail.com"
] | saltfog@gmail.com |
6dcbd5c7c588751482265f10cd3e8f1319f6dea3 | 1a57dd0f31edaf9f9a8d4e55d92bbbffc4041d17 | /test_PerkoAtAll.py | 055f58a7250f417e46d4cb4ed36491c163e6fb4a | [] | no_license | anvlason/dtm_py | 35f549450d4ba599e10c73cb51f862db0e920918 | 9430b29c86b1070ca899984f142c1445cd654fb5 | refs/heads/master | 2021-01-20T05:52:44.516343 | 2016-11-15T17:01:20 | 2016-11-15T17:01:20 | 56,140,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,591 | py | import numpy as np
import scipy
from scipy import signal
import scipy.ndimage as ndimage
import scipy.ndimage.filters as filters
import matplotlib.pyplot as plt
import sys
from osgeo import gdal
from osgeo.gdalconst import *
#import numpy as np
import numpy.ma as ma
import os.path
gdal.AllRegister()
gdal.UseExceptions(... | [
"anvlason@gmail.com"
] | anvlason@gmail.com |
c2832df9c415546fb7b8dce9a2dea7507780f9d4 | a4fa7b26c0b7eb8a1359f727a6405b104f9707f9 | /Simulator.py | 74d40ef76a23c77e2ce53969c337c3ebe9e9b32b | [] | no_license | yulinliu101/294_MultiAgentInvetory | f40d95c7113766b14c7ba806c9094ea3e977625a | f96880714024b4e02a9eda7798d57d037ff0eb52 | refs/heads/master | 2021-08-26T09:46:00.696245 | 2017-11-23T05:37:12 | 2017-11-23T05:37:12 | 109,643,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,714 | py | import numpy as np
from scipy import stats
import os
class Simulator:
def __init__(self,
seed = 101,
N_prod = 2,
Tstamp = 20,
price = np.array([[1.5, 1.5]]),
costQ = np.array([[0.1, 0.1]]),
costInv = np.array([[0... | [
"liuyulin101@berkeley.edu"
] | liuyulin101@berkeley.edu |
f2f0d7e4e1a772df81cc5683ffdb4d196a8873f2 | 219566971a08625ca14c5ea7a6e1231454694a4b | /utils/sk_utils/encoder.py | bf2df2abcba4cbf2f1eb74522ece933562b35e72 | [] | no_license | daxiongshu/kaggle-review | 6b22e73702cd7a61f3d175f301c37dcc0d6e3ae2 | fc02e85d0544dd64d57c05081c8774dc87d1972e | refs/heads/master | 2021-01-19T18:03:23.795917 | 2017-11-26T18:16:25 | 2017-11-26T18:16:25 | 101,109,595 | 28 | 14 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | from sklearn.feature_extraction import DictVectorizer
from scipy import sparse
def onehot_encode(tr,te,cols=None):
if cols is None:
cols = [i for i in tr.columns.values if i in te.columns.values]
vec = DictVectorizer()
for col in cols:
tr[col] = tr[col].map(str)
te[col] = te[col].map... | [
"aixueer4ever@gmail.com"
] | aixueer4ever@gmail.com |
d780faae53bee90d4bf0479e39107d7990f01119 | 6e43fb1afb37f23df5353a7f92f2a97751d3b318 | /fitter.py | 3de6f695a70a7b630888b303fa8df7d5bb226eef | [] | no_license | richteague/linex | de9b4d6e45fe355ab319ac08d740156ee4cf3841 | 3b13d807673c4f5443f6aa224d15876dc59fca2f | refs/heads/master | 2021-01-23T04:53:48.737265 | 2018-05-24T22:29:10 | 2018-05-24T22:29:10 | 92,946,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,850 | py | """
Class to fit spectra with a Gaussian line profile. It allows the simultaneous
fitting of multiple transitions, accounts for both non-LTE and LTE excitation,
the inclusion of non-thermal broadening components and the option to model the
noise with Gaussian Processes with george.
-- Input:
dic - A dictionary co... | [
"richarddteague@gmail.com"
] | richarddteague@gmail.com |
1806b9d06d3b1f2f058b6de59649d283c0cc1248 | d15092c5fa7e5d825f5204fa2e799f88c9495de5 | /non_semantic_speech_benchmark/export_model/model_export_utils.py | 4bd07af3f1681f17c17e09b7d7d39b1a8d54e647 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | GuyLor/google-research | 229e27ff7cf1c838736704537e3636defa710200 | 083ccfb249a3e2bfc49a9d56f7d2b7aae42e8c2c | refs/heads/master | 2023-09-05T16:28:26.720671 | 2021-11-16T06:17:56 | 2021-11-16T06:17:56 | 428,534,818 | 0 | 0 | Apache-2.0 | 2021-11-16T05:56:17 | 2021-11-16T05:56:16 | null | UTF-8 | Python | false | false | 6,971 | py | # coding=utf-8
# Copyright 2021 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... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
46f2a219233023a03c3113308131970b94b85306 | 61e6af59771ed465971ade0c982e7910ab553fc6 | /fizz_buzz_formated.py | 1f2b27b84273584e253e6a9da8e3108a7f272bbd | [] | no_license | jemurphyuk/fizz_buzz | b205d94cbbdb5b38e0a472a656f4af3c4b4fa595 | 687a983c5558c1d7ba608c7dc3c670c4d71acc81 | refs/heads/master | 2020-12-30T06:43:57.160569 | 2020-02-07T10:37:34 | 2020-02-07T10:37:34 | 238,897,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py |
def multiple15(num):
return num % 15 == 0
def multiple5(num):
return num % 5 == 0
def multiple3(num):
return num % 3 == 0
def word_fizz(fizz):
return fizz.lower() == 'fizz'
def word_buzz(buzz):
return buzz.lower() == 'buzz'
counter = 0
fail_code = ('You moron!!! Oh well try again (Remember, ty... | [
"jmurphy@spartaglobal.com"
] | jmurphy@spartaglobal.com |
4a0f4b497cb62c2567f2afacb29986f97a64d2b4 | ddea930392ac5360b21e9043b620e703a9ccb31c | /tfx/components/transform/component.py | 7cb900078da95ed33cbe2fdf9bd9a465b5e9a56e | [
"Apache-2.0"
] | permissive | Ark-kun/tfx | 9c82b688776c80b2435bbb6154476526e8525ec8 | f685f0387bd145316f43ceb484e64f893e749dcb | refs/heads/master | 2021-07-25T05:58:15.168607 | 2020-05-22T01:07:44 | 2020-05-22T01:08:18 | 180,868,735 | 0 | 0 | Apache-2.0 | 2019-04-11T20:01:57 | 2019-04-11T20:01:57 | null | UTF-8 | Python | false | false | 6,330 | py | # Lint as: python2, python3
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
af68bf54c136aa54b298013c4dfeb5bfe6778541 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-2-2.py | ff4cdb9e18778ab154122ead5ea2d8575b566545 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 392 | py | from output.models.nist_data.list_pkg.float_pkg.schema_instance.nistschema_sv_iv_list_float_min_length_2_xsd.nistschema_sv_iv_list_float_min_length_2 import NistschemaSvIvListFloatMinLength2
obj = NistschemaSvIvListFloatMinLength2(
value=[
4.9827486e+21,
3.5627644e+26,
5.6398728e+22,
... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
560337d8be8d8425c24966e2f87ac183ca9e2a98 | b4dfb1830d6ce53bc131b3fbc8fbc54c85c017f1 | /cost_sheet_quotations/models/product.py | 6dfc3044f84e44a002fb2be6a05285afb905210d | [] | no_license | faizasaeed97/sales-module | 843d41ded4d4cafc3e69618e2c86407be548ee9c | 80c60daef01665651a25cfbd3117a354a2764068 | refs/heads/master | 2023-02-09T00:41:26.611256 | 2020-11-24T09:00:20 | 2020-11-24T09:00:20 | 325,536,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,613 | py | from odoo import api, models, fields, _
from odoo.exceptions import UserError, ValidationError
class stok_pick_inh(models.Model):
_inherit='stock.picking'
def goods_rec_in(self):
return self.env.ref('cost_sheet_quotations.action_goods_recieved_print').report_action(self)
def goods_del_out(self)... | [
"rao.kashif8787@gmail.com"
] | rao.kashif8787@gmail.com |
5f3c317c3ad96bd41f6f1e0563b1571ef57e8f18 | 728d6c07fcf732c08381123807dcfe205b01afd0 | /quiz/main/migrations/0002_choice.py | d559ad3dbea96fa76f854d99857736f78fc9d748 | [
"BSD-3-Clause"
] | permissive | itdagene-ntnu/quiz | 45409b2d3eea059b810be8a9b7e5f3edf1332088 | 89648e0f5e7706d28279902831440d873d8ecd3d | refs/heads/master | 2020-06-02T01:47:20.164725 | 2014-08-08T17:46:34 | 2014-08-08T17:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | # encoding: utf8
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Choice',
fields=[
('... | [
"oyvind@arcticstyle.net"
] | oyvind@arcticstyle.net |
ad7d323b0985b95eded7e6dfcdb07eb231b843b7 | 19eb7f7fd1a149e1c78e1fc961637edab3bce855 | /csaf/vuln_types.py | 84ace0f5af56e594b9aa97dcea1c69ec4dfaf198 | [
"MIT"
] | permissive | sthagen/csaf | 345115e10202082d60f1c75c60d9eff3762894f6 | 29ff69db95be50b5f1dfa8ab3777dcf8592c3107 | refs/heads/default | 2023-08-08T04:54:18.088453 | 2023-08-07T20:30:06 | 2023-08-07T20:30:06 | 363,251,239 | 3 | 4 | MIT | 2023-03-10T16:10:45 | 2021-04-30T20:25:44 | Python | UTF-8 | Python | false | false | 3,345 | py | """CVSS 2/3.0/3.1 general definitions."""
from __future__ import annotations
from enum import Enum
from typing import Annotated
from pydantic import BaseModel, Field, RootModel
class AccessVectorType(Enum):
network = 'NETWORK'
adjacent_network = 'ADJACENT_NETWORK'
local = 'LOCAL'
class AccessComplexi... | [
"stefan@hagen.link"
] | stefan@hagen.link |
62075e23d03d6ac955d2983364e82c74b65e08f7 | aadf5eed0e145153f68f1ea885600bd30473fce4 | /Chapter16/MIPSample/samples/SConstruct | a6455832d3a797f40209fb5e719737f8decac648 | [
"MIT"
] | permissive | SuryenduB/Mastering-Identity-and-Access-Management-with-Microsoft-Azure-Second-Edition | d8d0674b9911708a993199f855d8cad23cc28054 | 1b7aa98d37f1075baf439946e20e69115222a7d3 | refs/heads/master | 2022-11-23T01:43:06.919097 | 2020-07-26T18:15:51 | 2020-07-26T18:15:51 | 281,100,585 | 0 | 0 | null | 2020-07-20T11:41:48 | 2020-07-20T11:41:47 | null | UTF-8 | Python | false | false | 3,978 | #!python
import sys
import platform as _platform
from os.path import expanduser
def IsRHEL():
linux_distro = "".join(_platform.linux_distribution()[:2]).replace('.', '').lower()
return linux_distro.startswith('centos linux7') or linux_distro.startswith('red hat enterprise linux server7')
Help("""
Run 'scons a... | [
"jochen.nickel@inovit.ch"
] | jochen.nickel@inovit.ch | |
ab90ccd3ff6feafe7b3cfe5b4ba981f42d8330ce | 980e6ab6ee4d2b40f1920c72b94adbbf9aa4df1c | /schools/admin.py | ddf378dc814d627078ccd2e20ddf436eb8cf570d | [] | no_license | bhavana-Marks/school_django | ebb7fda349c7637b3d0cfc950363e12a62fd15ef | b49fca1caad5e967b4652682709feaad756e184b | refs/heads/master | 2021-10-25T06:43:50.614463 | 2019-04-02T14:14:00 | 2019-04-02T14:14:00 | 179,092,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import UserInfo , City, Area, Schools
import json
# Register your models here.
admin.site.register(UserInfo)
admin.site.register(City)
admin.site.register(Area)
admin.site.register(Schools)
#j... | [
"noreply@github.com"
] | noreply@github.com |
d41f85e2c73f965a8555cd3f6da0967a0e321fde | 5cc4a73d6fb144d72e74b07a10b60fc36bfe50ec | /videos/api/serializers.py | 462b50c2b48ff27afdefbc67ced6a79e795bd6b4 | [] | no_license | pedrofolch/digitalsoil | 79d9497dcbb54df3c7df64f9da35d71d592fe580 | 7b6d1ffd34e991cf87c91342e5336a97fa1cf59b | refs/heads/master | 2022-12-11T00:47:01.728729 | 2019-04-11T03:34:12 | 2019-04-11T03:34:12 | 120,937,159 | 0 | 0 | null | 2022-12-08T04:58:09 | 2018-02-09T17:49:10 | CSS | UTF-8 | Python | false | false | 1,113 | py | from rest_framework import serializers
from videos.models import Video
class VideoSerializer(serializers.ModelSerializer):
uri = serializers.SerializerMethodField(read_only=True)
class Meta:
model = Video
fields = [
'uri',
'pk',
'title',
'embed... | [
"pedro.folch@gmail.com"
] | pedro.folch@gmail.com |
222744dced22da4304677b8aed29bcfb2d988e11 | ea6881ef23a4058edca2bab2ab5d0ea73e4952cf | /nmaptoolbackground/nmaproute.py | 422d321f209fc05e818c18d70253586d924c6130 | [] | no_license | qq431169079/SpiderManager | e39dc9e3bc0e0f605ea7c01331fa5de97dc7372d | 33f8ff9b3417f861ad38345fc4c569b98a279413 | refs/heads/master | 2020-07-19T14:26:28.133654 | 2019-06-06T00:56:54 | 2019-06-06T00:56:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,812 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.http import HttpResponse, HttpResponseRedirect, HttpResponseNotFound
from model.user import User
from control import usercontrol, jobcontrol, taskcontrol, ipcontrol, portcontrol
... | [
"1845973547@qq.com"
] | 1845973547@qq.com |
c7c37367f4842a662f51398fc768a9d153243f39 | 159fddadea70761e5fa15ecc15ab68342958d088 | /tours/migrations/0039_auto_20190923_2153.py | 60ceae4908da7ea110c38c75959b195ff22bd085 | [] | no_license | lalit1796/mytrip | 56a2bcdaa70ffe1234025e3b0599c53d4633462c | 2b8ab34d16960ef228adb2458e5b4bd0213ee923 | refs/heads/master | 2023-08-08T01:07:30.487038 | 2021-09-04T14:04:42 | 2021-09-04T14:04:42 | 402,809,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # Generated by Django 2.2.2 on 2019-09-23 16:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tours', '0038_auto_20190923_2151'),
]
operations = [
migrations.AlterField(
model_name='package',
name='uid',
... | [
"lalitsingh1796@gmail.com"
] | lalitsingh1796@gmail.com |
3df8a60b46e78434ae61fb6ac0515a880ab2c09a | 669ee6922346ab0a0b545af11ba7e4671ccf7199 | /day13.py | 9e6e0194494ff95f4b1bf428c1e32b5adfba1169 | [] | no_license | p-mckenzie/Advent_of_Code_2020 | 4fa6a80833f1ec4f6b33e046627f15987c93b117 | 382d1d924410d0dfee798c700c6e9785b55d4407 | refs/heads/main | 2023-03-11T07:02:24.543243 | 2021-03-01T20:45:35 | 2021-03-01T20:45:35 | 317,569,632 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | def part_1(IDs, departure_time):
from math import ceil
min_ID = 0
min_wait = IDs[0]
for ID in IDs:
if ID=='x':
continue
wait_time = ceil(departure_time/ID)*ID - departure_time
if wait_time<min_wait:
min_wait = wait_time
min_ID = ID
... | [
"paige.mckenzie95@yahoo.com"
] | paige.mckenzie95@yahoo.com |
b460b2c3ec813f72e9243187f1295b65bea96ec7 | 574cf83410dfd7a9d045c937bd7a067551720807 | /Arduino_Movements_v2.py | cba0e65d5d8ba28dbb6f1f616e022671caf86ee2 | [] | no_license | BotOreo/FYP-SSD | a94632b4ac3545f3e3ab78cf95bb0760b8cb0bf3 | e7fa0dc75b6ea901597a6239ca9385aa4858ee0d | refs/heads/master | 2020-09-15T18:05:15.430415 | 2019-12-08T07:52:25 | 2019-12-08T07:52:25 | 223,523,183 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,999 | py | '''
Name : Muhamad Arif Lutfi bin Aziz
Date : 10th November 2019
This python script is used as an import function in another file for Arduino-Pi series using Nanpy
Currently it is succesful but only coded just for my FYP (10th November 2019).
Model used : Arduino Uno and Raspberry Pi 3
Raspberry Pi 3 uses Raspbian St... | [
"muhamadnov30@gmail.com"
] | muhamadnov30@gmail.com |
e006f2f061284aa5abd2fc917410515a01a7f96e | 9d9bd571f7fa0ffb0b882820535a93c1eb656bba | /app.py | 08b1bbc32a217494f4304a75f25327e87a559b25 | [] | no_license | viagostini/genetic-tsp | 12c7ee1b9945d362ab0d3cba892fabf408172a14 | b02c63e634c44039852b4366fe701d5dcfdbcb92 | refs/heads/main | 2023-06-08T16:02:21.941249 | 2023-06-06T20:59:25 | 2023-06-06T20:59:25 | 365,517,793 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | import random
import numpy as np
import pandas as pd
import streamlit as st
from streamlit_solver import genetic_tsp
from utils import read_input
st.set_page_config(layout="wide")
"""
# Genetic TSP
Demo of genetic algorithm solver for the Traveling Salesman Problem.
Feel free to play with the parameters in the si... | [
"vinicius.agostini19@gmail.com"
] | vinicius.agostini19@gmail.com |
246a30280b803ed5ef80f30b383d5d103b6568d7 | f4f4b9794730433791d8e12669a6764f62b5c049 | /test-programs/copy_alice.py | e7b32ae670c9396759fbe5ae6b1af08191a006f0 | [] | no_license | madeleine-b/mset-alice | 908382eb7827a87837c7b00328e44f2654f58e97 | 9b7ba454135ffa0ba5b0b492025430918074dcd2 | refs/heads/main | 2023-04-25T20:15:44.525566 | 2021-05-16T03:30:25 | 2021-05-16T03:30:25 | 361,274,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | import os
import sys
import shutil
import subprocess
start_str = "Creating file "
end_str = " of"
workload_dir = "copy_workload_dir"
traces_dir = "copy_traces_dir"
out = open(sys.argv[1]).read()
file_paths = []
start = 0
while True:
pos = out.find(start_str, start)
if pos == -1:
break
end = out.... | [
"milanbhandari@college.harvard.edu"
] | milanbhandari@college.harvard.edu |
49ce692ebca047dd50ca67b2d8ea46583c8d8079 | c4a70d6f1de98da3e534d5e3d3811689fe5c512e | /Этап 1.py | fe5caa6673ec89b2f8d8e8409dc6d030e47ac59d | [] | no_license | polinakir/GoToHack | bff1344830cfab9a2d5df1c441c163cba511a217 | 324906475879eec7297358a349f6faabfad95e34 | refs/heads/master | 2020-04-09T08:34:32.781477 | 2016-02-21T21:21:05 | 2016-02-21T21:21:05 | 52,254,289 | 0 | 0 | null | 2016-02-22T07:11:08 | 2016-02-22T07:11:08 | null | UTF-8 | Python | false | false | 3,813 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 20 21:35:05 2016
@author: Dima
"""
##############################
##############################
######### #########
######### ПОДГОТОВКА #########
######### #########
##############################
##############################
### Импортируем... | [
"ADmitri42@gmail.com"
] | ADmitri42@gmail.com |
151055a7ffcdaa20102fa6ee7b2ed4872101801f | 52d1ccca67d42d5e83f3a49b1858e2e7ad2b22c4 | /5-3 Compiler Principle and Technology/LL1 parser/LL1grammar.py | cc0fbd8026af4691b37026a4a60501778e12d914 | [
"MIT"
] | permissive | HankyWang/project-in-BUPT | 0cfc5d213ee909c0ce6b9b143132afc443219acb | e03a379432c2f0f275550daf360868b516ce82b7 | refs/heads/master | 2020-03-11T06:46:17.000445 | 2017-08-22T15:24:55 | 2017-08-22T15:24:55 | 129,839,328 | 1 | 0 | null | 2018-04-17T03:15:45 | 2018-04-17T03:15:45 | null | UTF-8 | Python | false | false | 7,690 | py | #-*- coding: UTF-8 -*-
import copy
import re
# 获取测试token串
def getTokens(filename):
tokens = ''
fp = open(filename,mode = 'r')
tokens = fp.readline().replace(' ','')
return tokens
# 获取文法信息,包括P,START_VN,VN和VT
def getExpressionFromFile(filename):
VN = set()
VT = set()
P = {}
START_VN = ''... | [
"191063623@qq.com"
] | 191063623@qq.com |
b7772565c753a2aa3aee9561b85d306128479be6 | f883e685187feeefc6a0b7c1c6e5cc76bef76438 | /trader/core/managers.py | 316415204e7794b981e9abcfb034670277c45f67 | [] | no_license | ZDYC/binanceWeb | 01630292ce3c0276efa3c8efbf3f337f9c2b7487 | 0f40dad5a81bb5e28f41c64725fb2b621cc4634f | refs/heads/master | 2020-04-08T23:39:40.293422 | 2018-12-17T12:48:03 | 2018-12-17T12:48:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py | from django.db.models import Manager, Q
from decimal import Decimal
class OrderManager(Manager):
"""订单管理者
"""
def create_order(self, user, account,
symbol, quantity, price,
side, buy, sell,
order_type, time_in_force,
stop_... | [
"332976499@qq.com"
] | 332976499@qq.com |
093009ba1d5fc6da26ede4aa023d0a7188c86604 | 446ee351275fa0f941349c166ab32b29c16e2d7c | /Sentiment Analysis and Realised Volatility Analysis.py | 3afa222ed666a9755153042479a654ec27eba26f | [] | no_license | awdesch/SFM1_Project-1 | 854fa4edbd3135bb56c1d4fc81f50ca1f6810127 | 5a5aa7418f92ea25c1e9823666545f867835ee39 | refs/heads/master | 2020-04-16T19:39:04.553508 | 2019-01-07T08:31:17 | 2019-01-07T08:31:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,743 | py |
"""
Created on Sat Jan 5 11:02:53 2019
@author: Xinwenni Ni, Micheal Althof
The code is for the project of SFM1 WS1819.
The analysis involved mainly two parts: I Sentiment analysis and II Realised Volatility analysis
"""
import os
from datetime import datetime
import pandas as pd
import csv
import matplotlib.p... | [
"noreply@github.com"
] | noreply@github.com |
fd42be58fcca8dd5ab3396720162db48236815bf | 9874e628ac3480bd467bfe727987548fe0a04083 | /lib/cluster.py | cc0563345dfbda06aedc09b4c28a6c1916e19418 | [] | no_license | aurel-l/Datamining | 6c90d7e83036d5211daa5cff2cdd7d70938c6a7d | 4c1c6de4a0ae336540035f0300cf3b1e0f83422f | refs/heads/master | 2021-01-21T07:39:10.191122 | 2015-01-19T22:34:55 | 2015-01-19T22:34:55 | 25,157,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | from lib.progress import Progress as _Progress
from lib.stats.k_means import k_means as _k_means
def main(matrix, n_clusters, log=True):
"""
Performs a k-means (k-medoid variant) on the input data
:param matrix: input data matrix to cluster
:type matrix: numpy.ndarray
:param n_clusters: number of ... | [
"aurelien.luciani@gmail.com"
] | aurelien.luciani@gmail.com |
9cfd5d850bcc7982efa80f394dbca752ca768af5 | 39c7f0955e0247bbe34ec0f2a4a7e2d3294dc0df | /deployment-scripts/scripts/infrastructure/openstack/openstack-create-instance.py | 2426dac27ae7ea1e05036985173780e9337887f9 | [] | no_license | marjancek/Showcase | df9eac6b7c32d2209b6ffac3f80d6c6d92c5c1d3 | eced27c10b7b9d5e4b10d296661e33cb0375a5fa | refs/heads/master | 2021-01-15T09:08:48.146581 | 2014-11-19T12:13:16 | 2014-11-19T12:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | from novaclient.v1_1 import client as novaclient
from common.Cloudscale import *
from scripts.common.Cloudscale import check_args, parse_args
class CreateInstance:
def __init__(self, cfg):
self.cfg = cfg
self.user = cfg.get('OPENSTACK', 'username')
self.pwd = cfg.get('OPENSTACK', 'passwor... | [
"simon.ivansek@xlab.si"
] | simon.ivansek@xlab.si |
6d640e9621785207c8da853c9f502cf40e5f4c34 | 74a30d76f49051ec0200a847fe83431a9501f3d7 | /address_func.py | a5b6612a9078be5ba1d28b66d635386fd78f59b7 | [] | no_license | Milziade/nano_dash | 97e827ac24c5e8f3d97e8de69e151afd4d7d8fac | 00618fa1f6d425b63f6ada625569eadda69a0176 | refs/heads/master | 2023-05-01T02:36:51.595622 | 2021-05-12T14:06:07 | 2021-05-12T14:06:07 | 362,456,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,908 | py | import requests
import pandas as pd
import random
import colors
def get_json(nano_address):
action = {
'action': 'account_history',
'account': nano_address,
'count': '-1'
}
r = requests.post('https://mynano.ninja/api/node', json=action).json()
if 'error' in r:
return F... | [
"you@example.com"
] | you@example.com |
0a5c457ee6d1158653a465be49324b6bda2498ae | c588b57b8a4fda9fde2dbb3bfa8c256578665e95 | /addressbook/tests/test_models.py | f0b180059332b3cad64ba3536f9d1efe73210491 | [
"BSD-3-Clause",
"MIT"
] | permissive | simonluijk/django-addresses | b056f83f2292a94d54e668f76bcd475e0db48139 | 990f0e0dd921ff0f85b22859b9e7d3715c24b954 | refs/heads/master | 2023-05-11T06:44:22.220900 | 2023-05-01T17:09:13 | 2023-05-01T17:09:13 | 6,088,519 | 0 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,433 | py | from django.test import TestCase, override_settings
from django.utils import timezone
from unittest.mock import patch
from addressbook.conf import settings
from addressbook.models import Address, Country
class AddressTestCase(TestCase):
fixtures = [
"initial_data",
]
@override_settings(USE_TZ=Tru... | [
"simon@simonluijk.com"
] | simon@simonluijk.com |
059ed3b99dab6d54ca4af7819e104d653bac903a | 0a2cc497665f2a14460577f129405f6e4f793791 | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disks_operations.py | 908b970b39f436b84f4bc140829b20f3c1d96b40 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | hivyas/azure-sdk-for-python | 112158aa9e1dd6e30cf6b3dde19f5db6ea2a577b | 8b3258fa45f5dc25236c22ad950e48aa4e1c181c | refs/heads/master | 2023-06-17T12:01:26.392186 | 2021-05-18T19:56:01 | 2021-05-18T19:56:01 | 313,761,277 | 1 | 1 | MIT | 2020-12-02T17:48:22 | 2020-11-17T22:42:00 | Python | UTF-8 | Python | false | false | 41,458 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
b2a02508a8ad20104e2c68b0c65b9554129a15aa | 327ce35c2b15a72454d60009706ac6701f31e8e8 | /vrac/processKisioOD.py | 5dce66d07750e40490ae4f4fceaa36de94b3321d | [] | no_license | guerrerobertrand/python | c5a634b33071e66ea50a0703ceeb7d9f7733ac34 | e342ab9c27edf97fbcf772576f4d97b98ea4ec9c | refs/heads/master | 2021-01-10T10:58:37.020701 | 2017-05-28T13:06:22 | 2017-05-28T13:06:22 | 47,878,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,746 | py | #-*- coding: utf-8 -*-
## SCRIPT 1
## Projet : Kisio OD
## Name: processKisioOD.py
## Description : Intégration de données csv en base de données PostgreSQL
## Author : BG
## Date : 20160208
# IMPORTS
import os
from os import path as os_path
import sys
import json
import psycopg2
from psycopg2.extensions import ISOLA... | [
"bertrand.guerrero@free.fr"
] | bertrand.guerrero@free.fr |
abe6845fa09d069174bfc5533414c47bd9ca8f9c | ff79b594ce2ff2c2846785afcc22b2ec6af5faba | /my_main.py | 484475e0b7f967ab9abcea7acaa4f80cb56761b2 | [] | no_license | ach-raf/data_analysing | 8c183d15b4a69449e98a717e337aff246b287fbe | 54d12c7955e4c8a12c1bdc683c638b81db8f022a | refs/heads/master | 2020-04-04T12:14:10.619064 | 2018-11-05T21:43:32 | 2018-11-05T21:43:32 | 155,919,347 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,208 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib import cm as cm
import pandas as pd
import seaborn as sns
import re
import math
from functools import reduce
"""arr_average is a function that return the average (an arrow function)
previous is our accumulator. It will accumulate our su... | [
"noreply@github.com"
] | noreply@github.com |
43d1732932045b85378fb924ea0c306a767dc816 | 93090ffc3ccaf142a0c739e00c28486175220373 | /04-day/main.py | 96482f4046784b840f4b1a090c566af8992a3b4e | [
"MIT"
] | permissive | timbook/advent-of-code-2020 | f17b89fb1ccb5fe449b4864cca64a95f527c6782 | 3b1c107a67b9f31891e77a258e45aee76fac4e47 | refs/heads/main | 2023-01-25T01:19:02.520349 | 2020-12-17T20:31:31 | 2020-12-17T20:31:31 | 317,431,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py | import re
from functools import reduce
raw = open('input.txt', 'r').read().split('\n\n')
class Passport:
required_fields = ['byr', 'iyr', 'eyr', 'hgt', 'hcl', 'ecl', 'pid']
def __init__(self, entry):
fields = re.split('\s', entry.strip())
self.fields = {field.split(':')[0]:field.split(':')[1]... | [
"timothykbook@gmail.com"
] | timothykbook@gmail.com |
59c9d50dc1ab2693eb63903aae3e2390e76a7243 | 8c3461f3574468dadf827364d248d031819e532a | /2_Finding_optimal_AAIs_using_DT/tuning/gbm.py | c8646233d18dda1576a8a3f35ca20290f0cc0ccd | [] | no_license | manjitborah2710/DevelopmentOf_IAALPA | 328de8cc8afef7c851aa55970e08f589b3675211 | 2e7c3c529c4c6cdf7a4332692a101ad36909b148 | refs/heads/master | 2022-09-09T10:04:29.813938 | 2020-05-29T02:42:19 | 2020-05-29T02:42:19 | 266,538,254 | 0 | 1 | null | 2020-05-25T16:43:58 | 2020-05-24T12:40:36 | Jupyter Notebook | UTF-8 | Python | false | false | 7,828 | py | import pandas as pd
import numpy as np
import imp
from chefboost.commons import functions
from chefboost.training import Preprocess, Training
from tqdm import tqdm
def findPrediction(row):
epoch = row['Epoch']
row = row.drop(labels=['Epoch'])
columns = row.shape[0]
params = []
for j in range(0, columns-1):
... | [
"borah.a2013@gmail.com"
] | borah.a2013@gmail.com |
a0f1f4477f901aef372b2f8f90c4efc0ea980786 | a2f03f8893ddb9e435622f6b4502a8df90ca9d03 | /hello/migrations/0003_auto_20200627_1311.py | cd6189538ba636d566b12703913436a42fba95f4 | [] | no_license | todokku/fuck-heroku | 8672ce9c9ce59cdead316addffed2896104cfa2b | c90941e461059982fd1fa4ff281af3eb4c93be96 | refs/heads/master | 2022-11-23T18:01:46.511223 | 2020-06-27T14:03:03 | 2020-06-27T14:03:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | # Generated by Django 3.0.7 on 2020-06-27 13:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hello', '0002_auto_20200627_1218'),
]
operations = [
migrations.RemoveField(
model_name='person',
name='time',
... | [
"lo-ipsum@protonmail.com"
] | lo-ipsum@protonmail.com |
1be5d4bc9bd266acbfd5394777d660d6112dca9f | 01c5f40f3b2320c962c3a1c2d46dd39707876bfb | /lecent-new001/pages/jc_userpage.py | c2ff184932307d64ae76db4e298d1a6a9629abf3 | [] | no_license | meiquanquan/lecent_xzg | 6fa00adaaa9bb4528a6e46f5b2739804df0dbcaa | 1a37b9d55e414f9857f869ba1bb588ad54de5747 | refs/heads/master | 2022-11-14T05:23:41.068893 | 2020-06-15T02:56:08 | 2020-06-15T02:56:08 | 269,600,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | from .basepage import BasePage
from selenium.webdriver.common.by import By
value1='31'
value2='133'
class UserPage(BasePage):
jcxxgl=(By.XPATH,'//*[@id="side-menu"]/li[2]/a')
yhxxgl=(By.XPATH,'//*[@id="side-menu"]/li[2]/ul/li[1]/a')
yhtj_frame=(By.XPATH,'//*[@id="iframe0"]')
yhtj=(By.XPATH,'//*[@id="Us... | [
"1134312036@qq.com"
] | 1134312036@qq.com |
1746db989433f8b33bb316ea1d90a17a350a861b | ad9cc17020f7ccdb9b31ed743fdc835910784be9 | /venv/Scripts/pip-script.py | 6e24245d0129551904a5bf5a700cc684c6507db5 | [] | no_license | liqingyu123-12/test_code | 59f14bf337a59ad470b79158520d9a68901b2b25 | bafe1d9172bafb69da6db671ce72f8b2e7090d43 | refs/heads/master | 2023-07-15T04:36:26.944850 | 2021-08-16T00:33:01 | 2021-08-16T00:33:01 | 359,637,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #!D:\pycharm\test_code\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"772307781@qq.com"
] | 772307781@qq.com |
c079f148da7e00212e3eaf5c747a85338457e1a3 | 08d02c1dcdac6b909d725cdc3ba4e0cd8a7f203b | /src/krotov/propagators.py | fcdec377f370598de080711e3aad775cb3142963 | [
"BSD-3-Clause"
] | permissive | huangdouzi11/krotov | 5f49c5e054a079373c40e5e10c2698387a58ef49 | 3c3d98255e97c3cebde0e1956c2c3de326274c6f | refs/heads/master | 2020-11-30T14:22:16.998735 | 2019-12-16T05:32:33 | 2019-12-16T05:32:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,115 | py | r"""Routines that can be passed as `propagator` to :func:`.optimize_pulses`
The numerical effort involved in the optimization is almost entirely within the
simulation of the system dynamics. In every iteration and for every objective,
the system must be "propagated" once forwards in time and once backwards in
time, se... | [
"goerz@stanford.edu"
] | goerz@stanford.edu |
2a320d2f386ecb614c8f102de216181edc838719 | 1886388a8041e732b414997b5c77a654de882d51 | /cracking the coding interview/2.Linked List/Delete Middle Node.py | e47e4563b7b5be44c77660426020856419f15721 | [] | no_license | abhinav-TB/algorithms-collection | 7adf0d3322a14668d7bc3528a3e155f42b983ce7 | c6d8e5c52647e63dc345c7e28f1411f59001b5d1 | refs/heads/master | 2021-07-11T03:15:42.476600 | 2021-06-11T17:10:08 | 2021-06-11T17:10:08 | 246,737,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | def delMiddleEle(mid):
if mid = None or mid.next = None:
return False
mid.data = mid.next.data
mid.next = mid.next.next.data
return True
| [
"abhinavtb@gmail.com"
] | abhinavtb@gmail.com |
94cfa6b36e19e5af4391a6ba2102333f076dfde0 | dacd69d93262c4d50dd3ba9308ce848ee8b81b14 | /coininsight/coininsight/wsgi.py | 45dd332f40fa546b481beabc7f2f6b1d006226f5 | [] | no_license | ak604/coininsight | c3e555e69b7b4606e38e7500fc33d828d817d768 | a867c70efbf4aa647512e9deb5d8ba68f6f5248f | refs/heads/master | 2021-08-28T04:21:26.615621 | 2017-12-11T07:03:39 | 2017-12-11T07:03:39 | 113,822,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for coininsight project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"anand.kumar@rockyou.com"
] | anand.kumar@rockyou.com |
92861f33fe92ecccf462fb5f698f61458dfa23b9 | 493a557ed5272cc7c96e9cc057ca56743738923a | /__init__.py | 5033cb3ff3c4f8b205d0d3fab225d4c9d5d75307 | [] | no_license | wangshuai03/nlt | 457372369c6c8b378a81b9c14adc8daf6c4e51ab | 87f969f4d38a1d8dbf023647529e26e7eaa59555 | refs/heads/master | 2021-01-23T17:09:25.373811 | 2015-08-27T02:53:12 | 2015-08-27T02:53:12 | 40,692,062 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | __author__ = 'shuaiwang05@gmail.com'
| [
"wangshuai03@tudou.com"
] | wangshuai03@tudou.com |
08031a8f6945f07d6d8b9252b08f503ad6b2a034 | 2aaad09e724b2b69e0063512a5aa39d371b88aae | /app/core/settings/app.py | 9be01b6b52ff56336cf18e68593a9a1ae9483845 | [
"MIT"
] | permissive | AlexandrChikur/fastapi-realworld-example-app | ea5b8a3a4784d5faa4c8130b72d00bebf4e909cf | 029eb7781c60d5f563ee8990a0cbfb79b244538c | refs/heads/master | 2023-02-07T19:37:59.771074 | 2022-08-21T02:23:41 | 2022-08-21T02:23:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | import logging
import sys
from typing import Any, Dict, List, Tuple
from loguru import logger
from pydantic import PostgresDsn, SecretStr
from app.core.logging import InterceptHandler
from app.core.settings.base import BaseAppSettings
class AppSettings(BaseAppSettings):
debug: bool = False
docs_url: str = "... | [
"noreply@github.com"
] | noreply@github.com |
9cb20d73397b20907fb309582de79e5a46e4d8a4 | 0fb63e4fb2fd1a28c031ee85c04b646b51830db0 | /main.py | ed85d7a3a7e100ca877481bdf77e5ecc2374aa02 | [] | no_license | ash12358/crawl_instagram | 68f24d3b672c187d0ed4a950218c200e4fa597f2 | 32bf7494168e6fcc11930f30177c211077837329 | refs/heads/master | 2020-03-23T12:34:22.298591 | 2018-07-25T09:59:27 | 2018-07-25T09:59:27 | 141,567,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py |
from crawl_by_username import crawl_by_username
from blacklist import Blacklist
usernames = []
start = False
start_username = 'jsterne33'
def check(username):
global start
if start == True:
return
else:
if (username == start_username):
start = True
pass
# file = 'C:/Use... | [
"1628415175@qq.com"
] | 1628415175@qq.com |
ce6ad574a0daff05232a71cac22a1c78ff73ea55 | 85c2247ecc1dd8c3c8888e8132e2f09a74e4b171 | /aaroganalytics/settings.py | 0c2a06999350b40acc43afb5aa348159df184d61 | [] | no_license | darshambaliya/aarogya_analytics | 46b5a0fbd8cd7d02eed29106b2ef825c5bf30df7 | d704ee9e174795b9a0bc17ea5d99dd2bf6f489a9 | refs/heads/master | 2022-04-18T01:38:27.658105 | 2020-04-22T09:22:40 | 2020-04-22T09:22:40 | 257,846,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,279 | py | """
Django settings for aaroganalytics project.
Generated by 'django-admin startproject' using Django 3.0.3.
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/
"""
impor... | [
"darshambaliya@gmail.com"
] | darshambaliya@gmail.com |
f9e08801e0dd92ce69e96901846df944cfafd2c5 | c981d844c705fbfc90656db7d82153f392cf0a03 | /basic/list1.py | 2cb0e538fdd0f708c8e6df7ec4aaedaaa758eb83 | [
"Apache-2.0"
] | permissive | steineron/python-101 | a989c28f9be3c46ad228abd1e97212c1ec087d70 | b49902d113887e9a4338cbb99cb768dcb76625f1 | refs/heads/master | 2020-03-20T20:21:08.126052 | 2018-06-19T19:26:48 | 2018-06-19T19:26:48 | 137,682,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,150 | py | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Basic list exercises
# Fill in the code for the functions below. main() is already set ... | [
"ron.steiner@tabcorp.com.au"
] | ron.steiner@tabcorp.com.au |
3514a9d602ddc29c474c2529040b560dfa36e6db | 08d1ec6d1741ecafd13693704c65d7153dd731cd | /ecommerce/ecommercewebsite/ecommercewebsite/settings.py | 96a1eeb36340d10a467f69fcb479d560ca95f117 | [] | no_license | baadhira/studentstudyportal | 02e3fd4eaf83fd98888aceac53a359e3a3747b9e | 9a5580dace73d8c85a8c23753cb0e6d7a62532a1 | refs/heads/master | 2023-08-11T06:40:13.581245 | 2021-09-26T09:39:57 | 2021-09-26T09:39:57 | 410,479,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,310 | py | """
Django settings for ecommercewebsite project.
Generated by 'django-admin startproject' using Django 3.0.
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/
"""
impor... | [
"badirakunhabdulla@gmail.com"
] | badirakunhabdulla@gmail.com |
06ab40e0b88490e56e9bd9ac37b30153986def03 | 09d7c902e35df7eec3d3da192f0aaa47739540a5 | /user_portrait/cron/flow4/zmq_work_weibo_flow4.py | 241ba690235543b12bd7c89723eb1de326fac4c5 | [] | no_license | yuwendong/user_portrait | 2a9604ea5389f9410aae98acad11742454c36d6e | 1b2cd78c91a7154c3e360a90d8426b53b68b4453 | refs/heads/master | 2020-12-24T16:41:06.469723 | 2015-10-15T14:32:26 | 2015-10-15T14:32:26 | 38,371,050 | 1 | 0 | null | 2015-07-01T12:54:02 | 2015-07-01T12:54:01 | null | UTF-8 | Python | false | false | 5,036 | py | # -*- coding=utf-8 -*-
import re
import sys
import zmq
import time
import json
import math
from datetime import datetime
reload(sys)
sys.path.append('../../')
from time_utils import ts2datetime, datetime2ts
from global_utils import R_CLUSTER_FLOW2 as r_cluster
from global_config import ZMQ_VENT_PORT_FLOW4, ZMQ_CTRL_V... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
324d2ab09e9924efc6e877be13f4cdfe40095ef3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03495/s459851114.py | 65115c84d9ff5de8c900d6c54330919f477407fb | [] | 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 | 218 | py | # arc086_a.py
import collections
N, K = map(int, input().split())
A = list(map(int, input().split()))
C = collections.Counter(A)
C = sorted(C.values())
lenght = len(C)
# print(lenght, K, C)
print(sum(C[:(lenght-K)]))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6f30e11fcb2ba4ecc7185185027b62f16a44e4c6 | be5ea20226c37d81f1ccb2f704d8825d36e88765 | /01. Defining classes/Exercise/01_car.py | 00078b2c67447f092dffe365c113ef2ae8c2b86b | [] | no_license | dimDamyanov/PythonOOP | 3845e450e5a48fef4f70a186664e07c0cd60e09b | 723204f5b7e953874fac9314e48eb1d1628d6ff5 | refs/heads/main | 2023-04-07T18:00:36.735248 | 2021-04-19T20:57:14 | 2021-04-19T20:57:14 | 341,329,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | class Car:
def __init__(self, name: str, model: str, engine: str):
self.name = name
self.model = model
self.engine = engine
def get_info(self):
return f'This is {self.name} {self.model} with engine {self.engine}'
car = Car("Kia", "Rio", "1.3L B3 I4")
print(car.get_info())
| [
"dim.damianov@gmail.com"
] | dim.damianov@gmail.com |
5d028cc1080c4c3e46b7d4d114f8177121ac2c6d | d16c15f2fb433c6b5874ea49ff5db89315e9711d | /benchmarks/comparison-with-addict.py | 2f6c181632636f0ac48d33a840027e004ad8d8d9 | [
"MIT"
] | permissive | vltr/middle | f9e16735beaccafdc7535271418dd9a8f6b22706 | f7782610fbb1d9232a3b4cfea057a9331db2775e | refs/heads/develop | 2023-08-17T20:35:02.878999 | 2019-06-18T15:44:46 | 2019-06-18T15:44:46 | 138,063,484 | 11 | 2 | MIT | 2023-09-04T21:27:09 | 2018-06-20T17:15:26 | Python | UTF-8 | Python | false | false | 4,561 | py | import cProfile
import sys
from enum import Enum
from enum import IntEnum
from enum import unique
from typing import Dict
from typing import List
from typing import Set
# --------------------------------------------------------------- #
# Import boilerplate
# -----------------------------------------------------------... | [
"rkuesters@gmail.com"
] | rkuesters@gmail.com |
a27a8a11d312ede778064560e5cc85d4dd78a852 | 3ea8e9a510f9555723e15fbd02fa69e2a1811910 | /xgboost_model.py | b4ee4fd8af3bef26d8f0cf6dc34bef61b4450497 | [] | no_license | jinxinbo/base-model | cd5f37957c8c257be8c071d50830c5655c93a541 | 580d4bee2e8f9ab5ad7e313a0da66ff95479e425 | refs/heads/master | 2020-08-15T00:17:30.368581 | 2019-10-15T09:58:01 | 2019-10-15T09:58:01 | 215,252,126 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,907 | py | import pandas as pd
import numpy as np
import ks
import seaborn as sns
import xgboost as xgb
import pydotplus
import pickle
from collections import Counter
import seaborn as sn
import matplotlib.pyplot as plt
from sklearn import tree
from scipy.stats import ks_2samp
from sklearn.model_selection import train_test_split
... | [
"jinxinbo@maimaiti.site"
] | jinxinbo@maimaiti.site |
46b6b5d8b043f3bc8e33ee6469b6d7db8f619fbf | 14cd95cc096972676b66478297ba64173c990d76 | /main_service.py | e3e4326133e4888ee4209419f116843403481c35 | [] | no_license | shuoh/wechat-gif-bot-service-demo | 26ad7f8f719a43fbcd893dc9b28dc0144688094d | ca86252634f9501e8608d689ff4f9cebf0c933cc | refs/heads/master | 2021-01-10T03:16:40.961156 | 2016-04-10T19:27:39 | 2016-04-10T19:27:39 | 55,125,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,967 | py | # -*- coding: utf-8 -*-
import sys
import random
from flask import Flask, request
from gifbot.helpers.wechat_api_helper import wechat_api_client, upload_wechat_media_by_url
from gifbot.gif_search.search_services import GifSearchService
from wechat_sdk.messages import TextMessage, ImageMessage, VideoMessage, ShortVideoM... | [
"hanshuo.cmu@gmail.com"
] | hanshuo.cmu@gmail.com |
a20e3169c1da87ff6b533f3bff67340e4d07b45b | 805c81242d80a143e6f8d4f9db099bbf4a5fb384 | /bot_requests.py | 37800dd58ff260d096dd35bb23f129290961637f | [] | no_license | odv52/sberbot_helper | 1da0608178909db51f013b59a9ec272579157ae8 | 92d07b7958cd264c287e0919d58f9f6f13aa04d1 | refs/heads/master | 2022-12-24T09:59:11.231999 | 2020-08-05T01:22:38 | 2020-08-05T01:22:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,115 | py | import sqlite3
import datetime
def get_user_day(start_date, curr_date):
return (int((curr_date - start_date).days) + 1)
def get_user_status(user_id, user_day, hour = -1, dayTo = False):
conn = sqlite3.connect("db\sberbot.db")
cursor = conn.cursor()
try:
if hour == -1 and dayTo == False:
... | [
"rugratko@gmail.com"
] | rugratko@gmail.com |
8d00346ccd82c5a105df92d54bf196574f2e3de6 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/9c113f9b86aece3efdf169af67c4e436/snippet.py | 0262b68437c1a2c6ae2c332e575f4c5626c155a7 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 288 | py | def main():
n,k=[int(i) for i in input().split(' ')]
a=[1]*(n+1)
for i in range(1,min(k, n+1)):
a[i]=a[i-1]+a[i-1]
if k <= n:
a[k]=sum([a[j] for j in range(k)])
for i in range(k+1, n+1):
a[i]=a[i-1]+a[i-1]-a[i-k-1]
print(str(a[n]))
main()
| [
"gistshub@gmail.com"
] | gistshub@gmail.com |
bb48acb2c9e051e466d736874572d5cfcb303796 | 989438f4b53eafc99592d1cda6d5c36cec47ebc4 | /REST/examples/restpatch.py | 68165309b0005f5e1b778a847d2af3d4bbbdb4eb | [
"BSD-2-Clause"
] | permissive | extremenetworks/EXOS_Apps | 90fea9d852316b02d469755e4312318319d05b6e | cbbad672ac5a9f215df41c35322c1b813bb9b5f3 | refs/heads/master | 2022-05-14T18:27:08.775703 | 2022-05-02T15:04:53 | 2022-05-02T15:04:53 | 62,334,976 | 19 | 7 | null | 2022-05-02T15:04:54 | 2016-06-30T18:52:01 | HTML | UTF-8 | Python | false | false | 4,193 | py | #!/usr/bin/env python
# Python Scripts provided by Extreme Networks.
# This script is provided free of charge by Extreme. We hope such scripts are
# helpful when used in conjunction with Extreme products and technology;
# however, scripts are provided simply as an accommodation and are not
# supported nor maintained ... | [
"shree6vishwa@gmail.com"
] | shree6vishwa@gmail.com |
33bb098dbfdbc57f5ef350e7c7e602aa732e4795 | 4dbd73de51785c6208ad57bf70026fb14a8baa45 | /tmptest.py | 575b746745cfc1fbe3d8358354f21420ec8dcb00 | [] | no_license | shayhectico/Multiprocessing | 5d1ee32435a090cb65fd37a49e8605b6ed2d6b30 | 9bcb3924a75fb2755f8a12f8c8d037eda8d07bf7 | refs/heads/master | 2020-05-25T21:39:18.762124 | 2019-05-22T09:06:35 | 2019-05-22T09:06:35 | 188,002,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | ##from dask.distributed import Client
##
##client = Client('localhost:8786')
from dask.distributed import Client, LocalCluster
cluster = LocalCluster(
n_workers=4,
ip='127.0.0.1',
)
client = Client(cluster)
| [
"noreply@github.com"
] | noreply@github.com |
4641686c6506d804e9db248b283213edfca6aad7 | 9dd81f05a180edb8a3fa74baba5debac7e4f34e6 | /1000-1999/1008.py | 06f5c3b3926538671967ac645c566eea02705d5c | [] | no_license | nowroo1/Baekjoon | 1a52f8bff9899e727d5821a0fb42df8562cb87e8 | 72abe129cbc4b5194c81ed037411066fc14a673f | refs/heads/master | 2022-06-07T22:48:09.709703 | 2020-05-04T07:08:32 | 2020-05-04T07:08:32 | 257,307,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | data = input()
a = data.split()
print(int(a[0]) / int(a[1])) | [
"nowroot@gmail.com"
] | nowroot@gmail.com |
d86682087562f47c382fcc8b60bd8e5cbc6fac3b | 264e791a6106b35d3f907af2065add2bcc3dc36c | /build/hector_slam/hector_trajectory_server/catkin_generated/pkg.develspace.context.pc.py | bb038b231fee5173f16ede90a2f13627a8fbbba7 | [] | no_license | hogunkee/RRT | 9a3c10f0110dbb5bd44c46bd98b6bfc2f83e0581 | 1f693d6338de5c6e2df83d8728e0ed398d4da540 | refs/heads/master | 2020-03-17T23:20:26.382084 | 2018-05-19T07:35:42 | 2018-05-19T07:35:42 | 134,040,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "hector_trajectory_server"
PROJECT_SPA... | [
"hogunhogun@naver.com"
] | hogunhogun@naver.com |
2df623dd9db20cd2aa0eb30f1334f2ffc828c00c | a47e5a1565b8b4a23010020fa6ed4225459845e7 | /marubatsu1.py | 3085d8d5bc8fb46f0a2622392e8575a84bd52493 | [] | no_license | katuhito/workspace13 | 0a4832e510c5f59a48aa0262985bcda91c01908d | 16e55c5e6f32e009ff27c9a22315916175303970 | refs/heads/master | 2023-03-08T08:48:28.602697 | 2021-03-07T01:07:41 | 2021-03-07T01:07:41 | 335,497,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | # 3目並べ
import random
goal = [
0b111000000, 0b000111000, 0b000000111,
0b100100100, 0b010010010, 0b001001001,
0b100010001, 0b001010100
]
# 3つ並んだか判定
def check(player):
for mask in goal:
if player & mask == mask:
return True
return False
# 交互に置く
def play(p1, p2):
if check(p2)... | [
"katuhitohara@gmail.com"
] | katuhitohara@gmail.com |
9cc392506dd8e2264ee2636e5398c92d590dd30a | 5efdd4f888c629f80d2a944e8c4b3b8f735e4ba7 | /apps/users/forms.py | fb89b620bbee1e973e90e3801f6507b703d12cb8 | [] | no_license | quynv/tms_43 | 5d13978219960fe89e54965c0f69d1a3bd9940a0 | c0f4c0c3a121fc25017d97304ad4850959db6bc0 | refs/heads/master | 2021-01-16T20:43:37.317333 | 2016-02-25T02:21:27 | 2016-02-25T02:21:27 | 49,108,481 | 0 | 0 | null | 2016-01-06T03:04:15 | 2016-01-06T03:04:15 | null | UTF-8 | Python | false | false | 2,220 | py | __author__ = 'javimuu'
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from django.core.exceptions import ValidationError
class UserCreateForm(UserCreationForm):
MIN_LENGTH = 6
MAX_LENGTH = 30
class Meta:
model = User
... | [
"muuduy@gmail.com"
] | muuduy@gmail.com |
5edfee60e109cd40d2d336f384b39f92932c5ee9 | 3f7c9996f3a5021936a10cf84ed64004717746c2 | /classificationMethod.py | 2ac1389c216ef5af2cadebc03b3652cf16dc075e | [] | no_license | nnasta3/Face-And-Digit-Classification | caaa685c76fe337fc86ff1c1da1be9a128f1b128 | 096d270551f9aaa05fc7c3123af978ae76e373e3 | refs/heads/master | 2020-12-13T11:27:42.733175 | 2020-03-09T02:38:10 | 2020-03-09T02:38:10 | 234,402,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | py | # classificationMethod.py
# -----------------------
# Licensing Information: Please do not distribute or publish solutions to this
# project. You are free to use and extend these projects for educational
# purposes. The Pacman AI projects were developed at UC Berkeley, primarily by
# John DeNero (denero@cs.berkeley.edu... | [
"nnasta3@gmail.com"
] | nnasta3@gmail.com |
e1284148a20e1ebd3105a1f1848ec3380948d063 | 81385f25e102b1eba911da8ac87f4683d97fccc7 | /pytest/test_web.py | 4d3fe856f85598c2656e204a5285e648a6d478bc | [] | no_license | egolodnikov/qa_projects | f702f2d282b6bad7bd5fee0ceb8b0cfcff42a1fc | 1879d5f5b200b827d0a6191ab327ac70f1d0f587 | refs/heads/master | 2023-04-30T17:12:59.894289 | 2021-05-16T23:32:06 | 2021-05-16T23:32:06 | 367,479,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | import pytest
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait as wait
from selenium.webdriver.support import expected_conditions as EC
url = "https://www.mozilla.org"
title = "Internet for people"
@pytest.fixture
def web_fix():
dr... | [
"eagolodnikov@sberbank.ru"
] | eagolodnikov@sberbank.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.