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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b81540805d7dd0c978d6e2c6ae2b0d43270153f2 | c883edee8089b6b6d63fe09122a490e4f24e775f | /safarirally/urls.py | a6d27b0a29230b073b550de2211b3f5be604dc3f | [] | no_license | AlexWanyoike/SafariRally--Capstone | eb91186b9ea749c58c0afa6631dc1fefe72d6474 | f927106796c554ca043341ee3d5560f43d3c32ee | refs/heads/main | 2023-05-29T13:47:51.548286 | 2021-06-11T00:29:02 | 2021-06-11T00:29:02 | 375,275,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | """safarirally 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-b... | [
"alex.wanyoike12@gmail.com"
] | alex.wanyoike12@gmail.com |
452d6a1116be732f045e520d350dc705407e2c81 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/eve/client/script/ui/shared/fitting/panels/offensePanel.py | 2f426e8e743c0e2dd09191bd7a22606f6464d826 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 3,079 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\shared\fitting\panels\offensePanel.py
from carbonui import const as uiconst
from carbonui.primitives.container import Container
from carbonui.primitives.sprite import Sprite
from eve.client.script.ui.control.eve... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
21e654ff366601ad396ad938ac9ea2c375d5d094 | 5c008dad5881eaefe36501628d8d3c16e122b9c0 | /Week_01/examples/num_iterate_q2.py | 9dfcab74432181feb0efee201324778fc017b752 | [] | no_license | xeusteerapat/MIT-6.00.1x-EDX | 846787898b06cd5223fa825cf9757f2e92449b02 | cae706564efdc41e435b309493484ea9348c908d | refs/heads/master | 2020-07-18T22:30:43.502441 | 2019-11-04T16:16:51 | 2019-11-04T16:16:51 | 206,325,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | divisor = 2
for num in range(0, 10, 2):
print(num/divisor)
| [
"xeus085@gmail.com"
] | xeus085@gmail.com |
24b1dd003a704844352756f3fd2812733e0fd7d8 | 6955cf08b26ddce910f4932374d9b5242680009f | /tasks/toplevel.py | e3710f3b479bba0c705d153c244b825c31850b05 | [
"MIT"
] | permissive | ADicksonLab/wepy | 6c4cea39dacecf4597e0278a0a7e4a50aa3641e5 | 3a029510114db6e66db6a264bd213c9f06559b41 | refs/heads/master | 2023-04-30T03:26:22.365330 | 2023-04-21T15:50:39 | 2023-04-21T15:50:39 | 101,077,926 | 43 | 21 | MIT | 2023-08-31T04:01:04 | 2017-08-22T15:24:10 | Python | UTF-8 | Python | false | false | 88 | py | """User editable top-level commands"""
from invoke import task
from .config import *
| [
"samuel.lotz@salotz.info"
] | samuel.lotz@salotz.info |
649f08992e51522902cc6c5842f273b6b76b591f | 21f599250699a8bfe5e2f8be2ec9855e0e04b2cd | /Visualization/PlottingScripts/Figure_361_ChargedPionRAA.py | 3d5a8d6b6c0686b9ad5c0bb63ebd3a1520eb3833 | [] | no_license | amitkr2410/HPC_data_analysis | 36f313968c2667e0d30c1d5ad7381973e91dbcf1 | 3ae572b354ea8a95eb5d6e5f828487e1137f62ff | refs/heads/main | 2023-05-31T02:10:02.814571 | 2023-05-15T05:03:48 | 2023-05-15T05:03:48 | 209,374,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,880 | py | import matplotlib.pyplot as plt
import numpy as np
import matplotlib.pyplot as plt
# define format for the plots
import matplotlib as mpl
#serif
mpl.rc('font', family='times', weight='bold')
mpl.rcParams['text.usetex'] = True
params = {'text.latex.preamble' : r'\usepackage{amsmath} \usepackage{lmodern} \boldmath'}
mp... | [
"amitkr2410@gmail.com"
] | amitkr2410@gmail.com |
5c5135fbae58089e6508a9f29d16bb8b0b6d7268 | d0227639cbe42193209ed83bbadd58fc344e5a5c | /SUTD_IEEE_Kivy_Workshop/Kivy_workshop_2/Examples/button.py | 29257aeade80fd6d66d346af1e208eea4ed66e71 | [] | no_license | SUTD-IEEE/workshop-resources | de438ab85c71b51ef0f8ca68b3ebcf1f1c920b66 | e2131672880351b446b2edcbaea33f6e381917a8 | refs/heads/master | 2023-05-11T19:55:31.219026 | 2019-10-16T14:34:33 | 2019-10-16T14:34:33 | 158,399,332 | 0 | 1 | null | 2023-05-01T21:16:16 | 2018-11-20T14:07:58 | Python | UTF-8 | Python | false | false | 805 | py | from kivy.app import App
from kivy.uix.boxlayout import BoxLayout # put the parent object you want your window to inherit when the app starts here
class mainWindow(BoxLayout): # create your window object which initialise with the object you imported from kivy library
pass # don't do anything here, all the struct... | [
"xmliszt@gmail.com"
] | xmliszt@gmail.com |
824450c7fa223ebcedb7ecc9358f30483f01e5d4 | 235c6af1174c36b66c8212a5216fe16fcf333e3b | /hr_gpb/tests/migrations/0004_testing_type.py | 2254a005a3f706af385fc6bace861f1f607759fb | [] | no_license | vmoshikov/cp_final_mco | 21e5081ac9f2b0f4576224fe18a0ac9a9a9af616 | e37b4f455c6561835dcc14f919a765c354bca398 | refs/heads/master | 2023-01-18T23:50:34.510086 | 2020-11-29T05:49:33 | 2020-11-29T05:49:33 | 316,544,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # Generated by Django 3.1.3 on 2020-11-28 10:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tests', '0003_testingsolution'),
]
operations = [
migrations.AddField(
model_name='testing',
name='type',
... | [
"vmoshikov@gmail.com"
] | vmoshikov@gmail.com |
44e1cc6abfc82d0901e764a12160ec58254b3fc3 | f461843969e18cbe693485fc6e204b9d75b12e19 | /multi_robot_master_slave_communication/devel/lib/python2.7/dist-packages/hello_protocol/srv/__init__.py | e6ecfec9743f6686dd4325c48fb48e5bc43a8f7c | [] | no_license | PubuduC/Master-Slave-Communication-ROS | cbd45d8e0242675feaacfc6d8d765c4f89db3685 | 0b79804592f1deb903a0738bdeb398612fdbe4b1 | refs/heads/master | 2020-03-29T13:53:31.040116 | 2018-09-23T13:37:02 | 2018-09-23T13:37:02 | 149,987,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | from ._Connection import *
from ._Wave import *
| [
"pubuduc.14@cse.mrt.ac.lk"
] | pubuduc.14@cse.mrt.ac.lk |
bee86f6052648fe66498190667983e309d90b6fd | 33527330cb02279266f49ae2a82416a57cd5266f | /mytestsite/catalog/views.py | 28bbada4b8d67bf59a1db1a2f921b3eceea17adf | [] | no_license | poiuy098/django_library | 9dff8546afcd9eabebd05c89917d08ea09ad868b | acbf0a3e2f96e63b6b44c10fe2017a71936f48fc | refs/heads/master | 2022-08-04T16:59:23.328116 | 2020-05-13T05:49:44 | 2020-05-13T05:49:44 | 263,524,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,091 | py | from django.shortcuts import render
from .models import Book, Author, BookInstance, Genre
# Create your views here.
def index(request):
"""View function for home page of site."""
# Generate counts of some of the main objects
num_books = Book.objects.all().count()
num_instances = BookInstance.objec... | [
"chiayuhsu35@gmail.com"
] | chiayuhsu35@gmail.com |
c7e87cf056a58a6c73ad62703787f7056eccda69 | e05f2cd35de3ec146608bcdcde0daf51ec5b60e3 | /plot_radar_rms.py3 | 14889020b4ab182ae9e713493fa0edc7d3773160 | [] | no_license | louiswicker/DART_example | ceccfdb1607ef74da42c6973ec117cef70771685 | c74ddefc501d9daf614a8c830815a382fed9c06a | refs/heads/master | 2022-02-12T16:24:09.740083 | 2019-07-19T20:59:20 | 2019-07-19T20:59:20 | 197,837,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,689 | py3 |
import pandas as pd
import numpy as np
from netcdftime import utime
import matplotlib.pyplot as plt
import sys, os, glob
from optparse import OptionParser
import datetime as dtime
import xarray as xr
import matplotlib as mpl
import matplotlib.cm as cm
import matplotlib.ticker as ticker
import matplotlib.dates as mdat... | [
"Louis.Wicker@noaa.gov"
] | Louis.Wicker@noaa.gov |
90d61a45791a4c4fca451ce3958912b1271ff667 | f71d67025b732e66e1a37c02c05392c3dd116d65 | /Lessons/ITP1/08_Character/d.py | 81a5619fd4674529f96b237cb3fef6f221b7ee12 | [] | no_license | clarinet758/aoj | 2829f92137dd1a93734445e1e92513f8e3e0b5c0 | 21787ffee1a6dd60c717d7b880b63107187e4710 | refs/heads/main | 2023-06-25T12:04:40.127040 | 2023-06-19T16:36:38 | 2023-06-19T16:36:38 | 34,978,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import time
import sys
import io
import re
import math
import itertools
#sys.stdin=file('input.txt')
#sys.stdout=file('output.txt','w')
#10**9+7
mod=1000000007
#mod=1777777777
pi=3.141592653589
xy=[(1,0),(-1,0),(0,1),(0,-1)]
bs=[(-1,-1),(-1,1),(1,1),(1,-1)]
#start = time.cl... | [
"clarinet758@gmail.com"
] | clarinet758@gmail.com |
36e5c2eb9d63b44287a1631df6b90e4a75fc9927 | bcd23137a7284513821435f30fb5c516d742349e | /ordersapp/migrations/0001_initial.py | b7f8bd8179e005c8c82e40eee9991987621ae156 | [] | no_license | FlintVorselon51/Geekshop2 | da6bd6237172c7ffe2ec9534fa2b1e5e55d77199 | b81061cf02ed5749c8b3fbb933515dba5b054bea | refs/heads/master | 2023-06-29T15:15:38.538699 | 2021-07-19T13:10:14 | 2021-07-19T13:10:14 | 378,866,204 | 0 | 0 | null | 2021-07-23T15:34:31 | 2021-06-21T08:51:01 | Python | UTF-8 | Python | false | false | 1,961 | py | # Generated by Django 3.2.4 on 2021-07-01 15:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('mainapp', '0003_product_is_active'),
migrations.swappable_depen... | [
"arapov14861@gmail.com"
] | arapov14861@gmail.com |
9bc8cc5ec83168a559335537809291c4aa378374 | 0226180e1b9dc926b2c025a9f467f46f7ffb8b13 | /classes.py | 7bb8a61ac287d46b6b2aac353ccaa220c0544046 | [] | no_license | fallisd/validate3 | ce5460083f03b76b9a66df22e91c48179970c423 | 1266c5f305f59e84487bf48aa648130779749068 | refs/heads/master | 2021-01-10T12:07:48.485563 | 2016-03-07T21:20:40 | 2016-03-07T21:20:40 | 53,359,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,905 | py | import numpy as np
import scipy as sp
from scipy import stats as spstats
import cdo; cdo = cdo.Cdo()
import matplotlib.pyplot as plt
import matplotlib as mpl
from math import ceil
import datetime
from mpl_toolkits.basemap import Basemap, addcyclic
from netCDF4 import Dataset, num2date, date2num
import os
import dateti... | [
"dfallis@uvic.ca"
] | dfallis@uvic.ca |
e2931dfc55162bc47e12d78b686337ca5d4767de | 6a61dc0110ff8fb9a3d9847a2f68f271bc2569a6 | /test/__init__.py | 6c80434f1375720a3056e1d9263825752301489a | [
"Apache-2.0"
] | permissive | matthagy/sputil | d1df47de043de3c233df99c333921da54ac72ad9 | 8feb0a219138884cf9e861e4a2f0d96fdfea909f | refs/heads/master | 2021-01-23T13:22:38.787147 | 2013-10-12T01:03:21 | 2013-10-12T01:03:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,568 | py |
import unittest
import numpy as np
import scipy.sparse as sp
import sputil as spu
def create_unique_random_number(mn, mx, N):
assert N < mx-mn
acc = set()
while len(acc) < N:
i = np.random.randint(mn, mx)
if i not in acc:
acc.add(i)
return acc
def make_sparse_matrix(N_ro... | [
"mhagy3@greengate.chemistry.gatech.edu"
] | mhagy3@greengate.chemistry.gatech.edu |
438b696275ec2df4858fda817feab0936b95b4a3 | d4613cdafada5d47e45c42e344787cefa8b46f26 | /code/models/slowfast/utils/distributed.py | 9f7996203fe85e59154688b9a2c9eb992c7a7034 | [] | no_license | subburajs/ChaLearn-2021-ISLR-Challenge | 3b27106a71b5d7d4b1ef50f5547d032a01bc4b3c | b401a487a613b6e9dcfb42ce9ca134e7bda8b4f8 | refs/heads/main | 2023-03-28T03:37:48.120375 | 2021-03-19T01:17:07 | 2021-03-19T01:17:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,516 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
"""Distributed helpers."""
import functools
import logging
import pickle
import torch
import torch.distributed as dist
from models.slowfast.utils.env import setup_dist_environment
setup_dist_environment()
def all_gather... | [
"zhouhaocomm@qq.com"
] | zhouhaocomm@qq.com |
32696f6860af40942b55cdf636030b11405dc3b1 | 46702ef7c5b2e0565c370fe3d2ed6b614e35090c | /python/stick.py | 3b8967d7447c1946ddd40888aac22b5d1d57ed28 | [] | no_license | Imperyall/examples | eda944c1e719dbd89254671c733669b90dbf7201 | 6df7ce73cb26045a586a66de4e349d24ae69b8c4 | refs/heads/master | 2020-07-08T09:47:13.965334 | 2019-08-21T18:34:09 | 2019-08-21T18:34:09 | 203,636,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,761 | py | import time
from opentron.util import asyncio, Util
from opentron.constants import MAX_STICKS
class WorkerStick(Util):
def __init__(self, name, db, ready_action,
stick_action, stocks, symbol,
asset, timeframe_id, timeframe,
period):
super().__init__()
... | [
"noreply@github.com"
] | Imperyall.noreply@github.com |
1160fe2c4176a9a8392411959eb0d17929231848 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_user_for_list.py | ffed016aea17b6dc6eec320863498e523cbc368d | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,944 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class GaussDBforOpenGaussUserForList:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
bbd6937df6f4f79ac032e28715614e30d4335ddf | 16fa0fd1cc6fa4f8996a626ab4cc625e5e33207c | /Comment/apps.py | 8cae2737e81a4fb05520c4a75c281f9e866f748a | [] | no_license | Arash3f/zoro_blog | ead1fba404f8140f4f7b13b23515fa280063072f | 9157afe5352481b8befa15bdd2ef093297b52cf0 | refs/heads/master | 2023-07-19T04:31:27.348756 | 2021-08-29T00:30:45 | 2021-08-29T00:30:45 | 400,917,468 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.apps import AppConfig
class CommentConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'Comment'
| [
"arash.alfooneh@gmail.com"
] | arash.alfooneh@gmail.com |
9b07f904a6d50b662b51570f13709328bce6958b | 7a884ce8dd90828bf7a6e29a2bab1a85810334d7 | /OPENiapp/OPENiapp/Providers/Google/connector.py | 6de201ab09ab2f1218d9b625643e0e1c199c6f23 | [] | no_license | OPENi-ict/api-framework | d724047f4d0157c91914dbdbf553076b8c073125 | b667236d6a9fb243d2c69f3efc1d15a6aa11f3fc | refs/heads/master | 2020-06-02T05:25:04.286876 | 2015-06-24T12:42:02 | 2015-06-24T12:42:02 | 20,104,796 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,630 | py | from googleplaces import GooglePlaces, types, lang
# https://github.com/slimkrazy/python-google-places
from OPENiapp.Providers.baseConnector import basicProvider
import json
from _goactivity import goActivity
from _golocation import goLocation
from _gomedia import goMedia
from _goproductsServices import goProductsSer... | [
"rtsouroplis@epu.ntua.gr"
] | rtsouroplis@epu.ntua.gr |
7410d04c9172221be25de2d4e2d1d87dad4df20f | 8189ec7435293519b17adf3a6e869fa87ef0c343 | /prediction.py | bf773722ad282ed2e10c74c0554579acf1e8a75d | [] | no_license | martinagalletti/LM | a16c631d2c4db871820b13a733c888e6c30fed1e | 779cfcb7fd478ef3b4144ad41454f162514b33ba | refs/heads/master | 2023-02-08T04:19:30.740596 | 2020-09-18T13:01:11 | 2020-09-18T13:01:11 | 296,615,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | from main import *
# Assuming that we have some input (words) compute the final output (word predicted)
def predict(device, net, words, n_vocab, vocab_to_int, int_to_vocab, top_k=5):
net.eval()
state_h, state_c = net.zero_state(1)
state_h = state_h.to(device)
state_c = state_c.to(device)
for w in ... | [
"martinagalletti@icloud.com"
] | martinagalletti@icloud.com |
2cc804dfdab688bf362e74ce26d321cd757a91f0 | ff30245fbc0f1db3189b11bec501007d5abdfa20 | /app/bot.py | 9ec708a01737e9ae715a1dc3895e31e581c6f839 | [] | no_license | hirotaka-s/Sprint-2016-Advanced | 9ee7a4801ef28d84f9d07f390189ee6ed7270fe8 | 792d2ca2f6176cc365ebdc824ebdbde91b64089f | refs/heads/master | 2020-07-09T14:40:32.081434 | 2016-06-03T09:50:32 | 2016-06-03T09:50:32 | 74,016,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,739 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from tinydb import TinyDB, Query
import json
import requests
import re
import time
class Bot(object):
def __init__(self):
self.__commands = BotCommand()
def is_bot_command(self, recv_message):
split_message = recv_message.split(' ', 2)
if ... | [
"hirotaka.suzuki@kofearistokrat.com"
] | hirotaka.suzuki@kofearistokrat.com |
4fa11bf0bf80e1c45ba384816c50e106b6e37996 | 63eb05febaac75f781a266d48d1cfff2debe64ea | /the_tale/game/actions/tests/test_meta_action_arena_pvp_1x1.py | cc1908c6fc5a58626d98e062129badc099331957 | [
"BSD-2-Clause-Views"
] | permissive | MadRiw/the-tale | 185ca33e410a59de63a594daf15fc8a5701338d2 | 1801beab2ed149556c0b3380e8adaaa976f74e6c | refs/heads/master | 2021-01-15T23:45:34.873857 | 2015-06-17T13:06:12 | 2015-06-17T13:06:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,832 | py | # coding: utf-8
import mock
from the_tale.common.utils import testcase
from the_tale.accounts.prototypes import AccountPrototype
from the_tale.accounts.logic import register_user
from the_tale.game.logic_storage import LogicStorage
from the_tale.game.logic import create_test_map
from the_tale.game.prototypes import... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
60ad1528aa7163d2075791060ed97402da5e72c4 | ca49b9d81690c0ca98fe29bbef526e9ae84a5610 | /userbot/plugins/_helper.py | b3c76e21cfdc4e2cae912a40885f0537c3209613 | [
"MIT"
] | permissive | SourcePrivet/HardcoreUserbot | 885a50c9a7eb0c7ff1ed61361d6ba1175346cb81 | 3ded5be106f59a066c7a73ab559fcc22d4d1e4ea | refs/heads/master | 2022-08-01T15:41:54.102072 | 2020-05-22T05:46:31 | 2020-05-22T05:46:31 | 265,158,230 | 0 | 0 | null | 2020-05-19T05:55:23 | 2020-05-19T05:55:23 | null | UTF-8 | Python | false | false | 2,008 | py | from userbot import CMD_LIST
@command(pattern="^.help ?(.*)")
async def cmd_list(event):
if not event.text[0].isalpha() and event.text[0] not in ("/", "#", "@", "!"):
tgbotusername = Var.TG_BOT_USER_NAME_BF_HER
input_str = event.pattern_match.group(1)
if tgbotusername is None or input_str =... | [
"noreply@github.com"
] | SourcePrivet.noreply@github.com |
28e38d1acbd30bd2f6f1d9c19626c68e8d9108bf | f6c7a98908b01e934d8fd12255e33dfecafbce2a | /eemi_3adev_cours_cryptologie/Diffie–Hellman.py | 88c6271bae392a1557b45322c6fd7b719bc8fe73 | [] | no_license | Noelierx/eemi_3adev | c447d1607fafb77b02e032a013679bc29feff69d | f3e8969a7ac3b84d5797451b5035cdf9366d84ca | refs/heads/master | 2023-08-03T00:32:21.727083 | 2023-07-20T08:21:29 | 2023-07-20T08:21:29 | 167,063,732 | 0 | 0 | null | 2023-08-30T10:56:36 | 2019-01-22T20:38:50 | PHP | UTF-8 | Python | false | false | 1,039 | py | # Variables Utilisées
sharedPrime = 23 # p Prime = principale
sharedBase = 5 # g Base = secondaire
aliceSecret = 6 # a clé secrète d'Alice
bobSecret = 15 # b clé secrète de Bob
# Début
print( "Variables partagées publiquement:")
print( " Publicly Shared Prime: " , sharedPrime )
print( " Publi... | [
"noelieroux11@gmail.com"
] | noelieroux11@gmail.com |
804535c7be0e830cc0a6354de5218716a95b2ba7 | 6ad93f33b9fe5d595648d36d74e23e7f0ddeb124 | /Models/NB/ARXIV/train.py | 7638b300f4725c605ea507617c2a581a39e9ffc0 | [] | no_license | nimitpatel26/NLP_Project | 3d481ba513756b4db287e7233620e05fe3ce8a91 | 540e09031243bc755178a3e0547ee21d0c2773ce | refs/heads/master | 2020-09-07T16:56:14.947651 | 2019-12-18T23:46:09 | 2019-12-18T23:46:09 | 220,852,005 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py |
import pickle
import numpy as np
from sklearn.linear_model import LogisticRegression
from sklearn.multiclass import OneVsRestClassifier
import matplotlib.pyplot as plt
from sklearn import metrics
from sklearn.naive_bayes import MultinomialNB
from sklearn.metrics import accuracy_score
from sklearn.metrics import preci... | [
"jacob.barnett@appliedis.com"
] | jacob.barnett@appliedis.com |
a34346580111533bbd2b1ba6ea905d5f5ef6b8e9 | 77d8af02305d0add9930ffc287c66b9fa080d9e4 | /활성화함수/시그모이드함수/sigmoid1.py | 8b081de068c242d7c3b09edb310431130d1b15be | [] | no_license | jaemo0321/woi | ffd496fc537bd96a66be671218dca2456e72a57d | ed29b2cb803c8d0f60456655774f596d5c20933c | refs/heads/main | 2023-08-11T10:38:22.694406 | 2021-09-21T05:30:17 | 2021-09-21T05:30:17 | 408,530,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | import numpy as np
import matplotlib.pylab as plt
def sigmoid(x):
return 1/ (1 + np.exp(-x))
x = np.arange(-5.0,5.0,0.1)
y = sigmoid(x)
plt.plot(x,y)
plt.ylim(-0.1,1.1)
plt.show() | [
"jaemo0321@gmail.com"
] | jaemo0321@gmail.com |
8c806cff81eecfd1f41bf8c68f5c3440ea4c6be4 | 45b1ad47b387c9328df8fa3f830ff741d4735045 | /Bubble Sort.py | 5802d51964e8a809504631250394f18821bdf4bc | [] | no_license | Richardkaran-74/Algorithms | 0828df4590e05bb211418216ae3bb3b00f2e7637 | cd2904558a60cb9c30ec2f54f530df50a4a97212 | refs/heads/master | 2022-12-10T19:37:55.732263 | 2020-09-04T06:17:07 | 2020-09-04T06:17:07 | 292,609,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | def Bubblesort(a):
b = len(a) -1
swaps = 0
for x in range(b):
for y in range(b-x):
if a[y] > a[y+1]:
a[y],a[y+1] = a[y+1],a[y]
swaps += 1
return a,swaps
n = int(input())
a = list(map(int, input().rstrip().split()))
sorts = Bubblesort(a)
p... | [
"noreply@github.com"
] | Richardkaran-74.noreply@github.com |
78cd6795ea18e69c2d486a85ec2aaeccd5af59d2 | 181d138383f19d4427a525b713d270b9a567fdb9 | /tests/test_csv.py | 96599288ea36fdcc63457339745f0cdcbf96401d | [
"MIT"
] | permissive | openelections/electionware | 2f07f6cf5cc1b077a1e8262546237915767095ab | d3998027223d848b9cb6172e224e62096b3b5916 | refs/heads/main | 2022-12-27T19:40:35.054496 | 2020-10-10T21:13:13 | 2020-10-10T21:13:13 | 314,941,407 | 1 | 1 | null | 2020-11-22T02:07:40 | 2020-11-22T02:07:39 | null | UTF-8 | Python | false | false | 2,374 | py | import os
from unittest import TestCase
from unittest.mock import patch
from electionware.csv import get_output_file_path, get_output_header, \
write_electionware_pdf_to_csv
class TestOutputFilePath(TestCase):
def test__output_file_path(self):
expected = os.path.join(
'..', '2000', '20001... | [
"rbierbryer@gmail.com"
] | rbierbryer@gmail.com |
f060ef31d43c3220db23ba2d5f5b9638358bec69 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_nitpicked.py | c24415023c45b6fa685872e33916c3f83b705177 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py |
#calss header
class _NITPICKED():
def __init__(self,):
self.name = "NITPICKED"
self.definitions = nitpick
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['nitpick']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
af85091132f201033888c47fc10b43a4b7e8d32d | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-integrations/connectors/source-aircall/setup.py | 25b830a1e3cce6526bed07734eb77ef89e7f7d8b | [
"MIT",
"LicenseRef-scancode-free-unknown",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 628 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from setuptools import find_packages, setup
MAIN_REQUIREMENTS = [
"airbyte-cdk~=0.1",
]
TEST_REQUIREMENTS = [
"requests-mock~=1.9.3",
"pytest~=6.2",
"pytest-mock~=3.6.1",
]
setup(
name="source_aircall",
description="Source impleme... | [
"noreply@github.com"
] | thomas-vl.noreply@github.com |
b588f2c1ecc3daa6991eab8af144bceb73afd1cb | 7d75f44a9486b6e2bb0e58c72d22be436cc308af | /EventSelector/scripts/wq2-ls | 4d93419f50c4dcd2e7f4cd550c4c53f5c8220804 | [] | no_license | zinon/RawData | f95dbef4c12eb9db73adbae8e94c031781bc3bef | 38743ed4d52f532a03e53dfee774abfa49e82988 | refs/heads/master | 2021-01-19T20:18:15.971916 | 2015-02-25T11:30:18 | 2015-02-25T11:30:18 | 31,310,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | #! /usr/bin/env python
"""
Module createContainer
improved dq2-ls splits up unique and duplicated datasets
"""
import optparse
import subprocess
import os
import re
from DQ2Tool import DQ2Tool
## Configuration
############################################################
def main():
# Load Parser
usage = "... | [
"zinon123@gmail.com"
] | zinon123@gmail.com | |
262a46b28e0f81a173486d6faa14c8be88a61e79 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2738/60598/281309.py | b37b2756d6e576c77a144d36933054d39da07823 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | input()
matrix = []
while 1:
s = input().replace(" ","")
if s == "]":
break
if s[-1] == ',':
matrix.append(s[1:-2].split(","))
else:
matrix.append(s[1:-1].split(","))
row = len(matrix)
col = len(matrix[0])
result = 0
are = []
for i in range(row):
for j in range(col):
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
8c944888521251fc7283418e0320a1de6fc264f4 | 56398fccc60c404fbcd0770056e21c1522cf3807 | /pages/urls.py | a51a7c2a3103e156bfe9fd2e3940dace195a5723 | [] | no_license | agnesimbs/movers | 72efb5a8d79a615ce4f3f0d2168f8aee4bd7b37c | 3fe03b1d4942c5f0b1b2986a79fba9f7cad6dafd | refs/heads/master | 2020-03-27T15:37:10.534867 | 2018-09-03T08:16:35 | 2018-09-03T08:16:35 | 146,728,729 | 0 | 0 | null | 2018-09-03T08:16:36 | 2018-08-30T09:42:23 | Python | UTF-8 | Python | false | false | 189 | py | from django.urls import path
from .views import HomePageView,AboutPageView
urlpatterns=[
path('',HomePageView.as_view(),name='home'),
path('about/',AboutPageView.as_view(),name='about'),
] | [
"agneswambui504@gmail.com"
] | agneswambui504@gmail.com |
344f9662afb40ad4e593118502c860a3bc15bc9e | acf90501ba4f8b6c1db52f28746449b4bf3e2d2c | /cloudland/cloudland/wsgi.py | 019864acf6d28faa76c34b2575a2710a9e84b4bf | [] | no_license | michaelpermyashkin/Cloudland | 64729c7a2676eb02ddb55aba7571f7462492ce79 | 5c9d1a32eb6117ec106ca6e79c02e396342f4d34 | refs/heads/master | 2022-11-25T18:51:00.345507 | 2020-08-04T13:33:12 | 2020-08-04T13:33:12 | 264,047,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for Stitch 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"mpermyashkin@gmail.com"
] | mpermyashkin@gmail.com |
e6963b1f1c20af3ad100d73cbd2a60ebafed797b | afe177633a6af170d6a2f56660aafb7cef388daa | /sprites/ground.py | 87e71d59839583697b126e1acb0ab513302bd842 | [
"MIT"
] | permissive | sdcpku/FlappyBirdAI | 5f25c61bcbf7c6b68c82be653946b24dfda0b42d | 945f42a6a5f83facf69f314f40af9612638467e9 | refs/heads/master | 2021-01-12T14:19:42.875747 | 2014-06-20T06:02:42 | 2014-06-20T06:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | import cocos
import cocos.euclid
import cocos.collision_model
import setting
class Ground(cocos.sprite.Sprite):
def __init__(self, y):
super(Ground, self).__init__(image="resources/ground.png")
position = (setting.GAME_WIDTH - self.width / 2, y)
self.position = position
self.csha... | [
"xianyubo@qq.com"
] | xianyubo@qq.com |
7b1d8bb258a7103c7da00088999d4559fef09750 | ec8d24cab32a821338055654e51589307d363d86 | /linked/linked/pipelines.py | f065f97abef8391e9b5328856dadafb106afd6e1 | [] | no_license | caiprozect/crawl | ce64c765469baf64e09dae4229d9387512302a45 | 43b75aca258830c44628e3efc33aabce9d4957e7 | refs/heads/master | 2021-01-24T09:45:33.061037 | 2016-10-05T12:00:08 | 2016-10-05T12:00:08 | 69,521,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class LinkedPipeline(object):
def process_item(self, item, spider):
return item
| [
"caiprozect@gmail.com"
] | caiprozect@gmail.com |
ab8138777508b8e8d77eae92daa1bf55dad2b21c | f06893da365d6fc8d7ccb94b5b4091ad046ecc4c | /pytorch-yolo-v3/camera.py | 26f8ae4e22a79d23985cf76822c678be56503a64 | [
"MIT"
] | permissive | Shiyipaisizuo/target_detection | ca9e77829893a88045b1f68f93ef64364bb4cf8f | 59bb626021f6e850ef3e1b817189e6dd4eaedbac | refs/heads/master | 2020-03-27T03:00:50.412150 | 2018-08-23T09:32:34 | 2018-08-23T09:32:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,135 | py | from __future__ import division
import time
import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
import cv2
from util import *
from darknet import Darknet
from preprocess import prep_image, inp_to_image
import pandas as pd
import random
import argparse
import pickle as pkl
def pre... | [
"shiyipaisizuo@gmail.com"
] | shiyipaisizuo@gmail.com |
dc27dc63f6a3b9d4bd00afcbc7b4639d4e1533d0 | 993f7b85a9c4d69d91c100b22aba2f14b638fc81 | /swea-5656.py | b3c3a1d27380c90f74ffdb1dc8c05350b1e22d44 | [] | no_license | bearics/coding-test | 2a5eca9d12eb6051e5fd14646fee719ba328f962 | ffe7a602e088245cd931f0d078dbd2e8dad83254 | refs/heads/master | 2020-07-20T18:33:23.187916 | 2019-09-06T02:24:35 | 2019-09-06T02:24:35 | 206,692,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,533 | py | dirs = [[1, 0], [0, -1], [-1, 0], [0, 1]] # R D L U, [X, Y]
def sol(n):
# global debugggg
# debugggg += 1
# print(debugggg)
global base_map
# if debugggg == 28:
# print("stop")
if len(n) >= N:
count = 0
global min_count
for rr in range(H):
for cc in range(W):
if base_map[rr]... | [
"bearics@gmail.com"
] | bearics@gmail.com |
eb35b2c2e51714228552809f270f084565a0632e | 85b0c95499b67aeed5885d0d5ad7fcef94d982e7 | /helper/data_logger.py | 874630f4beb2b2eddaaac45d638d0464b7e5cda4 | [
"MIT"
] | permissive | georgezouq/Personae | becd3c7a41f8c1d37ecb1fbd6c28a26ea24dc522 | 1a0d67b04d9b692aceb4f499207751829cafba9f | refs/heads/master | 2020-03-27T19:02:46.091638 | 2018-09-19T02:49:50 | 2018-09-19T02:49:50 | 146,962,267 | 1 | 0 | MIT | 2018-09-01T02:58:51 | 2018-09-01T02:58:51 | null | UTF-8 | Python | false | false | 1,507 | py | # coding=utf-8
import logging
import os
from datetime import datetime
from static import LOGS_DIR
DATETIME_NOW = datetime.now().strftime("%Y%m%d%H%M%S")
def generate_market_logger(model_name):
market_log_path = '{}-{}-{}'.format(model_name, DATETIME_NOW, 'stock_market.log')
market_logger = logging.getLog... | [
"ceruleanacg@gmail.com"
] | ceruleanacg@gmail.com |
08283262024ac11a678bf93a86fc13799fde7db9 | c7231df2a4740dde9e19d4db174d3fbc3d617033 | /test/build/exe.win-amd64-3.5/PyQt5/_QOpenGLFunctions_2_1.pyi | c121336e38ab0a6ab5822ff9a0159402b3f3476d | [] | no_license | wangzhibinjunhua/python_test | c05c1b250dbabe13243c3e46af13efb25f0bd298 | ddd812e81e1ba1d82fdc525aff3e8b3a935b6f70 | refs/heads/master | 2021-10-03T10:54:23.561997 | 2018-12-03T01:33:11 | 2018-12-03T01:33:11 | 103,799,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,729 | pyi | # The PEP 484 type hints stub file for the _QOpenGLFunctions_2_1 module.
#
# Generated by SIP 4.18
#
# Copyright (c) 2016 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as publ... | [
"wangzhibin_x@foxmail.com"
] | wangzhibin_x@foxmail.com |
126797cd83a42c98ec04cdb75a1bd48f2f88afc4 | ea3063b9559046fdd53e9ceff8839adcb04671d5 | /nn/data/augmentation_preprocessing.py | 3a227a3c7e986d64a1a3eeccd882202b57fe6302 | [] | no_license | Juravlik/diploma_1 | a4f2631c588841139a13db917326f137e741ea08 | 07d95db3b0df529d3bce37de81b96aa75ad5a3e4 | refs/heads/main | 2023-05-04T07:08:23.746603 | 2021-05-27T01:40:25 | 2021-05-27T01:40:25 | 370,557,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,116 | py | import albumentations as A
import torch
import random
import numpy as np
import cv2
IMAGE_SIZE = 256
def lock_deterministic(seed=42):
np.random.seed(seed)
random.seed(seed)
torch.manual_seed(seed)
torch.cuda.manual_seed(seed)
torch.cuda.manual_seed_all(seed)
torch.backends.cudnn.benchmark = F... | [
"temelyanov@griddynamics.com"
] | temelyanov@griddynamics.com |
aca671cbd29112f2e6668647ab92fe0be17afbb2 | 60c6f68000fe9440948f91b493d15e96c2159373 | /python/index-gsoc-searcher-data.py | 21b0674d84288efb1850321cec4495f20140c197 | [] | no_license | dbpedia-spotlight/gsoc-searcher | a0a288686089c0bb89c05d4d5b55a7f16925b25c | a75c4c3177e30273995e38c9a924ae835e2247ad | HEAD | 2016-09-01T23:08:53.629598 | 2013-06-11T10:08:44 | 2013-06-11T10:08:44 | 9,697,566 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,490 | py | """
Requires an ElasticSearch server to be running.
python index-gsoc-search-data.py <dataDir> <elasticSearchUrl>
"""
import sys
import os
import urllib2
import re
INDEX_ID = "gsoc2013"
TYPE_ID = "d"
MAPPING = """{
"d" : {
"properties" : {
"ideas" : {
"type" : "string",
"store" : "yes"
... | [
"max.jakob@gmail.com"
] | max.jakob@gmail.com |
39a6558bfc2c2ddd777939bce2b4f90f80b198ee | 8901d53969eb840338fb3b66895d199e4c82aad7 | /vantage_media_player/bin/django-admin | 66b2baa559b0508aad95a980ef2638ff3144b892 | [] | no_license | SaundersB/web-media-player | 26438614685ba6d065d5d64c61468862cf4535cd | 3b3690a6860a4d815542f0fdfa524b3ba0222fcc | refs/heads/master | 2021-05-31T22:27:28.969328 | 2016-07-19T20:29:27 | 2016-07-19T20:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | #!/home/brandons/src/Web_Media_Player/vantage_media_player/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"speakeasys@gmail.com"
] | speakeasys@gmail.com | |
14b9908178c8743363eb1a49b403aac42ecccffd | 040a49be9a254020899c67152094b7c6bd5e2a36 | /release/ca_descriptions/templates/forestsim_incinerator_wind_SW_3.5.py | e6d644d79d3d7e2e6f21c94d0e769ef6d723b699 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"BSD-2-Clause"
] | permissive | Leon-Singleton/Forest-Fire-Simulation-Using-Cellular-Automata-Python | 51e0b1f64d79855b506603479e423fbe7771efc8 | 6c890b53dce152bf03cbb325d285b06d2264d597 | refs/heads/master | 2021-06-16T21:31:24.730398 | 2021-04-29T11:56:33 | 2021-04-29T11:56:33 | 199,534,962 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,722 | py | # Name: NAME
# Dimensions: 2
import inspect
import math
import random
# --- Set up executable path, do not edit ---
import sys
import numpy as np
this_file_loc = (inspect.stack()[0][1])
main_dir_loc = this_file_loc[:this_file_loc.index('ca_descriptions')]
sys.path.append(main_dir_loc)
sys.path.append(m... | [
"noreply@github.com"
] | Leon-Singleton.noreply@github.com |
98491800978764c42bde1d1d36a77b8dc13c9ef3 | 1e249067ab2dabc17cb7ebda46f9f23a5cfad552 | /tests/test_processor.py | 149ae513f1fdcfc1b09bbec275c63aac1d55b556 | [
"BSD-2-Clause"
] | permissive | STIRLIN6/indra_cogex | 6e4cba84ee1ce82a404154e7370f88fc340400cb | 552cefd71431b08b8118b2cc0428fd8681e6fc83 | refs/heads/main | 2023-08-14T01:28:14.852108 | 2021-09-14T04:18:13 | 2021-09-14T04:18:13 | 377,100,238 | 0 | 0 | BSD-2-Clause | 2021-06-15T09:01:23 | 2021-06-15T09:01:23 | null | UTF-8 | Python | false | false | 184 | py | from indra_cogex.representation import norm_id
def test_norm_id():
assert norm_id("UP", "P12345") == "uniprot:P12345"
assert norm_id("CHEBI", "CHEBI:12345") == "chebi:12345"
| [
"ben.gyori@gmail.com"
] | ben.gyori@gmail.com |
d018dae1106391a3d078188de5671e9268624e32 | 7dd3f071766dbac0fccaffa68644d86a1831e764 | /chapter_1/p1_7.py | 033399a950c867cd50ac57483f0f5d046e9cafd5 | [] | no_license | gaokang9009/CTCI_python | 22eb223d698e33b306bb21e16095d408363c3b2f | e28399c3b133af9913d0228c400aa67e4b113150 | refs/heads/master | 2023-01-04T13:44:51.936748 | 2020-09-23T21:09:57 | 2020-09-23T21:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | from typing import List
def rotate(arr: List[List[int]]) -> List[List[int]]:
rot_help(arr, 0, len(arr[0])-1, 0, len(arr)-1)
return arr
def rot_help(arr, xl, xh, yl, yh):
if xl >= xh and yl >= yh:
print(f"Shorting 0 or 1 wide at {xl} to {xh}")
return
else:
rot_help(arr, xl+1, ... | [
"bogdan.stoicescu17@imperial.ac.uk"
] | bogdan.stoicescu17@imperial.ac.uk |
d1456bb6326f302fbb94ad3ef15d4303f90f97cc | 9f6691c51f5ee58d19caa5c9e4cb82ddbd917ec0 | /V2RaycSpider1225/src/BusinessLogicLayer/utils/staff_mining/support/staff_collector.py | 51704a1ff91c67c352648a349fe62e6638fb4d65 | [
"MIT"
] | permissive | TOBICHI-Origami/V2RSS | 2bef6e1e48942cf21023a3c91eefeecb42ddfe3e | a5dc1478b0229d87881c53095366f692ddeac04a | refs/heads/master | 2023-09-05T07:55:45.082232 | 2021-10-19T15:35:25 | 2021-10-19T15:35:25 | 420,401,126 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,741 | py | __all__ = ["StaffCollector"]
import random
import sys
import time
from selenium.common.exceptions import NoSuchElementException, WebDriverException
from selenium.webdriver import Chrome, ChromeOptions
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from... | [
"62018067+QIN2DIM@users.noreply.github.com"
] | 62018067+QIN2DIM@users.noreply.github.com |
cc253dd395f7b5886f218c25e5d30b74c5670852 | 91afa6d9e893b6b6586226acaca684ab8bbfb5e9 | /plaining/migrations/0003_person_sexe.py | 9f72632904fd8a0ac8a753d9b054704119a77521 | [] | no_license | elmehdiLAM/frontend | 4a71604d9cb75511d98d17acebb44bcf9db8ad4c | e469cf7d01665065309d620bc55867949020d2ab | refs/heads/master | 2023-03-08T12:33:10.055991 | 2021-02-21T17:02:49 | 2021-02-21T17:02:49 | 340,951,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # Generated by Django 3.1.4 on 2021-01-02 22:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('plaining', '0002_auto_20210102_1516'),
]
operations = [
migrations.AddField(
model_name='person',
name='sexe',
... | [
"elmehdi.lamsyah@fsr.ac.ma"
] | elmehdi.lamsyah@fsr.ac.ma |
8df8770f43395ac195c0de00375b8098830b1db6 | 7670598360cdd28a75c17cbdc74eedcd2bcd916c | /driver/world.py | 80934c961a8e764d2d7b47851cda81b2b2fc0046 | [] | no_license | jordan-schneider/driver-env | d5663edffebd1acb4b53b81bff43a8a416152fa0 | 45a1c3ef478826ed33298f53bfa6d57d825b9e43 | refs/heads/main | 2023-06-05T01:06:34.891257 | 2021-06-17T01:40:42 | 2021-06-17T01:40:42 | 342,935,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,876 | py | """Base class for driving scenarios."""
from typing import Any, Dict, Iterable, List, Optional, Tuple
import numpy as np
import tensorflow as tf
from car.fixed_plan_car import FixedPlanCar, LegacyPlanCar # type: ignore
from driver.car import Car
class CarWorld:
"""
Contains the objects in a driving scenar... | [
"jordan.jack.schneider@gmail.com"
] | jordan.jack.schneider@gmail.com |
876a4e19c8e2c703b622a9bd2a112eb53263922f | cca746947ed7779c48dbca2bdd6398755445f801 | /chapter13/decorate_demo.py | 530e3e7f50f686fcd6730def079ee16e9c8d6ff5 | [] | no_license | TangBean/AdvancePython | 0081ce5afc434dd8ee10d3539df952d1845c8cff | 6b29c3c271104fdc947522f26c9884c011147c86 | refs/heads/master | 2020-05-19T21:10:37.330795 | 2019-05-13T15:19:21 | 2019-05-13T15:19:21 | 185,217,792 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | def log(func):
def wrapper(*args, **kwargs):
print("call %s():" % func.__name__)
func(*args, **kwargs)
print("call finish")
return "returning"
return wrapper
# 在这里用 log 装饰 now 函数,相当于调用了 now = log(now),也就是说,now 函数现在是 wrapper 函数
# 然后调用 now("hello") == wrapper("hello")
# 在 wrapper... | [
"984354469@qq.com"
] | 984354469@qq.com |
5d54d9806081b5a4bfe7026d4711ef3642d29885 | 0bfb74494054dc9e0774618687b5d234e6db6a92 | /ch11/progress_queue.py | 400bf69717d73d7b1dbf7bc59cba559aad28aa52 | [] | no_license | FSSlc/AdvancePython | dddee32524cf1071a36eb4316efc2b53185645e3 | 61ed98f951fc877cc01e43a50488fc91b775c0f0 | refs/heads/master | 2022-11-06T10:53:07.812770 | 2020-06-25T23:43:24 | 2020-06-25T23:43:24 | 273,885,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | #!/usr/bin/env python
# coding: utf-8
"""
通过 Queue 来进行进程间通信
共享全局变量不能适用于多进程编程,可以适用于多线程编程
multiprocessing 中的 Queue 不能用于 pool 线程池
pool 中的进程间通信需要使用 manager 中的 Queue
还可以使用管道 pipe 来进行进程间通信
"""
import multiprocessing
import time
from multiprocessing import Process, Queue, Manager, Pipe
def producer(queue):
queue.put('a... | [
"fsslc235@gmail.com"
] | fsslc235@gmail.com |
106f45f4de87ee679c33655383f062436ab7d436 | e928be64f52609ac4be5cb0a4c2d8571d999bb2d | /JapaneseTools/Conversion/k.py | e938a9f155b61fb276531464e2f97f93460a400f | [] | no_license | youkaicountry/JapaneseTools | ac19bd6e9202f5e474b74649032cd87ad7017863 | 20fcec03c0e24bbb65a2846cdeae81f9f86ccb99 | refs/heads/master | 2021-05-26T18:45:35.305598 | 2011-12-10T04:32:38 | 2011-12-10T04:32:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,382 | py | # -*- coding: utf-8 -*-
def toIF(kana):
#step 1: basic processing
t = []
for x in kana:
t.append(__getRomaji(x))
t2 = []
#step 2: process special characters
t2pos = 0
for i in range(len(t)):
if i > 0 and t[i-1][0] == ">": continue
if t[i][0] == "<":
if i ... | [
"nbcwell@gmail.com"
] | nbcwell@gmail.com |
e47e26a1d21f99e42e90ad7c55badcdb1476659d | cbfb8897956669c1b3d12df21b98e32b4eedb74a | /api/app/models/base_model.py | 533e43772754174f31143bd563a16122deea19b5 | [] | no_license | jorgi710/PruebaAndres | 1c449b61079b7a4239b66a19a3a66479561518cd | 849d80a231ca210df3c7740a90180656d31fefb9 | refs/heads/master | 2023-08-24T04:50:40.374300 | 2021-10-30T17:08:15 | 2021-10-30T17:08:15 | 422,941,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | # -*- coding: utf-8 -*-
#########################################################
from datetime import datetime
from app import db
from app.exception import InternalServerError
class BaseModel(db.Model):
__abstract__ = True
id = db.Column(db.Integer, primary_key=True, nullable=False)
create_date = db.Co... | [
"jorgi710@hotmail.com"
] | jorgi710@hotmail.com |
d2f174d698d8c02ec6ecce24ca62979fbca72999 | 0397efdc80bae46a9057b80d98f281dfad421abf | /monitorize/wsgi.py | 0bddf78b1d1db059f733bb50f77e5fc47114029b | [] | no_license | sungpia/Monitorize | 4751b608d4284cc148cc6b106ae31033b1117761 | b472a74c0145995f4bc51e2cc271ee86dd9ce9a9 | refs/heads/master | 2020-05-26T15:48:39.961287 | 2019-05-24T21:35:35 | 2019-05-24T21:35:35 | 188,293,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for monitorize 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/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"sungpia@me.com"
] | sungpia@me.com |
89e36ad6da49de830237eae3d65f2168dc4709bc | bd23d83683c9b6ef9e440b751b0b9f3a6daab126 | /src/djangodbu/sql.py | e545e4d65a26b9a77491e38dccee5f6168bad92b | [
"MIT"
] | permissive | mulderns/djangodbu | 08cf83a3edccc84bc9b9fd8517b876b4bb595fdc | 25c212986776a1bac63efed2040fd555f1d20f40 | refs/heads/master | 2023-03-11T20:38:39.870146 | 2023-03-02T11:31:10 | 2023-03-02T11:31:10 | 95,750,999 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,332 | py | # -*- coding: utf-8 -*-
''' For debugging SQL queries, (SOME ASSEMBLY REQUIRED!)
You need to:
- add a line to django.db.backends.utils.py, see details in stack_position
- configure excluded paths for stack traces to get cleaner output
'''
import logging
import re
import os
import traceback
from math ... | [
"mulderns@iki.fi"
] | mulderns@iki.fi |
6a58e63d91a21db344180ef94deea98046c9a6e6 | b27e4c2f80f306fe758d77a03a9d626e5eea77cc | /zuri_one.py | ec60691af1f5a6acdbc6ace6b21860a76a05b56c | [] | no_license | Fredricknjeri/zuri_atm | 8e4919c2580486f661531620b46ec1d3f9098582 | fc6da81986083cfae33330e4ac3bf786248c9169 | refs/heads/main | 2023-04-18T16:07:05.404796 | 2021-04-24T13:25:09 | 2021-04-24T13:25:09 | 361,167,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,287 | py | from datetime import datetime
import time
import sys
username = input('What is your name?\n')
allowed_users = ['Fred', 'Monic', 'Tony','Mary']
passwords = ['fredpass','monicpass','tonypass','marypass']
amount = [50000,40000,100000,80000]
#progressbar
def update_progress(progress):
print('Processing...')
for i... | [
"fredricknjeri@Fredricks-MacBook-Pro.local"
] | fredricknjeri@Fredricks-MacBook-Pro.local |
0e1cdca49f5eeb7315a63e0091ae55029d0eece7 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/third_party/kubernetes/client/models/v1_watch_event.py | eeac0514753ca0d2cfe0c9ba717f53e73fabf2aa | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 3,880 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
2a99b3bb613dba1885dc7a069898c4d69a501f7e | 833b43575815ce6c5fa8cbac2628cb774331eda7 | /chap20_p371_code3.py | dcda8aea075beb81ff7c9027d10c117c90dfe210 | [] | no_license | ai-times/infinitybook_python | d9529dfe7d486bf5c713d52b530915a23cbf1812 | 1c011c31994d07fe959bba9b519c4365f5f40e7f | refs/heads/main | 2023-03-01T12:18:20.695888 | 2021-02-14T04:22:40 | 2021-02-14T04:22:40 | 338,578,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from datetime import datetime
birth = datetime(2002, 6, 30, 10, 15, 3, 56765)
now = datetime.now( )
print( now - birth )
| [
"wskim092@gmail.com"
] | wskim092@gmail.com |
541be20181d90c2f788955ed7c94c8e307b6d08e | a7da58ad91b007b3650003708eb91928f1e3684a | /bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts/validateCounter.py | 1259c1c7a0143dad30f158e310e8328d81adaa3d | [] | no_license | jgpjuniorj/j | 042d1bd7710fa2830355d4312a6b76103e29639d | dc02bfa887ffab9841abebc3f5c16d874388cef5 | refs/heads/master | 2021-01-01T09:26:36.121339 | 2020-01-31T10:34:17 | 2020-02-07T04:39:18 | 239,214,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | from Products.DCWorkflow.DCWorkflow import ValidationFailed
from Products.ERP5Type.Message import Message
transaction = state_change['object']
date = transaction.getStartDate()
source = transaction.getSource(None)
# check we are in an opened accounting day
transaction.Baobab_checkCounterDateOpen(site=source, date=tr... | [
"georgios.dagkakis@nexedi.com"
] | georgios.dagkakis@nexedi.com |
786b1d757a1cff4c034b72055eedc3bf6af0e80e | 95842c10eebe5cfb3e97bbe13134517180367bea | /venv/Scripts/pip3-script.py | ac080d5977424b134355c53cd6c27f1c0f045566 | [] | no_license | linaGitHub1/PyCharmProjects | 0fd2c0ebe3a2db9a0256d492364ea5b021686494 | e3953413b97f14abeb979baf8b9b801a9ac6ccd9 | refs/heads/master | 2021-01-04T06:00:42.300307 | 2020-02-14T06:56:41 | 2020-02-14T06:56:41 | 240,420,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | #!D:\PyCharm\Lina\PyCharmProjects\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__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])
... | [
"lina_lemon@163.com"
] | lina_lemon@163.com |
3ebe01d084af1e6585aa032e0a4d15ab6c775bfd | 0a3eada15be160f13642afc357b74dd8c2095710 | /2017/python/14-disk-defragmentation/main.py | 3cf0e0206fedac1fc80c289314d3589ad87f2cfb | [] | no_license | cj1128/advent-of-code | af8edfa0e1479ed1221c07eb28eab193877a66d6 | 273eeaf97204ca1755006b7c4b61ac3609124f79 | refs/heads/master | 2022-11-28T18:58:32.087955 | 2020-08-09T13:57:40 | 2020-08-09T13:57:40 | 113,849,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,556 | py | import binascii
import numpy
import sys
sys.path.append("..")
from utils import know_hash
input = "hwlqcszp"
part1_test = ("flqrgnkx", 8108)
def solve_part1(input):
used = 0
for i in range(128):
hash = know_hash(f"{input}-{i}")
bits = format(int(hash, 16), "08b")
used += bits.count("1")
return used... | [
"fatelovely1128@gmail.com"
] | fatelovely1128@gmail.com |
da6268d37a31875a6f3720c7b2592c435e43bc0f | 0b01f92e125c27ceaf7586645f72dd5234e6841f | /Pages/product_details_page.py | 14698824353ac81b2aa33a4eb20094f8e7cce642 | [
"MIT"
] | permissive | gykudo/sauce_demo | 40789ee7b55b36e37bd77752f5a55a00890409ca | 313b4bd956cad4807d225b0a7ed98ca0be9f3371 | refs/heads/main | 2023-01-11T16:08:37.710841 | 2020-11-14T13:26:09 | 2020-11-14T13:26:09 | 305,707,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | from Objects.product import Product
from Pages.base_page_object import BasePage
from Locators.product_detail_page_locator import ProductDetailPageLocator
class ProductsDetailsPage(BasePage):
def __init__(self, driver):
super().__init__(driver)
def get_product_badge(self):
total = 0
try:
total ... | [
"tukimtuan@gmail.com"
] | tukimtuan@gmail.com |
895889f61a87b66537421257604f1a6e97cb00b0 | 91ff50a612aaa081ed89dc6ce529ddcac3a054cb | /scripts/cluster_init.py | 4e9c3384aca2a6ada678726a1fd31535f34b4539 | [] | no_license | wgantt/event_type_induction | 85f13715a39683015670d290196cedd0e46dd394 | 52959012756efb5a1bd328e35ff4094a2722a555 | refs/heads/master | 2023-08-04T06:51:19.273433 | 2021-09-12T19:36:37 | 2021-09-12T19:52:42 | 286,784,794 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,703 | py | # Package external imports
import argparse
from decomp import UDSCorpus
import numpy as np
import random
from sklearn.mixture import GaussianMixture
import torch
from torch.nn import Parameter, ParameterDict, Module
from typing import List
# Package internal imports
from event_type_induction.constants import *
from ev... | [
"wgantt.iv@gmail.com"
] | wgantt.iv@gmail.com |
82fe4e45ff38d5287f5bdbc7456289d0b5be9b04 | 4befe5b55c189da9e3f73e9c372ad2effec8ffcb | /tests/features/steps/models_repo/test_models_delete.py | 29db060d9337e515002fd6978d3f44a36542eec5 | [
"Apache-2.0"
] | permissive | mohamedgaliaa/dtlpy | da68abc0c03a23efb103c4a8dc50e8cfd6909800 | 502a51881bd41497c8b5d9096e8478fd13f3f174 | refs/heads/master | 2023-04-03T17:10:37.249161 | 2021-04-07T12:44:54 | 2021-04-07T12:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | import behave
@behave.when(u'I delete the model that was created by name')
def step_impl(context):
context.project.models.delete(model_name=context.model.name)
@behave.when(u'I delete the model that was created by id')
def step_impl(context):
context.project.models.delete(model_id=context.model.id)
@behav... | [
"micha@dataloop.ai"
] | micha@dataloop.ai |
29689d82e65139fffd325b2517ea32a511041d38 | 9734c93c86c982b1ce046340bac9e53645b261b8 | /tests/formatters/yaml_formatters_file.py | f69655c1080aa94b6d70e50bbc0002921e12694b | [
"Apache-2.0"
] | permissive | log2timeline/plaso | cd72dd407d6c5627506c14f58cb8f6a6926aa808 | d6022f8cfebfddf2d08ab2d300a41b61f3349933 | refs/heads/main | 2023-09-02T08:43:48.241198 | 2023-08-19T07:28:12 | 2023-08-19T07:28:12 | 23,812,315 | 1,506 | 421 | Apache-2.0 | 2023-09-04T08:24:53 | 2014-09-08T23:29:28 | Python | UTF-8 | Python | false | false | 3,363 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the YAML-based formatters file."""
import io
import unittest
from plaso.formatters import yaml_formatters_file
from plaso.lib import errors
from tests import test_lib as shared_test_lib
class YAMLFormattersFileTest(shared_test_lib.BaseTestCase):
"""Test... | [
"noreply@github.com"
] | log2timeline.noreply@github.com |
cccfd301348060e0bbbb8535705d6e1069d6c44a | 4341fa31ee6a6f964c4545b648eedfdda4192b3a | /contentFeatures.py | 43b97a25a578d7e3f4e5a40a2db11fc6c74e705a | [] | no_license | Asmita-Ranashinge/Data-Analytics | 60715ec65b423fb0ee16e9753b52682abc31a305 | 0fadc0ad3ada90b0a641cc7c7ece0623de5a8cad | refs/heads/master | 2020-06-12T22:11:56.531414 | 2019-06-29T19:55:02 | 2019-06-29T19:55:02 | 194,443,447 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | import string
import nltk
from collections import Counter
from nltk.tokenize import RegexpTokenizer
from nltk.corpus import stopwords
from nltk.stem.porter import *
def get_tokens():
with open('Phishing_Content.txt', 'r') as shakes: #load text file
text = shakes.read()
lowers = text.lower()
... | [
"asmita.ranashinge@gmail.com"
] | asmita.ranashinge@gmail.com |
812740cc28468da5b0b2168e7b0073a2145eca87 | fb8c088fb460fdb31f766044883c752b6315c93e | /daily14/test_ratings_key.py | 125bd7a5199bc706348c00b292f215c0ab33f117 | [] | no_license | gjakubik/paradigmsCollaboration | 9a3797e8dc73cef62995f7bb0677856be699f180 | 0e75c006e71e37c5f7e287d9d43e8f246f79857e | refs/heads/master | 2023-01-02T17:25:46.272412 | 2020-10-26T18:32:56 | 2020-10-26T18:32:56 | 300,013,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | import unittest
import requests
import json
class TestRatings(unittest.TestCase):
SITE_URL = 'http://localhost:51068' # replace with your port id
print("Testing for server: " + SITE_URL)
RATINGS_URL = SITE_URL + '/ratings/'
RESET_URL = SITE_URL + '/reset/'
def reset_data(self):
m = {}
... | [
"gjakubik@nd.edu"
] | gjakubik@nd.edu |
cb2e1a3938df6ebe22a28a25c29f67bdea6afc60 | b44234267386b8d162bafec0a3cd2d718eb3afde | /code/simplemooc/simplemooc/courses/forms.py | e69256612c19f5811fb128f19e0799137ac59d3a | [] | no_license | PuckmanXY/Simple_MOOC | afb6efaa6d23c362d438fda004c79e94bfa11e5e | afe01970ecb131b2e517b9520b158a70728507ce | refs/heads/master | 2021-04-29T12:03:18.547459 | 2018-04-21T00:29:20 | 2018-04-21T00:29:20 | 121,720,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | from django import forms
from django.core.mail import send_mail
from django.conf import settings
from simplemooc.core.mail import send_mail_template
class ContactCourse(forms.Form):
name = forms.CharField(label = 'Nome', max_length = 100)
email = forms.EmailField(label = 'E-mail')
message = forms.Char... | [
"kayoanderson0403@gmail.com"
] | kayoanderson0403@gmail.com |
892e33c12c641e469991e444dcd7b42bcc2337f4 | 3f77f05c6a664555d5a99896597ebb447be3fbe4 | /src/main/python/gui.py | 482411caa50ef232aa15c4b256af23addc0f240d | [] | no_license | JettChenT/echat-client | 9d090462580191c250a619739e5a21442b0e8094 | b1f33a30e38421832e63e3c1e3c6e0e1dc32ce1f | refs/heads/master | 2023-03-01T09:00:44.364691 | 2021-02-01T02:56:46 | 2021-02-01T02:56:46 | 334,071,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,201 | py | from executer import Executer
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from threading import Thread
from time import sleep
import json
from passwordStrength import PasswordStrengthChecker
import sys
import faulthandler
import atexit
from fbs_runtime.application_context.PyQt5 import ApplicationContext
f... | [
"jettchen12345@gmail.com"
] | jettchen12345@gmail.com |
d243c506f63f7cc1780806923f5d78de5943116b | 08ee36e0bb1c250f7f2dfda12c1a73d1984cd2bc | /src/mnistk/networks/linearrelu_5.py | efcfbec738c0a5f4fad45d439a1de52528caf7c2 | [] | no_license | ahgamut/mnistk | 58dadffad204602d425b18549e9b3d245dbf5486 | 19a661185e6d82996624fc6fcc03de7ad9213eb0 | refs/heads/master | 2021-11-04T07:36:07.394100 | 2021-10-27T18:37:12 | 2021-10-27T18:37:12 | 227,103,881 | 2 | 1 | null | 2020-02-19T22:07:24 | 2019-12-10T11:33:09 | Python | UTF-8 | Python | false | false | 675 | py | # -*- coding: utf-8 -*-
"""
linearrelu_5.py
:copyright: (c) 2019 by Gautham Venkatasubramanian.
:license: MIT
"""
import torch
from torch import nn
class LinearReLU_5(nn.Module):
def __init__(self):
nn.Module.__init__(self)
self.f0 = nn.Linear(in_features=784, out_features=70, bias=Tru... | [
"41098605+ahgamut@users.noreply.github.com"
] | 41098605+ahgamut@users.noreply.github.com |
c4167281b5e6283bb6cd67dd447b40152c61100c | f36fc94a1ac5ffbfb6d2a78807992347a7e9f6e2 | /assignment1/cs231n/classifiers/linear_classifier.py | 844826318d20b5e2114d43a0cfb20aa6ca31046a | [] | no_license | Dipeshtamboli/CS231n-Assignments | d2f60504410499aed96da9f988fc69c239096abe | 146b3ce885867c81dd609abdbaedabeafa23f7b7 | refs/heads/master | 2020-04-11T09:10:45.563002 | 2019-01-01T20:56:18 | 2019-01-01T20:56:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,966 | py | from __future__ import print_function
import numpy as np
from cs231n.classifiers.linear_svm import *
from cs231n.classifiers.softmax import *
class LinearClassifier(object):
def __init__(self):
self.W = None
def train(self, X, y, learning_rate=1e-3, reg=1e-5, num_iters=100,
batch_size=200, verbo... | [
"dipeshtamboli@gmail.com"
] | dipeshtamboli@gmail.com |
8154743effc63d1f2a7c401f9819631fb1bc162c | a20e686d8e176cd30e157bf55f219b1738b204b7 | /lambda/lambda_comprehend.py | 44030402bbbac2107844a532e3e5b17c385263fd | [
"MIT"
] | permissive | Veryinheart/aws-tutorial-code | 5e61465571f305e75f1905fa26aab0e8dadf3168 | 6b2a88340d8a94e51bf5c2935704edb9a78c4244 | refs/heads/master | 2022-07-07T14:15:35.018888 | 2020-05-13T18:32:22 | 2020-05-13T18:32:22 | 267,770,685 | 1 | 0 | MIT | 2020-05-29T05:12:37 | 2020-05-29T05:12:37 | null | UTF-8 | Python | false | false | 927 | py | """
-*- coding: utf-8 -*-
========================
AWS Lambda
========================
Contributor: Chirag Rathod (Srce Cde)
========================
"""
import boto3
from pprint import pprint
def lambda_handler(event, context):
s3 = boto3.client("s3")
bucket = "bucket-name"
key = "filename.txt"
file =... | [
"chiragr83@gmail.com"
] | chiragr83@gmail.com |
410dc874ff5b29dbc7227b95c1a8c1894533a7aa | 6113017bfaec2c2f0e5919b41bb78a5336722303 | /luminartechnolabproject/dictionary/word_count.py | e25d3bcb5e42bd4cd5f5f0acda8fe740556e45d1 | [] | no_license | prince2255/python | 2affcf998dcf1e756fe36c0e8ee5f70ccc226cb6 | b0ad2e5a62ac0d6251ceefdc1909f294e9d9ac69 | refs/heads/master | 2020-12-11T00:42:49.680357 | 2020-01-28T05:54:32 | 2020-01-28T05:54:32 | 233,756,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | line="hai hello hai how"
words=line.split(" ")
dict={}
for word in words:
if(word not in dict):
dict[word]=1
else:
dict[word]+=1
for item in dict:
print(item,end=" ")
print(dict[item]) | [
"75prince76@gmail.com"
] | 75prince76@gmail.com |
8e65f1218388ca45500e4bd62348647c2fbb7197 | 344e2956b4e2a30a8ef7532d951f96d995d1dd1e | /21_maskrcnn/lib/cfgs/cascade_mask_rcnn_r101_64x4d_fpn_coco.py | d43096d1dc7c09bd4ed5fbb76ee8a9fbe1c09e25 | [
"Apache-2.0",
"LGPL-3.0-only",
"MIT",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"GPL-3.0-only"
] | permissive | karndeepsingh/Monk_Object_Detection | e64199705326e4cd65e4b29946cae210a4ef9649 | 425fa50a3236cb9097389646275da06bf9185f6b | refs/heads/master | 2022-12-22T18:26:53.933397 | 2020-09-28T12:49:50 | 2020-09-28T12:49:50 | 299,307,843 | 1 | 1 | Apache-2.0 | 2020-09-28T12:52:18 | 2020-09-28T12:52:17 | null | UTF-8 | Python | false | false | 9,156 | py | # model settings
model = dict(
type='CascadeRCNN',
pretrained='torchvision://resnext101_64x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=64,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN',... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
3d648307ee324055cbbbdd9c14e4bd57f785a79d | c9704cb6f799620090f0e8e3ec3fbcb720e032e6 | /grunge/tests/test_tracks.py | 6819feb99e77906a25683263e96cb52de27f31c3 | [] | no_license | LiveLike/grunge | afceb90c96bce73311e41c2f2d69091808fa84ea | 8ac296099b7e579147e7f6b2685cfd788650c0b8 | refs/heads/main | 2023-02-23T13:59:13.148883 | 2021-01-26T17:58:31 | 2021-01-26T17:58:31 | 333,166,387 | 0 | 3 | null | 2021-01-26T19:10:35 | 2021-01-26T17:43:37 | Python | UTF-8 | Python | false | false | 1,404 | py | from uuid import UUID
from furl import furl
from rest_framework import status
from rest_framework.reverse import reverse as drf_reverse
from . import BaseAPITestCase
class TrackTests(BaseAPITestCase):
def setUp(self):
self.track_name = "Last Exit"
self.track_uuid = UUID("b3083319-47a9-40ed-a4e0-... | [
"benwilber@gmail.com"
] | benwilber@gmail.com |
e168642194f6d7a4aef859071a5f60aaa48f573d | 327112e61d08ff89a6609d3a9e7d091c72718c44 | /tutorial/settings.py | cec40f80ab040d2a77bc4a1aff2c407a1b128742 | [] | no_license | bridgecrew-perf7/tutorial | 1149698870b619c61be7d31ec5cf3df59d9bfefa | 456a27fde546b431cb039545cc4af51fdab2a7e6 | refs/heads/master | 2023-05-08T14:29:15.907222 | 2021-05-29T19:36:05 | 2021-05-29T19:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,225 | py | """
Django settings for tutorial project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
i... | [
"agenganugrah@gmail.com"
] | agenganugrah@gmail.com |
cd3b8b16eeef7fca013cfb2b4744d00d3610f92f | 21587c0e6c0b71cd8db7f8592b75e661388a53d3 | /run.py | b761ad01e77e0726a97e17318efe25513ad6ef17 | [] | no_license | Junwu302/ResistoMap | 63999f99fd2ae3fbfd815e993cd90ad61225eca5 | 48da878eb6927d15c14733f9eeeb155fafbe616b | refs/heads/master | 2020-06-14T00:22:09.591337 | 2017-01-16T16:38:45 | 2017-01-16T16:38:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | from src.main import main
import argparse
import os
SCRIPTDIR = os.path.dirname(os.path.realpath(__file__))
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('read_file', metavar='read_file', type=str, nargs='+',
help='input read files')
parser.add_a... | [
"yarygin@phystech.edu"
] | yarygin@phystech.edu |
9928a8ad26f248afae38d0f90a41c40115d927dc | 3865d338db6caedff9cce9c0ca2ac4b5929ac2d1 | /nanjiang/misc/uniprottrembldat2table.py | d042cb83f1815e6a9de9844a6060620eeda49a66 | [] | no_license | vam-sin/bioinfo-toolbox | fc90b347da7d733a2e5732b7352f1e8cdbf5b164 | 79f52038b7eb20337508ee49a87d2677a8ffad9c | refs/heads/master | 2022-12-09T18:39:18.743490 | 2020-08-26T14:14:58 | 2020-08-26T14:14:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,325 | py | #!/usr/bin/env python
# Description: Extract data from uniprot_trembl.dat
# ChangeLog 2014-08-28
# add options
# -keep_no_genename Keep proteins without gene name
# -keep_non_refpro Keep protein not in reference proteome
# -keep_isoform Keep proteins in isoforms
# ChangeLog 2014-0... | [
"nanjiang.shu@bils.se"
] | nanjiang.shu@bils.se |
b6329d939728790bcea89156b8375bc4669e816f | 67a7bf852f9284f59b0b3e604572524ae6f02cf2 | /mergesort.py | 30724c7c8d469fe44d7dc7741d37e51d472e5da5 | [] | no_license | sheetaljantikar/python-codes | 6745cfda23f47e387a5954e2c9bcc739164e0803 | f0a27c3159aafd97f9d66f192d8cdc48fe51bca5 | refs/heads/master | 2020-12-25T13:45:48.132779 | 2016-06-28T04:22:32 | 2016-06-28T04:22:32 | 62,109,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | def merge(left,right,list):
nl=len(left)
nR=len(right)
i=0
j=0
k=0
while(i<nl and j<nR):
if (left[i]<right[j]):
list[k]=left[i]
k=k+1
i=i+1
else:
list[k]=right[j]
k=k+1
j=j+1
while (i<nl)... | [
"noreply@github.com"
] | sheetaljantikar.noreply@github.com |
40c87866e4260e92c9b0ecbd0776992362a3c7fa | ed36b3f1a953545e0f4d90d3d716e07d5d1900cd | /src/ARIMA-Future.py | 81776f2324397777b963c2c5877c5bb6927c863b | [] | no_license | Sprea22/CS_Bachelor_Thesis___Python_Data_Analysis | ab0c2a840277511577e5c2d7c723a8dbe9840683 | f0a06db61809f08d491a342b976acd7202fa3a83 | refs/heads/master | 2021-06-16T18:23:36.984031 | 2017-06-01T09:44:06 | 2017-06-01T09:44:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,192 | py | import os
import csv
import sys
import warnings
import numpy as np
import pandas as pd
from pandas import Series
from matplotlib import pyplot
from statsmodels.tsa.arima_model import ARIMA
pyplot.style.use('ggplot')
#-------------------------------------------------------------------------------------------
#%%%%%%%%... | [
"asp005@post.uit.no"
] | asp005@post.uit.no |
26733fb81cb6083b579420deb5cc816fb49e12d9 | c1b1967be7dde14f434703922768f4379334e2f7 | /angr_platforms/msp430/arch_msp430.py | 2b193654051a08c8bd5c73575dc91e00935e1d83 | [
"BSD-2-Clause"
] | permissive | grant-h/angr-platforms | aecd0bcc18be870416f508f3ef4f769ffc9878c7 | b0e4648d3ea00fef5c05e4bd1fa9c59c6c4440bb | refs/heads/master | 2021-07-03T19:43:39.324945 | 2017-09-08T22:43:35 | 2017-09-08T22:43:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,037 | py | from archinfo.arch import register_arch, Arch
class ArchMSP430(Arch):
def __init__(self, endness="Iend_LE"):
super(ArchMSP430, self).__init__(endness)
# TODO: Define function prologs
# ip_offset = 136
# sp_offset = 124
# bp_offset = 128
# ret_offset = 16
# lr... | [
"edg@cs.ucsb.edu"
] | edg@cs.ucsb.edu |
cd04b6a0b795d69ec92e5523eb52cd2095f05e08 | 06c9fa55c525a89c48991f699b3b14099fcefd84 | /parallax/parallax/examples/nmt/inference_test.py | 7c342f9f976885e9c242f7cec36a709a949d8aea | [
"Apache-2.0"
] | permissive | snuspl/parallax | ec21997f17b74ed16484d8fe854001c3c0540f51 | 351a913877df3ae03f1b1b52320ee4536b17a667 | refs/heads/master | 2022-03-13T20:40:08.823881 | 2022-02-21T08:12:43 | 2022-02-21T08:12:43 | 142,282,082 | 133 | 33 | Apache-2.0 | 2019-07-09T03:46:02 | 2018-07-25T10:01:57 | Python | UTF-8 | Python | false | false | 8,018 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"pigbug419@gmail.com"
] | pigbug419@gmail.com |
119662e1432ab732091a253b070a031ee6566b6d | 9490e6f64e8824f15384d8f740fe136f31cec1b5 | /venv/bin/ipython | 5262c7d3931f5ba0f150a72e2986e01884b7f486 | [] | no_license | AmoCook/GUI_pj | cc3b49d8fb6244e1c33163812cb1835b8d18b960 | 729bed91a96d7366401b82dd7cfc2cbc4ff59997 | refs/heads/master | 2020-04-16T13:23:58.449573 | 2019-01-14T09:22:11 | 2019-01-14T09:22:11 | 165,625,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/Users/amo/PycharmProjects/test_1/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from IPython import start_ipython
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(start_ipython())
| [
"amo9502@stumail.nwu.edu.cn"
] | amo9502@stumail.nwu.edu.cn | |
8cc5c311344282da37caf398197d8929dffbdf8f | a5b235e3b6d263c3ea6e820154454b703148181b | /tool/begin.py | 9d71c390e3c45732370f694e39e7bf748c0ac346 | [] | no_license | shiyuyuanyue/stat | 9ad343e97c1d29dfb795dc88cc83372afbc5edd8 | a24ed90c6b08d1e548ed7fb589b9587d1c3dfd14 | refs/heads/master | 2021-01-13T23:53:44.418934 | 2020-02-23T15:27:32 | 2020-02-23T15:27:32 | 242,534,266 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | data = {}
print(bool([data])) | [
"776977960@qq.com"
] | 776977960@qq.com |
3603592a43f6cb57493b90f261bc46ecb00ef171 | 1f936103af336af6bbd335f45d6baa55c426922b | /monatbx/generate_random_image_list.py | 8a9ca4dabc8f05852c8bdb56a7c99cb54b3732fe | [] | no_license | monarin/monatbx | 2ec342d67f1fbccb82656218ffd136f2eb7d96ab | 43f56974f811e5b2b0dcc428d4f9b36043ed9d04 | refs/heads/master | 2020-06-18T13:08:58.893701 | 2016-11-30T00:58:18 | 2016-11-30T00:58:18 | 75,136,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import os
import sys
import random
p = sys.argv[1]
n_images = int(sys.argv[2])
frame_files = []
if os.path.isdir(p):
for pickle_filename in os.listdir(p):
if pickle_filename.endswith('.pickle'):
frame_files.append(p+'/'+pickle_filename)
i_rand = random.sample(range(len(frame_files)),n_images)
frame_file... | [
"monarin@gmail.com"
] | monarin@gmail.com |
bae0c8adce6d3a4872acaeed60d8daa4b5c24172 | 3357d08b91a61bbfb653f5506e63aa77caf60868 | /message.py | 9cf75cf1ba3b0fd0cc47c238619a77bfbaa7290e | [] | no_license | saivishwakgangam/error-detection_crc | 2f121553c6381ff790ed2f410e4f95c38d377c52 | 143b50864a741ae6b6a8e47226d632d14c841e48 | refs/heads/main | 2023-03-24T23:06:06.626384 | 2021-03-22T19:00:30 | 2021-03-22T19:00:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | class Message:
def __init__(self,send_matrix,crc_code):
self.send_matrix=send_matrix
self.crc_code=crc_code
def empty(self):
self.send_matrix=[]
self.crc_code=b'' | [
"noreply@github.com"
] | saivishwakgangam.noreply@github.com |
0ebcc3529c3a8cb45cbce6983629d8612e22f559 | 4857bf63cfc7a500cfa1f476e05399a82d43a461 | /Hex/play.py | e50b5e733778ad8a59d5df88a013082728e6f692 | [] | no_license | askbk/IT3105-AI-Programming | fe862d85499be0df7a26adbddc7dc050232acc1a | b3543b21fba878f402fd932665473a7f2765cde2 | refs/heads/master | 2023-04-04T19:06:00.102865 | 2021-04-19T08:32:20 | 2021-04-19T08:32:20 | 328,206,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import json
from Hex.Game import Board
from Hex.Player import Player
if __name__ == "__main__":
with open("./config.json", mode="r") as f:
config = json.loads(f.read())
play_config = config.get("simple_playthrough")
Player.from_config(
config, game=Board(size=play_config.get("board_size"))
... | [
"askbk@protonmail.com"
] | askbk@protonmail.com |
575a9eb27903aa702c0a9262637736f7f935d21b | 0be37def5e61f61858b9a3c9cbac55cad53224ec | /finchcollector/finchcollector/settings.py | 6949914a0d45e62392c2202a1714bbbddc5e4294 | [] | no_license | crystallynnv/finchcollector | 177b6c23db3175f9f66c0295d455bfff7dc16daa | 9937ec6d0ca6f2b53b2bb7eb5ccac1ecf2a3186a | refs/heads/master | 2021-03-31T06:03:18.088621 | 2020-03-21T16:41:10 | 2020-03-21T16:41:10 | 248,083,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,172 | py | """
Django settings for finchcollector project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impor... | [
"home@homes-mbp.lan"
] | home@homes-mbp.lan |
ba5bb91ca511973700ab76b1f0f7a7bd8c5fc7f0 | d8bc78d7bf99ad456920740e93db5428093dcb45 | /usuario/models.py | 27473f1074764cbbd65d9bdb9a33d6ad0e6d8699 | [
"MIT"
] | permissive | ongame-entretenimento/cadastro | d698adce23eccf066c8da2504d25c7a93a072f46 | 8c9de028088a96ad2e761156ee597cb56456b376 | refs/heads/master | 2021-03-12T20:13:24.737376 | 2014-09-10T20:45:35 | 2014-09-10T20:45:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,810 | py | # -*- coding: utf-8 -*-
from django.db import models
class Estado(models.Model):
nome = models.CharField(max_length=100)
def __unicode__(self):
return self.nome
class Cidade(models.Model):
nome = models.CharField(max_length=100)
estado = models.ForeignKey(Estado)
def __unicode__(self):
... | [
"ti@ti-netbook.(none)"
] | ti@ti-netbook.(none) |
7365f9c8cd8272ff89d5a4395be8d501ab43d64b | 514f11a1e5643459594a90485c93332a3a53a338 | /barf/barf/analysis/basicblock/basicblock.py | a2460e0ef5f0d7dfa4ff9d3839b0abfb3a3e113a | [
"BSD-2-Clause"
] | permissive | ksmaheshkumar/barf-project | b17cdfb3bd9f7eaeabba69ddd1f048d90d3d43ef | f5a4e081b458987676e1abf1f5f54f0ff49133b1 | refs/heads/master | 2021-01-17T21:55:27.477007 | 2015-01-16T14:34:56 | 2015-01-16T14:34:56 | 31,496,855 | 1 | 0 | null | 2015-03-01T13:10:51 | 2015-03-01T13:10:50 | Python | UTF-8 | Python | false | false | 18,362 | py | import bisect
import itertools
import networkx
from Queue import Queue
from pydot import Dot
from pydot import Edge
from pydot import Node
from barf.core.reil import DualInstruction
from barf.core.reil import ReilMnemonic
from barf.core.reil import ReilImmediateOperand
# CFG recovery mode
BARF_DISASM_LINEAR = 0 ... | [
"cnheitman@fundacionsadosky.org.ar"
] | cnheitman@fundacionsadosky.org.ar |
947dced367bd8dde73a91f39443a0f7b80bda3a8 | 86319aad3690906f614ac1af28b8843529e9e0da | /thwackbin/data/__init__.py | a156485bd18d0e80a766cdfa5aabbee5f290dab9 | [] | no_license | sohgoh/thwackbin | b5828783a6179e96784bed0bdb894b179e3bea07 | ba9fedc4bcec598f367aa6d4f2567d1840c65c51 | refs/heads/master | 2021-01-21T03:14:08.261732 | 2014-04-16T03:53:51 | 2014-04-16T04:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | """
thwackbin.data
~~~~~~~~~~~~~~
Package which contains mock results data stored on the file system.
"""
__author__ = 'Andrew Hawker <andrew@appthwack.com>'
import json
import os
RESULTS = None
ROOT = os.path.dirname(__file__)
def init():
"""
Load and cache our results.json data on startup.
... | [
"andrew.r.hawker@gmail.com"
] | andrew.r.hawker@gmail.com |
4eb2b48de24e83967dcf33b509a946a81d00451d | d03ef3eac49ccae08fe33a1ecf874d11fa86e635 | /dozo/commands/extend.py | a19374c1461cdc71c2d61c29a28cf1088143d55f | [] | no_license | johnmontero/dozo | 5ddd2801f8fc919443faffde68fad5ff3f0be8aa | abc3377e3ee32ac21735bd22a7fd41b7d9c881d3 | refs/heads/master | 2021-01-10T21:08:56.890991 | 2012-05-15T06:47:15 | 2012-05-15T06:47:15 | 2,735,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,931 | py | from os import path
from os import mkdir
import pystache
import envoy
from tambo import Transport
from dozo.config import db
from dozo.config import get_config_value
from dozo.commands import CommandError
TEMPLATE_OPTION_COMMAND = '''# -*- coding: utf-8-*-
from tambo import Transport
from dozo.config impo... | [
"jmonteroc@gmail.com"
] | jmonteroc@gmail.com |
31137672e5dfb8c23d9a8d755c634681497e7e42 | 609bf65158e80d7f11dce7406b1075be83688949 | /trials.py | c9084b4ff11931e66a38e94033f658cded27492e | [] | no_license | jacquetta/js-trials1 | ac4f674b6f650514da5f3d752f13aa5cfede9af7 | 137555766561327fc3aa51e2bd9dc6a719902315 | refs/heads/main | 2023-08-19T06:17:31.200662 | 2021-10-18T21:27:27 | 2021-10-18T21:27:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py | """Python functions for JavaScript Trials 1."""
group = ['item1', 'item2', 'item3']
nums_all = [1, 2, 4, 5, 7, 8,]
def output_all_items(items):
pass
for item in items:
# print(item)
return items
output_all_items(group)
def get_all_evens(nums):
pass
even_nums = []
for num in nu... | [
"jacquettavb@hotmail.com"
] | jacquettavb@hotmail.com |
fed90f6926dd100b6713610ba1b01e6bcdb8133f | c4caffea3c284a2d9454f373dc7c66903c431e42 | /test/functional/test_framework/test_framework.py | 319fd494a6dfefc8b9c9141b0329c53f64bdea0b | [
"MIT"
] | permissive | heliumchain/squorum | 2c36fc2b5149b61054f9aa5c234588f01a3a5d29 | 2e57ca8e774ab4d75999636abfa870fb8000477d | refs/heads/master | 2022-12-02T05:52:59.747926 | 2020-08-23T16:55:03 | 2020-08-23T16:55:03 | 138,344,695 | 4 | 2 | NOASSERTION | 2020-08-23T16:55:04 | 2018-06-22T20:18:03 | C++ | UTF-8 | Python | false | false | 20,380 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Base class for RPC testing."""
from enum import Enum
import logging
import optparse
import os
import p... | [
"tischenko_2006@ukr.net"
] | tischenko_2006@ukr.net |
fdba2e38a7275b27bf739668f77984e9aad554b6 | d5fd936e7346844a1b7c5ea81dfa9adf5bb647d0 | /datasets/load_data.py | c547ebd91f699327cac78ca35d0dbe0f0094489e | [] | no_license | isaachenrion/graphs | 098e7098a894a3d1d9d18cf0ce1054e5910afa15 | 2ba6d50a7f61233fa8cc92ba03256691abb889de | refs/heads/master | 2021-01-02T09:10:49.686240 | 2017-09-11T19:52:48 | 2017-09-11T19:52:48 | 99,154,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | import os
import pickle
from .datasets import BatchedFixedOrderGraphDataset, FixedOrderGraphDataset, GraphDataset, BatchedGraphDataset
from .add_virtual_node import add_virtual_node, add_target_nodes
from .path import DATA_DIR
def load_from_path(data_path, args):
with open(data_path, 'rb') as f:
dataset =... | [
"isaachenrion@gmail.com"
] | isaachenrion@gmail.com |
4325da0054b8ecb4e522b27b733ba8e35f54ecc8 | 0cb76eb5d69972c6da2b7fe6011d6bd5e694eee4 | /setup.py | 8cc5d30ce029ce325d8ec2e7730928559d145ac3 | [] | no_license | xfenix/django-xflatpages | 990d58e9bd3b536c6f65240ce9c4c6e7344a6ddf | 763f8898100081a9798d6b25324150a5c08f3737 | refs/heads/master | 2020-05-18T00:50:33.529864 | 2014-12-16T23:56:20 | 2014-12-16T23:56:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
from xflatpages import __version__
# readme
descr = 'Simple flatpages app'
setup(
name='django-xflatpages',
version=__version__,
description=descr,
long_description=descr,
author='Xfenix',
author_email='ad@xfenix.ru... | [
"ad@xfenix.ru"
] | ad@xfenix.ru |
7379c533b289f68343bc5cd1947b5877f809fbb7 | 044bb022c77c34a92492b800fc380bdead99be52 | /Python-Codes/Test Codes/test.py | 1c94df5885c60c7434578cc3e599d8a737f2b6c3 | [] | no_license | sswisty/ROV-SIREN | 4c7190d2f45685d87ef3b601b286a647055b9c7b | 5f949d6c139eb44b636e34ba1373c397472b23d0 | refs/heads/master | 2020-04-06T07:04:16.101218 | 2016-10-05T20:44:43 | 2016-10-05T20:44:43 | 51,488,996 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | # Adding this file to create a new folder
x = 5
print x+3
| [
"sswisty7@gmail.com"
] | sswisty7@gmail.com |
57b977f2ae53db87282b285aa878effd453face0 | 2a46ad4e83dcd903451fb5fba8d04da266dbd49e | /Algorithm/Leetcode/Codes/ConstructBinaryTreeFromInorderAndPostorderTraversal.py | 769cc7114912f93e7e81cf26965025c23ac1cdbd | [] | no_license | chloeeekim/TIL | e248801508340cb2eb9f3cfddc486b7dd7250386 | c5a94e81aa2f2dfcc626820205ca9feaad069fad | refs/heads/master | 2022-03-02T04:05:24.439271 | 2022-02-22T01:25:14 | 2022-02-22T01:25:14 | 190,150,063 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | """
106. Construct Binary Tree from Inorder and Postorder Traversal : https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/
어떤 트리의 inorder, postorder traversal 결과가 리스트로 주어졌을 때, 트리를 복원하는 문제
- 트리 내에 중복된 값은 없다고 가정한다
Example:
- Input : inorder = [9,3,15,20,7], postorder = [9,15,7,20,3... | [
"hiyaku0317@gmail.com"
] | hiyaku0317@gmail.com |
2b880886119cd49ba10dd9ed027ea26772f13106 | b1fe732c6abb51d44bd965cbbf259bb2d93e4514 | /Day3/problemSet.py | 14560c6d9c0b5f77cfebb8b4be2faea25056a2f5 | [] | no_license | RahulSinghDhek/GettingStartedWithPython | 04c85c2c370e7ea93b16dade44e5eea633ec284c | c655e3376707b8e4e14ed352a8bc07b010c31e12 | refs/heads/master | 2020-05-07T17:15:38.120491 | 2019-04-11T05:39:12 | 2019-04-11T05:39:12 | 180,721,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | __author__ = 'rdhek'
a=[1,3,5,7]
b=[1,2,3,4,5]
x= set(a)
y= set(b)
print list(x.intersection(y))
print x.union(y)
print x-y | [
"rdhek@qti.qualcomm.com"
] | rdhek@qti.qualcomm.com |
6f4f86844af5579493a6f13c1a0dcd95fafe0bd1 | c79e7e691c9fa5cc05bd227209762f735e6263e7 | /pyy1/.pycharm_helpers/python_stubs/-1550516950/apt_pkg/Hashes.py | 92a3d2de462fdebf1fdaf1414141fd87e81bd746 | [
"Apache-2.0"
] | permissive | pyy1988/pyy_test1 | 27fd5fbd41935ba907e26f4f4d2546ca502f29a6 | 6bea878409e658aa87441384419be51aaab061e7 | refs/heads/master | 2020-04-05T07:01:58.745653 | 2018-11-08T12:51:00 | 2018-11-08T12:51:00 | 156,660,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | # encoding: utf-8
# module apt_pkg
# from /usr/lib/python3/dist-packages/apt_pkg.cpython-35m-x86_64-linux-gnu.so
# by generator 1.145
"""
Classes and functions wrapping the apt-pkg library.
The apt_pkg module provides several classes and functions for accessing
the functionality provided by the apt-pkg library. Typica... | [
"347003917@qq.com"
] | 347003917@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.