blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b650477605a3faa43e7de1d4aa3f5a17765b0136 | b31a2d70e2ae74b4faca68d6123ed2d5a6621eb9 | /XOR_one_element.py | 5dd79a5b9541268333340aad3d290d8274ce6631 | [] | no_license | RexZChen/AlgoGo | 451ef0dcf821e4b9b9996e2361ba238869802c33 | 5bae8af4aa18b2a9252b23e5f9d7f368d52c6aa4 | refs/heads/master | 2023-03-19T05:41:14.066131 | 2021-03-12T05:40:52 | 2021-03-12T05:40:52 | 341,339,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,690 | py | # Sol 1
class Node:
def __init__(self, v):
self.minValue = v
self.left = None
self.right = None
class Solution:
def addValue(self, root, val2add):
current_node = root
for i in range(31):
current_node.minValue = min(current_node.minValue, val2add)
... | [
"54689268+RexZChen@users.noreply.github.com"
] | 54689268+RexZChen@users.noreply.github.com |
f5b4ce49234aa51d775d4794255d26f32726d67e | ce5ce3764e75774c0b7eab47893987b9f311b1b9 | /.history/moments/models_20210605234329.py | 2a69731e929875c9c2fe37b29fe4471a44af790c | [] | no_license | iSecloud/django-wechat | 410fb8a23b50dc2343c2f0167bbae560bf6e9694 | faaff9bb7f9454a63b2f8411d3577169b470baad | refs/heads/main | 2023-05-15T06:53:16.252422 | 2021-06-07T14:00:35 | 2021-06-07T14:00:35 | 374,685,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class WeChatUser(models.Model):
user = models.OneToOneField(User, models.CASCADE)
motto = models.CharField(max_length=100, null=True, blank=True)
pic = models.CharField(max_length=50, null=True, blank... | [
"869820505@qq.com"
] | 869820505@qq.com |
8eb957e4e9d343c21ad64abc13676b383ca23605 | 5804306e22fae2f475d4bd54b3568dc6af71130c | /python_study/study_mooc/study_4.1.1.py | e6db2b3ac3052b2835d5418338ef2cff6b74e2ff | [] | no_license | chenxiang97/study_base | fd2037dffa301edf80dbc5c5fc858dcf6b87b206 | 146fb26b050de50d6b8a3aceffab4ebdd828621b | refs/heads/master | 2022-12-31T00:35:08.039942 | 2020-10-20T04:43:57 | 2020-10-20T04:43:57 | 305,280,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | #CalBMIv1.py
height,weight = eval(input("请输入身高(米)和体重(千克)[使用逗号分隔]:"))
bmi = weight/pow(height,2)
print("BMI指数为:{:.2f}".format(bmi))
who = ""
if bmi < 18.5:
who = "偏瘦"
elif 18.5 <= bmi <25:
who = "正常"
elif 25 <= bmi < 30:
who = "偏胖"
else :
who = "肥胖"
print("BMI 指标为:国际'{0}'".format(who)) | [
"18720311636@163.com"
] | 18720311636@163.com |
e7677af3ac2c6f8fdd1fde6b3e2068393a380ef5 | 8fd368db869a123ce24515995cfe0f3bf16311f9 | /Part 2 - Regression/Section 8 - Decision Tree Regression/decision_tree_reg.py | 82f7aa13349da71fe3868729665439c6ac49125f | [] | no_license | pathakarpit/Machine-learning-refrence-folder | 66b4255cc81ecd8b70c9c04719f32d706d732ed9 | bc4cfec2098b942978278d7f057f9798b0a43377 | refs/heads/main | 2023-07-11T22:57:55.197586 | 2021-08-15T21:29:46 | 2021-08-15T21:29:46 | 384,494,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
#for decision tree
from sklearn.tree import DecisionTreeRegressor
#importing datasets
dataset = pd.read_csv('Position_Salaries.csv')
X = dataset.iloc[:, 1:-1].values
y = dataset.iloc[:, -1].values
#making decision tree
regressor =... | [
"noreply@github.com"
] | pathakarpit.noreply@github.com |
9ca6db7957cc31ae72b2b5347b7994b5447e1f08 | 1f63dde39fcc5f8be29f2acb947c41f1b6f1683e | /Boss2D/addon/tensorflow-1.2.1_for_boss/tensorflow/python/kernel_tests/rnn_test.py | 09160c41e472bbfb860179d0c5268646f827273e | [
"Apache-2.0",
"MIT"
] | permissive | koobonil/Boss2D | 09ca948823e0df5a5a53b64a10033c4f3665483a | e5eb355b57228a701495f2660f137bd05628c202 | refs/heads/master | 2022-10-20T09:02:51.341143 | 2019-07-18T02:13:44 | 2019-07-18T02:13:44 | 105,999,368 | 7 | 2 | MIT | 2022-10-04T23:31:12 | 2017-10-06T11:57:07 | C++ | UTF-8 | Python | false | false | 22,334 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"slacealic@gmail.com"
] | slacealic@gmail.com |
252c04a3b98c4e8e2387b8c722ae45e021a67465 | 5051b5add22e11169f12be6e088c04208d58127e | /04 - Django/mainsite/url_short/admin.py | b892fa2624a784f5a59f5239146f27ed1f4265b3 | [] | no_license | cmirza/FullStackDay-PdxCodeGuild | be8c6fe2683986ea9dfe3aa7f105d18a5f145c4c | 9a99bc505e3e96d03d8579996f749a569e676338 | refs/heads/master | 2021-09-06T05:47:16.060665 | 2018-02-02T21:25:23 | 2018-02-02T21:25:23 | 105,681,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from django.contrib import admin
from .models import URLItem
admin.site.register(URLItem)
| [
"mail@cmirza.com"
] | mail@cmirza.com |
1634fedf0b28a1125ac978543e4466d94adb6655 | 000506d7214fa722d06d4ab1fdfd199e199a2643 | /TestApplication/models.py | b9fc5f05bc06c942450ab86980b24284c6bd2cd2 | [] | no_license | CAPPK/Live-Chat-App | 7e58a0ba9c78b24be0c4c4758538a96500e1a125 | f9f5b69eb46bb4b2bc76e136504f2d096e51b431 | refs/heads/master | 2023-08-15T06:03:36.667291 | 2020-04-20T22:49:01 | 2020-04-20T22:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | from auth import generate_password_hash, check_password_hash
from flask_login import UserMixin
class User(UserMixin):
"""A user for the application."""
def __init__(self, username, password):
self.id = username
self.password = password
def to_dict(self):
return {
'use... | [
"55294326+bhellested@users.noreply.github.com"
] | 55294326+bhellested@users.noreply.github.com |
c92bc503e230290e2b426b13c325f2d4a9826f04 | 89a68ee43d962d952f4373db3c4abe458e8b3279 | /supermarkt_price_index/main.py | 2397d5ca08eb8c9c9a7553f1927cd92bf71a2ca8 | [] | no_license | rwblokzijl/supermarket_price_index | 331673126f621f7ef6fa29b0f2cea80bc2208888 | 6c6a97700f80d5ec9abcdbcd17ddd4efd7bdfd96 | refs/heads/master | 2023-07-01T02:43:55.538024 | 2021-08-08T17:29:04 | 2021-08-08T17:29:04 | 386,938,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,372 | py | #!/usr/bin/env python3
from gql import Client, gql
from gql.transport.requests import RequestsHTTPTransport
from query import get_query
import json
import csv
from typing import *
def persist_to_file(file_name):
def decorator(original_func):
def new_func():
try:
cache = json.... | [
"wesselb94@gmail.com"
] | wesselb94@gmail.com |
654e36ee1139fd4e26f34bff8a5ad866723502e8 | 9e2bd8e828d3aeedc9b5034d847a8e1e3a381cfa | /rltk/io/adapter/__init__.py | 75fd0cceb723c9a2948f88da45ca6d33433231d1 | [
"MIT"
] | permissive | rpatil524/rltk | 0a55c6d5f02ccf2991dc458fb38a0bf4f0caa151 | aee10ed5dd561583e60db3373ed82fe1208da1e9 | refs/heads/master | 2021-11-01T10:41:12.158504 | 2021-10-06T23:41:52 | 2021-10-06T23:41:52 | 183,799,148 | 0 | 0 | MIT | 2021-09-04T03:42:53 | 2019-04-27T16:53:12 | Python | UTF-8 | Python | false | false | 624 | py | from rltk.io.adapter.key_value_adapter import KeyValueAdapter
from rltk.io.adapter.memory_key_value_adapter import MemoryKeyValueAdapter
from rltk.io.adapter.dbm_key_value_adapter import DbmKeyValueAdapter
from rltk.io.adapter.redis_key_value_adapter import RedisKeyValueAdapter
from rltk.io.adapter.hbase_key_value_adap... | [
"bigyyx@gmail.com"
] | bigyyx@gmail.com |
1339b0178281e99e4eb5bae3eac88fa217821e6d | e263d15bb90a684f3ebfc3f91cadf25387d2fbc3 | /venv/bin/easy_install | ac888d077e6dcedeecceea3b0381486dc668e8ac | [] | no_license | sparki093/git-repo | 4ef956e8ffc9b4442569befbda87130dc062c809 | feb2feb27ba9083adad6d869bfb87d767655f415 | refs/heads/master | 2023-03-20T06:08:43.656936 | 2021-03-01T12:49:55 | 2021-03-01T12:49:55 | 340,649,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/home/alex/VSCode/blog/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"valakh2607@yandex.ru"
] | valakh2607@yandex.ru | |
5ad66c95f951ffa394489df37abe95203ee60013 | 415b8198e967f7084592ab564a3e5f12e9deccc8 | /Codes/First_semester/Read_hf_files.py | a9955d51c45b8234bb387162fb8d52eb1e16f440 | [] | no_license | ierdembayar/Classification-of-Satellite-and-UAV-Images-for-Communication-Systems | 99ec03bd1bbeebb3a34d9d97978a6c482f0a2959 | 0b1af0a8c3683f6daf10c89f3e79f0f3701884c9 | refs/heads/master | 2021-05-18T01:06:55.340096 | 2020-03-29T13:17:50 | 2020-03-29T13:17:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | import h5py
import os
from PIL import Image
import numpy as np
import matplotlib.image as mpimg
import pandas as pd
import matplotlib.pyplot as plt
from keras.preprocessing.image import array_to_img
file_path = os.path.dirname(os.path.abspath(__file__))
filename = file_path + "/900Mhz_300m_imWithHisto_train_da... | [
"noreply@github.com"
] | ierdembayar.noreply@github.com |
9c91e73a5440b8c28e4620927f5a5026b41dba99 | d49fbd7874b70a93cbc551afed1b87e3e47617a8 | /django/example/functions/auth.py | 77a3a3bacddb35d18816e9b9d8c1217f663a1b2b | [] | no_license | gitter-badger/tutorials-4 | bbdbb673e978118f9fec3212baa13f6f99226be0 | 3ce1cdb7c6d26f6df4d6bb94e82f83e8cab9389b | refs/heads/master | 2020-04-04T20:52:28.181616 | 2018-10-28T22:05:17 | 2018-10-28T22:05:17 | 156,264,177 | 0 | 0 | null | 2018-11-05T18:32:17 | 2018-11-05T18:32:16 | null | UTF-8 | Python | false | false | 470 | py | from attr import attrib, attrs
from django.contrib.auth import login, password_validation
from django.core.exceptions import ValidationError
def validate_password(raw_password):
try:
password_validation.validate_password(raw_password)
except ValidationError as error:
return False, error
e... | [
"proofit404@gmail.com"
] | proofit404@gmail.com |
394f3e43110d7d691d9c5b0e211589ffc8f858be | 868d1bd002a66bce3f86054b00a69c49f285126f | /books/01.DeepLearningScratch/chapter01/11.class/class.py | 78dafb4d812c53418e5c227e0f92a5a41abc8daf | [] | no_license | doukheeWon-gmail/DeepLearningStudy | cf81ac5867373c8028519133a1cca80024f8f0ff | d346d0572c45e2f2229bd14e5aadeb077074ffa9 | refs/heads/master | 2023-03-16T19:05:49.594092 | 2021-03-08T09:03:46 | 2021-03-08T09:03:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | # coding: utf-8
class Man:
def __init__(self, name):
self.name = name
print("Initialize")
def hello(self):
print("Hello " + self.name + "!")
def goodbye(self):
print("Good-bye " + self.name + "!")
m = Man("David")
m.hello()
m.goodbye() | [
"fain9301@yahoo.com"
] | fain9301@yahoo.com |
895720b4139dedaaaf67df9c2105c300065a8a0f | 8001e6a88312e9b2966909a817031027efdf9c3c | /scripts/Legacy/deprecated/Realtest.py | 6bf61f2796cb81f7db091b733d93732daedd4fdb | [
"MIT"
] | permissive | rhong3/Neutrophil | e7e67f6773e1d943b0872afe272f1609b0948d0a | 97efb7cc01dc7b1bb06e29a824352d493bb4add5 | refs/heads/master | 2021-07-05T00:53:26.606819 | 2020-07-31T15:16:57 | 2020-07-31T15:16:57 | 140,477,754 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,704 | py | # Tile a real scn file, load a trained model and run the test.
"""
Created on 09/28/2018
@author: RH
"""
import get_tile
import time
import matplotlib
matplotlib.use('Agg')
import os
import sys
import numpy as np
import HE_data_input_te
import cnnm
import cnng
import cnni
import cnnt
import cnnir1
import cnnir2
impor... | [
"rh2740@nyu.edu"
] | rh2740@nyu.edu |
0e961003dcb191f892a1ebafa66c42a9f3c130d3 | 78011517bc7fe931f736b81297d0603f7dc01819 | /Python/kettle_set_mode.py | bd205cdc3f9d36d16e56196725915e22b9f34f4c | [] | no_license | BorisE/RedmondKettle | 47c040f90be4ccf7cee76720d793b4ab908ccfc3 | dec016e65a8cd9663719c279ef6bb98fda60f923 | refs/heads/master | 2021-05-17T18:17:43.429333 | 2020-04-05T18:08:14 | 2020-04-05T18:08:14 | 250,914,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py | #!/usr/bin/python
# coding: utf-8
#from kettle.kettleclass import RedmondKettler
#from kettle.logclass import logclass
from kettle.logclass import log
import sys
#Use main wrapper library
from kettle_wrappers_lib import *
#Private part
if __name__ == "__main__":
log.debug(f"Arguments count: {len(sys.argv)}")
... | [
"email@example.com"
] | email@example.com |
5d8c2d955c93665a6a101d866aabccc05a6eec22 | ed9e1b622dad6b559cd0fe6fa23d6a27f857dc7f | /galsim/config/input_powerspectrum.py | c80cacd70793e9d12c16b6aa092dc249e98deb81 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ajwheeler/GalSim | 40d6f8c64789b601ed2547eefed05f1577592613 | cf0ef33e5f83da1b13a0617d362d8357056d6f22 | refs/heads/master | 2021-01-22T06:14:31.486159 | 2017-04-20T01:20:20 | 2017-04-20T01:20:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,937 | py | # Copyright (c) 2012-2017 by the GalSim developers team on GitHub
# https://github.com/GalSim-developers
#
# This file is part of GalSim: The modular galaxy image simulation toolkit.
# https://github.com/GalSim-developers/GalSim
#
# GalSim is free software: redistribution and use in source and binary forms,
# with or w... | [
"michael@jarvis.net"
] | michael@jarvis.net |
4a0710140ef441c276e39701404ea8f661acf36a | 249298bde8b03da659171947b29b8761b7115201 | /pollux/adaptdl/adaptdl/checkpoint.py | ed158092630eecbb9441a42570d4b78a92aa3f4f | [
"Apache-2.0"
] | permissive | gudiandian/ElasticFlow | cd4ce1f97f17cb878aa79865277ab64fa8ba7f89 | 0ffc17d257f2923de6478c4331ea64d858e7ab53 | refs/heads/main | 2023-04-18T14:45:49.998762 | 2023-01-05T13:13:10 | 2023-01-05T13:13:10 | 541,545,148 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,657 | py | # Copyright 2020 Petuum, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"gudiandian1998@pku.edu.cn"
] | gudiandian1998@pku.edu.cn |
252dcf468e2f7a8486144abbbbd8991296a8ff2c | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/ETFMM_K/YW_ETFMM_SZSJ_403_K.py | 3b875095e4f9841ff364c4ae9f79cb0c40b3692f | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,078 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
a5ee1872c6c373df25f50d062c448a2600297ef8 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Outside_Air_Flow_Sensor.py | 68914369d58d176ddefe3473259f05153cfd0d36 | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Air_Flow_Sensor import Air_Flow_Sensor
from brick.brickschema.org.schema._1_0_2.Brick.Outside_Air import Outside_A... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
2976e8654cde6b64a1c1350a8f837bf3166e7683 | c363b1cbcc7d22957a6cd3df4f64ce64171a1f54 | /online_library/comment/urls.py | 08b7f433ecb763b9eb38f261f82b76f1a454a296 | [] | no_license | iris-j/Online-Library | 29ea7c6bb94370a1bcd76af6a8cf85183b290b88 | 92feee4880f20b342cb71c753d3129ce531c89a6 | refs/heads/master | 2020-04-27T01:26:00.031596 | 2019-03-06T15:10:07 | 2019-03-06T15:10:07 | 173,965,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | from django.conf.urls import url
from comment.views import create_comment, view_comment, delete_comment
urlpatterns = [
url(r'^comment/create/(?P<isbn>\d+)/$', create_comment, name='create_comment'),
url(r'^comment/view/(?P<isbn>\d+)/$', view_comment, name='view_comment'),
url(r'^comment/delete/(?P<commen... | [
"1342640516@qq.com"
] | 1342640516@qq.com |
d1a8a52cfbf35438a187599eb96006576f455b17 | 1f2b05dbe818ff922269717389187e5ced71d198 | /blog/feeds.py | 1abe7ca5675208ef1cc195782b747a4c6430f792 | [
"BSD-2-Clause"
] | permissive | Pythonian/suorganizer | e665b0c642b62172156bbbd6537485d66709c339 | c835cf1647b2b980d3eaf744c9dd91f33dec7e33 | refs/heads/master | 2022-04-24T10:19:09.722026 | 2020-04-19T09:07:37 | 2020-04-19T09:07:37 | 256,956,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | from django.contrib.syndication.views import Feed
from django.urls import reverse_lazy
from django.utils.feedgenerator import (
Atom1Feed, Rss201rev2Feed)
from .models import Post
class BasePostFeedMixin():
title = "Latest Startup Organizer Blog Posts"
link = reverse_lazy('blog_post_list')
descriptio... | [
"prontomaster@gmail.com"
] | prontomaster@gmail.com |
78c74ed3b0171e81cdd0a592869436c48f52bcff | 0a440ae0241c7916c0061cac0565321748977b22 | /jassbot/my_jass/mcts/mcts_player_CNN.py | 1e45cde920f71482ad5cfcfac739517236ffa3d2 | [] | no_license | iarava/HSLU-DL4G-Exercises | 3fe4d5557bcd75e09f4734fd73cdf0d2a29ab58c | b2db765b7267a2bbcd79f79e0d5af69177a9c880 | refs/heads/master | 2020-11-30T19:05:53.887536 | 2019-12-27T14:55:26 | 2019-12-27T14:55:26 | 230,460,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,302 | py | # HSLU
#
# Created by Thomas Koller on 20.08.18
#
import numpy as np
import time
import jass.base.const as const
from jass.base.player_round import PlayerRound
from jass.player.player import Player
import jass.base.round_factory as roundInf
from my_jass.mcts.Node import Node
from my_jass.mcts.Tree import Tree
from my... | [
"luca.rava@stud.hslu.ch"
] | luca.rava@stud.hslu.ch |
53fc2a21319728318e530d098bcda222407695a5 | 7cf3909e4c9a0ceca372ec2c1330ee6fe6886c84 | /pos/load.py | 12218df11bc0f54884b7f637a5715355a215e6d9 | [] | no_license | levchCode/MoscowEstate | e326d760484059da91f4b225c140a519381b7040 | f5b128f26c03136280e611c6e11842c7e6082066 | refs/heads/main | 2023-05-25T22:22:22.903534 | 2021-05-27T14:10:23 | 2021-05-27T14:10:23 | 371,374,890 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | import urllib.request
import pandas as pd
import os
import time
import random
d = pd.read_csv("final3.csv")
d = d.drop(d[d["pos"] == "-"].index)
for i,row in d.iterrows():
if i in [103]:
time.sleep(random.randint(0, 2))
URL = "http://static-maps.yandex.ru/1.x/?ll={0},{1}&pt={0},{1}&spn=0.0027,0.0... | [
"levch98@mail.ru"
] | levch98@mail.ru |
60606e71554cb438050cad9706362b41e6f67a3a | e9f6698981422f386557aa5de6622396101f3d3e | /54.py | e1af0f189883ad400462c956ef52189703d9be67 | [] | no_license | maksdk/python-basic | ea03734410924b305e98871058d072e0f02e69a5 | b15fec24f5124ba9dc8ed22933fb4d5a010baca5 | refs/heads/master | 2020-10-01T03:37:38.373042 | 2019-12-28T08:44:38 | 2019-12-28T08:44:38 | 227,446,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | if условие 1:
# код, который будет выполнен,
# если условие 1 истинно
elif условие 2:
# код, который будет выполнен,
# если условие 1 ложно, но условие 2 истинно
elif условие 3:
# код, который будет выполнен,
# если условия 1 и 2 ложны, но условие 3 истинно
else:
# код, который будет выполне... | [
"havryshchenko@gmail.com"
] | havryshchenko@gmail.com |
9db632a81b2f05a6b96a3e686c5ca2e03a8894c7 | 81c1debff3a20e51734d1dfb2fc19602088c9fbd | /kismet_parse.py | 6441fe294a6f9ee7741d70f536bc3b2b7fff5558 | [] | no_license | Phil-anthropy/Useful-scripts | b963ba611c5715f750286b046ded8cafb4a3b98b | 398fe56a1ea97649a38145b736e91714b8f7f000 | refs/heads/master | 2021-11-24T11:42:04.345641 | 2021-10-29T15:43:44 | 2021-10-29T15:43:44 | 246,851,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,182 | py | #!/usr/bin/python3
#encoding=utf-8
import sys
import os
import json
import sqlite3
from datetime import datetime
import logging
import errno
import pandas as pd
def main(fname):
# logging.basicConfig(filename='proc.log', level=logging.INFO)
# logging.info("Processing: %s" % fname)
if not os.path.... | [
"noreply@github.com"
] | Phil-anthropy.noreply@github.com |
649fffc0cc3632dcbf5ba2dfa08f82c59a5228a3 | 66f22ebdca9bede8016a388a4beffd5349ad56a0 | /ex10.py | 44967e5818eec1042d5df7866266764d37705bbd | [] | no_license | icadev/Python-Projects | 1de5a617881e87ea7588279b3f6ff5d1e1e39859 | fdf169aac72a917c676261b21d6a76366311a14b | refs/heads/master | 2023-03-18T12:34:17.780849 | 2016-04-19T15:42:57 | 2016-04-19T15:42:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | tabby_cat = "\tI'm tabbed in."
persian_cat = "I'm split\non a line."
backslach_cat = "I'm \\ a \\ cat."
fat_cat = """
I'll do a list:
\t* Cat food
\t* Fishies
\t* Catnip\n\t* Grass
"""
print tabby_cat
print persian_cat
print backslach_cat
print fat_cat
while True:
for i in ["/", "-", "|", "\\", "|"... | [
"carp.ioan@ymail.com"
] | carp.ioan@ymail.com |
abaf7f138942cdf3f08632884ead902bc339f791 | 9cc325b00adba5f1b1d8334d98fcca5e0b995d3e | /setup.py | 557da98bf3b4a4d3cc652154b1d3263ee63fdf58 | [] | no_license | voronind/fuzzy-fabric | 63fb87d92c224c2c27f8fc3da00bcd799eac03e4 | 9afa7426c9ea91be14a706ecbc887432b447615d | refs/heads/master | 2021-05-28T00:43:00.968044 | 2014-08-25T14:35:59 | 2014-08-25T14:35:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | # coding=utf8
from setuptools import setup, find_packages
setup(
name='fuzzy-fabric',
version='0.6.3',
author='Dmitry Voronin',
author_email='dimka665@gmail.com',
url='https://github.com/dimka665/fuzzy-fabric',
description='Fuzzy Functions For Fabric',
packages=find_packages(),
pack... | [
"dimka665@gmail.com"
] | dimka665@gmail.com |
8cae864b52a7dd7781dbd9be549748578cd7c621 | b6b4bb1809094e446f8427069a7582afbea97ea1 | /format.py | 85d848ef1b6241d3875acda6224ed57cd5ac3984 | [] | no_license | letmecode1/python | 0699caa5a7afc02913a1c04ed0d9cd67a4cd6a19 | e12dfd3bac99b307d181adacfb6cb2552f09fa98 | refs/heads/master | 2020-05-17T13:09:48.938677 | 2019-04-30T04:14:28 | 2019-04-30T04:14:28 | 183,729,450 | 0 | 0 | null | 2019-04-27T05:04:07 | 2019-04-27T04:48:23 | null | UTF-8 | Python | false | false | 651 | py | # Replace {} in strings by other strings, numbers, or variables.
name = "Hello, my name is {}"
print(name.format("Alex"))
new_name = "Ben"
print(name.format(new_name))
# These get replaced in the order they appear.
sentence = "Welcome, my name is {} and I am {} years old."
print(sentence.format("John", 53))
# We can... | [
"javierdominguez@iSeeyous-MacBook-Pro.local"
] | javierdominguez@iSeeyous-MacBook-Pro.local |
3176e3ab61e8da0d6acd293525774319b2d3fb17 | ee527d10cbbd842aa74d749bd0397061378b2f55 | /src/products/urls.py | c3b8a8b9d531b57bfb5c12463efc45f7e878ae2f | [] | no_license | rajeevsharmacoder/djangotry | c140c8ecc02ab6b3875756a34f380b513f5981ff | 6e7f6eda1a655674c88aa67331cf5ce57c88c3ce | refs/heads/main | 2023-02-25T23:08:41.612657 | 2021-01-31T15:24:40 | 2021-01-31T15:24:40 | 334,685,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from django.urls import path
from products.views import (
product_detail_view,
product_create_view,
product_update_view,
product_delete_view,
product_list_view
)
app_name = "products"
urlpatterns = [
path('', product_list_view, name='product-list'),
path('create/', product_create_view, name='product-create'... | [
"rajeevsharma@PC277s-MacBook-Pro.local"
] | rajeevsharma@PC277s-MacBook-Pro.local |
01c272af2d82ab2ed9b1ab5b5f39606aed3d5c01 | 42c63d5f9c724c99ba93f77bdead51891fcf8623 | /OpenStack-Mitaka-src/python-manilaclient/manilaclient/v2/share_export_locations.py | 0d0cb3163ea350a24e7e37fcc6849e45d5fa6087 | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | liyongle/openstack-mitaka | 115ae819d42ed9bf0922a8c0ab584fa99a3daf92 | 5ccd31c6c3b9aa68b9db1bdafcf1b029e8e37b33 | refs/heads/master | 2021-07-13T04:57:53.488114 | 2019-03-07T13:26:25 | 2019-03-07T13:26:25 | 174,311,782 | 0 | 1 | null | 2020-07-24T01:44:47 | 2019-03-07T09:18:55 | Python | UTF-8 | Python | false | false | 1,883 | py | # Copyright 2015 Mirantis inc.
# 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... | [
"yongle.li@gmail.com"
] | yongle.li@gmail.com |
6b5cb6b20a8f5f1ca794c0c3f95dd7536d9baba6 | d109b64bfa8c80a6ec7d647beeadf9fe1c667fac | /class0925/clist.py | 5480aaf0d2d17a6e7ea731723916f1a863406239 | [] | no_license | jumbokh/micropython_class | d34dd0a2be39d421d3bbf31dbb7bfd39b5f6ac6f | 950be81582dba970e9c982e2e06fa21d9e9a0fdd | refs/heads/master | 2022-10-10T22:27:02.759185 | 2022-10-01T14:44:31 | 2022-10-01T14:44:31 | 173,898,623 | 4 | 3 | null | 2020-03-31T09:57:23 | 2019-03-05T07:40:38 | Jupyter Notebook | UTF-8 | Python | false | false | 349 | py | clist=[[0,0,0],[255,255,255],[255,0,0],[0,255,0],
[0,0,255],[255,255,0],[0,255,255],[255,0,255],
[192,192,192,],[128,128,128],[128,0,0],[128,0,0],
[128,128,0],[0,128,128],[0,0,128]]
hlist=[[59,96,233],[104,42,67],[213,227,227],[216,18,47],
[12,238,108],[255,246,58],[236,184,20],[240,93,197],
[16,173,186],[0,222,25... | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
ad898af3ead4c60b84d96129fbea7db469805d67 | 18b9368556d1d6769e347732d2726db23fbc836c | /src/db_cache/db_cache_manager.py | 156ef312b701c1fb10e5b23a05e4040c8011f428 | [] | no_license | fxfabre/find_duplicated_files | d30d5de497143562e7c09677c59a7f56b3df589b | 9a9c243afab89c5619bdfe5fee1a02c4e5d9c2b1 | refs/heads/master | 2022-07-12T10:10:32.091206 | 2020-08-11T05:26:23 | 2020-08-11T05:26:23 | 192,222,388 | 0 | 0 | null | 2022-06-21T22:09:31 | 2019-06-16T18:12:12 | Python | UTF-8 | Python | false | false | 5,051 | py | #!/usr/bin/env python3
import os
import traceback
from ctypes import c_ulong
from time import time
from typing import List
from typing import Optional
from typing import Tuple
import pandas as pd
from numpy import base_repr
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy_ut... | [
"fx.fabre@gmail.com"
] | fx.fabre@gmail.com |
3e5280096799b493a5f5a44d93c6f9aa67ed65ea | ecbb539f6c46d1da22c1d677809912800cb2cedb | /performance/app.py | 3846654a0fb6bdaef938aba8bd92add7ea5db55a | [
"MIT"
] | permissive | letyndr/dash | ecc82ea7b653f0e0dcc3f3cd419305cde887b12a | 3ae8cfb9ea67eccc96e0f7a726a87616bb9e19b5 | refs/heads/main | 2023-03-04T00:05:48.336983 | 2021-02-12T23:27:41 | 2021-02-12T23:27:41 | 337,732,665 | 0 | 0 | MIT | 2021-02-10T13:44:59 | 2021-02-10T13:29:27 | null | UTF-8 | Python | false | false | 588 | py | import time
import dash_core_components as dcc
import dash_html_components as html
from dash import Dash
from dash.dependencies import Output, Input, State
app = Dash()
app.layout = html.Div([
"hello, this is Dash!!!",
dcc.Input("input"),
html.Button("Press", id="btn"),
html.Div(id="result"),
])
@ap... | [
"leticia.cruz546@gmail.com"
] | leticia.cruz546@gmail.com |
2f53996e72cbabb87592c05a781fbddacb4b0311 | 1e19224e3bd01383604354f2654e5f05ab97f789 | /Hackerrank/ProjectEuler+/project_euler_15.py | b27c0a3995d80bb2f56cb7bd6a5678b7493f8776 | [] | no_license | kiner-shah/CompetitiveProgramming | f67fdfeee189d9215c0b380197ca03ae2ae0efe1 | 8b3cea85bf99b099d18a978a209aa67030b75c9e | refs/heads/master | 2022-11-29T19:33:37.686989 | 2020-08-22T08:04:28 | 2020-08-22T08:04:28 | 102,189,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | # Lattice paths
def fact(n):
if n==0 or n==1:
return 1
else:
return n*fact(n-1)
t=int(raw_input())
for i in range(t):
x=raw_input()
nm=x.split()
ans=fact(int(nm[0])+int(nm[1]))/(fact(int(nm[0]))*fact(int(nm[1])))
print ans%1000000007
| [
"noreply@github.com"
] | kiner-shah.noreply@github.com |
43e3645065b8674ca05ffd73eebcc5bc57a24d99 | 82ac136fd7cc254cedccc755490c919dcfd7cb78 | /Python/emulate_server.py | c2adf1ca5b2cd058d9a86d97e67400c339ea178c | [] | no_license | sitharakannan/zmq-unity-arduino | 8082dae0fe3299abdb91823953dd4410a8e46e39 | 7b0e9729ce8b4bd2517dc2fb32d46540dae86833 | refs/heads/master | 2020-03-28T11:29:31.265010 | 2018-09-17T00:56:01 | 2018-09-17T00:56:01 | 148,219,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | import zmq
import time
import sys
import random
port = "1234"
context = zmq.Context()
socket = context.socket(zmq.PUB)
socket.bind("tcp://*:%s" % port)
while True:
topic = random.randrange(9999,10005)
msg = str(random.uniform(-1.0, 1.0)) + " " + str(random.uniform(-1.0, 1.0)) + " " + str(random.uniform(-1.0, ... | [
"sithara.kamalakkannan@gmail.com"
] | sithara.kamalakkannan@gmail.com |
83ea46dc3fcae0d4c91574909d2b333d114f3cc5 | 371b92c0a39eb5908af9b63bf05ade6452246b64 | /fullnode.py | 8c004e4370a804c3b0ed19e1ab26c11f8f96ea2e | [] | no_license | Fraccaman/BBAR-Simulation | c575b4af028bd7fb23ff1e9c26b067b280085237 | a0bd4c22077dbda22f83563c39ba85655a077687 | refs/heads/master | 2022-02-17T14:18:04.596364 | 2019-08-20T20:46:54 | 2019-08-20T20:46:54 | 198,052,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,494 | py | import hashlib
import random
from copy import deepcopy
from dataclasses import field, dataclass
from enum import Enum
from typing import List, Set, Tuple
class Exchange(Enum):
BAL = 0
OPT_ONE = 1 # i am altruistic
OPT_TWO = 2 # you are altruistic
ABORT = 3
class Nature(Enum):
ALTRUISTIC = 0
... | [
"gianmarco.fraccaroli@gmail.com"
] | gianmarco.fraccaroli@gmail.com |
2b6af8870d94db7ae1dfeeab870a4f7d4f98bb91 | 6ac1fe97e053a8b06be80dcdf5f1276f5ab8471a | /unit2/main1.py | 1698e652e390b552945e73888e260be8e45afe88 | [] | no_license | MiYoShi8225/python-web-app | 8a9be470db19273dd14df05d86194b32cf35bfc5 | d68021a1a07bd33d0dfe3fdf80b0a5005de30ce3 | refs/heads/main | 2023-05-06T22:23:53.881944 | 2021-05-29T05:44:22 | 2021-05-29T05:44:22 | 364,112,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import matplotlib
import pandas as pd
import matplotlib.pyplot as plt
import yfinance as yf
#%matplotlib in inline
aapl = yf.Ticker('AAPL')
#print(aapl.history())
#50日分取得する場合↓
#print(aapl.history(period='50d'))
hist = aapl.history()
#date がindexの役割をはたしている
#print(hist.columns)
#indexを振り分けてdateもデータ項目にすることができる↓
#pr... | [
"down8225@gmail.com"
] | down8225@gmail.com |
632296f308036f19d8d108c0c69160e75bbeb3d7 | be2955418744c1d530e229dd316e40987c4e9428 | /grid.py | 95b9ceedd3ac3ab3fca94440ca3f20cea682b830 | [] | no_license | kevin-bigler/pytris | 113f33ed9cdc8b479fff2a6d97204f5a94dd242a | 0fa65422127e61dc2567551bdd15b36aa21de2c3 | refs/heads/master | 2023-04-05T19:13:23.874664 | 2021-05-08T17:59:19 | 2021-05-08T17:59:19 | 338,723,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | """Grid data structure, for convenience"""
class Grid:
def __init__(self, width, height, initFn=lambda x, y: {}):
"""
Args:
width
height
initFn - invoked to initialize each grid item's value, ie initFn(x, y). default is empty map
"""
self.width = ... | [
"kevin-bigler@users.noreply.github.com"
] | kevin-bigler@users.noreply.github.com |
e58c948e684c0c777fb0458cab4f1c371b8742b3 | d0078489b6cf4ff3971c76e9da90e29007296996 | /py/warmup/monkey.py | fd8a3a5ef63c38e5141ddd76be7e6c3ea5d11fc5 | [] | no_license | Anel-Tolkynbekova/week8 | 40c316aca1732c42cb098c929cc2815de69f9952 | 6b6eef387a4501e455b5c7db87201d6ed3bdcc19 | refs/heads/master | 2021-04-07T10:45:21.574183 | 2020-03-20T04:53:59 | 2020-03-20T04:53:59 | 248,669,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | def monkey_trouble(a_smile, b_smile):
if((a_smile and b_smile) or ((not a_smile) and (not b_smile))):
return True
else:
return False | [
"noreply@github.com"
] | Anel-Tolkynbekova.noreply@github.com |
aef8ce977cdb9ab644e748fcf3cf8a58ea69803a | c0b13124a848143965cb5b332af4872775829383 | /project/src/jobs/build_environment.py | c23a6ca8b3fa6dddd5b63ea83f3b68318aebd509 | [] | no_license | YuriiShp/ProxyTCP-automation-framework | 72c20a02ecd874cc33ccb4d9c8cceaa427dd609b | f764f6d6e383fc2f4e87bffc51be681b927d9b62 | refs/heads/develop | 2023-06-18T04:21:03.764194 | 2021-07-18T19:54:36 | 2021-07-18T19:54:36 | 354,765,070 | 0 | 0 | null | 2021-05-13T10:01:06 | 2021-04-05T08:14:41 | Python | UTF-8 | Python | false | false | 726 | py | import os
import sys
import argparse
import logging
from pyats.easypy import run
import src
_scripts_dir = os.path.join(src.__path__[0], "envscripts")
def main(runtime):
logging.getLogger().setLevel(logging.INFO)
logging.getLogger("unicon").setLevel(logging.ERROR)
logging.getLogger("src.environment.go... | [
"yuralrock@gmail.com"
] | yuralrock@gmail.com |
8b5899b081f51859b5026092de23aa65a12618d5 | 80faf231dae71c9db23848a5baa57d4da2b8aa1d | /tests/test_dsl_IT.py | 1aeb2d0cac7fa1797e71b8bc84366ca52dcbfc55 | [
"MIT"
] | permissive | lelis-research/PyGames-synthesis | 8cf00369fdc7ac80a16473dc0355f89562b6ecd3 | 0c597243c04ce511d8ae5cfd52b1c043267b4503 | refs/heads/main | 2023-07-17T22:50:39.465185 | 2021-08-31T21:30:55 | 2021-08-31T21:30:55 | 371,117,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,070 | py | import unittest
from unittest.mock import Mock
from src.dsl import IT, ReturnAction
class TestIT(unittest.TestCase):
def setUp(self):
self.env = {}
self.env['TRUE'] = True
self.env['FALSE'] = False
self.env['BODY'] = 100
# Create mock object
self.if_cond = Mock()... | [
"vadiaval@ualberta.ca"
] | vadiaval@ualberta.ca |
90e4f57a8e61d170d3e67b7bd2f9348ae458e5fa | a34504cdd30a10535dcd924246e218edc4071819 | /models/inception_resnet_finger_v34.py | af1218b816315d9184175837cf7a69f0a2b5fc0c | [] | no_license | ting1234cn/facenet_example | 6fb1e41568f7772ef10133718892022d0d01c44f | 0778e3118041ab4a27aef50c313aa856a4928ee9 | refs/heads/master | 2020-03-26T05:30:56.528599 | 2019-07-23T14:02:03 | 2019-07-23T14:02:03 | 144,560,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,728 | py | # ==============================================================================
"""定义了一个inception V1的网络结构
Contains the definition of the Inception Resnet V1 architecture.
As described in http://arxiv.org/abs/1602.07261.
Inception-v4, Inception-ResNet and the Impact of Residual Connections
on Learning
Christia... | [
"ting1234cn@163.com"
] | ting1234cn@163.com |
d977a16992c9ee7c9f71dfc38dcd16880f0c321d | ad6bcb1d348a5e23537e8ddd847b9dcc1b512247 | /know_coordinates.py | 102ddb6b42512bd8cde8bd6a94166b2f8c0a2f79 | [] | no_license | parth2510/chrome_dinobot | 0b0bb88a6481eda2569cac115dce94af655140b6 | 14193cadf925db7f330a29b9290dd9dd11e95967 | refs/heads/master | 2022-12-11T10:02:18.399274 | 2020-09-13T10:19:26 | 2020-09-13T10:19:26 | 295,117,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | import pyautogui as pg
import time
import numpy as np
import pyautogui_algo
from PIL import ImageGrab , ImageOps
i=0 # runs for 5 sec
# you've to know the coordinates of the dino game in your screen
# the top left corner of the screen is origin with horizontal axis x( left to right) and vertical axis y (top to dow... | [
"noreply@github.com"
] | parth2510.noreply@github.com |
85de194799b259a616254f8b20da8a630ac9d0a6 | e1eaed6dde62fc54eb317d28dbd18e0740e3e8f3 | /official/vision/image_classification/efficientnet/tfhub_export.py | d3518a1304c8c761cfaabdcc96dead70dd9b0097 | [
"Apache-2.0"
] | permissive | nlpming/models | cf5008d2e66d2b66b6d61423e214f2f9f9fbe472 | 3cbf0748529d787dd09fa3ed031e557f0ddfa268 | refs/heads/master | 2021-12-03T03:29:16.042489 | 2021-11-23T14:09:10 | 2021-11-23T14:09:10 | 206,007,973 | 0 | 0 | Apache-2.0 | 2019-09-03T06:47:46 | 2019-09-03T06:47:46 | null | UTF-8 | Python | false | false | 2,317 | py | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
524e5a59242290f1e740d2b72707ec4f7852b615 | ad66e91b52cdd870719afb19f032dd8d248eeb39 | /AADeepLearning/loss/svm.py | 4589f658cacea17611ea15ea7d842d20a04c0da5 | [] | no_license | privateos/AADeepLearning | fbadc6b879116d28d05675c6fde22734d96c4143 | ff024af19450127c56ebcda70aa7eea533d60285 | refs/heads/master | 2021-10-16T15:56:35.003059 | 2019-02-12T00:31:06 | 2019-02-12T00:31:06 | 269,908,625 | 1 | 0 | null | 2020-06-06T07:47:37 | 2020-06-06T07:47:37 | null | UTF-8 | Python | false | false | 4,233 | py | import numpy as np
class SVM:
"""
SVM损失层,又称为Hinge损失函数,一般用于最后一层分类
"""
@staticmethod
def init(layer, flow_data_shape, config):
"""
初始化, 这里无操作
:param layer: 层,包含该层的权重、偏置项、梯度、前向输入输出缓存、实例化对象等信息
:param flow_data_shape: 流动数据的形状
:param config:配置
:return: 更新后的... | [
"1368761119@qq.com"
] | 1368761119@qq.com |
7a6cdd72513023707903c252305e7238ce9bbccf | f9f1f887629855bbf12ecb0b7358fed5946b3caa | /.history/app_blog_forum/views_20201117201247.py | b670732826fc49cafc6e9dd7d657644d12d97833 | [] | no_license | hibamohi5/blog_forum | 4f687cee3ca6bdb1d0302b3657a77c01945404b3 | d6380eb7149355c79276b738da7da94c2ee03570 | refs/heads/main | 2023-01-14T18:33:53.043754 | 2020-11-20T01:52:22 | 2020-11-20T01:52:22 | 314,417,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib import messages
def index(request):
return render(request, "index.html")
def register_new_user(request):
errors = User.objects.user_registration_validator(request.POST)
if len(errors) > 0:
for key, value in ... | [
"hibamohi5@gmail.com"
] | hibamohi5@gmail.com |
9a552b56252d358c502b6dbb7ae63745a4fca22c | 2452bdfb25628e55190c46694e156bf4b1459cf0 | /prejudge/views.py | 1dcd4f1dae49f5c5ed8bf029726d85ea47c4ae9a | [] | no_license | bobjiangps/bug_prejudge | 0da3fbeab9dae1620330d16852d3e8792def56d5 | aeadd84476de0cf10a0341d694888f768e6c3706 | refs/heads/master | 2023-03-01T14:43:44.904473 | 2023-02-13T10:09:59 | 2023-02-13T10:09:59 | 195,923,513 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | from prejudge_process import PrejudgeProcess
from rest_framework.views import APIView
from rest_framework.response import Response
class PrejudgeRound(APIView):
def get(self, request, round_id):
p = PrejudgeProcess(round_id=round_id)
result = p.run()
return Response(result)
class Prejud... | [
"jbsv43@sina.com"
] | jbsv43@sina.com |
eeaa45b85f2ad11bc1462bbc6fe5dd16a502735b | 2c0993aac7ad3848d343ffb4f838a5bda8f740f3 | /funcation_Python/harshad.py | 019eb9bed9d0b4ecbe37f410ebf3b95bc61b6fa5 | [] | no_license | Praveen-Kumar-Bairagi/Python_Logical_Quetions | 6e20e04bf737f8f4592be76694b54470d5d79e7a | 4e0f3262cf183f56e5a57157f0593a454923317f | refs/heads/master | 2023-08-22T21:40:36.343811 | 2021-10-24T05:21:43 | 2021-10-24T05:21:43 | 420,594,339 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | def is_harshad_num(num):
num2=num
add=0
while 0<num:
a=num%10
add+=a
num=num//10
if num2%add==0:
return "true"
else:
return "False"
num=int(input("enter the num"))
print(is_harshad_num(num))
| [
"you@example.com"
] | you@example.com |
31214babd69af863c6c00e938f64103d02fbd00b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_143/ch20_2020_03_04_19_28_32_953906.py | 1c8d2050fbb9fd530886f4bcd029d1f07091e621 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | # Pergunta quantos km
km= float(input('quantos km:'))
def P(qts_km):
if qts_km <= 200:
y=qts_km*0.5
return y
else:
y=200*0.5 + (qts_km-200)*0.45
return y
y = P(km)
print ('{0:2f} .format(y)) | [
"you@example.com"
] | you@example.com |
e676a89a933de6bc6296c8af15a68b1d50ad2711 | 41890b3869794164bf6bf3b10e60be3f21d2850b | /ros_arduino_bridge/ros_arduino_python/src/ros_arduino_python/arduino_driver.py | 7d33b6d7542ec885d527c454b2b86565b82f33aa | [] | no_license | kmzzyong/quardRobot | 3705ee304908a5728f019afa4086713d8311b268 | abdf2480bf8f6292cdd11c12cd1da9ec192a20c2 | refs/heads/master | 2020-05-05T04:13:01.843398 | 2020-04-12T12:10:07 | 2020-04-12T12:10:07 | 179,681,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,854 | py | #!/usr/bin/env python
"""
A Python driver for the Arduino microcontroller running the
ROSArduinoBridge firmware.
Created for the Pi Robot Project: http://www.pirobot.org
Copyright (c) 2012 Patrick Goebel. All rights reserved.
This program is free software; you can redistribute it and/or modify
... | [
"kmzzyong@aliyun.com"
] | kmzzyong@aliyun.com |
a4badd11e840906a2c0e96b040d2ad0c1d23965d | e631f155b30122d813678fd8dd98004085b9579e | /setup.py | 0d6bb32b8676adacd2c8026933b7605a6ce3bab9 | [
"MIT"
] | permissive | SidSachdev/pycrunchbase | 4efd716c58b2bdbee379c5f4d9fd30c310d43502 | f0a9b945bc5d3f7b3827820bd28a75265c28f756 | refs/heads/master | 2020-12-14T18:53:51.512180 | 2015-09-28T01:17:19 | 2015-09-28T01:17:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import, print_function
import io
import os
import re
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import relpath
from os.path import splitext
from setuptools import f... | [
"ngzhian@gmail.com"
] | ngzhian@gmail.com |
792862ccfd39edbbf5d59ac8c38f0e49a5c30815 | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/users/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_request_builder.py | e99e4dfcbfbb0b7e53d83c6a885d5e9a8aae9b24 | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 4,643 | py | from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAda... | [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
fa84ef75822d5b5fad413f7d15367e49c21460da | 8909adf0e1581fcc972b82972a55770308f78c2b | /djangodeploy/default-template/etc/settings.py | d1e48da242308988bad74402788e2b8ecd0f4301 | [
"MIT"
] | permissive | nowells/django-deploy | 66e9b5df3146cf46bcfcce655f591e702584d1b9 | 43a162ee4689d21409655f032dce81d626aef053 | refs/heads/master | 2021-01-01T19:30:08.907813 | 2010-02-10T22:24:21 | 2010-02-10T22:24:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | import os
from __PROJECT_NAME__.settings import SITE_ROOT
TEMPLATE_DIRS = (
os.path.join(SITE_ROOT, 'templates'),
)
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
'django.template.loaders.eggs.load_te... | [
"nowell@strite.org"
] | nowell@strite.org |
ac08592f24581115477dc1e3fe0e6907fc2e9860 | 2941b312fc83ff08f5b5f362cf700e7ff8352cd3 | /kats/tests/models/test_data_validation.py | cf7402fdd68cec674de17cc8bb5223d1b0844e51 | [
"MIT"
] | permissive | rbagd/Kats | 5e1ac0b288f1250423921f7ada812c1198c55269 | 4f86a332d0afc790ab1d833fd8ffe6782a8be93b | refs/heads/main | 2023-08-21T20:35:42.141281 | 2021-09-22T09:27:18 | 2021-09-22T09:27:18 | 407,527,411 | 0 | 0 | MIT | 2021-09-17T12:11:43 | 2021-09-17T12:11:42 | null | UTF-8 | Python | false | false | 1,870 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import io
import os
import pkgutil
import unittest
from unittest import TestCase
import pandas as pd
from kats.consts import TimeSeriesData
fro... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
14f66d3ddc6918e55eb99dde6f3adfd7af7927e0 | afb951b29acd33952e979851a647a27ffac66e9a | /lib/filter_bam2fq.py | 0c8f30bfe94cb20bed64077036f4f76dbc36be85 | [] | no_license | zxgsy520/sbarcode | 08580aaba4cb167d33c97ba9a25cd0b6ea23d105 | 041bff936ae56394beaca30b660ddc0e7c2d748f | refs/heads/main | 2023-04-22T08:31:07.089803 | 2021-05-13T14:03:51 | 2021-05-13T14:03:51 | 320,477,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,203 | py | #!/usr/bin/env python
#coding:utf-8
import os
import re
import sys
import pysam
import logging
import argparse
LOG = logging.getLogger(__name__)
__version__ = "1.0.0"
__author__ = ("Xingguo Zhang",)
__email__ = "113178210@qq.com"
__all__ = []
def read_bam(file):
if file.endswith(".bam"):
fh = pysam.Al... | [
"noreply@github.com"
] | zxgsy520.noreply@github.com |
0364bbf10f5a61ed1a063b7db92449798336a01e | 723b59ec1e6d2288f57bca983080c88e0370cdc0 | /advancedsearch.py | cf7438be7222c9094cedf39e9c8d4b2cbfb647fb | [] | no_license | lynnhuh/project1 | 8cd7bf6b568c92b395f768ec096633952de4203e | 26b13b735e8de69582d2fad6971e47ff70c820bb | refs/heads/main | 2023-06-24T00:01:49.520204 | 2021-07-23T12:37:15 | 2021-07-23T12:37:15 | 388,789,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | import re
import pandas as pd
import numpy as np
import os
import glob
import sys
from nltk.stem import PorterStemmer
from nltk.tokenize import word_tokenize
# Using PorterStemmer(), find the IDs that has stem words of keywords
def porterstemmer(word1, word2, word3) :
porterStemmer = PorterStemmer()
... | [
"noreply@github.com"
] | lynnhuh.noreply@github.com |
10a70e49b941b1aba688535966de6e1e25b21fa4 | f866771551f14d359485d6ca051c3833ae90332d | /getters_&_setters.py | 915d924758c6621b9e11e7be3836b17398821671 | [] | no_license | BenGilbert98/python_OOP | 6ae421e64fbd71438e14c4da260bf5fbcd8a67d2 | 2b1df5f46bbc32c3e94b376314343441c885d650 | refs/heads/main | 2023-01-09T05:48:02.974648 | 2020-11-06T11:19:37 | 2020-11-06T11:19:37 | 310,262,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | # Getter and Setters
# why - use cases
# to hide the data - separation of concern
# Syntax 2 functions 1 to get information, 1 to set information
# Create a class called student
class Student:
def __init__(self, name, company):
self.name = name
self.company = company
def getStudent(self, val... | [
"73166552+BenGilbert98@users.noreply.github.com"
] | 73166552+BenGilbert98@users.noreply.github.com |
2af8f879d09a065659af764392ae6058b2c56d6a | 703cee055dd54da69741c8cd7b232287a2932929 | /utils/logger.py | d6841f06eb865a7f492e739b94f7833afd584ac1 | [] | no_license | lbianculli/starcraft_agents | 5a576ea533f1efcf0ce39d119d6d76448ad9c4ba | cabd74705619eddbf5ced51a977b6dd02b24b105 | refs/heads/master | 2020-05-06T15:21:34.602755 | 2020-02-29T22:04:01 | 2020-02-29T22:04:01 | 180,185,892 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,726 | py | import os
import sys
import time
import numpy as np
from collections import deque, namedtuple
class Logger:
def on_start(self): ...
def on_step(self, step, rewards, dones): ...
def on_update(self, step, loss_terms, grads_norm, returns, adv, next_value): ...
def on_finish(self): ...
... | [
"noreply@github.com"
] | lbianculli.noreply@github.com |
428a9a227628aa61a4441f33d869e4064a08bc98 | 4ebea0d4031b45ffcd9ecc0e7b28efb183df07df | /code/topics/2-lists-dicts-and-strings/E14-longest-common-prefix.py | da4edeaf81ad3ad7750cd7508da0231e01884006 | [] | no_license | jeremyyew/tech-prep-jeremy.io | 9c2b5a44de1d820a35d9cb2eef54487f0c1a1e60 | 8d9e3736d87daaa0caca2555018fe0c2bbd2dc13 | refs/heads/master | 2020-05-24T14:12:20.197200 | 2020-02-06T05:18:24 | 2020-02-06T05:18:24 | 187,304,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | '''
- Brute force: go through all strings, keeping track of longest prefix so far. We can stop if we get empty prefix.
- We sort the strings in lexicographic order (unknown complexity).
- Then we know that the common prefix between the first and the last string is the longest possible, because any prefix built from p... | [
"yewern@gmail.com"
] | yewern@gmail.com |
d25eab0fadaf2ff99bbe1e0dcacc8524aa209b84 | 89a41e9ce15fcd216c72c12ba3c638afd1e60b65 | /ImageConstructor.py | b7c6c9baeb116702a009e86cae677fcc7ceee6cb | [] | no_license | andress5990/11_reconstruccion_de_imagenes_por_superposicion | 0d48cd5a55679a88fe9719e6b8e6960b1b75e0d8 | ccaea782e068a5da16458545957b374067150858 | refs/heads/master | 2021-01-03T02:07:28.137362 | 2020-02-11T21:58:31 | 2020-02-11T21:58:31 | 239,873,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,078 | py | import cv2
import numpy as np
import sys
from scipy.optimize import curve_fit as fit
from scipy import exp
from matplotlib import pyplot as plt
import pdb
drawing = False # true if mouse is pressed
ix = -1 #Creamos un punto inicial x,y
iy = -1,
dotslist = [] #Creamos una lista donde almacenaremos los puntos del con... | [
"andress5990@gmail.com"
] | andress5990@gmail.com |
1aa64d7d435f8308e15b3dc3ab64dfeae42b43fb | ee5954ed019a60a1075b77c8ff6033f2d566a492 | /GkMovies/Library/PosterModule.py | a86e5145a679769f34817df8eb4f0bd13a42db84 | [] | no_license | sbgoldsmith/GkMovies | 8b7e6df033d27be9cd13856b11a23ff6aeab2ac0 | 9386bc395214902c26c849bbe0e99fea32ab60d4 | refs/heads/master | 2023-06-24T03:45:21.796904 | 2021-07-06T21:16:19 | 2021-07-06T21:16:19 | 288,015,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | import os
import urllib
from Library.LoggerModule import info, debug
from Library.ConstantsModuleF import Constants
class Poster(Constants):
def addMoviePoster(self, tt, url, imovie):
rtn = 0;
imagePath = self.posterPath + tt + ".jpg"
debug('Checking tt= ' + tt + ' for d... | [
"sgoldsmith@goldkeys.com"
] | sgoldsmith@goldkeys.com |
007b03d2e6e2b3a6bf017c8e8f9002fea11db6b7 | da7e9acdb0f01d1e3a409a9af553ca2ce36cf4e2 | /cogs/clientevents.py | 73de8fa9e9814d91f7f1dc8036f150fb3a49ba77 | [] | no_license | SourceCodeAi/PaimonBot | ff90e6e94b67e0fb66b0f09782c93b1022f5ca0a | 5f4f36a640a65d932aec36a4a0e6de0c28ae4b1c | refs/heads/main | 2023-02-18T05:30:30.576216 | 2021-01-20T16:12:15 | 2021-01-20T16:12:15 | 331,359,990 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | py | import discord
from discord.ext import commands
class client_events(commands.Cog):
def __init__(self, client):
self.client = client
@commands.Cog.listener()
async def on_command_error(self, ctx, error): # -> Error Handler
if isinstance(error, TimeoutError):
embed ... | [
"noreply@github.com"
] | SourceCodeAi.noreply@github.com |
7336985aafab55f1133b58ea28f9dac595aae05d | a85b44c14701d2459c39875d8b3d9c405621ba6a | /pe014.py | e076d161e4f7061aa73deb8399251e50ce066602 | [] | no_license | JonesCD/P-E-Problems | 08b935be65659eed7e8dbf2cac9f6ad414960412 | e4678cc941a7b7b5addb4971bc3d1b95ce7b2b91 | refs/heads/master | 2021-01-18T09:18:22.857062 | 2015-10-28T03:29:28 | 2015-10-28T03:29:28 | 36,782,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | """
The following iterative sequence is defined for the set of positive integers:
n -> n/2 (n is even)
n -> 3n + 1 (n is odd)
Using the rule above and starting with 13, we generate the following sequence:
13 -> 40 -> 20 -> 10 -> 5 -> 16 -> 8 -> 4 -> 2 -> 1
It can be seen that this sequence (starting at 13 and finish... | [
"jones.christopherd@gmail.com"
] | jones.christopherd@gmail.com |
09e2f3af11a3b2a7613d765cc7f8e3f0fe6a192e | 983d1fe45500f99d7b994a0a61ebb0344d60024e | /CRF.py | bbd598d9619e51e327a717c35bea8919579db475 | [] | no_license | b2kq/sece_keowack | 5f32dee49990112bab97455035d8596df5b20cd1 | d01789042da8398b4dc9d700cbbee02573cb97da | refs/heads/master | 2021-01-19T15:39:20.787373 | 2020-08-12T23:47:21 | 2020-08-12T23:47:21 | 88,225,175 | 0 | 0 | null | 2020-08-12T23:47:22 | 2017-04-14T02:32:30 | Python | UTF-8 | Python | false | false | 2,857 | py | # This is a stand-alone script
def jvmLogLevel(jvmName, nodeName, logLevel):
jvmId = AdminConfig.getid('/Cell:' + cellName + '/Node:' + nodeName + '/Server:' + jvmName + '/')
if(jvmId == ""):
print "ERROR: jvmLogLevel: Bad server name passed: " + jvmName
raise Exception, "Script raised ex... | [
"noreply@github.com"
] | b2kq.noreply@github.com |
ef651501a51f284c28de0c10b00916c6327deecb | f68a01a74697533fb5fee4beb1fa73d9a3825a29 | /1.py | c723619df9529d2b5e32465ea848ce24a66b15d3 | [] | no_license | DayangLee/Python-learning | e8728317c81c601480f3ad815d79e2774e158432 | b3051fb2c74c512254cad8269c74b60f0cbdff62 | refs/heads/master | 2021-09-05T21:19:02.402043 | 2018-01-31T03:25:14 | 2018-01-31T03:25:14 | 107,518,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | print('hello', 'wold')
print(100 + 200)
name = 'LJY'
print('Hello', name)
# print absolute value of an integer:
num = 200
if num >= 0:
print(num)
else:
print(-num) | [
"dayanglee2015@163.com"
] | dayanglee2015@163.com |
da99f166f0942e17c402e439ace003805ab39ee2 | d73084a15208ca4d56110e0658257f15c12e3226 | /app.py | 642ecfbbaa23aa7882b7dadd75254a0537c116a7 | [] | no_license | GopichandranN/Age_Prediction | b270f8cedfc0d6039173a7194af22a2bf9b95c69 | d94406aac6fa494e5439466a4a0c3727bb2027b5 | refs/heads/main | 2023-05-03T06:19:06.653488 | 2021-05-23T16:53:54 | 2021-05-23T16:53:54 | 370,075,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
from sklearn.model_selection import train_test_split
import keras
from keras.models import Sequential
from keras.layers import BatchNormalization,MaxPool2D,Dense,Conv2D,Flatten
from keras.callbacks import EarlyStopping,Learnin... | [
"gcchand232@gmail.com"
] | gcchand232@gmail.com |
c466642b454d777e22b14c619db8d707e72673fd | 615e3cdc2c136b2f66b5c553d375823d3580fd08 | /exercicio/venv/Scripts/easy_install-3.7-script.py | d7f8ad6ddd000dbb1b0c6fc876af7b1dc51e5a7a | [] | no_license | Android-Ale/PracticePython | 859a084e224cfb52eed573e38d7d9dc91f405885 | cab2ac7593deb22e6bb05a95ecd19a8ea2c96b0a | refs/heads/master | 2023-05-06T06:33:36.724569 | 2021-05-15T00:12:06 | 2021-05-15T00:12:06 | 369,307,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | #!C:\Users\Alpha\PycharmProjects\exercicio\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.p... | [
"alesson9silva@gmail.com"
] | alesson9silva@gmail.com |
623fb49ae83fcbc02745a43d900baf84a124f004 | 3caa566bb86d97f82c888695f39638b5f579c32d | /dragonfly/dragonfly/_local_settings.py | 5ccd7d1902d89f8bc5fd06efb04069377e4d75ed | [] | no_license | royalpioneers/dragonfly-project | ad576a33648db175b4543412865001ff43f64f11 | 5c25d71b17b7d71a6cc25d5a117ce23c2f0f999c | refs/heads/master | 2016-09-05T14:53:41.247405 | 2013-06-11T18:59:05 | 2013-06-11T18:59:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | # Django local settings for dragonfly project.
from settings import *
PROJECT_PATH = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracl... | [
"luciano@palomino.pe"
] | luciano@palomino.pe |
eac58c5c03b7ab9050d3193746a20cb1e83c733e | d2e78c7c8c94cd2ef16a0b77eb9852312ead4ee7 | /elementpath/xpath2/xpath2_functions.py | ad67a79b39019425263b4d8e465394d1f68c8e11 | [
"MIT"
] | permissive | evhayes/elementpath | fa72cfba0c761b0ddb7100d36101b5c117e00fee | a74ce89c04622d8ae98ab739886c3e46f87b024e | refs/heads/master | 2023-08-04T05:16:09.136086 | 2021-09-16T14:00:22 | 2021-09-16T14:01:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,019 | py | #
# Copyright (c), 2018-2021, SISSA (International School for Advanced Studies).
# All rights reserved.
# This file is distributed under the terms of the MIT License.
# See the file 'LICENSE' in the root directory of the present
# distribution, or http://opensource.org/licenses/MIT.
#
# @author Davide Brunato <brunato@... | [
"brunato@sissa.it"
] | brunato@sissa.it |
c56350ea25cd28c2ea280163e99dbc7ae86dd3ff | 69fb7f59b9309c95f04f69abfd6dba1a9cb40f09 | /Chapter_05/ex_03_get_system_info.py | c847008424c17adf7fcc37583f17460f091a3fe5 | [] | no_license | att-iotstarterkits/sk2-Users-Guide | 0c798aa0eaa6e77a9d1a68fbb3277a83dc0a6be0 | 38d8e851f0bb68bc562b6ca3b688416a101b205e | refs/heads/master | 2021-07-21T08:00:45.035713 | 2020-05-11T03:12:42 | 2020-05-11T03:12:42 | 161,242,166 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,364 | py | ###############################################################################
# file: ex_03_get_system_info.py
#
# Connect to the Modem Abstraction Layer and access system and connection info
###############################################################################
import iot_mal # ... | [
"scott@sgspecker.com"
] | scott@sgspecker.com |
774c2f5ff3b9e0d4bf3cf0759dde4a143d483969 | 2e92b94edc64825f947767f202085135a4fefa73 | /main.py | 8f3c667a5399ca28a1c901ef00ae0dd34041bd74 | [] | no_license | rajatgarg765/car_selling_pred | 869a057c54aa0c3ad8c95c5b15978c3b7ab2eb60 | b4793afed0bc2838bef9e8fe23714d1da424b07d | refs/heads/main | 2023-08-24T22:49:38.431404 | 2021-10-29T11:50:09 | 2021-10-29T11:50:09 | 407,608,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 27 13:22:57 2021
@author: info
"""
from flask import Flask, render_template, request
import jsonify
import requests
import pickle
import numpy as np
import sklearn
from sklearn.preprocessing import StandardScaler
app = Flask(__name__)
model = pickle.load... | [
"noreply@github.com"
] | rajatgarg765.noreply@github.com |
786c16d5e2f40b4a856134608b31daa87575be75 | c7eb8d119d8dd8314d31e65c9b91e9a6b4a7768c | /CostcoBot.py | c99483ba99b489b4e61ed8810c8f996864d48492 | [] | no_license | simsd/costco-bot | 7bb8f039c20be3bb3bbe09f2e74f2094d83d65e2 | ff7375eb8e1bbce92280e3a29f4efcc683847b45 | refs/heads/master | 2023-07-08T21:18:08.090036 | 2021-08-21T17:04:23 | 2021-08-21T17:04:23 | 398,458,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | ##########################################
# Written by Sim Singh Dhaliwal #
# 2021 #
##########################################
import requests
from bs4 import BeautifulSoup
# This header is needed to bypass Costco's bot detection
headers = {"User-Agent":"Mozilla/5.0 (Windo... | [
"sdhaliwal@ucla.edu"
] | sdhaliwal@ucla.edu |
08ccac9802867fc9f6548f0782099cb7606c8906 | 5d90ab8775e77612291a98e53d81b128e9f50d54 | /utilityfiles/poverty.py | e320b45d453761081e46f7d8460b1e011af53d29 | [
"MIT"
] | permissive | IronicNinja/covid19api | 3c355caac44cefea86336e7919d1c3b5dc05c0dc | f96a18c646379fe144db228eaa3c69d66125628d | refs/heads/master | 2022-11-15T10:15:31.490951 | 2020-07-17T20:43:49 | 2020-07-17T20:43:49 | 278,180,632 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | ### https://worldpopulationreview.com/state-rankings/poverty-rate-by-state
import pandas as pd
df = pd.read_csv(r'C:\Users\evanz\Downloads\csvData.csv')
df1 = pd.read_excel('states_info.xlsx')
df1['poverty'] = df['poverty']
df1.to_excel('states_info.xlsx') | [
"zhang21evan@ncssm.edu"
] | zhang21evan@ncssm.edu |
81c0be1f662045795975963953f6ca78e7b13dc9 | e173098f9ecd39bef112432a8bb7ed7fb1209fe9 | /wfm_client/migrations/0017_auto_20160914_1241.py | b48fd76cef7c8e48e380eb28be2f3b3e3694d74f | [] | no_license | isaiahiyede/inventory | 51b639257c14e257ababae047d83caa93b809893 | cedecc5b6d22d977b4bdac00e5faf775da7382ab | refs/heads/master | 2021-08-29T08:41:02.062763 | 2017-12-13T15:46:57 | 2017-12-13T15:46:57 | 114,137,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-09-14 12:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wfm_client', '0016_item_item_edited_by'),
]
operations = [
migrations.AlterF... | [
"a.ajibike@zaposta.com"
] | a.ajibike@zaposta.com |
d7148b6c3654a2afeb0b18046d3d86b65ce7fde1 | edd75bcf8c450dfce6b26b92b4fc012b399bd319 | /Exe41_dividas_com_juros.py | 83923f6847e4b9e94b7bd00a054b371381f67bc8 | [
"MIT"
] | permissive | lucaslk122/Exercicios-python-estrutura-de-repeticao | ac130cf9f6e78aff50e15e41aa1badfba55d6c8b | 1f203918e9bb8415128bb69f515240057b118a14 | refs/heads/main | 2022-12-20T17:08:43.105838 | 2020-10-20T14:08:15 | 2020-10-20T14:08:15 | 304,305,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | print("""Quantidade de Parcelas % de Juros sobre o valor inicial da dívida
1 0
3 10
6 15
9 20
12 25""")
divida = float(input("Dig... | [
"71664028+lucaslk122@users.noreply.github.com"
] | 71664028+lucaslk122@users.noreply.github.com |
879169d23b72460387ca0d7625af92a61555b5ed | 0f938358c238b2e09c14a59d8294e54793d3441f | /service_api/db/maindb.py | f663f277960ba7d8ad0a46e5235eff94ebca83d1 | [] | no_license | kostyanchick/ShopApi | b2da99269a2064e4f1210a36282d42ffdc02042e | 6d56b356f89d375d972535adbb0f67f74b6d30cd | refs/heads/master | 2022-10-05T16:43:46.188429 | 2019-12-15T20:49:57 | 2019-12-15T20:49:57 | 228,251,344 | 1 | 0 | null | 2022-09-16T18:15:35 | 2019-12-15T20:57:13 | Python | UTF-8 | Python | false | false | 1,625 | py | # initial scripts for DB
def drop_all_tables():
"""Deletes all tables"""
drop_user_category = """ DROP TABLE IF EXISTS user_category """
drop_users = """ DROP TABLE IF EXISTS user"""
drop_items = """ DROP TABLE IF EXISTS items """
drop_categories = """ DROP TABLE IF EXISTS categories """
quer... | [
"yosipiv.yuriy@gmail.com"
] | yosipiv.yuriy@gmail.com |
fb26cde8efd6a03e8e3cf61cd97dab0ebce32c38 | 5d4b8d85dae45d6d4bfd694a3dffcb874ca57128 | /settings.py | 1ec042881b6cae26a766d2ac94967936fb6516a4 | [] | no_license | ZozimoAps/flask-api | e42405feecb2a716a820d6ff97bffea6699f8029 | 9a5cf2075a87e1088bd43c624feb7ccc9c33d1ce | refs/heads/main | 2023-06-20T18:15:49.676956 | 2021-07-19T15:37:26 | 2021-07-19T15:37:26 | 387,513,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | class Database:
def __init__(self, database, driver, user, password, host, port, namedb):
self.database = database
self.driver = driver
self.user = user
self.password = password
self.host = host
self.port = port
self.namedb = namedb
def database_uri(self)... | [
"zozimo.fernandez@apscreativas.com"
] | zozimo.fernandez@apscreativas.com |
3926e36ae5e7ad216f818a25ec24a3211ec1e1fa | b2c3c8a45282c30821cc8c3d6a9f8b6b652ee182 | /Code/umap_consecutive.py | 91e87d2b97017bbd151b2ccb3c8caadbd148a2c0 | [] | no_license | TimRepke/adaptive-landscape | 1735dde96ce1c737c028cb53973c1e9ae07dd236 | 90025a112a5c7cec4d53485cefa49a2bf6f009c8 | refs/heads/master | 2023-03-20T10:02:37.347225 | 2021-03-16T19:33:52 | 2021-03-16T19:33:52 | 330,475,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,449 | py | from models.umap import UMAPParams, UMAPModel
from datasets.mnist import MNIST
from datasets.fashion_mnist import FashionMNIST
import numpy as np
from data_handlers.generators import temporal, SamplingReference, accumulate
from data_handlers.disk import store_result
from models.large_vis import LargeVisModel
from mode... | [
"tim@repke.eu"
] | tim@repke.eu |
d80bb1f0f4faa7266a76268a872a3bba0062cbfb | b1fa444f1b0b1054f09778492ed55572901a5a74 | /Python_혼공파/04-2-ex4_200324.py | ce51a1ee365eaed0c75adb083887447af8316c4b | [] | no_license | llkg1596/Algorithm | d719465df450cd3792af75a618e5ad8b3e35a693 | 0420ca7e5c6ba2d6db85bc43f6bb93177e71a525 | refs/heads/master | 2021-03-17T18:51:45.656126 | 2020-03-24T13:05:00 | 2020-03-24T13:05:00 | 247,010,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 24 21:38:44 2020
@author: llkg1
"""
character={
"name":"기사",
"level":"12",
"items":{
"sword":"불꽃의 검",
"armor":"풀플레이트"
},
"skill":["베기", "세게 베기", "아주 세게 베기"]
}
for key in cha... | [
"llkg1596@naver.com"
] | llkg1596@naver.com |
6edc88c7e8ae003c15955b865efb9b7d5cd3ec2e | c13655452c8f8ba19e8d5e6fba9569e5e77cea85 | /lib/dataset/coco.py | faf979cc7b014125db326dfdbdf6cd322dc7eb67 | [] | no_license | ZZXin/SimDR | 30c8f43a498311d7f5f6687660ec42dfc954239a | 30845b85a139a1ca88ee9f80e9e11b8ae677a7ec | refs/heads/main | 2023-07-13T04:17:15.171167 | 2021-08-17T08:32:43 | 2021-08-17T08:32:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,612 | py | # # ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Written by Bin Xiao (Bin.Xiao@microsoft.com)
# ------------------------------------------------------------------------------
from __future__ import absolute_import
from __fu... | [
"noreply@github.com"
] | ZZXin.noreply@github.com |
14046e9e60eaaec96f1f334616aade709e2c3f40 | 64c7f111d2c49da19ed659cd92311b1c234573b8 | /MADDPG/experiments/load_level_k_agents.py | 71b6273778abedaa4b2a78925b754311a9a923dc | [] | no_license | guyna25/speakerListnerRLlibEnv | ae8d1671847c610aa5f6042b015824fb359bdd00 | f2644a9c1c7472d0a0475fd59207d15b84e73862 | refs/heads/master | 2023-02-28T17:39:25.456074 | 2021-01-31T15:10:55 | 2021-01-31T15:10:55 | 334,179,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,229 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
train.py
Updated and Enhanced version of OpenAI Multi-Agent Deep Deterministic Policy Gradient (MADDPG) Algorithm
(https://github.com/openai/maddpg)
"""
import argparse
import csv
import numpy as np
import os
import pickle
import sys
import tensorflow as tf
import t... | [
"34960387+guyna25@users.noreply.github.com"
] | 34960387+guyna25@users.noreply.github.com |
9a6e37cc125153b9e109936e1a81f5ab2a2e3d8e | cd830c7832ce7abd77c529a57515558388b56daf | /randomAll/unicodeConvert.py | f9e7fed48417671887877d7b94f18c948efe85a3 | [] | no_license | aravindgee/TwitterRetrieval-Linux | 62c56457dbb52d0162afbe8d49b40bfa6166b8e4 | 4a7e233e92c9fa939e1a727b97c1fa18e83def18 | refs/heads/master | 2021-01-20T08:06:17.719525 | 2015-06-10T04:49:10 | 2015-06-10T04:49:10 | 36,413,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | import codecs
a = codecs.open("random.tsv", "r", "unicode-escape").read() # a is a unicode object
codecs.open("output.tsv", "w", "utf8").write(a)
| [
"agopal01@syr.edu"
] | agopal01@syr.edu |
f1876448cae5a208714bf6e18d72d3522170ef33 | 9576d5a3676b09f3b892083988cfbe6985a9ef4a | /resender.py | 465639185d7a50c7a097a50fe6b58cd6e0360243 | [] | no_license | ual-cci/music_gen_interaction_RTML | da4d2a8c754423d223ca342bac577967e291ad71 | 39419d5bd53ff685a2a9efcf4f373a624c8b28f9 | refs/heads/master | 2021-09-04T09:41:55.976149 | 2021-08-16T19:58:54 | 2021-08-16T19:58:54 | 215,372,452 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py |
"""
def resender_function(arr):
pass
"""
from autoencoder.autoencoders_handler import process_using_VAE, to_latent_vector_using_VAE
def resender_function(arr):
# Send one frame only - the last generated one
#send_one_frame(arr)
send_all_gen_frames(arr)
#encode_spectrogram_VAE(arr)
#arr = pro... | [
"previtus@gmail.com"
] | previtus@gmail.com |
4c35844ccd9bf27c23fa920b80f30f4597eb5d47 | f01ab652c191e3353a016398c3da8fcf9d2501b8 | /visualize_dummy_data.py | 585d082f175a08f369d08a3e67d6fd9482e31f60 | [] | no_license | luaGeeko/reliable_DecisionMaking | fc528d16ec41d83be19a4ed3ed59a176a8ee72fd | 57a2aad1914d92b80f413f4850d5d1c5b1490a7a | refs/heads/master | 2022-11-28T00:02:19.203273 | 2020-07-30T18:09:08 | 2020-07-30T18:09:08 | 281,209,953 | 0 | 0 | null | 2020-07-30T17:23:25 | 2020-07-20T19:40:47 | Jupyter Notebook | UTF-8 | Python | false | false | 1,105 | py | import numpy as np
import os
import visualize
dirname = os.path.dirname(__file__)
def visualize_dummy_data():
dataset_folder_path = os.path.join(dirname, "dummy_data")
# list of the dataset files in the dataset folder
files = os.listdir(dataset_folder_path) # get first few only
# get absolute path o... | [
"klarizsofi@gmail.com"
] | klarizsofi@gmail.com |
3a5fef583bfbec46c22196c2e20d84972cb7e567 | abd116986c8d179afb5a1106ef27dbd7686ed4a3 | /pyburst/burst_analyser/burst_analyser.py | 02428532683839a6038d52f633dfb1262c024e32 | [] | no_license | astrojuan/pyburst | f2e0af4c2f39dcb128dcc0c31e69a80136dd07b1 | b134f0efb4df6db36956cc092456080b3f83b115 | refs/heads/master | 2020-05-02T06:03:15.898456 | 2019-03-26T07:46:42 | 2019-03-26T07:46:42 | 177,785,798 | 0 | 1 | null | 2019-03-26T12:38:37 | 2019-03-26T12:38:37 | null | UTF-8 | Python | false | false | 58,047 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os
from scipy import interpolate, integrate
from scipy.signal import argrelextrema
from scipy.stats import linregress
# kepler_grids
from pyburst.burst_analyser import burst_tools
from pyburst.grids import grid_tools, grid_strings
from pybu... | [
"zac.johnston@monash.edu"
] | zac.johnston@monash.edu |
cab930a6987b322035eb05ab3349c998ce4b0bb6 | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/teams/item/operations/count/count_request_builder.py | 7563a07abbd5473b63b8d3e18fde09d02d14b4db | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 4,641 | py | from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAda... | [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
cbfbe9bd8a333e96995b6789860b25dc6023ef3b | 8de4ab66b068e82bcdfedc21e112ff833ddca840 | /migrations/versions/20210707_100900_.py | 87811972da3f428a649032f4b9558fa0a181c6ce | [] | no_license | nathanblaz/tunevillage-app | 3e1607497d44d808a246c6a979ac7415fa6403ce | a1650b83d29ab7d9f1402286483887c494cd85f7 | refs/heads/main | 2023-07-04T17:26:52.811615 | 2021-09-01T06:17:33 | 2021-09-01T06:17:33 | 381,391,253 | 1 | 0 | null | 2021-09-01T06:17:34 | 2021-06-29T14:20:09 | Python | UTF-8 | Python | false | false | 3,205 | py | """empty message
Revision ID: ad0c6f3008e7
Revises:
Create Date: 2021-07-07 10:09:00.381720
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ad0c6f3008e7'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"nathanblaz@gmail.com"
] | nathanblaz@gmail.com |
24620c48aa3523716e5550dab083433ad30958c6 | ef8df68fcdde562636c83700ee356e3d1d3efd9f | /sample_mimic_json.py | d90d3b00f23de31420f4d46393b1b6390b2a4f5e | [] | no_license | copyleftdev/deep6_ingest_artifact_generator | 581c43ee0e6cebb954b8f6236d3956d87c30ba41 | 1225f8c439543d7af8072e2d12e36a0c54e22a99 | refs/heads/master | 2022-12-09T10:59:00.763874 | 2019-05-10T17:29:35 | 2019-05-10T17:29:35 | 176,434,116 | 1 | 0 | null | 2022-12-08T05:16:11 | 2019-03-19T05:51:07 | Python | UTF-8 | Python | false | false | 378 | py | import pytest
from random import randint
from random import choice
from faker import Faker
from libs.models.mimic_model import Mimic as mm
from libs.utils.db import DBHelper
from libs.utils.json import Writer
fake = Faker()
patient_db_cur = DBHelper(prefix="patients_mimic")
notes_db_cur = DBHelper(prefix="notes_mimi... | [
"don@deep6.ai"
] | don@deep6.ai |
7bb2e73006c6ee160b2255fc289034c470d89208 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03126/s820418794.py | c6ce4db220fdbf39b8cd22445a417e1ceea7b485 | [] | 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 | 172 | py | n, m = map(int, input().split())
foods = [0] * (m + 1)
for i in range(n):
k, *a = map(int, input().split())
for j in a:
foods[j] += 1
print(foods.count(n)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e0bed68c7a9f9f63190d3dce0a29a93e11c2e59c | c51f10d8fe9ceb8d95860f9df6b74f90cd94a264 | /LOCATORS.py | 91a72c151e7c6b4d31680b1941c94761fcfc3efe | [] | no_license | agnivon/TeamsAutoAttender | 63b90b04aea0c137f0a548c1c0635eb52b240b03 | db467f0977459043ff1c230048378cdc7f1e5c10 | refs/heads/master | 2023-06-04T01:26:36.580674 | 2021-07-05T00:30:20 | 2021-07-05T00:30:20 | 382,975,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | EMAIL_FIELD = '//*[@id="i0116"]'
EMAIL_NEXT_BUTTON = '//*[@id="idSIButton9"]'
PASSWD_FIELD = '//*[@id="i0118"]'
SIGNIN_BUTTON = '//*[@id="idSIButton9"]'
REM_LOGIN_BUTTON = '//*[@id="idSIButton9"]'
WEBCAM_TOGGLE = '//*[@id="page-content-wrapper"]/div[1]/div/calling-pre-join-screen/div/div/div[2]/div[1]/div[2]/div/div/se... | [
"agnivon@gmail.com"
] | agnivon@gmail.com |
c7cbc7413abcf620cd9202f1340343894726e42a | ec306c5fb1083c13777866b9304c391b1aaadabc | /portfolio/util.py | d299ad92d6b0194d05ade7b91048298c64bb1189 | [] | no_license | tfrance/special-octo-funicular | 602cb452d8184abdfb9670b64d4b5fddfd082b66 | c716b8004becb54af6d281db78ee7ad13f1c54cc | refs/heads/master | 2020-08-30T16:14:31.053763 | 2019-10-30T03:27:50 | 2019-10-30T03:27:50 | 218,430,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | """MLT: Utility code."""
import os
import pandas as pd
import matplotlib.pyplot as plt
def symbol_to_path(symbol, base_dir=os.path.join("../", "data")):
"""Return CSV file path given ticker symbol."""
return os.path.join(base_dir, "{}.csv".format(str(symbol)))
def get_data(symbols, dates, addSPY=True):
... | [
"tom@vgimfs.com"
] | tom@vgimfs.com |
0384ae2fbe09fc8096dd75019fc77f73ea286804 | b302e5e4f7d698d030389bdb0b3cfde263797275 | /extract_reduced_data.py | d3e9fc7a14d8855d651799cd1d9beacc28e499e2 | [] | no_license | JMBrock/BROCK.py | 10f02f1d9850706db891283bcc79575c7cda6d8b | 6f85b4f06782fc01b044c9750d11fa563d498daa | refs/heads/master | 2020-05-07T20:13:24.866247 | 2019-04-11T18:03:20 | 2019-04-11T18:03:20 | 180,850,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,925 | py | import os
import sys
import math
import numpy as np
import matplotlib.pyplot as plt
from scipy.fftpack import fft, fftfreq, fftshift
from scipy.signal import blackman
from scipy import integrate
class myfft:
"""
This class is created for the computation of Fast Fourier Transforms
on signals outputted by U... | [
"joseph.m.brock@nasa.gov"
] | joseph.m.brock@nasa.gov |
491148774ac1fa2b690aa1334fcef76f3d45bf60 | ac69799f105ec928ecfd5e1aa67062b3e19dead3 | /sdk/python/tests/compiler/testdata/tekton_pipeline_conf.py | 481b38418982617f055d134e0b11f7f8a6f2541a | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | kubeflow/kfp-tekton | 5326373a4056b2b3ad78fc9199cae91c9a084282 | 136e7a93528b1b5845dcab058d46272b15af6c54 | refs/heads/master | 2023-08-05T07:25:29.697741 | 2023-08-03T16:04:20 | 2023-08-03T16:04:20 | 217,148,415 | 149 | 111 | Apache-2.0 | 2023-09-11T18:21:37 | 2019-10-23T20:33:01 | TypeScript | UTF-8 | Python | false | false | 2,470 | py | # Copyright 2021 kubeflow.org
#
# 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... | [
"noreply@github.com"
] | kubeflow.noreply@github.com |
9eeb9ec736d3a128a7a4b0bcbf8e7d8c9f3d58cb | ce11b44f6ea5d986e23785e2a47562772221dfc3 | /cs440_pacman/positionplusghost.py | a220999b61866ef4e397c2c06c117863ceb4fd29 | [] | no_license | Atul-Nambudiri/AIMPS | d33dfe460be44a1f58cee41b4b63d811c7b54c23 | c915ff48aed958540ca27523d2520db9df739154 | refs/heads/master | 2021-01-19T05:53:45.690193 | 2015-12-08T04:36:30 | 2015-12-08T04:36:30 | 42,484,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | class PositionPlusGhost(object):
"""
A Position object that is used by the priority queue to get the position with the greatest priority, or low cost
The object has two additional
"""
def __init__(self, pos, ghost_pos, ghost_dir, cost):
self.pos = pos
self.cost = cost
self.ghost_dir = ghost_dir
self.ghos... | [
"atul.nambudiri@gmail.com"
] | atul.nambudiri@gmail.com |
c1dabae1fb425ffb57e912b628fee915812da11a | 7bf0f2da132e02d9f573afac91c7e1bb12f8f8cc | /blog/urls.py | 7d3738250250a541a6f063f77ec13b072231842b | [] | no_license | vedo/vedo-blog | e18fc903dd27ba2bf647ea2ff390f857787db4c9 | fff26febc36e98251a96698a784c95fc0c8764dc | refs/heads/master | 2021-05-22T00:33:40.246621 | 2020-04-20T11:08:12 | 2020-04-20T11:08:12 | 252,885,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from django.urls import path
from . import views
app_name = 'blog'
urlpatterns = [
# ej: /blog/
path ( '', views.IndexView.as_view(), name='index' ),
path ('<int:pk>/', views.DetailView.as_view(), name='detail')
]
| [
"victor.diazosorio@gmail.com"
] | victor.diazosorio@gmail.com |
649d80601651a1282e96382840d77acba321849c | 290a3ae83302ce46769ccc6977314c11224c5883 | /base_camera.py | d30913031346c51170757c05c1c46c535aa1a2e8 | [] | no_license | Buttars/Internet-Rokenbok-Controller | 2dc648ec459e4c256b715ed80be83097682f52f5 | 3820ba243e316cc610c5144b054ec79ed655a9bd | refs/heads/main | 2023-08-11T05:19:45.523224 | 2021-09-17T17:59:29 | 2021-09-17T17:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,694 | py | # Taken from https://blog.miguelgrinberg.com/post/flask-video-streaming-revisited
import time
import threading
try:
from greenlet import getcurrent as get_ident
except ImportError:
try:
from thread import get_ident
except ImportError:
from _thread import get_ident
class CameraEvent(object... | [
"fibonaccirectangle@outlook.com"
] | fibonaccirectangle@outlook.com |
97c711444f271cf5dd01a4637e0f22fcf114dd1f | 8f7ba59b79709011098c6c8d8eb0fc0565fe43e5 | /SteamParser/migrations/0003_auto_20210629_1009.py | 251b847502a48f8552661cf7883d1ce66b7f795a | [] | no_license | izya5346/Steamly | b1bdf7c1a8e3b4b380fec16cf83de87dca5faab7 | 7d6b979db4966fc6dbdd09ea844f3066206599ac | refs/heads/master | 2023-06-03T03:40:21.916667 | 2021-06-29T13:07:50 | 2021-06-29T13:07:50 | 381,356,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # Generated by Django 2.2.16 on 2021-06-29 10:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('SteamParser', '0002_auto_20210629_0827'),
]
operations = [
migrations.AlterField(
model_name='sticker',
name='icon_... | [
"karimov2203@gmail.com"
] | karimov2203@gmail.com |
eea2508dce92201cc93455cc550fce259e244a53 | f288de8dc46c907bed2d47c11a9606e7b2d1d92c | /skil2.py | a371551d376917d8375997839bd5d938a4f2b247 | [] | no_license | BrynjarYaYeet/vefforritun-verk2 | 5a3719572739afd24ca0f9999d3947cf05499723 | b34204045d08d1d915331221e2d1afe57e134751 | refs/heads/master | 2020-03-28T16:03:40.530101 | 2018-09-13T15:20:58 | 2018-09-13T15:20:58 | 148,655,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,141 | py | from sys import argv
import bottle
from bottle import *
@route("/")
def index():
return """
<h2> Verkefni 2. </h2>
<p><a href="/a"> Liður A </a></p>
<p><a href="/b"> Liður B </a></p>
"""
@route("/a")
def a():
return """
<h2> Verkefni 2.A </h2>
<a href="/sidaA/... | [
"noreply@github.com"
] | BrynjarYaYeet.noreply@github.com |
0c6f1f132f207947ef823ca9dd2a6b533534a7bb | ce8efb09caf4c3e0105bbd4bdcea45a2036dff49 | /rango/urls.py | e48fd9bee1c4b5d42a858de78d63bee8f637060d | [] | no_license | 2090707/twj_test | aee54c6bcc96971ed50c9e82e8d61a439a48b2ce | e5028470b563d19c4590cc0d1384bef26d5cac9f | refs/heads/master | 2021-01-18T13:30:15.591632 | 2015-01-01T18:35:38 | 2015-01-01T18:35:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | from django.conf.urls import patterns, url
from django.conf import settings
from rango import views
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'^about/$', views.about, name='about'),
url(r'^add_category/$', views.add_category, name = 'add_category'),
url(r'^category/(?P<cat... | [
"rammluft@gmail.com"
] | rammluft@gmail.com |
65124adc85975262069df0af5fa469ff0f938db3 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nncorpul.py | f663c3de78ca7c9ee1c5fec007032320a6f1f46a | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 426 | py | ii = [('LeakWTI3.py', 1), ('AdamWEP.py', 1), ('ClarGE2.py', 1), ('LyttELD.py', 1), ('CoolWHM.py', 1), ('CrokTPS.py', 1), ('ClarGE.py', 7), ('AinsWRR.py', 1), ('MedwTAI.py', 1), ('GodwWLN.py', 1), ('MedwTAI2.py', 1), ('HogaGMM.py', 1), ('CoolWHM3.py', 3), ('DequTKM.py', 1), ('FitzRNS.py', 2), ('FerrSDO.py', 1), ('RoscTT... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.