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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24f2de63f6fe12b2e69518221df7bc7cef282fb6 | 078e35f6b03e4e7a9616f2335a740109d8292176 | /examples/adwords/v201609/advanced_operations/add_ad_customizer.py | f3c8da4ffc6854a0fdba2a28bd13a0f160fd0adb | [
"Apache-2.0"
] | permissive | parander/googleads-python-lib | 5f5b09e8adf7d733bddca314f6aa624b60c5abde | bc1bdff2d58fdc7cf4f09b879c68757c5b9b3abc | refs/heads/master | 2021-01-12T16:36:44.861582 | 2017-02-27T04:27:18 | 2017-02-27T04:27:18 | 71,418,777 | 0 | 0 | null | 2016-10-20T02:38:33 | 2016-10-20T02:38:32 | null | UTF-8 | Python | false | false | 7,140 | py | #!/usr/bin/python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"msaniscalchi@users.noreply.github.com"
] | msaniscalchi@users.noreply.github.com |
629585562843f773778c17fec9276488963e4e18 | 515e7d6e5756e3922df0b874b241c8b0744b4570 | /packs/python_packs.py | 1d34ff441b4097d542aca3c6d08a9dd2b0ef7e4d | [] | no_license | mjgpy3/udm_script | d77f4904df62e33c72f690cdf4049a1118be105b | d04802d21797fa6ed03cfc35c955bcc6d028f1c2 | refs/heads/master | 2021-01-23T11:40:25.415072 | 2013-07-30T16:53:31 | 2013-07-30T16:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | #!/usr/bin/env python
# Created by Michael Gilliland
# Date: Fri Jan 25 16:47:44 EST 2013
#
#
from package_container import PackageContainer
packages = {'Pygame': 'python-pygame',
'Sympy': 'python-sympy',
'Numpy': 'python-numpy',
'Scipy': 'python-scipy',
'Virtualenv... | [
"mjg.py3@gmail.com"
] | mjg.py3@gmail.com |
e36f86f692711d3516598a57f325dc3781d9a3e0 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/task/deployctx.py | 5ec363019c9a320d6f2cdd11ef473a166e344841 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,835 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
4518d0a2fb6618907b910ed981d40befde7a5cc4 | 81d4411216885ddd5ad19703e52a9918b198f061 | /set_esxi.py | 71f35136dceea171ec7837508b976b0cda9ab6dc | [] | no_license | Itaiweisman/set_esxi_host | 4f9276eb7f3fb0d0162ca147f372957058237c80 | 0b6efc4c43b5d41a3ebe6251b623e7c58079beef | refs/heads/master | 2020-04-30T11:18:43.982271 | 2019-03-20T19:08:49 | 2019-03-20T19:08:49 | 176,798,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py |
import requests,json,getpass
def get_host_id(box,name,auth):
url="http://{}/api/rest/hosts?name={}".format(box,name)
hosts=requests.get(url=url,auth=auth).json()
if hosts['result']:
return hosts['result'][0]['id']
else:
if hosts['error']:
print "****ERROR::******"
... | [
"iweisman@infinidat.com"
] | iweisman@infinidat.com |
884306ac61e7bb8daf4a0dbc6659c8a307541a3f | 35d38520fb59bf6f7353c660f3082ad09313d616 | /autodroid/setup.py | 0f239771f654cb194fc4839a9d8c705371f423a1 | [
"Apache-2.0"
] | permissive | AndyZhu1991/AutoDroid | bca037e0f6bbec39a0932786f935e8d860219f19 | 0c6121513b9e6b2d6e8506eea58748afd73e003d | refs/heads/master | 2021-12-07T03:42:59.746655 | 2021-11-19T16:01:56 | 2021-11-19T16:01:56 | 242,977,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from setuptools import setup, find_packages
setup(
name='AutoDroid',
version='0.1',
packages=find_packages(where="src"),
package_dir={"": "src"}) | [
"stdzhu@gmail.com"
] | stdzhu@gmail.com |
9b801e87ac7dc8e013dd99b87a004a11b8c5268e | 0372eb2446d6463f835f82cbc24d34fd8655236b | /relso/utils/data_utils.py | 75d6d8c80e9eab93c4843e96b55905cff017f126 | [
"Apache-2.0"
] | permissive | KrishnaswamyLab/ReLSO-Guided-Generative-Protein-Design-using-Regularized-Transformers | 82cb2f7578f5adafaded8dfd8b4a91d025ff6b4f | f2fee841da406bb38f080af4445b5f790af31c43 | refs/heads/main | 2023-07-25T12:35:37.502064 | 2023-07-06T00:24:55 | 2023-07-06T00:24:55 | 436,740,631 | 67 | 10 | Apache-2.0 | 2023-07-06T00:24:56 | 2021-12-09T19:42:41 | Python | UTF-8 | Python | false | false | 5,606 | py |
"""
Helper functions for data processing
"""
import numpy as np
import torch
#-----------
# CoNSTANTS
# -----------
ENCODING = {"I":[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"L":[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"V":[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0... | [
"ec_lab@vpn172022125223.its.yale.internal"
] | ec_lab@vpn172022125223.its.yale.internal |
33781b012962db67557b18ef19e88feb1d14df07 | d9fa7fcf004d2efb97fe483d64b709ad9d3970a7 | /Keras_Wordembedings.py | d71840ae9240d91ba660b4df0bde8c05c139b55b | [] | no_license | jyotirepo/CNN | a5443e7a02639202eb61c8797260c71f27ecaaee | cde6a31d33e3af424de0264781093a49a521fcb3 | refs/heads/master | 2023-05-02T20:26:18.058442 | 2021-05-22T19:14:45 | 2021-05-22T19:14:45 | 369,862,039 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 23 00:01:37 2021
@author: jysethy
"""
from tensorflow.keras.preprocessing.text import one_hot
### sentences
sent=[ 'the glass of milk',
'the glass of juice',
'the cup of tea',
'I am a good boy',
'I am a good developer',
'understand the meaning ... | [
"jsethy2010@gmail.com"
] | jsethy2010@gmail.com |
47a188a86366a4a071ac861cfc91a2039adbcfee | 267fe0eac66548850d541d26d74e6662d304d577 | /ImageGeneration.py | 37af7236a0f5e72926775d14c0ca8987c2f32149 | [] | no_license | NotOdayakaShulk/ShulkBot | 93fa3c6e31f500dfa93cb89148466018c6a8b755 | a15d22e5bbccc245892fdd23ce5d776f3f922c4a | refs/heads/master | 2020-07-09T12:52:09.935608 | 2019-08-24T16:42:19 | 2019-08-24T16:42:19 | 203,972,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,022 | py | # -*- coding: utf-8 -*-
import numpy as np
from PIL import Image, ImageFilter, ImageFont, ImageDraw
import random
class VisionPic:
imgHeight = 720
imgWidth = 1280
tagHeight = 80
tagWidth = 932
tagPos = ( imgWidth - tagWidth, 70 )
fontSize = 40
txtBoxWidth = 320
txtBoxTopLeft = ( 180, int((tagHeig... | [
"ouhare@icloud.com"
] | ouhare@icloud.com |
1f850d25b6fb00e2da6a8dadaeab4e60e0509438 | 83376bda216b39a25851ee37b66aadeadf53b55c | /examples/features_per_sample_comparison.py | d71665ff56a76e6d2f7f9d224ca845b671c63ff7 | [] | no_license | lucasplagwitz/auto_cpca | 710f5cdcd85f3fc14865a740ee99db37425fbbfc | ce6031d875b1ba4c7d5caad227ad4b9ad101d3d9 | refs/heads/main | 2023-07-15T20:24:46.048329 | 2021-08-27T21:51:18 | 2021-08-27T21:51:18 | 398,742,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,614 | py | # adapted example from sklearn:
# https://scikit-learn.org/stable/auto_examples/classification/plot_lda.html#sphx-glr-auto-examples-classification-plot-lda-py
import numpy as np
import matplotlib.pyplot as plt
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis, QuadraticDiscriminantAnalysis
from skl... | [
"l.plagwitz@uni-muenster.de"
] | l.plagwitz@uni-muenster.de |
306169c51708eb9ebd6f3a4715d52aaf5b2f46c0 | 09c87fe780df6d1f9eb33799ed516a0bbd7ab1e3 | /Research/async play/wxasync1.py | 938fa1c468981bdc521f7644434f52312729c2b3 | [] | no_license | abulka/pynsource | 8ad412b85dc1acaeb83d7d34af8cc033c6baba91 | 979436525c57fdaeaa832e960985e0406e123587 | refs/heads/master | 2023-04-13T12:58:02.911318 | 2023-04-11T09:56:32 | 2023-04-11T09:56:32 | 32,249,425 | 271 | 46 | null | 2022-10-10T04:36:57 | 2015-03-15T07:21:43 | Python | UTF-8 | Python | false | false | 1,429 | py | import wx
from wxasync import AsyncBind, WxAsyncApp, StartCoroutine
import asyncio
from asyncio.events import get_event_loop
import time
class TestFrame(wx.Frame):
def __init__(self, parent=None):
super(TestFrame, self).__init__(parent)
vbox = wx.BoxSizer(wx.VERTICAL)
button1 = wx.Button(s... | [
"abulka@gmail.com"
] | abulka@gmail.com |
3b908a68a40bde74242b3caab16d882a5a2f90ee | 057aab8f9c5689fe2580aa43c13d0e0469cd5feb | /fooler/migrations/0003_auto_20151019_0806.py | 8f805d85ee24732959aa834c52183fad560243a2 | [] | no_license | freshmilk15/foolishboy | 95d594ab99c8ca7914187e1562567423f7b67989 | a5f487000e768bfe40e55feccc6f779f5f619909 | refs/heads/master | 2021-01-10T11:44:23.024531 | 2015-11-09T15:50:34 | 2015-11-09T15:50:34 | 45,245,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('fooler', '0002_userprofile'),
]
operations = [
migrations.AlterField(
model_name='question',
name='q... | [
"kerwin15@126.com"
] | kerwin15@126.com |
322a5464f69564f230074c929f48a2d6eefd007e | cacd2f52749ecc76f87183e7a1a849d09c582ac7 | /venv/bin/pip3.6 | cd98ed11cf5641b94b5f7ca8befa223132a5b945 | [] | no_license | arthurpx77670/PROJECT_COVDPX | 59b9ec005ee229245ff9a90170e49bbb64e1babc | 82e9879d34056ba099007fda749a4bf6ef7c410a | refs/heads/master | 2021-04-24T06:06:46.893120 | 2020-04-05T16:16:18 | 2020-04-05T16:16:18 | 250,089,789 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 413 | 6 | #!/home/eisti/PycharmProjects/PROJECT_COVDPX/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.6'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"perringaux@eisti.eu"
] | perringaux@eisti.eu |
1048dc6f234e2af5a67f902db68e427fc5fc1052 | 713fc732a037447897092722647e28cb7a9711a8 | /app/api_1_0/users.py | 6023ebe9c2fdc0cdc7ed2a6926ee3bff2e0c65dd | [] | no_license | jkachhadia/StatsBoy | 9612eec07b44cf34f76c63eddbb085daa7869640 | ad9bb1f921dcb4c74b1ba842b015445c1e0abe33 | refs/heads/master | 2021-01-18T00:46:20.848151 | 2016-07-26T22:09:10 | 2016-07-26T22:09:10 | 64,026,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | from flask import jsonify, request, current_app, url_for
from . import api
from ..models import User, Post
@api.route('/users/<int:id>')
def get_user(id):
user = User.query.get_or_404(id)
return jsonify(user.to_json())
@api.route('/users/<int:id>/posts/')
def get_user_posts(id):
user = User.query.get_or... | [
"jaykachhadia@hotmail.com"
] | jaykachhadia@hotmail.com |
f160905d816728acf5ab28b38fe37cd56249ef23 | a95aebf977058d32fa4298e35939fb5813f11276 | /nn/layers.py | f339ba6e01b645a013632b3b8d3cd2e47a1ae2a2 | [
"MIT"
] | permissive | CV-IP/uqvi | f6e595c60ab86eb00c3b221d24f7300a4f872839 | 2534c26c41a4745e98d4b12d66270691002d1a5f | refs/heads/master | 2022-12-22T20:47:44.140964 | 2020-10-03T17:40:17 | 2020-10-03T17:40:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | py | import os
import math
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.modules.utils import _pair, _triple
from nn.bayes_conv import BayesConv3d, BayesConv2d
class ConvBlock(nn.Module):
def __init__(self, in_channels, out_channels, kernel, s... | [
"noreply@github.com"
] | noreply@github.com |
d78ec7a24eeaf6b851e023391de0374e52f65f9a | def8eea03f1f0923eb5c8548dec55d6b8af3cc63 | /calibrateKDEGlobal.py | fd4b4a9a2ca1882f83f3a7293f852fcff5ff371a | [] | no_license | nalipour/TimepixCalibration | 5bf668c6005e955a89819f8c6d59c85119f1bf11 | 4893b6c34922064c9b9347f00a4fe78285200b82 | refs/heads/master | 2021-01-18T14:45:05.517492 | 2015-06-22T16:50:52 | 2015-06-22T16:50:52 | 32,589,720 | 0 | 0 | null | 2015-03-20T14:54:04 | 2015-03-20T14:54:03 | null | UTF-8 | Python | false | false | 14,559 | py | # will use kde method to finding most likely TOT
# for the global calibration
from optparse import OptionParser
from scipy.stats import gaussian_kde
import numpy as np
import matplotlib.pyplot as plt
import ROOT as R
from os import environ
import getpass
import Constants as C
parser = OptionParser()
parser.add_option... | [
"sophie.redford@gmail.com"
] | sophie.redford@gmail.com |
a069e590eabbac4bb1d1542c31087dfa21eb1e84 | ddcea8e8bd8f50a6e11dc4e22040c68692b3e3c4 | /create_tables.py | 0bbd861c02d45b9f731fe3ad3f09e420463dc84b | [] | no_license | dvee/udacity-data-warehouse-aws | c2451e3c288798f736ad7decf8d9444d686263b2 | 4d0fcd99da5cabb657128fdbba19fd247d16a41f | refs/heads/master | 2020-07-06T15:29:48.453216 | 2019-09-08T19:42:41 | 2019-09-08T19:42:41 | 203,067,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import configparser
import psycopg2
from sql_queries import create_table_queries, drop_table_queries
def drop_tables(cur, conn):
"""Drop all tables if they exist"""
for query in drop_table_queries:
cur.execute(query)
conn.commit()
def create_tables(cur, conn):
"""Create all tables"""
... | [
"david@guestfolio.com"
] | david@guestfolio.com |
44685bc6126a0ae65a4a1fe07c203845687041f2 | 9d66d325a8cbda44a763d09f6d849155215a7eda | /snippets/serializers.py | 8b6686afeb2fb3dd37b0637ca5d3029800879e73 | [] | no_license | canhazn/rest-course | b082f8ae7848c27f49808df15dfc6cf487dfbe33 | fe067826cd821c8630bafe2c594c2742ba029ac3 | refs/heads/master | 2023-08-23T17:22:54.433605 | 2020-07-08T08:58:44 | 2020-07-08T08:58:44 | 277,531,447 | 0 | 0 | null | 2021-09-22T19:23:41 | 2020-07-06T12:07:32 | Python | UTF-8 | Python | false | false | 776 | py | from rest_framework import serializers
from snippets.models import Snippet
from django.contrib.auth.models import User
class SnippetSerializer(serializers.HyperlinkedModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
highlight = serializers.HyperlinkedIdentityField(
view_name... | [
"canhazn@gmail.com"
] | canhazn@gmail.com |
36760817da871664ff0f2462b9109898302b92f3 | 4a4d87489649bf9b9dd8db5977485c3b64c0b521 | /Scripts/get_objgraph.py | 5ffc9cdf4d88756dfd314876dc042f8bb158e6d3 | [] | no_license | laichunkit0903/text_classification | a3e725ebd05b2185e5b818e3624e27256e87127d | 7de450e896d5ff0e64170e004d84d470dcf93508 | refs/heads/master | 2022-04-20T11:18:08.192247 | 2020-04-13T01:29:40 | 2020-04-13T01:29:40 | 131,254,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | #!c:\users\luther\desktop\mpd\01tont~2\mpd_te~2\scripts\python.exe
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 2008-2016 California Institute of Technology.
# Copyright (c) 2016-2017 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is availabl... | [
"warless0903@gmail.com"
] | warless0903@gmail.com |
e3da8e40e1e2faa8a8ab45b5257ebe4fcc46b755 | a27cde8f9b353136f7d6824405a2086dee149c7f | /processpics.py | d3cc4cc02f8d491290baeac03674044ebc8cc846 | [] | no_license | akabaker/processpics | edd74798730502117590b49930ebb4c04851830d | 801e4763d16fc56037463d8b943107223baa06b7 | refs/heads/master | 2016-09-06T17:49:41.951336 | 2013-01-04T21:20:27 | 2013-01-04T21:20:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | #!/usr/bin/python
import asyncore
import pyinotify
import os
from SimpleCV import Image, Color
class EventHandler(pyinotify.ProcessEvent):
def color_distance(self, img, output_file):
result = img.colorDistance(Color.WHITE)
result.save(output_file)
def find_lines(self, img, output_file):
lines = img.findLine... | [
"akabaker@gmail.com"
] | akabaker@gmail.com |
f2b7264c36abf79d6fb76f1e26a17863e07ec4f4 | 9e7ab3bfab5a1c31bcce2b0501e1bed80a28d091 | /__init__.py | 536521bfe2234d5c484133231476ded8fdfc37b3 | [
"MIT"
] | permissive | ctb/vamb | 0009a18a32bddc7c3c32b9547cdd76fb1132aa17 | 06fecb93ec837e50383d78b5dc46fa4345ffca40 | refs/heads/master | 2020-04-14T00:15:35.879811 | 2018-12-20T12:03:17 | 2018-12-20T12:29:31 | 163,529,044 | 0 | 0 | null | 2018-12-29T17:31:28 | 2018-12-29T17:31:28 | null | UTF-8 | Python | false | false | 1,166 | py | """Variational Autoencoder for Metagenomic Binning
Vamb does what it says on the tin - bins metagenomes using a variational autoencoder.
Vamb contains the following modules:
vamb.vambtools
vamb.filtercontigs
vamb.parsecontigs
vamb.parsebam
vamb.encode
vamb.cluster
vamb.benchmark
To get it running, you need:
- A FAST... | [
"jakobnybonissen@gmail.com"
] | jakobnybonissen@gmail.com |
907417fa48b08213c3e051da3d7ee7ae5c1ecf4a | 82646fb7fe40db6dcdf238548128f7b633de94c0 | /workspace/Python/Crawler/CookieToFile.py | 0e70b36dc42628037e532b82d407573e996e1b1e | [] | no_license | jtahstu/iCode | a7873618fe98e502c1e0e2fd0769d71b3adac756 | 42d0899945dbc1bab98092d21a1d946137a1795e | refs/heads/master | 2021-01-10T22:55:47.677615 | 2016-10-23T12:42:38 | 2016-10-23T12:42:38 | 70,316,051 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | import cookielib
import urllib2
#设置保存cookie的文件,同级目录下的cookie.txt
filename = 'cookie.txt'
#声明一个MozillaCookieJar对象实例来保存cookie,之后写入文件
cookie = cookielib.MozillaCookieJar(filename)
#利用urllib2库的HTTPCookieProcessor对象来创建cookie处理器
handler = urllib2.HTTPCookieProcessor(cookie)
#通过handler来构建opener
opener = urllib2.build_opener(... | [
"root@jtahstu.com"
] | root@jtahstu.com |
a391dd863ff7a6a1cb59879e6ca2c7fde6313763 | 43bf100bbb15a3c0c4d2b6f7fe521f10393ecbae | /networkUDP.py | 79edc4c0cf4f07e840963f7493db3d4db6250916 | [] | no_license | HourGlss/Arena | 1a70e80b3b2f5078033c238f7db728e7a240629e | dfe016ca4867550ca083bfa3ceb35bdd7a6da34c | refs/heads/master | 2020-05-05T04:44:56.561441 | 2019-04-12T06:33:02 | 2019-04-12T06:33:02 | 179,723,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,441 | py | import socket
import pickle
import random
import time
import config
import threading
import sys
class Network:
uid = None
sleep_time = .016
to_send = None
to_send_lock = False
last_received = None
last_received_lock = False
stop = False
def __init__(self):
self.host = config.hos... | [
"azbairos@gmail.com"
] | azbairos@gmail.com |
daffcd2c71e1aa642d272207dca6fb0e42a37757 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /smith/bert/tokenization.py | dc88d1b4e3bbfaae01a5a7e0f295c7f14bd70f27 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 13,084 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
e0967cf8441070bc9a2723496d0ceb00cb79f645 | e4b15796f8ff22ec4ac1da0f06594f241a7f0116 | /tes1.py | a6798d7da0538e3af2a9092188f6036ef6467220 | [] | no_license | Bejjoeqq/flask_api | 394b67ff6999733c9fd544da1d71c04f5de55222 | bec0c94a9304e2bb5c9687752a6f4d8d337f5f7e | refs/heads/main | 2023-04-09T14:45:32.396773 | 2021-04-10T09:31:44 | 2021-04-10T09:31:44 | 339,671,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | x = "Hello world"
def asd(xx):
return "Hello" in xx
def function1(s):
print(s("Hello"))
def function(s):
print(s("Hello","a"))
if __name__ == '__main__':
# function(lambda xx,y: "Hello" in xx)
xx = [80 if "Hello" in x] | [
"aldhiya.rozak@gmail.com"
] | aldhiya.rozak@gmail.com |
c441260c06dae91d6641ae9d9d73cf55928c8d6e | 3f0a446f493951693af0e6f44fa8076b7522a2fb | /ga_v3.py | a55948cf4f0a5f235cdd9c4537673fda6923a895 | [] | no_license | by-student-2017/eam_database_fit | f74fb2c8504f709e677b1a2c4c9e34c688a3930c | a74006c402bd46550b67dc27a9284c7dd1d262e2 | refs/heads/master | 2023-03-24T07:12:44.277706 | 2021-03-02T03:49:50 | 2021-03-02T03:49:50 | 281,506,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,809 | py | import random
from deap import creator, base, tools, algorithms
import numpy
import numpy as np
import commands
import sys
#----------------------------------------------------------------------
file_tmp = 'EAM_code.tmp'
file_inp = 'EAM_code'
lammps_adress = "lmp"
cif2cell_adress = "cif2cell"
commands.ge... | [
"studentsctest@gmail.com"
] | studentsctest@gmail.com |
bbcdb1fdabe813c0995be9185442d197293f334f | 750d39f243eaefb2d7f0e088f34dd382f920575f | /semester1/untitled1.py | dce725e8b87d13598297a2a259e5da25e307a9b1 | [] | no_license | owsiankakamila/Python | 3a146eb354f167326ad044d3ed9a0907188d0e4b | c589ae0afe5d53040d3f9eaef523664bec724bcf | refs/heads/master | 2021-05-12T02:26:31.067880 | 2018-04-28T08:30:26 | 2018-04-28T08:30:26 | 117,585,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | """import time
def silniaIt (n):
silnia =1
for i in range (2,n+1):
silnia*=i
return silnia
def silniaRek (n):
if n==1 or n==0:
return 1
def fibRek (n):
if n==1:
return 1
elif n==0:
return 0
return fibRek(n-2)+fibRek(n-1)
def fibIt (n):
a, ... | [
"owsiankakamila@gmail.com"
] | owsiankakamila@gmail.com |
19f8f0b36d7b5c449bd0feb2eb457df69467626e | 8887a391584e381b526fc4c695b34d3e3b1a2180 | /terminate_instances_startingwith_brooklyn_name.py | 0a17f9bad18495abeeae17cff2bbd72c1d17c272 | [] | no_license | omkarm07/terraform | 62e674964b9f06301c261faa6e634b0c0355a33b | 9c8e8c1c40e64a4c73db95e95dd4edd20456c516 | refs/heads/master | 2020-04-06T14:51:49.853561 | 2018-11-14T16:31:22 | 2018-11-14T16:31:22 | 157,557,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | import boto3
ec2 = boto3.resource('ec2')
ec2client=boto3.client('ec2')
def lambda_handler(event,context):
print(str(event))
response = ec2client.describe_instances(
Filters=[
{
'Name': 'tag:Name',
'Values': ['brooklyn*']
}
]
)
ins... | [
"mangalekaromkar@gmail.com"
] | mangalekaromkar@gmail.com |
1657edac0a3ad08f94e7d80f503141227f980e7c | 2870af1dcdaa7e96e6ca50b87c97bd2be146520b | /api/main/utilities/constants.py | 467953c1770c4767a03e631d39415fe9da9e70b3 | [] | no_license | elsh32/search-analytics | 3edc530ab23c0c1f5cfa8de3619625caab7147c8 | aa143608c4ac709f26ba424f9f1acdd25b14f86d | refs/heads/master | 2023-01-02T23:27:37.013151 | 2020-10-27T07:15:51 | 2020-10-27T07:15:51 | 307,502,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | # -*- coding: UTF-8 -*-
import os
# Documentation settings
SWAGGERUI_URL = '/v1/doc'
SCHEMA_URL = '/static/v1/swagger.json'
PAGE_TITLE = 'TeraJob XP API Doc'
SUPPORTED_SUBMIT_METHODS = ['get', 'post', 'put', 'delete']
SWAGGER_CLIENT_REALM = 'MyTeraJobAPIRealm'
SWAGGER_CLIENT_ID = 'MyTeraJobAPIID'
SWAGGER_CLIENT_SECRET... | [
"elshaddhai@MacBook-Pro-de-Elshaddhai.local"
] | elshaddhai@MacBook-Pro-de-Elshaddhai.local |
63f89291194b4ee7dec018100eb9a16583e433dd | 5d96286b3002ded31aa847863697e37dbfa5f47f | /Lesson1/find_lines.py | 1438d2f22c5ab6b636c91e941bc5e6672e9e7d57 | [] | no_license | mengzhongren10/self-driving | 6d6738e9e2572e50ad40b44fcd2a6bad94454ba7 | 8523a4666ef7c642ad6ddc572a7ebac2e4665435 | refs/heads/master | 2020-06-13T03:16:49.894332 | 2019-06-30T15:02:57 | 2019-06-30T15:02:57 | 194,515,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,565 | py | import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import numpy as np
import cv2
import math
#image = mpimg.imread('test_images/solidWhiteRight.jpg')
#
#print('This image is:',type(image),'with dimensions:',image.shape)
#plt.imshow(image)
def grayscale(img):
#使图像变为灰度
return cv2.cvtColor(image,... | [
"noreply@github.com"
] | noreply@github.com |
1673ff7542d2797db9dd145ac79b90d92445bc9e | 90cc2bc9ee9184f28c235663e8688100665d0e85 | /timer.py | f49ef09bee82d5942eae05d40b536ba67e7730ff | [] | no_license | defalt-x/WPCH-3301 | 963e96aaa5c1ca6007d99fa9057df3bb6fb00492 | c169e6204a373cee2bcd1aeebc0a718fb6b86a98 | refs/heads/main | 2023-03-16T21:36:27.822318 | 2021-03-10T21:56:51 | 2021-03-10T21:56:51 | 344,626,622 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | import timeit
def timer(number, repeat):
def wrapper(func):
runs = timeit.repeat(func, number=number, repeat=repeat)
print(sum(runs) / len(runs))
return wrapper | [
"noreply@github.com"
] | noreply@github.com |
d6de5d30d6176e66e5de84c83fb49393801d39e2 | 1283942c15e320c50ad891cb0dc29238d4819d99 | /src/algorithm.py | 70a49108b874f3a4ebbab2736b1e0277efe7a1aa | [] | no_license | qlyseven/source-code | c147a8d018aab6149dc0539e1ae3fd657d56e472 | 3dda02439f729891182cb6db483f24df0c100163 | refs/heads/master | 2021-05-07T21:35:00.124857 | 2018-08-31T07:23:49 | 2018-08-31T07:23:49 | 109,031,434 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,108 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 20 15:12:09 2017
最小斯坦纳树实现
@author: Yanchao
"""
import queue
import numpy as np
import time
import json
from apiGraph import apiGraph
from steinerTree import STree
from steinerTree import SteinerTreeQueue
MAX_WEIGHT = 999
class MinimalSteinerTree:
def __init__(self, g... | [
"lianyongqi@gmail.com"
] | lianyongqi@gmail.com |
4191d7dfb542685e97556fdb5988ca82b5b9dc42 | bb970b66e4033e83e98bfe31c9d0f05f8583bc7f | /blog/urls.py | 561f28b29877d65faf31f48da0f53e7d7096f59e | [] | no_license | goyal-aman/Django-BlogSite | b06462c2e5afa3cad24f2087f734c89ed7ddc0be | 70545267726979041bac11132c8a659e1852e7ab | refs/heads/master | 2020-12-04T23:25:07.951375 | 2020-01-05T15:11:14 | 2020-01-05T15:11:14 | 231,934,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.PostListView.as_view(), name="blog-home"),
path('post/<int:pk>/', views.PostDetailView.as_view(), name='post-detail'),
path('post/new/', views.PostCreateView.as_view(), name='post-create'),
path('post/<int:pk>/update', view... | [
"amangoyal8110@gmail.com"
] | amangoyal8110@gmail.com |
25949d3e870b9fe8550ea390091bfa9208927a6a | 85ed0e0fb9dc78322ab2a9d00f37b09c6e6ce947 | /djangoPractice/practiceVenv/bin/pip | edfdf12750184fd0ab37e7c6f0e46ad3e4df87fa | [] | no_license | PDXCodeGuildJan/kris_kuchinka_repo | 83c1f5a657e1573688ad36f7ab13b52937763042 | 751ff3c75e0c950a473a18105c4b3e6a17db1104 | refs/heads/master | 2021-01-10T15:59:22.480964 | 2016-04-09T21:46:19 | 2016-04-09T21:46:19 | 49,224,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | #!/Users/kriskuchinka/Google_Drive/code_guild/kris_kuchinka_repo/djangoPractice/practiceVenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kriskuchinka@gmail.com"
] | kriskuchinka@gmail.com | |
5d66d81428f8fc2de66cc99b42088d438df42218 | 350eef7ff3914e318374501560e905ec1cb7fbce | /Problema1/Cliente.py | 296b34c3f8f7640be3826f0747c37cbf3f242c75 | [] | no_license | aldom7673/AplicacionesParaComunicacionesRed | b1e1ee16dfd054de472864b41f55e18f842c880b | 5ffb99b06e8725be774da5547f64eaca00aaa1f0 | refs/heads/master | 2020-12-21T20:21:44.007302 | 2020-06-29T17:13:58 | 2020-06-29T17:13:58 | 236,547,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,220 | py | # Aplicaciones para comunicaciones en red
# Autores:
# Martell Fuentes Ambar Desirée
# Mendoza Morales Aldo Daniel
import socket
import pickle
import os
import datetime
import threading
import sys
import speech_recognition as sr
from Personaje import *
personajes = []
BUFFER_SIZE = 1024
HOST, PORT = sy... | [
"aldom7673@gmail.com"
] | aldom7673@gmail.com |
edebd772a2cb1a6122d38b8eddec11971bfcf74a | 3f15edc4afd3d8f813aaf2cd71bcde26a9ff9540 | /users/migrations/0001_initial.py | 22e9a1daf28ce840e9594825ff2ea24dbb6c3a0f | [] | no_license | kanikamital0606/Custom-user-model-Admin-Testing | 7650d8522edf11daea469af24fce016454b7598b | 610e6bcb0309827f6ab9e57169d78585364353c6 | refs/heads/master | 2023-07-21T23:42:54.708033 | 2021-08-30T23:01:30 | 2021-08-30T23:01:30 | 401,090,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | # Generated by Django 3.2.6 on 2021-08-30 21:36
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
... | [
"kanikamittal0661996@gmail.com"
] | kanikamittal0661996@gmail.com |
99adf5f481c8618518c16bf2bd97075314355ca7 | 6ea51617130ddb6372eb77c402051bcbf3403b6a | /BinarySortTree.py | 070e0f50efb90b65596aa3eb6c23084701cf2790 | [] | no_license | ghsszwsxxn/LearnPython | b9646e69f4d668575c8a5f93e60160157a70fd10 | e347e7cd62ab57c80e5c6539e108217246de7783 | refs/heads/master | 2020-05-14T13:38:35.276298 | 2019-04-17T05:10:12 | 2019-04-17T05:10:12 | 181,817,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | class Node:
def __init__(self,value):
self.value = value
self.left = None
self.right = None
class Tree:
def __init__(self,values=None):
self.root = None
if values is not None:
for value in values:
self.add(value)
def add(self,value):
... | [
"gushiyipef@163.com"
] | gushiyipef@163.com |
dac7cb078abc3e81edeb99b4138581a79720c52f | d45daff15670807b2b81ea4de24dbf718e87645d | /ibot/__init__.py | 0f4f23ef09de6ba1d07344933fcac97cbddf0f49 | [
"MIT"
] | permissive | PayneWinn/MissHome-master | 434906ae816bd66dfe588a4b99dd50edb0828b50 | 7fb414f5b00309f3b272a7be552843244515ae5a | refs/heads/master | 2020-04-18T18:01:03.349550 | 2019-01-26T09:45:15 | 2019-01-26T09:45:15 | 167,671,754 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | # -*- coding: utf-8 -*-
__author__ = 'wenjie wu'
__email__ = 'wuwenjie718@gmail.com'
__version__ = '0.1.0'
| [
"wupeng@myhexin.com"
] | wupeng@myhexin.com |
e7ff40b024ecd7f924643344662d1c6f8eed185e | febd5a0a7b08e85bd6602b92f2928201fa6fad77 | /bbc_simple/core/data_handler.py | 6e5b1a52ee9aec5085df978f9187aea970355eff | [] | no_license | quvox/bbc-simple | 0f7fffac329ce727c4d89d621cb2e2ca22a42a46 | 0455abd689f2a0afaeffe612e4eb566e792d5661 | refs/heads/develop | 2020-03-18T00:54:47.179956 | 2018-07-17T09:48:10 | 2018-07-17T09:48:10 | 134,118,780 | 1 | 3 | null | 2018-06-28T13:02:09 | 2018-05-20T04:11:09 | Python | UTF-8 | Python | false | false | 18,348 | py | # -*- coding: utf-8 -*-
"""
Copyright (c) 2018 quvox.net
This code is based on that in bbc-1 (https://github.com/beyond-blockchain/bbc1.git)
"""
import mysql.connector
import traceback
import logging
import os
import sys
sys.path.extend(["../../", os.path.abspath(os.path.dirname(__file__))])
from bbc_simple.core impo... | [
"takeshi@quvox.net"
] | takeshi@quvox.net |
ca586000f7193415f95a368349263123602879e5 | c38ac2d483cd46c39d23fe69706aac1ba17adb1e | /atari_test.py | 5f8ee5644a5f20be361d9abf07584e2ccb99a216 | [] | no_license | oussrock/release1 | 5690d7359ecba7b4f629d5710a1c4ae94880a581 | eef3558e75a074aaee68b814724573035fbaec19 | refs/heads/main | 2023-01-31T15:51:22.499556 | 2020-12-17T05:15:39 | 2020-12-17T05:15:39 | 321,779,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | import gym
import numpy as np
import cv2
import neat
import pickle
import random
import noise
env = gym.make('Breakout-v0')
#env = gym.make('VideoPinball-v0')
imagearray = []
def eval_genomes(genomes, config):
for genome_id, genome in genomes:
observation = env.reset()
inputx, inputy, inputColour = env.obs... | [
"ouss@MacBook-Air-de-Ouss.local"
] | ouss@MacBook-Air-de-Ouss.local |
8a88dc253b9b57d290d39ad5b23cb3244b4c8a9e | 12bd445907da2950dc1495b1e4d31f3af861718e | /Aprendendo Python/cursopythonudamy/aula3.py | 633579cc1ee6127071dd41b4e06d9780f4586542 | [
"MIT"
] | permissive | JlucasS777/Aprendendo-Python | a9d8a4a6149e942b78aaa0d23f3d249f93b1f5b2 | a3a960260070f0d604c27fbbc41578a6ab11edb5 | refs/heads/main | 2023-08-10T18:22:24.935251 | 2021-10-11T01:50:14 | 2021-10-11T01:50:14 | 415,745,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | '''
str - string
'''
print("Essa é uma 'string' (str).")# Para as aspas serem aceitas as do texto devem ser diferentes das de abertura
print("essa é uma 'string' (str).")
print("Esse é meu teste de \"(string).\"")# o uso da \ fez ignorar o próximo sinal
print(r"Esse é meu texto com \n(str). veja que não pulou linha por... | [
"92265682+JlucasS777@users.noreply.github.com"
] | 92265682+JlucasS777@users.noreply.github.com |
a98861179cec2687753f1bbd895f2aea1f551798 | 1aefa304f794c1ed9e06ce71248206098c756cf3 | /Django_Assignments/userauth_assignment/userauth_assignment/urls.py | 2ff85cdcbde74c5815e5277909f196ebe52546f4 | [] | no_license | dilipksahu/django_class | 333233bbced5491d886687b5990c8836dac2f145 | a044c4a079c61a6a6de05674103e8a9ba2b4d28c | refs/heads/master | 2023-01-10T07:40:44.713361 | 2020-11-10T15:26:33 | 2020-11-10T15:26:33 | 282,398,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | """userauth_assignment URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')... | [
"sahud048@gmail.com"
] | sahud048@gmail.com |
54bbd219f19c1ed9466ccdbb26db23e887394dba | 6cb11cb804f316d16efa083effb3def1c2cab57c | /22.py | c55af12e976c5a84557d4af19a98af4e455b732f | [] | no_license | davemolk/python_practice | 8879cd5bdcb77c3d84ff5c7f961fda1cd48b2f93 | 91d3e411b32f3a4a29d60148b352b91ce8e1d11b | refs/heads/main | 2023-08-01T12:57:45.779824 | 2021-09-18T16:54:11 | 2021-09-18T16:54:11 | 400,767,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | '''
return True if array has two consecutive 2s, otherwise return false
'''
import re
def has22(nums):
pattern = r"[2]{2}"
regex = re.compile(pattern)
match = regex.findall(("".join(str(el) for el in nums)))
return True if match else False
print(has22([1, 2, 2])) | [
"davemolk@gmail.com"
] | davemolk@gmail.com |
11deadc0af53a9084726550a317406e15a6976a7 | ba834139d9e608e093b3407eec382ef3eece652e | /2015/15/15.py | 583ba22af029b5616b70b18ff42a1d6365eb8f98 | [] | no_license | pberczi/advent-of-code | 815e044193a769fba0829d6720fbe1ec40d83b6d | ce3470bcb5e240eee3b0eee76f7ceed5c75c0b44 | refs/heads/master | 2021-06-09T06:29:27.475941 | 2016-12-26T22:44:19 | 2016-12-26T22:44:19 | 75,329,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | #!/usr/bin/python
import argparse
# parse command line args
parser = argparse.ArgumentParser()
parser.add_argument('-p', '--problem', metavar='n', type=int, default=1, help='part of the question to solve')
parser.add_argument('input', metavar='input_path', type=str, nargs='?', default='input.txt', help='path to input... | [
"p.berczi@gmail.com"
] | p.berczi@gmail.com |
72a8cd5ebea5dd6e2d817f0399ac92cdda59e064 | c8ad75a289ff932490e77978ced8b3e17184b58f | /ch2/tasks_proj/tests/func/test_unique_id_3.py | 4eeede0af9321b7d5c29058b5a576a1b29261f90 | [] | no_license | albertfougy/pytest-tutorial | 1afb57be285ef301df68b120add5859d70e50a6e | 43981d51401c553acf4e5e4127573cf3ae2e18c7 | refs/heads/master | 2020-04-26T10:04:30.371789 | 2019-08-30T02:11:13 | 2019-08-30T02:11:13 | 173,476,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | import pytest
import tasks
from tasks import Task
@pytest.mark.skip(tasks.__version__<'0.2.0',
reason='misunderstood the API')
def test_unique_id_1():
"""Calling unique_id() twice should return different numbers."""
id_1 = tasks.unique_id()
id_2 = tasks.unique_id()
assert id_1 != id_... | [
"albert@fougy.com"
] | albert@fougy.com |
e2952709033cf2a1d7e5a63e8c6a58896b6a2830 | b4f60aafb3a1ac97d2bd5db186a8acba87d5fc89 | /loop.py | 4c65224f982e509f99ace6dcb4840a6965291705 | [] | no_license | arvindanand1123/twitter-weather-bot | da28d6ab4ca5558d22aa2d453bdcbe7eda824f39 | cc6e6680ffd67fc2248e03935c0f003e84104551 | refs/heads/main | 2023-05-03T15:56:04.713218 | 2021-05-23T04:22:56 | 2021-05-23T04:22:56 | 365,045,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,408 | py | import os
import random
import json
from pathlib import Path
import csv
import tweepy
import logging
import time
import config
from dotenv import load_dotenv
import requests
load_dotenv('t.env')
print("Get credentials")
consumer_key = os.getenv("CONSUMER_KEY")
consumer_secret = os.getenv("CONSUMER_SECRET")
access_tok... | [
"arvindanand1123@gmail.com"
] | arvindanand1123@gmail.com |
d512af4252ed1c0fc71cf00b79ca41907c8012dd | ed7b67259c8b90422009773884245a032a07a4f2 | /gallery/views.py | 3edd97854a314482ad4e6af89994c8d1056d982d | [] | no_license | harclemadscam/fourth-milestone-project | bfcca5633b7c71f42adbc2279121d98f923b55a9 | 9e1a90794365ce5fbebeffc02b965a0fb03afedb | refs/heads/master | 2023-01-22T06:04:21.661195 | 2020-11-30T21:24:04 | 2020-11-30T21:24:04 | 292,605,409 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,378 | py | from django.shortcuts import render, redirect, reverse, get_object_or_404
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from .models import GalleryImage
from .forms import UploadImageForm
from shop.models import Product
def gallery(... | [
"joeapplegate1993@gmail.com"
] | joeapplegate1993@gmail.com |
207624651c4804e33116fd0fc11465432a0c6c49 | 6a6031fe5c6d96e95a6df3d0dd2f99060a487bbb | /crush/templatetags/base_extras.py | 654980636ed4358cb4d7214c5254b36ec22b3fff | [] | no_license | http417/Crushmaven | aa50eb570b8fa1ec2507695aaca1d12c13511571 | 2591919437c9d320c8afae6396640de0e18bc77c | refs/heads/master | 2021-09-15T04:36:19.868419 | 2018-05-26T04:16:01 | 2018-05-26T04:16:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from django import template
#from django.core.urlresolvers import reverse
register = template.Library()
@register.simple_tag
def navactive(request, url):
# request.path is the current URL minus the host name
# the following logic checks if the current page exists within the list of URLs passed in
# if... | [
"chris.h.cheng@gmail.com"
] | chris.h.cheng@gmail.com |
b8062923bcce159d9c13a87c2d2cfbac3806dabb | 7206403e1c4fd7a508d874a20b4295e62140a455 | /scorePredictor.py | 4b2a47f75f93ed5c368ee666c6ed937a7b88969a | [] | no_license | TWilkinson257/FPL_Model | 473b5731248b4bcc743558e570c72d5f1ceb88fb | 6127aff2ffc55dc31184fd0ed0ae14479561e145 | refs/heads/main | 2023-01-19T01:19:12.461627 | 2020-11-23T21:28:40 | 2020-11-23T21:28:40 | 310,086,866 | 0 | 0 | null | 2020-11-19T12:11:06 | 2020-11-04T18:35:01 | Python | UTF-8 | Python | false | false | 3,317 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 19 16:44:11 2020
@author: thomaswilkinson
"""
# import requests
import pandas as pd
from pandas import read_csv
from pandas.plotting import scatter_matrix
from matplotlib import pyplot
from sklearn.model_selection import train_test_split
from sklea... | [
"noreply@github.com"
] | noreply@github.com |
7170e2bb514b2c2566288e66eca9acbc6b74fe58 | 1afc04f4cdbe515299d1974c92401628b060e0e9 | /dataDriver/yamlData.py | 001734bbe9e7a7bdec36b9ae2c06d52183cd62e7 | [] | no_license | liangjk1/appium- | 956aaa0302e56d0723e5dfab6062630969670f7d | d1c6fa42b537511d09025240998c07c053e1ced3 | refs/heads/master | 2023-08-12T16:02:11.183179 | 2021-09-21T10:05:37 | 2021-09-21T10:05:37 | 408,764,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2021/3/13 13:57
# @Author : ZY
# @File : yamlData.py
# @Project : APP
import yaml
# 读
def readYaml(path):
# "desired_capabilities.yml"
with open(path, "r", encoding='utf-8') as f:
return yaml.load(f, Loader=yaml.FullLoader)
# 写
def writeYaml(path,... | [
"364390447@qq.com"
] | 364390447@qq.com |
5be380346b03e9b8dbc4a4556b1cdf25b6546a22 | 482467f7875513440ccc9fb5ee5755214137e8df | /homeassistant/components/essent/sensor.py | e77b256abb73e0848e3bc706a896cb5b694aa063 | [
"Apache-2.0"
] | permissive | Watemlifts/home-assistant | fbf16d91489f9ab472b1fda928fc472f99d2b057 | 6e414983738d9495eb9e4f858e3e98e9e38869db | refs/heads/dev | 2023-07-21T06:38:40.212969 | 2023-07-15T09:33:07 | 2023-07-15T09:33:07 | 195,134,511 | 4 | 0 | Apache-2.0 | 2023-07-15T09:33:08 | 2019-07-03T22:34:49 | Python | UTF-8 | Python | false | false | 3,671 | py | """Support for Essent API."""
from datetime import timedelta
from pyessent import PyEssent
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import (
CONF_PASSWORD, CONF_USERNAME, ENERGY_KILO_WATT_HOUR)
import homeassistant.helpers.config_validation as c... | [
"amelchio@nogoto.net"
] | amelchio@nogoto.net |
aca4ef43490ac175cf6befc99c587dfb24ff24e0 | cdbbea573c45a73fa6c958944624093a2d23a7f3 | /10a.py | 991a8f8a518884338939d9fb116c7e12f986a125 | [] | no_license | tomasolodun/lab11 | 947302574adfc91fd1e1d752c2de1f8cd914407f | 1b435405e8608fcf92ffdc6d91bc8aeb62e96063 | refs/heads/master | 2022-08-30T12:03:21.384616 | 2020-05-28T10:35:18 | 2020-05-28T10:35:18 | 267,560,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | """а) Дан файл f, компоненти якого є цілими числами. Отримати в файлі g всі
компоненти файлу f що є простими числами. Простим називається число, що більше за 1
та не має інших дільників, окрім 1 та самого себе)"""
def get_integers():
with open("C:\\Users\\Toma\Desktop\\NewFold\\f.txt") as file_start:
... | [
"noreply@github.com"
] | noreply@github.com |
e6342768aa89cbdf4cfcb7ef99d2ea39ecacd3a6 | 0f5cca9568b34b877eb4e9e19e584bc532a5f8ee | /failure_scripts/NSBL_excel_rosters.py | bfa3ffd2a1750a0ac2811022867a98a0ab0a0316 | [
"MIT"
] | permissive | Connor-R/NSBL | 1743c3b4af3f3eb1532e9bf063c71c7a313710ac | c9b399ac995cfe43c2d8fd09890c63a9b333f53e | refs/heads/master | 2022-08-12T05:43:57.228690 | 2022-08-07T07:19:20 | 2022-08-07T07:19:20 | 77,431,477 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,226 | py | import xlrd
from py_db import db
import argparse
import NSBL_helpers as helper
db = db('NSBL')
def process(curr_year):
rosters_link = '/Users/connordog/Dropbox/Desktop_Files/Baseball/Rosters.xlsx'
season_gp = db.query("SELECT gs FROM processed_league_averages_pitching WHERE year = %s" % (curr_year))
if s... | [
"connor.reed.92@gmail.com"
] | connor.reed.92@gmail.com |
4fe3e9d27a8d4cade72644c78c088f7bdddbeca3 | 7a4d54af2de65facd360212765de13ada863ec85 | /raspberry/raspberry.py | e1fc025662cc648c08ddb52270e4535c4eefb7a0 | [] | no_license | smahdavi4/RaspberryPi-CCTV | 1ae659e7b285b9ef858f184e7a279b3239761af4 | da2a52264fa18a67c145a68f85c5381b52580ea1 | refs/heads/master | 2023-06-21T14:12:51.085508 | 2021-08-04T15:17:05 | 2021-08-04T15:17:05 | 392,726,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,570 | py | import io
import logging
import time
from datetime import datetime
try:
from picamera import PiCamera
except ImportError:
logging.error("Can't import picamera. Please make sure picamera is installed and you run the code on raspberrypi.")
import numpy as np
from PIL import Image
from models import Schedules
fro... | [
"smahdavi4@gmail.com"
] | smahdavi4@gmail.com |
43df5f301b18273899ac00d28d4e1e587283aacb | 8dd7641c05bfeb6a9b0634575ea79589b412e680 | /Project_1/Old Code/sklearn.py | 8d8df757723b404c5bf6baf273e5926f5ace97ad | [] | no_license | Bobbycookie/Python_Class_Concordia | a1962a3ccff88a667fed79aec874c95dd6570b22 | dcb3fafbab6405c376bc65468ab617a908fb0a2d | refs/heads/master | 2020-08-30T13:54:20.263802 | 2019-11-18T14:24:52 | 2019-11-18T14:24:52 | 218,400,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | from sklearn.datasets import load_wine
import ll_p2
wine = load_wine()
target = wine.target
target = target.tolist()
# add 1 to target to make it like the .data file
target = [x+1 for x in target]
data = wine.data
data = data.tolist()
# combine target as column in data and add heading column
[data[idx].insert(0, targe... | [
"35229441+Bobbycookie@users.noreply.github.com"
] | 35229441+Bobbycookie@users.noreply.github.com |
7c057affec94a126275eba7d408fa3d7a9d47d01 | 733dea504a1cea20d1320014e79acbef1920ac5a | /hip_Project/hip/admin.py | f8afeb5a85de845cbac08f7e8eb4aeb0cd8a4c11 | [] | no_license | sabinaya/Hip-as-Django-Application | a6d4dc99ec3bd209e09da9507e49a0d2bc96e236 | 5e847065cbb1cc5b678485cc4fb5ac3245259258 | refs/heads/master | 2021-01-10T04:35:06.191334 | 2015-05-26T06:37:58 | 2015-05-26T06:37:58 | 36,115,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.contrib import admin
from hip.models import board
admin.site.register(board) | [
"abinaya.saravanan1105@gmail.com"
] | abinaya.saravanan1105@gmail.com |
df71c458465bd721cdce4709887f33bc9815e9a6 | 42e7dc544d7d9a5712b48f687f72f7e4730e4e03 | /app/religion/service.py | 0771beb5b9ec77e2a91f4eab2db0607836bb873d | [] | no_license | philipphager/tuk2-teen-pregnancy-api | bd76dc7309aa31aaa31b8311b6eec5234d2a5670 | 4a49c8499921c5308bde3e8e58f6462ff75f9b22 | refs/heads/master | 2021-04-30T04:08:53.008228 | 2018-02-23T00:22:38 | 2018-02-23T00:22:38 | 121,530,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | from app.database.cache import get_from_cache, add_to_cache
from app.database.database import execute_query
def get_religiousness_by_state():
query = get_query()
data = get_from_cache(query)
print("DB Query: " + query)
if data is None:
data = execute_query(query)
add_to_cache(query, d... | [
"philipp.konstantin.hager@gmail.com"
] | philipp.konstantin.hager@gmail.com |
58ed9aadc5d1a6db2c5d8fb1b7a24e1067ab9743 | d9e43cd880f456254d5f640555079149f9d680c0 | /lie-detector2.py | b147de1d0bc975e25b130b92646e9b2b1c424a0f | [
"MIT"
] | permissive | mahimajeslani26/rnn-lie-detector | 1def32e26a5da29c9ad9bc0bd1949efea7b00966 | 0c4a2b12ac3feed7f14a0d88b84b66bdddd8c42f | refs/heads/master | 2020-03-19T00:02:19.913717 | 2018-06-02T13:30:04 | 2018-06-02T13:30:04 | 135,448,651 | 0 | 0 | null | 2018-05-30T13:42:32 | 2018-05-30T13:42:31 | null | UTF-8 | Python | false | false | 12,651 | py | import os
import fnmatch
import numpy as np
from sklearn.utils import shuffle
from sklearn.preprocessing import normalize
import tensorflow as tf
from tensorflow.contrib.rnn import BasicLSTMCell, BasicRNNCell, GRUCell
tf.flags.DEFINE_float("lr", 0.001, "learning rate")
tf.flags.DEFINE_integer('epochs', 5, 'number of e... | [
"mahimajeslani26@gmail.com"
] | mahimajeslani26@gmail.com |
e3c4271ba3bc0635994d4d7e72b837d7e636eeea | d298f70abb0a83ef1db858b97dc648320250a8a0 | /mainScreen.py | de6b7027e05ab2d87f0ac9370952a718cac9045a | [] | no_license | lunhan/eeg-game | fdcdb7be9eda1c8a52a794c0bcbffea523040040 | d0d2cb2de31bb02aec7769d93686941b47653ec3 | refs/heads/main | 2023-09-01T04:52:28.372818 | 2021-09-28T10:14:08 | 2021-09-28T10:14:08 | 410,726,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,007 | py | import pygame
import pygame.freetype
from pygame.sprite import Sprite
from pygame.rect import Rect
from enum import Enum
#For the other class, write it into an individiual file and import like this
from UIElement import UIElement
img = pygame.image.load("img/nosignal_v1.png") #import img
img = pygame.transform.scale(... | [
"mlunhan97@gmail.com"
] | mlunhan97@gmail.com |
db0620b89039a20cdd6ab7feef05be0ce277ccd0 | f1f240d94600a6d267c30235ef9ad7a3efc488fb | /GosProgect/wsgi.py | 6a993185f74774c0ee1d32e66113db55465de74e | [] | no_license | JolyBin/EAC | 3cc576690e82ec876f08cffb09e9dcee34e24593 | 03d6b5e4e7beb52d7757464151d5a961118fbb71 | refs/heads/master | 2020-06-19T16:22:24.161033 | 2019-07-14T04:11:53 | 2019-07-14T04:11:53 | 196,781,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for GosProgect project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"vladavenir@mail.ru"
] | vladavenir@mail.ru |
a0e0bfbddd2d9003785d592b78d9b8475e63b70c | 097eae4e0190da97570ae7db748fca306f977fbd | /py/learn/test/class/example.py | f8642e40064bba601cac875200d08370551f363f | [] | no_license | jiaolj/other | 42257c593495d97ab98b9a9af00d3791ccce7a57 | 78d0366cbd599f4dde7bf6e44ca4cfc373132418 | refs/heads/master | 2021-05-24T04:14:03.829126 | 2016-08-28T07:40:49 | 2016-08-28T07:40:49 | 64,064,262 | 0 | 1 | null | 2020-07-23T17:05:36 | 2016-07-24T12:25:56 | JavaScript | UTF-8 | Python | false | false | 358 | py | # -*- coding: utf-8 -*-
class b(object):
def __init__(self):
self.t=2
def getb(self):
self.t+=1
class a(b):
#----如果不声明init函数,会继承基类init属性。声明init是为了加一些自定义属性
def __init__(self):
b.__init__(self)
def get(self):
print 1
temp=a()
temp.getb()
print temp.t | [
"841232468@qq.com"
] | 841232468@qq.com |
f3d109ee8baa41ca18eaa3f3d511d490209b0c12 | 0619b1ba176456c4b62d78d6a72fc4d9a9084287 | /thesite/communication_app/forms.py | 4eabf764b1d1037b42e5497319e87205eb1f6f36 | [
"Apache-2.0"
] | permissive | jacinda/petwitter | c13dd43a5b76786f5d5c5c3f29420153cb5a16c7 | ea7ffa16b8d8b1207f04ace619b31dba4efc45bc | refs/heads/master | 2021-01-13T06:38:31.439749 | 2015-04-15T17:25:03 | 2015-04-15T17:25:03 | 33,678,730 | 0 | 0 | null | 2015-04-09T16:02:42 | 2015-04-09T16:02:40 | Python | UTF-8 | Python | false | false | 699 | py | from django import forms
import communication_app.models
class PetForm(forms.ModelForm):
class Meta:
model = communication_app.models.Pet
fields = ['name']
def __init__(self, *args, **kwargs):
super(PetForm, self).__init__(*args, **kwargs)
self.fields['name'].widget = forms.Te... | [
"asheesh@asheesh.org"
] | asheesh@asheesh.org |
e16794ecbbdb589fe47bb9e06f800086e8447133 | 05e6440fe5c9e5f84d6af6dd577adda823d65b54 | /sktime/transformations/series/acf.py | 52609eecd0f20dd735a1c255c71001cc1e4c3219 | [
"BSD-3-Clause"
] | permissive | astrojuanlu/sktime | f3e7e0c52b5013dbb7dfb39ca0f7a8744a96a4e7 | 9ca7587bedc861b039a3d9a822ed7ad03ba935ad | refs/heads/main | 2023-06-28T13:22:48.161020 | 2021-07-17T08:35:36 | 2021-07-17T08:35:36 | 386,907,232 | 1 | 0 | BSD-3-Clause | 2021-07-17T10:28:49 | 2021-07-17T10:28:49 | null | UTF-8 | Python | false | false | 4,316 | py | #!/usr/bin/env python3 -u
# -*- coding: utf-8 -*-
"""
Auto-correlation transformations.
Module :mod:`sktime.transformations.series` implements auto-correlation
transformers.
"""
__author__ = ["Afzal Ansari"]
__all__ = ["AutoCorrelationTransformer", "PartialAutoCorrelationTransformer"]
import pandas as pd
from stats... | [
"noreply@github.com"
] | noreply@github.com |
55bf5b769ce8bafe053fe39564ed13cc2e3360c2 | 974c5a4f101d0e6f4dfa5fc2f7c641c9d2bd8184 | /sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2022_10_01_preview/operations/_component_containers_operations.py | 53f9c4e0361d8779eb7f2a89e6c4f5d84f60bf39 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | gaoyp830/azure-sdk-for-python | 4816f04c554dcffb7510a6b7044b0c86a2dd32e1 | 1c66defa502b754abcc9e5afa444ca03c609342f | refs/heads/master | 2022-10-20T21:33:44.281041 | 2022-09-29T17:03:13 | 2022-09-29T17:03:13 | 250,355,505 | 0 | 0 | MIT | 2020-03-26T19:42:13 | 2020-03-26T19:42:12 | null | UTF-8 | Python | false | false | 22,292 | 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 |
10b0d6c77a5a22b76ba2d6593ccd3657539ce9fd | 4a36b5979b0753b32cff3956fd97fb8ed8b11e84 | /1.0/_downloads/469209d8040c0923f6b4f925074d58d7/evoked_topomap.py | f677e3d7f02abfe8f6f3546a99379b408253479f | [] | permissive | mne-tools/mne-tools.github.io | 8aac7ae10bf2faeeb875b9a351a5530dc0e53154 | 495e878adc1ef3374e3db88604504d7542b01194 | refs/heads/main | 2023-09-03T07:06:00.660557 | 2023-09-03T04:10:18 | 2023-09-03T04:10:18 | 35,639,371 | 12 | 16 | BSD-3-Clause | 2023-05-05T19:04:32 | 2015-05-14T22:04:23 | HTML | UTF-8 | Python | false | false | 5,921 | py | # -*- coding: utf-8 -*-
"""
.. _ex-evoked-topomap:
========================================
Plotting topographic maps of evoked data
========================================
Load evoked data and plot topomaps for selected time points using multiple
additional options.
"""
# Authors: Christian Brodbeck <christianbrodb... | [
"dan@mccloy.info"
] | dan@mccloy.info |
698bd901f3f50bfff119ca3f858802997929a2c9 | 9cd922d37c992379962885da86f0f0c43ef47a5a | /test/test_board_filler.py | e041cf1393781801fd13249a2a58447fbf3063ad | [] | no_license | bbattino/chess-engine | d7ef975dcf7b40b37def6a6d92a422153733f8fc | 9975d28d2ebeb6ad517710a3a17b00dddb96fc86 | refs/heads/master | 2020-04-09T15:17:41.199328 | 2018-12-14T07:51:33 | 2018-12-15T23:29:49 | 160,421,457 | 0 | 0 | null | 2018-12-11T17:18:13 | 2018-12-04T21:32:01 | Python | UTF-8 | Python | false | false | 2,003 | py | from unittest import TestCase
from tools.board_filler import BoardFiller
from pieces import Bishop, King, Knight, Pawn, Queen, Rook
from config import WHITE, BLACK
class TestBoardFiller(TestCase):
def test_fill_from_text(self):
board_filler = BoardFiller()
board = board_filler.fill(text='rnbqk..... | [
"benjibattino@gmail.com"
] | benjibattino@gmail.com |
7e1029ad59d5a3c4e3e7636aa5802f22953086cd | e15d63ccde04e7458bff5af1bdad63a5c699b489 | /example/Transformer_vision/2dpose/vit/multi_branch/config.py | 5582a68fa5d82c8142ce319cab34a1901077d3e7 | [
"WTFPL"
] | permissive | ddddwee1/TorchSUL | 775b6a2b1e4ab7aac25a3f0411de83affc257af5 | 6c7cd41b14fc8b746983e8b981d1ba4d08370ca2 | refs/heads/master | 2023-08-21T15:21:24.131718 | 2023-08-18T09:37:56 | 2023-08-18T09:37:56 | 227,628,298 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | import numpy as np
# size
inp_size = 224
out_size = 56
base_sigma = 2.5
num_pts = 17
pairs = [[0,1], [1,2],[2,3], [0,4], [4,5],[5,6], [0,7],[7,8],[8,9],[9,10], [8,11],[11,12],[12,13],[8,14],[14,15],[15,16]]
# augmentation
rotation = 0
min_scale = 1 # this controls largest size
max_scale = 1 # this controls smalle... | [
"cy960823@outlook.com"
] | cy960823@outlook.com |
210f27376ef8118f72d9360119b3fc0f752cc8b3 | 6c82b4bfac34ddefd8ee65066827418b9a13a60b | /service_note/migrations/0012_auto_20191021_2307.py | 0977d9e32d41630c03ae1cd5057ba5b4d2121ce6 | [] | no_license | yegorkowalew/memo | 467956cab57bb36089077f28471508d9ff8b7688 | 305536cf40a3447e04aff3899e73824e5e346cfd | refs/heads/master | 2022-07-18T20:50:07.214745 | 2019-11-07T14:52:30 | 2019-11-07T14:52:30 | 218,546,734 | 0 | 0 | null | 2022-06-21T23:18:12 | 2019-10-30T14:29:17 | JavaScript | UTF-8 | Python | false | false | 1,341 | py | # Generated by Django 2.2.6 on 2019-10-21 20:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('service_note', '0011_auto_20191021_2238'),
]
operations = [
migrations.AlterField(
model_name='waybill',
name='coeff... | [
"C:\\Users\\i.kovalenko\\AppData\\Roaming\\The Bat!"
] | C:\Users\i.kovalenko\AppData\Roaming\The Bat! |
955a39cdc24af3e5a79dc08200d4650a71ddbd18 | bf6dc488aeead3e40c2c638d011005e554579455 | /log.py | 5e1fd11e885b0b7b7e0e5308fbd93b08f5098a82 | [
"MIT"
] | permissive | joelbryla/robot-replay | f1247137d7d8581bdaf69d6a110e1510cff3c15f | 61ded4750e2a5729ba487be0f25e5d8a0dc9088f | refs/heads/master | 2021-09-08T13:39:13.017044 | 2018-03-10T00:03:35 | 2018-03-10T00:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | import csv
import time
from networktables import NetworkTables
class Log:
def __init__(self, team):
NetworkTables.startClientTeam(team)
match_type = NetworkTables.getTable("FMSInfo").getValue("MatchType",
defaultValue="")
se... | [
"dan.ben.oconnell@gmail.com"
] | dan.ben.oconnell@gmail.com |
c157b99f15cf4b7b2d4bd05ea5b0e5f89507cf3a | 07bb913fea5e0f1e65e35a7ca5c594fa1d144eb8 | /publishconf.py | ab389e79f3df4349f62293bf934b3def399eb94a | [] | no_license | jbzdak/pwzn-lessons | 8373552fabb260593cf612a27bf821d7b70b452d | 5ca58dba6220259b170c8a689a10338122c4eefd | refs/heads/master | 2021-04-05T20:48:56.447870 | 2020-03-19T20:36:08 | 2020-03-19T20:36:08 | 248,600,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *
#ITEURL = 'http://pwzn.s3-website-us-east-1.amazonaws.co... | [
"jbzdak@gmail.com"
] | jbzdak@gmail.com |
86fc6d64004c5a38bc8473c6ad519119557660d2 | f771dd92c30c871e2b8fbdb1a006a75cacd26a16 | /users/migrations/0029_auto_20150227_0026.py | 2fb4d1415ba5ac6707c64212b457af179e61f5de | [] | no_license | guitoof/tasdurab | cefdc232544e852735af20eb85a4ed70b8faa9ae | 9c7233de6d94b22f30c6d8e72b4f0e75775a866d | refs/heads/master | 2020-04-14T23:49:03.775981 | 2015-03-19T11:32:14 | 2015-03-19T11:32:14 | 30,129,522 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0028_auto_20150216_0026'),
]
operations = [
migrations.AlterField(
model_name='user',
name=... | [
"guillaume.diallo@ensta-paristech.fr"
] | guillaume.diallo@ensta-paristech.fr |
052a765b4308597a3d16d02f22e77d3c03272c1c | 7610515d7bdd1e5e7a2de4fc70f52f3c1898812e | /budgetApp/wsgi.py | 270088a2599db9ed302e8a50cf6eb6a89a9f6a47 | [] | no_license | ClaudioG0/budgetAppSite | 2e6fa2f765e9a47b0f8563c6c528a048f4d983da | 83cffea630948fe1c44b233da2f0abea9d05832d | refs/heads/main | 2022-12-28T03:41:57.416574 | 2020-10-11T16:30:22 | 2020-10-11T16:30:22 | 303,162,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for budgetApp 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.setdefaul... | [
"noreply@github.com"
] | noreply@github.com |
2cfb8721541468c142df79a782cc54ba17d46985 | b1cc02fe7dcc24f940547d02e7f3f3339e4d7ebf | /assignment1/.env/bin/pygmentize | d22149cbf5107dada46b3cd4a6fe2a2596f14bff | [] | no_license | wweichn/cs234 | 51c0226d5ca814b0473cf2fedeb84805eb722ea9 | 4bad9c28c5d4f772cf99085b9cad53dad478f4f4 | refs/heads/master | 2021-08-16T10:29:29.553815 | 2017-11-19T15:42:09 | 2017-11-19T15:42:09 | 111,301,647 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | #!/Users/ww/codework/cs234/assignment1/.env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pygments.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"1436664083@qq.com"
] | 1436664083@qq.com | |
2f1462be3f29b5ddc93d058062150d802f915cac | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinciDev_v38r1p1/InstallArea/x86_64-slc6-gcc49-opt/python/StrippingArchive/Stripping23/StrippingQEE/StrippingH24Mu.py | f8c83a16c95755164e65577006aff13f275fff10 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,741 | py | '''
Module for construction of h-->MuMuMuMu stripping selection
Exported symbols (use python help!):
- H24MuLineConf
Based on Bsmumu stripping lines
'''
__author__ = ['Xabier Cid Vidal']
__date__ = '11/22/2013'
__all__ = ('H24MuLineConf',
'default_name',
'default_config'
)
from ... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
e11afb3d340822f1faf019a307652e3f4669ad18 | a7597f2b3879732eaebce164d1b84e6172847777 | /HW1/DecisionTree_Iris.py | 80a000496087f6de348817e4d1be751f463a5769 | [] | no_license | ss87021456/2017-NCTU-Machine-Learning | 17164ba33c7253708e10a8490e446cc3b32865b0 | 02206365e6335a99d9d50b227efdb216782e18cf | refs/heads/master | 2021-09-04T02:21:56.029114 | 2018-01-14T16:07:34 | 2018-01-14T16:07:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,463 | py | from Node import Node
from util import *
from math import log
from random import shuffle
def find_impure_leaf(node):
if node is None:
return None
if not(node.pure) and node.leaf:
return node
left_child = find_impure_leaf(node.left)
if left_child != None:
return left_child
right_child = find_impure_lea... | [
"noreply@github.com"
] | noreply@github.com |
fe613a4f0bd227097fb0d3eccffee13acbcc5e74 | 0ab65e2b803fa275ba43078c007b7e2d2929dc4f | /pro_gan_pytorch/PRO_GAN.py | 7be2c9c59db663881f76eb3de1d801da21b7db78 | [
"MIT"
] | permissive | joebradly/pro_gan_pytorch | 2fb00b0b0cd983fe9269955a0affd30711950b86 | ad51fc3da9cd352c43a362652627e177d0887152 | refs/heads/master | 2020-04-03T10:03:55.205374 | 2018-10-19T08:45:06 | 2018-10-19T08:45:06 | 155,183,005 | 0 | 0 | MIT | 2018-10-29T09:12:24 | 2018-10-29T09:12:24 | null | UTF-8 | Python | false | false | 25,516 | py | """ Module implementing GAN which will be trained using the Progressive growing
technique -> https://arxiv.org/abs/1710.10196
"""
import numpy as np
import torch as th
class Generator(th.nn.Module):
""" Generator of the GAN network """
def __init__(self, depth=7, latent_size=512, use_eql=True):
... | [
"akanimax@gmail.com"
] | akanimax@gmail.com |
c0196487a0ae17ed2119a18bfefe0d8ec39cb793 | a956dea0d755b3387bb51c961aef12eab557fd38 | /FACERECOG/forms.py | a7df5618b7abd5dcd166e6a2cc03e6125086c371 | [] | no_license | AnandDadhich/AttendanceThroughFaceRecognitionUsingLiveCameraSurveillance | fd45b287fc59cf33bae101fd758506fc80a1a54e | 63f48b3d7d54ecf5ab66a248bc70a2359fe3e272 | refs/heads/master | 2023-01-30T13:04:30.094481 | 2020-12-13T14:51:01 | 2020-12-13T14:51:01 | 321,069,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | from django import forms
from .models import EmployeeInfo, ContactUs
class EmployeeForm(forms.ModelForm):
id=forms.RegexField(regex=r'^[0-9]',
max_length=20,
label="ID",
required=True,
error_messages={"invalid":("Should... | [
"ananddadhich153@gmail.com"
] | ananddadhich153@gmail.com |
fd0c17fe135302bd499a36a77f1ad8fbb13b8358 | cae3d11651abe9887e151ee967e6ebbc4f9290db | /Source Code/nnpred.py | 9eb3eab63a8ba8316cb40e0280c1706ece4e757b | [] | no_license | traderbhai/Software-Reliability-Prediction-Using-Ensemble-Learning | 8de1aae65bc7b2bf3503615e5abbb6f4c2b4dd84 | b71396e3d26a5f13b40542fd64e84f7ceb57acce | refs/heads/master | 2023-04-02T20:55:38.651980 | 2021-04-11T06:54:18 | 2021-04-11T06:54:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,730 | py | # Importing the libraries
from keras.layers import Dense
from keras.models import Sequential
from keras.optimizers import RMSprop
from rbflayer import RBFLayer, InitCentersRandom
import numpy as np
b = 0
#X is list : Scaling function helps in logarithmic scaling for values in range 0 to 1
def Scaling(X):
... | [
"noreply@github.com"
] | noreply@github.com |
75ee3889c253cbc512df88f5e29584d472b6da47 | 8d66920fabc274a9bb1a9a9ce0e94c3f36a5d9fb | /cifar-10/draw_err.py | 3897a4106b512e75048553d533d552e26675d3a5 | [] | no_license | Matafight/dl_projects | 73686ba7b0908a57e25730e43c9eacbb3e4becec | ccffa5895429a5ab46119c53da5d437229331aca | refs/heads/master | 2021-01-01T04:28:09.008439 | 2020-01-05T07:38:42 | 2020-01-05T07:38:42 | 97,178,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | #_*_coding:utf-8_*_
import numpy as np
import matplotlib.pyplot as plt
import os
'''
传入误差的数组,画出误差随着epoch变化的曲线,需要传入训练的超参数,比如learning_rate,weight_decay等,这部分用字典的形式传入
将曲线存入文件,文件名就命名为超参数,
应该将训练误差的曲线和验证误差的曲线都画在一个图上
err_arr 应该是个list,list的每个元素也是list
'''
class ErrorPlot():
def __init__(self,err_arr,**kwargs):
sel... | [
"guo_sc@foxmail.com"
] | guo_sc@foxmail.com |
521870642a3f641ed4a598bbca8c15723715c16e | a258ca222acc8249c8eee8ea990e4525126ae651 | /src/models/__init__.py | 09f96334b6a0651c5d4d41465bd8683c22361c4c | [
"MIT"
] | permissive | saeedranjbar12/mtlcfci | 25685aa0f1503d39cb47ab011fcb741b9cc7b752 | cc7a5d0a9b447df5e13d2a1f4caac93ddbfbd608 | refs/heads/master | 2020-05-20T18:37:55.610313 | 2019-05-15T03:13:13 | 2019-05-15T03:13:13 | 185,709,539 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | #import torchvision.models as models
#(8*16)
from src.models.segment import *
from src.models.recon import *
from src.models.depth import *
from src.models.resnet import *
#
def get_model(name, n_classes, version=None):
model = _get_model_instance(name)
if name =='resnet' or name =='resnet_L':
model=mo... | [
"saeedr@ensc-mmc-09.engineering.sfu.ca"
] | saeedr@ensc-mmc-09.engineering.sfu.ca |
86a3a8b7517688b3d439381f7baf7469c0eb82a9 | 9f2a231557a9aabc181ed388faaf2f0b3b59c530 | /Testcode/spellCheck.py | 5be1f5b0fa649c1d809ee849a078538109829c13 | [] | no_license | abhashjain/DIC_Project | 7e379cd5ef99d1fc31d414985e1b04388b475fe0 | 329f8da2f61e95410292a3062c68ed06845ec6ac | refs/heads/master | 2020-04-25T14:49:58.508999 | 2018-12-11T04:36:09 | 2018-12-11T04:36:09 | 172,855,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | import os, time, re
os.getcwd()
startTime = time.time()
wordFile = open("..\\src\\words.txt","r")
words = wordFile.read()
print("Words in dictionary:",len(words))
inputDoc = open("..\\src\\guten.txt", "r", encoding="utf-8")
doc = inputDoc.read().split()
print("Words in file:",len(doc))
## Processing ... | [
"nobody@ncsu.edu"
] | nobody@ncsu.edu |
d7e6fb902bb4d82e45d61c4cff79935749eb6882 | 60f75884ced267a5f0f09a0b43f68e7d8c5c7a14 | /tester/test_handlers/test_page_handler.py | 25b3ed3218c1b9b75b71fae6e6b25697c3bb7901 | [
"MIT"
] | permissive | liusheng6982/TorCMS | b0fa1fe96a814c10dc7163b127672e1076d19e02 | cb5ee651ece0cff28eae1dcde9013edf28387073 | refs/heads/master | 2021-01-19T04:31:54.221405 | 2017-04-04T11:41:50 | 2017-04-04T11:41:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | # -*- coding:utf-8 -*-
from torcms.handlers.page_handler import PageHandler
from torcms.handlers.page_ajax_handler import PageAjaxHandler
def Test():
urls = [
("/label/(.*)", PageAjaxHandler, dict()),
("/label/(.*)", PageHandler, dict()),
]
assert urls
| [
"bukun@osgeo.cn"
] | bukun@osgeo.cn |
ff87449e16a1f7e668108b4e1bd2f3a38e5bf130 | c61e235a2a2edb9f7b62d979a0e8854c5d6ca685 | /Neflix/home.py | 4f9e8ad35d56ba7f239c27889dcaf1c0724d1fb3 | [] | no_license | RemiAderemi/Netflix-core | 4a9716ab903e92f25af67079997bbd5f26e57e29 | 48d7150b9e97ba54b6ff9cfd9b291036433baa2d | refs/heads/main | 2023-01-19T06:54:09.064170 | 2020-12-02T06:57:48 | 2020-12-02T06:57:48 | 317,776,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | #!C:\Python\python.exe
#-*- coding: utf-8 -*-
# import sys
# # import codecs
# # sys.stdout = codecs.getwriter("iso-8859-1")(sys.stdout, 'xmlcharrefreplace')
# if sys.stdout.encoding != 'cp850':
# sys.stdout = codecs.getwriter('cp850')(sys.stdout.buffer, 'strict')
# if sys.stderr.encoding != 'cp850':
# sys.stde... | [
"RemiAderemi@users.noreply.github.com"
] | RemiAderemi@users.noreply.github.com |
388180bdf84d4905e11b81f06d86e9b2badd641e | a01b406b806c1f81c2d7c52e910212a60ddb7c29 | /droga/droga/spiders/drogaraia.py | 2c5cd386616c1bded63b29fee0984a1dc08d7769 | [] | no_license | jonatasfleck/spider | 468163653dad89624db399cd39732f7c410915c1 | 49c3be6dd18346085716707f027610d055392743 | refs/heads/main | 2023-07-25T17:49:58.355284 | 2021-09-04T22:11:38 | 2021-09-04T22:11:38 | 403,165,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | import scrapy
class DrogaraiaSpider(scrapy.Spider):
name = 'drogaraia'
start_urls = [f'https://www.drogaraia.com.br/medicamentos/remedios/genericos.html?p={i}' for i in range(1,8)]
#Limite de páginas especificados, pode se adicionar um next_page com o link para a próxima página, sendo necessário inse... | [
"noreply@github.com"
] | noreply@github.com |
dfbcb124abcd83eb7bbda2441d24fb4c31af8fa4 | b408856116e437406aa6981dd94cdb04a2fc962e | /ecgpointdetector.py | b5a5583e1241ab6865d98f1cce80da2aa600f73e | [] | no_license | huberste/ecgberry | d4b82eeefe505e4a72d84f98ff3df77dcfc843d5 | 0a9b15922147f54dedea4a45fc67fe72602cc19a | refs/heads/master | 2020-05-02T21:47:01.794520 | 2019-03-28T15:29:33 | 2019-03-28T15:29:33 | 178,231,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,982 | py | #!/usr/bin/env python3
""" Sources:
[Luz2016survey] Luz, Eduardo José da S., et al. "ECG-based heartbeat classification for arrhythmia detection: A survey." Computer methods and programs in biomedicine 127 (2016): 144-164.
[Li1995detection] Li, Cuiwei, Chongxun Zheng, and Changfeng Tai. "Detection of ECG charac... | [
"stefan.huber@stusta.de"
] | stefan.huber@stusta.de |
44d7b163937a1cc756b6f3918b58cb04e955dc93 | 04aacfdb9944e6d796671198835394e07db98ecf | /pythonz/commands/locate.py | 939aedb0faee04842dfa3a3a10a968e88396ce8c | [] | no_license | rmoorman/pythonz | ea86f302c70b67440c2829d4a0a9161d4a006ccc | 3d43172cae190284cf0b620aa28c0f794f770497 | refs/heads/master | 2021-01-12T19:51:39.057258 | 2014-10-16T07:20:06 | 2014-10-16T07:20:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py |
import os
from pythonz.commands import Command
from pythonz.define import PATH_PYTHONS
from pythonz.util import Package, is_installed
from pythonz.log import logger
class LocateCommand(Command):
name = "locate"
usage = "%prog [options] VERSION"
summary = "Locate the given version of python"
def __i... | [
"saghul@gmail.com"
] | saghul@gmail.com |
9119375210135d68a5d5056526b4f3f2dc6f5299 | 9f9cc09b5af8546377d28f7f7cbc02f2c471b20c | /tracker_app/admin.py | 9d89b57a4b78bb3da01da673720b9e7ebabe1246 | [] | no_license | WenlingDing/DJANGO | 207efa5e5c654d9296f5c66bb8f9bc558eb1a906 | 003a98a8b489368649471c8be0651c0e66a643d8 | refs/heads/master | 2021-06-19T03:43:15.363563 | 2019-06-03T08:01:14 | 2019-06-03T08:01:14 | 186,542,446 | 0 | 0 | null | 2021-06-10T21:27:44 | 2019-05-14T04:05:38 | Python | UTF-8 | Python | false | false | 228 | py | from django.contrib import admin
from .models import Status
from .models import Issue
from .models import Feature
# Register your models here.
admin.site.register(Status)
admin.site.register(Issue)
admin.site.register(Feature) | [
"dwlwendy18@gmail.com"
] | dwlwendy18@gmail.com |
205f72b2accf340094259c79b34ab663f053814d | c9e6cc2066f84a6e8dac9d236eb4f30c1b7e17a3 | /config/urls.py | 94d894fa1b4df8d0f4df1385bd5fcba349a3512c | [] | no_license | 5Dong-GA/pybo_mk2 | 1454484aaf79d4c5296d193dd70e82056ea0d9f4 | 7e010aab70570248aaefaf6082d01004e16df11a | refs/heads/master | 2023-08-19T19:29:52.311904 | 2021-11-01T07:14:39 | 2021-11-01T07:14:39 | 415,547,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | from django.contrib import admin
from django.urls import path, include
from pybo.views import base_views
urlpatterns = [
path('admin/', admin.site.urls),
path('pybo/', include('pybo.urls')),
path('common/', include('common.urls')),
path('', base_views.index, name='index'), # '/' 에 해당되는 path
path(... | [
"gljhan123@gmail.com"
] | gljhan123@gmail.com |
6166eda0d8b5542780b07568f03f26945ebf8566 | 42699cce7bb4ccd616f4a96631527043164b931f | /Model.py | ef75fa4e4253ebfe5a4d244747b94e26d31519d9 | [] | no_license | Helgaodin/GraphQ | 2fcf80ee7570882f3ddc34ba389a698d240755a3 | 31f8e6fa5ef23c106c1dc39b16e1834011b4a37b | refs/heads/master | 2020-04-06T20:25:50.636313 | 2018-12-27T05:27:39 | 2018-12-27T05:27:39 | 157,772,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,993 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 6 21:41:48 2018
@author: Olga
"""
import random as rn
import networkx as nx
import numpy as np
import math
import copy
import matplotlib.pyplot as plt
q = 0.1
N = 1024
p = 0.1
t = 0
Tmin=100
G = nx.erdos_renyi_graph(N, p)
MatAdj = nx.to_numpy_matrix(G)#ìàòðèöà ñìåæíîñò... | [
"noreply@github.com"
] | noreply@github.com |
529021e9253b54ea2760500cc89608996f682434 | 81d61f6e84873837cd3b437c0c24a4fceb38c755 | /Vec3.py | 6e2b6c5c2794c6690d092b0000fe728aeef6c77d | [] | no_license | A00885419/Emag_lab_4 | 2d13396418fd98dececa98d5dccf042ae0ed08bf | 7155ccecdabc3caef0a35754e00b8c7d4ce5110b | refs/heads/master | 2020-01-23T22:01:30.704804 | 2016-11-28T14:41:28 | 2016-11-28T14:41:28 | 74,711,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | # Finite element analysis base for lab 4
import math
# general purpose 3d vector class based on my old 2d vector
class Vec3:
def __init__ (self, ix, iy, iz):
self.x = float(ix)
self.y = float(iy)
self.z = float(iz)
# vector operations
# Vector Addition (+)
def __ad... | [
"peterlimail47@googlemail.com"
] | peterlimail47@googlemail.com |
66c30e0293b40b2dc060085c96b72090ca57f53a | ae8507d88da3660d756865dec2277d5b42c6eeda | /src/urls.py | 844cd6810ef0c538c2f72c9aaf0d99f9064d58f5 | [] | no_license | alexandrebini/welcometothedjango | 2d40d07ddd300a8a331adeac30c0fb6c1ca9f594 | e949449bee1caf09f5b275db690dce39000d517f | refs/heads/master | 2021-01-16T19:31:46.962963 | 2012-03-25T03:51:08 | 2012-03-25T03:51:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | from django.conf.urls.defaults import patterns, include, url
from core.views import homepage
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^$', homepage),
... | [
"alexandrebini@gmail.com"
] | alexandrebini@gmail.com |
73a2a3d133057914d6e40ebbfbf584645ff54880 | 20a49e4bb2e4826a64ac337b21206afa83cb8e76 | /thehardway/ex14.py | b5b79da768442576f94958e317bc239296800866 | [] | no_license | DBeardionaire/learning-python | 6b8c668e123f5cf3626a2cc82e2957bb32a2db46 | bcc6d1dd603c2413033fd77268ef990a580d350c | refs/heads/master | 2020-05-29T08:48:55.346145 | 2015-07-22T20:34:06 | 2015-07-22T20:34:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | # Import 'argv' module from 'sys'.
from sys import argv
# Unpack variables 'script' and 'user_name' from 'argv' module.
script, user_name, what_time = argv
# Create 'ask' variable and assign it a string value.
ask = '> '
# Begin asking questions using variables. User response assigns to variable 'likes'.
print "Hi %... | [
"rand.seay@gmail.com"
] | rand.seay@gmail.com |
6f80e1959435946497fe0db550324d388644ee17 | 19f25a63f45e326c095ecc46e00527a0358b0200 | /help_dialogs/Reset_dialog.py | 2394921992625a4ca0b77ad043e57fd9c95d74ad | [] | no_license | vfurtula/Laserlab | 3b51f8d3c2db2b68803c5ece4aabd078948a3024 | e566febeb7b7006ba4f5f69ee2dffd9f6c89fc59 | refs/heads/master | 2022-10-16T03:57:04.860706 | 2020-06-08T09:09:29 | 2020-06-08T09:09:29 | 259,634,634 | 0 | 1 | null | 2020-05-06T10:38:17 | 2020-04-28T12:46:18 | Python | UTF-8 | Python | false | false | 4,712 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 12 09:06:01 2018
@author: Vedran Furtula
"""
import re, serial, time
from PyQt5.QtCore import QObject, QThreadPool, QTimer, QRunnable, pyqtSignal, pyqtSlot
from PyQt5.QtGui import QFont, QFrame
from PyQt5.QtWidgets import (QDialog, QMessageBox, Q... | [
"vfurtula@localhost.localdomain"
] | vfurtula@localhost.localdomain |
cf3ef703f036d44f6267fe31e5becc1cc56eddef | ebe67a95eeeda2db098f8515d7128d9623dfffb6 | /run_scripts/freq_rebin.py | ad3de78bc70f62cc30f2b443622efaeaff3cf089 | [] | no_license | tcv/hibiscus | c9ec6fdf122cb98cc2e27a08d20a5a2b91a5d6bf | ac7a065c8f3bb36a7254726e51806ffa4ca11b36 | refs/heads/master | 2020-06-04T02:27:50.116743 | 2015-09-28T21:25:47 | 2015-09-28T21:25:47 | 11,481,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,642 | py | """
Module to rebin a single day of data
"""
import matplotlib
matplotlib.use('Agg')
from numpy import *
import pylab
import scipy.interpolate as itp
import numpy.ma as ma
import scipy.optimize as opt
import os
import skrf as rf
import sys
import matplotlib.pyplot as plt
sys.path.append(os.path.abspath('/home/tcv/hibis... | [
"tabitha.voytek@gmail.com"
] | tabitha.voytek@gmail.com |
82af4577975f944ba39e44d7f9a294e05163755e | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/dialogflow/cx/v3beta1/dialogflow-cx-v3beta1-py/google/cloud/dialogflowcx_v3beta1/types/intent.py | ab7d83589724b82269ef2d692eaaf2e0c46698b6 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,442 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
88cd1d6fe0ac5132e4fca4498c26a79a50729ebf | a2b372fc903509ffeb413470dd83ec17a8d5c104 | /pytorch-vqa/train.py | 3298d7eae26fa95a7d4202c8b32e7405dd7b955e | [] | no_license | jasonkrone/multitask_text_to_image_synthesis | 605d1652bd9a0e429345d90ba6c4d90b2bd6a29d | 3f2dc0eea48909b7c1f295ee1d91445d4c8a3272 | refs/heads/master | 2020-04-10T18:19:20.055553 | 2018-12-10T16:18:03 | 2018-12-10T16:18:03 | 161,200,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | import sys
import os.path
import math
import json
import torch
import torch.nn as nn
import torch.optim as optim
from torch.autograd import Variable
import torch.backends.cudnn as cudnn
from tqdm import tqdm
import config
import data
import model
import utils
def update_learning_rate(optimizer, iteration):
lr =... | [
"jasonkrone@me.com"
] | jasonkrone@me.com |
2d5cbd0ca506b979956c7608f7463c2e6627cfdb | b5e25da52997ee9ca1aa445b0b6c04deabd6cc58 | /models/models.py | 5c26c1f5d0522d3099b02de70540363acd321c35 | [] | no_license | mom988/account_move_line_field_extend | b8d01d3b63c227b31346f37c0499a9167eacde8d | 229723e9584233a08923ee4b19359c6680dec716 | refs/heads/master | 2023-03-22T10:49:11.004381 | 2021-03-05T02:49:40 | 2021-03-05T02:49:40 | 344,652,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
# class rsh_account(models.Model):
# _name = 'rsh_account.rsh_account'
# _description = 'rsh_account.rsh_account'
# name = fields.Char()
# value = fields.Integer()
# value2 = fields.Float(compute="_value_pc", store=True)
# descript... | [
"263737@qq.com"
] | 263737@qq.com |
14da85392dbd40646b05f92897a8547d3296d30b | 61f7cfe81333fab839f4b040e6a93e7f3bf534c9 | /src/arch/arm/fastmodel/arm_fast_model.py | d666b7febfaeb866361a3f53efcc6bf70a083e12 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | Linestro/gem5_Y | f49e01835a5a4bb0bd77a47f63aed0f9f3304495 | 01fe12d28300948e4d93942d98a712ef84024675 | refs/heads/master | 2022-12-09T22:15:10.902028 | 2019-11-11T21:22:50 | 2019-11-11T21:22:50 | 211,427,864 | 0 | 1 | BSD-3-Clause | 2022-11-29T22:43:07 | 2019-09-28T01:42:11 | C++ | UTF-8 | Python | false | false | 4,827 | py | # Copyright 2019 Google, Inc.
#
# 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
# notice, this list of conditions and the following disclaimer;
# redistribu... | [
"yehaojie@umich.edu"
] | yehaojie@umich.edu |
2fda8681fcb9a539894d1abbdd84a4370d179703 | ac098a873daa972878ba9d63a92737214b807811 | /RosNode.py | f2f86b9c26da49eff2c0708925ecdb3417056b71 | [] | no_license | hudongrui/2018SU_Frank_Zihan | a7490240b640255add05961f72cf4735ee24d45c | 220a5d935a2415a02188092136841830759a6556 | refs/heads/master | 2020-03-21T20:47:48.359795 | 2019-09-27T15:50:24 | 2019-09-27T15:50:24 | 139,028,651 | 2 | 1 | null | 2019-09-27T15:50:25 | 2018-06-28T14:22:33 | Python | UTF-8 | Python | false | false | 300 | py | import rospy
from std_msgs.msg import Int8 as int
rospy.init_node("blah")
def publisher():
pub = rospy.Publisher('samplePublisher', int)
rate = rospy.Rate(10.0)
while not rospy.is_shutdown():
# print '.'
pub.publish()
rate.sleep()
break
| [
"hudongrui_01@outlook.com"
] | hudongrui_01@outlook.com |
ca45f84ad6024b57da8fc2431a5dd592c2bd062b | a6c712cce838b903d221e5d9fba85b531d767a2d | /model_selection/nlp/w2v/doc2vec.py | ec24852dc4933907f7d57f6bccb3185773228734 | [] | no_license | austinkk/competition_lib | 878c3e5f63a399931e8e313e212f8750c850bbe0 | 79a816947240872d896b13f7fe703df784bf9144 | refs/heads/master | 2021-08-09T01:52:10.991600 | 2020-04-10T07:14:03 | 2020-04-10T07:14:03 | 151,812,178 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,794 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import collections
import math
import numpy as np
import os
import random
import tensorflow as tf
import zipfile
# from matplotlib import pylab as plt
from sklearn.manifold import TSNE
import pickle
import gc
class CBOWConfig(object):
"""CBOW params"""
... | [
"austinkk@sina.cn"
] | austinkk@sina.cn |
efe1227c94da541154a41caa2ddbf5eddd02211b | 6371acdb640e62e4e6addac2ba1aa70002a8c1b1 | /Algorithms/pySINDy/pySINDy/sindybase.py | b8faf881ff1a71bfc9d1b60c2251129f08263c46 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | M-Vause/SEED | 263307152ebac1e4f49cd81dcd5207ecbdf51139 | cda94a02a5ef47a1e9a885d330eef2821301ebed | refs/heads/master | 2022-12-13T20:11:58.893994 | 2020-04-27T16:10:09 | 2020-04-27T16:10:09 | 252,790,026 | 3 | 3 | MIT | 2022-12-08T01:52:05 | 2020-04-03T16:55:10 | Jupyter Notebook | UTF-8 | Python | false | false | 18,773 | py | """
Base Module for SINDy: 'fit' method must be implemented in inherited classes
"""
import numpy as np
import matplotlib.pyplot as plt
class SINDyBase(object):
"""
Sparse Identification of Nonlinear Dynamics base class
"""
def __init__(self, name='SINDy model'):
self.name = name
self... | [
"58262117+M-Vause@users.noreply.github.com"
] | 58262117+M-Vause@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.