blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7098312c246eba821a356efa17dc57791ec3be58 | f437781f059bd249856e2efbe73992b6d51b5781 | /main/views.py | 3269e0f515820731d949f8fcd82ea3a3d5521f93 | [] | no_license | arashd/SmartShort | 7068f0962ee0cbad191611b244f89866532ac7c2 | deea2d9ba49f26f57a2facff7d1fdd60b91bc98f | refs/heads/master | 2020-04-08T11:34:50.101375 | 2012-03-09T08:54:40 | 2012-03-09T08:54:40 | 3,489,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,810 | py | import json
import hashlib
from django.shortcuts import render_to_response
from django.http import HttpResponse, Http404, HttpResponseBadRequest
from django.template import RequestContext
from django.views.decorators.csrf import csrf_exempt
from django.conf import settings
from smartshort.main.decorators import AllowJ... | [
"robmcqn@gmail.com"
] | robmcqn@gmail.com |
c7263216ac3fb0c32cc0a130ca9cbb23509ab742 | c9b12a3cdffd506f72a26f4c5071b67a180f67ae | /unorganised/foundation/basic.py | 500da958ef086f2c8e61306934a11069ce6dd7ec | [] | no_license | chinmay-potdar/Chinmay-python-3 | 2297f178f8ccdfabd9486ab41d88ac894b02c620 | 0853f8dcb2b69c5fdc6599401b39534bc28ec4ac | refs/heads/master | 2021-02-07T12:55:42.418137 | 2020-02-29T18:44:57 | 2020-02-29T18:44:57 | 244,028,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | "
Types of operator
1. Uninary operator
2. Binary Operator
3. Teriary Operator
1. Uninary operator
The operator which operates on only one operator
Example:
!a (Not a)
-a
+a
2. Binary Operator
The Operator ehich takes only two operator
... | [
"greatstart0@gmail.com"
] | greatstart0@gmail.com |
d67ab84c3b5ca980710866dc48a5ebdfb432ea49 | d62f4e3e9d3cd8d3554ae2e55f1316004dedbbed | /tf1/mlbf_dataLoad_exp.py | 37f4582be2bbc020602a65d41aa4f213db43f164 | [] | no_license | bdomae/MLmultipathBA | b8e00b1f3ee9ebcc064a05808e68ee0fe8495a7a | 8adb2f6693701e8f5e2847dbfa459ba80b623a5f | refs/heads/master | 2023-08-15T17:29:04.167342 | 2021-10-14T09:19:26 | 2021-10-14T09:19:26 | 405,771,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56,011 | py | import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
from tensorflow import keras
import pandas as pd
from scipy.special import comb
import copy
from mlbf_dataset import MLBF_Dataset, MLBF_Dataset_Tag
class ExpDataConfig:
#### Simulation Data configuration class - holds all configuration v... | [
"bdomae@ucla.edu"
] | bdomae@ucla.edu |
ebd5eab51824172d3aa931e194ddd794b09a177c | 45b452d7251e96636a9cea0a14b6dc555f7b7907 | /local_testing.py | a68a7871d3daf7538d0756e4ef82c56626926e47 | [] | no_license | vasiapupkin123/YourConcertsBot | 734f5b6bf01ed0591eadf81225455ef8f8cc13a7 | 6e7fb4d1217e56c18a58e2ada3fe570746549bcd | refs/heads/master | 2021-01-18T22:39:36.427636 | 2017-03-09T08:49:48 | 2017-03-09T08:49:48 | 84,379,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from grabber import TotalDefaultGrabber
grabber = TotalDefaultGrabber()
print(grabber.get_concerts_in_text(['Сплин']))
print(grabber.get_audios(7235317))
print(grabber.get_friends_id_list(7235317))
| [
"kitozz@rambler.ru"
] | kitozz@rambler.ru |
24341befa5772a165f62ee0980ba26efc7c39305 | 645a3dd37884dbc6571a11ad226caae47dca6112 | /model/Game.py | 0850915dd42e926f720fae45f61fd87d3f1a0200 | [] | no_license | esemi/russianaicup-2014 | e90007e56c9d77de1c5dbb9deda3bbedf667826e | 15c0c3ae6da0dcaf8d1a60de5f9e6cb14b86a1c9 | refs/heads/master | 2021-09-23T20:25:28.896556 | 2021-09-10T13:38:17 | 2021-09-10T13:38:17 | 23,827,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,617 | py | from math import *
class Game:
def __init__(self, random_seed, tick_count, world_width, world_height, goal_net_top, goal_net_width,
goal_net_height, rink_top, rink_left, rink_bottom, rink_right, after_goal_state_tick_count,
overtime_tick_count, default_action_cooldown_ticks, swin... | [
"spam@esemi.ru"
] | spam@esemi.ru |
e0e296b4db975b48fac91b4a435db315d68bccc5 | 86932f8c69708ebdf534c6604e5322a5496596a1 | /tests/helpers.py | feef1302d75b434d46e530e499daa0eabc790c3b | [
"BSD-2-Clause"
] | permissive | ress/flask-assets | 3a8cd77c315840cb80528cbbf139f804ae335920 | 747aa9c0d1b036bd3cc65b5cd278e48a97ac8af2 | refs/heads/master | 2021-01-18T05:52:34.242630 | 2013-01-04T15:43:58 | 2013-01-04T15:43:58 | 7,623,019 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | from nose import SkipTest
from nose.tools import assert_raises
from flask.app import Flask
try:
from flask import __version__ as FLASK_VERSION
except ImportError:
FLASK_VERSION = '0.6'
from webassets.test import TempEnvironmentHelper as BaseTempEnvironmentHelper
from flask.ext.assets import Environment
try:
... | [
"michael@elsdoerfer.com"
] | michael@elsdoerfer.com |
e1700a52bf7fc6f3fef9ba3960aaf57f768bad57 | 0c659d16b796e6220e93b08693e557a698c5977e | /setup.py | 0e4dae03af83c6567586b12a43992f9873753b41 | [
"MIT"
] | permissive | marchon/citas | f4eb405d9efd9831df21b892945327bc86f8b7fe | 73a51c0a5dff29bd2728973457d378aec40ce1cf | refs/heads/master | 2021-04-15T08:01:43.520071 | 2017-05-04T22:19:00 | 2017-05-04T22:19:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from pip.req import parse_requirements
import re, ast
# get version from __version__ variable in citas/__init__.py
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('citas/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_vers... | [
"admin@Admins-MacBook-Pro.local"
] | admin@Admins-MacBook-Pro.local |
513e529b4e9e4115777f44df6972ef72a2e0e317 | e6a4af814f41e0a6b661d8685a54ba5bd41a4baf | /film/dao/calc_dao.py | 063d7d0053c70a79fc8d3343bc0e50eacd00efa5 | [] | no_license | oaifaye/film_wx | cdb39116748af180719bec4d2cf5af02e88235d3 | 63519b430001216f22d14a1ee6f7d528e0ce655e | refs/heads/master | 2021-05-09T12:41:24.361486 | 2018-01-26T06:57:48 | 2018-01-26T06:57:48 | 119,016,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,281 | py | # -*- coding: UTF-8 -*-
'''
Created on 2017年12月10日
@author: Administrator
'''
from film.dao.base_dao import BaseDao
import datetime
class CalcItem():
id = -1
dateNo = 0
calcType=''
websiteId = 0
mergeCinemaId=None
mergeFilmId=None
initDate = None
class CalcDao(BaseDa... | [
"slf_work@hotmail.com"
] | slf_work@hotmail.com |
6c97bb9e691c391630124b2807c4a01a8eb12037 | 823ae7b4ac9e77650f324e4e2c91d2cce072d14a | /MMSplice/pathogenicity/dataloader.py | c961c086efb322716c8fd00a039254fd04e5cbe0 | [
"MIT"
] | permissive | banwang27/models | 7021d2239fba5db95dc5ba5c788c89eb246690f9 | 59db29e46f76b630b78c864fb607388dd927b93c | refs/heads/master | 2020-04-05T09:34:07.349743 | 2018-11-12T21:17:15 | 2018-11-12T21:17:15 | 156,763,603 | 0 | 0 | MIT | 2018-11-08T20:17:52 | 2018-11-08T20:17:52 | null | UTF-8 | Python | false | false | 6,074 | py | import numpy as np
from kipoi.data import SampleIterator
import pickle
from pyfaidx import Fasta
from cyvcf2 import VCF
from concise.preprocessing import encodeDNA
import warnings
from mmsplice import MMSplice
from mmsplice.vcf_dataloader import GenerateExonIntervalTree, VariantInterval, get_var_side
model = MMSplic... | [
"chengju@in.tum.de"
] | chengju@in.tum.de |
8d27661c40542d480ecee61457fea4b4f273fd0a | 7a0c5fc2e1bcd652c1d1d7eede6df3a27d9dd0ae | /LSTM.py | f3d6d59664c4287554e2e918e8670f57a7c5fdd5 | [] | no_license | drkaen/LSTM | ee3f450ed574184af3a60226ac7fe25e9a376033 | 15f8bd35e69ee9f60ecbfd52f12790cb04e41af1 | refs/heads/main | 2022-12-19T20:40:29.129945 | 2020-10-23T12:16:18 | 2020-10-23T12:16:18 | 306,626,317 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,319 | py | # -*- coding:UTF-8 -*-
import numpy as np
import torch
from torch import nn
import matplotlib.pyplot as plt
# Define LSTM Neural Networks
class LstmRNN(nn.Module):
"""
Parameters:
- input_size: feature size
- hidden_size: number of hidden units
- output_size: number of o... | [
"noreply@github.com"
] | drkaen.noreply@github.com |
ac07702131d874df4474dcc70754a77a39ebf09d | 85b419b69a51d77c9eeef3702f9ea55025241bfd | /Cocktail/src/make_whitenoise.py | dab0258d8ede46e2ec716cdc6843d6ca8b947084 | [] | no_license | YoungC2015/twctf-2016-problems | 2d0005fe21367d4fe1267b926c42c7bffa58a622 | bc770f06161d4e448b91052472b2fa118793bc1f | refs/heads/master | 2021-01-23T16:43:36.982398 | 2016-11-07T16:59:23 | 2016-11-07T16:59:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | import numpy as np
from numpy import random
from scipy.io import wavfile
def white_noize(length, sample_rate=44100):
sample = length * sample_rate
time_step = 1. / sample_rate
time_arr = np.arange(sample) * time_step
noize = random.randn(time_arr.size)
return noize
fs = 22050
noize = white_noize(6... | [
"kazukif12582552@gmail.com"
] | kazukif12582552@gmail.com |
979f59f65eddf8d3e63c273c305af8eb83b1ee6f | 0ebc1fddbdcc9ea6fca53e1d8fb77c6a892c8a19 | /Ground-Truth-Skeletons/dataManagement/organise_val_data.py | eff83d74db189b84cf72649ff141e0cce0805a0a | [
"MIT"
] | permissive | amit2014/Action-Recognition | 4ea569bc3a82966340b97a70ba14675fb5dadf12 | b648f4cd8e479872c0cd9488120ada18bc64e5ad | refs/heads/master | 2020-05-16T05:04:01.846725 | 2018-05-05T09:00:36 | 2018-05-05T09:00:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | import numpy as np
import pickle
#####################################################################################################################
stupid_videos = [ 111, 111, 111, 747, 747, 747, 981, 981, 981,
1145, 1145, 1145, 1252, 1252, 1252, 1281, 1281, 1281,
1282, ... | [
"naman1205jain@gmail.com"
] | naman1205jain@gmail.com |
0bb1d5a4954da836d307eba3ed74e8967e5d529d | 0dbe6c8fd3df2493a51aec94a1465d995e7b8e1f | /portfolio.py | 31a97ebb1a4e1ab2b5a92395a9b362a1c4829c36 | [] | no_license | denu5/quantstats-demo | 2e8e355bab1e3c47aaa3d1f4be58238825094b3d | a555d83dd2663940e1b0812c2b4cc038a7c410a6 | refs/heads/main | 2023-08-22T02:38:08.462696 | 2021-10-02T21:04:56 | 2021-10-02T21:04:56 | 458,323,796 | 1 | 0 | null | 2022-02-11T19:59:45 | 2022-02-11T19:59:44 | null | UTF-8 | Python | false | false | 761 | py | import quantstats as qs
qs.extend_pandas()
stock = qs.utils.download_returns('GLD', period="10y")
qs.reports.html(stock, title='PTL Investments', output='output/gld.html')
qs.reports.html(stock, "SPY", title="GLD vs. SPY", output='output/gld_vs_spy.html')
stock = qs.utils.download_returns('QQQ', period="10y")
qs.... | [
"59261823+financehacks@users.noreply.github.com"
] | 59261823+financehacks@users.noreply.github.com |
4cb92bd90b513a3ae9f3a5699db2dc20179594ba | 1d0dd1f18dd8460e2f1fa650f6a52278e79ac70f | /tin/tests__init__.py | 2cc58330e7a2821df42466c245a413f85a45c7e6 | [] | no_license | MechaCoder/maptin | 5798a4d3b85a27d6e23f1746da75816d3ec072fc | 36b0603b46157d32c60b66a621fa9ae219addd87 | refs/heads/master | 2023-04-07T14:21:44.582949 | 2021-02-26T14:03:31 | 2021-02-26T14:03:31 | 336,454,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | from unittest import TestCase
import tin.commons as commons
class TestCommons(TestCase):
def testSuccess(self):
obj = commons.success()
self.assertIsInstance(
obj,
dict
)
self.assertIn(
'succ',
obj.keys()
)
self.a... | [
"proudmandandc@gmail.com"
] | proudmandandc@gmail.com |
0bf5567737c72a86fb8581bd4a962d0966ab3df7 | d83e88375758fa34625da6d5981c630042f1c708 | /clispy/type/__init__.py | 4119949eacf2463370c20cc568779e7c058ff6f7 | [
"Apache-2.0"
] | permissive | takahish/clispy | 4659810596cc6398e1aee0fae3f5395628588360 | 8a6eaf209d1564d20b457cbac7428b78dc529241 | refs/heads/master | 2021-05-10T21:18:53.201083 | 2019-05-05T14:01:23 | 2019-05-05T14:01:23 | 118,225,175 | 4 | 0 | Apache-2.0 | 2019-03-11T14:53:40 | 2018-01-20T08:41:21 | Python | UTF-8 | Python | false | false | 853 | py | # Copyright 2018 Takahiro Ishikawa. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"takahish.nil@gmail.com"
] | takahish.nil@gmail.com |
7b8bd006676b2951f154b1a5c500191e942d59c7 | f9527131c26a7c97f3e2f53c51b15f9f4734b756 | /grace_dl/tensorflow/compressor/powersgd.py | 3df13767338842d3e731a092c1cf4c6ac5af2a25 | [
"BSD-2-Clause"
] | permissive | nachtsky1077/grace | b3911021a014b977b5b3f387a83f32824ba95869 | 2dd56b92ebbf9d17465890621bf2d6374ab27c8a | refs/heads/master | 2022-12-07T02:45:05.780964 | 2020-09-02T05:01:51 | 2020-09-02T05:01:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | import tensorflow as tf
from grace_dl.tensorflow import Compressor
from horovod.tensorflow import _allreduce
class PowerSGDCompressor(Compressor):
"""
PowerSGD: Practical Low-Rank Gradient Compression for Distributed Optimization.
T. Vogels, S. P. Karimireddy, and M. Jaggi. In NeurIPS, 2019.
... | [
"marco@kaust.edu.sa"
] | marco@kaust.edu.sa |
db6354dbf050b4000271db4ebf2feb8448e5be00 | f65e7b6f6ba502f71229fa046afd27f45cc7fa63 | /birhtday and age.py | 80c200425a35cb5010d5f6713d5fd7dd0690ee10 | [] | no_license | austin201/term2-portfolio | 93f951f10aac775a203773a31ec42c890f59f180 | 97877ce7039459ad25d4c409560b445dc022af37 | refs/heads/master | 2020-12-07T01:46:12.026730 | 2020-01-08T16:16:03 | 2020-01-08T16:16:03 | 232,604,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # Austin Daybell
# Birthday and Age
import datetime
# create date object with your birthday
birthdayString = input("Please enter your birthday in the format YYYY-MM-DD: ")
# parse input string into datetime object
myBirthday = datetime.datetime.strptime(birthdayString,"%Y-%m-%d")
# print out your birthday and day o... | [
"austin.daybell@tooeleschools.org"
] | austin.daybell@tooeleschools.org |
2d1b104686a4a22c1dc4b630e9981bc6891c5794 | 0638a4465f7d2e6da15e7e67d6ccc8452fe961f4 | /server1.py | 12add9ec0858ebdd7efd24e23fbb03cbc6df5b0d | [] | no_license | shikha023/automate-hadoop-installation | 90734eddb728be89e6bff022e86e4ba70b4cc8e5 | 18eec068f2968250c5c04cdb4e1f2d79660e468c | refs/heads/master | 2020-05-17T01:38:59.683999 | 2019-04-25T12:36:19 | 2019-04-25T12:36:19 | 183,432,366 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py | #!/usr/bin/python36
print("ContentType: text/html \n ")
import subprocess as sp
cmd="""
- hosts: server1
tasks:
- name: "install file"
file:
state: directory
path: /server1
mode: 0777
# - name: "get java software"
# get_url:
# url:
# dest: /server1/
#
- name: ... | [
"swaroopshikha23@gmail.com"
] | swaroopshikha23@gmail.com |
013ed7395248685e9bdcc2f81b536235e7772060 | bd94013a507ec5b340ab81100721d6d553db86b0 | /AS5048B.py | f1cc9518002acbe9bceb8017fd0fc3d88c81e477 | [
"MIT"
] | permissive | karu2003/LX3_AS5048B | 7ae99595108acc36811fccbd7abfde861e69792a | a4b4e5f71cf5d47b90a91511df6eb8329fae4f88 | refs/heads/main | 2023-03-22T13:25:15.513644 | 2021-03-06T09:25:08 | 2021-03-06T09:25:08 | 345,047,196 | 0 | 0 | MIT | 2021-03-06T09:25:08 | 2021-03-06T08:47:25 | null | UTF-8 | Python | false | false | 2,430 | py | # https://github.com/sosandroid/AMS_AS5048B
# Angular Velocity of Earth 7.2921159 × 10-5 radians per SI second
# 1 grad - 0.01745329 rad
# AS5048B resolution 0.0219°/LSB
# AS5048B Noise 0.06°
import sys
import smbus
import time
import numpy as np
from datetime import datetime
DegreesScale = np.around(3... | [
"ka_ru2003@msn.com"
] | ka_ru2003@msn.com |
226c7921c86cdc47b3633f0fd616eff2d6901760 | 1b6e0bb1aae086e406b6a106c1371a2a5bc79195 | /bank/views.py | 5bf18a6e16fb0956de157ef14075f2e2ad29ad1a | [] | no_license | ranjanbipul/mz-wallet | da4650cbb4f2e46d6c2dc379b0b4c4299b0fe721 | 31d255692e8823b45ebf712d5513668c6cd63d8f | refs/heads/master | 2022-12-09T22:49:01.048723 | 2018-02-22T13:00:16 | 2018-02-22T13:00:16 | 122,467,457 | 0 | 0 | null | 2022-12-08T00:54:02 | 2018-02-22T11:03:33 | Python | UTF-8 | Python | false | false | 2,244 | py | from rest_framework import permissions,viewsets
from rest_framework import status
from rest_framework.response import Response
from rest_framework.settings import api_settings
from .serializers import *
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework.filters import OrderingFilter, Sear... | [
"bipulranjan@hotmail.com"
] | bipulranjan@hotmail.com |
f7795843b4cfdbb13ed2d03487cdcb10b2b69616 | 5a4e55360830d702dfb2d48e611296c944562e14 | /SinGAN/test_singan.py | f53fbe95cb10e17bf2ef38f3031605365f18d5c5 | [
"MIT"
] | permissive | JKDONGGG/deeplearning | a631c80d9d54a52780fcfa049fe7877a1adf939a | 37c3038556d9488f7e5dc5d686a36904ae1a698e | refs/heads/master | 2020-11-23T23:15:01.846212 | 2020-01-15T07:25:42 | 2020-01-15T07:25:42 | 227,858,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | import skimage
from skimage import color
import math
'''
x = skimage.io.imread('Input/Images/tree.png')
print(x.shape)
print(type(x))
print(x[0].shape)
print(x.size)
print(x.shape[2])
print(11111111111111111111)
x = color.rgb2gray(x)
print(x.shape)
print(type(x))
print(x[0].shape)
print(x.size)
print(1111111111111111... | [
"dongjinkun99@126.com"
] | dongjinkun99@126.com |
3b2cbb2bb5000b59578caf252f6ba1caa96076c4 | c0e46cba67ed8e46a83cbd8f4e56ef355a41b9ac | /MergeList.py | 14b80e8b0e73501ef1e83f23785507bc8cb84e27 | [] | no_license | Dagiman007/Python-exercise | ac888a1a49cc8a2ffeafd63790f881241b2ed714 | 1679d4f96240a128e65eb394daf498646570e2e0 | refs/heads/master | 2022-06-18T06:35:59.425222 | 2020-05-09T10:35:45 | 2020-05-09T10:35:45 | 262,544,754 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py |
def main():
list1 = [eval(x) for x in input('Enter list1: ').split()]
list2 = [eval(x) for x in input('Enter list2: ').split()]
mergedList = merge(list1, list2)
print('The merged list is ', end = '')
for number in mergedList:
print(number, end = ' ')
def merge(list1, list2):
... | [
"noreply@github.com"
] | Dagiman007.noreply@github.com |
4490c6ee769209f3751f16f7c940b75c7095bdc1 | 2d28d7d23ffee8c19c5b0b5f12c2ef34a0e0eac2 | /py_kafk/tar/pykafka-2.8.1-dev.1/tests/pykafka/test_ssl.py | 97ac4378b0c1e61c7dc9b8fdaa981abf92fccac8 | [
"Apache-2.0"
] | permissive | liuansen/python-utils-class | bd8e9bb100a8b7c97ca9022ecf44cde0e79a8edd | c7054bd05b127385b8c6f56a4e2241d92ff42ab4 | refs/heads/master | 2023-05-27T22:40:00.715765 | 2022-08-08T07:33:41 | 2022-08-08T07:33:41 | 185,551,657 | 3 | 0 | Apache-2.0 | 2023-05-22T21:37:24 | 2019-05-08T07:08:23 | Python | UTF-8 | Python | false | false | 2,701 | py | import os
import unittest
from uuid import uuid4
import pytest
from pykafka import KafkaClient, SslConfig
from pykafka.test.utils import get_cluster, stop_cluster
kafka_version = os.environ.get('KAFKA_VERSION', '0.8.0')
class SslIntegrationTests(unittest.TestCase):
USE_RDKAFKA = False
@classmethod
de... | [
"616833686@qq.com"
] | 616833686@qq.com |
28101c03d0de02692199f109262b23a0484f06d0 | 9a7037925acbb81a757d4f664a45940bc4122b9a | /item_list/boots/default_rogue.py | b2de9184e23d105fee00fbffd1e4bd152804902e | [] | no_license | Swanndolia/python_text_rpg | d8242c58d13d03df1e59702e2d983b07be64ac9c | deb4ef9758b5f7d53937fe11d5044cbcdfa52e8f | refs/heads/master | 2023-06-19T02:34:14.514181 | 2021-07-20T09:58:28 | 2021-07-20T09:58:28 | 385,609,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | import item as Item
def createItem():
default_rogue = Item.Item()
default_rogue.name = "Leather Boots"
default_rogue.desc = "Default Rogue Stuff"
default_rogue.slot = "boots"
default_rogue.armor = 2
return default_rogue | [
"Swanndolia@gmail.com"
] | Swanndolia@gmail.com |
fd08da09f44896c00a321364cd2b710a3404cc9b | 71035b26ce8abb5b6bc26fb5585189bb872be528 | /exp/29-01-2019-exp1-redone-2/src/7_solver.py | b8e2ec89ca117917554fe54d71d5e7995cb9debb | [] | no_license | cchauve/DLT-Histories | 04355306f3a9648902da48935571ecf91d7a9af1 | e90facec0838f2373507a6f79c0f1ddc7a85b2a6 | refs/heads/master | 2020-04-07T09:13:46.389476 | 2019-12-20T07:44:35 | 2019-12-20T07:44:35 | 158,244,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,321 | py | import numpy as np
import scipy
import scipy.optimize as opt
ALL_RHS = {}
def f_0(X):
(z,r0,r1,r2,r3,r4,r5,r6) = X
f = [(-2*r0+1)*(-2*r1+1)*(-2*r2+1)*(-2*r3+1)*(-2*r4+1)*(-2*r5+1)*(-2*r6+1), -r0**2-z+r0, -r0**2-r1**2-2*r0+r1, -r0*r1-r2**2-r0-r1+r2, -r0*r2-r3**2-r0-r2+r3, -r0*r3-r4**2-r0-r3+r4, -r0*r4-r5**2-r0-r4+r5... | [
"cedric.chauve@sfu.ca"
] | cedric.chauve@sfu.ca |
a3fd3652d4d5c33add6794f8a402b37cdb2216ad | bcea74119ea0ed804a3b5971b968529b2414a547 | /mask_rgb.py | 4cfc55be904a8472eaec98233d8c18fb5f1b925e | [] | no_license | KingArthur000/hand-gesture-detection | bfc035d2e2f54aa88f8bcaefaa3f1ac589ef2df4 | 41d0184031361bbe3ac6c55434bcfd75f591b996 | refs/heads/master | 2022-06-15T21:36:03.897485 | 2020-05-07T10:28:55 | 2020-05-07T10:28:55 | 261,681,484 | 0 | 0 | null | 2020-05-06T10:07:04 | 2020-05-06T07:18:04 | Python | UTF-8 | Python | false | false | 1,110 | py | import cv2
import numpy as np
def nothing(x):
pass
cap = cv2.VideoCapture(0)
cv2.namedWindow('image')
cv2.createTrackbar('lower_R','image',0,255,nothing)
cv2.createTrackbar('lower_G','image',0,255,nothing)
cv2.createTrackbar('lower_B','image',0,255,nothing)
cv2.createTrackbar('higher_R','image',0,255,nothing)
c... | [
"noreply@github.com"
] | KingArthur000.noreply@github.com |
c3785351b1e3ecff3289005b9cc2e71dc2986c20 | fb3dfdb61e4d915917dd927ee46fafc28dc5eb6b | /hood/urls.py | d4eeb142ae107fe8cfce1103ac497a0c6d081ad6 | [] | no_license | ClarisseU/neighborhoodNews | a16aa1e892eed590ced6ea90a098b3818e489d09 | 0788fdb972a278cf9509f78cd0bd1212812f669f | refs/heads/master | 2020-08-31T17:02:46.576909 | 2019-11-04T08:21:13 | 2019-11-04T08:21:13 | 218,738,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | from django.conf.urls import url
from . import views
from django.contrib.auth import views as auth_views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns=[
url('^$',views.welcome,name = 'welcome'),
url(r'^<id>/business/$', views.business, name="new-business"),
url(r'^... | [
"clarisseum@gmail.com"
] | clarisseum@gmail.com |
8547a3f8e38bb2f53a487f816ab9317ee5582ffe | f61fc9cd7fc03921dc684b3bb3f2db54eaf2f908 | /multicontroller.py | d5b69ec20ce396dd43642105943a88859b55b516 | [] | no_license | Dinah-w/Thesis | ec26841ff2bc1364bce990ed7bb50b940163afe0 | 50df1f5a3c5b643a72075db3685fb1723c3ce311 | refs/heads/main | 2023-08-03T04:23:51.599956 | 2021-09-11T04:49:34 | 2021-09-11T04:49:34 | 405,283,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,218 | py |
from mininet.net import Mininet
from mininet.node import Controller, OVSSwitch
from mininet.cli import CLI
from mininet.log import setLogLevel
def multiContrller():
#Create a network with multiple controllers
net = Mininet( controller=Controller,Switch=OVSSwitch, build=False )
p... | [
"noreply@github.com"
] | Dinah-w.noreply@github.com |
3e0884b6637fa46e47bf58684f8b728f67568073 | b0b5df878333beada1fa4d862be098b80ced7641 | /AUTO_ADB/DCcore/dc_daily.py | 31cdf81394ca668e57a9ba70585ca50c7a0cf420 | [] | no_license | hygnic/boomboost | 054beac114f3407757a5423ed4766d36c2278911 | dcbff7abe3300c1a4c668cf6a96370a53be99ac5 | refs/heads/master | 2023-06-06T00:47:48.734632 | 2021-05-28T09:58:24 | 2021-05-28T09:58:24 | 281,379,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# ---------------------------------------------------------------------------
# Author: LiaoChenchen
# Created on: 2020/8/13 23:00
# Reference:
"""
Description: DC 日常任务
Usage:
"""
# ---------------------------------------------------------------------------
import os
import ... | [
"hygnic@outlook.com"
] | hygnic@outlook.com |
e9eb93127f82568735c995eca1085a123bca4d7c | 9cb964d5613b6c8782ff7aad62cc146036c269c5 | /comment/comment/items.py | 1da794d1aa3dc8ac0028b081d3fb3047c4d469d6 | [] | no_license | BigLanceLiu/sentiment_analysis | 532b342c672180cc524f37a74bdc9b706c72b281 | c808b2d074739794258a13a3789babd6475f8a46 | refs/heads/master | 2020-05-31T14:50:16.641698 | 2019-06-05T06:39:25 | 2019-06-05T06:39:25 | 190,340,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class CommentItem(scrapy.Item):
comments = scrapy.Field()
'''class movieItem(scrapy.Item):
movies = scrapy.Field()
'''
| [
"liujinan@cpe-172-100-90-18.twcny.res.rr.com"
] | liujinan@cpe-172-100-90-18.twcny.res.rr.com |
97d2dafb243c24ad338b245970b4c6c20e210ca8 | 8562fad1e46326a54bb2fc7aa4e5c7cc676af5eb | /Downloads/MEng/color_recogn/color_recogn.py | 378cacaef8e6dd62105e21ca6ac179b2ae27ee6f | [] | no_license | beaubeaubeau/UVLED-Disinfection-Robot | c728c33e9aaf7a5fb3dc5d0605ae8966479da15f | c65ea1be519d9bc6e3acfbe54e10c958e336b857 | refs/heads/master | 2022-09-07T16:34:22.431173 | 2020-05-25T02:43:15 | 2020-05-25T02:43:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | """
Loads and displays a video.
"""
# Importing OpenCV
from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import cv2
import numpy as np
# initialize the camera and grab a reference to the raw camera capture
#camera = PiCamera()
#camera.resolution = (640, 480)
#camera.framerate = 32
#raw... | [
"yanray@dhcp-rhodes-2931.eduroam.cornell.edu"
] | yanray@dhcp-rhodes-2931.eduroam.cornell.edu |
c84658a22133a4393ab3bf63536a4b2ae0965b45 | dfce55c4126bbab36332fff1d3295f07687fb813 | /quran/migrations/0019_verse_v_w_max_rpt.py | 0ab045c51c0944e11074048803f194183543bf5f | [] | no_license | HeshamAbood/Quran_bahith | cdf7d71b2706eadea8b2e8772993d6dcd2c6ac31 | 10e7fd615f6f1559240a54c30de21e7e388a2321 | refs/heads/master | 2023-01-24T03:46:14.745321 | 2020-11-06T18:40:49 | 2020-11-06T18:40:49 | 299,927,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2020-09-27 17:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quran', '0018_verse_v_words'),
]
operations = [
migrations.AddField(
... | [
"hshm_aboud@yahoo.com"
] | hshm_aboud@yahoo.com |
8d9c72e2cdd2ec127183666ea33ca8d45537e5e9 | 7914b4377e2999ba438a7d30700af1ea3b718f77 | /examples/ddpg.py | 44958b09d67243dca27a2368656e86f0919ff108 | [
"MIT"
] | permissive | Suffoquer-fang/tianshou | 23cd32f512841a50ce8675a00328ff42fd998e5c | d59d6cafe9f5d75789bdbed7fad4cd4b79877f4f | refs/heads/master | 2020-04-13T05:39:39.192076 | 2018-12-24T15:59:35 | 2018-12-24T15:59:35 | 162,998,543 | 0 | 0 | MIT | 2018-12-24T14:31:36 | 2018-12-24T14:31:36 | null | UTF-8 | Python | false | false | 3,468 | py | import tensorflow as tf
import gym
import numpy as np
import time
import tianshou as ts
if __name__ == '__main__':
env = gym.make('Pendulum-v0')
observation_dim = env.observation_space.shape
action_dim = env.action_space.shape
batch_size = 32
seed = 123
np.random.seed(seed)
tf.set_rando... | [
"zouhaosheng@163.com"
] | zouhaosheng@163.com |
f69e6cb58e32915c9091cbd7e6e8ac7b79d70306 | 0c4103afaa218697ad6ec514ad02a6e154278d70 | /python_data_structures/dictionaries/view_obj.py | 35a5acede55a7861d48a95e7eee052a269e59388 | [] | no_license | jgartsu12/my_python_learning | e721f3fa646d2ca46c888d0fbc55ac03a48b4889 | f971b7168e97e52fe9fd66f4b4d7c098110ca701 | refs/heads/master | 2020-09-07T17:45:08.747614 | 2019-11-19T00:49:23 | 2019-11-19T00:49:23 | 220,865,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | # Guide to Python Dictionary View Objects
#nested collections in dictionary view obj
# traversal to grab nestd items in a view obj
teams = {
"astros" : ["Altuve", "Correa", "Bregman"],
"angels": ["Trout", "Pujols"],
"yankees": ["Judge", "Stanton"],
"red sox": ["Price", "Betts"],
}
team_groupings = teams.item... | [
"jgartsu12@gmail.com"
] | jgartsu12@gmail.com |
6c8a414b2f25e9bb5da064bbb0ac865e4f1a9290 | c0e8b04ab7b8e3af59393b4d8938c5cc0a516ecd | /lib/filewatcher/operator/coderunner.py | 3227f2ac88feba1e535b00c7ea9d98e96d62d6e6 | [
"MIT"
] | permissive | yinyin/FileWatcher | cd3aeb7a910e29073850cb3e46fbfac62b41cf2d | c415b201eaaeb2ab84d0a6ee4f6a290aeaa4eacf | refs/heads/master | 2021-01-21T01:57:34.739110 | 2016-07-24T10:38:25 | 2016-07-24T10:38:25 | 3,661,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,500 | py |
# -*- coding: utf-8 -*-
import os
import re
import subprocess
import syslog
import threading
import Queue
from filewatcher import componentprop
_runner_queue = {}
_task_queue_assignment = re.compile('^\(([A-Za-z0-9-]+)\)\s*([^\s].+)$')
_command_carry_variable_macro = re.compile('^%([A-Za-z0-9_-]+)%$')
def _subp... | [
"yinyinl@gmail.com"
] | yinyinl@gmail.com |
e61dbf373622798c737e0974d479c853a57c5d82 | e1ab849af257bb6181d4d44a8185593c7bb2ba45 | /opencv.py | b1cb0806fd4189016eac47d6ac25596e508eb8fe | [] | no_license | akashakara/python-Basic | ed4986483e2eb3f6a6b60972a121495675b72656 | 879025728e5b44453e13bf57012eeeeedd2bf21f | refs/heads/master | 2021-02-11T08:22:03.126801 | 2020-03-02T20:53:41 | 2020-03-02T20:53:41 | 244,472,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | import cv2,time
import matplotlib as plt
import numpy as np
#capture a single photo
video = cv2.VideoCapture(0)
check,frame = video.read()
print(check)
print(frame)
time.sleep(3)
cv2.imshow("capturing",frame)
cv2.waitKey(0)
video.release()
cv2.destroyAllWindows
| [
"noreply@github.com"
] | akashakara.noreply@github.com |
ad32abecfd95246423b02313d9e367dd545bd6cf | e04d3525dc23c772d1582e7a463bd98e58afc0c7 | /server/server_test/src/api_skill_images_test.py | a4d137c125f1a0ab3b0323c34db8f4eaf1688f1d | [] | no_license | thinkingrobo/CoachingSugoroku | 36220991ebb42e88f573c8ac0deac8f1341003d6 | 5b5e3326d3acae7d2bf7cec633e162cc8f223532 | refs/heads/main | 2023-05-14T19:19:40.318624 | 2021-05-31T13:44:01 | 2021-05-31T13:44:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,625 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
import unittest
import json
import os
class SkillImageTest(unittest.TestCase):
"""
API skill-imagesに関するテスト
"""
HOST = os.getenv('TEST_TARGET_HOST')
def test_001_post_skill_image(self):
"""
API
- POST /skill-image... | [
"terzonome-github@yahoo.co.jp"
] | terzonome-github@yahoo.co.jp |
af888c7094138d69e0adc29c2f0f46ef532880e4 | 43a2f54ec9d43a80ab07a49964ec7456d4387701 | /projects/models.py | 48fd618a264261768280f864829afb67580ab285 | [] | no_license | Earlo/SocialJunction | 9066343c9d49cc32609ceb4f5368526090d62418 | d084b4d91bb16d55609301bbe5a10a241feb9828 | refs/heads/master | 2021-01-10T17:07:30.275362 | 2015-11-07T17:12:19 | 2015-11-07T17:12:19 | 45,706,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | from django.db import models
# Create your models here.
class Project( models.Model ):
name = models.CharField( max_length = 64 )
description = models.CharField( max_length = 2000 )
pub_date = models.DateTimeField( 'date published' )
def view(self):
return HttpResponse( description )
class... | [
"p.ollari@hotmail.com"
] | p.ollari@hotmail.com |
35d050c2f2e5360abda1d89db86a186955678f54 | a797018305f95c75bed11eecb41c6f08ada1f1d5 | /bin/enhancer.py | 7d7e67f8648a3167ee226f88b1dbcdd009d67864 | [] | no_license | Sammy-iiitb/Blog-Django | e53eaf3778d713461a1855abb7f68ece5f179d90 | c20077f2d3c5998f4303cd746923a09a436b51ee | refs/heads/master | 2021-01-10T15:31:26.995223 | 2016-01-24T17:29:23 | 2016-01-24T17:29:23 | 49,638,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | #!/home/samyak/django/django_blog/django_blog/bin/python
#
# The Python Imaging Library
# $Id$
#
# this demo script creates four windows containing an image and a slider.
# drag the slider to modify the image.
#
try:
from tkinter import Tk, Toplevel, Frame, Label, Scale, HORIZONTAL
except ImportError:
from Tki... | [
"samyak.upadhyay123@gmail.com"
] | samyak.upadhyay123@gmail.com |
ff356fa7beef1b34c3fd57715de899eab2face57 | 947c095f748492e423046e3be75418eea518b1ce | /icubam/messaging/telegram/webhook.py | 8ed293c57bd21a7220a08cb82882d2af2e50e7c2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | rth/icubam | bdfdb6e4f7bfe373b16a55d15dcdb3c9bb01ae98 | 316a0fba79360189a06e068f4b1d3d17b91f0275 | refs/heads/master | 2021-05-19T10:28:37.630480 | 2020-06-02T14:17:22 | 2020-06-02T14:17:22 | 251,650,707 | 0 | 0 | Apache-2.0 | 2020-03-31T15:42:54 | 2020-03-31T15:42:53 | null | UTF-8 | Python | false | false | 816 | py | from absl import logging
import json
import tornado.web
class TelegramWebhook(tornado.web.RequestHandler):
"""Receives updates from the telegram server directly.
See https://core.telegram.org/bots/webhooks for more details.
"""
ROUTE = '/telegram'
# Telegram hosts. See this link for more details.
# h... | [
"noreply@github.com"
] | rth.noreply@github.com |
47d928a12600d2908ebb49a41cccf973e61eee7a | b0a8c053be874a8467b0a55b4f8c66b9a235f7fd | /advanced/speech-recognition/audio-transcription.py | ba0bc9c9c1e9e028a6eee9e2c512b4355d39280c | [] | no_license | kodefoundry/FSMK-NHZ-AUG-19 | 899bb359a1a08b1127b262819cf47fdd04947273 | 8214faa253b55624a8ab20de9f4adcca79a87e2b | refs/heads/master | 2020-07-16T23:40:27.873087 | 2019-09-02T16:18:26 | 2019-09-02T16:18:26 | 205,892,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | #Python 2.x program to transcribe an Audio file
import speech_recognition as sr
# https://www.voiptroubleshooter.com/open_speech/american.html
AUDIO_FILE = ("example01.wav")
# use the audio file as the audio source
r = sr.Recognizer()
with sr.AudioFile(AUDIO_FILE) as source:
#reads the audio file. H... | [
"biju.n@outlook.com"
] | biju.n@outlook.com |
ec8ee2de8eb2ca6e8a034b1bbf561932f9db529a | ae351604046c8c8e5f637df3a4853b544ff26e21 | /DeepLearning/NeuralNet/Practice/P4.py | 8fee84023f53f0386a0918b2bb63e594fd37c190 | [] | no_license | git-chinmay/myML | 17e6735fc4f026e3f3f613d2eeed09fd3b1813f8 | 7a82499a2ad8996a8661622ec9e441420f82adde | refs/heads/master | 2022-04-29T16:25:14.473221 | 2022-03-27T16:14:59 | 2022-03-27T16:14:59 | 187,886,251 | 0 | 0 | null | 2021-10-17T06:37:18 | 2019-05-21T17:42:50 | Python | UTF-8 | Python | false | false | 1,519 | py | """
Making NN more generic with Class objects
Making batches we can run in parallel many batches using GPUs.
Input will be list of lists
We will create Multilayer Neural Network
"""
import numpy as np
# First Layer Neuron
X_input = [[1.0, 2.0, 3.0, 2.5], [2.0, 5.0, -1.0, 2.0], [-1.5, 2.7, 3.3, -0.8]]
weights1 = [[0.2... | [
"nayak.chinmay06@gmail.com"
] | nayak.chinmay06@gmail.com |
960173d66646bb039683ffef01a651b16866f98a | f39528e9bad8cfa78b38fcbb7a5b430ac0c7a942 | /Displaced_Dijets/DisplacedVerticesGeneratorFragments-CP2-2017/StopStopbarTo2Dbar2D_M_200_CTau_300um_TuneCP2_13TeV_pythia8_cff.py | 6ab0832145f8e68ef40c4dbd40c98435fce13338 | [] | no_license | isildakbora/EXO-MC-REQUESTS | c0e3eb3a49b516476d37aa464c47304df14bed1e | 8771e32bbec079de787f7e5f11407e9e7ebe35d8 | refs/heads/master | 2021-04-12T11:11:03.982564 | 2019-04-29T15:12:34 | 2019-04-29T15:12:34 | 126,622,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | M = 200
CTAU = 0.3
WIDTH = 0.0197e-11 / CTAU
SLHA_TABLE = '''
BLOCK SPINFO # Spectrum calculator information
1 Minimal # spectrum calculator
2 1.0.0 # version number
BLOCK MODSEL # Model selection
1 1 #
BLOCK MASS # Mass Spectrum
# PDG code mass particle
100... | [
"bora.isildak@cern.ch"
] | bora.isildak@cern.ch |
34dce3612693d5db0f3d33a3228ce7c042c849ee | 45bd9e10056f8f2a59374e2207eb7db5c917daa0 | /ProblemSets and Practice/自我練習/leetcode_easy/leetcodeUgly Number.py | 62f55bf5589748eff465d2c3a76dde03c08b99df | [] | no_license | thenamecouldbeLiu/YuChisPracticeandproject | bda8b00062cf06f211e1fa54e1bac8f8f4444113 | 2fe6fd6794ab793e3b1a2048943cdb1890d1adb9 | refs/heads/master | 2020-03-18T19:10:11.443992 | 2018-06-26T09:37:57 | 2018-06-26T09:37:57 | 135,138,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | # -*- coding: utf-8 -*-
"""
Write a program to check whether a given number is an ugly number.
Ugly numbers are positive numbers whose prime factors only include 2, 3, 5.
Example 1:
Input: 6
Output: true
Explanation: 6 = 2 × 3
Example 2:
Input: 8
Output: true
Explanation: 8 = 2 × 2 × 2
Example 3... | [
"noreply@github.com"
] | thenamecouldbeLiu.noreply@github.com |
87b1c30e19a5223dfb504f96c8f9ed0d32ff6828 | e7d161270fe194e9c94903fe00daf1f7c8fa9eba | /2015/Day 7/Day7_a.py | 950ce2f2752ced6a4670bebb038ca024de1c0351 | [] | no_license | way0utwest/AdventofCode | 1822e5ebfce54f620037f68928345f804e479797 | 635a41465996c3bd9aac9306f7d1886371ff756c | refs/heads/main | 2021-12-15T00:00:46.579951 | 2021-12-08T17:04:50 | 2021-12-08T17:04:50 | 47,779,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | py | import sys
import re
def check_wire(circuit, wire):
if wire not in circuit:
return 0
else:
return 1
def assign_value(circuit, wire, level):
if level.isdigit():
circuit[wire] = level
if check_wire(circuit, level):
circuit[wire] = circuit[level]
if wire == "lw" or wir... | [
"way0utwest@hotmail.com"
] | way0utwest@hotmail.com |
8cb1479f355a0bb8b1e4881449f7881be7c8cc34 | bf80659b4e754b8f5c29dc2868971ac2266ecda8 | /app/forms/quick_registration.py | b08d9e8728fc9f83add27f4aab4186569fd38707 | [
"MIT"
] | permissive | FSU-ACM-OSSG/Contest-Server-Original | ab20ff4a295695944ae517e5cfa8c64655d22c1d | f9aabd9742a6aa78cbefc685fd2760a1f83d7721 | refs/heads/master | 2020-03-19T22:05:48.928001 | 2018-06-03T04:28:42 | 2018-06-03T04:28:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | from flask_wtf import FlaskForm
from wtforms import (StringField, SubmitField,
RadioField)
from wtforms.validators import DataRequired, Length, Email, Optional
from app.models import Team
from app.util.validators import UnusedEmail
class QuickRegister(FlaskForm):
"""Quick Register
"""
... | [
"andrewsosa001@gmail.com"
] | andrewsosa001@gmail.com |
4e521a6f1615b15c17b44ed60063fd501d335c46 | dab84fed7c9edc0a187cbbc3176d924fde93fcfd | /reid/loss/label_smoothing.py | 4b14c017c3dfe2f411f6eb7bd2842752ab186aeb | [] | no_license | ShengyuPei/IICS | 5ac51764d1889560e807041f717f1b21c6c7160f | 2f199fc4d411d281880f21a5a3d750f9a12b532b | refs/heads/main | 2023-03-18T00:48:53.329896 | 2021-03-25T07:33:37 | 2021-03-25T07:33:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | import torch
import torch.nn as nn
class LabelSmoothing(nn.Module):
def __init__(self, num_classes, epsilon=0.1, use_gpu=True):
super(LabelSmoothing, self).__init__()
self.num_classes = num_classes
self.epsilon = epsilon
self.use_gpu = use_gpu
self.logsoftmax = nn.LogSoftma... | [
"464430440@qq.com"
] | 464430440@qq.com |
a9ee7d61f12f5a3a888ffc894cf58e00b42bf25f | 4c7eea9d402dbda526c880cb55339e73d783568f | /exercise/myargv.py | a8d148c193e6919aeee95cecf60255f66627ea06 | [] | no_license | kks4866/pyworks | 9dd8e9e66ba419c50e6111c42b9fb7311ce402fa | a3f599f96ae367e2cdc0da0ab9429186629f3c1c | refs/heads/master | 2023-06-28T23:54:18.640460 | 2021-07-06T04:08:52 | 2021-07-06T04:08:52 | 378,803,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | import sys
args = sys.argv[1:] #리스트형 자료
sum = 0
for i in args:
sum = sum + int(i)
print(sum)
| [
"kks4866@naver.com"
] | kks4866@naver.com |
4aa7f0ea7943f867b8bc4a456d326f81ec05fcef | 51893ecb854bdb34d982989d8df8019ca5e1a13e | /EmojTruc.py | e65cfaa8c04d96fd3bf14a879bf3b13f01ec78b7 | [] | no_license | matthieuDev/proj_ml_2-2017 | 3eb9ebf1ab48d3fbf3b22ccb1c3f0571132ab08a | 81cafd060da5411395633447f6fe433925689197 | refs/heads/master | 2021-03-24T13:06:45.656705 | 2017-12-14T10:06:58 | 2017-12-14T10:06:58 | 111,436,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | import re
import pickle
prog = re.compile("\s((?:[^\s][^\w\n]+)(?:[^\s](?:[^\w\n]+|$))+)")
emojiiTable = {}
for fn in ['train_pos.txt', 'train_neg.txt','test_data.txt']:
with open(fn) as f:
for line in f.readlines():
for result in prog.finditer(line):
g1 = result.group(1).strip(... | [
"thibault.urien@gmail.com"
] | thibault.urien@gmail.com |
be92f540b6bbb1968279bc7cf5904ec83283ad48 | a87635211b6b0d60cf3273117f62fad593849055 | /hw1/model_bcnn.py | 223549a23b4e2009ad796b73266b8e3c464454d9 | [] | no_license | lic225/ADLxMLDS2017 | 213268cbcd3bbc108c154524f0afb65099faa9a5 | a49315f205791d6b39c5f5151102437e8ee46fc2 | refs/heads/master | 2021-09-04T05:59:13.314065 | 2018-01-16T13:56:17 | 2018-01-16T13:56:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,708 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.nn.functional as F
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
from util import *
class BCNN(nn.Module):
def __init__(self,
input_size,
window_size,
po... | [
"c2251393@gmail.com"
] | c2251393@gmail.com |
aacd21af0c24741400594e5990cc47c64f721b9a | 8fa9dd1e32f8f826d7883974295088e74bd043f0 | /Python/Django/main/main/urls.py | b02ad581968677c1cb37c389d206aac9bc6e699d | [] | no_license | ILanning/DojoAssignments | 1101e282c4aec9b05c5b3aa05337e03e5a7e2e7e | d02e9e3caea540df058a90d1eec04f6aa85af041 | refs/heads/master | 2021-05-01T02:00:50.789643 | 2017-04-22T05:00:15 | 2017-04-22T05:00:15 | 79,866,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | """main URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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-based... | [
"ianclanning@gmail.com"
] | ianclanning@gmail.com |
2577366e91a6569e538202a716fa6549fcd9348c | fc890e325a6e24ba42c4d59d9f6562d749f05c2a | /Practice session/elevator_panic.py | 3d2f7e9ecd3185c3faa70a3dc457cf362494c06a | [] | no_license | ivorobey/python_gl_tasks | cf82ec474afe003fe29891144eb6978daec767d0 | 32968b4fa80a87d3fb5f828fc301f68601087ddb | refs/heads/main | 2023-02-24T22:58:01.780740 | 2021-02-02T09:34:23 | 2021-02-02T09:34:23 | 324,155,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | # There is some small building (6 floors) with a single elevator (what a shame!). It was working fine in the morning - but at noon it just stopped at the ground floor. You are to calculate few things:
# On what floor the max number of ppl left - and how many?
# Total number of ppl in the building.
# You are given with... | [
"42977616+ivorobey@users.noreply.github.com"
] | 42977616+ivorobey@users.noreply.github.com |
09d4ee42b2d961ed3179ab1a1a8a47e05bdda727 | 61267e7bb146e67d7ce5b81ef8c6fb32cdb1088e | /apps/videos/models.py | 396962b04cc5916d8ef2489fccbc86a86cca0769 | [] | no_license | xiaoyaochen/ACshare | 8f7e294724d90925f9fb80799c9fbd3680c01057 | 482985231e0e6d8632c8504a30f994ba246a060a | refs/heads/master | 2020-05-07T11:57:43.663344 | 2019-04-20T14:55:55 | 2019-04-20T14:55:55 | 180,483,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,998 | py | from django.db import models
from users.models import UserProfile
from ACshare import settings
from chunked_upload.models import ChunkedUpload
import os
from django.dispatch import receiver
# Create your models here.
class VideoInfoQuerySet(models.query.QuerySet):
def get_count(self):
return self.count()
... | [
"1595029296@qq.com"
] | 1595029296@qq.com |
f90e1b22a5f55fd94084ec3022bf51ddca67e154 | 0c28c2df37b848522876b80258676996c2977dc5 | /bsdapi/auth.py | 108dd4e95e9828e98be717dc4e4434c6a94d2bea | [
"Apache-2.0"
] | permissive | pzl/bsd-api-python | 525771acbba3520274e026662088768371a1e963 | 179568f8104cd028301596aff097d821487d5eac | refs/heads/master | 2020-03-28T02:35:08.896759 | 2018-09-05T21:24:48 | 2018-09-05T21:24:48 | 147,581,311 | 0 | 0 | null | 2018-09-05T21:25:54 | 2018-09-05T21:25:54 | null | UTF-8 | Python | false | false | 1,710 | py | import hmac
import hashlib
from time import time
# Make urllib functions compatible across python 2 and 3 with depending on `Six`
try:
from urllib.parse import urlparse, urlencode, urlunparse, parse_qsl, unquote_plus
except ImportError:
from urlparse import urlparse, urlunparse, parse_qsl
from urllib impor... | [
"b.maionedowning@gmail.com"
] | b.maionedowning@gmail.com |
460b56fa4476408b4f425a83ca737070019fd4ac | 91f82b843cf7f7ac1c074a62baed9424f0778ff7 | /code/py/movie/create_minfo.py | d6c1b1b70e2ad2b00a9a5c62d08ae8305b95ac22 | [] | no_license | zeuswang/code | 7009804c6851acf031a0aa176c03314eac682aef | d580f39acfe78fd94e73777547ddfc67591b27f7 | refs/heads/master | 2016-09-06T05:28:52.453145 | 2015-04-10T07:27:20 | 2015-04-10T07:27:20 | 19,226,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | import MySQLdb
db = MySQLdb.connect(host='localhost',user='root',passwd='fawcom',port=3306)
print "ok1"
cursor = db.cursor()
#cursor.execute('create database if not exists movie')
db.select_db('movie')
print "ok1"
cursor.execute('create table minfo(
id bigint unsigned NOT NULL AUTO_INCREMENT,
pic_url varchar(100) char... | [
"zeuswoody@qq.com"
] | zeuswoody@qq.com |
d9fbceb126ecae251fe2450a7ecd473f99ce5aaf | e07f6fc8189c41d46ac0a6a88c84a468eded855f | /day07/ReadFile_Salary2..py | a801fd5fb512f73390ae51b3c6b883bd6e241d50 | [] | no_license | keepmyfavor/yzu_python | 4919b2610fd1b50324409fe2d75f0148787432cd | 3409e99970e0207b7bb5c90fe4bc045ec470a948 | refs/heads/master | 2023-05-31T21:01:09.667188 | 2021-06-09T13:44:36 | 2021-06-09T13:44:36 | 360,127,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | file = open("salary.txt", "r", encoding="UTF-8")
rows = file.readlines()
# 進行資料結構化的整理
# [ {"name": John, "salary": 45000} ......]
employees = []
for row in rows:
data = row.split(",")
name = data[0] # 員工姓名
salary = int(data[1].strip("\n")) # 員工薪水
employee = {"name": name, "salary": salary} # 字典格式
... | [
"keepmyfavor@gmail.com"
] | keepmyfavor@gmail.com |
38d273d5e176288fa581d6d18b9971a6ec4e2394 | ea9d6f31572f1247d6de64e7d22b9b4586dd769c | /P25_spark.py | 4b14c62d97863e0e92a2b059ccd81bce49333e31 | [] | no_license | venuscaitwxj/hello | 72d9094631201fedb79f36294a9a484b36757251 | 507ce6606a095318f9699fbbe8c40837aaa38247 | refs/heads/main | 2023-04-19T01:56:54.914362 | 2021-05-07T14:24:58 | 2021-05-07T14:24:58 | 349,680,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from pyspark import SparkConf, SparkContext
from pyspark.sql import SparkSession
from pyspark.sql.types import DoubleType, IntegerType, StringType,FloatType
from pyspark.sql import functions as F
spark = SparkSession.builder.appName("Astro").master('local').getOrCreate()
# read csv file
df = spark.read.csv("Meteorit... | [
"noreply@github.com"
] | venuscaitwxj.noreply@github.com |
0e3ab4491b70e1aacee06ced32c9ac3dd023c694 | b6d87c9ba4566305435aa9c694a67f4841596387 | /FullGAN/train.py | e46173654abb63cc6297407387d829bf5644fa83 | [] | no_license | Jcduhdt/GAN_TF_Keras | 8852859b0797862b282d3dec2f6bad0d055afa90 | df8c17671a67b031633b45ea272e568f48c45886 | refs/heads/master | 2021-02-15T21:40:20.393151 | 2020-03-10T12:25:25 | 2020-03-10T12:25:25 | 244,934,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,987 | py | #!/usr/bin/env python3
from FullGAN.gan import GAN
from FullGAN.generator import Generator
from FullGAN.discriminator import Discriminator
# 是从网站上下载数据集到.keras/dataset目录下读取,若该路径有就不下载了
# 下载的是mnist.npz文件,在百度云有
from keras.datasets import mnist
from random import randint
import numpy as np
import matplotlib.pyplot as plt
... | [
"15150651313@126.com"
] | 15150651313@126.com |
10ec88aa9a97120a6c952b0b6a3798eb5b2ecf63 | b8e77c1cf2cdb7054f705cc91bf60822506d0b00 | /django_cron/management/commands/cronjobs.py | 14350c13c9ccdd5e6ecda770d3c03f7552567b58 | [
"MIT"
] | permissive | radiosilence/django-cron | a307cdfbf05eeac3f4796d71e4f6a421cd7020d9 | 9ddc9d7245f5d344540bfa4e730fa463b90bf50d | refs/heads/master | 2021-01-18T08:58:16.265283 | 2012-01-24T00:01:24 | 2012-01-24T00:01:24 | 3,249,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | #
# run the cron service (intended to be executed from a cron job)
#
# usage: manage.py cronjobs
from django.conf import settings
from django.core.management.base import NoArgsCommand
import django_cron
class Command(NoArgsCommand):
help = "run the cron services (intended to be executed from a cron job)"
def... | [
"andy@andybak.net"
] | andy@andybak.net |
8c6576c41174c9dbbcd64f88b98882c4aca35040 | b5f3ab11f45e3755f0b93a28e39581e7c9d33dec | /AtCoder/BeginnerContest126/myans/b.py | 6b0fac340e70e3dfc9963b70c5db687d6389d20b | [
"MIT"
] | permissive | scnsh/CompetitiveProgramming | 9c741a61df6b244995481918daca0fb167e888e2 | 3f08b4719ffe9511cba6d1ba7909f1899def702b | refs/heads/master | 2020-06-29T09:44:36.203894 | 2020-02-21T12:36:37 | 2020-02-21T12:36:37 | 200,502,261 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | s = input()
a = int(s[:2])
b = int(s[2:])
is_MMxx = is_xxMM = False
if 13 > a > 0:
is_MMxx = True
if 13 > b > 0:
is_xxMM = True
if is_MMxx and is_xxMM:
print("AMBIGUOUS")
elif is_MMxx:
print("MMYY")
elif is_xxMM:
print("YYMM")
else:
print("NA")
| [
"naoki.numaguchi@groove-x.com"
] | naoki.numaguchi@groove-x.com |
4ec21980309f7fd20ce9e7e3ee82e9782f658fff | d5e4b47df1fb93b0f50e745ece6dd8adb357bf8b | /estacioMedioambientalApp/apps.py | 3a58fbb194bbbbfa35930dbd6707cafd6b7e6682 | [] | no_license | HaDoCk-wq/API | c6a7e386b78febd85ffdbc5a2b6872c9ea92d88a | e7d27746009ada16b2471b83479534450ecd121d | refs/heads/master | 2023-05-03T15:24:56.303383 | 2021-05-11T11:11:14 | 2021-05-11T11:11:14 | 365,796,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from django.apps import AppConfig
class EstaciomedioambientalappConfig(AppConfig):
name = 'estacioMedioambientalApp'
| [
"arnaucosta23@gmail.com"
] | arnaucosta23@gmail.com |
adba94cf9fba29fa787eb442581e42f617171e8d | 65f69e33490035224d8136d9093dc4c75b9924a0 | /opnfv_testapi/tests/unit/handlers/test_pod.py | 28185131f98381d2b8eda613042fcce970edb0dd | [] | no_license | SerenaFeng/testapi | 699a719bb6e5e945e004d61fdbaf459220856e48 | a828dbb290658739ea537f71aad67668d5b361d1 | refs/heads/master | 2021-05-11T04:47:03.491728 | 2018-01-24T09:37:53 | 2018-01-24T09:37:53 | 101,381,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,528 | py | ##############################################################################
# Copyright (c) 2016 ZTE Corporation
# feng.xiaowei@zte.com.cn
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, ... | [
"feng.xiaowei@zte.com.cn"
] | feng.xiaowei@zte.com.cn |
c2a197ea72a0a7ecc9e3d5d77c97281427c01913 | 98f0b4edce2cc250aa5a544b7736d0287ad339a2 | /manage.py | b9a292afd158c8ae58166c5ac0081d667f32a2f0 | [] | no_license | DasomJung24/Brandi_project_with_Django | 86e0493a5ff314ae9bddaeabf1058acd81079282 | 7e7513c20b9051aa242759c8ba69894a2bdc2fcb | refs/heads/master | 2023-01-21T11:59:37.941347 | 2020-12-06T13:50:36 | 2020-12-06T13:50:36 | 314,373,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'brandi_project_django.settings')
try:
from django.core.management import execute_from_command_line
... | [
"jeongdasom6@gmail.com"
] | jeongdasom6@gmail.com |
74b96ff68558c9e5895d9ae644a0f324cac54446 | 62b183cd98a22950e95e0968295970b1bf093034 | /website_sale_request_invoice/__init__.py | 757a36c609f76a63b6b802898d0f7e4aa1af537b | [] | no_license | dbertha/odoo-addons | c0bb926cbfafa003d1afd75d2190d51d8def187f | 3681cbad05d5748198318fc1774be77b5f6b420e | refs/heads/master | 2020-12-24T08:31:14.970208 | 2017-03-17T18:51:53 | 2017-03-17T18:51:53 | 31,593,425 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | # -*- coding: utf-8 -*-
import models, controllers
| [
"dbertha@ulb.ac.be"
] | dbertha@ulb.ac.be |
1179594e202410df5cc796d5a05f2b4b7c7863ee | 72a9252951271373f66c5684344f0d5dff9565be | /知乎/zhi_Spider/BINSHAN/db.py | c8ca73059fc24c3671a323b3d1ffa82a336761e2 | [] | no_license | wudangqibujie/Spider_Project | 7b43c9e3ca8d9f73d6a6e25d5574658838152acc | 08beae178f269743afca0e5d91e1ad6a79464047 | refs/heads/master | 2020-03-21T22:11:41.635169 | 2018-07-03T03:12:47 | 2018-07-03T03:12:47 | 139,110,189 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | from settings import *
import pymongo
class Mon(object):
def __init__(self):
self.client = pymongo.MongoClient(MONGO_HOST,MONGO_PORT)
self.db = self.client[MONGO_DB_NAME]
def insert(self,coll_name,data):
self.db[coll_name].insert(data)
def data_find(self,coll_name):
... | [
"noreply@github.com"
] | wudangqibujie.noreply@github.com |
4d9ed9bf4e2a72e7180dfe4e26937a7e04a99205 | 9716f646c5343567d8d14b094e0b3f3f8ef76c50 | /middlewares/middlewares.py | d00ba291922034075241a24f85b522b1f9334524 | [] | no_license | anilsahu52642/django-basic | 484d96f3fd140dad4ce58fbeec8bfbf93fe7496d | 1a5aaacb080e81bed05e43425deddb322d85f4de | refs/heads/master | 2023-06-14T00:42:10.862332 | 2021-06-22T16:00:24 | 2021-06-22T16:00:24 | 379,326,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,563 | py | from django.shortcuts import HttpResponse
##############for function badsed middleware....................
##########after writing below code we have to register them inside settings.py file-middlewares
##########the middleware which is not required just go to settings.py-middlewares and commment
def mymiddleware1(ge... | [
"anil.sipun52642@gmail.com"
] | anil.sipun52642@gmail.com |
63a077933a86c9e7f0c67d713b3448ec7c9fcccc | b27eaf39f16d1359f69f36f25cabf05847a18781 | /todo/migrations/0001_initial.py | 8e66b03002ef690017afbd5f593775d37a18025a | [] | no_license | rayrenz/Todo-List | ad174b3759e894e4c60e89543563759178594587 | a1e51600dd147619ab014e63ca83cfb1cf1bab5c | refs/heads/master | 2020-04-12T23:51:36.296478 | 2018-12-26T04:13:51 | 2018-12-26T04:13:51 | 162,832,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # Generated by Django 2.1.4 on 2018-12-22 15:13
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id', models.AutoField(aut... | [
"rayrenz_09@yahoo.com"
] | rayrenz_09@yahoo.com |
979f3fac4644daae85482a92c1d60fcd6c889c1d | bf2d3abed5875a4ff4e64040e6f195b11254c286 | /Week 1 Assn/Project 2/2-1.py | 34749645333d4e379cfe62ddedbffb58152306d4 | [] | no_license | Littlemansmg/pyClass | 9eadec1e019a3cd6ccf1a8f81d267039804938c9 | 7f17ff2b40a865796529080085ecf11885c72376 | refs/heads/master | 2020-08-29T07:02:25.386098 | 2019-12-15T22:34:13 | 2019-12-15T22:34:13 | 217,961,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py |
print("Registration Form")
f_name = input("First Name: ")
l_name = input("Last Name: ")
b_year = input("Birth Year: ")
pswd = f_name + "*" + b_year
print("\nWelcome %s %s!" % (f_name, l_name))
print("Your registration is complete")
print("Your temporary password is: %s" % pswd)
| [
"littlemansmg@gmail.com"
] | littlemansmg@gmail.com |
ec17857128c6f96dd9883c0eb64fc311388027c6 | 7ef53269ce5e4bcb3d7a002a92520e0a96f24377 | /backend/home/migrations/0002_load_initial_data.py | a92e4ec992a042f04d90321369507a38a3044ff3 | [] | no_license | andremcb/icy-paper-19597 | f7a8971c61390be9e0ecaa44b27feefa9399962f | 1ab03ef09bb5ceef0fb90a3c37ea18c9b0cc717f | refs/heads/master | 2023-03-23T06:12:53.130547 | 2021-03-12T23:07:33 | 2021-03-12T23:07:33 | 347,220,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Icy Paper"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"csantos.machado@gmail.com"
] | csantos.machado@gmail.com |
863cc9d635e51bcdf07dc8c92369dddac3ad16cb | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_05_31/operations/_time_series_database_connections_operations.py | f5b466a3c6101cfaee5342c15d476769af7491ff | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 29,175 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
14d0a3eb36ede4f57355b53e8675474ff624c2b8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02663/s270893737.py | 0e407da5c73554e2845ac3ce57620af88e88d312 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | def Int():
return int(input())
def Ints():
return map(int,input().split())
def IntList():
return list(Ints())
def IntMat(N):
return [IntList() for i in range(N)]
import sys
sys.setrecursionlimit(4100000)
rl = sys.stdin.readline
H1,M1,H2,M2,K = Ints()
S = (H2-H1)*60+(M2-M1)
print(S-K) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d9838cf78cc10823f4cc67117d8c800940021819 | 5a25c3311d374b6d1e783316340dddaeacea0df2 | /LC994 Rotting Oranges.py | d7655e573df6f810b19d7212f43d0661f1f92474 | [] | no_license | oustella/coding-exercises | 3444691f56eb0ccdefa3947082ded7de967acf46 | 2cc17784be2cd3755dd19a8764f1447b86f0a6c0 | refs/heads/master | 2022-06-05T17:21:07.474422 | 2022-05-06T18:10:43 | 2022-05-06T18:10:43 | 216,883,492 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,365 | py | from collections import deque
from typing import List
# You are given an m x n grid where each cell can have one of three values:
# 0 representing an empty cell,
# 1 representing a fresh orange, or
# 2 representing a rotten orange.
# Every minute, any fresh orange that is 4-directionally adjacent to a ro... | [
"oustella@gmail.com"
] | oustella@gmail.com |
0bf3f8859c7782f22606b4bf3c58ab6de8a17c1d | 1903aa0028dd91a128f1630c6eb9a1f3467ed951 | /update_constraints.py | 21084617ca0f2cda487b66613cfe2f5e3bac850a | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-2-Clause"
] | permissive | icemac/icemac.addressbook | a5ae04feb2b2fb1f0ecc7bf3e60b1666f5bfedd8 | 6197e6e01da922feb100dd0943576523050cd703 | refs/heads/master | 2021-01-03T12:44:08.365040 | 2020-08-06T06:50:51 | 2020-08-06T06:51:05 | 242,137,124 | 2 | 0 | BSD-2-Clause | 2020-04-12T07:41:02 | 2020-02-21T12:43:45 | Python | UTF-8 | Python | false | false | 1,003 | py | """Adapted from https://github.com/zopefoundation/Zope/blob/4aadecc/util.py."""
import os
try:
from configparser import RawConfigParser
except ImportError:
from ConfigParser import RawConfigParser
HERE = os.path.abspath(os.path.dirname(__file__))
class CaseSensitiveParser(RawConfigParser):
def optionxf... | [
"mh@gocept.com"
] | mh@gocept.com |
fcfa3a68aa4b60cf88f0e9c4ed9a098a0198218e | 32e9fa17e1998ce26c71ba4985e31b4ceaf3b057 | /gru.py | fcf57fce8452ce455240e75ffbfbb56c56957134 | [] | no_license | rudolfsteiner/NER | 3e7c40f5d0952da5ed295424f173d7c32099e076 | b5b4aa8faf04ffc35504d4899c474d552c5832d0 | refs/heads/master | 2021-04-26T22:27:40.547048 | 2018-03-06T15:48:21 | 2018-03-06T15:48:21 | 124,095,381 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,625 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Grooving with GRUs
"""
from __future__ import absolute_import
from __future__ import division
import argparse
import logging
import sys
import time
from datetime import datetime
import tensorflow as tf
import numpy as np
import matplotlib
import matplotlib.pyplot a... | [
"tigerfei@gmail.com"
] | tigerfei@gmail.com |
3df2cab0feb39a85c0ddd370b6c2dc5406397b53 | 4dee65b6333987d9fc88dca3f467e5025f30ce1c | /active_learners/actLearn_cat.py | 5d945ab9325dad4e64cdc93882cf2d1fe8fd64c9 | [] | no_license | murphygroup/BioActive | a5e6f7778010db89807f503eff2c91f2bbbee146 | 4006f87aebbfcb89e6b64c6eac555e52bcc4c3ec | refs/heads/main | 2023-08-17T02:07:29.146271 | 2021-09-12T15:51:08 | 2021-09-12T15:51:08 | 369,315,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,993 | py | # actLearn_cat is an active learner for categorical variable modeling campaigns
# Active learners select experiments corresponding to the least confident
# predictions as determined during modeling
# This active learner samples randomly from the least confident predictions and
# when the modeler provides mutual informa... | [
"murphy@Roberts-MacBook-Air.local"
] | murphy@Roberts-MacBook-Air.local |
f4d1bb69ecc33ba5d73239a4d0b9356b34fc923f | 277ca6cad1b590fd84ac3823fceff9f43bae1ba6 | /main/stepwise/migrations/0006_auto_20170223_0951.py | 364284d6ceab3d7d51f56987e4ab26da42bf8149 | [] | no_license | tarstarkes/Icarus | 379dd65b448829f4202b7245992d0d055bf0dbe1 | 72df5a786cbe0320d536320eee210466cdd24885 | refs/heads/master | 2021-01-11T04:50:49.916904 | 2017-07-24T15:21:02 | 2017-07-24T15:21:02 | 69,485,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-02-23 17:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stepwise', '0005_auto_20170223_0950'),
]
operations = [
migrations.AlterFie... | [
"tarstarkes@hotmail.com"
] | tarstarkes@hotmail.com |
43b14973959d77f6a480dd9cd8e73135f7225d3d | 594291420c4c72257663b1c1ff6722997d4e7f36 | /Research Process/Histogram.py | a78abe0ef3ec6f6fc7a8fe7f33a02255f05523c1 | [] | no_license | hodayamar/VQA-of-CT-and-MRI-in-deep-learning | 113e669c005e4671d9887b11a1bf17d55750d107 | 39dc4acc3103cb3870e37a14fb132e46c731d203 | refs/heads/master | 2020-04-15T13:45:23.975798 | 2018-09-06T10:59:55 | 2018-09-06T10:59:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,330 | py | """
Initial analysis of MRI / CT image type
Using an average histogram
(Only for questions that do not include MRI / CT)
"""
import pandas as pd
import cv2
from cv2 import *
import numpy as np
from scipy.stats import wasserstein_distance
from matplotlib import pyplot as plt
import matplotlib.pyplot as plt
from matplo... | [
"shoamc98@gmail.com"
] | shoamc98@gmail.com |
e6563c9b03dcc1e9e4aca2e14c965a96cdde4876 | 2b517042b066433d4c77eb8bd2f22088387693d5 | /histimodel_test.py | 1a99b8b53bd9cbb997f75d39d77a6862e8e710e0 | [] | no_license | matthewfeickert/Histimator | 0179de081ebbd83d61a3e70a86cfdd2ae08ff63e | 96c772190ea516ebbc5c2085266ce744f8b08eeb | refs/heads/master | 2021-05-10T22:30:28.053803 | 2018-01-18T00:16:17 | 2018-01-18T00:16:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | from histimator.Models import HistiModel
from matplotlib import pyplot as plt
testModel = HistiModel("test model")
data = [11.,12.,14.,17.,14.,12.,11.]
flat_background = [10,10,10,10,10,10,10]
peak = [2.,4.,8.,14.,8.,4.,2.]
testModel.SetData(data)
bkg = testModel.Sample("background")
bkg.SetHisto(flat_background)
test... | [
"vincent.croft@cern.ch"
] | vincent.croft@cern.ch |
758f506e0bbf2832a5a031b9480ca5e636a639a4 | 218bb5f934e1ebd76c6c509d6ee2cf2a2583e423 | /train.py | 6b8c6ba1b009dac5ee25d6a661ed4eaf900122d5 | [] | no_license | liu6zijian/tianchi_cervial | 681fe2b2e6e70dbcd4674694c20fa5f3ad8bf9ad | b52d27b3ff73e735f6a4e6b9ccbab652669c8983 | refs/heads/master | 2022-03-22T09:12:24.753954 | 2019-11-20T11:42:48 | 2019-11-20T11:42:48 | 222,922,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,514 | py | import time
import os
import cv2
import copy
import argparse
import pdb
import collections
import sys
import numpy as np
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
import torch.optim as optim
from torch.optim import lr_scheduler
from torch.autograd import Variable
from torchvision import datase... | [
"liuzijianupc@sina.cn"
] | liuzijianupc@sina.cn |
51f22f2cfde4b66eebc7bc8e8775ab4cd09c7e51 | 1efe6410f6c0133205d7b25b67db4e7e354c46ec | /workflow/rules/dupradar.smk | fca56c24ef7a3e73994c32dfffa964bb00957f30 | [
"MIT"
] | permissive | jma1991/rnaseq | ae2f1532ba969550b904cfb20e375dce4e206fe5 | d29cbfab964452e900270804239a66e6ed1a202a | refs/heads/master | 2023-06-23T07:04:46.934032 | 2021-07-11T15:10:10 | 2021-07-11T15:10:10 | 81,578,849 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | smk | # Author: James Ashmore
# Copyright: Copyright 2020, James Ashmore
# Email: jashmore@ed.ac.uk
# License: MIT
def dupradar_params_stranded(wildcards):
k = project.samples.loc[project.samples["sample"] == wildcards.sample, "stranded"].item()
d = {"U": 0, "F": 1, "R": 2}
v = d.get(k)
return v
def du... | [
"s1437643@sms.ed.ac.uk"
] | s1437643@sms.ed.ac.uk |
08da7c5c0829fd42855b5ac52dac1122db364fe1 | ee7fe208bc614d9c600ab535630192f01496c8db | /lib/NCEAverage.py | fb7f45fdd9bb1b96cda8bfa8f27a37737cb909f3 | [] | no_license | sforsyth6/lemniscate-original | 503ca5d1cc3862aa760f7c7ded78381c205ad707 | 4cacef8ad6a1af27b31941eba9c3ffcd01c4c0fa | refs/heads/master | 2021-03-05T16:47:30.662974 | 2020-11-10T18:04:47 | 2020-11-10T18:04:47 | 246,135,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,004 | py | import torch
from torch.autograd import Function
from torch import nn
from .alias_multinomial import AliasMethod
import math
class NCEFunction(Function):
@staticmethod
def forward(self, x, y, memory, idx, params):
K = int(params[0].item())
T = params[1].item()
Z = params[2].item()
... | [
"steven"
] | steven |
e47c7b5ee077a1c059d4aeaf81b1728e43308d17 | cceaa20ff1c8eb5eb0f5114858fd6ad2e8143129 | /scraping.py | 8c4efe552f1094b1f304a3fff9e4624177ed1c33 | [] | no_license | NCarr2021/Mission-to-Mars | 49ab6c0d36dea842151083da7c22d4d0544c5420 | f669701fe3b537287f82e683e6d4825f09c7a6c9 | refs/heads/main | 2023-04-02T07:30:59.836022 | 2021-04-12T03:34:19 | 2021-04-12T03:34:19 | 352,853,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,250 | py | # Import Splinter, BeautifulSoup, and Pandas
from splinter import Browser
from bs4 import BeautifulSoup as soup
import pandas as pd
import datetime as dt
import time
from webdriver_manager.chrome import ChromeDriverManager
def scrape_all():
# Initiate headless driver for deployment
executable_path = {'executa... | [
"77760936+NCarr2021@users.noreply.github.com"
] | 77760936+NCarr2021@users.noreply.github.com |
9a16597fd1d52b913e1b8ac76edee8bfcc2ffdb0 | 9758fa6d66df1121ff9e0b4a7da511653bc53cf1 | /Store/migrations/0015_auto_20190831_1807.py | 6eb4ef39296d595ca30aac8e88963aa2b68bb4ce | [] | no_license | hdforoozan/Restaurant-project | 179fb4138cb92bfd7716671c3b1e8b1949bfbaff | 2ab096cbc3ee20557b57ed97bd0d5556c5965e87 | refs/heads/master | 2020-06-12T08:50:03.067740 | 2019-09-17T18:48:43 | 2019-09-17T18:48:43 | 194,250,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | # Generated by Django 2.2.2 on 2019-08-31 13:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Store', '0014_auto_20190831_1803'),
]
operations = [
migrations.AlterField(
model_name='employee',
name='education_d... | [
"hdforoozan@gmail.com"
] | hdforoozan@gmail.com |
9fb550e8baf81dfa858fa76c2800a70e4f5424ae | e9adbc20c819d653072df0c4bf89fd41d2a3eb94 | /reverseLinkedListII.py | 551fc7991b3fcb3885ca123189b14f024006a0be | [] | no_license | peinanteng/leetcode | 75c7ce1cbe2fa30ed3333dfc7830a7ae1e586d08 | 0e10a40921d9fa5ca8c53859e4b17bcb62ee899a | refs/heads/master | 2021-09-11T01:48:30.647583 | 2018-04-05T02:55:57 | 2018-04-05T02:55:57 | 108,075,018 | 0 | 0 | null | 2018-04-03T03:02:23 | 2017-10-24T04:03:42 | Python | UTF-8 | Python | false | false | 1,100 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def reverseBetween(self, head, m, n):
"""
:type head: ListNode
:type m: int
:type n: int
:rtype: ListNode
... | [
"tengpn@gmail.com"
] | tengpn@gmail.com |
29f6a5e6c707b50fa204e5872355a00b3c45bc59 | 92ec02323de4b3d1f9f8fea0afe231b3a6728cac | /Examinationsuppgift/web.py | 3c04fa6137d6b69407777751d9193e7d407898c4 | [] | no_license | abbindustrigymnasium/python-kompendium-abblinkas | 8d579e4f65db5cbbb56a0c24aa24ab50fce4f864 | 6a7c5336236c802cc3c9f3a8ac5d1535f974c9bc | refs/heads/master | 2020-05-04T12:08:02.926168 | 2019-05-31T15:15:12 | 2019-05-31T15:15:12 | 179,121,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | import requests #importerar bibliteket requests
def get(url): #en funktion som ska ge ut svaret i apiet för respektive url man har som argument
APIresponse = requests.get(url).json()
return APIresponse #returnerar svaret, detta görs för att man kan sätta en variabel som är lika med funktionen | [
"43879956+abblinkas@users.noreply.github.com"
] | 43879956+abblinkas@users.noreply.github.com |
7674719110417ad88bdb4f436c63bee32394cd67 | 205dd5dd6f18cd1dab8692878e15d8a435275805 | /program_train/hachina4.py | e93c737dedbcf7f0290349405fe5910883f1edfa | [
"Apache-2.0"
] | permissive | zhujisheng/HAComponent | cbfb329d6fadb08f0c87b21d9e6e00345218e505 | 88284c58de6e768b07fffa169098e99c3439c644 | refs/heads/master | 2022-12-06T09:58:48.679445 | 2022-11-14T06:48:05 | 2022-11-14T06:48:05 | 106,886,969 | 43 | 33 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | """
文件名 hachina.py.
演示程序,读取配置文件的内容.
"""
import logging
# 引入这两个库,用于配置文件格式校验
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
DOMAIN = "hachina"
ENTITYID = DOMAIN + ".hello_world"
# 预定义配置文件中的key值
CONF_NAME_TOBE_DISPLAYED = "name_tobe_displayed"
CONF_SLOGON = "slogon"
# ... | [
"noreply@github.com"
] | zhujisheng.noreply@github.com |
219904101eac4e58282c9638fcd61e508bd16dd8 | 9c4d2426a85b8af8ad6b2cfd44948283c3c00cf4 | /testgen.py | 86d0c1b8c746b9ca87fbf6ac6ee4080acdbe79d5 | [
"MIT"
] | permissive | cz172638/l5x2c | 7911dc07b54e4876ca59004f56b6d3cd6da3c6e2 | 30de91efa221081c7ddbbc3ee9ac36fcf1f33b43 | refs/heads/master | 2022-01-21T14:51:42.751111 | 2019-07-29T17:26:07 | 2019-07-29T17:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,299 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
################################################################################
# Copyright (c) 2019 Alair Dias Junior
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to de... | [
"alair.junior@gmail.com"
] | alair.junior@gmail.com |
2d633eb9b730b99bb7f354ad58cb58d0e6dfef4b | c82a06ee7e099b091f1d7319d3c91e337c1dc5ee | /7_Reverse Integer.py | 3451c56afccb641cc41ed812aaa7e2de4d3dd416 | [] | no_license | KamyC/LeetCode | be04387bb4981baee13dbe6a615ac58ce6fe33fb | ddaba63d15bccdb44ce0875d58dfd52e42decbef | refs/heads/master | 2020-04-16T22:53:47.220730 | 2019-03-08T08:04:57 | 2019-03-08T08:04:57 | 165,988,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | # Given a 32-bit signed integer, reverse digits of an integer.
#
# Example 1:
#
# Input: 123
# Output: 321
# Example 2:
#
# Input: -123
# Output: -321
# Example 3:
#
# Input: 120
# Output: 21
# Note:
# Assume we are dealing with an environment which could only store integers within the 32-bit signed inte... | [
"noreply@github.com"
] | KamyC.noreply@github.com |
3e35baf484eec55101ebaa8091a5cd66df716f68 | 2303dabcca346e60ba76f8ed38fcdb0823d6a7e3 | /MyFirstProgram/Catchphrase.py | 11b71df79b9261d632d4c9d5895f7bf7da2e6c59 | [] | no_license | j0shyua/iDTech_Programming_Labs_101 | 8828576291ba70408ed71f912cf4909138366703 | b2e488b4fc1a87cc5013b0c616efc0567a47e609 | refs/heads/master | 2021-01-11T16:56:44.983194 | 2017-02-19T22:56:37 | 2017-02-19T22:56:37 | 79,700,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | print ("Choose one of the following: The Donald, The Soup Nazi, Julia Child")
userInput = input ("Choose a character")
if userInput == "The Donald":
print ("HUGE HUGE HUGE HUGE WE'RE GOING TO BUILD A WALL YOU'RE FIRED HUGE HUGE")
if userInput == "The Soup Nazi":
print ("No soup for you!")
if userInp... | [
"noreply@github.com"
] | j0shyua.noreply@github.com |
0273fecbc48610b2a22951c200df07824981b5a5 | 44f084b48daf7118d9b10c6df80faa52a09c9074 | /project/urls.py | 1e073b76628100d5dc4bb7a81f170a8995a8af9d | [] | no_license | Wen-Wen-Columbia/Squirrel_Tracker | 7fc55339fa86ccf846dea5fba595186cd9347190 | 3a39a38a896c94bc5a68e7612e9baabda00f45b5 | refs/heads/master | 2023-04-11T00:04:11.857053 | 2021-04-15T15:37:11 | 2021-04-15T15:37:11 | 357,471,179 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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')
Class-based... | [
"ww2573@columbia.edu"
] | ww2573@columbia.edu |
b8a3be42353db1b6fb15137d2b21d711e46aca09 | 003151195cdbea2cccbfe1d08e04f0eff5446a7b | /pages/__init__.py | 0f114d6f9316d04027db93272a58cd82f43ea458 | [] | no_license | doughagey/soccer-analytics_os | 198ebbe90dfaba5889e32a27889a3bc563c32c79 | 3c169b152cbccf28e4fc66880ca55066324aa31c | refs/heads/master | 2023-03-03T11:43:10.487569 | 2021-02-10T15:03:19 | 2021-02-10T15:03:19 | 337,759,025 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | from .import home
from .import archive
from .import snapshot
| [
"douglas.hagey@gmail.com"
] | douglas.hagey@gmail.com |
8652007449a4a6d6723587c87267379f02cbf808 | ed4123102ac4a96d7d649a0c8871a69ecafde1d7 | /lib/bitwise.py | 566773ba9ab47ccc551cd469ce2abc0f70b3da0e | [] | no_license | aleksejs-fomins/bio-machine-learning | 07f88052e5cdd04943aad459667713ce261a98cd | 0dda7c6681ab5f6b9b2b17c5944cad3664b6bf3f | refs/heads/master | 2023-03-04T12:29:30.425887 | 2023-02-07T08:34:53 | 2023-02-07T08:34:53 | 211,850,531 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | import numpy as np
# Flip the i-th bit of integer a
def bitflip(a, i):
pos = 2**i
return a-pos if a&pos else a+pos
# Convert an integer to a list of bits
def bitlist(num, nbit):
return [int(bool(num & (1 << idx))) for idx in range(nbit)]
def bitlist2activation(lst):
return np.array([1 if bit == 1 els... | [
"aleksejs.fomins@uzh.ch"
] | aleksejs.fomins@uzh.ch |
3a44395ef84ceff2726f89aa0601b5d039f4879c | b49b993e6f19512ccc0441d43467a6a10ccbb562 | /app.py | 8f2140630968321296c185ac36c6954ea98bb227 | [] | no_license | incomparable1142/Boom | a63126bdb3cece4f9235e90a89f169b1a1590414 | 42d05a73736354b07404c7e6bb81af72706c2049 | refs/heads/master | 2021-09-04T02:00:20.861233 | 2018-01-14T10:47:01 | 2018-01-14T10:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,555 | py | import os
from flask import Flask, render_template, request, redirect, \
url_for, session, logging, flash
from flask_sqlalchemy import SQLAlchemy
from flask_bootstrap import Bootstrap
from flask_wtf import FlaskForm
from wtforms import Form, TextField, StringField, TextAreaField, PasswordField, \
BooleanField, Select... | [
"bitflyhr@gmail.com"
] | bitflyhr@gmail.com |
9a8edd1b026da9c9ff436b52652262fb6783aa08 | 4c10ce6f484020c60ceb91fb20a2340dd0a72922 | /algorithms/_396_rotate_function.py | df19876e17da1db105f44d2a5f3f781cd65c4652 | [] | no_license | qiao-zhang/leetcode_problems | e0472f1cbb4ab4b60bb489dfa775cb5ed39cf788 | cb342573d4129ca598d2472de4b9e1444a91b52f | refs/heads/master | 2020-06-05T07:28:56.306413 | 2016-09-25T22:39:31 | 2016-09-25T22:39:31 | 30,634,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | class Solution(object):
def maxRotateFunction(self, A):
"""
:type A: List[int]
:rtype: int
"""
if not A: return 0
s = sum(i * n for i, n in enumerate(A))
t, mx = sum(A), s
for i in range(len(A)-1, 0, -1):
s += t - A[i] * len(A)
... | [
"qiao.zhang.2015@gmail.com"
] | qiao.zhang.2015@gmail.com |
e3d5e2d6bd853c4f74d2acc6be9c45639d9428c8 | effdcfa3a98477226aa02de7a2e589bff8adfa56 | /3_STL/222score.py | 511c1d7da9487a38c89d3019058e68aed75f48d6 | [] | no_license | WUT-IDEA/Y2019_WWJ_Graduation_Design_Code | 5817ceee8919355cc63262a629087c323b970c17 | 23e15f6156d5cf8552a9d913bb48eb675ef8e3c5 | refs/heads/master | 2020-05-27T22:28:48.021213 | 2019-05-27T09:18:04 | 2019-05-27T09:18:04 | 188,805,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import math
def plot(pre,actual):
plt.title('arima')
plt.rcParams['font.sans-serif'] = ['SimHei'] # 步骤一(替换sans-serif字体
plt.rcParams['axes.unicode_minus'] = False # 步骤二(解决坐标轴负数的负号显示问题)
plt.plot(actual, linewidth=1, label='... | [
"zhengyunpei@zhengyunpeideMacBook-Pro.local"
] | zhengyunpei@zhengyunpeideMacBook-Pro.local |
cf8e3f0a090b67429481d99c599aeca6840872b6 | 0c5800bec9b8f5191ec865edd3450540a5067466 | /test/functional/feature_part_treasury_fund.py | 3d019166ce03133175c0020ca0fb69806a049da8 | [
"MIT"
] | permissive | TheQuantumPhysicist/ghost-core | 2d5f1998e850312a5d63b2a702bc6077629d6412 | e2b833cacd54d4e2a968cbacc6a9a3910c9fe26b | refs/heads/0.21 | 2023-07-14T05:48:40.582865 | 2021-08-16T08:06:28 | 2021-08-16T08:06:28 | 396,835,556 | 0 | 1 | MIT | 2021-08-19T03:12:29 | 2021-08-16T14:40:24 | null | UTF-8 | Python | false | false | 5,622 | py | #!/usr/bin/env python3
# Copyright (c) 2020 tecnovert
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_particl import ParticlTestFramework
from test_framework.messages import COIN
class TreasuryFundTest(P... | [
"tecnovert@tecnovert.net"
] | tecnovert@tecnovert.net |
d6b4ec7bac09aa98c7bb25414c0dc3e59ab80cba | 639f5a94536f28b78e985ebf999e0c27738c8351 | /Face_3D_Models/face_3d/symbol/__init__.py | 8b0606f4b6efa0f1e10e088cd4144a68a779f677 | [] | no_license | pharish93/FaceDetection | 1a974d6967374f08999bb0e8ff7b8cabe0620ac4 | 0c1bd057fcfe155936241287f876e86b7b17b4ba | refs/heads/master | 2022-12-23T18:09:31.805700 | 2018-05-06T14:26:05 | 2018-05-06T14:26:05 | 132,296,250 | 2 | 2 | null | 2022-12-12T05:13:08 | 2018-05-06T01:07:25 | C++ | UTF-8 | Python | false | false | 27 | py | from symbol_vgg16 import *
| [
"pharish93@gmail.com"
] | pharish93@gmail.com |
face55050896ba54f74f0364f718a00883fbdf21 | f0266f42b7b5848418c969cd878dca4e9a4f4b26 | /cyclicRotation.py | 94d08d9da72fa9dcb861351fd1dd962eb1840151 | [] | no_license | SealTok/CODILITY | bcb7dea714f94f20035fea40f0008cc54a789fda | 0dd89413aaa4838a0da4e4af3aa49461045878eb | refs/heads/main | 2023-02-07T05:57:32.238474 | 2020-12-24T00:56:39 | 2020-12-24T00:56:39 | 323,775,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | def solution(A, K):
if K == 0 or len(A) == 0:
# print(A)
return A
if K > 0:
O = A
# print(O)
for i in range(K):
L = A[-1]
del A[-1]
# print(L)
# print(A)
A.insert(0,L)
# print(A)
i = i + 1... | [
"noreply@github.com"
] | SealTok.noreply@github.com |
fb8131b2c7149dec122fa63f7055c0381b976b7c | 55561284b21d952d484c592854946cf1fd0e392b | /bluescript/bs_filehandler.py | c18f4369ba063ebd013f70c2322f5b08cc9045cc | [
"MIT"
] | permissive | MayD524/BlueScript | 4dacabc822cb2c5856869125ace9ad96f5b5a070 | 43e3f99e67647ec8bbeaeef92717c18cd4f2e0a0 | refs/heads/main | 2023-05-03T07:11:41.932952 | 2021-05-23T22:52:58 | 2021-05-23T22:52:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,691 | py | from typing import Match
import bs_types
import UPL
def blue_fileHandler(args, MEMORY):
filename, file_args = args.split(',',1)
filename = filename.rstrip()
file_args= file_args.lstrip()
mode, outVar = file_args.split(bs_types.TO_CHAR, 1)
mode = mode.rstrip()
outVar = outVar.l... | [
"noreply@github.com"
] | MayD524.noreply@github.com |
326889c215821ff806078b90bb891f7c1765fd08 | 7915264bb613285153a30c8f4d8d821f5c8c3291 | /source/accounts/migrations/0004_remove_profile_birth_date.py | 1fbabf13adf19c28b7438190cdabfed55b68d0b9 | [] | no_license | aizh-pro/exam10 | d8ec54d9600f711e1422f5418543d99c6892c6cc | b2703aa2b0fe25e83d414aa0aadcda7e37729aa7 | refs/heads/master | 2023-02-22T22:07:05.839670 | 2021-01-23T14:24:21 | 2021-01-23T14:24:21 | 331,988,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | # Generated by Django 2.2.13 on 2021-01-23 04:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_auto_20200910_2045'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='birth_date',
... | [
"aaitkeeva@beeline.kz"
] | aaitkeeva@beeline.kz |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.