blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2ce5f71e25999596911d87ad8f1dc4256adc73dd | e8dd05618fd8e9cd21c2dd403454692b9d1bcd5f | /main.py | ac7c8d065929e82b865b55cd7c7ed8f79c4fc9ae | [] | no_license | patdan10/market-price-predictor | df9fa5ce720fe0292a7fc65040ee9031125b8089 | 29ef4763b76ecc0034fecd9d19062a4e60eef1ca | refs/heads/master | 2023-07-15T21:56:01.018825 | 2021-08-24T21:41:22 | 2021-08-24T21:41:22 | 399,610,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | import pandas
import db_pull, regressions, data_formatter
def main():
# Print all columns
#pandas.set_option('display.max_columns', None)
# Get data from database
print("START")
output = db_pull.get_data()
# Alter the data slightly
print("DATA")
data_formatter.generate_demand(output)
... | [
"Bluedogbluedog1!"
] | Bluedogbluedog1! |
d8cd769c9300d26c7384af39754b6fd985529f84 | 8b2b15e32a103a3261ce59409b45312cbb5ac89e | /tif-a/07-quiz/simplemultiplesend.py | b76881d260ab7c61e714cd6966b81edc167d5d9c | [] | no_license | bhawiyuga/progjar2020 | d9723b8e8d2a25ea6eea08ef9b898b40c31821ba | c1e06505cb9e25fb78fe857814e9d150633c9922 | refs/heads/master | 2021-01-13T21:00:03.235164 | 2020-03-11T05:08:07 | 2020-03-11T05:08:07 | 242,492,721 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | import socket
import threading
# Inisiasi socket TCP/IPv4
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Kirim permintaan koneksi ke server
sock.connect( ("127.0.0.1", 9999) )
# Definisikan fungsi yang akan dieksekusi pada setiap thread
def handleThread(conn):
try :
while True :
#... | [
"bhawiyuga@MacBook-Air.local"
] | bhawiyuga@MacBook-Air.local |
7c4821ee92464aad4d48bcbe7222bb9aac18edef | e972351b94cf4a070b0040742c4b1cdf6ef7d7f5 | /getTodaysArticles.py | 9f8c9109d066517409e70bda21d6f934ce3a8abb | [] | no_license | aamirz/333Project_webScraper_fossil | 40d3e4d0ea1bf1ead193812760a431e6d4ef3d24 | b951ee2f9ef26de669d635ef51598f4893b16e97 | refs/heads/master | 2021-09-03T18:25:36.461906 | 2018-01-11T03:18:40 | 2018-01-11T03:18:40 | 84,675,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,206 | py | """
getTodaysArticles.py
Author: Aamir Zainulabadeen
simple script to pull today's articles from all publications
and save them to txt files as json
"""
import sys
import time
import json
import os
import errno
# libraries written for prowler
import scrapeBase as sb
import scrapePrince as sp
# fossil modules
#imp... | [
"aamirz@princeton.edu"
] | aamirz@princeton.edu |
fe91132fb11e368db30aa31e2a9f635edf22be17 | abfff8ab3162f7003b51d3fdcc7897684d2d4e54 | /c_py_extention/Lib/site-packages/setuptools/config.py | a2fed889e381ccc75df1424a05fb693c208403bc | [] | no_license | RedKnite5/Junk | 972dc24c99fe30400ab35e77bb4b69abe9076190 | 93b5bb4b6138518724528770cf56ea1df10e95b4 | refs/heads/master | 2023-04-10T07:25:14.968070 | 2023-04-04T04:19:42 | 2023-04-04T04:19:42 | 143,909,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,483 | py | from __future__ import absolute_import, unicode_literals
import ast
import io
import os
import sys
import warnings
import functools
import importlib
from collections import defaultdict
from functools import partial
from functools import wraps
import contextlib
from distutils.errors import DistutilsOptio... | [
"mr.awesome10000@gmail.com"
] | mr.awesome10000@gmail.com |
0646039debfeadede2964edc296c67171c6b4e80 | a804313f8f0057340ff27c6aaf3c27b30b46cd93 | /mqttsn_transport_udp.py | 099f359664c8035c105e47858cf736577cd21fbe | [] | no_license | brianrho/mqttsn-project | 4b62c6dda53fe3699244566ed2058edbed0ca062 | fa530212b20e2838eaa3c030405a8a16920d283e | refs/heads/master | 2020-06-03T21:17:03.083094 | 2019-07-21T01:24:37 | 2019-07-21T01:24:37 | 191,734,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,004 | py | from mqttsn_transport import MQTTSNTransport
from mqttsn_defines import MQTTSN_MAX_MSG_LEN
import socket
# to do: listen on broadcast
class MQTTSNTransportUDP(MQTTSNTransport):
def __init__(self, _port, own_addr):
super().__init__()
# Create a TCP/IP socket
self.sock = socket.socket(sock... | [
"brianrho94@gmail.com"
] | brianrho94@gmail.com |
c74ef963dbb9492c28084a8dfc6b074e91eb5140 | 7167296d10507b774bd0532a46675638ea859f56 | /keras_gym/envs/__init__.py | a9f8b3546145e89f6b3cb64d45e8f3705500b7d3 | [
"MIT"
] | permissive | axb2035/keras-gym | ddd7c0f1f3fc8399ef69d30b6e34df22a11f7566 | 076ebbca022f4dbdcae2a14967f824652fe473c3 | refs/heads/master | 2020-06-28T18:02:28.979792 | 2019-08-02T22:27:05 | 2019-08-02T22:27:05 | 200,303,524 | 0 | 0 | MIT | 2019-08-02T22:11:19 | 2019-08-02T22:11:18 | null | UTF-8 | Python | false | false | 40 | py | # flake8: noqa
from .self_play import *
| [
"kristian.holsheimer@gmail.com"
] | kristian.holsheimer@gmail.com |
bbb60d1d1378e056571eeb37c981e839617a5b2e | 52880ff03783999b4d1c12ce3a86f55619c34ef3 | /test_mainWindow_vertical_1.py | 4be3c272cb8eab15454e2fac341c33ef0f95e47c | [] | no_license | dongjunkimkorea/kiwoon36 | add1bb83cc5f7cd7131bfe00b84688795824dfb9 | 5ca50604bbbf154e8cb06e93f389752fb2ab3766 | refs/heads/master | 2021-06-26T04:35:04.667172 | 2020-10-14T04:32:33 | 2020-10-14T04:32:33 | 150,214,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'test_mainWindow_vertical_1.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow)... | [
"himnaeja@gamil.com"
] | himnaeja@gamil.com |
b38ed2c974b84c0fb8d9c50833cc8269e34bd7ff | 8bdd15f5d404c429f09a2f5e831190c0e8fe3593 | /botbitmexnotes.py | 6005ba86bb5ba4520bac7f96906001f810438da8 | [] | no_license | sired-ui/bitmexbot | a4b10cc64bef9b034d35abaf780d80c5cfc8d53a | 606aacb8e6a80108250f208cb6c0ae87b0cb2371 | refs/heads/master | 2023-04-16T03:16:09.232758 | 2021-04-20T03:35:17 | 2021-04-20T03:35:17 | 359,673,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,013 | py | import time
import hashlib
import hmac
import requests
import json
from tkinter import *
from threading import Thread
import threading
from time import sleep
import webbrowser
import random
import os
import uuid
import pyperclip
try:
from urllib.parse import urlparse
except ImportError:
from urlparse import url... | [
"asochakoff.sergei@yandex.ru"
] | asochakoff.sergei@yandex.ru |
ff07f9d99c42ae1e649eecc7020254868e05b06f | 8514a3f47a6edfdc129cb33b777b4c3ffbc592a9 | /build/rbx1/rbx1_speech/catkin_generated/pkg.develspace.context.pc.py | 6c230cd03ba3f94698ad839c3157e643149ea8d4 | [] | no_license | coderofchina/catkin_ws | 2486b0fcc412762069d4a64ebd309cccc0f8cdd4 | dccd9d55bf34e6b1ccef208d803254a2c1a41721 | refs/heads/master | 2020-04-01T19:25:22.051977 | 2018-10-18T03:41:38 | 2018-10-18T03:41:38 | 153,552,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | 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 = "rbx1_speech"
PROJECT_SPACE_DIR = "/ho... | [
"1793426191@qq.com"
] | 1793426191@qq.com |
e7663ad96b3a0a7923835b8810a3c36cad5f7025 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/pki/keyring.py | 57a4f4ee21803b74ecf43a4aad448075dcb455b5 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 8,718 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
c8310c70988e850b2fc18b2fac1e8b13a933d2f1 | 31b62184732dc3960bf8574494d71c3385176868 | /code/miscellaneous/jacobian.py | 39ee49c9cebfa8ef921a98e9def493e5e9497458 | [] | no_license | NicolasMakaroff/deep_calibration | 7bb9ee64a410dd22912f4ab64b138d41d4941cd8 | df6a3907f7cec00970f462ab6a13873a48de6cb7 | refs/heads/master | 2022-10-05T05:22:38.008283 | 2020-06-05T15:02:53 | 2020-06-05T15:02:53 | 261,232,501 | 3 | 1 | null | 2020-05-05T10:01:40 | 2020-05-04T16:06:11 | Python | UTF-8 | Python | false | false | 824 | py | import torch
import torch.nn as nn
from torch.autograd.gradcheck import zero_gradients
from torch.autograd import Variable
class Jacobian(nn.Module):
def __init__(self):
super().__init__()
def forward(self,inputs,outputs):
assert inputs.requires_grad
num_classes = outputs.size()... | [
"nicolas.makaroff@ensiie.fr"
] | nicolas.makaroff@ensiie.fr |
79318c4507ad99722cf829586259eddfaaa0dab9 | c2bc341c489246c38b70047f1df86f1726860144 | /mysite/settings.py | 68a77158404857a0d818a5a28270bb1f7e0ab0c7 | [] | no_license | Ju-alcantara/my-first-blog | e4243f7d53b8bf462a3b5f86fac169aa236977a9 | 5da390c5edac19903748de7c3a315b262986a44e | refs/heads/master | 2021-01-22T08:28:06.939179 | 2017-05-27T18:32:44 | 2017-05-27T18:32:44 | 92,617,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths... | [
"ju.nunesalcantara@gmail.com"
] | ju.nunesalcantara@gmail.com |
8776ef30d3234263ef4b475216b1bd03ea6256d8 | 3c32a720eb1680ca37efbcdb3c8233367978499a | /kuka_arm/scripts/IK_debug3.py | 277774210b63a5274753ec76e1c79d70845e17c9 | [] | no_license | udacitycourse/RoboND-Kinematics-Project-5 | 67119c659d9f3ca92f2e86f0c81c250a9191336e | 2a2ccdd5d14b0bffc41fadbc2ba4ee8971d8fff2 | refs/heads/master | 2021-05-08T08:16:46.226745 | 2017-09-25T01:14:40 | 2017-09-25T01:14:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,630 | py | from sympy import *
from time import time
from mpmath import radians
import tf
'''
Format of test case is [ [[EE position],[EE orientation as quaternions]],[WC location],[joint angles]]
You can generate additional test cases by setting up your kuka project and running `$ roslaunch kuka_arm forward_kinematics.la... | [
"skpeng@MBP.local"
] | skpeng@MBP.local |
a5c4a9ab8b33c00f60586f005f74e7940bfcf0e5 | 8f8993442180e447d746fc689b86ad8c916a3456 | /samples/api_regular.py | 868ccce8e8152184a905956e7d747a2a480b278d | [
"MIT"
] | permissive | obolary/td-ameritrade-python-api | 487c9dc858eee6a8094161eac453d32460882b30 | 8cb4581327cad918be2e9c6f3549eceb9be2e93f | refs/heads/develop | 2022-11-12T05:39:53.219461 | 2020-07-05T19:36:51 | 2020-07-05T19:36:51 | 266,371,592 | 0 | 0 | MIT | 2020-06-04T14:32:10 | 2020-05-23T16:05:23 | Python | UTF-8 | Python | false | false | 2,772 | py | from datetime import datetime
from datetime import timedelta
from td.client import TDClient
# Create a new session
TDSession = TDClient(
client_id='<CLIENT_ID>',
redirect_uri='<REDIRECT_URI>',
credentials_path='<CREDENTIALS_PATH>'
)
# Login to the session
TDSession.login()
# `get_quotes` endpoint with s... | [
"alexreed1192@gmail.com"
] | alexreed1192@gmail.com |
723956c0d14d5a0e70b082e4bb4e61bbc1e216f5 | 238e46a903cf7fac4f83fa8681094bf3c417d22d | /VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/twisted/internet/test/test_udp.py | 53bb2d399a240a70ae78373f7d74b450b9fcd29d | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-3-Clause"
] | permissive | baojunli/FastCAE | da1277f90e584084d461590a3699b941d8c4030b | a3f99f6402da564df87fcef30674ce5f44379962 | refs/heads/master | 2023-02-25T20:25:31.815729 | 2021-02-01T03:17:33 | 2021-02-01T03:17:33 | 268,390,180 | 1 | 0 | BSD-3-Clause | 2020-06-01T00:39:31 | 2020-06-01T00:39:31 | null | UTF-8 | Python | false | false | 16,101 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for implementations of L{IReactorUDP} and the UDP parts of
L{IReactorSocket}.
"""
from __future__ import division, absolute_import
__metaclass__ = type
import socket
from zope.interface import implementer
from zope.int... | [
"l”ibaojunqd@foxmail.com“"
] | l”ibaojunqd@foxmail.com“ |
9e2381c74c6d90c4c02f31f16cb86d1e9b46b85e | bd7434baa7008ff67bf560ddb6072e641b7e75d5 | /player_teacher_same.py | 61e6a076e17d66ad4954b94afd2077c5eba65cf3 | [] | no_license | davidhalladay/Numerical-Analysis-Tournament | a209e8ea85f87a4f1e0baa7a3ae100e29a968520 | 26f1ca78ab28ef3ca0e2a78bcd17ab972c89423b | refs/heads/master | 2020-05-25T13:20:19.636199 | 2019-10-08T07:03:26 | 2019-10-08T07:03:26 | 187,819,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,413 | py | import numpy as np
class player_module:
# constructor, allocate any private date here
def __init__(self):
self.init_x, self.init_y = -1., -1.
# Please update the banner according to your information
def banner(self):
print('-'*40)
print('Author: Wan-Cyuan Fan')
print('... | [
"christine5200312@gmail.com"
] | christine5200312@gmail.com |
1cf513e702f8d5dc4c104346b894baeb1597baff | bc3ea173f4f5c9b781f9aaa3c115aa9e42125a8e | /VapixActionClient/src/actionStateToggle.py | 581d16f91e3e1c63920320f0f19d5855fc953c6c | [] | no_license | bernhara/AxisVapixSoapCLient | 1c99e82fe241ead59ba32f92f4346f856fd37b43 | 3c6ae698fd9273f0aba8007a0981414df742a4b8 | refs/heads/master | 2020-04-26T02:57:57.801013 | 2019-03-18T12:04:44 | 2019-03-18T12:04:44 | 173,251,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,105 | py |
import sys
import os
if __name__ == '__main__':
pass
from zeep import Client
from zeep import Settings
from zeep.transports import Transport
from zeep.cache import SqliteCache
from zeep import xsd
from lxml import etree
from pretend import stub
import requests
import logging.config
... | [
"raphael.bernhard@orange.fr"
] | raphael.bernhard@orange.fr |
b14b4aedc5e9ea740e072b98dae31c7d2a33a7e4 | 10bcaa1fc6c31e6f2436bbf61fae95cf34f3be8f | /Web_Development/Django_Ecommerce_Site/cart/models.py | f209358b57f436d51c083f8ef36dfb06cae184ea | [
"BSD-2-Clause"
] | permissive | FrezeSteve/Python | aa4ce8b625f0a3357f652a15f04646df2cd0b749 | 34a6eda815a339b4443e47b70ed96fff46f6f972 | refs/heads/master | 2020-06-14T00:44:27.019127 | 2019-07-10T05:24:05 | 2019-07-10T05:24:05 | 194,839,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | from django.db import models
from django.conf import settings
from products.models import Product
from django.db.models.signals import m2m_changed
User=settings.AUTH_USER_MODEL
# Create your models here.
class CartManager(models.Manager):
def new_or_get(self,request):
cart_id=request.session.get('cart_id'... | [
"stevefrisson@gmail.com"
] | stevefrisson@gmail.com |
be85627b65caa911822bc43277bfffed80588664 | 3f578642cfd5f872705a1597efd0886c1f3fdbd6 | /06-字典的增删改查.py | bf0965428c72d5e188894a9c510ce04dad147752 | [] | no_license | danbao571/python- | cc5e13c31b30cd466506cfd06e63b44abedcda92 | 84c2bbd192e9079f5bb4806cf958f128a378bbcd | refs/heads/master | 2022-11-10T11:57:30.576662 | 2020-06-24T13:22:53 | 2020-06-24T13:27:43 | 274,671,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | # 定义空的字典
my_dict = {}
print(my_dict)
# 增加键值对
my_dict["name"] = "张三"
my_dict["age"] = 22
my_dict["sex"] = '男'
my_dict["address"] = '北京'
print(my_dict)
# 修改键值对,key存在就是修改键值对
my_dict["address"] = '上海'
print(my_dict)
# 删除键值对
del my_dict['age']
print(my_dict)
# 随机删除键值对返回key和value(字典无序)
# value = my_dict.popitem()
# 指定ke... | [
"1969236660@qq.com"
] | 1969236660@qq.com |
f2a6f0a2026816781bc27cbd90d2fce727b01af6 | 7af70c0d9540544d0306806aa1b93fccfe108d88 | /2021/Day1/day1.py | 94f8837b3b2252357cd09fac0fca5f76bbb2f1c4 | [
"MIT"
] | permissive | dh256/adventofcode | 3a1cb72517b94318c9dbd7e2dad7396ab4341d7a | 03a4d4ba9b1b3add635710748bd79ddd4ef27231 | refs/heads/master | 2023-03-19T02:41:13.256806 | 2023-03-12T18:12:11 | 2023-03-12T18:12:11 | 250,533,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from Sonar import Sonar
sonar = Sonar('input.txt')
print(f'Part 1: {sonar.increased}')
print(f'Part 2: {sonar.increased2}') | [
"david.hanley12@btinternet.com"
] | david.hanley12@btinternet.com |
47926e4daee33e0da7880f6acca408647cbff254 | 97d9dc37b352e54bf140aeffbc7ed1e78cb588a7 | /pong.py | 08a452cba75a224bef0d6e8d762afc1855308ff7 | [] | no_license | HarshitaJain22/Games | 8b1d519525ff340b463d19aae7d507d18fedd17a | ab1efd7c489598f5dd2524e5df987ce490ac8da8 | refs/heads/master | 2022-11-20T08:11:59.561207 | 2020-07-30T10:33:27 | 2020-07-30T10:33:27 | 252,425,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | import pygame
pygame.init()
window = pygame.display.set_mode((800, 600))
window.fill((0, 0, 0))
pygame.display.set_caption("PONG!")
paddle_ax = 20
paddle_ay = 250
paddle_bx = 760
paddle_by = 250
puck_x = 400
puck_y = 300
puck_speed = 20
vel_x = 20
vel_y = 20
width = 20
height = 100
vel = 30
fps = 5
clock ... | [
"noreply@github.com"
] | noreply@github.com |
bc73efd02fb34e60c7ffe5e60cce6655a6e96d63 | e3f79f46609109eb65f4272179beba0a7a793f1a | /app.py | d0f0d596bfa76ee2c09414b3fed33f7d5784ee12 | [] | no_license | tothbalazsroland/tippmix-api-fetcher | e9ecc49c705c0f89a9480ac1fe16f0138c821425 | 3b34c775de696b03ad543743194024bcb2e3a648 | refs/heads/master | 2020-04-29T17:15:49.874861 | 2019-03-18T15:09:45 | 2019-03-18T15:09:45 | 176,291,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from flask import Flask
import urllib2
import json
from flask import jsonify
app = Flask(__name__)
tippmix_api_url = "http://api.tippmix.hu/tippmix/search"
@app.route('/')
def hello_world():
response = urllib2.urlopen(tippmix_api_url).read()
content = json.loads(response)
return jsonify(content)
if __n... | [
"toth.balazs.roland@gmail.com"
] | toth.balazs.roland@gmail.com |
67e249c349f5bf51fe0141127b41513711f0ad68 | 2098fa068c74cde86ba011f9291614ac4820d8e2 | /ynmt/binaries/default/preprocess.py | 65b1d6dd62b802b76d43a2d79781fe930d2c78b3 | [
"Apache-2.0"
] | permissive | zhangliang-04/YoungNMT | 2a4f6ca80e4745370f73d879bc48eee5937a870c | 51a0e66e874eeb50d226deb8c7e7b19d0a81783a | refs/heads/master | 2022-12-31T07:04:28.669360 | 2020-10-19T14:44:12 | 2020-10-19T14:44:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (c) Jason Young (杨郑鑫).
#
# E-Mail: <AI.Jason.Young@outlook.com>
# 2020-04-02 08:23
#
# This source code is licensed under the Apache-2.0 license found in the
# LICENSE file in the root directory of this source tree.
import ynmt.hocon.arguments as harg
from... | [
"AI.Jason.Young@outlook.com"
] | AI.Jason.Young@outlook.com |
8faa1ae4965ddfb2036e9493c630069c377eb43d | f8e21c77db87b7518b02c9a41718f56ed6a590b1 | /fullthrottle_assignment/urls.py | 55d1f144db140c96cd5972064848e096f6fe1d6c | [] | no_license | jay-prakash/user-activity-assignment | 2c55c9f8f4a06cbf956a8e87f132e85e11f0db27 | 2968e43f1f3550549993fa84aa31858fc9d61840 | refs/heads/master | 2022-11-29T07:00:31.695657 | 2020-08-09T16:33:13 | 2020-08-09T16:33:13 | 286,237,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
path('', include('user_activity.urls'))
]
| [
"jayprakashmandal9@gmail.com"
] | jayprakashmandal9@gmail.com |
bef526ebb445d312eeee9697c1b18e8bde294a40 | 9413e8469c4e6c700c7a540e64f5d6bc08439cb2 | /LMSSystem/migrations/0039_auto_20200514_1528.py | 12b28a2f692538d9de4f614e3544a2009caf6595 | [] | no_license | M2DEducation/EduProject | 7e1c357bb253ef92feffb7cc4b91a94e0c3087ac | d73e8b9170b2d3bf0cea19a2eb8b6fb60d2f4434 | refs/heads/master | 2020-09-14T08:24:19.848147 | 2020-05-18T18:36:12 | 2020-05-18T18:36:12 | 223,076,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # Generated by Django 3.0.3 on 2020-05-14 19:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('LMSSystem', '0038_auto_20200514_1526'),
]
operations = [
migrations.AlterField(
model_name='classlistgroupcode',
nam... | [
"matthewkellison@gmail.com"
] | matthewkellison@gmail.com |
758b611abaeeebd5db7aa8487a4e3237a6220b98 | ce60f76c6ad4c48fd6182240b302ee057809cc66 | /extra/jobqueue/store.py | e50b09859dd5b03d81bdaa1e823e61f0c4787d96 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | bumps/bumps | 8ae10e8d15c0aa64e0bab6e00e7fabb2ca1b0860 | 2594e69567d534b434dc0eae727b77fdeff411d4 | refs/heads/master | 2023-08-22T17:56:49.987181 | 2023-07-26T14:22:23 | 2023-07-26T14:22:23 | 2,799,064 | 48 | 28 | NOASSERTION | 2023-07-26T14:22:24 | 2011-11-17T22:22:02 | Python | UTF-8 | Python | false | false | 1,373 | py | import os
import json
import shutil
from tempfile import NamedTemporaryFile
ROOT = '/var/lib/jobqueue/server/%s'
def tempfile():
create('temp')
return NamedTemporaryFile(delete=False, dir=path('temp'))
def path(id):
return ROOT%id
def create(id):
#print "making %s"%path(id)
if not os.path.exists... | [
"paul.kienzle@nist.gov"
] | paul.kienzle@nist.gov |
dc3bce9be87826bd6ba6dab79800a4656cffc984 | aa5639097c455f3bc7ce884f289fc4dec59b58bd | /philKrull/booksDeml/apps/books_app/urls.py | cc2b62bdaad67e144c8167ae6b76a4e2012dca7c | [] | no_license | sethborne/11_28_2016_Python | 42b0152f286dcb8c28d83f5e4fa68018eff6021f | dae94f0faf7fdd2e107ae4c556e414c27e15e34e | refs/heads/master | 2021-01-11T12:17:10.499958 | 2016-12-14T18:19:00 | 2016-12-14T18:19:00 | 76,482,453 | 0 | 0 | null | 2016-12-14T17:38:12 | 2016-12-14T17:38:11 | null | UTF-8 | Python | false | false | 260 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name = 'index'),
url(r'^create_author$', views.create_author, name = 'create_author'),
url(r'^create_book$', views.create_book, name = 'create_book'),
]
| [
"philip.krull@hotmail.com"
] | philip.krull@hotmail.com |
53075b60523000d066173f7ed2aad7a6187ef293 | d0ee1cf523eca021bb8ae0b2067752f24950924b | /src/solver_abstract/core/Rule.py | 6bbef5c4f2e0792c3baee35950b37ea6b7b6f172 | [] | no_license | JamesMcGuigan/kaggle-arc | bc42fd5ca303f96adf9d90b526571e38d6901b5f | 583a4c101ee1bd11c157dc7f5300ab3106944e97 | refs/heads/master | 2022-09-10T18:52:47.687726 | 2020-05-29T17:17:12 | 2020-05-29T17:17:12 | 267,910,558 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,265 | py | import inspect
import traceback
from collections import defaultdict
from collections import UserDict
from functools import lru_cache
from typing import Any
from typing import Callable
from typing import DefaultDict
from typing import Dict
from typing import List
from typing import Set
from typing import Tuple
from typi... | [
"james.mcguigan.github@gmail.com"
] | james.mcguigan.github@gmail.com |
cbaa6f54a684c4c06f61e15be8ce7ab163f3c5c7 | dca80d4401dee3c5926f6e215461c88f024c0bc2 | /Matplotlib/intro.py | de94ccda575dd018682cc363d3e80f60e49f83f3 | [] | no_license | Abhimanyukumar08/Data-Science | 1c7b79f0c7483621d98347cf6f14d537f969dcc8 | 9261066af948c3de0b005ae0f657731d899aff3c | refs/heads/master | 2023-08-07T08:11:52.600729 | 2021-09-14T15:28:16 | 2021-09-14T15:28:16 | 379,266,875 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
x = np.linspace(0,10,20)
y = x*x
z = x+y
print(y,"\n",z)
# to plot the values
# plt.plot(x,y)
#labelling the graph
plt.xlabel("x-axis")
plt.ylabel("y-axis")
plt.title("first graph")
#multiple line in single graph
plt.plot(x,y,z,y, label = 'legend'... | [
"abhimanyuthebes1@gmail.com"
] | abhimanyuthebes1@gmail.com |
29daccff5b13532a26a99f6b7b20c12c8d0ae916 | 56118be23d8137c559c5d0ad646afea285620568 | /dask/dataframe/tests/test_boolean.py | a2f0daa68c98bd4332729d00fe9aa5b7cab9e76c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | freyam/dask | b29c8364d74545233611f3db7c2352c01270631c | e1974bffd6067659bb250fd84b6eb3f224cdb79f | refs/heads/main | 2023-07-27T02:36:11.589342 | 2021-09-09T13:56:24 | 2021-09-09T13:56:24 | 383,085,729 | 1 | 0 | BSD-3-Clause | 2021-07-05T09:29:57 | 2021-07-05T09:29:56 | null | UTF-8 | Python | false | false | 906 | py | import pandas as pd
import dask.dataframe as dd
def test_meta():
values = pd.array([True, False, None], dtype="boolean")
ds = dd.from_pandas(pd.Series(values), 2)
assert ds.dtype == pd.BooleanDtype()
dd.utils.assert_eq(ds._meta_nonempty, pd.Series([True, pd.NA], dtype="boolean"))
ddf = dd.from_... | [
"jrbourbeau@users.noreply.github.com"
] | jrbourbeau@users.noreply.github.com |
f1330358b21295664c1b9d10ab778c2e07df1410 | a9275787202972a5484b0961e699bda5d4afb8f7 | /wjx/somelib/GetWebInfo.py | 6ec85bd08a0e1ab1a3a0e29ebd1e75d45a614abd | [
"MIT"
] | permissive | wwqkbd/test_login | e9aef6f4336aeb0c9de3eb116cb8e65b8bf2eb7e | 1c435a284321879f0853d6c46b2fde8ed5e1895f | refs/heads/master | 2023-03-15T19:30:55.673568 | 2019-06-03T16:49:21 | 2019-06-03T16:49:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("--headless")
chrome_options.add_argument("--log-level=3")
# 打开随机生成答案的js
with open('somelib/random.js', 'r', encoding='utf-8') as f:
randomjs = f.read()
class WjxDemo(obje... | [
"8598979947@qq.com"
] | 8598979947@qq.com |
e728183ff73afc5acd4cb9e9d2674068e9a7bed0 | 55080860557bc8e43a4b8040f3eac6a4930067db | /venv/bin/pip3 | 8982d0592f8c98b2091a3704c3b776a66cee9a43 | [] | no_license | michaelisaac015/multichain | d224f0198f661b6a4f53266c0e362d6ab8e8aacd | 8c79bc9d06ca302738b5d4165df23d651c2b4c3f | refs/heads/master | 2021-09-08T19:48:57.939336 | 2018-09-20T17:38:48 | 2018-09-20T17:38:49 | 149,647,254 | 0 | 0 | null | 2021-09-02T05:19:21 | 2018-09-20T17:40:21 | Python | UTF-8 | Python | false | false | 408 | #!/home/research/PycharmProjects/multichain/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
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])
... | [
"miichaelisaac015@gmail.com"
] | miichaelisaac015@gmail.com | |
362ff66396b2f42d82f94a07021f22c9d53d50e3 | 6b699b7763a0ff8c32b85014d96f6faf02514a2e | /models/research/syntaxnet/syntaxnet/beam_reader_ops_test.py | 9d5a388bf9870ea187d569c79b85f947352b42fd | [
"Apache-2.0"
] | permissive | leizeling/Base_tensorflow-object_detection_2Dcord | df7c195685fed21fd456f1dd79881a198cf8b6e0 | d07418eb68543adc2331211ccabbc27137c8676e | refs/heads/master | 2020-03-19T11:51:57.961688 | 2018-06-07T14:47:16 | 2018-06-07T14:47:16 | 136,481,479 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,120 | py | # Copyright 2016 Google 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 ... | [
"1072113944@qq.comm"
] | 1072113944@qq.comm |
c88db3e78a5dbe72641e36c2a877849b73156344 | 3f09058d7637cb0e2a7574a8887c72b771b00b9d | /dice.py | 0f3d4fa249ff5d2eada56065835429d5e7a9f68b | [] | no_license | chrishaining/games_of_chance | 4390d3e95437dcb08168f324ee30b2be5b337b1b | 1fa6968bae1dbeb5ae36782a9a93ce5ecb3a0c1f | refs/heads/master | 2020-11-27T12:45:17.005655 | 2020-01-11T16:28:30 | 2020-01-11T16:28:30 | 229,445,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,531 | py | #import packages - random, maybe numpy, maybe matplotlib
import random
from matplotlib import pyplot as plt
import numpy as np
#create a list of possible numbers (let's make it two lists - imagine there are two dice)
#(possible refactor - even if I want to have two numbers, I don't really need two lists - I could jus... | [
"chrishaining@yahoo.co.uk"
] | chrishaining@yahoo.co.uk |
28f7fb699b7de609cb6db288fa6c401134f44598 | bf5487ab254401278448c7ece92d389b01ef74e5 | /save_tfrecord.py | 60092726129ded42ea675b3f7d08f4b43ecd09a7 | [] | no_license | JustDoITLab/videoqa | a5dc04f97fad9bff8272b58bea03a8959be96775 | 607a3add03d31ec45b8bcf76c38872875e282947 | refs/heads/master | 2020-04-06T22:35:42.737033 | 2018-11-16T09:36:56 | 2018-11-16T09:36:56 | 157,841,008 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,475 | py | from random import shuffle
import numpy as np
import glob
import tensorflow as tf
import cv2
import sys
import os
import pandas as pd
from keras.preprocessing.text import Tokenizer
from keras.preprocessing import image,sequence
from nltk.probability import FreqDist
from skimage import io
def txt_to_df(path):
df = ... | [
"760997646@qq.com"
] | 760997646@qq.com |
bbd5b29946d3d1fcc962939dab4955b82824989f | 344e2956b4e2a30a8ef7532d951f96d995d1dd1e | /16_mmdet/lib/cfgs/fovea_r50_fpn_4x4_coco.py | 8452b618173e489abc322aef13905ffd256a7e0d | [
"Apache-2.0",
"LGPL-3.0-only",
"MIT",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"GPL-3.0-only"
] | permissive | karndeepsingh/Monk_Object_Detection | e64199705326e4cd65e4b29946cae210a4ef9649 | 425fa50a3236cb9097389646275da06bf9185f6b | refs/heads/master | 2022-12-22T18:26:53.933397 | 2020-09-28T12:49:50 | 2020-09-28T12:49:50 | 299,307,843 | 1 | 1 | Apache-2.0 | 2020-09-28T12:52:18 | 2020-09-28T12:52:17 | null | UTF-8 | Python | false | false | 3,776 | py | # model settings
model = dict(
type='FOVEA',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
norm_eval=True,
sty... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
9005b2de140d8e16cba27f1249f4cfee000e7f81 | 2c12f504c49c3a8d8941212b44faabeda15df4e1 | /DjangoRestApiMongoDB/cards/models.py | aedecc8f416831efe3277c73ab0ded5189878a39 | [] | no_license | 88amit77/DRF_mongo | d60901a2dc76a1a57705be27a92ac0fe7eafdc3b | a242cd7f6118e6d157828de6851d48c6f91f2f18 | refs/heads/master | 2023-06-21T13:34:52.398953 | 2021-07-17T04:19:54 | 2021-07-17T04:19:54 | 386,834,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | from django.db import models
# Create your models here.
class Card(models.Model):
question = models.CharField(max_length=255)
answer = models.TextField()
# def __str__(self):
# return self.question
| [
"88amit77@gmail.com"
] | 88amit77@gmail.com |
271077be4ca0a477e30f8f0cbd8093cb13c2f7b9 | 10e8c2915c214cc1ea13dbb2e6aed8e79008e89f | /django-InstallSystem/SystemProject/pxeviews/UserList.py | 51538adb3f9ba4d6ab8d2aded607d77e873226a1 | [] | no_license | jhusshini8/pxe-install-system | 1b5af028c3d5c5855085218a89c03e9f37d63add | 190721d83e0c26a2a1fbaa0b8b413de1adb76fce | refs/heads/master | 2023-02-18T18:46:26.441944 | 2021-01-12T10:32:44 | 2021-01-12T10:32:44 | 294,567,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | # -*- coding:utf-8 -*-
from django.http import JsonResponse
from SystemProject import models
def UserListPage(request):
if (request.method == 'GET'):
dataobj = models.InstallRecord.objects.all()
data_dic = {}
transferd_comment_list = []
for i in dataobj:
data_dic["name"]... | [
"pingx@jumei.com"
] | pingx@jumei.com |
5e774aa9f1672d90581e70c88465ec42fe3ac8a6 | a5e9e6a505740f85891f54533654e0e76ef6b511 | /untitled0.py | d2f35fdbc2e9e10664d4c158fd40941f9541de85 | [] | no_license | swagatsourav/learngit | c3d5af1f4d683dd97f4bb3ad1db80f5b4b38b3df | e633bd0f717030cde697ad54d293fdad22738ccb | refs/heads/master | 2022-06-28T13:51:21.663052 | 2020-05-07T05:13:40 | 2020-05-07T05:13:40 | 260,623,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,796 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'first_project.settings')
import django
django.setup()
from first_app.models import Assigned_Role, Role_Master, User_Accounts, User_Master
from faker import Faker
import random
fake = Faker()
desingnations = ['Consultant', 'Supervisor', 'Operator', 'Architecht'... | [
"swagat.miku@gmail.com"
] | swagat.miku@gmail.com |
ff82320cf996f96ad04a788662147eb25c59aa70 | 72373550e744687d43e931fea83b241d2931caea | /weiredalgo.py | b048cf0cdd95aea2cf6a33df07079b8c17666437 | [] | no_license | HrithikArya/MyInitialProjects | 549c18576a66b3c8031a1029c9a81bab8a11520a | 14a421dce072c8429f2fae3fe81407c295ee7299 | refs/heads/master | 2022-09-17T21:28:15.445934 | 2020-05-23T12:49:13 | 2020-05-23T12:49:13 | 256,234,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | '''Consider an algorithm that takes as input a positive integer n. If n is even, the algorithm divides it by two, and if n is odd, the algorithm multiplies it by three and adds one. The algorithm repeats this, until n is one. For example, the sequence for n=3 is as follows:
3→10→5→16→8→4→2→1
Your task is to simulate t... | [
"ritikkumar262@gmail.com"
] | ritikkumar262@gmail.com |
6b39708268c0f5423035acb0b225fbf37f6460e9 | 38a82ba0eed9517ed6c5bc60af4f31c7016123ce | /BokePro/User/migrations/0002_auto_20180621_1044.py | 16938a33ead01945be9dc516794837d1ee75f602 | [] | no_license | laoitelu/XmanPro | 1e3555ec3e91b3c92a0205424136b9aee56fa855 | e17b83a055dcf01988bdf014f43a4046f423bd89 | refs/heads/master | 2020-05-23T23:25:22.815756 | 2019-07-24T06:24:29 | 2019-07-24T06:24:29 | 186,993,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('User', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"laotietie@gmail.com"
] | laotietie@gmail.com |
c24ef2ef5d9a0413bf474980fe6aa3176eb09f55 | 7da17557b79142f7e72e275c669f157e7cd35753 | /products/migrations/0008_auto_20201229_0922.py | 3e8413aa72f2c8d7aa92f94fd84e7cae4e50cef4 | [] | no_license | Code-Institute-Submissions/ci-ms4-bookstore | 8143b9dc4c8e9a52bea96fbf981f0daae54eee21 | c5978948c49d155349dedb5d0510e52dcf119782 | refs/heads/main | 2023-03-09T04:28:12.768946 | 2021-02-28T11:29:27 | 2021-02-28T11:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # Generated by Django 3.1.3 on 2020-12-29 08:22
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('products', '0007_auto_20... | [
"paxicon84@gmail.com"
] | paxicon84@gmail.com |
583ed1810de71f3f768f11829f441344ef667a02 | 5429f39ca838b6df14dc2f71459457cbc1fae306 | /create.py | ac08e3877188a0bb89eaf7c9c67fd850898b5bc5 | [] | no_license | karouu/RepoInitiazationAutomation | 54b56f19b09f8db2550346c9363e494a218eb521 | eb0a8f04900175074927cda2a802dbb8fca302c4 | refs/heads/master | 2020-06-08T10:14:02.354326 | 2019-09-03T18:53:45 | 2019-09-03T18:53:45 | 193,211,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import sys
import os
from github import Github
path = #"/yours/Projects/Directory"
username = "" #Insert your github username here
password = "" #Insert your github password here
def create():
folderName = str(sys.argv[1])
os.makedirs(path + str(sys.argv[1]))
user = Github(username, password).get_user... | [
"chenda721@gmail.com"
] | chenda721@gmail.com |
9b6fcc6efb4e5d2f3a46c869d5bdfcc0ea5276a9 | 099efd8bd924fbd8c0e97bbeb65dbaf993332f5d | /Jigsaw_Predict.py | 78a42d2e5274e5bd3c76ebffd0571c2ff05b2bd4 | [] | no_license | salokr/jigsaw | d823f533d4349a4e9191a88f36550f582bef39e7 | 4b7f45a3fe9e61610bedd9202d799d5092ee79ac | refs/heads/master | 2021-05-02T06:58:54.419994 | 2018-02-09T06:45:40 | 2018-02-09T06:45:40 | 120,867,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | import pandas as pd
import numpy as np
from keras.preprocessing.sequence import pad_sequences
labels=['toxic','severe_toxic','obscene','threat','insult','identity_hate']
def predict_save_df(test_file_address,model,df_name,tokenizer=None,maxlen=None):
test_df=pd.read_csv(test_file_address)
X_test=test_df['comment_te... | [
"noreply@github.com"
] | noreply@github.com |
d3e7ead2fc7b6d4160d4cad09aa4abd6a1e305e6 | 5b57f5aa89024986a8017ae1bc29e6be5da20d01 | /rtslib/root.py | 24fb756aa06f1d569efc833a0f8e86a15d5cc25c | [
"Apache-2.0"
] | permissive | prakashsurya/python-rtslib-fb | a0429d96dd80bfe6d3ce8148c00adb75c3f49ef2 | 05c878cd2724abb6b553961e9733309ca268c97b | refs/heads/master | 2020-05-22T18:33:30.742167 | 2018-02-19T21:04:09 | 2019-03-04T15:28:53 | 186,474,471 | 0 | 0 | Apache-2.0 | 2019-05-13T18:28:42 | 2019-05-13T18:28:41 | null | UTF-8 | Python | false | false | 10,307 | py | '''
Implements the RTSRoot class.
This file is part of RTSLib.
Copyright (c) 2011-2013 by Datera, Inc
Copyright (c) 2011-2014 by Red Hat, Inc.
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
h... | [
"eng@delphix.com"
] | eng@delphix.com |
d02905929158389d06f917dfcb000c3db8912408 | 71051439e59c20f35cf2cd7303d5ebdd98b4bd4c | /Draft2.py | dac7241feb971663170cd8f9f61d5f790320d93b | [] | no_license | ronggurmahendra/THT | d34618e05a4648a4710b0262668d1123705baee1 | feef5913987eab796b8fa3fcea4d2cc309d58a08 | refs/heads/master | 2020-12-04T11:27:28.639396 | 2020-01-04T15:32:37 | 2020-01-04T15:32:37 | 231,746,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | import cv2
import numpy as np
def nothing(x):
pass
'''
cv2.namedWindow("Tracking")
cv2.createTrackbar("LH", "Tracking", 0, 255, nothing)
cv2.createTrackbar("LS", "Tracking", 0, 255, nothing)
cv2.createTrackbar("LV", "Tracking", 0, 255, nothing)
cv2.createTrackbar("UH", "Tracking", 255, 255, nothing)
c... | [
"noreply@github.com"
] | noreply@github.com |
f9607c234e0ea4c040cda408ab7fcd3ed1be04f7 | 42dcbe38d5248a64bff7070927e1882e00cb62b5 | /example/08_glumpy/source/run_00_window.py | 3b356ebea950fc695600aa3fdf164f763b681f6e | [] | no_license | plops/cl-py-generator | 0bd6279e922d973ae3b9771436bb83cd6df452f4 | cc64c7d15b49f2650723489eb6bce70d361fad8f | refs/heads/master | 2023-08-31T22:29:31.550521 | 2023-08-31T19:30:09 | 2023-08-31T19:30:09 | 154,458,175 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | import matplotlib.pyplot as plt
plt.ion()
import numpy as np
from glumpy import app, gloo, gl
app.use("glfw")
window=app.Window()
vertex=""" attribute vec2 position;
void main (){
gl_Position=vec4(position, (0.0e+0f), (1.e+0f));
}"""
fragment=""" void main (){
... | [
"kielhorn.martin@gmail.com"
] | kielhorn.martin@gmail.com |
50777e863bef01afe866ba0a54731094c1599324 | 12816bcea9962af00c6d121e35563c129881e256 | /BodyTracking/kafkaProducer.py | 78c4328068116b7d25345c0116b07009e28850ed | [] | no_license | luissantanaa/ESProject | 2f98d59c602d5045554072d86cdf8774cc89d05a | 20844afce5d284865d5b211729159e115babfb13 | refs/heads/master | 2021-09-21T23:05:50.679672 | 2020-07-22T14:59:53 | 2020-07-22T14:59:53 | 248,569,166 | 0 | 2 | null | 2021-08-13T15:36:22 | 2020-03-19T17:50:59 | Java | UTF-8 | Python | false | false | 2,062 | py | import time
import json
from kafka import KafkaProducer
from kafka.errors import KafkaError
from datetime import datetime
def main():
#all 3 data files
files = ["data1.txt", "data2.txt", "data3.txt"]
print("What is you username? ")
username = input()
#connect to kafka server and transforms data ... | [
"alexandresantos1@ua.pt"
] | alexandresantos1@ua.pt |
91f418506e3f243d83d02ceb799a126427962ae1 | 7f962ac1f8561e2989c4ed297d1cd68fd758b36d | /ig/tests.py | f2b4bbf37342a8d7016a8defcd3a18eab41b0a38 | [
"MIT"
] | permissive | muhindokiro/Instaclone | 583eb318167cb45158c018013f499f89491325bc | 49e7d50ac73520ea84eeb20f70285faac2e7947a | refs/heads/master | 2022-06-12T20:26:28.716261 | 2019-07-31T14:31:49 | 2019-07-31T14:31:49 | 199,273,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | from django.test import TestCase
from .models import Editor,Post,tags
import datetime as dt
# Create your tests here.
class EditorTestClass(TestCase):
# Set up method
def setUp(self):
self.james= Editor(first_name = 'James', last_name ='Muriuki', email ='james@moringaschool.com')
# Testing insta... | [
"blaize1143@gmail.com"
] | blaize1143@gmail.com |
0c37883e98e84b4afb1ec0c737d8df3a2a60c6b4 | 8b3fe256812141286275f42237c746e02c28d04d | /firstDjangoProj/settings.py | f76690b5756dd216c89fc6c58a53e5ee630b1094 | [] | no_license | shuvo-sutradhar/firsrDjangoProj | 9415f1b95a2624ae082ea4653b5ec8661a3a0dec | d45235fb63713c7d0a6cc164963f427950e3fcf4 | refs/heads/master | 2021-02-08T09:29:34.326877 | 2020-03-01T11:26:07 | 2020-03-01T11:26:07 | 244,136,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,431 | py | """
Django settings for firstDjangoProj 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/
"""
impo... | [
"shuvossd1@gmail.com"
] | shuvossd1@gmail.com |
14516b5b08c681a0f1ce71bb4c696419562af9e5 | 198381b17ea710921a8fcbe6e86922aa2fe0adc1 | /scrap_sel.py | 2e030b74c04479dff446e7f66a11aa2254214d26 | [] | no_license | JorgeOsorio97/BiBaMexScrapper | 2e1e9dfa21831ee2a9f6015b5bda4f986d58a384 | dc878083e061d3232bf2480075a59d755c9efa19 | refs/heads/master | 2023-01-04T13:51:06.710942 | 2020-10-18T14:02:58 | 2020-10-18T14:02:58 | 305,114,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,682 | py | import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import pandas as pd
driver = webdriver.Chrome("/home/jorge-v... | [
"jorge.valdez.osorio@gmail.com"
] | jorge.valdez.osorio@gmail.com |
f819abe792a7c1a051fbb7777fc74be6c07721da | f0994c93c6b8207a574b63356d477a989a3330d7 | /web/tests/test_model.py | 203c19731943df794fe0aabf5134c62018811919 | [
"MIT"
] | permissive | Limpan/bytardag | 5e2de4ae06a438b532fbb1e9ddccbcdb6626effa | 4a38ae2789b52ccd4db4a4a9dfe21e47781c8b20 | refs/heads/main | 2021-07-01T11:38:57.408369 | 2019-03-13T19:58:17 | 2019-03-13T19:58:17 | 58,823,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | import pytest
from app.models import BankAccount, User
from sqlalchemy.sql import text
def test_password_setter():
u = User(password='supersecret')
assert u.password_hash is not None
def test_no_password_getter():
u = User(password='supersecret')
with pytest.raises(AttributeError):
u.passwor... | [
"linus@etnolit.se"
] | linus@etnolit.se |
e9613c950135aa319847d382bc34becb53bf5339 | 1d61636b68c2299b2f71f20262d34678eede2024 | /dict/database.py | 6bd516d46ad8f00e64a3a0f7434eedc835f17ef3 | [] | no_license | sky000/MyGCS | 99ebffa79ebee3bb603c40304e2e406057cafb62 | bfe39a0d665d358782b8666669b127f827588260 | refs/heads/master | 2020-05-07T15:02:20.864803 | 2012-04-05T06:05:11 | 2012-04-05T06:05:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | from django.shortcuts import render_to_response,get_object_or_404
from dict.models import *
def detail(request,database_id):
d = get_object_or_404(Database, pk=database_id)
i = get_object_or_404(Instance, pk=d.instance_id)
h = get_object_or_404(Host, pk=i.host_id)
navis = [];
navis.append({'href':'... | [
"sky000@gmail.com"
] | sky000@gmail.com |
8a680af866beec50be20ff3310ad76231893fede | 640c3cd1feae861530d61eb486a27be3ed808422 | /demo/modeling/detector/generalized_rcnn.py | 96ddbd6ba5b926f5dca0e06c96d37ab21f7e3652 | [] | no_license | Cuberick-Orion/maskrcnn-benchmark_ARCHIVED | ff773a823e1edf9cb90ea3dedd0eefe029d4edfa | 543dc9ce2879a853cb34ac8521b997d06308ae51 | refs/heads/master | 2020-05-15T15:25:43.664425 | 2019-05-16T12:50:56 | 2019-05-16T12:50:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,854 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
"""
Implements the Generalized R-CNN framework
"""
import torch
from torch import nn
from maskrcnn_benchmark.structures.image_list import to_image_list
from maskrcnn_benchmark.modeling.backbone import build_backbone
from maskrcnn_benchmark.model... | [
"zheyuan.liu@anu.edu.au"
] | zheyuan.liu@anu.edu.au |
373ab58fde34141dc9f59454bce5a1b4f130cce6 | db326011a46bdc55c64b0c35424df551ed030519 | /leetcode/Done/122_BestTimeStock2.py | 75a7627bed73df7c846fa36c63fd053c63435d41 | [] | no_license | humachine/AlgoLearning | ac9a6bd0fdf1293ca63d85732bfbbf864bd68220 | 2d06ab566c8adc6d864c5565310b56008d2d4b31 | refs/heads/master | 2020-12-12T07:19:02.518810 | 2017-04-29T07:15:04 | 2017-04-29T07:15:04 | 49,476,721 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | #https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/
"""Test cases:
Inp: [3, 7, 2, 3, 6]
Out: 8 (7-3 + 6-2)
"""
class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
if not prices or len(prices)==1:
... | [
"swarun@gmail.com"
] | swarun@gmail.com |
2022f96f260de8476e404b75baad9a86518fc821 | 31596558d227ca10911a776023aeef1a7eb0d2c9 | /Other groups/Truck’d/Princess Connect! ReDive [BD]/priconne_nced01.py | dad0bfad2deb5502fbc8b8255ccb561e9c29bbbc | [
"MIT"
] | permissive | Ichunjo/encode-scripts | 914a113093670f7d07e652ef50f6f04d09cc58b1 | 389a9f497e637eaade6f99acee816636856961d4 | refs/heads/master | 2022-05-03T00:48:54.543905 | 2022-03-17T17:43:02 | 2022-03-17T17:43:02 | 220,536,158 | 45 | 8 | null | 2019-11-08T21:25:59 | 2019-11-08T19:41:14 | Python | UTF-8 | Python | false | false | 5,637 | py | """Priconne script"""
__author__ = 'Vardë'
import sys
import os
import shlex
import subprocess
from functools import partial
from typing import NamedTuple
from pathlib import Path
from acsuite import eztrim
from cooldegrain import CoolDegrain
import debandshit as dbs
import vardefunc as vdf
import kagefunc as kgf
fr... | [
"ichunjo.le.terrible@gmail.com"
] | ichunjo.le.terrible@gmail.com |
135ccb49c34aa486409e6428052b893b0b4927b9 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/nltk/corpus/reader/xmldocs.py | b0e00c2ff7e6a7fc83f9b5868c21d1bc0d405702 | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,280 | py | # Natural Language Toolkit: XML Corpus Reader
#
# Copyright (C) 2001-2021 NLTK Project
# Author: Steven Bird <stevenbird1@gmail.com>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
"""
Corpus reader for corpora whose documents are xml files.
(note -- not named 'xml' to avoid conflicting... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
926c80f8c35f6ada515d47d5801b3bd6f88bba9a | 8dc39dc2c3aefc93bb63c666c59a34c833bbe20d | /monasca_common/kafka_lib/partitioner/__init__.py | 5b6ac2d4a66a5063cc81924c00b4caed6efe9532 | [
"Apache-2.0"
] | permissive | openstack/monasca-common | 1448c7beff899a9026e39b77a3219b82ab082f02 | cdc03f9ae5aeda0a8409e8d555efa488cfb25fa7 | refs/heads/master | 2023-08-30T05:28:25.682558 | 2023-08-12T20:42:54 | 2023-08-12T20:46:54 | 21,861,588 | 27 | 26 | Apache-2.0 | 2023-07-08T02:10:44 | 2014-07-15T13:54:25 | Java | UTF-8 | Python | false | false | 234 | py | from .roundrobin import RoundRobinPartitioner
from .hashed import HashedPartitioner, Murmur2Partitioner, LegacyPartitioner
__all__ = [
'RoundRobinPartitioner', 'HashedPartitioner', 'Murmur2Partitioner',
'LegacyPartitioner'
]
| [
"joe.keen@hp.com"
] | joe.keen@hp.com |
b6af1643c1da16d9b7e7ee8212e32a31281c69de | 997a65cffc140b9005ac88f29222e7e632ec518c | /visualize_actmap.py | 6d4249f0acf8fbd4592affeff027721e384c98ba | [
"Apache-2.0"
] | permissive | Maeve-D/reid_for_deepsort | 5e900be1f22b09e9079bb8a0f6a36bad3e2fae91 | f82e2280443829339de4d29c7bbede9d992c4f97 | refs/heads/master | 2022-07-10T01:47:54.645557 | 2020-05-19T06:03:42 | 2020-05-19T06:03:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,281 | py | import argparse
import os
import os.path as osp
import warnings
from collections import OrderedDict
from torchvision import transforms
import cv2
import numpy as np
import torch
import torchvision
from torch.nn import functional as F
from models import build_model
def load_checkpoint(fpath):
r"""Loads checkpoin... | [
"1115957667@qq.com"
] | 1115957667@qq.com |
648625485bd08395f2f97b719d859fc3a996ac25 | 6265f2a3f5eb53d8b42ef9f8840fff5f99f4385b | /bin/django-admin.py | 13758fcc6e2d0a6057eff39700ebfb960552c504 | [] | no_license | viniciuslopeslps/rosadeserto | 3712174e172958f5c6e1cf366a4b9de1e1bbf20f | baee2ef8877e54eb4f83ea4bd4fc4c46127ba7cc | refs/heads/master | 2021-01-18T13:37:06.261636 | 2015-09-19T12:28:57 | 2015-09-19T12:28:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | #!/home/vinicius/Desktop/venv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"viniciuslopeslps@gmail.com"
] | viniciuslopeslps@gmail.com |
0decd14c5eea6a3b94dc416b797428fb82c25fb8 | 6459988f85f39f2c650ebe92765c3512b2826439 | /src/preselectionstudy.py | 97c4ddadd84bfadecd81ffca84042ec83cdbcc18 | [] | no_license | sheldonptn/ThesisCode | 783055a385ba843c3ff1f6107462807df13bff5e | e8dd8da9fea4abefec58dfe5f3988f71d9642200 | refs/heads/master | 2021-01-21T05:54:44.303132 | 2013-08-31T00:33:09 | 2013-08-31T00:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("Demo")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(50000) )
process.source = cms.Source("PoolSource",
# replace 'myfile.root' with the source file you want to use
f... | [
"djp@cern.ch"
] | djp@cern.ch |
bcccb53694b38b42cf580dc8a1affe6c3f207603 | bf4c1793a20dcb5fac58ede1532212171fb5800c | /boss_service/version/v3/bossConfig.py | 91735a78cb0b40c29caa0888f5e636d1787e6c8d | [] | no_license | a2381165/bss-service | 392a52f02ecc383a240a08336141c9484705c028 | f5ab00f5a6abccdb53653eecc29c0f14b50da07d | refs/heads/master | 2020-04-13T23:17:03.336220 | 2018-12-29T10:33:50 | 2018-12-29T10:33:50 | 163,502,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,453 | py | # -*- coding: utf-8 -*-
from flask import Blueprint
version = "bossv3"
app = Blueprint('api', __name__)
# base
from controllers import AdminAuthorityApi
from controllers import UserLoginApi
from controllers import UserApi
from controllers import UserRoleApi
# from controllers import UserLogApi
from controllers impo... | [
"haijiesong@qq.com"
] | haijiesong@qq.com |
26dc6a62ac0ea02cf588316e6268cc846400f74b | ffb10a6af572ccc3ac69757f3a4df6a717c3958e | /lab2.exe12.py | 8e00c8ca53a12a57f767865979a95437481eee35 | [] | no_license | gokarna123/Gokarna | 8a1d7623f8c68e582fb460e32fb61b56ef3aa2fe | 43ab75c7cc2f85ed1dbe0cc31f2d55161a2dd9c4 | refs/heads/master | 2021-01-03T18:04:50.500032 | 2020-02-13T05:26:03 | 2020-02-13T05:26:03 | 240,182,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | x=5
a=x+3
print("The value of x:", a) | [
"you@example.com"
] | you@example.com |
22fa1c62f0118d9035ceb34d3c7c8aa00a0adc53 | 170ceca7c2213384f072372577fb98edc3e555bc | /useraccounts/models.py | 3f0fd3472b0ba0bfc545ada22649659c4358dcc2 | [] | no_license | coffeeincodeout/membership | a655cee0df1afc7193e3fb305a017d61ba4ca9ea | 9b790644f3419e513296e40ff76a96975cc1e520 | refs/heads/master | 2022-12-12T12:07:25.910622 | 2020-01-21T03:14:43 | 2020-01-21T03:14:43 | 234,834,968 | 1 | 0 | null | 2022-12-08T03:27:53 | 2020-01-19T03:32:45 | Python | UTF-8 | Python | false | false | 161 | py | from django.contrib.postgres.fields import JSONField
from django.db import models
# Create your models here.
class Members(models.Model):
data = JSONField() | [
"david@colossalpoint.com"
] | david@colossalpoint.com |
2b82f5fba1337f533dbb1f8833eb6b441fc8dc61 | ed1e81a2325d310de7961274a06bfe6cdb7993d0 | /Coursera-Example-Python/mouse_input1.py | d465233dd31ac893509ce67086f5cbc72245762c | [] | no_license | fahimkhan/python | ce573298adf30ca8426b74f3ab275ab7f8047a91 | 1733ad39cf214362c8a76f8996740715888d2101 | refs/heads/master | 2021-01-15T15:50:27.323739 | 2016-08-24T11:02:56 | 2016-08-24T11:02:56 | 20,254,607 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | # Examples of mouse input
import simplegui
import math
# intialize globals
WIDTH = 450
HEIGHT = 300
ball_pos = [WIDTH / 2, HEIGHT / 2]
BALL_RADIUS = 15
ball_color = "Red"
# helper function
def distance(p, q):
return math.sqrt( (p[0] - q[0]) ** 2 + (p[1] - q[1]) ** 2)
# define event handler for m... | [
"fahim.elex@gmail.com"
] | fahim.elex@gmail.com |
1bb7271217fb6f322b890d32a9751f1dd37b6bef | 8c8408703c7247b49653bb943346384764163e92 | /jan_7/app/__init__.py | fcf43f3f958c7cb5ae9b368b8d58a3c19c7aeac2 | [] | no_license | rowanv/blog_examples | da1cf7e0ab257b9c7b5c1aa8dd45a4e194ed330a | 44a06316f746c94ae0a579477710a6a832d2f7fc | refs/heads/master | 2021-01-10T04:22:38.688430 | 2016-02-11T09:08:15 | 2016-02-11T09:08:15 | 48,996,378 | 21 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from flask import Flask
from flask.ext.bower import Bower
from flask.ext.cache import Cache
app = Flask(__name__, static_url_path='/static')
# define the cache config keys,
app.config['CACHE_TYPE'] = 'simple'
# register the cache instance and binds it on to your app
app.cache = Cache(app)
from app import views | [
"rrvspam@gmail.com"
] | rrvspam@gmail.com |
15a0e397e7e470df33685cb0d881c8f9130757a2 | c7ac2674039d3869c77e64db4036992578c19279 | /imported_xlrd/tests/test_xldate.py | 5f7c14d2d463cb5268d3b6e026fb79678fa0160b | [
"BSD-3-Clause"
] | permissive | pfiumara/Progetto3TDP | df0c7cbc4568c1911ca9dd661200df3e14989294 | afe0c6067c1109f20bfa753265aff1fc6329b744 | refs/heads/master | 2021-08-27T23:30:37.399682 | 2017-12-10T19:21:49 | 2017-12-10T19:21:49 | 113,438,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | #!/usr/bin/env python
# Author: mozman <mozman@gmx.at>
# Purpose: test xldate.py
# Created: 04.12.2010
# Copyright (C) 2010, Manfred Moitzi
# License: BSD licence
import unittest
from imported_xlrd.xlrd import xldate
DATEMODE = 0 # 1900-based
class TestXLDate(unittest.TestCase):
def test_date_as_tuple(self):
... | [
"32679472+pfiumara@users.noreply.github.com"
] | 32679472+pfiumara@users.noreply.github.com |
d1f184b2b374d46d840344178e62fc14a30c8621 | 7f0dd9a5868f0033cd44a1d254e0251648ab7eb8 | /lab_zyd_pathSim/find_meta_path.py | f88f66e7c51ace95efbf7be6873dc0a806a7d257 | [] | no_license | EisRoot/zyd_pathSim | fc99c25f90b049417fd11d9e44dad49cc02602a9 | 1427c6b2158dc0cad5ef888427f4a0122d2abf2a | refs/heads/master | 2020-06-28T20:17:22.631471 | 2019-08-18T04:22:39 | 2019-08-18T04:22:39 | 200,331,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,635 | py | from build_graph import init_graph
import pandas as pd
from DGAS_FMPV2 import FMP_algo
import multiprocessing
import math
import datetime
import os
def read_node_file(path):
nodes = []
with open(path, "r",encoding='UTF-8-sig') as fp:
lines = fp.readlines()
for line in lines:
line = l... | [
"583860807@qq.com"
] | 583860807@qq.com |
fbf8a24c5d4d4f392218ab2998d4bdc5aeabd786 | 46818112a384b7623664c1591f0c060594e74bb5 | /final_ver3.py | 1789128bb89b59997bb91d64a672abd432cbf0e1 | [] | no_license | NaifengLiu/SparkSubmission | acdcc45eb37bc7d46102b8a680222d6949496d1c | c4bdf76ae2cbe4ccacae9894e0345b2397624ec5 | refs/heads/master | 2022-07-19T18:22:46.919596 | 2020-05-20T04:26:51 | 2020-05-20T04:26:51 | 255,046,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,639 | py | from pyspark import SparkContext
from pyspark.sql import SparkSession
from pyspark import SparkFiles
import sys
def find_id(house, street, street_dict):
import re
import bisect
street = street.upper()
house = re.sub("[^0-9]", "", house)
if house != "":
if street not in street_dict:
... | [
"naifengliu.us@gmail.com"
] | naifengliu.us@gmail.com |
d9b1bb102c23a95e7439b40884113ab0e2e964db | 4cb91aa52cc495c434535946b98b31a573589410 | /ui.py | efdfaf62bea7b834854f9392baf4164e6c1ad7bf | [] | no_license | vinczepa57/QuizProject | 9eb154fa7b195ae67b548dcdeab52408c5113e86 | 110d4a94f6d9557608e1e92bb1fba563cbd90f9b | refs/heads/master | 2023-04-30T08:26:12.289837 | 2021-05-21T15:02:01 | 2021-05-21T15:02:01 | 369,570,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | from tkinter import *
from quiz_brain import QuizBrain
THEME_COLOR = "#375362"
class QuizInterface:
def __init__(self, quiz_brain: QuizBrain):
self.quiz = quiz_brain
self.window = Tk()
self.window.title("Quizzler")
self.window.config(padx=20, pady=20, bg=THEME_COLOR)
sel... | [
"vinczepa67912@th-nuernberg.de"
] | vinczepa67912@th-nuernberg.de |
d6584a40ee6dfbae3346fbf4b6be6f4381bdd0c4 | f8ac857c9a03095d8c0a42f2a30087c7afe95196 | /train.py | ad00d9ad089400c9613761e6ac61f18cfd2005bf | [] | no_license | lpadukana/drlnd_p3_tennis | 5de698b0306d92be8dfb1c3912cb15641e2a0957 | e5c996136f282257b1a6331269d3203b389bd8af | refs/heads/master | 2020-04-08T02:16:51.008404 | 2018-11-24T14:24:43 | 2018-11-24T14:24:43 | 158,929,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,526 | py | from collections import deque
import torch
from ddpg_agent import Agent
from unityagents import UnityEnvironment
import numpy as np
from contextlib import closing, contextmanager
import matplotlib.pyplot as plt
@contextmanager
def muted_logs(log_name):
import logging
logger = logging.getLogger(log_name)
o... | [
"latheeshp@gmail.com"
] | latheeshp@gmail.com |
d6129b4b35fd43742bcdbe7f19a651ae53655464 | 6e803e53594b479c65174d081e8d4f00c9b9d0a8 | /echo_client.py | 09e992d555b779b58c812bcc45d94b71f61573ab | [] | no_license | voite1/python_server | fe294ba0286da886fbbc62ab227be2512bd0d79c | b0ef6c3249a824c330da4d6f16c9707cc7853804 | refs/heads/master | 2020-05-18T21:35:34.452417 | 2015-01-28T23:14:30 | 2015-01-28T23:14:30 | 29,949,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | import socket
import sys
def client(msg, log_buffer=sys.stderr):
server_address = ('localhost', 10000)
# TODO: Replace the following line with your code which will instantiate
# a TCP socket with IPv4 Addressing, call the socket you make 'sock'
sock = socket.socket(socket.AF_INET, socket.SOCK_ST... | [
"voitel@gmail.com"
] | voitel@gmail.com |
7baaf7a98f9dd55046043b389df190b7c96d3b93 | d5fac012124c783d196f4d0e387740643ea4aae3 | /lab/plot.py | 86af8ac2d1cf9e3157ed2f0114aead3350758206 | [
"MIT"
] | permissive | kazumov/na-zero-vs-mean | 4e309118b4180df52dbb5bf4c842362af576fd95 | a80e168b3f83dfccc6c294e16c52f4a582a0f345 | refs/heads/master | 2020-08-27T17:22:02.117557 | 2019-10-25T16:53:38 | 2019-10-25T16:53:38 | 217,443,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,563 | py | """The plot class"""
__author__ = "Ruben R. Kazumov"
__copyright__ = "Copyright 2019, Ruben R. Kazumov"
__credits__ = ["Ruben R. Kazumov"]
__license__ = "MIT"
__version__ = [3, 0, 0]
__maintainer__ = "Ruben R. Kazumov"
__email__ = "kazumov@gmail.com"
__status__ = "Production"
import os, sys
from uuid import uuid4
f... | [
"k@r.attlocal.net"
] | k@r.attlocal.net |
e6cc5c16152309d1d35ea6968ab5ad78ff93572b | dfb53581b4e6dbdc8e3789ea2678de1e1c4b5962 | /AI/DataAnalysis/Day04/demo08_sma.py | 4b8e4210a713cc7154bd036950c54937ff630d5c | [] | no_license | biabulinxi/Python-ML-DL | 7eff6d6898d72f00575045c5aa2acac45b4b0b82 | 217d594a3c0cba1e52550f74d100cc5023fb415b | refs/heads/master | 2020-06-01T09:13:17.314121 | 2019-06-08T03:59:36 | 2019-06-08T03:59:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,491 | py | # -*- coding: utf-8 -*-
# @Project:AID1810
# @Author:biabu
# @Date:2019/3/18 15:30
# @File_name:demo08_sma.py
# @IDE:PyCharm
"""
移动平均线
"""
import numpy as np
import matplotlib.pyplot as plt
import datetime as dt
import matplotlib.dates as md
# 处理日期格式
def dmy2ymd(dmy):
dmy = str(dmy, encoding='utf-8')
# 转换格式... | [
"biabu1208@163.com"
] | biabu1208@163.com |
0a7bb23340642e74887e7fbc396203b06a25cec4 | 88d9ae530766b1e5c916aa0533bbf02e5c6f5c72 | /overrideMethod.py | 97fdb8eb065c6c9a31b096b1e9124621dc1802fe | [] | no_license | jonathanbasuki/Python-Object-Oriented | 8962edb05781f89208dda434bfa8a021e0bb05ac | 304d42df8f8760f84f7fbb41705593ff1616a9d9 | refs/heads/master | 2022-12-03T00:05:20.120244 | 2020-08-22T06:09:08 | 2020-08-22T06:09:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | class Hero:
def __init__(self, name, health):
self.name = name
self.health = health
def info(self):
print("{} \n\tType : Hero \n\tHealth : {}".format(self.name, self.health))
# subclass
class Mage(Hero):
def __init__(self, name):
super().__init__(name, 100)
# subclass
class Tank(Hero):
d... | [
"noreply@github.com"
] | noreply@github.com |
c0bce431720191c8deb12083156d2057dd2f92bd | de27692fcf2ff86b024ebee7784a96a8b1329e4d | /ex041.py | 2df7258146b83cbf6c6b47184fb50def1710c9da | [] | no_license | YaraDeOliveira/CursoemVideo | d2675c5e22840330f1cd581368e6855103b6c7ea | f065c768231deaa996498d21af6b97fd1201abc4 | refs/heads/main | 2023-04-23T07:56:11.700722 | 2021-05-12T14:16:36 | 2021-05-12T14:16:36 | 348,168,481 | 0 | 0 | null | 2021-03-26T18:35:31 | 2021-03-16T00:57:48 | Python | UTF-8 | Python | false | false | 462 | py | from datetime import date
ano = int(input('Digite o ano do seu nascimento: '))
idade = date.today().year - ano
print(f'O atleta tem {idade} anos')
if idade <= 9:
print('\033[1;34mCLASSIFICACAO: MIRIM')
elif 9 < idade <= 14:
print('\033[1;34mCLASSIFICACAO: INFANTIL')
elif 14 < idade <= 19:
print('\033[1;34mC... | [
"79177224+YaraDeOliveira@users.noreply.github.com"
] | 79177224+YaraDeOliveira@users.noreply.github.com |
34ec16d1624c47e10c7ebfdebdfd30f821d3ad3b | ce797d225651f2a8a501b4965569448509872550 | /myscript.py | cf7bfc9c7d985e0d9419853a94c3587406b39c65 | [] | no_license | yota9/keras_neural | 63145a61e2c78ee506267604a0caedb5c81c7bda | 64299b800b36cd6040ea301ee3bc4ecc04796988 | refs/heads/master | 2020-03-20T18:06:50.989463 | 2018-06-16T10:09:15 | 2018-06-16T10:09:15 | 137,571,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,740 | py | from tensorflow.python.keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers import Dense, Flatten
from keras.layers import Dropout
from keras.layers.convolutional import Conv2D, MaxPooling2D
from keras.layers.normalization import BatchNormalization
# paths
photo_di... | [
"och95@yandex.ru"
] | och95@yandex.ru |
ee3d5e6b9b5a0ae1fea52db6f5265698ee9d216e | 24d8132ccd315936a4f015f8b5303471137aaf51 | /webproj/webapp/views.py | f1ee4d9c3ad6cf54de68908e3df12a051ce66cf5 | [] | no_license | benj99/root | 60240b742103b0372b40e13ed7d4234c45bdc7d0 | 191077c5f45451ce00bd85b259989f1668c88e7e | refs/heads/master | 2022-12-14T05:03:18.722732 | 2020-09-14T17:16:50 | 2020-09-14T17:16:50 | 295,486,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from django.shortcuts import render
# Create your views here.
def homepage(request):
return render(request,'webapp/homepage.html')
def pictures(request):
return render(request,'webapp/pictures.html')
def pic1(request):
return render(request,'webapp/pic1.html')
def pic2(request):
return render(reques... | [
"benjaminsiegel@Jordans-iMac-2.fios-router.home"
] | benjaminsiegel@Jordans-iMac-2.fios-router.home |
328ec21902569279449032138565a5c3f6c1275a | 544659d003e69b9555e7a746b6d185b0e20c2436 | /test.py | 50675d2f9cab978ca55aa1b297fc60b549e8d207 | [] | no_license | vivek2612/mooc | 43a167b1cbf03a0a59c98a7408a7a3f50681c817 | 8fdb9fd9391ae649aec229645b637787c6bb3406 | refs/heads/master | 2016-09-11T02:28:07.838033 | 2015-03-02T18:49:34 | 2015-03-02T18:49:34 | 23,511,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from mylib import *
import os
import sys
import matplotlib.pyplot as plt
import numpy as np
fname = sys.argv[1]
lines = readFile(fname)
outfile = open(fname+'-simplified','w')
for line in lines:
arr = getArray(line)
req = getCompleteRequest(arr)
ref = getHttpReferer(arr);
statusCode = getStatusCode(arr);
outf... | [
"vivekagrawal2612@gmail.com"
] | vivekagrawal2612@gmail.com |
0762afa3b3aa0f0bfd0316ace6a7c526442e841b | 7c93f47718862efdbaceabfd630a45cb0f53d07b | /texio/Test/dummy_response.py | 20ec51e1402eaa03c76f6ebd149bd83694ad2afe | [] | no_license | tdrk1980/power_control | a39f9e61037e08c4289a370d86942fac91415dc4 | d1d4673f2d271e8d5e89cbf6f10c0692a5cd2d38 | refs/heads/master | 2020-04-17T13:15:44.632242 | 2019-01-21T02:57:40 | 2019-01-21T02:57:40 | 166,607,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | import serial
import time
print("to stop this script, please use Ctrl + Break ! (not Ctrl + C !)")
print("dummy_response-start")
current_voltage = 12.0
with serial.Serial(port="COM27", baudrate=9600, bytesize=serial.SEVENBITS, parity=serial.PARITY_EVEN, stopbits=serial.STOPBITS_ONE) as ser:
while(1):
r... | [
"Todoroki.Yoshio@ap.MitsubishiElectric.co.jp"
] | Todoroki.Yoshio@ap.MitsubishiElectric.co.jp |
d71f634691d0ebccf187fdda66721d94d8bff7e3 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2022_06_01/aio/operations/_data_collection_rules_operations.py | 3e861dea15bc45ab77ee311896f74969698adb82 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 30,076 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | noreply@github.com |
769c5f76132c9861d61c86f1350d8746d3a04d61 | c81d7dfef424b088bf2509a1baf406a80384ea5a | /venv/Lib/site-packages/biom/cli/table_ids.py | cf610d54c6ed4c0a8e1f8ac78a55e06f85d14506 | [] | no_license | Goutham2591/OMK_PART2 | 111210d78fc4845481ed55c852b8f2f938918f4a | cb54fb21ebf472bffc6ee4f634bf1e68303e113d | refs/heads/master | 2022-12-10T01:43:08.213010 | 2018-04-05T02:09:41 | 2018-04-05T02:09:41 | 124,828,094 | 0 | 1 | null | 2022-12-07T23:43:03 | 2018-03-12T03:20:14 | Python | UTF-8 | Python | false | false | 1,204 | py | # -----------------------------------------------------------------------------
# Copyright (c) 2011-2017, The BIOM Format Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# -----------------------------... | [
"amatar@unomaha.edu"
] | amatar@unomaha.edu |
b5aae277c4a03a0eea9005d32181dca1acb53fbc | e57cb1724ba0e7ffeefdfbe5ddea0e149d8b791c | /2020/CJ2020/Reverse/Pawon/solver.py | 24396621b13b350ac60bcb597d00c00f90e8fa53 | [] | no_license | insomn14/CTFindo | bcebf79d8d2047ef6afed8e16685110f3b6d57de | 1068dd73b26d6da83f2efcaec80fbee142869a14 | refs/heads/master | 2023-02-25T12:31:04.039741 | 2021-01-31T18:46:58 | 2021-01-31T18:46:58 | 299,901,525 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | from z3 import *
inp = [BitVec(f'v{i}', 8) for i in range(26)]
s = Solver()
s.add ( inp[5] == ord('-'), inp[11] == ord('-'), inp[18] == ord('-') )
s.add ( inp[0] == inp[10] )
s.add ( inp[1] == ord('e') )
s.add ( inp[3] == ord('P') )
s.add ( inp[25] == ord('Y'))
s.add ( inp[2] == ord('m') )
s.add ( inp[4] == inp[1] )
... | [
"barirehatta@gmail.com"
] | barirehatta@gmail.com |
28f7c4eccd6fde5260db5e231f76bb8d2319d2e5 | ee3b80bfdd08b047446cf3d7a5ff52d92fdbbeee | /blog/utils.py | 3793f81b023ead3427e08ea47e7f4aa3afdc92e7 | [] | no_license | nerser/Blog | 7b8a61989d79f1e0013074ef79765fa6ea6ad16f | 6d9b9f1c8774a769451395def5967aba6ee1cdcf | refs/heads/main | 2023-01-18T15:41:56.913739 | 2020-12-06T17:21:02 | 2020-12-06T17:21:02 | 317,652,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,140 | py | from django.shortcuts import render, redirect
from django.shortcuts import get_object_or_404
from django.urls import reverse
from typing import Callable
class ObjectDetailMixin:
model: Callable = None
template: str = None
def get(self, request, slug):
obj = get_object_or_404(self.model, slug__ie... | [
"shkiroillya@gmail.com"
] | shkiroillya@gmail.com |
86828bb749f4281d10339cb98b252c38e77420f7 | ee71d6baed9dfd99e454aa49733990c8ca43ef63 | /dummy/tasks.py | dda342c8800cecee6dfdb43914d2435f853af8a6 | [] | no_license | Cybernisk/django-robust | d72a1097ee3c3e62352d48d3a29eb40a306f02ea | 595f3a7cd8a2fb0fd48a787660589bfd6c584e47 | refs/heads/master | 2020-12-11T16:35:39.331505 | 2018-09-16T15:34:36 | 2018-09-16T15:34:36 | 233,899,107 | 0 | 0 | null | 2020-01-14T17:39:20 | 2020-01-14T17:39:20 | null | UTF-8 | Python | false | false | 124 | py | from robust import task
def spam():
raise RuntimeError('fail')
def bar():
spam()
@task()
def foo():
bar()
| [
"barbuzaster@gmail.com"
] | barbuzaster@gmail.com |
4414ca2806ad21e67ce2c29f2b62027df8aac973 | 2abf95e965c49124de12db63080b636cf3538ca3 | /other/makeData.py | b4cd99f7e9bbea5254773aaebcc1f3b69ef5e591 | [] | no_license | reo11/TMUProjectExpB1 | 5611e194d5fdad969264fd128600f2279c0c970d | 590a02f811af3939c46db467fdb91ba05a3940af | refs/heads/master | 2020-03-30T21:07:45.484053 | 2019-02-08T06:01:21 | 2019-02-08T06:01:21 | 151,617,334 | 0 | 0 | null | 2018-10-06T02:12:11 | 2018-10-04T18:23:37 | Matlab | UTF-8 | Python | false | false | 629 | py | from pathlib import Path
trainPath = '../textFile/train.txt'
testPath = '../textFile/test.txt'
DBPath = '../dataset/DB/jpeg/'
QueryPath = '../dataset/Query/jpeg/'
f = open(trainPath,'w')
p = Path(DBPath)
p = sorted(p.glob("*.jpg"))
count = 0
for filename in p:
f.write(str(filename.name) + ' ' + str(count/10) + '\... | [
"reohirao116@gmail.com"
] | reohirao116@gmail.com |
891420b8a67493a494fd308b12e879ca1fa309b0 | 3b5b2e5b66167e21cf285d390ed423d8e1f8acd9 | /viewHR/seeder.py | 0d17c1ff1c62d2640d19c2c8efd6ed3d97308525 | [
"MIT"
] | permissive | fpolica91/python_utility | 9918b348e16ce22b6e4ec5a9d42067b0df9b1759 | e2161d1cbb55a5d1534fdf4cd7313d602303257d | refs/heads/main | 2023-05-12T09:17:58.711277 | 2021-06-05T01:18:45 | 2021-06-05T01:18:45 | 373,994,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | import firebase_admin
import json
from firebase_admin import credentials
from firebase_admin import firestore
cred = credentials.Certificate("./service-account.json")
app = firebase_admin.initialize_app(cred)
db = firestore.client()
# collection = db.collection(u'companies')
# documents = list(collection.get())
# pri... | [
"fabriciopolicarpo0@gmail.com"
] | fabriciopolicarpo0@gmail.com |
028a7ef7c2d12a813d9de43f895f5b4cfcf0feac | ee4099e6d4167bc6fde35757954683f6df55744e | /venv/bin/jupyter-notebook | 01c0aaca2fb688d1e3514432a4454b05b98fe825 | [
"Apache-2.0"
] | permissive | LaplaceKorea/qc_portfolio_optimization | e4e416b07c23d9b54699b89ee7222a1a359eb857 | 30f0e27689ad6bf37fb87880c2813a5b9858608d | refs/heads/master | 2023-07-13T19:26:11.726818 | 2020-12-15T18:59:33 | 2020-12-15T18:59:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | #!/home/oscar/Documents/qc_portfolio_optimization/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from notebook.notebookapp import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"javierhernandezmelgar@gmail.com"
] | javierhernandezmelgar@gmail.com | |
cff2f6c75c4e5307657846e88fe40b4abc9704c8 | 8e5d05dbdd4750f1aaeda2dc23e2f975eeccb40f | /manage.py | f24e9a44ae003135ef0540d73686af6ba5faf034 | [] | no_license | Springer114/Dossier | 6f30c0fd2099db1edbd9a7ffa60530e5ea36c6a7 | 3f46a1a4691698a405a22ddc9f1251f50db0d6c4 | refs/heads/master | 2023-04-21T13:30:03.095309 | 2021-04-23T20:55:28 | 2021-04-23T20:55:28 | 334,011,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Dossier.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Import... | [
"springerzack04@yahoo.com"
] | springerzack04@yahoo.com |
8e0132b657b38bddc674e8addc063f8086e6e278 | 29c535eab26cec3981e929a02bb26620b8f144f0 | /EBSCO-Deletions.py | 94b6ad662dfe47630f45371f4877de4e4ca8478c | [] | no_license | marriott-library/UALC-Statistics-and-EBSCO-Deletions | 9d0c9d256d02ee930dc53ae4ef0c2e9f37dc6c36 | 2efc318edbd9e20130897686f200b106ed6598f4 | refs/heads/master | 2021-01-10T07:18:46.179681 | 2016-02-06T01:10:19 | 2016-02-06T01:10:19 | 51,183,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | # EBSCO Deletions Helper
#
# Expects to be run in the same directory as a file called [REMOVALS].txt which contains one removal ID per line.
# Expects that a folder called [CSVs] is also in the same directory, and that [CSVs] contains CSV reports from ALMA.
# Output can be copied from the terminal or piped to a file. E... | [
"dave.heyborne@gmail.com"
] | dave.heyborne@gmail.com |
acc054cb7ad73e3d28f7837d2a8e1a48ab4a31a3 | 26afe291d193e96356def48b384a55ca28d08b91 | /cart/CART.py | 115faf80d2e84b639b26a96cb4055245701f9835 | [] | no_license | SeanLee97/machine_learning_demo | 2fe5bb65c37c0612d50e969483598cda1a9fa1b4 | d65b3beae887cf0349364602adeb8d89c949f528 | refs/heads/master | 2021-05-13T17:42:21.108490 | 2018-01-09T15:19:54 | 2018-01-09T15:19:54 | 116,831,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,481 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
# 加载数据集
def load_dataset(filename):
data_mat = []
with open(filename, 'r') as f:
for line in f.readlines():
float_line = map(float, line.strip().split('\t'))
data_mat.append(float_line)
return data_mat
# 二元切分数据集合
# 需要了解numpy.nonzero()
def b... | [
"mitree@sina.com"
] | mitree@sina.com |
b549d2747f26879f282ecf9a057e72ce1d180c35 | 91f5d2bc216cb6bffa4196af2392806c3a6bab97 | /xml2mql/xml2mql.py | 64abde6fceb330c34899a0607df83efb0ba3b549 | [
"MIT"
] | permissive | emdros/python-xml2emdrosmql | 2e0407221451071136ab406e9a66a86e852b9f4f | a6c52c030c07e5df6547d58bea5b5110c4429db4 | refs/heads/master | 2020-03-16T03:08:55.702040 | 2018-05-08T07:59:42 | 2018-05-08T07:59:42 | 132,481,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,974 | py | # -*- coding: utf-8 -*-
#
# XML to Emdros MQL data importer.
#
#
# Copyright (C) 2018 Sandborg-Petersen Holding ApS, Denmark
#
# Made available under the MIT License.
#
# See the file LICENSE in the root of the sources for the full license
# text.
#
#
import sys
import os
import re
import json
import xml.sax
from . i... | [
"ulrikp@scripturesys.com"
] | ulrikp@scripturesys.com |
2672fa0945aa8aa4a549743c4da3e539795498f2 | e1079d5e630a97d15ddf4d2d5f1c63afc8e05752 | /Recursion In Python/3. Recursion With Numbers/1. The Power Of A Number.py | 1c7b05f1515831c620d760689415fcf7971355e2 | [] | no_license | Nilutpal-Gogoi/DataStructures-Algorithms | 9235447968c5b40a1435b3bd37ee405f13326db5 | d832556d3bf389d8269b91c1e06f52541a9eaa74 | refs/heads/master | 2023-02-11T23:58:35.309673 | 2021-01-04T07:09:10 | 2021-01-04T07:09:10 | 305,415,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # The power(or exponent) "a", of a number x represents the number of times x will
# be multiplied by itself. It is written as a small, superscript number to the
# right of and above the base number.
def power(base, exponent):
if exponent == 0:
return 1
else:
return base*power(base, exponent-1)... | [
"nilutpal.ee@gmail.com"
] | nilutpal.ee@gmail.com |
328b4ac74798fb57b8638c628f6d9d1a046c292f | 92ced3e16bb0aea62dec75b980f3737047152862 | /parallel_identify_from_rtmp_0602.py | 825f7ab7295cbb4f7757cfdb00d259efed74175b | [] | no_license | ZhuChaozheng/face_recognition_from_rtmp | 62d213072fda4a566348c7a8ada9d68ff2b7c3b5 | 45fdd055778031fca0f2925b24359e5e5fed3461 | refs/heads/master | 2021-07-06T16:39:58.231494 | 2020-09-30T00:56:01 | 2020-09-30T00:56:01 | 189,748,595 | 6 | 7 | null | 2020-09-30T00:56:03 | 2019-06-01T15:29:03 | Python | UTF-8 | Python | false | false | 6,770 | py | import face_recognition
import cv2
import PIL.Image
import numpy as np
import multiprocessing
import click
import sys
import itertools
# This is a demo of running face recognition on live video from your webcam. It's a little more complicated than the
# other example, but it includes some basic performance tweaks to m... | [
"370045744@qq.com"
] | 370045744@qq.com |
19cf63501b56bcd1efa89c4fc434d3fc9c199d19 | de97a93cd8cc17c29114df31566f846d9151bb6e | /suckcontrol/daemon.py | 0713d488e78221dc8a6efc4724c8c9edab9f4961 | [
"MIT"
] | permissive | peacepenguin/SuckControl | add6717ef3f433481c109a014a82d204193035e3 | ff5de37a467ba5d549587ffea16bd0e778ce2336 | refs/heads/main | 2023-08-17T01:57:18.104044 | 2021-10-03T15:57:31 | 2021-10-03T15:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | import logging
from time import sleep
from numpy import interp
from threading import Thread
logger = logging.getLogger('suckcontrol.daemon')
def _control_speed(config, temp, controls, points):
sensors_all = config.sensors_all
try:
sensor_temp = sensors_all[temp]
except KeyError:
# In case... | [
"mrt690@gmail.com"
] | mrt690@gmail.com |
fccb6587bdf7dcb5371e847e6f92308dc40f5e51 | 68d595578c82f186d599a6071a2ee8f3b0afbfef | /demo.py | ab6a3a7563807cda96076af2a7cc1addc2c3c355 | [
"MIT"
] | permissive | hikabarki/pytorch-template-1 | a21f39ec6208b257dfaf70d4c5714a3900a47d3f | d404a50abdeea892c068ba90a3e93759e6f7c4ab | refs/heads/master | 2022-12-19T18:00:45.972884 | 2020-10-02T17:11:40 | 2020-10-02T17:11:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py | """
Author: Smeet Shah
Description: Python script to run a demo of the trained model on data samples.
- Loads the trained model weights
- Iterates over all data samples in demo directory
- Preprocesses each data sample and runs the model
- Decodes the model outputs and gives predictions
"""
import os
import random
... | [
"smeetrs@gmail.com"
] | smeetrs@gmail.com |
3b295c0ac867201dff2bf9b12be03c32e17cbb69 | db4f810b2bcadf1d5e88f856516954789f199bde | /c_network.py | 0a1483289da3c9c03f78fe937369f8160ceb4432 | [] | no_license | peryion/competitive-network | f23b4430245f93f5fabb0c9f6cab0258e5bd3897 | 62566194b90323e106a42520e0cd7e7ac2a680a9 | refs/heads/master | 2021-08-29T18:22:34.170004 | 2017-12-14T15:46:14 | 2017-12-14T15:46:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | import numpy as np
def sigmoid(x,derivative=False):#激活函数
return 1/(1+np.exp(-x))
def normalization(M):
"""
对行向量进行归一化
:param M:行向量:【dim=len(M)】
:return: 归一化后的行向量M
"""
M=M/np.sqrt(np.dot(M,M.T))
return M
def normalization_all(N):
"""
对矩阵进行归一化
:param N: 矩阵:【m,n】
:return: ... | [
"noreply@github.com"
] | noreply@github.com |
e6b35d6bc6ecc755d0bd88ac078e1dadddb471ca | 49e193cc108e4a7b7e92ecf69c77b15234912871 | /src/cli/parser.py | 09a56efb59c7eed09f856864b85e3389b478e0cf | [] | no_license | AlphaTechnolog/thmctrl | 80bd2c41b6b5680990f984d09618b68e9d76c8ad | 4adfaf5d216f63d2373231efbd6ec60807f0888f | refs/heads/main | 2023-04-12T17:47:43.284770 | 2021-05-08T11:39:13 | 2021-05-08T11:39:13 | 355,208,435 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,792 | py | import argparse
from defs import __version__
from resources.resources import config_path
parser = argparse.ArgumentParser(
prog='thmctrl',
description='Manage my dotfiles config - AlphaTechnology',
epilog=f'Config file path: "{config_path}"'
)
parser.add_argument(
'-V', '--version',
action='vers... | [
"gfranklings@gmail.com"
] | gfranklings@gmail.com |
6752c4fc336f3a62fdb122671ae58087ba7710b5 | 64860c19c4d51ed9669ddae4bb3c365848a8e712 | /ipython_config.py | 86662bfc4b3200a8212de396ac8f64ef030eee98 | [
"BSD-3-Clause"
] | permissive | NSLS-II-SIX/profile_collection | af3ef9def112ee3b1166f21b9fc2f271ce07a6fe | 7cbd3ad2e1675aa14099be0aab00a6516ce7981d | refs/heads/master | 2022-05-04T04:36:18.615076 | 2022-04-15T15:50:02 | 2022-04-15T15:50:02 | 75,974,438 | 0 | 3 | BSD-3-Clause | 2023-08-29T20:07:36 | 2016-12-08T20:55:34 | Python | UTF-8 | Python | false | false | 54 | py | c.InteractiveShellApp.extensions = ['pyOlog.cli.ipy']
| [
"xf02id1@xf02id1-ws2.cs.nsls2.local"
] | xf02id1@xf02id1-ws2.cs.nsls2.local |
5da4a51c12216e107243aedc5cf5d81eeefedac1 | b09e71b77dd41d5db266733d1eedb845cb56d5c2 | /models/ts_hred/src/reranking/baselines/Common/pstfast.py | daa3c6e9ac97b00034390c19eb02eff6562e6882 | [] | no_license | lingxiao/neural-chatbot | 1bcaaea5ede06d0cdc7232f3905b2c813f97f36d | 70dc9366c9d419c26cfb51086187026503820267 | refs/heads/master | 2021-01-20T07:51:26.398642 | 2017-12-26T07:05:11 | 2017-12-26T07:05:11 | 90,052,227 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,954 | py | import cPickle
import numpy as np
import os
import sys
import argparse
import collections
import operator
from collections import OrderedDict
import logging
import math
logger = logging.getLogger(__name__)
logger.setLevel(level=logging.INFO)
def kl_divergence(a, b, smoothing):
norm_a = sum(a.values())
norm_b... | [
"lingxiao@seas.upenn.edu"
] | lingxiao@seas.upenn.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.