blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
202dbc968ef28ea1d20e905728187462e2dadfd8 | a4025bc9e38dfaa86aaae1aa62bcc378cb6af4fc | /api_server/dataset/migrations/0001_initial.py | 2e33ebbd63ceb79edba5ae131d9b51caf67a3466 | [] | no_license | Nishant23/be-hiring-challenge | cae1c8744ca92d04293f2fe5b0d3d92d1d15535d | ddd19ba5a8b0fd43694d23e99d8e6c2a90734f14 | refs/heads/master | 2020-12-10T10:39:34.662073 | 2020-01-14T10:42:08 | 2020-01-14T10:42:08 | 233,569,972 | 0 | 0 | null | 2020-01-13T10:30:31 | 2020-01-13T10:30:30 | null | UTF-8 | Python | false | false | 569 | py | # Generated by Django 2.2.5 on 2020-01-13 12:20
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Dataset',
fields=[
('id', models.AutoField(... | [
"nishant.suman@noodle.ai"
] | nishant.suman@noodle.ai |
52fdd7fc858104b5e5df2e99b048f1ed28c76a75 | 57ca0b702798ad4943299624621a467284d03d38 | /pyreadline/py3k_compat.py | 999f68b568700000b366049df4a8e918b8fd588f | [] | no_license | turky/pyreadline | 4f1a65b9ee6ff16e7e207fae9ab026a14df2662e | 6db93d93590d79d2d5f7117e41fb0197b2b5027e | refs/heads/master | 2022-01-13T01:42:59.596905 | 2021-12-28T06:34:08 | 2021-12-28T06:34:08 | 173,076,909 | 1 | 0 | null | 2019-02-28T08:56:57 | 2019-02-28T08:56:56 | null | UTF-8 | Python | false | false | 715 | py | from __future__ import print_function, unicode_literals, absolute_import
import sys
if sys.version_info[0] >= 3:
if sys.version_info[1] < 2:
import collections
PY3 = True
def callable(x):
return isinstance(x, collections.Callable)
def execfile(fname, glob, loc=None)... | [
"akihiro.takizawa@gmail.com"
] | akihiro.takizawa@gmail.com |
9dd7f7a3e5021a18db66b29b4317d249552753ba | 97b431c4557746baeca6b43a7bcd541fb21dbfc4 | /src/K最近邻算法_KNN回归/KNNRegression.py | 38c25cfcb621fe77531d9fa919143fafc3d923d4 | [] | no_license | ixuyang/Python- | 4a22998922f624c472a9d3a8f186531d2a2b8b80 | ce018b20efcff53b04a8132135f937227d272f26 | refs/heads/master | 2020-04-08T20:04:42.453808 | 2018-12-29T09:43:42 | 2018-12-29T09:43:42 | 159,683,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,351 | py | '''
Created on 2018年12月3日
@author: gy
'''
import numpy as np
import pandas as pd
from Tools.scripts.dutree import display
data = pd.read_csv(r"iris.csv")
# 删除不需要的Id与Species列(特征),因为现在进行回归预测,通过花的前三个属性,预测第四个,类别信息就没有用处了。
data.drop(["Id","Species"],axis=1,inplace=True)
print(data)
#删除重复的记录
data.drop_duplicat... | [
"ixuyang@foxmail.com"
] | ixuyang@foxmail.com |
ec268e7ba61c9681943d1bb3c906b441b4ed6595 | 0d4f0a71a640be6bc105792c32df22ee09c3a54c | /day13_requests.py | 9c5eecc58432e5ad8e6a697f0400ab592e16525b | [] | no_license | aibingbing/study-python-basic | 2f5caa07ae77b19252d7aac113bd8716aab13362 | 0a6bf533fd59f7151a7a5560436007b4844a270a | refs/heads/master | 2021-01-19T11:05:42.051536 | 2017-05-20T00:55:57 | 2017-05-20T00:55:57 | 87,928,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
'''
study third party library:requests
'''
import requests
def main():
'''doc string
'''
r = requests.get(' https://exmail.qq.com/login', auth=('aibingbing@etutech.com', 'Etuabb2017'))
# print r.status_code
# print r.headers['content-type']
# pr... | [
"aibingbing1991@qq.com"
] | aibingbing1991@qq.com |
a4655c1b0f2237ee602dc8be26b27ae9f029790e | ff48e029c6f6ef945e1cc6e9e045685d86e7b4cf | /py/eg1.py | 00a79bce84fee527437d1887f0c7900333bf56ce | [] | no_license | SIDDHANTJOHARI/IOT | 715c89c4001b56c860909256a6b163c0c992394e | 40494d55cf47ec5c44057cd9a605bec3cf5305a5 | refs/heads/master | 2023-05-15T00:43:57.342510 | 2021-06-07T20:27:20 | 2021-06-07T20:27:20 | 367,887,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | import serial
import time
#serial ek package hai
# Serial ek class hai
# board ek pointer hai
board=serial.Serial(port="/dev/ttyUSB0",baudrate=9600)
time.sleep(4)
print(type(board))
board.close() | [
"root@cybertrons.cybertrons.in"
] | root@cybertrons.cybertrons.in |
8b17a4a09e0ef2bde705a87d2c804051ad8c5844 | 9b2f78185c7e9ccafc41e6147ef31fb23bc50182 | /Exercícios em Python/PythonExercícios/ex022.py | 3d18077878245e14905163087ad46cf7da3386a1 | [
"MIT"
] | permissive | HenriquedaSilvaCardoso/Exercicios-CursoemVideo-Python | 54fc879cf4325666bee1b3c1b029a8156530a30b | b1ad377657757b77dcd36eb36dfa6f156afe7e28 | refs/heads/main | 2023-06-03T01:21:04.450274 | 2021-06-21T13:22:40 | 2021-06-21T13:22:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | from random import randint
nome = input('Digite seu nome completo: ').strip()
print(f'Seu nome com as letras todas maiúsculas é \033[{randint(30, 37)}m{nome.upper()}\033[m')
print(f'Seu nome com as letras todas minúsculas é \033[{randint(30, 37)}m{nome.lower()}\033[m')
Div= nome.split()
print(f'Desconsiderando esp... | [
"henriquedasilvacardoso00@gmail.com"
] | henriquedasilvacardoso00@gmail.com |
9b0c90269a0a5ff5f89369b8ca2e2d59d97665fe | 7c0acdc46cfce5dc116d394f6990ee5ab1c0fa0c | /venv/lib/python3.7/site-packages/buildsystem/setup.py | 3e4ac13dece62dd1ea8f1f0ac6fe7d644541d600 | [
"MIT"
] | permissive | Vatansever27/ExchangeCode | 84fb4a02371fdda7cd94d00971be76bcd1068be0 | ab284653a337937139a9a28c036efe701fb376c7 | refs/heads/master | 2020-04-07T16:38:59.819929 | 2018-11-21T12:18:30 | 2018-11-21T12:18:30 | 158,537,067 | 0 | 0 | null | 2018-11-21T12:18:31 | 2018-11-21T11:22:14 | null | UTF-8 | Python | false | false | 1,093 | py | from .base import BaseBuilder, task
import os
class SetupBuilder(BaseBuilder):
setupdir = '.'
setupscript = None
product_title = 'Setup'
@task('compile_setup')
def do_compile_setup(self):
'''Compiles the Inno Setup Script `setupscript` into directory `setupdir` if `setupscript... | [
"doguhan@puentedev.io"
] | doguhan@puentedev.io |
e60f604d33322f16b55ffc642e52a6ffadcea543 | 80460cb811f514771188e7560711944fcf6c9b87 | /codes/systematics/elias.py | ed7c80fbe97f1cd15828cffdee99cc0ecdd89438 | [] | no_license | semeneleven/XTest | 2a5d3647f83959aae42938c07590806ce1b48ce8 | df7faf679698a23efc5079eb1b3308e226bffe80 | refs/heads/master | 2020-04-14T23:55:19.535650 | 2019-01-06T12:07:22 | 2019-01-06T12:07:22 | 164,221,429 | 0 | 0 | null | 2019-01-06T12:12:43 | 2019-01-05T14:20:38 | HTML | UTF-8 | Python | false | false | 2,175 | py | import random
def assert_code(data, answ):
data=data['message']
print(answ)
for i in range(len(data)):
sum = 0
for j in range(len(data[i])):
sum ^= data[i][j]
if not sum == int(answ[0][i]):
return False
for i in range(len(data)):
sum = 0
... | [
"halit.sergey@gmail.com"
] | halit.sergey@gmail.com |
049b08abf6cefe902dfc27a837156c765e69f54a | 2760494bc6ea8628a2c401bd4b55dd8cc5536a97 | /2020/13/13.py | 0495a6923afd6a0f44104d86c9a9014edf143878 | [] | no_license | lysrt/aoc | e38bb3db9d14b410549b2a1b24337b9e608940e2 | 2e7578f458721206e798793fbc9cf74701ae0033 | refs/heads/master | 2023-02-02T16:39:34.349900 | 2020-12-19T13:33:53 | 2020-12-19T13:33:53 | 116,025,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py |
def part1(earliest, buses):
int_buses = [int(b) for b in buses.split(',') if b != 'x']
i = earliest
candidate = 0
while candidate == 0:
for b in int_buses:
if i % b == 0:
candidate = b
break
i += 1
return (i-earliest) * candidate
de... | [
"lucas.sartore@gmail.com"
] | lucas.sartore@gmail.com |
9c03fc0e8ffe9520a475cd645c0f19eb15947fc4 | f4c1f5c895cd27814b045e03c5b82508d3178d42 | /src/__init__.py | be11c935d3245ffdf698eabcc0ec0cc4d954e71f | [] | no_license | Jeffkang-94/Mixmatch-pytorch-SSL | d20856ad3b4b92b14f32f2e0233b179bebb899dc | 05f261bdba709aafe85d32c2a6664a3f2c5de935 | refs/heads/master | 2023-07-14T12:35:25.467721 | 2021-08-10T13:17:10 | 2021-08-10T13:17:10 | 382,040,428 | 21 | 2 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | from .train import Trainer
from .eval import Evaluator
from .base import BaseModel | [
"mingu.kang@kaist.ac.kr"
] | mingu.kang@kaist.ac.kr |
7da211d13669c53ae3a7af15dc4be7c7dde9b140 | f40ec7443642620beb159e9ac88cbf4e27a2d581 | /oil_db/oil_database/models/noaa_fm/kvis.py | f7612344fcb2677439e0fd239c9894735b1ecde1 | [] | no_license | JamesMakela/OilDatabase | b2675e9a9dd0c3eb530ebb1866fa8d5893d62a11 | 9bee88fc7f2bb082931ae46cf7a7da9b77f69dbf | refs/heads/master | 2021-04-28T03:31:40.414916 | 2019-04-25T14:23:32 | 2019-04-25T14:23:32 | 122,141,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | #
# PyMODM Model class definitions for embedded content in our oil records
#
from pymodm import EmbeddedMongoModel
from pymodm.fields import FloatField
class NoaaFmKVis(EmbeddedMongoModel):
m_2_s = FloatField()
ref_temp_k = FloatField()
weathering = FloatField(default=0.0)
def __init__(self, **kwargs... | [
"james.makela@gmail.com"
] | james.makela@gmail.com |
1e1d357c40ec4cac5d459291702242e927df47b5 | ad4acddc11c012d90759fcba639751beb495beb5 | /logDirNotify.py | c0c46d496e68fb36009cd0be9ca29041ece281f1 | [] | no_license | johnmacmillan96/CAN | 15b720c1f7916a7a78d35dd76a71fc8870887f43 | 8cb8e2ec7e1082fbf68a8bb653f95f5121e05c41 | refs/heads/master | 2021-01-02T08:41:10.087584 | 2017-08-30T22:53:55 | 2017-08-30T22:53:55 | 99,042,066 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | import pyinotify
import subprocess
from processCanLog import *
from canmsgs import *
wm = pyinotify.WatchManager()
moveMask = pyinotify.IN_MOVED_TO
class EventHandler(pyinotify.ProcessEvent):
# This method processes the candump log file
def process_IN_MOVED_TO(self, event):
print('Translating... | [
"jmac854@uw.edu"
] | jmac854@uw.edu |
2b8b21a00b1cf647bd82299135240bcdd9948302 | 4df671749069fd70a04f8c064548ff1f61761d37 | /boatgame.py | 379c0af0d10a3dcab1ef1a4e5cd26e93f5aee0bb | [] | no_license | naburnham/cannonballer | 302fc9d7728ac5d2906d39619c604c3d05ee0cc8 | 8be53f060e527cf71600907ae09ff347ae2ac156 | refs/heads/master | 2021-01-21T21:15:05.967561 | 2017-06-19T16:00:39 | 2017-06-19T16:00:39 | 94,795,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,089 | py | import pygame
import random
import time
pygame.init()
# Pre-made Colors
black = (0, 0, 0)
white = (255, 255, 255)
red = (255, 0, 0)
dark_red = (200, 0, 0)
green = (0, 255, 0)
dark_green = (0, 200, 0)
blue = (0, 0, 255)
light_blue = (175, 225, 255)
# Pre-defined Fonts
large_text = pygame.font.SysFont('arialblack', 10... | [
"naburnham@zoho.com"
] | naburnham@zoho.com |
52fd9eee2ea92280eef3cda43ec700098fc1ddbe | 0145dbe97f3d34017d996430006accc04ed1929e | /parse_apache_configs/test/test_file_diff.py | 54b48976c23f7fb18cdba9e24f22d72dc846ef0f | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | daladim/parse_apache_configs | c2527585ef97dafef5ee9f9f88ede062b2be648f | 5f585c099095176ae4708c65593bef315d930033 | refs/heads/master | 2022-05-30T17:01:33.191882 | 2020-05-05T06:34:54 | 2020-05-05T06:34:54 | 258,106,644 | 0 | 0 | Apache-2.0 | 2020-04-23T05:47:42 | 2020-04-23T05:47:41 | null | UTF-8 | Python | false | false | 1,638 | py | import difflib
from parse_apache_configs import parse_config
import unittest
from pprint import pprint
from os.path import isfile,join
from os import listdir
class testFileDiff(unittest.TestCase):
def test_file_diff(self):
"""
This method takes the output of get_apache_config, and diffs
i... | [
"miguel.cantu@rackspace.com"
] | miguel.cantu@rackspace.com |
99f0114229968dc89da64649302a272cb8b61dd7 | 19308c971669b903fd1ee9862948e482ab37ce56 | /open_window.py | 74ac07da4a769f11e7c9ef3afdd4005bad3c1154 | [
"MIT"
] | permissive | crazcalm/learn_tkinter_canvas | 9634716275061d56282c1062a9d58cdac5761869 | b798a6f2217a478e9222bb6eaa2afec3d28a2758 | refs/heads/master | 2021-01-03T04:33:25.134059 | 2020-03-02T01:07:28 | 2020-03-02T01:07:28 | 239,924,031 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | import tkinter as tk
window = tk.Tk()
window.mainloop() | [
"crazcalm@gmail.com"
] | crazcalm@gmail.com |
12ffc04da6d5d1f0f1212995f33e58915d501bc0 | a964f0f3f93a84d5195042d3c1bb2288e8b62161 | /muddery/server/typeclasses/locked_exit.py | 0451335dae27a4647d7d453f79f9d35569d9f04e | [
"BSD-3-Clause"
] | permissive | nobodxbodon/muddery | 474433791b75d2f2130e6b758fb3126e2d56230b | 4b4c6c0dc5cc237a5df012a05ed260fad1a793a7 | refs/heads/master | 2023-06-19T19:28:39.252340 | 2021-07-14T15:07:47 | 2021-07-14T15:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,770 | py | """
Exits
Exits are connectors between Rooms. An exit always has a destination property
set and has a single command defined on itself with the same name as its key,
for allowing Characters to traverse the exit to its destination.
"""
from muddery.server.statements.statement_handler import STATEMENT_HANDLER
from mud... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
dd4fb7ea275ee365886a27cecfb16f952e6bafe3 | 87f50b69a3c4946c24c7ff32893c8ced99b73256 | /usdview/18.09/package.py | 2773af73d07098b971800dcc8da1134b35a35896 | [
"MIT"
] | permissive | UTS-AnimalLogicAcademy/open-source-rez-packages | d892f38d838754603405eef80bf3e77b2a727d0b | 809de83c9802b0166d8f88e0865612a75a4c032d | refs/heads/master | 2022-11-24T13:13:28.143401 | 2022-11-07T23:55:51 | 2022-11-07T23:55:51 | 117,476,450 | 66 | 8 | MIT | 2021-06-22T06:42:49 | 2018-01-14T23:42:11 | CMake | UTF-8 | Python | false | false | 182 | py | # -*- coding: utf-8 -*-
name = 'usdview'
version = '18.09'
requires = [
'pyside-1.2',
'usd-18.09'
]
def commands():
env.DEFAULT_USD.set('{root}/bin/DefaultUSD.usda')
| [
"daniel.flood-1@uts.edu.au"
] | daniel.flood-1@uts.edu.au |
75e67f9d2f99485e02e71e9d13c80edfe59d577a | 42c63d5f9c724c99ba93f77bdead51891fcf8623 | /OpenStack-Mitaka-src/cinder/cinder/volume/drivers/ibm/storwize_svc/storwize_svc_common.py | f5e43d96d19eda583d719b33f56058a3e20c740f | [
"Apache-2.0"
] | 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 | 139,105 | py | # Copyright 2015 IBM Corp.
# 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 app... | [
"yongle.li@gmail.com"
] | yongle.li@gmail.com |
6ad630abf6253cb5e5c5e807b26864f05dec66e7 | 7ad570c16d54835f79e657b40c8162e25365f724 | /smartups.py | 2a15664737205f9e09a4dc13e8f86a1ac136ffac | [] | no_license | u-geek/SmartUPSV3 | 1741e3a21c5b75874a8f5e5a1685f3de6ff9b37c | d26516a261f39bf8499e82242ffcbe11b1900526 | refs/heads/master | 2023-04-30T09:02:16.814818 | 2021-05-18T09:08:33 | 2021-05-18T09:08:33 | 264,562,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,069 | py | # coding=UTF-8
#
# U-GEEK Raspi Smart UPS HAT V3
#
import os
import time
import smbus
import signal
import logging
import threading
from neopixel import *
from logging.handlers import RotatingFileHandler
# Global settings
BUS_ADDR = 1
disconnectflag = False
exit_thread = False
max17048_soc = 0
POWEROFF_POWER = 5... | [
"howard.qiao@u-geek.net"
] | howard.qiao@u-geek.net |
735e88cdd3e9e2d80925c43fd342adb28accaf4b | cae2711e78be547681ff5635bd00f8fb9fee1b9f | /AnimalAssignment/AssignmentAnimal.py | 03c4e06c49793010460175dd395cb261ce92e8f9 | [] | no_license | RoselinBurgos/CodingDojo-Python | 1ac049d56292f078fda2bf11749acfe1bdd3e980 | 1a7507fcdeeaa20fcb940ed8b9e30fb433d43d78 | refs/heads/master | 2020-04-09T14:41:19.607926 | 2018-12-04T21:02:22 | 2018-12-04T21:02:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,130 | py | # Create an Animal class and give it the below attributes and methods.
# Extend the Animal class to two child classes, Dog and Dragon.
# Objective
# The objective of this assignment is to help you understand inheritance.
# Remember that a class is more than just a collection of properties and methods.
# If you want... | [
"RoselinBurgos.com"
] | RoselinBurgos.com |
98d29b8ee00151cf5694bb05f8a21fcda2e47eda | caee3d333a6f8115f99c7a33138d2a2a2d8e9678 | /V_turtle1.py | b5d69dd076d43978d68fc4ab6b4fd99df22a4076 | [] | no_license | VishalGupta2597/batch89 | c24e004ce4beee075a0e75f740e1afdae724f992 | b11cfbcccb3884e06190938f8ca6272a41161366 | refs/heads/master | 2022-01-22T10:02:46.204693 | 2019-08-01T02:39:51 | 2019-08-01T02:39:51 | 197,910,034 | 2 | 1 | null | 2019-07-20T09:39:48 | 2019-07-20T09:39:47 | null | UTF-8 | Python | false | false | 619 | py | from turtle import *
s = Turtle() #s is the object of Turtle class
w = Screen() #w is the object of Screen claa
s.shape("turtle")
s.speed(1)
w.title("Vish Turtle")
#s.write("Vishal")
#w.bgcolor("yellow")
s.color("green")
s.pencolor("Blue")
s.pensize(5)
"""s.begin_fill()
for i in range(4):
s.forward(100)
s... | [
"vishalg2597@gmail.com"
] | vishalg2597@gmail.com |
a81e55d98b7ef096729671d0cc633f724691b3c7 | ddada1d76aa4cb426040662bac084832f0079f10 | /WebCrawler2.py | ff784eee092f6101e1fe01b3353b3d081f1a63f0 | [] | no_license | cs257f19/web-project-web-project-team-a | e5f002c312d6e60f3dae2c0d7ba582311e4b1059 | 842d6fdb694f88744cdce7439296f6bb078e4304 | refs/heads/master | 2021-07-07T07:50:13.268502 | 2019-11-26T03:42:22 | 2019-11-26T03:42:22 | 213,968,989 | 0 | 1 | null | 2020-12-15T17:36:22 | 2019-10-09T16:31:22 | HTML | UTF-8 | Python | false | false | 10,360 | py | import requests
from lxml.html import fromstring
import csv
import unidecode
master_list = []
class Course:
"""
Course subclass with instance variables for metadata of the course
"""
def __init__(self, dept, num, name, term, reqs, periods, prof, desc):
"""
Course object constructor
... | [
"brownc2@carleton.edu"
] | brownc2@carleton.edu |
d2f8a19b3de851ef689fddf518cebea8c37b91ec | 17fe32a70be82d9fd6c3268b840226b5567c8b29 | /torchtuples/utils.py | bb86e8e2b7557ada3baedd86a27b975d4f3b2644 | [
"MIT",
"BSD-2-Clause"
] | permissive | georgehc/dksa | dbb7161a75b8206d3d469bb5b966ed7a0f84d86c | bcd9eab6c9ded47f5b166cf1351b06e26e0c8f90 | refs/heads/master | 2023-08-02T06:15:12.472386 | 2021-10-01T17:47:25 | 2021-10-01T17:47:25 | 282,355,975 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,855 | py | import time
import random
import numpy as np
import torch
from torchtuples import tuplefy, TupleTree
def make_name_hash(name='', file_ending='.pt'):
year, month, day, hour, minute, second = time.localtime()[:6]
ascii_letters_digits = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
random_h... | [
"georgechen@cmu.edu"
] | georgechen@cmu.edu |
ab3cf183492b72d65e67edb8536855e59cb7a7a9 | 0c56fadfb966af74464f446d2be76fd0aeef3622 | /apps/accounts/models.py | aa66c193408c32f873c18541d188c0ba997c38f7 | [] | no_license | Lh4cKg/adoption | 847d195b8b1e70a18b5c9d5e68137672381e39b5 | c28fd09d07f35f0ce22749c447bc637fd474fafb | refs/heads/master | 2020-03-11T03:44:19.643285 | 2018-04-19T12:26:26 | 2018-04-19T12:26:26 | 129,756,984 | 0 | 0 | null | 2018-04-16T14:33:42 | 2018-04-16T14:33:42 | null | UTF-8 | Python | false | false | 2,263 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
class MyUserManager(BaseUserManager):
use_in_migrations = True
# python manage.py createsuperuser
def create_superuser(self, email, is_staff, password):
user = self.model(
... | [
"timaraczarko@gmail.com"
] | timaraczarko@gmail.com |
7a815792cdd656855418bc4958637547f89f5252 | 25d7db979a6575b6cccee3fe16838fc1a5892579 | /cfg.py | 294b993f6994cbd785fb16736b7eb32a0a515335 | [] | no_license | cotyb/IR-for-SDN-compiler | b0603db25b781fbd054a9563bb18a97345d7d44a | 647263e848d76ded14acc7c78bd5cacbce8d5108 | refs/heads/master | 2021-04-28T21:32:46.236850 | 2017-05-06T06:20:51 | 2017-05-06T06:20:51 | 77,768,881 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # function = ["dpi", "nat", "count", "ftp"]
# fun_switch = {'dpi':['a', 'b'], 'nat':['c', 'd'], 'count':['j'], 'ftp':['f']}
# fun_guard_update = {'dpi':['', ''], 'nat':['', ''], 'count':['', 'rv(CNT)'], 'ftp':['']}
function = ["dpi", "nat","ftp"]
fun_switch = {'dpi':['a', 'b'], 'nat':['c', 'd'], 'ftp':['f']}
fun_gua... | [
"xieleicotyb@gmail.com"
] | xieleicotyb@gmail.com |
56df3386f3c3d38d16dd134e869bf280c5836984 | d1c2de29cc94ddc6d3cfcfaa842c5e4dbddb5652 | /src/quoridor.py | bf03f4548bdfcca8c57d91257d0ef42bba7d1326 | [] | no_license | marmelab/quoridor-python | 09b02fd9db5980e46c2a7250763f2b8b9a1c221c | e76c51d00b1a228aea5b58798be427bcdecd7794 | refs/heads/master | 2023-06-05T19:37:00.759435 | 2020-05-11T11:40:03 | 2020-05-11T11:40:03 | 191,528,919 | 0 | 1 | null | 2019-06-18T10:51:49 | 2019-06-12T08:21:32 | Python | UTF-8 | Python | false | false | 120 | py | import game
def main():
pawns = game.init_game()
game.progress(pawns)
if __name__ == "__main__":
main()
| [
"matthieu.chaffotte@gmail.com"
] | matthieu.chaffotte@gmail.com |
f3e9c32e44bf0d6c8eecdc1fd66d8f7071c82827 | 7d8588cb855ca9039ed6eced402975274ad578a0 | /custom_components/fordpass_china/fordpass.py | cf44d16a6247ab278506d45c8e3bdd27af85b8b7 | [
"MIT"
] | permissive | my7hcry/fordpass_china | a9e3c14c602c14d2b4ffc3e787353bfa93c6f31f | 07268780c4044ba552166819f3c4ea11b4bcc3e3 | refs/heads/main | 2023-06-30T09:46:20.277115 | 2021-07-16T14:36:12 | 2021-07-16T14:36:12 | 393,597,119 | 0 | 0 | MIT | 2021-08-07T06:12:24 | 2021-08-07T06:12:24 | null | UTF-8 | Python | false | false | 7,980 | py | import time
import json
import logging
import requests
from .const import (
SSO_URL,
CV_URL,
API_URL,
CLIENT_ID,
DEFAULT_HEADERS,
API_HEADERS
)
_LOGGER = logging.getLo... | [
"noreply@github.com"
] | noreply@github.com |
a9a44cb9da81256da9932be1d7d4fdfa9d7ef260 | eccdc3563ff80957cc24e5ff35f4e3c2fc173c5b | /sirius/coding/test_image_coding_snapshots.py | d6e920a638a556559b41d06402868fc4a2eb7e67 | [] | no_license | nordprojects/sirius | c8c420ba5082c443fd14443128be30dda34541f4 | 9d88c63a0fc17d4acc5ae12194b93f8591e35a55 | refs/heads/main | 2023-07-08T12:40:26.407049 | 2023-07-07T15:47:55 | 2023-07-07T15:47:55 | 116,666,765 | 41 | 23 | null | 2023-07-07T15:47:56 | 2018-01-08T11:10:48 | Python | UTF-8 | Python | false | false | 1,425 | py | import os
import datetime
from tempfile import TemporaryDirectory
from PIL import Image
import snapshottest
from snapshottest.file import FileSnapshot
from sirius.coding import image_encoding
from sirius.coding import templating
class ImageCodingSnapshotCase(snapshottest.TestCase):
def _check_html(self, name, h... | [
"notjosh@gmail.com"
] | notjosh@gmail.com |
c21202a66c452dff01039f8b67e27e7865f8a7b5 | 0fdd56fd597b696508deb057903c1e214fedff99 | /machine_learing_games/Agents/LearningAgents/TestAgentsIn9FieldTicTacToe.py | ab94a1899bac1733d1b4eb78aaf501a595749026 | [] | no_license | blackicetee/Python | 297f90e473291ea7a15cd754fb6ff8bc19a2f8fd | e7ff497394dfa096fc79ac4f63a0bf05abc1b287 | refs/heads/master | 2021-01-13T13:41:56.510489 | 2017-03-19T18:08:57 | 2017-03-19T18:08:57 | 76,386,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,395 | py | import unittest
from machine_learing_games.Agents import HeuristicSearchAgentTicTacToe
from machine_learing_games.Agents import RandomAgent
from machine_learing_games.Agents.LearningAgents.TicTacToeTDQLearningAgent import TicTacToeTDQLearningAgent, \
TICTACTOE_3x3_TDQ_AGENT_100_NAME, TICTACTOE_3x3_TDQ_AGENT_1000_N... | [
"blackicetee@gmx.de"
] | blackicetee@gmx.de |
6d0218c02fd2a5f9dd00423791f0d95511b9be27 | 5ed2ef7a557ec4ba8835f47dc7ae110efc7901a3 | /advanced payslip generator.py | 2d767e86c41a499149afd840954c66c2dff298d3 | [] | no_license | 44858/records | 74caf42bf189aeaf32a6465d465ce20abf2e2ec2 | 4c20c35b4906466ba7a806121e1b1deb2ccf8551 | refs/heads/master | 2020-04-04T20:13:02.530928 | 2015-01-30T14:30:59 | 2015-01-30T14:30:59 | 29,735,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | #Lewis Travers
#30/01/2015
#Payslip Generator advanced
class Payslip:
def __init__(self):
self.name = None
self.number = None
self.hours = None
self.pay = None
payslips = []
def enter_values():
for count in range(15):
payslip = Payslip()
payslip... | [
"44858@PC004142.coll.lr.local"
] | 44858@PC004142.coll.lr.local |
7dfdda254e255ca9e99096ee203e40f5f0036550 | 20c4041b1c0c9ba5b129321be07be3feb83c0cb8 | /main/predict.py | e1a8a81c624ff69ac608eb805db0aa973922bd15 | [] | no_license | PelinSeloglu/GEVAP | ad807ed652169401c9ebe0be8c7bf0e03564d38f | 81a764012421b715c1d6d31e3776bd55afeaa6e9 | refs/heads/main | 2023-06-29T21:13:18.943069 | 2021-08-08T14:52:47 | 2021-08-08T14:52:47 | 393,968,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,347 | py | import os
import shutil
import glob
from pretrainedmodels import resnet152
import numpy as np
import pretrainedmodels.utils as util
import torch
import torch.nn as nn
import opts
from models import EncoderRNN, DecoderRNN, S2VTAttModel
import mix.utils as utils
import json
import cv2
from language import *
C, H, W = 3,... | [
"pelinseloglu@gmail.com"
] | pelinseloglu@gmail.com |
3db372c385c4b4645e4775a4a42beed4996904b5 | fc02c7226b3922d8c34e5b57e7426dd757d3186f | /test.py | 99747c20b27cadd1502b3779702d2a77e96a8eb9 | [] | no_license | RoseRollZhu/Lab2Pix-V2 | af2812b54ba3f7f8ae6846bae8f986b28f70d811 | 967ae52f149bee6200e6d21ba3e370b210c36d04 | refs/heads/main | 2023-04-06T18:27:22.443047 | 2021-04-16T07:11:49 | 2021-04-16T07:11:49 | 355,521,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | import os
from collections import OrderedDict
import data
from options.test_options import TestOptions
from trainers.pix2pix_trainer import Pix2PixTrainer
from util.visualizer import Visualizer
from util import html
import torch
opt = TestOptions().parse()
assert len(opt.gpu_ids) == 1
os.environ['MASTER_ADDR'] = op... | [
"junchen.zhu@hotmail.com"
] | junchen.zhu@hotmail.com |
bc3e3c9684f089084fe0fc0d38133f983ab268c3 | 42f4238073a70d1494537f8c8b07835b531e73a9 | /cases/3d/zalesak/ls_vortex_3d_n.py | 867bc7cb38211e8281f0cf96a2c44ce3c3bbcaba | [] | no_license | erdc/proteus-mprans | bd99257af7b3bbe08386533faf072dba22e93a61 | f8f4d20bc870b361c64c8ca2ceb99f045b373323 | refs/heads/master | 2022-09-11T13:18:39.973962 | 2022-08-11T16:27:29 | 2022-08-11T16:27:29 | 2,303,947 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,466 | py | from proteus import *
from proteus.default_n import *
from ls_vortex_3d_p import *
from vortex import *
nd = 3
if timeIntegration_ls == "BE":
timeIntegration = BackwardEuler_cfl
stepController = Min_dt_controller
#timeIntegration = VBDF
#stepController = Min_dt_cfl_controller
#timeOrder =2
elif tim... | [
"IdoAkkerman@gmail.com"
] | IdoAkkerman@gmail.com |
7a452129eff32f63174f23daa3aaad8b876fbdff | 5dd58c23db7495b5c5882ba58f6e5a513baebffd | /lessons/my_iris_reader.py | d697c795865cc280f12a8aa0c0212d62e1916371 | [] | no_license | cra/rea-python101-for-da-in-econ | 649683bd3a5a88f54f51a9b3615660599f7e7af1 | a8c440038d512b328571dbbb5aa30f1c873469e7 | refs/heads/master | 2021-04-06T09:14:07.114201 | 2018-04-26T20:57:00 | 2018-04-26T20:57:00 | 124,781,250 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,039 | py | # coding: utf-8
import csv
import os
ALLOWED_IRIS_TYPES = ["Iris-setosa", "Iris-versicolor", "Iris-virginica"]
# TODO: import functools, использовать wraps чтобы сохранить help
def protect_iris(func):
def inner_f(*args, **kw):
try:
return func(*args, **kw)
except KeyError:
... | [
"c6h10o5@gmail.com"
] | c6h10o5@gmail.com |
9b208b6430c836bcfb82db54923021aa68be7d56 | 149f2876d9a95933185521b22e3d2fa2f7358bb9 | /CNNDeblur/train.py | a2014e5f8cc27616108a310246792e4ea34724e0 | [] | no_license | LakshBhambhani/InterSTEM-ML-Research | 758affd8ef63dcf39e5cebe107efb3291630c96a | 277577223bb759d7620e74793449590c047acc95 | refs/heads/main | 2023-02-21T03:14:05.537193 | 2021-01-24T15:38:26 | 2021-01-24T15:38:26 | 316,973,819 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,176 | py | import tensorflow as tf
import numpy as np
from datetime import datetime
from imageio import imwrite
import glob
import os
class Model(object):
def __init__(self):
self.sess = tf.Session()
checkpoint_path = "training_1/cp.ckpt"
checkpoint_dir = os.path.dirname(checkpoint_path)
# ... | [
"lakshbh@gmail.com"
] | lakshbh@gmail.com |
718209cd4e9b8129270bfd7cfce002ecbefdd48f | e49b654d3db99773390c5b9686df9c99fbf92b2a | /linked_lists/remove_nth_from_end.py | df9193a1a375cfc8ab394f07106bc5c85074e045 | [] | no_license | hao89/diary_of_programming_puzzles | 467e8264d0ad38768ba5ac3cfb45301293d79943 | 0e05d3716f28075f99bbd7b433d16a383209e57c | refs/heads/master | 2021-01-16T00:49:38.956102 | 2015-08-25T13:44:53 | 2015-08-25T13:44:53 | 41,692,587 | 1 | 0 | null | 2015-08-31T18:20:38 | 2015-08-31T18:20:36 | Python | UTF-8 | Python | false | false | 1,207 | py | """
Given a linked list, remove the nth node from the end of the list and return
its head.
For example,
Given the linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the linked list becomes
1->2->3->5.
Note:
Given n will always be valid.
Try to do this in one pass
"""
# @param head ... | [
"me@davidadamojr.com"
] | me@davidadamojr.com |
5bf06775a401ac55bb8353e8ceb73f191ddf3fbd | 7f979acc529ce833014f82d0e1c4b98f5330a149 | /inferential/test/test_simple_mediation.py | 1f2100e5a2ce83c945e2a9ebd894a19e50b6e119 | [
"MIT"
] | permissive | eribean/RyStats | 4d12c8657203e0e2ab73439936ccdab0420a3d7b | 1cdd0ea55a074cc81e61d2845216f395ba095f10 | refs/heads/main | 2023-05-23T02:44:18.940487 | 2021-10-29T18:01:38 | 2021-10-29T18:01:38 | 386,011,559 | 9 | 1 | MIT | 2021-10-29T18:01:38 | 2021-07-14T16:50:53 | Python | UTF-8 | Python | false | false | 2,826 | py | import unittest
import numpy as np
from RyStats.inferential import simple_mediation
class TestSimpleMediation(unittest.TestCase):
"""Test Fixture for Simple Mediation."""
def test_total_mediation(self):
"""Testing total mediation."""
rng = np.random.default_rng(842574782795233252432)
... | [
"noreply@github.com"
] | noreply@github.com |
0ef17e43fef2010f460cdb99cec32546cff45256 | 1eb1cd97444baf7f6bcf01c06d5cd22ba4f8f02e | /sessionwiz/urls.py | 1e82d1c68c7d222c65a4d3defe82a48385072bf6 | [] | no_license | rreddy80/sessionwiz_models | 000f236d27e0cf453719a1afa508b9f264f057fc | a265bcd68f9646632a9a4b44a98f0ca1b9ed4a89 | refs/heads/master | 2020-04-06T07:09:09.884189 | 2016-05-10T16:15:56 | 2016-05-10T16:15:56 | 21,155,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
url(r'^example/', include('example.urls', namespace='example')),
)
| [
"vramesh.reddy@gmail.com"
] | vramesh.reddy@gmail.com |
a06334c157b4ac4e6ccf865d6a746fd36b7580b1 | f69b92d327621cc14323e6d50d87daf90c4a826f | /setup.py | 526facdce7ba36f74727d3f46d57b87b8c7d4ae5 | [
"BSD-3-Clause"
] | permissive | MelbourneHighSchoolRobotics/mindpile | 4a2c06fcc7c7a01a8c17a450cbb3288b26a9142a | 9dd0a14ee336810c2b62826afff4da8719455ba0 | refs/heads/main | 2023-06-21T18:42:32.118860 | 2021-07-20T08:32:23 | 2021-07-20T08:41:46 | 285,460,404 | 2 | 0 | BSD-3-Clause | 2021-04-30T12:26:51 | 2020-08-06T03:09:27 | Python | UTF-8 | Python | false | false | 1,236 | py | import os.path
from setuptools import setup
REQUIRES_PYTHON = ">=3.9.0"
HERE = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(HERE, "README.md"), encoding="utf-8") as fid:
README = fid.read()
with open(os.path.join(HERE, "requirements.txt")) as fid:
REQUIREMENTS = [req for req in fid.read... | [
"37640160+glipR@users.noreply.github.com"
] | 37640160+glipR@users.noreply.github.com |
0fad1a1ef57ca5dc37b1a8aac705575a661aafba | 5eadb550d0c12a39544885bd6cea7314052f3fba | /Files_exercise/lecture3.py | 2dec18eb98427def06b257f3bc468779852a3968 | [] | no_license | thebiochemguy/sre-class | 1b0730882bfe4a935398a083ee531b163d1504e4 | 4b7b72aa5f160e5028f899a1b25331482e162a77 | refs/heads/master | 2020-08-05T21:33:24.817480 | 2019-11-12T03:55:57 | 2019-11-12T03:55:57 | 212,719,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | import re
phonenum=re.compile(r'(\d\d\d)-(\d\d\d-\d\d\d\d)')
search=phonenum.findall("my number is 123-456-2345-123-123-2342.")
print(search[0]) | [
"juan@workstation1.localdomain"
] | juan@workstation1.localdomain |
bffdd5605e70c0218027950b2a97ca075262aee1 | 66dead2e38d06f5ca06463d669515876f7eb1771 | /{{cookiecutter.project_name}}/tests/test_server/test_urls.py | abb5b5626aa423ead2e752d00c266d5a31417071 | [
"MIT"
] | permissive | viktortat/wemake-django-template | 349920117d008e545db162ea11c4235fdf4bf0df | 991bbb8b34ed4b705d38080caa1ffa3893362520 | refs/heads/master | 2020-03-21T10:32:01.894036 | 2018-06-22T09:41:22 | 2018-06-22T09:41:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | # -*- coding: utf-8 -*-
def test_admin_unauthorized(client):
"""This test ensures that admin panel requires auth."""
response = client.get('/admin/')
assert response.status_code == 302
def test_admin_authorized(admin_client):
"""This test ensures that admin panel is accessible."""
response = ad... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
a18b2132c6645e3c3e8102f1e3acf82ca7ee3c73 | bc441bb06b8948288f110af63feda4e798f30225 | /tuna_service_sdk/model/easy_flow/task_pb2.pyi | 99c3f43d6dca4676b4ba29fcf6e453c206047933 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,667 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
17fa6d9c823c11081088275ecc99f22b8dea4aba | dca2b4a08dd09e22d9a597ab2a29e9c6402c1dd6 | /D92_PCA.py | 4e140fe3c3a3fdbe2dce6e46946932b106c585db | [] | no_license | kupc25648/100DaysAlgorithms | a5766b78740e9c9d90546ecaee93345971caef64 | dcafe38b5a835922bd8679878ea129fda911a0aa | refs/heads/master | 2022-11-13T11:22:02.735226 | 2020-06-26T10:14:34 | 2020-06-26T10:14:34 | 275,120,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,243 | py | '''
Principal Component Analysis [PCA] is incredibly useful when you need [among others] to visualise high-dimensional data. It’s also very simple to implement, but requires plenty of work beforehand.
A friend of mine, Pavel, has complained that I often don’t dive deep into the topic. And I hope that PCA will satisfy e... | [
"noreply@github.com"
] | noreply@github.com |
21c2ff1c781282e130ce340af0483a9cecda2ee7 | ced2fe3abf39bf14519feb809f5cd4e56c828b46 | /notebooks/solution/control.py | 1225ebf7d93259de25bc077dcf008f6d1f42287a | [
"CC-BY-4.0"
] | permissive | nanounanue/pydy-tutorial-pycon-2014 | f68fb8bb967f6229743151c023b0b6da50d46f24 | 9a111ada7478a16c41ab75253e631a400febb083 | refs/heads/master | 2020-12-25T16:25:38.826055 | 2014-06-20T14:54:37 | 2014-06-20T14:54:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | #!/usr/bin/env python
# Controller Design
from numpy import zeros, matrix, eye, dot, asarray
from numpy.linalg import inv
from scipy.linalg import solve_continuous_are
from .utils import controllable
from .visualization import *
equilibrium_point = zeros(len(coordinates + speeds))
equilibrium_dict = dict(zip(coordi... | [
"moorepants@gmail.com"
] | moorepants@gmail.com |
4d3122b6a5a76c30a85ea82eef87b31bb9ff3d7f | 9bcb5032d27ca321f489c035f7d46019ffdf4b85 | /numericalFunctions/ptwXY/Python/Test/Flat/binaryMath/flatMath.py | 46871d9e915089e2d32588a84b4438372de42ec5 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/gidiplus | 128ef4d4acbcb264e31794a535cd95e8c77d8a96 | e1c6f0e4de51bc4d7616c5c4676b9818c4b9817c | refs/heads/master | 2023-08-31T06:21:14.519577 | 2023-02-13T18:35:20 | 2023-02-13T18:35:20 | 187,251,526 | 10 | 3 | NOASSERTION | 2021-12-23T00:28:07 | 2019-05-17T16:48:24 | C++ | UTF-8 | Python | false | false | 5,300 | py | # <<BEGIN-copyright>>
# Copyright 2019, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: MIT
# <<END-copyright>>
import os
from numericalFunctions import pointwiseXY_C
accuracy = 1e-2
biSectionMax = 0.
if( 'CHECKOPTIONS' in os.environ ) :
o... | [
"mattoon1@llnl.gov"
] | mattoon1@llnl.gov |
7d360314ad56ae83ac372262a3f246607a5f40db | 9a99ca8daa5de423857a4cc7f12fe924087ceabe | /analyse/scripts/crn_meta_t1.py | 86c6df20d7ab2b2f49c7a3b3444b4912ec6a46cc | [] | no_license | karajan9/ma | 7442a9e23b45d63d997f5ffee99bb366c10aca00 | bce0fa14cd51bcddc6cba671e847b781d1f5e333 | refs/heads/master | 2020-03-09T07:42:53.355358 | 2018-04-25T09:02:07 | 2018-04-25T09:02:07 | 128,670,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,438 | py | # %%
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
import glob
import os
import sys
home_dir = "/home/karajan/uni/master/analyse"
sys.path.append(os.path.abspath("/home/karajan/uni/master/analyse/scripts"))
from nmr_lib import *
# %%
def plot_setup():
plt.gcf().clear()
... | [
"jens.adam@tu-dortmund.de"
] | jens.adam@tu-dortmund.de |
ae5fa2cf162831595429963b02bdc5cfc7fb8baf | 7e9daf6a2a3ebfb969e793f92afc0dc5f1c2fc35 | /venv/bin/pip | f925d1739221b77a3093bdff330b2aded4106b0b | [] | no_license | NARESHSWAMI199/5-Star-On-Hacker-Rank-Python | e43ce5cb3429d2a683c37e6f4ba6440d073d47c2 | 51f245d1d0966de21ddf861b22fe3379e7c8a0a7 | refs/heads/main | 2023-02-25T03:05:25.330205 | 2021-01-19T13:49:27 | 2021-01-19T13:49:27 | 325,296,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | #!/home/naresh/Documents/django/hrank/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"swaminaresh993@gmail.com"
] | swaminaresh993@gmail.com | |
1a17bc069625e3f341c7c83afad9089213f1170a | 7c027160909486e2904a5bb65e65628124d271b5 | /brahe/access/access.py | db870165ffb536ae0a00c9db886e0776997be3e0 | [
"MIT"
] | permissive | lirun-sat/brahe | 84df8f0c2c36d004fe028d5d2602edd737934f92 | 4a1746ef3c14211b0709de6e7e34b6f52fc0e686 | refs/heads/master | 2023-09-04T13:18:36.023992 | 2021-11-19T03:48:03 | 2021-11-19T03:48:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,531 | py | '''The access module provides functionality to compute access opportunities,
geometry, and boundaries under different constraints.
'''
import logging
import typing
import copy
import datetime
import math
import numpy as np
from brahe.constants import RAD2DEG
from brahe.epoch import Epoch
from brahe.tle import TLE
fro... | [
"duncan.eddy@gmail.com"
] | duncan.eddy@gmail.com |
8da334eb44c9ea9052929ef18f09fca3bede6dbe | 65348a4305d10b88c3b4e34eb00d66cf5db6aba7 | /main.py | 225446846dea7cdde0668e429d65088b5214d266 | [] | no_license | lailacampos/Simple-GUI-Kivy | a3671b9dd7f39c6b1efb3c0521753a8a99f32fa8 | 19b0ed9ff7ad4039d842b2d4223a7d79ffb56dc2 | refs/heads/main | 2023-08-22T03:08:48.696503 | 2021-09-22T02:19:27 | 2021-09-22T02:19:27 | 407,191,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | # Useful links:
# https://kivy.org/doc/stable/guide/basic.html#quickstart
# https://kivy.org/doc/stable/api-kivy.app.html
# https://youtu.be/YDp73WjNISc
from kivy.app import App
from kivy.uix.label import Label
# The MyMainApp() class is derived from the App() class of the kivy.app repository.
# The App() class is t... | [
"enders.game1990@gmail.com"
] | enders.game1990@gmail.com |
105ea887fde8976e0371b1515151cd874df939cd | 39dc5f1ffa71ad5e7aab5e92bb118bddf3ddae44 | /ats/users/urls.py | 63a22a7046e3bb8a9decd34439b0530732abd1fc | [
"MIT"
] | permissive | MahmoudFarid/ats | 14422a136c574d33745ac874e02e2211cce8bf14 | 1f882168cba2f34451cbb9bba1e37ce93ef0c465 | refs/heads/master | 2023-08-28T09:08:49.860168 | 2020-07-28T20:35:00 | 2020-07-28T20:35:00 | 278,744,279 | 0 | 0 | MIT | 2021-11-12T15:22:34 | 2020-07-10T22:23:07 | Python | UTF-8 | Python | false | false | 358 | py | from django.urls import path
from ats.users.views import (
user_detail_view,
user_redirect_view,
user_update_view,
)
app_name = "users"
urlpatterns = [
path("~redirect/", view=user_redirect_view, name="redirect"),
path("~update/", view=user_update_view, name="update"),
path("<str:email>/", vie... | [
"mahmoud.farid.94@gmail.com"
] | mahmoud.farid.94@gmail.com |
eaaa81b1408518c00362eba85a5c786b9f3f4508 | 50fd4227fb802d65ae6620a3859dd992cb650717 | /po/update-po.py | d6e63063ddfa505286036b1b146456bf5bf3dbe7 | [
"Zlib"
] | permissive | danpla/dpscreenocr | 626c8004a388289589fa254b8b8916b8a3ada50a | 00ef775dae03e6de74bc07cfd04a0918febc8e30 | refs/heads/master | 2023-08-16T07:01:34.946170 | 2023-08-15T19:13:28 | 2023-08-15T19:13:28 | 173,785,193 | 193 | 19 | Zlib | 2020-05-29T19:56:53 | 2019-03-04T16:55:10 | C++ | UTF-8 | Python | false | false | 2,386 | py | #!/usr/bin/env python3
import glob
import os
import shutil
import subprocess
import sys
APP_NAME = 'dpScreenOCR'
APP_FILE_NAME = 'dpscreenocr'
BUGS_ADDRESS = 'https://github.com/danpla/dpscreenocr/issues'
def check_min_version(tool_path, min_version):
version_info = subprocess.check_output(
(tool_path,... | [
"daniel.plakhotich@gmail.com"
] | daniel.plakhotich@gmail.com |
6b7b060513cf603782ed5bf499c61bedf4ab8776 | 43ff15a7989576712d0e51f0ed32e3a4510273c0 | /tools/pocs/bugscan/exp_602.py | 9d51ac6e5eea714832eab404bedc4db5c96a7b00 | [] | no_license | v1cker/kekescan | f2b51d91a9d6496e2cdc767eb6a600171f513449 | 3daa1775648439ba9e0003a376f90b601820290e | refs/heads/master | 2020-09-19T16:26:56.522453 | 2017-06-15T02:55:24 | 2017-06-15T02:55:24 | 94,495,007 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | # -*- coding: utf-8 -*-
from dummy import *
from miniCurl import Curl
curl = Curl()
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'tyq'
# Name: Wordpress Work the flow file upload 2.5.2 Shell Upload Vulnerability
# Refer: https://www.bugscan.net/#!/x/21599
def assign(service, arg):
... | [
"liyueke@huobi.com"
] | liyueke@huobi.com |
de16d21a45bf2064b1b6afc2ef1c5ced56181fb4 | d25a8e1be90d12ec087e2d97256c7476b5db6a7c | /Assignment-5/part1/file_generator.py | 3511f4c543548799e5732db28497c236c3bb7aa0 | [] | no_license | bendavp/cs4500-assignments | f5d585c7226497506d10b167274d197e7b7c0861 | c8d51efd2f5d2bca77748014833c6416f7b1f5c0 | refs/heads/master | 2022-07-29T15:42:13.786907 | 2020-05-18T22:44:10 | 2020-05-18T22:44:10 | 265,082,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | #!/usr/bin/python
from random import random
from random import randint
from random import seed
from random import choice
import string
import sys
# takes 2 inputs
# first input = "file_name.txt"
# second input = number of rows
# details about the file that can be changed
outFile = sys.argv[1]
numRows = int(sys.argv[2... | [
"tang.amy@husky.neu.edu"
] | tang.amy@husky.neu.edu |
bbe5423c3579702ac9aedd2796d1d72907b0b9ac | 9ef923b4f24e1db90cc2904556fe30c4d99abff6 | /list-find.py | 8b60c224aa57c90952cb38c11ad5efd2c59bf10e | [] | no_license | magda-zielinska/python-level1 | f8ca551fb6b136a8eef51a24a617eea475c34b85 | c6a19b6d35a1b68ba6294e82074e3085e8d34c6f | refs/heads/master | 2021-10-21T07:43:37.666621 | 2019-03-03T11:00:21 | 2019-03-03T11:00:21 | 173,561,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
tofind = 5
found = False
for i in range(len(list)):
found = list[i] == tofind
if found:
if found:
print("Element found on index: ",i)
else:
print("absent")
drawn = [5, 11, 9, 42, 3, 49]
bets = [3, 7, 11, 42, 34, 49]
hits = 0
for ... | [
"zielinska.magdalen@gmail.com"
] | zielinska.magdalen@gmail.com |
893302d6151ff683089fe6f7d3fd8ab6e7f1dff7 | a6b83ca764b8e81b2f3dad64fad1fc4e5eaa2acb | /tests/github_api_test.py | 9c26c2552200ee9ca82849ae6f356308aea6ed41 | [
"MIT"
] | permissive | wilcarllopez/search-github | c919cfbc265c8915269d2bdc2a8a5fe8d02f509d | a6b6900458356fee9e04ced8373b83aca5d8887e | refs/heads/master | 2020-08-29T06:13:05.497151 | 2019-10-28T09:04:19 | 2019-10-28T09:04:19 | 217,951,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | import github_api
import pytest
import time
timestr = time.strftime("%Y-%m-%d-%H-%M")
def test_timestamp_name():
assert github_api.timestamp_name() == timestr
def test_main
if __name__ == '__main__':
pytest.main() | [
"wilcarllopez@gmail.com"
] | wilcarllopez@gmail.com |
20d336dd81d1a78129de182250f5ee075f1ebcf2 | c1f6e3e590e735e89fcdefda914ab1eec914da2d | /src/python/design/1396_design_underground_system.py | 715d7811568134b99b7e9f85f7f9db01abdde0f6 | [] | no_license | alannesta/algo4 | eb1e3c64a6bf27f55bb6b0a16efc4188f5f97da4 | 46bd8d1b44cb19aa773cc072cc9be97e9a0e348d | refs/heads/master | 2022-11-28T14:33:44.863799 | 2022-11-25T22:02:03 | 2022-11-25T22:02:03 | 55,170,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,428 | py | """
https://leetcode.com/problems/design-underground-system/
"""
from collections import deque
class UndergroundSystem:
def __init__(self):
self.check_in = {}
self.check_out = {}
def checkIn(self, id: int, stationName: str, t: int) -> None:
self.check_in[id] = (stationName, t)
d... | [
"alannestacao@gmail.com"
] | alannestacao@gmail.com |
837047daafa3fbf8fb518cb9e035f1e52f6c5d52 | b3763ef899a1edd70867937e4e52277eaf1aa131 | /twitter.py | 62cd8003b720c0d803a6d0d9f94564ec8270d9bf | [] | no_license | ShamarB/Twitter-Bot | 62085022b4f887f2a9000d53fc2682fae3a5fafb | 709f40a4406bc805e87325ebb89c63bbdd903b8d | refs/heads/main | 2022-12-31T00:19:55.873900 | 2020-10-18T19:49:14 | 2020-10-18T19:49:14 | 305,182,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | import tweepy
import time
auth = tweepy.OAuthHandler('J0UjmyOsjZ7zYSpYnWrXNEOva',
'Kv2tI5Vv2NDPA0J4HI3RfbJCXr8XvJRYfx6byJOIxXecAXbZWD')
auth.set_access_token('1256998173513601025-a66icjGaHBv1JvuJiLKhhkVz9ShEqG',
'0KT5p6UZIH7ULjN6Zv9nYnXwjwd77SAqzGAvg8PV4Zv7z')
api = tw... | [
"noreply@github.com"
] | noreply@github.com |
7f719fe21255f1516a7e17bf22bfd468c890e9fc | 62451177214eb0a3cfc8f0b89b2a14ab898bf533 | /lecture_7/server_multi.py | ca5cd412efb4d4ee72b0ccda3dfc7479b0db449c | [] | no_license | ethanbar11/python_advanced_course1 | af4b0e20e640bda4d69986abb67958bd4eb181a1 | 05e7ce5c47aecc209f3540e66e180fd1da7b0282 | refs/heads/master | 2023-01-03T20:56:37.135804 | 2020-11-03T19:08:31 | 2020-11-03T19:08:31 | 293,882,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | import threading
import socket
import time
import python_advanced_course1.lecture_5.FILE_DAL as DAL
from queue import Queue
serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
serversocket.bind(('127.0.0.1', 8089))
serversocket.listen(5) # become a server socket, maximum 5 connections
print("Started list... | [
"ethanbarbar@gmail.com"
] | ethanbarbar@gmail.com |
5979042ecef7aab7fc251af4efd1c0f05b6ca7eb | 9a28e0cecdf71cdb4eccdfc7df2554bd421fa69f | /src/hio/core/udp/udping.py | bff163c93346be5c63bb8cf904ea68b1a1ca4e35 | [
"Apache-2.0"
] | permissive | cellofellow/hio | a1700f3c8abc8100926dc4fc0af87efc294f6917 | 1296d196543ad01829dcb86844dfd5881af5a038 | refs/heads/master | 2023-04-04T01:27:01.449465 | 2021-04-08T17:26:01 | 2021-04-08T17:26:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,837 | py | # -*- encoding: utf-8 -*-
"""
hio.core.udping Module
"""
import sys
import os
import errno
import socket
from binascii import hexlify
UDP_MAX_DATAGRAM_SIZE = (2 ** 16) - 1 # 65535
UDP_MAX_SAFE_PAYLOAD = 548 # IPV4 MTU 576 - udp headers 28
# IPV6 MTU is 1280 but headers are bigger
UDP_MAX_PACKET_SIZE = min(1024, UD... | [
"smith.samuel.m@gmail.com"
] | smith.samuel.m@gmail.com |
9e632c4957701975b56b0cf5058c385bbb10f102 | a1cc4d924019b4afc952ca70686b1950d3ce9890 | /ts_ws/src/villa_sound/calibration/tsp_gen.py | a2933fb0d1d03e293d8bcb9fdb4d6f8c5ceed186 | [
"MIT"
] | permissive | dsadhvi/Robot-Says-Hello | 95f06d6a905805b64f4aaca68f5abc3156bba9f4 | 3c3884ed521d19951190b0e9b000ea7e7bf15950 | refs/heads/master | 2020-03-31T01:06:35.628243 | 2018-10-05T20:49:23 | 2018-10-05T20:49:23 | 151,767,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,528 | py | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
def get_tsp(N, Fs, flg_ud=1, flg_eval=0):
if np.log2(N) != int(np.log2(N)):
print "TSP length must be power of 2"
return 0
elif N<512:
print "TSP length is too small"
return 0
if flg_ud != 1 and flg... | [
"tracyzhang98@gmail.com"
] | tracyzhang98@gmail.com |
4d3c277d48f00fc1623f502f3285e30fdd567644 | 355a9053a17ced7d076e6fb519c57d04eedb15cc | /logger_test/logger_test/views.py | b00bb60d1a1a8e966f7fd1646710d0082e3aeb74 | [] | no_license | prafulbagai/seynse_logger | 7bbdafcd64e7117a08020e4d1dd1095959063820 | e40999855609cd74dc2d650bb8e24192d809e9fd | refs/heads/master | 2023-05-26T22:14:49.584008 | 2020-09-09T07:49:11 | 2020-09-09T07:49:11 | 215,993,615 | 0 | 0 | null | 2023-05-22T23:55:30 | 2019-10-18T09:53:53 | Python | UTF-8 | Python | false | false | 612 | py | import seynse_logger
from django.http.response import HttpResponse
import logging
try:
from django.views import View
except ImportError:
# for django >= 1.8
from django.views.generic import View
logger = logging.getLogger('test')
class Testview(View):
def get(self, request, **kwargs):
seyns... | [
"praful.bagai1991@gmail.com"
] | praful.bagai1991@gmail.com |
fcbbaec32e58baf63051f622962e9ba754e5e366 | 908655251066427f654ee33ebdf804f9f302fcc3 | /Tests/Pedestrian/Pedestrian_AS.py | 6fca7c3c2b9f432c82c945dd4a51c48690014dc8 | [] | no_license | maxiaoba/MCTSPO | be567f80f1dcf5c35ac857a1e6690e1ac599a59d | eedfccb5a94e089bd925b58f3d65eef505378bbc | refs/heads/main | 2023-07-05T02:20:16.752650 | 2021-07-06T06:04:40 | 2021-07-06T06:04:40 | 381,811,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | import mcts.AdaptiveStressTestingActionSpace as AST_AS
import mcts.ASTSim as ASTSim
import mcts.MCTSdpw as MCTSdpw
import mcts.AST_MCTS as AST_MCTS
import numpy as np
from Pedestrian.av_simulator import AVSimulator
from Pedestrian.av_reward import AVReward
from Pedestrian.av_spaces import AVSpaces
from mylab.envs.ast_... | [
"xiaobaima@DNab421bb2.stanford.edu"
] | xiaobaima@DNab421bb2.stanford.edu |
f44a5ef509cc3d410ad21ed3d5894b8dd2dd39a1 | 3795492e4e54fa58f31d60f52b13029743ac46c5 | /texttospeech.py | 8c5784873a4053e417f9637e48cbab1e8ba9e1c4 | [] | no_license | suyogsrajput/speechrecognition | 25d285cc81b4d9a72d0d201c14fca4845bc6da41 | f74f51925e2ec55deb8d29b7ca28578588bccdef | refs/heads/main | 2023-05-14T03:04:17.596347 | 2021-06-07T09:37:59 | 2021-06-07T09:37:59 | 370,767,772 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,111 | py | #import libraries
from tkinter import *
from gtts import gTTS
from playsound import playsound
import speech_recognition as sr
import os
#Initialized window
root = Tk()
root.geometry('450x400')
root.iconbitmap('voice.ico')
root.resizable(False, False)
root.config(bg = 'slate blue')
root.title('Speech Recognition')
#... | [
"37499425+suyogsrajput@users.noreply.github.com"
] | 37499425+suyogsrajput@users.noreply.github.com |
24f18f2f5ba05f52b01dba5c980b7d7789d33f9a | 2ae95f690e0ed16a730aee9544b4b8f63789a0a4 | /tsv/verify_tnTSV.py | 0d6db7fc6de50f0adf8d4c2f25a542da362e6912 | [
"MIT"
] | permissive | unfoldingWord-dev/tools | 9f147672719e9e570f9f39cf38f915a9b4c25b64 | f337286a99e11d5ceb1537bff07ee10f0d6c07ed | refs/heads/develop | 2023-08-09T15:00:16.883806 | 2023-07-31T19:43:53 | 2023-07-31T19:43:53 | 11,344,473 | 7 | 14 | NOASSERTION | 2022-12-11T08:05:58 | 2013-07-11T14:44:36 | Python | UTF-8 | Python | false | false | 28,817 | py | # -*- coding: utf-8 -*-
# Python 3 script for verifying proper format of each row in a TSV tN file.
# In a TSV file, column 9 (OccurrenceNote) corresponds to a single tN file in markdown format.
# Within that field line breaks are coded as <br>, not newline characters.
# A newline terminates the entire row.
# The scrip... | [
"lversaw@gmail.com"
] | lversaw@gmail.com |
6a0a152d8eac4dcc2acedafa4d2959f0305b7068 | 9bb6c115e2747d451c7beb2a376be26c6e7df11f | /common/randomic.py | b9d35bd330c3d2ecb0d7206e26694fc0d2f402b7 | [
"MIT"
] | permissive | Marcoshsc/TravelingSalesmanProblem | 2b81ba3264a3de831e82943e7a28c083aa1ba60c | 4895c0f487c65cb5737bcad21252d3f5730b8d87 | refs/heads/main | 2022-12-27T03:37:04.646698 | 2020-10-14T16:41:45 | 2020-10-14T16:41:45 | 301,831,696 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | from typing import List, Tuple
import random
def getRandomGraph(vertexes: int, minimumWeight: float, maximumWeight: float) -> List[List[float]]:
if minimumWeight >= maximumWeight:
raise Exception('Range de valores inválido.')
matrix: List[List[float]] = [[0 for j in range(vertexes)] for i in rang... | [
"marcoshscunha@hotmail.com"
] | marcoshscunha@hotmail.com |
a02188849028431aad61eadd6cd314b320516ca9 | 045dcb3072a2c6426346769fbb60f0fa9e2eddc9 | /models/test.py | 808b6aa165bbbb4ff1f7c2409fbaea30d9e62d06 | [] | no_license | vasilisa/api-brainexp2 | 73a6cf9c77a6961bbe48f755af5a0365166d9920 | b02d6d7f9034fa23d1ce64d9a55fa34667d1b904 | refs/heads/main | 2023-06-16T07:15:47.687602 | 2021-07-06T09:37:06 | 2021-07-06T09:37:06 | 357,216,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | """User model"""
from sqlalchemy import Column, Integer, BigInteger, ForeignKey, DATETIME, Float, VARCHAR, Text, Boolean, String, DateTime,JSON
from models.db import Model
from models.base_object import BaseObject
import datetime
class Test(BaseObject, Model):
'''
This is the table where we put the colle... | [
"vasilisaskv@gmail.com"
] | vasilisaskv@gmail.com |
69c21096b237b9ce16e3b4da5793975e146ff2be | 570a233b0ee62449c79c0818f47e572c003cecbd | /Regression_Video_Demo.py | 98c905a144ba7ca416ba21bd2c848e2cb592c648 | [] | no_license | muxiyang/Muxi-Repository- | 10c369c0c2d73f0331554f0233485e2b9211c294 | 430d5a22b3ef91e3eab01144374e9fdd57d52fdc | refs/heads/master | 2021-01-15T11:14:46.197783 | 2015-04-20T00:21:24 | 2015-04-20T00:21:24 | 29,981,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | from __future__ import division
from pandas import Series, DataFrame
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import ttest_ind
import statsmodels.api as sm
from dateutil import parser # use this to ensure dates are parsed correctly
main_dir="/Users/newlife-cassie/Deskto... | [
"muxi.yang@duke.edu"
] | muxi.yang@duke.edu |
e8105a52366def54b4792b62845b992e68d47ddd | 0033af08265ef1853b3f9c6116a85a1c78ca8684 | /modu/python_numpy_tutorial.py | a28ef48236c287f75cb7abdb1a2a7ac009ffb0ef | [
"MIT"
] | permissive | godong9/ml | ffe9b6bba0b5a51555d2cf68035541cb1b30ef7e | 2c735376f4366000685cd97de5df31aabc1c597e | refs/heads/master | 2020-03-25T03:45:29.786540 | 2018-10-02T09:52:12 | 2018-10-02T09:52:12 | 143,358,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | # http://cs231n.github.io/python-numpy-tutorial/
nums = list(range(5)) # range is a built-in function that creates a list of integers
print(nums) # Prints "[0, 1, 2, 3, 4]"
print(nums[2:4]) # Get a slice from index 2 to 4 (exclusive); prints "[2, 3]"
print(nums[2:]) # Get a slice f... | [
"godong9@gmail.com"
] | godong9@gmail.com |
2d5b940d77d34b7de17384dd4e26469ae2274991 | 85c618a75b722b7f3111c44262871bca4a9d0f8f | /tests/lee20130628.py | 79902071098741ab6a8353048dc511a16806f510 | [
"CC0-1.0"
] | permissive | yaukwankiu/armor | 1969ba0fb850f8cec80f7f25f0c2d6cf1bc8dc22 | 6c57df82fe3e7761f43f9fbfe4f3b21882c91436 | refs/heads/master | 2020-05-18T09:17:13.654568 | 2014-12-12T00:08:49 | 2014-12-12T00:08:49 | 20,916,678 | 1 | 0 | null | 2014-07-15T06:20:22 | 2014-06-17T08:54:34 | Python | UTF-8 | Python | false | false | 356 | py | # to test professor lee's proposed algorithm of global comparison
# c.f. https://docs.google.com/file/d/0B84wEiWytQMwQnZrcU50Q29rZnc/edit?usp=sharing
# 28-06-2013
"""
step 1: compute the centroids, and axes
step 2: transform the NWP data to RADAR data linearly
step 3: calculate the correlation
step 4: set the thres... | [
"yaukwankiu@gmail.com"
] | yaukwankiu@gmail.com |
160221ba014060dc697eb128268aa8bdc031c938 | df0481ec6f72caab283cd27dc20e689cb72d48ce | /news_api/wsgi.py | 3e6f1e1aa7ad9f795c1dd09df3453d431ecbf918 | [
"MIT"
] | permissive | kbakhchedzhy/news-api-board | b1342739fcab9e87547f1cd6ffe270e7926cfe1e | 49cd9e1c34eb7c92e5362a10ead58dd05325e65e | refs/heads/master | 2023-06-04T23:06:20.360141 | 2021-06-14T21:18:00 | 2021-06-14T21:18:00 | 376,905,209 | 0 | 0 | null | 2021-06-14T20:11:01 | 2021-06-14T17:29:51 | Python | UTF-8 | Python | false | false | 393 | py | """
WSGI config for news_api project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"k.bakhchedzhy@gmail.com"
] | k.bakhchedzhy@gmail.com |
c340f5ae35cb6ada1d2fe7cae70e4fcd2150d17a | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.5_rd=0.8_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=32/sched.py | 95f1fd42aa48e0981658416011cf8039490df40a | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | -X FMLP -Q 0 -L 3 85 400
-X FMLP -Q 0 -L 3 62 200
-X FMLP -Q 0 -L 3 61 200
-X FMLP -Q 1 -L 2 55 300
-X FMLP -Q 1 -L 2 54 175
-X FMLP -Q 1 -L 2 35 200
-X FMLP -Q 2 -L 1 32 125
-X FMLP -Q 2 -L 1 25 100
-X FMLP -Q 3 -L 1 25 175
-X FMLP -Q 3 -L 1 22 100
14 150
10 250
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
9ebb16b914fced04b98c5b6a064841ca987a4e17 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/test/test_negative_word_packet.py | 2d84a0b0df973bbdbe590260f3d6719c3f2cf800 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 688 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import baiduads
from baiduads.negativeword.model.negative_word_packet import NegativeWordPacket
class TestNegativeWordPacket(unittest.TestCase):
"""NegativeWordPac... | [
"tokimekiyxp@foxmail.com"
] | tokimekiyxp@foxmail.com |
f66d367cd6e818d2f464c01786bf01dada756def | fae0230fae5f2e762e299785cbd66ebf7330d937 | /watchtower/_io.py | 9474a5b819d01bd7b9c93eb35a3e6ecabc9bf44c | [] | no_license | NelleV/watchtower | e4bb6c178cfaf9bf909018692662769153a64d2b | 39b5ab198ed03cf4e0b11aa766683b244125bd58 | refs/heads/master | 2022-10-09T18:32:36.344014 | 2022-09-28T10:02:10 | 2022-09-28T10:02:10 | 80,778,407 | 1 | 3 | null | 2017-04-10T18:32:18 | 2017-02-02T23:19:39 | Python | UTF-8 | Python | false | false | 651 | py | import pandas as pd
import os
def _update_and_save(filename, raw, old_raw=None):
"""
"""
if old_raw is not None:
raw = pd.concat([raw, old_raw], ignore_index=True)
if "id" in raw.columns:
subset_column = "id"
elif "sha" in raw.columns:
subset_column = "sha"
... | [
"nelle.varoquaux@gmail.com"
] | nelle.varoquaux@gmail.com |
3c52afe069397e41486a991fd1e98c2ef777447d | 3d989666e6ceb2abc9175dcf7b1d0c1f8c76d205 | /py_solution/p172_factorial_trailing_zeroes.py | 2e88229ace7c046a24203162ad16036725347fd1 | [] | no_license | dengshilong/leetcode | 00ae0898b4645efd1de69a13f2fa92606e899297 | 5ab258f04771db37a3beb3cb0c490a06183f7b51 | refs/heads/master | 2021-01-10T11:58:10.396399 | 2020-04-10T12:10:54 | 2020-04-10T12:10:54 | 47,912,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | class Solution(object):
def trailingZeroes(self, n):
"""
:type n: int
:rtype: int
"""
res = 0
while n >= 5:
temp = n // 5
res += temp
n = temp
return res
if __name__ == "__main__":
solution = Solution()
assert sol... | [
"dengshilong1988@gmail.com"
] | dengshilong1988@gmail.com |
a9e659c7b7d5d6885ceeb0b122e3403266a264f2 | a5b4e9f912eb4b76ff573c36d34d2b0d031bc2c3 | /lapac/replay.py | c606ea1783c236b9bcd00e8739439bf65f5f2337 | [] | no_license | harwiltz/lapac | d13d99c323fd1357fe24b5ce2492ca4a64b5586d | 7ed711a162e48e545d9f9f515eef0fe91a96b430 | refs/heads/master | 2020-11-27T15:55:40.674235 | 2019-12-22T06:16:03 | 2019-12-22T06:16:03 | 229,519,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | import numpy as np
import torch
class SequenceReplayBuffer(object):
def __init__(self, capacity, sequence_length, image_shape, action_shape):
self._pointer = 0
self._image_buf = np.zeros(shape=(capacity, (sequence_length + 1), *image_shape))
self._action_buf = np.zeros(shape=(capacity, sequ... | [
"harley.wiltzer@mail.mcgill.ca"
] | harley.wiltzer@mail.mcgill.ca |
800a94fabc0155c29398bcc17a0e4d8358db9725 | 494f52fcf12e90b57e52771c7dd3954b99383bfb | /Server.py | 6e7e3e038a7b99ac862c18a1827e5ba292f1192f | [] | no_license | EricLuoisme/Network-Testing | 7af4c5f63806737ab6b6c11e7188694ac9aa58f2 | 9a25a35da2f65ff96230c7b2fd61f6ec642b00ea | refs/heads/master | 2020-04-16T17:51:37.912795 | 2019-01-15T07:57:37 | 2019-01-15T07:57:37 | 165,791,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py |
# Echo server program
import socket
import sys
HOST = '127.0.0.100' # Symbolic name meaning all available interfaces
PORT = 50007 # Arbitrary non-privileged port
s = None
for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC,
socket.SOCK_STREAM, 0, socket.... | [
"u6270944@anu.edu.au"
] | u6270944@anu.edu.au |
4b264c20eb1bab3755a8cd94df85f8220efbec42 | 6488bfaf433fcdcaac0534d099ea3cb368c7a0a9 | /Trees/BinarySearchTree.py | d66cc702cd56c9879660f5c36672f154c0b5a7a7 | [] | no_license | nma96/Python-Libraries | 413074c2a19732bdf9a4c0dfb7153daceb1cc18f | 3c6491584287e9c9464c90e6e48621619f7f9f6e | refs/heads/master | 2022-11-04T20:36:20.544296 | 2020-06-20T02:57:29 | 2020-06-20T02:57:29 | 273,060,779 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,734 | py | class TreeNode:
def __init__(self, key, val, left=None, right=None, parent=None):
self.key = key
self.payload = val
self.leftChild = left
self.rightChild = right
self.parent = parent
def hasLeftChild(self):
return self.leftChild
def hasRightChild(self):
... | [
"nikhilaatrei96@gmail.com"
] | nikhilaatrei96@gmail.com |
15d3ac01514ea7cdfe700a4c8d1989e8ffef3f2f | f6f24e56f8d3fa576950c7c8008a91502d19938b | /keep/lasthit_07_1vs1 1 creep/server/webservice.py | d82d81e3b2007426f07b53b4798b1d377742b8a0 | [] | no_license | peachman05/BotLastHit | dc42862496f8b61c9efd4476832e29554f08f12f | d48917d56a76de81ab35a1067cf011a41fd96001 | refs/heads/master | 2021-09-07T23:48:24.892765 | 2018-03-03T14:06:48 | 2018-03-03T14:06:48 | 119,542,895 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | from flask import Flask, jsonify, request
from DQN import DQNAgent
import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" # see issue #152
os.environ["CUDA_VISIBLE_DEVICES"] = ""
app = Flask(__name__)
num_state = 31
num_action = 5
num_hidden_node = [24,24]
# m =
dqn_agent = DQNAgent(num_state,num_action,num_hi... | [
"patcharapon1995@gmail.com"
] | patcharapon1995@gmail.com |
5e532275021cbb80eefe6334a4bee586a7e19910 | 79a273c1f2b59ae9adb3f721b228f889aa8b3f8e | /Examples/Alok Saboo/homeassistant/python_scripts/meta_device_tracker.py | 1552a0ab345521cdd9a42f08f3708398cd8c917f | [] | no_license | AndrMoura/DISHASS | 874e3566c212540f71383b8d95810264b957c44e | 5f5e987313d76d0a8796e093257bf7c66c399c5f | refs/heads/master | 2020-04-12T19:59:11.499861 | 2019-01-31T00:05:18 | 2019-01-31T00:05:18 | 162,723,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,318 | py | # Combine multiple device trackers into one entity
# You can call the script using the following:
# - service: python_script.meta_device_tracker
# data_template:
# entity_id: '{{trigger.entity_id}}'
# OPTIONS
# List the trackers for each individual
RashmiTrackers = ['device_tracker.rashmisiphone', 'device_tracke... | [
"12pita3naru@gmail.com"
] | 12pita3naru@gmail.com |
2b7a2c90bae671eb7855d16bc122acb73d9dafdc | a16f3f148455395596405fd7b11df62932f3937d | /career/rabbit/send2.py | 8701013073a594d7af24fe5ebb5aa71253c6e7c5 | [] | no_license | wyzane/skill-general | 8eeb5984c42ec2bcb59c634c7f7bca7c2476977b | 6e5a498dd5b63117a6a20aa81ac67a1999d8ac21 | refs/heads/master | 2020-05-22T21:51:18.061659 | 2019-10-18T15:56:26 | 2019-10-18T15:56:26 | 186,535,789 | 0 | 0 | null | 2019-10-18T15:52:54 | 2019-05-14T03:12:39 | Python | UTF-8 | Python | false | false | 619 | py | import sys
import pika
conn = pika.BlockingConnection(pika.ConnectionParameters(host='localhost'))
channel = conn.channel()
channel.queue_declare(queue='task_queue',
durable=True) # 消息持久化,重启rabbitmq消息不会丢失
message = ' '.join(sys.argv[1:]) or "hello world"
channel.basic_publish(exchange='',
... | [
"wyzane1207@163.com"
] | wyzane1207@163.com |
b852ccf65e8fa19c3838b3e99c7100195235941a | e3f894dae716fbd1edde76c1789bb0dc25e601c9 | /balance.py | ac1da60722c6bc866032d133bdc8682dd450c637 | [] | no_license | Wizard-C/Telegram_mining_bot | f2c244b75a83da4ffdce7ac249d0f3bdc653b179 | 45ecfc67836f8e171cf09af842feaf5b0673e634 | refs/heads/master | 2022-11-25T05:44:05.626025 | 2020-07-20T16:59:10 | 2020-07-20T16:59:10 | 279,015,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,133 | py | import sqlite3
import time
from telethon import TelegramClient
from telethon import sync, events
import re
import json
db = sqlite3.connect('Account.db')
cur = db.cursor()
number_of_iterations = 2
total_amount = 0
try:
for i in range(1, number_of_iterations+1):
cur.execute(f"SELECT PHONE FROM Account WHE... | [
"BlueSkyC@mail.ru"
] | BlueSkyC@mail.ru |
97beac3332700720db92a2a52b747a1469c1e80d | 027bcc7f55e1c545856f388d14d6738c70700883 | /speech/data/ingest_librispeech.py | c01634ca64f71966dbe9618cb4d08cfb8e9b429d | [
"Apache-2.0"
] | permissive | robustfengbin/deepspeech | f3e6c2b80f87084d93cb707adc23605b5efcce3d | b3d430edb205efd43cb6601be8607e3c51619569 | refs/heads/master | 2021-01-11T10:56:42.901481 | 2016-12-10T22:32:02 | 2016-12-10T22:32:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,070 | py | #!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright 2015-2016 Nervana Systems 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
#... | [
"tyler@nervanasys.com"
] | tyler@nervanasys.com |
e323a7b70656382f9009af5a4de1ccca1ecb70fb | d7c1ca8277cdbc946ba82c5f0aef86d22d2c43f0 | /node_modules/bignum/build/config.gypi | 07b2952803e45d3ca36d9ccf361791210b4646a7 | [] | no_license | raullorenzo/Pallier | 61dc4a6f18933b690e95714acca063f86649af88 | cb1fe99573b2f03af635ad3f38a333d5af9de981 | refs/heads/master | 2020-06-30T00:28:26.611530 | 2016-11-21T20:11:29 | 2016-11-21T20:11:29 | 74,401,484 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,905 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"host_arch": "x64",
"icu_data_file": "icudt56l.dat",
"icu_da... | [
"raul.lorenzo.67@gmail.com"
] | raul.lorenzo.67@gmail.com |
1d88980928f6cf4ef48ca98063f11a2b663fe55c | 55020ba15fecc1b6cafb86b949dec7f0441c785b | /code/road_mask.py | 297ca6e8cae008d8d42b775ff40a3db37ae1f2d6 | [] | no_license | MingZx8/satellite | ec2386d67a615cc4031bfe811c2552d0fb163727 | 557d641cf826e65cfaa4861da36397191d12fa46 | refs/heads/master | 2023-04-20T00:32:02.749423 | 2021-05-10T15:29:50 | 2021-05-10T15:29:50 | 238,007,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,078 | py | # Python version: Python3.6
# @Author: MingZZZZZZZZ
# @Date created: 2020
# @Date modified: 2020
# Description:
import pandas as pd
import geopandas as gpd
from shapely.geometry import Polygon, LineString, Point
from shapely import wkt
import math
import numpy as np
import cv2
import difflib
import os
from sklearn.clu... | [
"noreply@github.com"
] | noreply@github.com |
e7d0a57e61f5128144b8fba4688b78dcef94f422 | fce6b6b1d7b289caf17a71961f9b8879cfd31cbc | /app.py | d89d224d1fb053e1506d9e8edda8cd6c3f6a0e53 | [] | no_license | bigboy32/IITRoorkee-Hackathon-Project | f5c9c4e1326a2a2cfd8c0c21504d59c239e56576 | 4760113c4b9bedd4fc17f9e51aa135eeb700a4b2 | refs/heads/main | 2023-02-16T04:40:47.880885 | 2021-01-05T14:59:22 | 2021-01-05T14:59:22 | 326,495,922 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,486 | py | from indic_transliteration import sanscript
from indic_transliteration.sanscript import transliterate
import eel
import random
import string
import time
import os
import sys
import pickle
import configparser
import requests
eel.init('backend')
str2dev = lambda data: transliterate(data, sanscript.HK, sanscript.DEVA... | [
"anantha1.coolkopf@gmail.com"
] | anantha1.coolkopf@gmail.com |
57fba70996c5020d941fdc5ac32be0f9eb38101e | e6acc3021714e47345213d13d6344e2d89d4a960 | /streamlit_analytics/__init__.py | 52fbbd335c80c4ce6d68b508bce9a1106a4d77f0 | [
"MIT"
] | permissive | napoles-uach/streamlit-analytics | 157aa7521647dbe490c75af893361aa6e0ff613b | fe5a7855889a66cf8d6f3eabf8841f5c00e9b492 | refs/heads/main | 2023-03-01T20:42:58.361148 | 2021-01-29T23:32:28 | 2021-01-29T23:32:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | __version__ = "0.2.1"
from .main import track, start_tracking, stop_tracking, counts
| [
"johannes.rieke@gmail.com"
] | johannes.rieke@gmail.com |
a6d4c52e7e37fccfa1084300681c5bb04d9ed311 | 3074f3d65df6b4a539e0c3551036861ddeffa2c8 | /Lab 1/http_getter.py | f9a83ac236d6e601af3bc0b34b2324a6c40c4cfa | [] | no_license | VladCroitoru/SI-labs | 3b294aa6afad711a9c46f94d9dc785e8bae957e0 | 8f5d92acf25cfdc699eb3bd10ce0828975f239cf | refs/heads/master | 2021-09-13T09:26:16.239564 | 2018-04-27T19:12:43 | 2018-04-27T19:12:43 | 106,518,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from urllib2 import urlopen
url = 'http://agora.md/categorii/actual'
response = urlopen(url)
#data = str(response.read())
#print(data)
print(str(response.read()) | [
"noreply@github.com"
] | noreply@github.com |
2574993ffb7fa1778720fb71a93a76a1a38674a9 | 499a3bb112d4416df9fe5184107ed2798f669410 | /train.py | b60d5dc1455aaffd7a1f83cedcb8397493fa5eee | [] | no_license | KerrWu/GANomaly | 9dfa77fb63dc0e84d6088fa0a1aeca49bf4a40be | a9d5a97fb1463d686d40c30bd8590bd139010cf0 | refs/heads/master | 2020-06-22T16:59:05.118798 | 2019-07-19T12:28:07 | 2019-07-19T12:28:07 | 197,749,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | """
TRAIN GANOMALY
. Example: Run the following command from the terminal.
run train.py \
--model ganomaly \
--dataset UCSD_Anomaly_Dataset/UCSDped1 \
--batchsize 32 \
--isize 256 \
... | [
"wz_0818@163.com"
] | wz_0818@163.com |
2cd609a30463f7c20347425e3e0629b4dc0a16a4 | 861f7ada9137bc2ee025dce11de194991dd05bde | /blog/migrations/0001_initial.py | d708ab237e0a189bd1fae35bfa2c16541ad67f00 | [] | no_license | SpiritForge/my-first-blog | 2ad582ffdebd1b651aed43e4b70e33b9a7e47ad1 | 760f1504bb0add6ed31c4094e9a761352396d1b4 | refs/heads/master | 2021-01-10T15:45:54.763763 | 2016-02-19T01:54:27 | 2016-02-19T01:54:27 | 52,053,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-02-17 02:31
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depende... | [
"jack.tinker@gmail.com"
] | jack.tinker@gmail.com |
820d4de9dbd33948240b4ae2add3a0af6d4424e9 | 7a48df5a4405c295eb28f8f6b5a112207c20ceda | /setup.py | 7bd61ce40cd3614969d5d0eaa3ca24a0f60136e4 | [
"BSD-2-Clause"
] | permissive | deebuls/youbot_pykdl | 86fdf20d66ae0cf8fde5a332563ebdd4f2d2b6b1 | bff0d41000e7c5c3dd1ee0dfabfbcc1a3f9152e8 | refs/heads/master | 2021-01-19T08:23:41.898014 | 2015-06-30T00:46:14 | 2015-06-30T00:46:14 | 38,256,716 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | #!/usr/bin/env python
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
d = generate_distutils_setup()
#d['packages'] = ['youbot_pykdl', 'youbot_kdl', 'urdf_parser_py']
d['packages'] = ['youbot_pykdl', 'youbot_kdl']
d['package_dir'] = {'': 'src'}
setup(**d)
| [
"deebuls@gmail.com"
] | deebuls@gmail.com |
76eeb3e354352d6dfd8a7b6d6e3e27b30af289a5 | 43eb7f8581a8dbfa1298b4e6d84fc7b7a552e335 | /python/kserve/kserve/models/v1beta1_inference_service_status.py | f509e6bb2db9b1958db1fd812b355ccd0c7546b0 | [
"Apache-2.0"
] | permissive | Suresh-Nakkeran/kserve | c2d114f7258a70b4c8ddeb8ee8c584d4eee0f81b | d3910e0fc6af4bf73156a53bd912d6e4acc87533 | refs/heads/master | 2023-07-29T00:17:28.900100 | 2021-09-11T08:04:54 | 2021-09-11T08:04:54 | 406,243,335 | 0 | 0 | Apache-2.0 | 2021-09-14T05:59:05 | 2021-09-14T05:59:04 | null | UTF-8 | Python | false | false | 9,203 | py | # Copyright 2020 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"
] | noreply@github.com |
f67834c0e802a18408ca646d581289a12ab563d3 | 898510713517c54f851d55cafb86cba7717a5419 | /contiguousArray.py | 3c4bfe410e6a109bdde4da997acf19d3703b44d5 | [] | no_license | Jill1627/lc-notes | dd871816adfdbd3b6f7a8992824277de03b7921c | af28e4070e3cab859bfcdc45aca3f31c1e3325fe | refs/heads/master | 2021-01-13T16:40:02.854268 | 2017-09-02T20:04:06 | 2017-09-02T20:04:06 | 78,187,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | """
LC 525 Contiguous Array - find the maximum length of subarray that have equal amount of 0 and 1
Idea: hashmap, use -1 to represent 0, and 1 to represent 1, whenever there are equal number of 0 and 1, the sum will be 0
Steps:
1. Initialize:
use a hashmap <prefixSum : index>, prefixSum, maxLen, give the map an init... | [
"JillGao@LEIs-MacBook.local"
] | JillGao@LEIs-MacBook.local |
c4063872a4db9b76de528e21e4ace2f7752522c7 | 8b291b1835e0ece5a151edd12d1ff6d26f3813f5 | /student/models.py | 4be944bd72975b3965d7cf36e660642d8f135b50 | [] | no_license | hanul500/yiruma | bebfa6479b191ed670dc87f80b174a67946b34de | 362f2119d78ff7beb43c58868b09c78c7b56c334 | refs/heads/master | 2022-04-28T18:45:05.230948 | 2020-04-29T10:13:27 | 2020-04-29T10:13:27 | 259,372,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | from django.db import models
# Create your models here.
class Studentinfo(models.Model):
def __str__(self):
return str(self.stu_name)
stu_id = models.CharField(blank=True,null=True,max_length=120)
stu_name = models.CharField(blank=True,null=True,max_length=120)
stu_num = models.CharField(blank=True,null=True,max... | [
"hanul500@naver.com"
] | hanul500@naver.com |
9a5d27e164e9b946f450c58e1fa6c0999b915726 | a7de66f4d29c4ecf3abf35182aa6c7b5911bdbf1 | /Final_MyGomoku.py | a61f4c630a45a29981f2158b608dfee63c9a474d | [] | no_license | mengfeidu/GOMOKU-agent-with-python | fe93752219bb31abbd902f74948dd6a2405d60c0 | b153a323a28efe41d217e0b52d97b7db44432c72 | refs/heads/main | 2023-09-02T08:35:46.639576 | 2021-10-23T15:55:34 | 2021-10-23T15:55:34 | 420,104,737 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,518 | py | import random
import pisqpipe as pp
from pisqpipe import DEBUG_EVAL, DEBUG
import math
import copy
import time
pp.infotext = 'name="pbrain-pyrandom", author="Jan Stransky", version="1.0", country="Czech Republic", www="https://github.com/stranskyjan/pbrain-pyrandom"'
MAX_BOARD = 100
board = [[0 for i in ran... | [
"noreply@github.com"
] | noreply@github.com |
549746b4c2e4c7057bd7732d19f58753950efb1d | 5a3c4b802ea7d5ce380c38415929ebaa8799eb06 | /tests/test_analyze_gifs.py | 700b9bad30c536d79dd4ab352c4a24dcff1e0a73 | [
"MIT"
] | permissive | get-wrecked/gifalyzer | fe18855c83b2b9e2188faef92b317fa81e913b4d | 0731d03766cfecf3fc6c64cc17022563da09b85b | refs/heads/master | 2022-04-10T10:57:35.602500 | 2019-06-10T22:32:04 | 2019-06-10T22:32:04 | 93,275,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | import os
import pytest
from gifalyzer import analyze_gif
def test_analyze_gifs_normal():
report = analyze_gif(get_sample('200x202-26-130-130-0.gif'))
assert report['dimensions'] == (200, 202)
assert report['frame_count'] == 26
assert report['frame_delay_ms'] == 130
assert report['last_frame_del... | [
"git@thusoy.com"
] | git@thusoy.com |
a51fd66e325e13d07571a0145b88b73ff676b50b | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/update_database_object_req.py | 698caaaa0fef8649ba108b232f7219fc181dd69a | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,360 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdateDatabaseObjectReq:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): Th... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
b666560c3dfc850b210b32f9e91c4eaeb335a8c9 | 717ee3e48eeffcfb23a39c3401fab97881e00fe2 | /imate/chats/migrations/0003_randomchat.py | ef1423fd9b992122ee63235ac39d6f4ab3acd987 | [] | no_license | cryptic-pr03/iMate | e40a76e792ec0cd5dd1f37175404feef0336c536 | 0a9764ef78d3772faf9299ae8c516b1b7c92504f | refs/heads/main | 2023-08-30T12:56:54.918083 | 2021-11-16T06:20:37 | 2021-11-16T06:20:37 | 418,390,421 | 0 | 1 | null | 2021-11-16T05:19:57 | 2021-10-18T07:27:03 | Python | UTF-8 | Python | false | false | 760 | py | # Generated by Django 3.2.9 on 2021-11-12 19:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
('chats', '0002_message_isread'),
]
operations = [
... | [
"73387559+iDeepverma@users.noreply.github.com"
] | 73387559+iDeepverma@users.noreply.github.com |
ae35cbada08ee521c9e85c146f2064540ce87c83 | fd3c67d988d31b8f1aecfb438a3b14b35d692066 | /Q Learning Sentdex/dqn.py | 5fbeff51e0cc18d3be1f5a34bcb1324930838170 | [] | no_license | iamycee/RL-Algorithms-Tensorflow | c16bf99059bb2369b07384ea16b4406410d141c7 | c9c6ac66e11b41fe79d0af1a04cd894cb85d6906 | refs/heads/master | 2020-05-22T16:01:21.176081 | 2019-07-04T12:33:49 | 2019-07-04T12:33:49 | 186,418,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,101 | py | from keras.models import Sequential
from keras.layers import Dense, Dropout, Conv2D, MaxPooling2D, Activation, Flatten
from keras.callbacks import TensorBoard
from keras.optimizers import Adam
from collections import deque
import numpy as np
import time
import random
from tqdm import tqdm
import os
from PIL import Imag... | [
"yashch.1210@gmail.com"
] | yashch.1210@gmail.com |
3a3c9cb0ae78a1a9de92c0c133fac3c98c5997ff | 443c5305b7df00dff9a7f89906fbb362be3bb334 | /db.py | abc2ad94000afc1a22ce8b71e858ba0c6016a866 | [] | no_license | oliverh100/giphyClone | 30feab387ee97b6dc84c67ca6b615a468fc9d7e1 | 36570b97e66e71af11e29fcf423e08ddbb2c0dfc | refs/heads/master | 2022-12-09T07:24:54.150254 | 2019-06-28T15:11:39 | 2019-06-28T15:11:39 | 193,688,589 | 0 | 0 | null | 2022-12-03T22:27:05 | 2019-06-25T10:42:50 | Python | UTF-8 | Python | false | false | 568 | py | from peewee import *
db = SqliteDatabase('static/gifs.db')
class gif(Model):
filename = CharField()
class Meta:
database = db
db_table = 'gif2'
defered_link = DeferredThroughModel()
class tags(Model):
tag = CharField()
gifs = ManyToManyField(gif, backref='tags', through_model=defered_link)
class Me... | [
"oliverh100@gmail.com"
] | oliverh100@gmail.com |
3642d4130b2a6948154873329d6f8ed1f4a69df7 | 4f408d65db60911f56110c351cb3b64835e0c5fb | /caffe2/python/net_printer_test.py | 2d6f5a172326cc0d170bb65254e0db72b09f873c | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | KeyKy/caffe2_SSD | a02c065aef2dbcfd00faae8be0440d7a4ff0fb76 | 7235688ea5e212dbe8609d780dd94c8c7d9fef54 | refs/heads/master | 2021-09-18T14:36:11.247427 | 2018-07-10T09:59:35 | 2018-07-10T09:59:35 | 89,928,918 | 8 | 5 | null | 2018-07-27T02:14:38 | 2017-05-01T14:04:20 | Jupyter Notebook | UTF-8 | Python | false | false | 2,901 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import net_printer
from caffe2.python.checkpoint import Job
from caffe2.python.net_builder import ops
from caffe2.python.task import Task, final_output... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.