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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f37b4202698b801244e4f37eb349143a2286421f | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /070_oop/007_exceptions/_exercises/templates/GoCongr/035_warnings.py | 64f70487a6f6966148382366c83ea4f50b5aa248 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 682 | py | # # w____
# ________ w____
#
#
# ___ input_body_parameter name unit supposed_maximum
# parameter _ fl.. inp.. 'Enter your @ (in @): '.f.... n.. u...
# __ ? < _ 0:
# r____ V... n.. + ' cannot be negative')
# __ ? > s...
# w____.w... 'suspiciously large value of ' + n..
# r_ ?
#
#
# __... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
066185891cf7e7576cfef986ce1c0702a45d8e9a | 93c53bbc8c4e11341d2722bb4f81c02820040019 | /src/deepproblog/examples/Coins/data/render.py | 874f2a29b1335f0d6595520edb2dfcd00ab55fd0 | [
"Apache-2.0"
] | permissive | 22842219/deepproblog | bbcaa011a97416570a8cb9c8c206378e92864f74 | 6d38e783990551f4030780a1d69c7138fada2020 | refs/heads/master | 2021-12-02T20:53:54.277847 | 2021-08-23T19:32:06 | 2021-08-23T19:32:06 | 416,207,305 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | import argparse
import os
import subprocess
parser = argparse.ArgumentParser(
description="Render the image data for a given csv file."
)
parser.add_argument("set", nargs="+")
parser.add_argument("-b", "--blender_path", default=None)
if __name__ == "__main__":
parsed = parser.parse_args()
blender_path = p... | [
"robin.manhaeve@cs.kuleuven.be"
] | robin.manhaeve@cs.kuleuven.be |
ecb2035d79c085ddb38a35c124bd8f85b3dffa78 | 7563b6c93cb3ff5d3f8177c2433e12a7770a6ae9 | /controllers/asylum.py | 5f0cf66ffea4651dced3b1d960237ef6bd30a6f7 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mswdresden/eden | 53f8258b731edf13c83884d327a11c8d819c2487 | 3f753a20ce2b7cedd2c55770ed333c069df50cf1 | refs/heads/master | 2020-07-28T15:51:19.321264 | 2017-07-07T11:45:36 | 2017-07-07T11:45:36 | 73,409,134 | 0 | 0 | null | 2016-11-10T18:22:17 | 2016-11-10T18:22:15 | null | UTF-8 | Python | false | false | 3,383 | py | # -*- coding: utf-8 -*-
"""
Asylum Controllers
"""
module = request.controller
resourcename = request.function
if not settings.has_module(module):
raise HTTP(404, body="Module disabled: %s" % module)
# -------------------------------------------------------------------------
def index():
"""
App... | [
"msw@3dd2.com"
] | msw@3dd2.com |
64d66805916ab184fcaef2fa588bfe9b5ab6d4d7 | 9792bdc5933a5ef0f886fa4e474a9f69e00b1bdb | /src/mem/ruby/SConscript | bbc2470e6aa5bc93a674def039b9892e9075bfe2 | [] | no_license | BurningAbys2/VIPS_self | 86285a21b5eda0f30415b832311ac197084b45fe | 5372336b3f7d73fd6bd26aacb6cbfbbe6274c637 | refs/heads/master | 2021-05-03T15:24:26.208044 | 2017-04-29T23:36:32 | 2017-04-29T23:36:32 | 62,321,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,814 | # -*- mode:python -*-
# Copyright (c) 2009 The Hewlett-Packard Development Company
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright... | [
"heal@localhost.(none)"
] | heal@localhost.(none) | |
a50a9acd2b6bb3436866491f04bc2b1c6e3bdfcd | c8334686c9ec0cd78d3e72caeb31b660c59b718f | /predict_old.py | 70c41ce035fad4129e11a91b96538c2f1f568ee1 | [
"MIT"
] | permissive | feiliu23/picturesques.ai | 4d1ed7215545ccd3444c87cd3467eee8bfd5e45c | 261609c51118559ee3ce6b45a2bc7b5d9c73b34c | refs/heads/master | 2020-03-18T22:08:23.304008 | 2018-05-04T06:02:43 | 2018-05-04T06:02:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,711 | py | import pandas as pd
import numpy as np
import torch
import torchvision.transforms as transforms
from torch.autograd import Variable
from PIL import Image
class ImagePredictor(object):
def __init__(self, model_path):
self.model = torch.load(model_path)
self.transform = transforms.Compose(
[transforms.Cente... | [
"cwang98@dons.usfca.edu"
] | cwang98@dons.usfca.edu |
1edb79a9fc5cdd76785d4f5fbdf777056346feff | 2bcc421ee345b00cf805c543b37d18b5d019dc04 | /adafruit-circuitpython-bundle-6.x-mpy-20201126/examples/adafruit_io_simpletest.py | 13f48ce77609ae495c9aae8bea5cbbb6b5a5fc34 | [] | no_license | saewoonam/sc-current-source-titano | 5a1ad46889c1b09c168424901fd71cb4eab5c61b | 1c136aa8b61268d9ac0b5a682b30ece70ab87663 | refs/heads/main | 2023-03-02T22:12:26.685537 | 2021-02-09T03:28:01 | 2021-02-09T03:28:01 | 317,299,900 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,684 | py | # Example of using the Adafruit IO CircuitPython MQTT client
# to subscribe to an Adafruit IO feed and publish random data
# to be received by the feed.
#
# Example by Tony DiCola for Adafruit Industries
# Modified by Brent Rubell for Adafruit Industries, 2019
import time
from random import randint
import b... | [
"nams@nist.gov"
] | nams@nist.gov |
eb65aa908bc3f8644df26af7356ffda6535785b4 | 2c77eb263a8ab47446dd218d63d67ab0ad362779 | /solarpv/utils.py | 41787a88a35d547f2e07bee6a3ed308ed2dfd1b1 | [
"MIT"
] | permissive | Lkruitwagen/solar-pv-global-inventory | 54bd6b09ef815d1bb723533ff675764f0b17bd4b | 9940a454de88a39ca92dbabf07e98d8623f0ec8b | refs/heads/master | 2023-09-06T07:58:34.519882 | 2021-11-25T08:55:36 | 2021-11-25T08:55:36 | 223,820,779 | 100 | 17 | null | null | null | null | UTF-8 | Python | false | false | 8,713 | py | import requests, json, os, logging, math
def download_file_from_google_drive(_id, destination):
def get_confirm_token(response):
for key, value in response.cookies.items():
if key.startswith('download_warning'):
return value
return None
def save_response_content... | [
"lucas.kruitwagen@gmail.com"
] | lucas.kruitwagen@gmail.com |
f49434213b1ef00aa5e79b01f4dfce6fdee2fa7a | 759d180ac42a74a9291a1fafd86f120226224f6e | /file.py | cf5c3ab8b666fe9248ddcab5e7f27ec562a97429 | [] | no_license | Iaraseverino/my-first-repo | 817bfe6782289b2bf651ca4bf8913902ea2fa0e6 | 804956b2b79513b590d9686a2c072e9ce3500521 | refs/heads/main | 2022-12-25T22:32:22.006835 | 2020-10-13T20:27:15 | 2020-10-13T20:27:15 | 302,570,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 23 10:17:10 2020
@author: Iari Severino
"""
| [
"iari_Severino@hotmail.com"
] | iari_Severino@hotmail.com |
2ee2d1a1527594c2438196891250d5c469b88f2d | 43ab9b064ab92ac8487bcaa5d0f6546b9483bbec | /python/mouse.py | 5fa7fad3df42cb7a5352029415bd2f6a837022da | [] | no_license | uhbad/micromouseIFC | fc52975d15ab2d1a67985af3e1e447a9c2e5a491 | fc767f29e46f8f1ef4dcc2c6cad7b8d4f3dbc376 | refs/heads/master | 2021-01-20T21:49:08.098996 | 2016-09-17T21:40:02 | 2016-09-17T21:40:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | class Mouse:
def __init__(self, start_wall, n):
self.position = #start position in maze
self.direction = #will be four different directions
self.n = n #number of squares in the maze
| [
"jon.hightower.310@gmail.com"
] | jon.hightower.310@gmail.com |
112fe187347b14db8e486b104480e002a756dd8c | 7ae32748fb910d2542e35c57543fc89f98cd2b1d | /tests/test_lib.py | e9e421020e8b554caa7f433988afc2ac71c66236 | [
"Apache-2.0"
] | permissive | sanjaymsh/dtfabric | 451c87d987f438fccfbb999079d2f55d01650b68 | 9e216f90b70d8a3074b2125033e0773e3e482355 | refs/heads/master | 2022-12-19T09:13:02.370724 | 2020-09-27T05:11:25 | 2020-09-27T05:11:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,535 | py | # -*- coding: utf-8 -*-
"""Shared test case."""
from __future__ import unicode_literals
import os
import sys
import unittest
from dtfabric import reader
from dtfabric import registry
def skipUnlessHasTestFile(path_segments): # pylint: disable=invalid-name
"""Decorator to skip a test if the test file does not ex... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
5df1a79f2d4f00c0022fddc64d2a4fbb0d6b3bf8 | a3f1b4e8cd827421bba3c34031535702232eb419 | /public/neumeeditor/serializers/user.py | b4959b8d7df2e5e675e7af89ae3ceb87bfa1e326 | [] | permissive | jacobsanz97/cantus | dbb888b7d511abe63cc0c5e77b11381e8e895360 | b97033ca34fe1389a296560496d31c2f75c098a2 | refs/heads/master | 2020-08-22T12:33:25.852200 | 2019-03-11T20:44:45 | 2019-03-11T20:44:45 | 216,396,078 | 0 | 0 | MIT | 2019-10-20T16:58:22 | 2019-10-20T16:58:21 | null | UTF-8 | Python | false | false | 208 | py | from django.contrib.auth.models import User
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id', 'username')
| [
"andrew.f.fogarty@gmail.com"
] | andrew.f.fogarty@gmail.com |
26903997659e0a6ffeafaf3ae4e966b68f912e5f | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/cms/djangoapps/contentstore/management/commands/update_course_outline.py | b3ba3bd289199b663c7d1951a01790bf3d31bc50 | [
"MIT",
"AGPL-3.0-only",
"AGPL-3.0-or-later"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 867 | py | """
Management command to create the course outline for a course. This is done
automatically when Studio publishes a course, but this command can be used to
do it manually for debugging, error recovery, or backfilling purposes.
Should be invoked from the Studio process.
"""
from django.core.management.base import Base... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
b05483ba8c1ad06505e52f1248e4d3046941e926 | 0537a1dcfd7580ac4e8ee472c22ece352c010ef6 | /PlantaGUIFuentes/env/bin/flask | e0bddf37e3a08ae0babeac5103bd691c12a2537d | [] | no_license | CamiloSanchez0312/Proyecto2Complejidad | a8e935f0f613b93770f751a8d1589769cbad7fd4 | 9b072540838756759ee9a0ed978b980a1db746ba | refs/heads/master | 2023-01-02T19:55:44.663823 | 2020-10-31T04:24:56 | 2020-10-31T04:24:56 | 308,413,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | #!/home/sanrop/Complejidad/project2/PlantaGUIFuentes/Proyecto2Complejidad/PlantaGUIFuentes/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"santiago.19988@gmail.com"
] | santiago.19988@gmail.com | |
51c55ec4d3adb87bc769bf5e76a5abfeeda74e4f | 9e567b8241ce00e9d53843f5aba11c4a119b079f | /tags/v0_5_2/toolkits/basemap/lib/matplotlib/toolkits/basemap/greatcircle.py | 2e205689bff14ecd1a2a0c9c1f4120bfd5ffb277 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-us-govt-public-domain",
"MIT"
] | permissive | neilpanchal/matplotlib | 3d2a7133e858c4eefbb6c2939eb3f7a328b18118 | 7565d1f2943e0e7b4a3f11ce692dfb9b548d0b83 | refs/heads/master | 2020-06-11T09:20:43.941323 | 2011-01-21T21:50:16 | 2011-01-21T21:50:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,660 | py | import numarray as N
import math
__version__ = '1.0'
class GreatCircle:
"""
formula for perfect sphere from Ed Williams' 'Aviation Formulary'
(http://williams.best.vwh.net/avform.htm)
code for ellipsoid posted to GMT mailing list by Jim Leven in Dec 1999
Version: %s
Contact: Jeff Whitak... | [
"(no author)@f61c4167-ca0d-0410-bb4a-bb21726e55ed"
] | (no author)@f61c4167-ca0d-0410-bb4a-bb21726e55ed |
0731338214b7d071ebe70967a84fe483b50203e3 | 2c957e97817d07f6a618140d374022328d51b840 | /newsWeb/newsWeb/urls.py | 1073ca5bcd50cd1d02ea1f2df213cb39d1b7e72f | [] | no_license | HorribleMe/thssxsy.github.io | a8906b0c220872b3f2773a93f96a6985e8d28477 | 00aee839697c19461b090a608127480f2fe6f677 | refs/heads/master | 2020-12-25T15:29:08.351945 | 2018-05-11T10:32:07 | 2018-05-11T10:32:07 | 62,387,566 | 0 | 3 | null | 2016-07-17T08:32:49 | 2016-07-01T11:12:15 | CSS | UTF-8 | Python | false | false | 1,202 | py | """newsWeb URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"pxxsy@163.com"
] | pxxsy@163.com |
13fd2f0bba875a9a3ee0e1e4dea1ec8de4320261 | 84a9e12041b41db2155d45339fff2499e4d5cd83 | /routes/api/v1/__init__.py | ac0ccc6258b5042c5b6961ece9b37fb44c80d8de | [] | no_license | hacker0limbo/watchlist | 32b01831a2147caf8b7662ceccc06c089a1b3884 | 91afbe677f099869827e262d5385caa10b3583e6 | refs/heads/master | 2023-05-24T16:44:03.435148 | 2019-11-17T11:45:31 | 2019-11-17T11:45:31 | 220,356,378 | 3 | 2 | null | 2023-05-01T21:16:59 | 2019-11-08T00:47:52 | Python | UTF-8 | Python | false | false | 158 | py | from flask import Blueprint
router = Blueprint('api_v1_bp', __name__)
# 需要在注册蓝图之后导入引用蓝图的包
from routes.api.v1 import movie
| [
"stephen.yin@outlook.com"
] | stephen.yin@outlook.com |
b0084b0539780db5582ce0d7f2cdd843f26384e9 | 6defeaa9e3eff61cd861c855ed2f65db2a457564 | /onmt/keyphrase/shrink_pred_files.py | b0f94a88ab0e0f5a110485f683a9c904dd885b63 | [
"MIT"
] | permissive | memray/OpenNMT-kpg-release | 50439d2a58d4499b3a4b1d1fdb586d266c4367e7 | d16bf09e21521a6854ff3c7fe6eb271412914960 | refs/heads/master | 2023-08-17T14:32:04.442881 | 2023-01-31T03:24:46 | 2023-01-31T03:24:46 | 213,238,221 | 222 | 34 | MIT | 2023-07-22T18:03:01 | 2019-10-06T20:23:17 | Jupyter Notebook | UTF-8 | Python | false | false | 6,961 | py | # -*- coding: utf-8 -*-
"""
Some pred files use up too much space, e.g. /zfs1/pbrusilovsky/rum20/kp/OpenNMT-kpg/output/keyphrase/meng17-one2seq/meng17-one2seq-kp20k-topmodels/meng17-one2seq-fullbeam/meng17-one2seq-beam50-maxlen40/pred/kp20k-meng17-verbatim_prepend-rnn-BS64-LR0.05-Layer1-Dim150-Emb100-Dropout0.0-Copytru... | [
"memray0@gmail.com"
] | memray0@gmail.com |
f6373c989bd22ce2c8959f9b63d9482b3dba981a | 271dbb5f0c23ae40f19a8df7dd3f15a44fbe5ae1 | /it-king/day01/while.py | 5c0bdb341ea377ada180d290ccf004639cd7d5df | [] | no_license | obligate/python3-king | a4d1c5c145c3b1c42efe059cf2bbd797d0b3c528 | 2b31400468c7a2621f29f24f82e682eb07c0e17d | refs/heads/master | 2020-05-02T11:45:16.218771 | 2019-03-27T08:05:39 | 2019-03-27T08:05:39 | 177,938,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | # Author: Peter
count = 0
while True:
print('count:', count)
count = count + 1
| [
"peter@tidebuy.net"
] | peter@tidebuy.net |
d2fe1e73f2006461b52cbe899998417ea9ba8635 | 8e36722e7df7c34c8a2492398cda49454ca1e0c1 | /blog_project/settings.py | b5606080ac6918df9fa8827f3149e80316cd74da | [] | no_license | sabinbhattaraii/bolg_app | 02447674fec490caa92dda8658519dd77a070adf | 193dbf373cc161d2414930fd55cd369e3f634208 | refs/heads/master | 2022-12-14T10:03:02.837462 | 2020-09-13T06:34:34 | 2020-09-13T06:34:34 | 295,089,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | py | """
Django settings for blog_project project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pa... | [
"sabin.bhattarai2012@gmail.com"
] | sabin.bhattarai2012@gmail.com |
7585e048831c6dbf45a703831dfbe6264e32231b | 53db8482926ba5bf6ee9b86337ec021855f861e6 | /testsuite2/min.py | 6747558168de22b686a6cbcef985768072b5afa7 | [] | no_license | nilimsarma/piethon | 012e1de5d705d90a3639a4957eaf2b866c0d494c | 5667901e15e1d5cdd80122848e8bf1af06a4d404 | refs/heads/master | 2021-01-10T06:24:25.203977 | 2015-11-29T11:01:21 | 2015-11-29T11:01:21 | 47,059,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | def main():
x=-1
y=7
z=2
if x<=y:
if y<=z:
print x
print y
print z
else:
if x<=z:
print x
print z
print y
else:
print z
print x
print y
end
end
else:
if z<=y:
print z
print x
print y
end
end
if y<=x:
if x<=z:
print y
print x
print z
else:
if y<=z:
print y
print ... | [
"nilim.ch.sarma@gmail.com"
] | nilim.ch.sarma@gmail.com |
75fa9eb0e5a538923378f956a3d163065a1d0871 | c866fd1690f34fca4b7cfb68f31f1fa96995d562 | /accounts/models.py | 78d6f21b97cae508a0899152fe97125720bf3cfb | [] | no_license | graynneji/OnlineStore | a1e9fa2f9803f5579716cedfd7310530ed3a2ada | 545758bbf398b2d481487d21426cc4aee0b1f4b2 | refs/heads/master | 2023-07-17T23:02:13.201463 | 2021-08-29T19:03:40 | 2021-08-29T19:03:40 | 394,409,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
# Create your models here.
class MyAccountManager(BaseUserManager):
#creating the user
def create_user(self,first_name,last_name,username,email,password=None):
if not email:
raise ValueErr... | [
"graynneji@outlook.com"
] | graynneji@outlook.com |
7bc6e0de57886169f7e3a66b1b4d421fad48b590 | 1a3a985eca5f52d312dc1f19154c6f28f0011b2d | /tests/test_store.py | 23cdd5f5bc8a0bc0500117adb5572a057723de17 | [
"BSD-3-Clause"
] | permissive | chrisbrake/PythonSandbox | f2441ca4866f1cbe1f3b1a6bf3b0e9fa5652a431 | 8cd2ea847676d6a300b55c560f49cd980f760b00 | refs/heads/master | 2021-06-06T06:47:37.738105 | 2020-02-17T04:41:01 | 2020-02-17T04:41:01 | 99,748,910 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from os import remove
from tempfile import mkstemp
from unittest import TestCase
from store import store
class TestStore(TestCase):
def setUp(self):
(_, self.tmp_file) = mkstemp()
def tearDown(self):
remove(self.tmp_file)
def test_get_exclusive_lock_success(self):
with open(self... | [
"chris.brake@gmail.com"
] | chris.brake@gmail.com |
08323bda50e0dab41f2e989939243cd515c6a5a6 | 5756536ee020ddb96f015de778e367829a3ad44e | /src/SPSSProcessor/__init__.py | 9b77736f158a722de9cf2da918f083ad46e86de9 | [
"MIT"
] | permissive | razvan-cretu/SPSSProcessor | 614db9f0e159dcbbaff00e9ea8ad8927355422e3 | 86dc35e60f1e6fae2c0df3d84110db5d3f187dc7 | refs/heads/main | 2023-07-05T23:40:58.247320 | 2021-08-10T12:39:27 | 2021-08-10T12:39:27 | 390,399,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | from .Processor import SavFile | [
"razvan.cretu@dynata.com"
] | razvan.cretu@dynata.com |
a513630f1ca0daea326fbcf05af83a602d42a158 | 3713b023f5c5784f628043d9c86b88ee3ff43e92 | /main_file_original.py | 4f8b4aeaf6ab3bb522cef7ae4ca081e3ed6d1730 | [] | no_license | aman1931998/Auto-Boosting-CSGO | bad234e20ca0c695a4e0cbe7fbb832ac0ac8af15 | 512ecdb550a1d3d6a94bc457f8809a5f6db14277 | refs/heads/main | 2023-08-27T15:41:59.783349 | 2021-09-21T04:08:08 | 2021-09-21T04:08:08 | 401,274,264 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,215 | py | import time
import beepy
import shutil, os
import pyautogui as pg
import keyboard as kb
from time import sleep
import numpy as np
from PIL import Image, ImageGrab, ImageOps
import pickle, cv2
import psutil
import pyperclip as pc
from positions import *
from functions import *
from major_functions import *... | [
"noreply@github.com"
] | noreply@github.com |
5a3533fe380107f7a518cfd59cc2bc0bf7a77c6a | 7556542c8c6ae157542300ce45388a8cb0213edb | /cocitation/co-citation-finding.py | 7e0a03491b4cf421e14f206531faccb9b8550960 | [
"Apache-2.0"
] | permissive | hyyc116/Therapies_finding | 2229f567c157d17a7ed947d62a78d3487151540c | 1ee36190e5b85ac89d2836c67ab60c1168c3b1b0 | refs/heads/master | 2021-01-17T12:46:32.491077 | 2017-04-06T20:28:45 | 2017-04-06T20:28:45 | 84,074,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,042 | py | #coding:utf-8
import sys
sys.path.append(".")
sys.path.append("..")
from tools.xml_parser import *
reload(sys)
sys.setdefaultencoding('utf-8')
import re
from collections import defaultdict
import json
#Get references
def parse_references_with_index(indexpath):
count =0
for path in open(indexpath):
coun... | [
"hyyc116@gmail.com"
] | hyyc116@gmail.com |
403c3b7201f5d83d0a46a8a9b9532c309c084f3f | 4bd3d4acf9f050d8efcc9a59c00fc2d2d7fea306 | /dein/.cache/init.vim/temp/16196/20180821130948/rplugin/python3/sosowa_scraper/driver.py | 56655f4e201b1cb10b555f03853b5c65bc0c4e3c | [
"MIT"
] | permissive | sy4may0/neovim-init.vim | 817f3102e1e2ed36e18bf47c472564dcf94a4ddd | 25aacb7a1f0902a57a4fb48422a35e04881af88b | refs/heads/master | 2021-06-05T12:29:00.761671 | 2018-08-21T12:32:42 | 2018-08-21T12:32:42 | 111,979,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | import sosowa_requester
import sys
sr1 = sosowa_requester.sosowa_requester(sys.argv[1])
p = sr1.get_sosowa_product_list(50)
sr1.get_sosowa_article(p['1204215351'])
sr1.get_sosowa_article(p['1204215351'])
article = sr1.get_sosowa_article(p['1204215351'])
array = article.get_article('content')
for i in array:
pri... | [
"sy4may0@hundred-jpy.cc"
] | sy4may0@hundred-jpy.cc |
b4fdc7658ac4704ce5381aaa8c4af1d7403d5ace | efb9e219ddee84c70f47fb9b768544e2212b625f | /venv/Scripts/easy_install-3.7-script.py | 7d00d3b6ee4ce5709369d6deb017aaa613d84e56 | [] | no_license | dennohgitau/loginpy | 0a8d80dae5f2f588ed4b0c09f683133975202daa | e524dacd9bdf4f97b61fbbed46b9371506c68192 | refs/heads/main | 2023-03-12T06:53:32.878987 | 2022-05-17T07:50:54 | 2022-05-17T07:50:54 | 493,147,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | #!C:\Users\GFITAU\PycharmProjects\LoginSQL\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.p... | [
"denisgitaustudy@gmail.com"
] | denisgitaustudy@gmail.com |
d4a331fd126d3de9e4c2126c8127d132a767d784 | 501176c17ecfda9fc2641c407b044b51364afa8e | /BootCamp/python/example/example.py | c4a02a67d17d6beae597df85db0c307a24e907bd | [] | no_license | melissa-koi/betterbuys | fcc6d6bfc1f37a644258d7bcf52eb93597674fd6 | edc40636c14ee341835bd8f77fd9ae91767b220a | refs/heads/main | 2023-05-26T13:59:59.503289 | 2021-06-10T05:35:43 | 2021-06-10T05:35:43 | 375,577,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | # import sys
#
# name = sys.argv[1]
# print("How old are you?")
# age = int(input())
#
# print(name)
# print(age)
# height = 69
# if height > 70:
# print("You are really tall")
# elif height > 60:
# print("You are of average height")
# else:
# print("You are really short")
# name = ""
# list_a = []
#
# if... | [
"melissawangui3@gmail.com"
] | melissawangui3@gmail.com |
b88abcb14ac3398093095546610832e7d0670631 | acb3c776bb796858710cd03c9f6b42bfaf0c8b55 | /accounts/forms.py | 6f67f1301b03d925267d847df780edbe90c22477 | [] | no_license | Code-Institute-Submissions/DjangoMilestoneProject | 9f89d85358daa7f9ce43216db88b8ed3788ef2ae | 505d2f116cd90596d557ae8e00e7c130e8919c95 | refs/heads/master | 2022-12-19T10:15:25.767129 | 2020-08-27T15:04:37 | 2020-08-27T15:04:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,892 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from django.core.exceptions import ValidationError
from .models import UserProfile, UserFootball
# Login Information
class UserLoginForm(forms.Form):
"""Form to be used to log users in"""
... | [
"felipelitran@gmail.com"
] | felipelitran@gmail.com |
5f3b77b8ea7b33ecee62dff19499387e3da1e40e | 63f85ffae77a564ca296777b294ab3e4d2957ce9 | /tfSeq2SeqModels/decoders/transformer_decoder.py | 78583e920e9c7fd481e1b006c929fe6d30e9bc45 | [] | no_license | chenxinglili/eastonCode | 0c89789e2656b9236d773424973d933ac9045697 | 0334a41f6df7bb38a18a6918dfebd189c64395e8 | refs/heads/master | 2020-06-26T10:11:02.112948 | 2019-07-02T13:42:36 | 2019-07-02T13:42:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,892 | py | '''@file rnn_decoder.py
the while_loop implementation'''
import tensorflow as tf
import logging
from .rna_decoder import RNADecoder
from tfSeq2SeqModels.tools.utils import dense
from tfModels.tensor2tensor import common_attention
from ..tools.utils import residual, multihead_attention, ff_hidden
inf = 1e10
class T... | [
"yicheng1994@outlook.com"
] | yicheng1994@outlook.com |
26f14b35c752a7d1fd10c8f885a2e3131898d6cf | db0dee282250f796b80f4a401313e88d9d916d88 | /blocks.py | d1ce28abe22860443a14238617822d9a35e8122d | [] | no_license | KoSTyA-bel/- | ee1e5b212556d27ff4cd95dcf7b4ba002c2f354e | 7fbbd09faa1665c8d7f715dca126eb617bd3a852 | refs/heads/main | 2023-01-29T15:29:43.378391 | 2020-12-13T17:05:00 | 2020-12-13T17:05:00 | 319,144,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | from pygame import *
from settings import *
import os
class Platform(sprite.Sprite):
def __init__(self, x, y, way = "%s/block/block.png" % ICON_DIR):
sprite.Sprite.__init__(self)
self.image = Surface((PLATFORM_WIDTH, PLATFORM_HEIGHT))
self.image.fill(Color(PLATFORM_COLOR))
self.imag... | [
"kostyafedorakin@gmail.com"
] | kostyafedorakin@gmail.com |
02aa59d26fc48158bc4766c151f95dc07c225252 | 09cb3293dc340e9fddc09967a0ea508baaaeaa0f | /venv/Scripts/django-admin.py | 837d0d9d7292c77d91588931818ad72488fdbd5e | [] | no_license | sreekanth9393/djangoproject5 | f9a4aa03fd13231b1416f2b7492b4c32fb9f8d41 | db7270c274bdde80de48d20faf2f0800625d5e95 | refs/heads/master | 2020-09-10T23:48:20.024736 | 2019-11-15T13:18:28 | 2019-11-15T13:18:28 | 221,869,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | #!C:\Pycharm\PycharmProjects\djangoproject5\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"sreekanthsomavarapu@gmail.com"
] | sreekanthsomavarapu@gmail.com |
2102df986d73ba8bded087840712c105503e1d9e | 1e660c91d0ae300ad6907a97941441fc8e73d5dc | /api/models/mixins.py | aa77a920c2b5911c3ee17653ec4e9346cb85c4ce | [] | no_license | SEUNAGBEYE/Stocky | 55d65e8ba7e7ff5228863e3c242c6499b2078ca7 | b2129b0a166a08d14c809cf4e0d711a7c469c91c | refs/heads/develop | 2023-02-23T11:26:46.160005 | 2019-04-01T04:11:06 | 2019-04-01T04:11:06 | 178,017,757 | 0 | 0 | null | 2023-02-07T22:21:11 | 2019-03-27T15:00:34 | Python | UTF-8 | Python | false | false | 2,735 | py | """Module for generic model operations mixin."""
from .config import db
class ModelMixin:
"""Mixin class with generic model operations."""
def save(self):
"""
Save a model instance
"""
db.session.add(self)
db.session.commit()
return self
def update_(self, ... | [
"agbeyeseun1@gmail.com"
] | agbeyeseun1@gmail.com |
5cc2a666123a92f9eb91a1cc6b9b54c6c187a56c | 59c9c3b48fc42796b025d76a3f2bbca437be2b35 | /youkou_djT/apps/doc/migrations/0001_initial.py | 8c9fa8352e400ba0c383dbf6d5e0faa0abf2a041 | [] | no_license | hx123456666/youkou | f1b76a011e8445443730cc0c84ae85bc281f3ec0 | ee67b5e5c4555dc8a423325501b64645283ef5dc | refs/heads/master | 2020-04-16T14:03:35.810152 | 2019-03-21T03:10:27 | 2019-03-21T03:10:27 | 165,653,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | # Generated by Django 2.1.2 on 2019-03-19 05:30
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"huangxiang@163.con"
] | huangxiang@163.con |
aa0da87f9190e8296e72752194ba5b8957bb36fa | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/meetup/2b4a2462e86149f3a94264f7c35aef7a.py | ac0930b773da25cb6f1e91324fa9ea02ed62294a | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 614 | py | from calendar import monthrange
from datetime import date
def meetup_day(year, month, day_of_the_week, which):
month_length = monthrange(year, month)[1]
days_in_month = (date(year, month, day)
for day in range(1, month_length + 1))
candidates = [date_
for daye_ in days_in_month... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
080ddfede231890852c5760f01660aee75767770 | 3e5d982a3b50ab9b3c9513061c3da1d3c9fbc06c | /model.py | 9d6c35900343991b19a04c5c9724aa496b6d30ef | [] | no_license | zhulingchen/my-pix2pix | 2e7347d7e5d7758c68c13e63040f9417ef5f19a3 | aaa89ff663847fb44e31f69187fd77167d023cd3 | refs/heads/main | 2022-12-31T01:25:46.345864 | 2020-10-28T03:50:14 | 2020-10-28T03:50:14 | 302,352,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,846 | py | import os
import yaml
import time
from datetime import datetime
import warnings
import torch
import torch.nn as nn
from torch.nn import init
import torch.nn.functional as F
from torch.utils.data import DataLoader
from torch.optim import lr_scheduler
import torchvision.transforms as transforms
from torchsummary import s... | [
"zhulingchen@gmail.com"
] | zhulingchen@gmail.com |
971a7cfbc531597d27cc374ab49b3c2f655f988d | 90ed257f4e193b0b19e5bcb9d4a384b0cf6e6d3f | /MUSEUMS/spiders/collection62.py | 585e5c6d5b10bd99623f8bd781a67858ab1c5af1 | [] | no_license | BUCT-CS1701-SE-Design/webDataCollectionSystem | adc8ca97dda48c508909e73c02bb6622b93534b8 | f653b973b265d52e2ba4711b689c2de637a2cf8b | refs/heads/master | 2022-08-22T14:16:54.857847 | 2020-05-17T07:33:38 | 2020-05-17T07:33:38 | 256,792,222 | 1 | 1 | null | 2020-05-17T01:27:22 | 2020-04-18T15:49:35 | Python | UTF-8 | Python | false | false | 1,468 | py | # -*- coding: utf-8 -*-
import scrapy
from MUSEUMS.items import collection75Item
class Collection62Spider(scrapy.Spider):
custom_settings={
'ITEM_PIPELINES':{'MUSEUMS.pipelines.Collection75Pipeline':4,}
}
name = 'collection62'
allowed_domains = ['mtybwg.org.cn']
start_urls = ['http://www.... | [
"1975188506@qq.com"
] | 1975188506@qq.com |
5870288f5584f73653b7b45cce7b9396d8c5ec26 | dc8d778a655c6b9ebd9567acf9a01748b90b64c4 | /djtest/urls.py | 1623b4f51681275becd0941cb90efaccb2f37aa7 | [] | no_license | calebrash/intro-to-django | 536ff48a11ca42ca3efe616c6fef3b420974c000 | 947e1a0e784c95ae5c2b9f6a6398942e93a74786 | refs/heads/master | 2021-07-07T11:15:19.231243 | 2017-10-01T18:57:07 | 2017-10-01T18:57:07 | 105,465,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | from django.conf.urls import url
from django.contrib import admin
from djtest.views import CustomersListView, CustomerEditView
urlpatterns = [
url(r'^customers/$', CustomersListView.as_view(), name='customers_list'),
# Name url params by prefixing a pattern with `?P<...>`
url(r'^customers/(?P<customer_id... | [
"caleb.s.rash@gmail.com"
] | caleb.s.rash@gmail.com |
4f5328545ef679a7331bf4b9f101c85ed9f7de58 | d362cc4e2c703a19f405fa539660b2b5a88a338e | /pk_clean.py | b0bcb449f896949872233177e9b710908445eeff | [] | no_license | armykongtap/Poker-NN | ce994c78a68f7134f46194e90fab06da3cc010bc | 5b9643e76cf24d9680461ff1bc2d1cd9e73ec21b | refs/heads/master | 2023-04-28T01:05:31.348453 | 2021-05-01T16:47:14 | 2021-05-01T16:47:14 | 363,431,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,646 | py | import glob
import pandas as pd
from name_dict import NAME_DICT
BB_SIZE = 4
all_files = glob.glob("poker_log/*.csv")
li = []
for f in all_files:
df = pd.read_csv(f, index_col="order")
li.append(df)
df = pd.concat(li, axis=0)
df = df.sort_index()
df = df.reset_index(drop=True)
df = df[["entry"]]
#%%
# ... | [
"army_kongtap@hotmail.com"
] | army_kongtap@hotmail.com |
6c8b408cdbc0e12de0c454ed763f230c7914bf78 | a7b7b12020bd9868966c926eb75761971454e469 | /case_study/product_manager.py | bc2e08c34877f778ca180fa5daaa22e80d623b88 | [
"LicenseRef-scancode-other-permissive"
] | permissive | OpenStackUser/ApiUsecase | b9790b976376cc0d2147f5fa2594ae940eaca2bf | 425dd7c4c1b39e47056299130c00152a18ed87cd | refs/heads/main | 2023-04-01T14:59:48.395037 | 2021-04-12T06:05:38 | 2021-04-12T06:05:38 | 357,075,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,466 | py | """
Manages the business logic for products and calls through
to the PersistanceManager.
"""
import os.path
import json
import jsonschema
from copy import deepcopy
from case_study.persistance_manager import PersistanceManager
from case_study.product_service_manager import ProductServiceManager
from case_study.... | [
"noreply@github.com"
] | noreply@github.com |
741b779ce9481454a5c5158b3007bb89e6179542 | 69f73c3bd8721b53f99e9785395ed0dc78ac50d6 | /lambdas/WaterPumpControl/water_pump.py | 0cd26c9dc07726306072c1c707e86b69448898be | [] | no_license | renatogp/plant-watering | bb572264291e5ff92ac2bb3204e382d96f2ee7ba | 62c809620fae5b6f0b77f008eae8061495bc6951 | refs/heads/master | 2022-08-12T14:40:02.652316 | 2018-08-11T23:39:21 | 2018-08-11T23:39:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | import sys
import time
import os
import logging
import RPi.GPIO as GPIO
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'vendored/'))
import greengrasssdk
logger = logging.getLogger()
logger.setLevel(logging.INFO)
class WaterPumpControl:
WATER_PUMP_PIN = 18
RELEASE_DURATION = 4 # ... | [
"renatogp@8c859043562e.ant.amazon.com"
] | renatogp@8c859043562e.ant.amazon.com |
8238dc74c2a9928551a4937f868e2c50ed6a4df1 | b6d0b8e46e27f5874dc3f0631e896773cc0668bf | /server_test.py | 77dba639c352fe12d41e54b02368a68d77cfa4e6 | [] | no_license | unoken77/raspi_people_counting | f023ac283f3aea5ecaa035fbe6f310692899428f | 98d3e4c13d6ca1ab570fabbceaa8afb977b33d24 | refs/heads/master | 2020-04-20T05:08:11.714391 | 2019-02-01T05:34:23 | 2019-02-01T05:34:23 | 168,647,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | # coding: UTF-8
#!/usr/bin/python3 # This is server.py file
import socket
import cv2
import numpy
path="/home/pi/Desktop/current_number_of_people.txt"
print('start server')
# create a socket object
serversocket = socket.socket(
socket.AF_INET, socket.SOCK_STREAM)
# get local machine name
#host = socket... | [
"newunkn@gmail.com"
] | newunkn@gmail.com |
0c4a7d551e3a7f1c8a4a1b022e83f04c3d0d6d30 | e82e2305a4cde3d104770dcec688fbe7a2a91795 | /manage.py | 66eb5556ca857a49dcc8a3f932ac7457ca643e32 | [] | no_license | Ads7/analytics_vidhya | 66e983e5d7d90550ad58aa620242abfcbd96010b | dcb7b35031a6fdd074040d4d72a72f953f3f2c30 | refs/heads/master | 2021-01-20T15:41:37.761594 | 2018-03-31T21:46:55 | 2018-03-31T21:46:55 | 60,894,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "analytics_vidhya.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"amandeep.singh@industrybuying.com"
] | amandeep.singh@industrybuying.com |
45b5e85c59a7a5d95cbf4ae6752016b80d21347e | 1fafbcc2b1c8fb013bf00652ed64cb8c9417aab7 | /lms/extractors/textfile.py | 26088b9d27bba82b0604329a35642249e48b95f7 | [
"BSD-3-Clause"
] | permissive | Liad-n/lms | 7e3458091d9146939cac921bb42966237f9a3ef5 | b933e445efbc49532e7ceeeac05666d0b191a502 | refs/heads/master | 2022-12-18T08:27:13.310345 | 2020-09-25T14:24:20 | 2020-09-25T14:24:20 | 299,038,142 | 0 | 0 | BSD-3-Clause | 2020-09-27T13:28:12 | 2020-09-27T13:28:12 | null | UTF-8 | Python | false | false | 1,375 | py | from typing import Iterator, List, Tuple
from lms.extractors.base import Extractor, File
from lms.models.errors import BadUploadFile
TEXTCHARS = set(bytes(
{7, 8, 9, 10, 12, 13, 27}
| set(range(0x20, 0x100)) - {0x7f},
))
class Textfile(Extractor):
ALLOWED_EXTENSIONS = {'css', 'html', 'js', 'py', 'sql'}... | [
"noreply@github.com"
] | noreply@github.com |
cae313cb0b5b88d0581dc335b04490f26ee686f4 | eb971e6bf2f599a584fc748d0fdf33ad2105f84b | /flaskenv/lib/python2.7/abc.py | f346b6bff00f379f75f5d44cd9b4ce216a4fad6d | [] | no_license | BradZzz/flask-epp | c7ccbd52144a4315bb2fcc37ceca02a184b49667 | c055fc42fc8f22c84441784dee15ff1f5fc2d6e4 | refs/heads/master | 2020-12-30T11:51:44.417526 | 2017-05-25T03:50:05 | 2017-05-25T03:50:05 | 91,532,121 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | /Users/Mauve3/anaconda/lib/python2.7/abc.py | [
"mauvemoonman@gmail.com"
] | mauvemoonman@gmail.com |
804d141858f3dc22514a6b54505eebf25a0e5c38 | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/run_locally.runfiles/pypi__tensorboard_1_12_1/tensorboard/plugins/image/images_plugin.py | 0f7921e81efab27bdfd237ae85d1b4f5e13351ae | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorboard_1_12_1/tensorboard/plugins/image/images_plugin.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
d8090fe067b3f020942f08e80a83d04761dcfa45 | 2a4b1e7b438af4fc905486dd3e6c4f9b33209a19 | /core/dataloader.py | 9b1f520184f06f0b3c9029b8e2b284166a658fa6 | [] | no_license | ywx980615/fracture_identification | 9b6d0d81b9e39204ee892075b3494f8b282f6c9d | 2d5f9f72927724a917d2882e5775e044d09d9ad9 | refs/heads/master | 2022-04-14T07:01:55.179989 | 2020-03-30T03:58:20 | 2020-03-30T03:58:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | import numpy as np
import pandas as pd
import matplotlib.image as mpimg
class DataLoader_for_training():
def __init__(self, original_picture, labled_picture, sample_size_x = 5,sample_size_y = 5,data_type = 'uint16'):
self.original_data = mpimg.imread(original_picture)
self.labled_data = mpimg.imre... | [
"menghan@menghandeMacBook-Pro.local"
] | menghan@menghandeMacBook-Pro.local |
d9099d9c18ae134d0ac17bc15493596d72137bcf | 9a10a4fc5ed7407d183291a72891207e3057d9ab | /app/api/category_routes.py | fe9766fd15d0a8ee64759e1aa0797283b3bdcee5 | [] | no_license | natoh19/sophora | f7a1980990575b26ee9a56054d1d16adc2332ccf | 0408fa0eccaa60a8ed19509058075b2620e8e3f9 | refs/heads/main | 2023-07-01T05:16:50.629663 | 2021-08-08T14:15:07 | 2021-08-08T14:15:07 | 372,988,268 | 1 | 0 | null | 2021-08-08T14:15:08 | 2021-06-01T23:46:52 | Python | UTF-8 | Python | false | false | 477 | py | from flask import Blueprint, jsonify
from flask_login import login_required
from app.models import Category
category_routes = Blueprint('categories', __name__, url_prefix = '/api/categories')
@category_routes.route('')
def categories():
categories = Category.query.all()
return {"categories": [category.to_dic... | [
"natoh18@gmail.com"
] | natoh18@gmail.com |
94c1d5ff28daf72fe0e07b61a78378da4e476e6a | cadf9ca46531c2fed3ed0f9f982f4b35b2e58fb9 | /main.py | b5da6472df7b19ed447546d652695c378252a963 | [] | no_license | EliNovakova/flash-cards | 1f9876c7e18755e17444a458d98e8f13cb57dbd9 | b0a6ef67fa9af14d3d7b7f02c7ef5027b0fdd0c5 | refs/heads/main | 2023-09-01T04:13:34.872881 | 2021-10-05T22:15:17 | 2021-10-05T22:15:17 | 413,541,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,775 | py | from tkinter import *
import pandas
from random import randint, choice
BACKGROUND_COLOR = "#B1DDC6"
current_card = {}
words_to_learn_dict = {}
# ---------------------------- Code and functions ------------------------------- #
try: # tries to oped csv with words we have yet to learn (exists only if we played before... | [
"eli.novakova@seznam.cz"
] | eli.novakova@seznam.cz |
15e7f63643d166a7973ca8d358d2510577297cd3 | 0feeafb8e94cce131eee30e93e5f2f547b7936e2 | /Checkpoints/Sprint 5/Payroll.py | 01778cd9013a9729ed89495b11c19cbafa8ca82c | [] | no_license | danieljohnson107/EmpDat-Payroll | 2c4f87b8667c25329a5a6227fe6e9b1e3dc57b57 | f00b90392527c2070624f26583b8e271ff53043b | refs/heads/main | 2023-05-03T15:18:47.691610 | 2021-05-05T01:13:28 | 2021-05-05T01:13:28 | 332,270,381 | 1 | 1 | null | 2021-04-10T04:49:56 | 2021-01-23T17:39:22 | Python | UTF-8 | Python | false | false | 11,225 | py | from abc import ABC, abstractmethod
import os, os.path
PAY_LOGFILE = "paylog.txt"
employees = []
global current_emp
def load_employees():
"""Loads employee data into memory and creates an instance of the employee object for each entry"""
with open("employees.csv", "r") as emp_file:
first_line = True... | [
"65976231+easton57@users.noreply.github.com"
] | 65976231+easton57@users.noreply.github.com |
7030e71e24a4720cdc6d450aec15704ef1bfc65f | d3849a750a204cf6866da40df592d1ccdeccc738 | /E-Docs/edocs/doclocker_app/form.py | 02255b713fa941a7d5afe90b067d5e47eb05745e | [] | no_license | barrett70/mywork | 2001e8db76b24ce73f9fd7eef2111be594b49706 | 48349ae4a3927026cec0848dd2994add62119f1d | refs/heads/master | 2022-11-28T20:29:15.858849 | 2020-08-14T10:13:46 | 2020-08-14T10:13:46 | 287,505,931 | 0 | 0 | null | 2020-08-14T10:22:19 | 2020-08-14T10:22:18 | null | UTF-8 | Python | false | false | 808 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import Images
class RegisterForm(UserCreationForm):
first_name = forms.CharField(max_length=30, required=False, help_text='Optional.')
last_name = forms.CharField(max_length=... | [
"56765836+annanyasharma@users.noreply.github.com"
] | 56765836+annanyasharma@users.noreply.github.com |
4a7348702e26e42b79d656ecb439f92cd86c5ccd | 579168f4cfebaed6dd0e6833f230774605003f46 | /students/Russell_Large/template_student/lesson03/assignment/tests/test_gradel03.py | 1601ce415c896ff1390bdf148e91c3e06cf4f24e | [] | no_license | Washirican/Python220A_2019 | e9abd8a5c2151d509618bcadd3e2454a90959e85 | 46d6282518f02029a556e94e607612a47daf675a | refs/heads/master | 2020-05-04T19:32:43.827706 | 2019-06-09T15:07:57 | 2019-06-09T15:07:57 | 179,398,542 | 2 | 0 | null | 2019-04-04T01:28:08 | 2019-04-04T01:28:08 | null | UTF-8 | Python | false | false | 6,837 | py |
""" This is an integration test module """
import pytest
import sys
import os
import peewee
# dynamically connect to the database
# as long as data, src, and tests are all located
# in the same directory.
db_folder = os.getcwd()
db_location = str(db_folder[:-6] + '\src')
input_data = str(db_folder[:-6] + ... | [
"objectivejoe@gmail.com"
] | objectivejoe@gmail.com |
e7c11fda978a4aa5af634d07bc50e343bfb341d1 | 6baf0e8e1c0c9ab73b02e4b1568ee9a014dc0aba | /print_iterations.py | 104a5e2c97a26fdc426502d5f70c8e392e4c18a6 | [] | no_license | santoshgurujula/PythonChallenges | 096660a324f20c8c099d02423594a692ecfe72b2 | 5492ad6a5dfd47f47b4a83463f82e08641a11e2f | refs/heads/master | 2020-12-14T23:51:25.500724 | 2020-01-21T02:24:33 | 2020-01-21T02:24:33 | 234,916,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | itr=int(input())
for i in range(1,itr+1):
for k in range(itr-i):
print(' ',end='')
for j in range(2*i-1):
print('*',end='')
print()
for i in range(itr-1,0,-1):
for k in range(itr-i):
print(' ',end='')
for j in range(2*i-1):
print('*',end='')
print() | [
"santoshgurujula@gmail.com"
] | santoshgurujula@gmail.com |
1f610a86d05507f68c3c3904b86faec44aca7e42 | 7a013424c82b71bc82aa312e0165a1af4170ac23 | /ABC/ABC169/D.py | 31bd058beee4eb1ee3d717253e4cd1cf3efb5c3b | [] | no_license | kikugawa-shoma/Atcoder | fe3405e36dd3e4e25127b6110d6009db507e7095 | 7299116b7beb84815fe34d41f640a2ad1e74ba29 | refs/heads/master | 2020-12-21T19:10:12.471507 | 2020-10-10T16:38:18 | 2020-10-10T16:38:18 | 236,531,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | N = int(input())
def factorization(n):
arr = []
temp = n
for i in range(2, int(-(-n**0.5//1))+1):
if temp%i==0:
cnt=0
while temp%i==0:
cnt+=1
temp //= i
arr.append([i, cnt])
if temp!=1:
arr.append([temp, 1])
if ar... | [
"kikugawa.s.shukatsu@gmail.com"
] | kikugawa.s.shukatsu@gmail.com |
e0fbc37d5143b688f711c1d71c2e67bc78828cdb | 37dae42b2fa33b43c09b92507d20af49bcce2038 | /my_scraper/middlewares.py | c503f62feee9b1958e24dceab92f7d6c82859674 | [] | no_license | kirimaks/angel_scraper | 7a337f051557adb2b21dde7eb45286c2d508c2eb | e95ae4a13c47ddcd984b564aeb63498ebf9110ee | refs/heads/master | 2020-09-13T07:38:42.064149 | 2016-09-11T21:36:48 | 2016-09-11T21:36:48 | 67,125,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | from scrapy.exceptions import IgnoreRequest
from my_scraper.tools.JujuTools import broken_links
class JuJuMiddleware(object):
def process_response(self, request, response, spider):
if response.url in broken_links:
print("\n\n\n\n **** ")
print("URL: ", response.url)
pri... | [
"kirimaks@yahoo.com"
] | kirimaks@yahoo.com |
93beede19fb04c811fd459c013a68d27685e1150 | 5136e9cd01069f1ecf3184976e05a3b597914f68 | /tests/kafka_check/test_replication_factor.py | dd2fafbcb8995d43897b12e2b85ad45cad357420 | [
"Apache-2.0"
] | permissive | mborst/kafka-utils | f2326d2b12b9e5bd1353adbd90a07b0df4455f5d | 6970ee835ed0e8946c5d67b0d8511e5746b1fb82 | refs/heads/master | 2020-07-18T22:18:09.566351 | 2019-09-03T18:18:07 | 2019-09-03T18:18:07 | 206,323,378 | 0 | 0 | Apache-2.0 | 2019-09-04T13:16:38 | 2019-09-04T13:16:38 | null | UTF-8 | Python | false | false | 6,529 | py | # -*- coding: utf-8 -*-
# Copyright 2016 Yelp 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"alp@yelp.com"
] | alp@yelp.com |
1487f463b36ac15949892d9d13ee5fa6dc48ad37 | c573cac75d4e34263fa29d3efccb76199be0af98 | /4/A.py | c3fa91a5b7637c8e587fb001b43db17bffc6807c | [] | no_license | se2313se/Ya.algorithms_training | b197a0d1f786b0a250de9420965f48436b92ca6a | c52a0ca53f8a807abc943fa60b5b178754118141 | refs/heads/main | 2023-06-08T23:03:40.853383 | 2021-06-24T17:21:07 | 2021-06-24T17:21:07 | 380,001,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | with open('input.txt', 'r', encoding='utf8') as f:
synonyms = dict()
n = int(f.readline())
for i in range(n):
tempWord, tempSynonyms = f.readline().split()
synonyms[tempWord] = tempSynonyms
synonyms[tempSynonyms] = tempWord
print(synonyms[f.readline().strip()])
| [
"71695356+se2313se@users.noreply.github.com"
] | 71695356+se2313se@users.noreply.github.com |
134c1cf4545f15d63a56bc24d9af8ce38c60fb6c | 8ddca08ac2a57be4705d7bd319795dc622c1df8a | /tests/__init__.py | 2a12b0f46c1f0f999ffb803ef2109fc78d057000 | [
"Apache-2.0"
] | permissive | sirpengi/msgpack-python-pure | 723047d11e4eaec1304fd84ebaa9d25176382902 | a67e6a143059ae1504bcc08572d55cfe377855e7 | refs/heads/master | 2021-01-16T21:54:02.436529 | 2012-07-14T05:33:09 | 2012-07-14T05:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | #!/bin/env/python
# -*- coding: utf-8 -*-
import sys
from os.path import join,dirname
sys.path.append(join(dirname(sys.argv[0]), '..'))
print join(dirname(sys.argv[0]), '..')
from test_case import *
from tests.test_except import *
from tests.test_main import *
if __name__ == '__main__':
import nose
nose.main... | [
"fukuda@gmail.com"
] | fukuda@gmail.com |
c938955194dc89416c1f590325a2b127455eb227 | ecd7302e7fc521b1b9afbbb5c4e947552273b47a | /nets/MobileNetV2.py | 9c965bbb498dde422e73c06b42868f9ace6eba3e | [
"MIT"
] | permissive | lbf4616/PixelLink-with-MobileNet-V2 | 7762f4ec00b591405c418fd4ab287a58f1ef288d | 94b0f68141ac43c3248ec6c14d39f34c22e765f0 | refs/heads/master | 2020-07-03T09:00:30.657402 | 2019-08-28T04:02:09 | 2019-08-28T04:02:09 | 201,859,433 | 15 | 7 | null | null | null | null | UTF-8 | Python | false | false | 4,731 | py | import tensorflow as tf
import conv_blocks as ops
slim = tf.contrib.slim
expand_input = ops.expand_input_by_factor
def basenet(inputs, fatness = 32, dilation = True):
"""
backbone net of MobileNetV2
"""
# End_points collect relevant activations for external use.
end_points = {}
# Original VGG... | [
"810804616@qq.com"
] | 810804616@qq.com |
15ebe1a3991b7c2926af485aac68c164facd7718 | adbf09a31415e6cf692ff349bd908ea25ded42a8 | /widgets/hello.py | 1f431dbfab5106918d3f455f654bdbbf17576618 | [] | no_license | cmulliss/gui_python | 53a569f301cc82b58880c3c0b2b415fad1ecc3f8 | 6c83d8c2e834464b99024ffd8cf46ac4e734e7a4 | refs/heads/main | 2023-08-12T22:33:01.596005 | 2021-10-11T12:35:41 | 2021-10-11T12:35:41 | 408,176,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | import tkinter as tk
from tkinter import ttk
# main window is going to be called root
# Tk is creating an object, the main window
# .pack() puts the text into the window
root = tk.Tk()
root.title("hello World")
ttk.Label(root, text="Hello World", padding=(30, 10)).pack()
# tells it to start running and continues until... | [
"cmulliss@gmail.com"
] | cmulliss@gmail.com |
ed91abd135830dd7d436149ede1b3294b705034b | b89d2baf79f7c64ae9ff51a755ca9d10a2104b0b | /cootalk/src/fetch_config.py | 079b85fda58624b5bdcdbda19314d4fe4aa4ba4a | [] | no_license | Git-liuliang/config_diff_fileupload | dfe4fca90f6b0f8cf1e062754aa741980f4f9db0 | a4401b0b5f62f4ff7a575e906f1aab9b7184aab4 | refs/heads/master | 2020-03-07T21:38:49.031051 | 2018-04-02T09:11:08 | 2018-04-02T09:11:08 | 127,732,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,580 | py | #! /usr/bin/python
from ansible.inventory import Inventory
from ansible.playbook import PlayBook
from ansible import callbacks
from ansible import utils
import time,os
import logging
from cootalk.conf import mylogging
from cootalk.src import Myexception
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__fi... | [
"894513081@qq.com"
] | 894513081@qq.com |
79060db8148d189e49d71a2fcde2a58110cad683 | d4f05d51568bfda9fb964deba92d9fd599a3dcde | /desing_pattern/factory_method/idcard.py | d696179da0e2206fdb2814b3f87a9e6356415882 | [] | no_license | Fullmoon8507/PythonPracticeProject | 44beba7ce783e5e22429516d39ee96adc1ead785 | 57454099ad67bfe4431ee997fada640fde6ccecc | refs/heads/master | 2020-04-16T23:29:58.907552 | 2017-05-06T07:27:35 | 2017-05-06T07:27:35 | 53,178,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from product import Product
class IDCard(Product):
def __init__(self, owner):
self.__owner = owner
print(self.__owner + 'のカードを作成します')
def use(self):
print(self.__owner + 'のカードを使います')
def get_owner(self):
return self.__owner
| [
"you@example.com"
] | you@example.com |
8a4d5bed883776ebcd3fcc904288d9add338fef0 | 584f7b51d7cd529448e2fc0147557e26931ab17e | /test_Begin_dtype.py | 94c25b201a1b4bb74e965f1d89a9301ac63f4647 | [
"BSD-3-Clause"
] | permissive | opticspy/lightpipes | 8ca0d2221a1b893de5e51fec9061e90b9145f5f8 | f4ffdedb3ab2f9b5ae5a9a8e37985d2a7f8bb2ef | refs/heads/master | 2023-09-04T19:07:11.376631 | 2023-09-04T15:24:55 | 2023-09-04T15:24:55 | 80,127,706 | 191 | 55 | BSD-3-Clause | 2023-08-23T00:45:33 | 2017-01-26T15:39:28 | Python | UTF-8 | Python | false | false | 572 | py | #! /usr/bin/env python
"""
Script to test the Begin command with dtype option.
"""
from LightPipes import *
import numpy as np
import sys
wavelength = 500*nm
size = 25*mm
N = 3000
N2=int(N/2)
w0=2*mm
print("LightPipes version = ", LPversion)
print("without dtype option:")
F=Begin(size,wavelength,N)
print("type of F:"... | [
"fred511949@gmail.com"
] | fred511949@gmail.com |
a64c44e8646a8722fd0cbdc5d2b44681652d31e3 | c90b3cb32b5c8b7ac55519931081c4d56edcd06f | /app/views.py | cdfd5aef52fffb764107749fe5f9e911ce46358c | [] | no_license | SShanshina/django-2-landing | 5e39111c271f45f66a2b34bcf80a2e00a167fb63 | 96176382ea606f7a83b693ebabe65251444ec357 | refs/heads/master | 2023-03-02T16:41:11.985470 | 2021-02-13T09:53:27 | 2021-02-13T09:53:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,613 | py | from collections import Counter
from django.shortcuts import render
# Для отладки механизма ab-тестирования используйте эти счетчики
# в качестве хранилища количества показов и количества переходов.
# но помните, что в реальных проектах так не стоит делать
# так как при перезапуске приложения они обнулятся
counter_sh... | [
"s.shanshina@gmail.com"
] | s.shanshina@gmail.com |
23d2de297f217b04686d2baf5f2e92f9b908f62f | 02af768853257bb60de8d6e6dca8778c07d976db | /xgboost-classifier.py | fee6085989b7cfa02cdfd78f60d075a5034a4c46 | [
"MIT"
] | permissive | saksham-mittal/CS6510-Kaggle-Challenge | 2bc976ddf8dd692f22a7921942e304ce71ab8cd9 | 01cf220a826649fc7341c057a2175c98acf025ba | refs/heads/master | 2020-05-09T18:22:34.839861 | 2019-04-14T17:22:38 | 2019-04-14T17:22:38 | 181,339,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,587 | py | import pandas as pd
import numpy as np
from sklearn.preprocessing import LabelEncoder, OneHotEncoder
from sklearn.ensemble import RandomForestClassifier
from xgboost import XGBClassifier
from sklearn.metrics import mean_squared_error
from sklearn.model_selection import train_test_split
from sklearn.metrics import accu... | [
"mittalsaksham01@gmail.com"
] | mittalsaksham01@gmail.com |
b3a084f648e66397103782e5c2052e5bf1d8441c | ac6279d1894f1dec8ea5f484afc2d22b665370cc | /train_MTL_uncertainty.py | 6cfac276a21b36b51d57ca8a4c8a8eb2eb7508f6 | [] | no_license | Benaziza-Sidi/MultiTask-Learning-for-image-Super-Resolution | 64535124ec6ddd4bbf1d8b1ee08a04c8097bde92 | de8414d41ecc8e7c1b695b0d5488d4a6caae8c3c | refs/heads/main | 2023-04-21T23:19:15.216935 | 2021-05-06T03:10:55 | 2021-05-06T03:10:55 | 364,654,152 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,333 | py | import argparse
import os
import copy
import torch
from torch import nn
import torchvision
import torch.optim as optim
import torch.backends.cudnn as cudnn
from torch.utils.data.dataloader import DataLoader
from tqdm import tqdm
from models_ResNet_MLT import ResNetSR
from datasets_MLT import TrainDataset
from utils i... | [
"noreply@github.com"
] | noreply@github.com |
787485ffad6e919c7f32f1053d53ecb96369920e | 4ab67b7b1b2f81e2c4db1a6948c606de046f5cff | /src/style_transfer.py | 00aec6cca95f0e5d3fb7884872cb415953228d2e | [] | no_license | klaudialemiec/style-transfer | 06c7fb56a401cea4a35d5b464360e82a71c256f5 | a3a8530de6147e5344aeb6ef34023ec2bfe350b8 | refs/heads/master | 2023-03-05T15:02:25.239286 | 2021-02-23T19:59:31 | 2021-02-23T19:59:31 | 341,357,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,846 | py | import tensorflow as tf
from tensorflow.keras.preprocessing.image import img_to_array
import numpy as np
from PIL import Image
def load_img(path_to_img):
max_dim = 512
img = tf.io.read_file(path_to_img)
img = tf.image.decode_image(img, channels=3)
img = tf.image.convert_image_dtype(img, tf.float32)
... | [
"kl.lemiec@gmail.com"
] | kl.lemiec@gmail.com |
5c5787103c69797520000d729173623065a66de2 | f928e56e6c7bcba99b7514a3f8d340adb8539275 | /peky.py | 9febe2b776ba249b2dd12d63e859613a1c88aff6 | [] | no_license | hg570820/python_projects_git | 3a374ec832a5abd94049d0a7fad18405e39eceb4 | 151791db7ef72d46481ef14c8738e20a4235824a | refs/heads/master | 2020-04-03T14:21:49.983469 | 2018-12-02T09:59:27 | 2018-12-02T09:59:27 | 155,319,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,631 | py | from turtle import*
def nose(x, y): # 鼻子
penup() # 提起笔
goto(x, y) # 定位
pendown() # 落笔,开始画
setheading(-30) # 将乌龟的方向设置为to_angle/为数字(0-东、90-北、180-西、270-南)
begin_fill() # 准备开始填充图形
a = 0.4
for i in range(120):
if 0 <= i < 30 or 60 <= i < 90:
a = a+0.08
left... | [
"391507059@qq.com"
] | 391507059@qq.com |
1a8e25cb83cbd84173b2fe52e27ff3b97302604e | b0feea0b9a1c7d270b17c12fdf1837e30bbd4db0 | /curb_challenge.py | 3fda1a861a02b5f109fe01f36282fe7f17f06518 | [] | no_license | aryasabeti/curbside-challenge | 083db3ab6854cccd43c13685c31e8f15f63e100f | f742e3a35f5998ca84212f8cc103c58eff621f18 | refs/heads/master | 2021-05-31T09:59:38.097154 | 2015-11-07T17:27:10 | 2015-11-07T17:27:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | import requests
import json
import itertools
def dict_keys_to_lower(d):
return {str(key).lower():value for key, value in d.items()}
def listify(list_or_single):
is_list = isinstance(list_or_single, list)
return list_or_single if is_list else [list_or_single]
def curb_api(endpoint, curb_headers = {}):
return ... | [
"ariasabeti@gmail.com"
] | ariasabeti@gmail.com |
e1385f734a2a8cabe2dc74cbf093d982cd961bdb | 0959af52fb425a3c16b77166dafafc104cf576ca | /base/configs/mofcom/settings.py | 984806899a34862634727d38e874658375eeae28 | [] | no_license | njunth/Crawler | d62e161ebf2fceefed3c976ac460090d6284f620 | de0aa7321728d776915577827d719302f2cd1ed5 | refs/heads/master | 2021-09-16T21:03:38.905615 | 2018-06-25T04:36:37 | 2018-06-25T04:36:37 | 109,373,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,133 | py | # -*- coding: utf-8 -*-
# Scrapy settings for mySpider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topi... | [
"2364684794@qq.com"
] | 2364684794@qq.com |
50010f17037285bb9727e06c89112bd0a9b7a023 | 72320ffc0c89b3f61bcf40110e673c59940056ea | /setup.py | ece907ed6a9fd87152d76600eeb8fb6e5c237523 | [
"MIT"
] | permissive | Darkman/Rebrand-Blizzard-App | 8e789f8bc8e3d681a2e5bd9c04cc613f126b9012 | 256d69ea657bcd5cc4b38011e47cf6e45884075e | refs/heads/master | 2021-01-23T03:33:54.262006 | 2017-03-28T06:02:00 | 2017-03-28T06:02:00 | 86,091,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,355 | py | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.absp... | [
"caleb.pineur@gmail.com"
] | caleb.pineur@gmail.com |
9f723479ced7eb5ee2e1e8c07253a875324fe98a | 67567552292a8747b2491c8de456570e0a684bb3 | /login/locust_file.py | 55d36b385661fc31365e86b36df1ad755a0c9f04 | [] | no_license | Nkr1shna/plalyst | 91c74b73eeff56f0cac071c2baee49da1b2d4b2b | c08de7be1fa453da22219d4a1f053db4e3d05537 | refs/heads/master | 2021-01-21T08:08:37.158388 | 2017-05-01T22:57:13 | 2017-05-01T22:57:13 | 83,337,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | from locust import HttpLocust, TaskSet, task
class UserBehavior(TaskSet):
def on_start(self):
self.login()
def login(self):
# GET login page to get csrftoken from it
response = self.client.get('http://localhost:8000/login/')
csrftoken = response.cookies['csrftoken']
... | [
"noreply@github.com"
] | noreply@github.com |
82e4befdb0ca44be5a7027e1fb020349ea55ed08 | cd8a35c735aa9f08d9a25995a53c1cb144fe2b29 | /kirby/cory/indexer.py | 49fff2aebee34aec07103747b204ed7a17907455 | [] | no_license | jxieeducation/Quick-Hackathon-Side-Project-Experiments-2014 | d684a234815d3992caaccb2878f42f2e847021fc | 343caf0ede537060c85a3b0dabb97a5ed090e0e0 | refs/heads/master | 2021-01-10T09:30:10.917732 | 2015-12-01T04:01:53 | 2015-12-01T04:01:53 | 47,163,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,217 | py | import requests, json
from requests.auth import HTTPBasicAuth
import sys, getopt
auths = []
auths.append(HTTPBasicAuth('godzillabitch', 'godzillabitch123'))
auths.append(HTTPBasicAuth('ankitsmarty', 'ankitsmarty123'))
auths.append(HTTPBasicAuth('yasmite', 'yasmite123'))
auths.append(HTTPBasicAuth('qwertybitch', 'qwert... | [
"jason.xie@tubemogul.com"
] | jason.xie@tubemogul.com |
68cc05791599dc07362eb92d86edb5a8e01cf008 | 842532af0167dcedcdb1c99393a34f44a0dcaa57 | /KeyWord-Args.py | d3c45a08e33b08306ab709bdbc0ebc6464280386 | [] | no_license | AlBannaTechno/WorkingWithDecorator- | 16d1c73074429716ebceeb4d6853c163351141aa | dad9fea2d7503eadad9f92dfd8641ab4e3582cb7 | refs/heads/master | 2021-08-26T03:53:46.436702 | 2017-11-21T14:38:46 | 2017-11-21T14:38:46 | 111,560,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | def kwArgs(**multikargs):# we can also use predefine object kwargs
for key in multikargs:
print(str(key) +" : " + str(multikargs[key]))
#kwArgs(a=23,b=343,c="3432")
kwArgs()# we also can no passing any thing | [
"Al_Banna_Techno@yahoo.com"
] | Al_Banna_Techno@yahoo.com |
4fc6b19544b0a448d25c536c50a7bd9a9b72336d | 4dcee7dff58a6f0364283787aa7ad1dff16721e1 | /load_model_bert.py | 6cb6cae267ddd4f18678607ac7e645f9fd5ac9c4 | [] | no_license | karthikpuranik11/Masked-LM | ead8bcb5bcaedb8b62b627cc6dab2ce3c5fefcbe | bb049e493bc9968e3c50cac1fe88ebe7c436523f | refs/heads/main | 2023-03-18T21:51:27.842906 | 2021-03-07T17:37:54 | 2021-03-07T17:37:54 | 342,780,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from transformers import BertForMaskedLM
import torch
import torch.nn as nn
class BertPred(nn.Module):
def __init__(self):
super().__init__()
self.bert = BertForMaskedLM.from_pretrained('bert-base-uncased')
def forward(self, input_ids, attention_mask=None, token_type_ids=None,
... | [
"noreply@github.com"
] | noreply@github.com |
4b17aba114901975c98a5376e5dca216bb72055d | 46fd6a08143d78da4a97e9e3577946ac78c43dc4 | /cerberos/urls.py | 62903c9b86d863603bf500b551d9c461fa6d9ddf | [
"BSD-3-Clause"
] | permissive | jlovison/cerberos | a65edfed5beeca5e6f5ca631dd0749a75c4f941d | 8da69ebdcf134a45e3efbf7827cb9b89f37eca2c | refs/heads/master | 2021-01-21T00:01:10.809572 | 2013-01-20T11:57:14 | 2013-01-20T11:57:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | # -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from cerberos.views import *
urlpatterns = patterns('',
)
| [
"adrian@adrima.es"
] | adrian@adrima.es |
56132f0702fab91eda672f8348039b347ca7ceec | 8169081e3ed51fb3c4bdb59856e839b9155b7020 | /python/src/input.py | a3c74316aca1125dbf07a7de3dbb3ea170dc34f4 | [] | no_license | ri003074/HackerRank | 941653d487d9625f0e420de237eea3a0b9ba143b | 5d624a859d5153d3dfb41698443ff92c6f24ddb1 | refs/heads/main | 2023-02-11T21:24:47.421957 | 2020-12-26T02:25:42 | 2020-12-26T02:25:42 | 323,825,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # val = input()
# val_list = val.split(" ")
# poly = int(input())
# x = val_list[0]
# k = val_list[1]
# print(x)
# print(k)
# result = 0
# for i in range(poly):
# result += x ** (poly - i)
# print(result)
x, k = map(int, input().split())
print(input() == int(k))
print(x)
print(k)
| [
"ri003074@gmail.com"
] | ri003074@gmail.com |
922acf210b4651d39ea9cd56ca4897e55cfa3cc3 | 323ed7b6ba9efc34ee59f5d41e4bde27c57a344d | /fibonacci/fib.py | 77944ce7d8e25b690f5b857b0957c50bd5513c31 | [
"MIT"
] | permissive | jmusila/simple-logic-tests | 89b7711bfd5dbac72687a5b2af5ad20d3f69e686 | 508b0af93e99e3645887fc229718e162ff0c91a0 | refs/heads/master | 2023-04-11T11:43:04.149404 | 2019-11-14T12:43:16 | 2019-11-14T12:43:16 | 215,355,409 | 0 | 0 | MIT | 2021-04-20T18:49:35 | 2019-10-15T17:16:04 | Python | UTF-8 | Python | false | false | 332 | py | """ A fibonnaci is a series of numbers
where each member is formed from the sum of the last two numbers """
def fibonacci(n):
if(n <= 1):
return n
else:
return(fibonacci(n-1)+fibonacci(n-2))
n = int(input("Enter number of terms:"))
print("Fibonacci sequence:")
for i in range(n):
print (fi... | [
"jonathanmusila6@gmail.com"
] | jonathanmusila6@gmail.com |
6f4f8fbbcb0e5c348c98918c383284323a004ea4 | e7a2670b983ae37b4a73ec9db4ce1c7967ae635c | /benchexec/cgroups.py | 5ca4adef56608a870834b68bf6bdf2aaaeb73312 | [
"Apache-2.0"
] | permissive | zmanchun/benchexec | 89bba7b908b1782ad8c771c61ce529ced1c6bce6 | 92427e52840184d51bb88af79e2c10ee5c5fb145 | refs/heads/master | 2021-01-17T17:22:27.917477 | 2017-01-07T16:47:44 | 2017-01-07T16:47:44 | 43,826,931 | 0 | 0 | null | 2015-10-07T15:49:57 | 2015-10-07T15:49:57 | null | UTF-8 | Python | false | false | 15,618 | py | # BenchExec is a framework for reliable benchmarking.
# This file is part of BenchExec.
#
# Copyright (C) 2007-2015 Dirk Beyer
# 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 Lic... | [
"uni@philippwendler.de"
] | uni@philippwendler.de |
57670a608951f0aff03719d78f74fed6b1982d32 | 0e030501f9ca9d7274f9fb4a387deb9a7bf9036b | /message/server.py | b5209b5abf39320d3ee564b28dd2dde0f2f85a8a | [
"MIT"
] | permissive | stilvoid/microservices-workshop | 71ae765cad812af36a2e608eb5b3c8fda26792f4 | 0cfe8f2206bcc3bd333266d9f0d46908651c34ce | refs/heads/master | 2016-09-05T17:08:41.470039 | 2015-08-03T13:25:36 | 2015-08-03T13:25:36 | 39,803,714 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from bottle import *
@get("/messages")
def get_messages(mongodb):
return {
"messages": [
{
"id": "message id 1",
"user": "user id 1",
"room": "room id 1",
"text": "message text 1"
},
{
"id": ... | [
"steve.engledow@proxama.com"
] | steve.engledow@proxama.com |
31be2ad10c3145355839be95755ae95341a9054d | f7b123a3e0f84a787734258f26004bcdb8b439e4 | /Python/scripts/utils/save_pretrained_weight.py | 687a84b437f4cf30a8d7e5d85fe57ebcdbdfbd82 | [] | no_license | teodortotev/3D-Object-Pose-Recovery | ca26d65420487e921daa62a65284edc0e2bbb019 | 19f7e4f77b22104c950ba116c7c823e2409334b4 | refs/heads/master | 2020-12-18T05:07:01.454692 | 2020-05-31T12:17:38 | 2020-05-31T12:17:38 | 235,317,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | import torch
import torchvision as torchvision
def save_pretrained_weight():
#model = torchvision.models.segmentation.fcn_resnet101(pretrained=True, progress=True, num_classes=21, aux_loss=None)
model = torchvision.models.segmentation.deeplabv3_resnet101(pretrained=True, progress=True, num_classes=21, a... | [
"teo@anubis01.eng.ox.ac.uk"
] | teo@anubis01.eng.ox.ac.uk |
773863c3bd0ed062f97b61301d61c084eefefa43 | 8d99c81acb90c23c37f5ec2eba2509cfe9d872b5 | /Codigo.py | 463e645a26566bc8ed642f6c7ead27692b7901c3 | [] | no_license | lalzatem/Proyecto_Conmutacion | 69b7f1f00973ca8d00bb911c35af5b1c8cc86737 | 3e2ae4a2fb60f071dd39fe7582761fc65957cefd | refs/heads/master | 2020-05-27T18:26:50.959111 | 2019-05-17T13:15:08 | 2019-05-17T13:15:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,227 | py | """
Importacion de las librerias necesarias
"""
import csv
import time
import os
import threading
from tkinter import font
from tkinter import *
import tkinter as tk
from tkinter import filedialog
from tkinter import messagebox
import serial
"""
Creacion de variables globales para poder usarlas en cualquier metodo
Rut... | [
"jamesmoralesmoreno@gmail.com"
] | jamesmoralesmoreno@gmail.com |
7041d1c2dc96f6974d2adb1f519283cf5f336461 | ad7e963d5393f7c74a6cf7b9dbb868ca17f30d1e | /vsco.py | 268fb87588cad1cf78dcef69e713b434a3a98806 | [] | no_license | trudypainter/vsco-zine | 5d5a3b8aaa7b4d81649e3c0e6d01ff9443e8e8a2 | acf5f2f94f52f12a2dbdab134316968b7dc46d17 | refs/heads/main | 2023-01-29T20:48:52.504960 | 2020-12-10T02:33:29 | 2020-12-10T02:33:29 | 319,768,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,455 | py | from datetime import datetime
import requests, json, time, datetime
################################
## CONSTANTS FOR VSCO CLASS ##
################################
visitvsco = {
"Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"Accept-Encoding":"gzip, deflat... | [
"tpainter@mit.edu"
] | tpainter@mit.edu |
79821afc06e9fe4955277c7a4ff993e631cd78f5 | a95d2c0042729211a8df5eb58128bb4a7a4899e1 | /GoogleMusicOffline-win32-x64/resources/app/server.py | c5ea3f22fb660aeba1e7b3f6b960f8e0c93451c4 | [
"MIT"
] | permissive | Kronos3/SMM_Bins | 9bb231f90be3087f0c99618be3656a57fe7dbd94 | b0aef3a0e36614071702d8375956244e6af1d742 | refs/heads/master | 2021-01-22T23:33:35.593084 | 2017-03-23T02:02:41 | 2017-03-23T02:02:41 | 85,652,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,200 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# server.py
#
# Copyright 2016 Andrei Tumbar <atuser@Kronos>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the L... | [
"dovakhiin1359@gmail.com"
] | dovakhiin1359@gmail.com |
dd7bda05324df1c30a70004bdcf169a29b9a972f | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-SpriteKit/PyObjCTest/test_skview.py | 96b626096078794678e9693ea10f2b0c41775b58 | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,319 | py | import sys
from PyObjCTools.TestSupport import *
import objc
if sys.maxsize > 2 ** 32:
import SpriteKit
class TestSKViewHelper(SpriteKit.NSObject):
def view_shouldRenderAtTime_(self, v, t):
return 1
class TestSKView(TestCase):
@min_os_level("10.9")
def testMethods10_9... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
3acdc6cbfdcc762fcc68330c815650f4c5ff865b | 7fc0279ca5427a0beb9361419f469fed85b199f5 | /UDP/tsUclient.py | 09fa28ebf07fe1acead529fec00a270241834766 | [] | no_license | huzai9527/python_network | 5a4665dea06d46a9fa1345a10d2307dfd1885be2 | fecdb66aa4bb558f0fd03b9de90a5593b8326172 | refs/heads/master | 2022-11-27T16:23:12.504636 | 2020-07-24T07:51:01 | 2020-07-24T07:51:01 | 278,091,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | """
创建客户端
cs = socket() 创建客户端套接字
comm_loop:
cs.sendto()/cs.recvfrom() 对话(接受/发送)
cs.close()
"""
from socket import *
HOST = '192.168.0.117'
PORT = 23456
BUFSIZE = 1024
ADDR = (HOST, PORT)
udpClientSock = socket(AF_INET, SOCK_DGRAM)
while True:
data = input('> ')
if not data:
break
udpClientSock... | [
"369212851@qq.com"
] | 369212851@qq.com |
c787115220d439682a1c8835e8413108a2beffe9 | 3ca0d23d0d10dd0333f62373fd558bff3edea237 | /analisis/bigml_clm_v02.py | 7927c97fc453826fbfef8c9c938216ef79b457e0 | [] | no_license | charlielm49/07-2017JAN30-printro | ebb51acf5e3267745ced514c1a5cae5f6fe07ea7 | b95d02d3f9c6f5e4edb312a66e7f9653f3c0eca3 | refs/heads/master | 2021-01-17T14:59:57.484038 | 2017-03-14T21:57:05 | 2017-03-14T21:57:05 | 84,100,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py |
# -*- coding: utf-8 -*-
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import datetime
import pymysql.cursors
import glob
import os
BIGML_USERNAME="charlielm1015"
BIGML_API_KEY="90bb088a4d01d81953df8aecfb4ac3a5850423ed"
import pprint
from bigml.api import BigML
api = BigML(BIGML_USERNAME, BI... | [
"charlielm1015@hotmail.com"
] | charlielm1015@hotmail.com |
3753166f54ef09a7824e45477bb2a35d976c2953 | aa2e2765185122be8f5cff48c7fbce999f02435a | /script/mnist_bnlr.py | 46463a23764446b0b7091f2888bc262ae926fe9d | [] | no_license | Lightmann/BatchNormGD | ee904a944a757438040c9203163a2d108da556c0 | 22225684cc3525073ca8ecf4712fa4226f39743c | refs/heads/master | 2020-05-20T11:15:27.161145 | 2019-05-08T06:37:32 | 2019-05-08T06:37:32 | 185,545,206 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | from ModelAndTest import *
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data", one_hot=True)
for i in range(5):
tf.reset_default_graph()
model = Model_mnist_bn()
taskname = 'mnist_bnlr_T%d' % i
#tensorboard_dir = '/home/lightmann/Results/%s/' % t... | [
"noreply@github.com"
] | noreply@github.com |
4ca23ff6fdd410a150963f2a0aeabf250674f2a8 | 15e5cfb245e9f6159c930dcebe149984f837c44c | /Project/keraspatal/layers/embeddings.py | e6578f7e03c92bf58007b4d3ce43c233490cf939 | [] | no_license | Paxanator/Neural-Net-Project | 626a958fadc00c9c08a26b16663dc0253a90dfc4 | 2365055b18f9f0ca31cd7b84d02531fbe43e66a3 | refs/heads/master | 2021-01-25T05:15:31.981655 | 2016-02-20T20:44:56 | 2016-02-20T20:44:56 | 42,752,307 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,851 | py | from __future__ import absolute_import
import theano
import theano.tensor as T
from .. import activations, initializations, regularizers, constraints
from ..layers.core import Layer, MaskedLayer
from ..utils.theano_utils import sharedX
from ..constraints import unitnorm
class Embedding(Layer):
'''
Turn ... | [
"jpb2184@columbia.edu"
] | jpb2184@columbia.edu |
bd3c00409bd74afaf9970fc289a89f285e58e5f0 | 52fe3a40bca17da79bf3e974c3f74d111c311125 | /DBA-master/image_train.py | e8657b3514d2f2a0976c06b6575ac1e02840185f | [] | no_license | wangyongkang-xie/Theroy_DetectAcc | db143f3fe687b29d0b690194cb3a2a55e70b0c19 | 23893a32ebc9313321f5e31caf7e073eec88e488 | refs/heads/master | 2023-01-27T21:19:14.340309 | 2020-12-15T07:07:49 | 2020-12-15T07:07:49 | 321,581,407 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,825 | py | import utils.csv_record as csv_record
import torch
import torch.nn as nn
import torch.nn.functional as F
import time
import main
import test
import copy
import config
def ImageTrain(helper, start_epoch, local_model, target_model, is_poison,agent_name_keys):
epochs_submit_update_dict = dict()
num_samples_dict... | [
"17326992704@163.com"
] | 17326992704@163.com |
8624f48b298a2fab6ca583a37d126b42d754d93b | 92bd1040bf0ccbbbd9bea43c766d756abacc6439 | /step_2/mes/clock_institution.py | 4bc21471b5e4bcdd45559b97f2b4802338714af6 | [] | no_license | gmucsn/mTree_clock_auction_tutorial | f0f5074b9f5f64ebe961276a8d77f75ee5d87c2e | 3a67c02976e742e76f31fc6f3809dce491efb506 | refs/heads/main | 2023-04-04T06:07:59.752069 | 2021-04-09T07:07:14 | 2021-04-09T07:07:14 | 355,942,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from mTree.microeconomic_system.environment import Environment
from mTree.microeconomic_system.institution import Institution
from mTree.microeconomic_system.agent import Agent
from mTree.microeconomic_system.directive_decorators import *
from mTree.microeconomic_system.message import Message
import math
import random
... | [
"skunath@local"
] | skunath@local |
87df33662bfa4926caa32f3b3fb0907ed1ddbc37 | 32226e72c8cbaa734b2bdee081c2a2d4d0322702 | /experiments/state_distance/optimal_control_with_q.py | e6785e1a4453bcf63958d1b547ffd1074ec35676 | [
"MIT"
] | permissive | Asap7772/rail-rl-franka-eval | 2b1cbad7adae958b3b53930a837df8a31ab885dc | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | refs/heads/master | 2022-11-15T07:08:33.416025 | 2020-07-12T22:05:32 | 2020-07-12T22:05:32 | 279,155,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,763 | py | """
Choose action according to
a = argmax_{a, s'} r(s, a, s') s.t. Q(s, a, s') = 0
where r is defined specifically for the reacher env.
"""
import argparse
import joblib
import numpy as np
from railrl.state_distance.policies import (
SoftOcOneStepRewardPolicy,
TerminalRewardSampleOCPolicy,
ArgmaxQFPoli... | [
"asap7772@berkeley.edu"
] | asap7772@berkeley.edu |
82332f085a0ce0530c27abb8493eb16799f8861a | 44e8334e1b17fda7f60d9760f59868a9227e2ab0 | /python-tf/tf2/tf2-10-0-mnist.py | 1510bd8a4542793f25cbb4c7648fb41506d3382a | [] | no_license | MysteriousSonOfGod/python-3 | 47c2aa69a84ba78876c74bc6f2e7e6f3093df1e2 | a303a5284c40f3cb96a8082a1f5ed80773b66336 | refs/heads/master | 2023-02-16T18:21:46.153388 | 2021-01-13T10:55:14 | 2021-01-13T10:55:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | # Lab 7 Learning rate and Evaluation
import tensorflow as tf
import matplotlib as mpl
import matplotlib.pyplot as plt
import sys, os
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
import images.image
learning_rate = 0.001
training_epochs = 15 # total training data을 한 번 train = 1 epoch
ba... | [
"cbaeck1@gmail.com"
] | cbaeck1@gmail.com |
a181287ab47a20cb7149b2e78d496ed95272cafb | 399dae0b5ad9ca27cde175d25b5435958674eb50 | /Reports/Generate Disk Space Report for Endpoints/generate-disk-space-report-for-endpoints.py | a016efdf31e2323d017285a0679d67edcd5a712e | [] | no_license | kannanch/pythonscripts | 61e3ea9e8ebf6a6b0ec2a4a829664e4507b803ba | 843a522236f9c2cc2aadc68d504c71bb72600bd9 | refs/heads/master | 2020-06-12T11:18:00.404673 | 2019-06-28T11:24:37 | 2019-06-28T11:24:37 | 194,282,297 | 1 | 0 | null | 2019-06-28T13:55:56 | 2019-06-28T13:55:56 | null | UTF-8 | Python | false | false | 15,017 | py | no=xx #Edit the xx parameter as Device Timeout. Eg if you have 500 enrolled endpoints then that xx must "100".
Head_computer=r'CHANGE_ME' # Head computer to send the email
emailto=r'CHANGE_ME' # Email address to send the report
Head_computer=Head_computer.upper()
KI=list(Head_computer)
KI.insert(0,str(no))
im... | [
"noreply@github.com"
] | noreply@github.com |
d7d9397514f924e2e3c51219055782d39055529b | f82e67dd5f496d9e6d42b4fad4fb92b6bfb7bf3e | /scripts/client/gui/scaleform/daapi/view/lobby/lobbyview.py | ccca6333bda22faa53d118768576e781414e63cf | [] | no_license | webiumsk/WOT0.10.0 | 4e4413ed4e7b00e22fb85d25fdae9400cbb4e76b | a84f536c73f86d9e8fab559e97f88f99f2ad7e95 | refs/heads/master | 2021-01-09T21:55:00.662437 | 2015-10-23T20:46:45 | 2015-10-23T20:46:45 | 44,835,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,690 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/LobbyView.py
import BigWorld
import VOIP
import constants
import CommandMapping
from PlayerEvents import g_playerEvents
from gui import game_control, SystemMessages
import gui
from gui.LobbyContext import g_lobbyContext
from gui.battle_control import g... | [
"info@webium.sk"
] | info@webium.sk |
11dfb9beb211a5842f05475135524472e63b0052 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/compute/azure-mgmt-avs/generated_samples/workload_networks_get.py | 60db6d3b5326e38bb0efaea0f5d34f54b45f667d | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 1,556 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
aed27d9f42e5ddf4ac6f352e7d7d2b88f8f3a672 | 4eb3ff3e56043bc20162a59039af37533432feb1 | /项目所用模块.py | 1205da794e0b83ed65e541fe40c0fafae5ead37b | [] | no_license | luofang0212/flask_test | 99787a43ba117b0e5684f811ad9f83442c6e95cb | e9ea8644f7bbae94c0b689b79235913f73da7124 | refs/heads/master | 2023-07-26T00:49:53.681815 | 2021-09-06T16:15:11 | 2021-09-06T16:15:11 | 403,010,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 本项目所用到的模块
''''''
'''
python 自带包
'''
'''
python 第三方库
'''
from flask import Flask
from flask import render_template
from flask import request
import jieba # 分词
from matplotlib import pyplot as plt #绘图,数据可视化
from PIL import Image #图片处理
import numpy as np #矩阵运算
... | [
"warm_homel@163.com"
] | warm_homel@163.com |
e562378ac18aecb5fdbdd782a93403acf269a01f | 0ea2b4cc229e92b0af2e1d9ac3b6f9e158ad7083 | /lp/LP_general_checkers.py | e86d6f35fecd43efdcf386b0fa831edba1d99f54 | [] | no_license | anon-neurips-submission/pearl | 80b2f67bea453552516586b8238c40b342ee5189 | 5866e3e0ffe1a4848bb5032f9cf137681a072d32 | refs/heads/master | 2023-05-11T20:01:21.752193 | 2021-06-04T00:01:02 | 2021-06-04T00:01:02 | 373,669,823 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 48,581 | py | import cplex
import numpy as np
import random
import torch
import torch.nn.functional as F
from copy import deepcopy
from scipy.spatial.distance import jensenshannon
DEBUG = True
# combined
def get_confusing_input_pool(net, orig_env, config_file, debug=True, value=True, policy=True, board_size=8,
... | [
"headbannedband@gmail.com"
] | headbannedband@gmail.com |
60c292a379f999760e27264232ec1253c499b0ff | 9ff4bbd92db36b98df97d52719fbfe5b6119dcd4 | /my_first_github_py.py | ddd4bda86a606039a5e1c5c989b045f4a9f7224c | [] | no_license | UllasChandran/hello_world_ullas_firstrep | f0d28880c990f496282297ba5d6799adb47df45d | 298f5bf367f53b96dd72d15f58aaa3a0dc3f5968 | refs/heads/main | 2023-08-22T08:18:05.814907 | 2021-10-08T07:32:24 | 2021-10-08T07:32:24 | 414,888,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | print("Hello ALL . This is my First Python File in github")
| [
"noreply@github.com"
] | noreply@github.com |
7539f89d65e13d8d08aa52f5ad2cb95edad6e77c | 572dd7f851ff2f6b39fea8f99199c22260f113df | /user/messages/success.py | b4e779b05fd4003a8e96f5153edf170b46c1ee00 | [] | no_license | SEUNAGBEYE/Flighty | f869f3fb1c1c74bddff9102b11a02411f502dc52 | 46247f93e7f9c83441c3f50eaca2f0d3eaeca96f | refs/heads/develop | 2022-12-13T12:17:58.760670 | 2019-07-29T15:51:36 | 2019-07-29T15:51:36 | 165,585,170 | 0 | 0 | null | 2022-12-08T01:36:58 | 2019-01-14T02:52:46 | Python | UTF-8 | Python | false | false | 172 | py | USER_CREATED = 'User successfully created'
LOGIN_SUCCESSFULL = 'User sucessfully logged in'
PROFILE_UPDATED = 'Profile updated'
USER_RETRIEVED = 'User successfully fetched' | [
"agbeyeseun1@gmail.com"
] | agbeyeseun1@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.