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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8b77e2b3847c06068ebcce617039102ed313640d | e87f95d7dc16a3a72177ef45b4ddbdc91980d992 | /djtutor/urls.py | 384df1bcce8c66d29c303c340fa66c7b14955687 | [] | no_license | lch277/djtutor | 8bbd9f99efa66f84d1e8cf08962a6c9ae76ab410 | c0f2eb9feb7b7aa5e6683f5388ada81c6aac7df6 | refs/heads/master | 2020-04-02T21:54:52.027894 | 2018-11-05T08:48:05 | 2018-11-05T09:14:14 | 154,815,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | """djtutor URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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... | [
"lch277@qq.com"
] | lch277@qq.com |
13c2e647a3bdb166163cad63af99d575dd761ed7 | 6ca80a27688f18a1f00dab63f9f06ded969ebff7 | /helpdesk_custom/models/attachment.py | b06fa2500ccfc6593fe7ebb11c203fe55b48175d | [] | no_license | babarlhr/gems_ab | 698251aaaeb9a9e89c9096a691a8b4bc10de5d4a | f14d97ad2c36143eca15009f5a3f57682f422898 | refs/heads/master | 2021-09-14T17:07:32.694757 | 2018-05-16T11:18:08 | 2018-05-16T11:18:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | from odoo import models, fields, api
class IrAttachment(models.Model):
_inherit = 'ir.attachment'
helpdesk_ticket_ids = fields.Many2one('helpdesk.ticket', string="Helpdesk Tickets") | [
"younis@odoo.ie@gmail.com"
] | younis@odoo.ie@gmail.com |
794a7b41b94c6fea8b0cbc8edc0285153e063d0e | 6bdd70c742be5bf1f87839d2816e6eb80ba2c51b | /cogs/commands for helpers.py | 35ab5b3e195c11ace99e0b2b24902b6528d7bc1e | [] | no_license | clearly-elevated/rx-realm-x | d0840852a94677ecacf8fa3e6daa09d434fd384e | f119417dfb0c3fc74982ec0a28f4457b58985731 | refs/heads/master | 2020-07-16T13:53:11.960686 | 2019-09-02T07:29:27 | 2019-09-02T07:29:27 | 205,800,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,327 | py | import discord
from discord.ext import commands
import botdata
import time
import actions
data = botdata.d
emoji = botdata.e
client = data.client
class CommandsForHelpers(commands.Cog):
def __init__(self, client):
self.client = client
# update
@commands.command()
async def update(self, ctx):
... | [
"noreply@github.com"
] | clearly-elevated.noreply@github.com |
9cd57aac93e134f3a0156540ec99b0c10d5ee4fa | 34749daac69bb0239655d96b795511eb1d5e7fa5 | /modelAnalysis/helper_files.py | eb618a6eda081afbc1191fada1949ccefc3e0abe | [] | no_license | JohanLundberg12/SecondYearProject2021 | 568a7c05e98dbf872b5a0f20a6a3cbb275d723c8 | 84703048683a8f419d2565ecfdef5d4bff54e70f | refs/heads/main | 2023-05-20T16:10:03.152140 | 2021-06-14T10:29:54 | 2021-06-14T10:29:54 | 349,030,541 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | import numpy as np
import pandas as pd
import pickle
def clean_nan(df):
df.replace(np.nan, '', regex=True, inplace=True)
return df
def join_columns(df, col1, col2):
df[col1] = df[col1] + ' ' + df[col2]
return df
def encode_labels(df):
df.replace({"sentiment":{"positive":1,"negative":0}}, inp... | [
"jolu@itu.dk"
] | jolu@itu.dk |
bf554d8c9b063b46c0c66a280eb2a84d2121f75f | 89cffdaa59b08f7c46aae72c1c8356a4b9575c03 | /04_SQL/commerce/auctions/migrations/0012_listing_is_closed.py | 1f2ac3ec4d4f4ca2d6e265f6f9effabcac418c39 | [
"MIT"
] | permissive | DaviNakamuraCardoso/cs50w | 3ef5dd5b31e0de752220919ffb114a4f7afd96f4 | afec745eede41f7b294c3ee6ebaff9ac042e5e4c | refs/heads/master | 2023-08-24T23:53:34.037304 | 2021-09-24T01:12:38 | 2021-09-24T01:12:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Generated by Django 3.1.2 on 2020-11-04 20:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auctions', '0011_auto_20201104_1711'),
]
operations = [
migrations.AddField(
model_name='listing',
name='is_closed',... | [
"davi.nakamura01@gmail.com"
] | davi.nakamura01@gmail.com |
fc5c8069e56100b0729d0b18ba7810553f0533fb | 365979c01401441e1c9788cf87ac4c6e98acc75f | /MetropolisTransport/MetropolisTransport.py | 96330ace8084e1205e23ab59614bd357d14c2d41 | [
"MIT"
] | permissive | forember/Pythonista | b16a52fe0a17e2b0559e602188c822506143e432 | 9871c8b4b1c99da79e771c6bcf4f2e6ab5e19485 | refs/heads/master | 2023-03-24T13:17:56.343710 | 2021-03-16T20:24:02 | 2021-03-16T20:24:02 | 231,895,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | def _makeHistogram(F, histogram, mutations, w, h):
from random import randint, random
# create an initial sample point
x0 = randint(0, w-1)
x1 = randint(0, h-1)
Fx = F[x0,x1]
# In this example, the tentative transition function T simply chooses
# a random pixel location, so Txy and Tyx are always eq... | [
"nighttimedriver50000@gmail.com"
] | nighttimedriver50000@gmail.com |
96563513dfb7547398607a69fda1c9f21742a124 | 1d8dcf67350b948f7233cc3cf6f5252642dd1996 | /DS_INTERSECT/five_apps_review_retrieval.py | 230f2847891da7ae187f2a0fb505aa7b47b29da5 | [] | no_license | mdkafil/python_programming | 975769228f08f7dcda9d9e35828af35cc90308e9 | d9fae912be49e660459ccd1a80a5aa84e114e9b1 | refs/heads/main | 2023-03-16T08:30:32.179612 | 2021-03-02T06:13:58 | 2021-03-02T06:13:58 | 343,663,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | import ijson
import csv
import re
import wget
import json
import os
import shutil
from pathlib import Path
""" Copy Review files in distination Folder """
read_dir = 'C:/Users/mdkafiluddin/Downloads/review/review/'
write_dir= 'C:/Users/mdkafiluddin/Desktop/Research/[1]DATASET_v1/Category/COMMUNICATION/Exp... | [
"noreply@github.com"
] | mdkafil.noreply@github.com |
1fc3b7b27452778c90b70cbaf2d0890cbc7c878c | 2ea61e98627dd6b170590b69ead79a828614dec0 | /youtrack_api/models/__init__.py | b32db78643832993e6d781eddcfd07e3509c2415 | [] | no_license | alpduez/youtrack_api | 55dc25465f027645525efe5296c5699f7d824f33 | 2450523d87e6bdbbd53ca4908042a701a1a867e6 | refs/heads/master | 2023-09-01T01:34:33.356354 | 2021-10-20T15:32:05 | 2021-10-20T15:32:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,174 | py | # flake8: noqa
# import all models into this package
# if you have many models here with many references from one model to another this may
# raise a RecursionError
# to avoid this, import only the models that you directly need like:
# from from youtrack_api.model.pet import Pet
# or import this package, but before do... | [
"hank@sellerlabs.com"
] | hank@sellerlabs.com |
e844e9144b2f9c281861b1368ca91b235d597ed1 | 4fe417b7ea1b5c3b7e80623aeba922f10e882e6e | /lib/struct/WorldPoint.py | a2b15a6d1b3cb3c2efe39435470748a536b1e8c2 | [
"MIT"
] | permissive | trewq34213/pb | 23f1dee0fa27a3a02c60657a13e4277922214d64 | 3142764e350f92034eb671cfc3d1dae42dea0f0a | refs/heads/main | 2023-02-01T20:35:06.839255 | 2020-12-07T08:28:11 | 2020-12-07T08:28:11 | 319,594,684 | 1 | 0 | MIT | 2020-12-08T09:51:26 | 2020-12-08T09:51:26 | null | UTF-8 | Python | false | false | 593 | py | # -*- coding:utf8 -*-
from lib.struct.Point import Point
# 表示一个世界坐标
class WorldPoint(Point):
def __init__(self, x, y):
Point.__init__(self, x, y)
# 将世界坐标转成地图坐标
def to_map(self, area):
from lib.struct.CoordiPoint import CoordiPoint
zoneRange = self.getZoneRangeByZoneName(area)
... | [
"49783121@qq.com"
] | 49783121@qq.com |
2925bcfa9c34d3168ef64bc96abf34d2a6ca67f7 | 0a3d69e3d36e835df18b8077c4acf783fb39ddba | /mysite/main/migrations/0033_comment.py | cd25d25ca6e44bea00082235e40aa939852529f1 | [] | no_license | mdainur/SoTastyy | 6c140d8d672500c62cbe4ae54fda1bc282d141a4 | 5175bfa582d47cd225ba819e115ac15f81929870 | refs/heads/master | 2022-12-13T06:28:43.067094 | 2019-12-15T18:48:56 | 2019-12-15T18:48:56 | 228,232,352 | 0 | 0 | null | 2022-12-08T04:26:20 | 2019-12-15T18:37:56 | Python | UTF-8 | Python | false | false | 512 | py | # Generated by Django 2.2.6 on 2019-12-08 23:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0032_auto_20191209_0344'),
]
operations = [
migrations.CreateModel(
name='Comment',
fields=[
... | [
"123456789dfghj@gmail.com"
] | 123456789dfghj@gmail.com |
7289bc312ffabdb62b9022d4c3a0068b9fb51766 | a91336f416a159c891f679f590fa43ce487cb7f2 | /tools/accuracy_checker/accuracy_checker/statistics_collector/__init__.py | 160bbb83881b0f5312902a83166e726038290223 | [
"Apache-2.0"
] | permissive | LikHait/open_model_zoo | 76c5bc1e136f35d53942f7924ec74fb9bcefb7e3 | c15284b0b5f66adef7881471607a755fb386942e | refs/heads/master | 2020-09-15T14:26:38.276614 | 2019-12-04T07:22:45 | 2019-12-04T07:22:45 | 223,475,447 | 0 | 0 | Apache-2.0 | 2019-12-04T07:22:47 | 2019-11-22T19:48:41 | null | UTF-8 | Python | false | false | 96 | py | from .statistics_collector import StatisticsCollector
__all__ = [
'StatisticsCollector',
]
| [
"noreply@github.com"
] | LikHait.noreply@github.com |
4f5cb6ac5fc8f462986f60724930e07914f404ef | 11805f3f0ca426ae21b754526578fe6b69c9fd52 | /chinese_sentiment-master/model/cnn/debug.py | 51826f9ec8e3a7b64d0e1ab283d15ad75040ac14 | [] | no_license | chensheng1/NLP_emotion | 106838156224cfc1ab9491df908d92bfdfac2915 | f43760e7493aa4d360dd0c4d0bca8ba100614612 | refs/heads/master | 2023-03-22T15:54:16.107975 | 2021-03-08T15:00:46 | 2021-03-08T15:00:46 | 345,604,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | from .main import input_fn, model_fn, DATA_DIR
from pathlib import Path
import tensorflow as tf
tf.enable_eager_execution()
if __name__ == '__main__':
params = {
'dim': 300,
'nwords': 10,
'filter_sizes': [2, 3, 4, 5],
'num_filters': 128,
'dropout': 0.5,
'num_oov_buc... | [
"544740618@qq.com"
] | 544740618@qq.com |
92764a0d1a1dc7e71473df73ed3f20ac41169931 | 035df35ddd35782b2aef2cb6c4b7caeec7bdc6db | /manage.py | 8ab57b97b9e73ab23fe2c3eaffd6bceb43fa2c52 | [] | no_license | JamalKimpaev/polling-project | 4c81f8a77364d1060574fd2a8b0adbc4644c8aae | 1845ecbde9d436caca042dd12e7d02ec1aeb30c0 | refs/heads/main | 2023-07-10T02:54:26.340407 | 2021-08-12T18:57:12 | 2021-08-12T18:57:12 | 395,396,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'polling_system.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"oblepiha228@gmail.com"
] | oblepiha228@gmail.com |
be5388e2c28f3cb8570f1430864ecc938e4987d7 | 648b9fc98790267934fae7eba44dff118d0d53d4 | /chats/migrations/0001_initial.py | fe6e60ae9356210b6a8dab29f05af639ad9677d3 | [] | no_license | slcushing/django-rest-chat-app | 6aa83d5dde3f8844bd317c24e5cfe3bd9e18f44c | 80e566225611777a5b596b602583e7982bb9af4f | refs/heads/main | 2023-08-29T13:56:27.177718 | 2021-10-28T14:55:44 | 2021-10-28T14:55:44 | 416,808,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | # Generated by Django 3.2.8 on 2021-10-13 17:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Room',
fields=[
... | [
"slcushing@gmail.com"
] | slcushing@gmail.com |
0b1ea520891319bd3ec29901ce458c89203a9974 | 15a992391375efd487b6442daf4e9dd963167379 | /tests/runner.py | 7356581365e84bd1ae22e702cf2f4a2df1dc1e59 | [
"Apache-2.0"
] | permissive | Bala93/MONAI | b0e68e1b513adcd20eab5158d4a0e5c56347a2cd | e0a7eff5066da307a73df9145077f6f1fec7a514 | refs/heads/master | 2022-08-22T18:01:25.892982 | 2022-08-12T18:13:53 | 2022-08-12T18:13:53 | 259,398,958 | 2 | 0 | null | 2020-04-27T17:09:12 | 2020-04-27T17:09:11 | null | UTF-8 | Python | false | false | 5,491 | py | # Copyright (c) MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, so... | [
"noreply@github.com"
] | Bala93.noreply@github.com |
46f4838bef4eeb8fbc618a1af99d59f3b56201a7 | aa1587c93292e04e5fb004c5e887caea1d3782fb | /1-25/p024.py | 187f9efe916e7d52cc71f97c42580ceebcfaed63 | [] | no_license | borghol/eulerproject-python | 49588ab703a0030085c3c3b42ce637ffa791a932 | b5124b4357fab9afae6646a0cbf2187f403b2cb0 | refs/heads/master | 2020-11-24T19:32:42.870706 | 2020-01-05T05:33:22 | 2020-01-05T05:33:22 | 228,313,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | import math
numbers = [str(x) for x in range(0, 10)]
finalOrder = []
count = 0
while len(numbers) > 0:
for i in numbers:
if (math.factorial(len(numbers)-1) + count < 1000000):
count += math.factorial(len(numbers)-1)
else:
numbers.remove(i)
finalOrder.append(i)
... | [
"khaled.abulborghol@gmail.com"
] | khaled.abulborghol@gmail.com |
83d3b865710e7cb7f3f1ba1af62f84ae8aff8d0d | 941de1ff0f0c3f1912343d6254a92d233cdb0c0b | /LoopRestToFile.py | 6730c7ec0150c6c0e3afa948939020bcd203394a | [] | no_license | MrMiguelHackz/LoopThroughFile | e90a7d3b5d09efe6cd6d40915c8a9aff43aef8c2 | 62683c244b524d4fdb84f1ad2c21c4236ac9770c | refs/heads/master | 2020-06-07T23:08:46.642969 | 2019-06-21T14:37:59 | 2019-06-21T14:37:59 | 193,112,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | import requests
import json
import urllib3
import os
import os.path
import sys
import datetime
url = ''
pwd = '*'
user = ''
proxies = {
'http': '',
'https': '',
}
# Set proper headers
headers = {"Accept": "application/json"}
# Do the HTTP request
i = 0
x = 0
loop = 1
os.chdir("C:\\test\\")
while loop :
try:
... | [
"noreply@github.com"
] | MrMiguelHackz.noreply@github.com |
4816a2acbc1cf68841ea04a6f45ec025e1faa0e9 | d7fa3a86f914d1d1afe7423cc7b50010402fee22 | /certidude/firewall.py | 0253f5fe1b1f459ed73b79b526bc8f41031cfb0e | [
"MIT"
] | permissive | kmteras/certidude | 96af2a14dd447795a9a0c560cbca164959b46b90 | f9bf85c7306423455c9c182f0e69539c1dc1544d | refs/heads/master | 2021-06-22T17:10:32.746780 | 2017-08-17T10:08:42 | 2017-08-17T10:08:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,426 | py |
import falcon
import logging
logger = logging.getLogger("api")
def whitelist_subnets(subnets):
"""
Validate source IP address of API call against subnet list
"""
import falcon
def wrapper(func):
def wrapped(self, req, resp, *args, **kwargs):
# Check for administration subnet ... | [
"lauri.vosandi@gmail.com"
] | lauri.vosandi@gmail.com |
99fb00920c03a86a5554a9ae7a5368b59a0534bd | 2bfa09137c46f88b14c7b772eb0758d7461800ed | /models/two_tier/two_tier_generate16k.py | a81b3dea63984df69a9af1e96c87729625634507 | [
"CC-BY-4.0",
"Apache-2.0",
"MIT"
] | permissive | landmarco/mechromancy | e18fab6beba647f44f59dbdca7e065841745c6a9 | 5aba40c287978b9e957dba954be5078d0e33beb2 | refs/heads/master | 2020-06-23T18:38:40.792893 | 2019-10-10T17:56:49 | 2019-10-10T17:56:49 | 198,718,544 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,716 | py | """
RNN Audio Generation Model
Two-tier model, Quantized input
For more info:
$ python two_tier.py -h
How-to-run example:
sampleRNN$ pwd
/u/mehris/sampleRNN
sampleRNN$ \
THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python -u \
models/two_tier/two_tier.py --exp AXIS1 --n_frames 12 --frame_size 10 \
--weight_n... | [
"marc.loeffke@gmail.com"
] | marc.loeffke@gmail.com |
f04cfa1c8e45c8afac3256b904185d5a59c54180 | f8e6234ff0b3a4f2a30ad8c6e09f7b6d40ba9f0e | /mcscf/mc_ao2mo.py | 40301c13da0721d768b95a01fdf64d76bc6ecf8e | [
"BSD-2-Clause"
] | permissive | armunoz/pyscf | b358b90cfea46e4527eed997eaf509a11a282551 | 258167cabf2101148feadd3bc0da2dd2eccd725a | refs/heads/master | 2020-06-26T10:08:25.454426 | 2017-07-12T15:05:21 | 2017-07-12T15:05:21 | 97,016,486 | 0 | 0 | null | 2017-07-12T14:19:35 | 2017-07-12T14:19:34 | null | UTF-8 | Python | false | false | 14,827 | py | #!/usr/bin/env python
import sys
import ctypes
import time
import tempfile
from functools import reduce
import numpy
import h5py
from pyscf import lib
from pyscf.lib import logger
from pyscf import ao2mo
from pyscf.ao2mo import _ao2mo
from pyscf.ao2mo import outcore
# least memory requirements:
# nmo ncore ncas ou... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
988fcc3bad6c71902716794d5af98b5ed49ce94a | 1f936103af336af6bbd335f45d6baa55c426922b | /monatbx/test_cov.py | fed4bc94b6147527eeec78e5faf7cafd539bf891 | [] | 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 | 317 | py | import numpy as np
from cctbx.array_family import flex
G = [5, 6, 0.1, 20, 16, 12, 11, 10, 11.5, 15]
B = [100, 80, 200, 60, 70, 80, 85, 90, 70, 40]
rotx = [0.01, 0.002, 0.001, 0.05, 0.1, 0.025, 0.008, 0.01, 0.002, 0.001]
X = np.array([G, B, rotx])
print X
COV = np.cov(X)
print COV
CORR = np.correlate(X)
print CORR
| [
"monarin@gmail.com"
] | monarin@gmail.com |
b16c1500d5cf13bff4b310bfc9109ddaaa18abc4 | 02d27314e0d7dde8c99d89f372e4c80bd2f1bace | /Rossiter-McLaughlin_Effect/Analytic_Description/Approximations.py | 3e57f05668e461fbd758023b4c34055ba283965b | [
"MIT"
] | permissive | Shubhonkar-Paramanick/Rossiter-McLaughlin_Effect_for_Transiting_Exoplanetary_Systems | 978f5b1bf350cefca1d87da52519f65ddadf75b1 | 58bd42501f8856f9132ced4e21820e8eb617cb7c | refs/heads/main | 2023-01-20T05:54:33.926810 | 2020-11-30T20:31:20 | 2020-11-30T20:31:20 | 317,334,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,433 | py | #!/usr/bin/env python3
import numpy as np
import scipy as sp
import pandas as pd
import matplotlib.pyplot as plt
plt.rcParams['figure.figsize'] = [12,7]
zhe=0.1
gani = np.linspace(0,1-zhe,1000)
I1 = ((1/(16*(1-(gani**2))**(3/2)))*(-(8*gani**6)+(31*gani**4)-(36*gani**2)+16)) + (((zhe**2)/(256*(1-(gani**2))**(7/2)))*(-(1... | [
"noreply@github.com"
] | Shubhonkar-Paramanick.noreply@github.com |
4c130f1d7ab50ea7707adef47c427ff415ec9ec4 | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_08_01/aio/operations/_vpn_sites_configuration_operations.py | 528c2beb6e372606f8298a7459a2824db3f21598 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 8,266 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
b1f89024a3e500dfc6d1a34a218c55c6d6d0b5e4 | 9a97520afb0fecb128915e1aa02c369100386a7e | /compressor_data/migrations/0003_auto_20190801_1925.py | 42ae0f6c5d707f2493416610e3d3c5647ac22845 | [] | no_license | ujjwalkumar93/iot_data_list | b7f95a7f48f5facf194c92200a243e879507fb3b | d9afab7b3c39471fe731808cfd9efefbdf8dbce6 | refs/heads/master | 2020-06-28T09:15:24.149077 | 2019-08-02T08:30:07 | 2019-08-02T08:30:07 | 200,008,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | # Generated by Django 2.2.4 on 2019-08-01 13:55
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('compressor_data', '0002_auto_20190801_1343'),
]
operations = [
migrations.AddField(
... | [
"pathakujjwal93@gmail.com"
] | pathakujjwal93@gmail.com |
4605daa21593dccfe9560412c3fb87185a00fb91 | 726754863696235c66c8ed9aa184fc13ade33afe | /basics/rotation_count.py | 116e425096403014edc34a74e8a6695ac5528788 | [] | no_license | harshalms/python | ef6a3eeb93c5051528cb0b76fd600a2943e10616 | bfea8f00795c4308b09d80852cb995a8109c1568 | refs/heads/master | 2021-07-17T18:52:36.053780 | 2020-07-25T15:45:41 | 2020-07-25T15:45:41 | 189,624,661 | 0 | 0 | null | 2019-06-17T05:37:24 | 2019-05-31T16:20:52 | Python | UTF-8 | Python | false | false | 461 | py | '''GeeksForGeeks
Find the Rotation Count in Rotated Sorted array
Consider an array of distinct numbers sorted in increasing order.
The array has been rotated (clockwise) k number of times. Given such an array,
find the value of k.
Approch : Just find the index of minimum element.
'''
A = [15, 18, 2, 3, 6, 12]
def ind... | [
"harshal95iitk@gmail.com"
] | harshal95iitk@gmail.com |
a6ca78df6b38b09f43387e54190b5fc7fa7290d8 | b9ffddc4bc2bf325596bf212b3a137bd4e2b45d3 | /tests/snuba/api/endpoints/test_organization_discover_saved_query_detail.py | 6123b1b1828995050b5092450e0088af3d446643 | [
"BSD-2-Clause"
] | permissive | jeffjewiss/sentry | a6292cd191d48d78fc08e261863cd80d2f7e81c8 | aa991e51824f147b07639fdd5c3ff84eacf7ccef | refs/heads/master | 2020-05-02T14:38:18.291735 | 2019-03-27T14:12:26 | 2019-03-27T14:12:26 | 178,016,745 | 1 | 0 | BSD-3-Clause | 2019-03-27T14:55:27 | 2019-03-27T14:55:27 | null | UTF-8 | Python | false | false | 6,156 | py | from __future__ import absolute_import
import six
from sentry.testutils import APITestCase
from django.core.urlresolvers import reverse
from sentry.testutils import SnubaTestCase
from sentry.models import DiscoverSavedQuery, DiscoverSavedQueryProject
class OrganizationDiscoverSavedQueryDetailTest(APITestCase, Snuba... | [
"noreply@github.com"
] | jeffjewiss.noreply@github.com |
558d7e2d5eb7fe97fc2f30016762844eacf6e83c | 31efb53fde64bf9a8cf3da5051bdd4af98ccbf13 | /share/share_decorator.py | 84fbaa89b9693789ea3af6a93996f8caeefe223e | [
"Apache-2.0"
] | permissive | harryliang/tmpshare | 96b881e0063d8987cd481932eceaa7e100f89256 | 154091498ad69eab4f8b61692d7712475efbc181 | refs/heads/master | 2020-04-06T07:09:33.474966 | 2014-09-02T03:29:59 | 2014-09-02T03:29:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | #encoding=utf8
import functools
import json
import os
import settings
def ip_check(method):
@functools.wraps(method)
def wrapper(self, *args, **kwargs):
if settings.IP_CHECK:
remote_ip = self.request.remote_ip
try:
allowed_ip_list = set(json.load(file(os.path.jo... | [
"harry.liang@idiaoyan.com"
] | harry.liang@idiaoyan.com |
d6eb4465d48173282e20e3c125a9d5baed2ab578 | 9c82377aed550817a0a569dd3bcb30bbe7dbb961 | /twitter-oauth.py | 18959ebd107274e6c9746a8e0cee28f3185b86b3 | [] | no_license | bixiayan/SI_OAuth | 4c6d169ebce0ce640365b0fe435774002be4a656 | b3416afb388ed5d7cbe25390d1aa191428c823c5 | refs/heads/master | 2021-05-08T11:06:22.647848 | 2018-02-07T03:30:06 | 2018-02-07T03:30:06 | 119,878,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,126 | py | from requests_oauthlib import OAuth1Session
import secrets
client_key = secrets.api_key
client_secret = secrets.api_secret
# STEP 1: GET A REQUEST TOKEN
# We have to start by obtaining a 'request' token
# We will supply our client key and client secret
# ...otherwise no token -- you can't even get in the doo... | [
"noreply@github.com"
] | bixiayan.noreply@github.com |
4c61c4c46681034659d2ba466d5e2ff56f42cfef | da622f6d6ddc27ec49b059c605edec069fcda64c | /Livegram/mod/sql/__init__.py | 8e4f7a28623b66e741a50bbab634d31ce5551289 | [] | no_license | arupmandal/Livegram | baf6b8112b7dc5b2969366049cad6879b64b7501 | 9650cb596ea649118e1b61421e9fb3d106ab7d1d | refs/heads/main | 2023-02-07T13:03:26.700542 | 2021-01-02T12:29:15 | 2021-01-02T12:29:15 | 326,177,404 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session
from Livegram import Config
def start() -> scoped_session:
""" returns SQLAlchemy ScopedSession """
engine = create_engine(Config.DB_URI)
BASE.metad... | [
"noreply@github.com"
] | arupmandal.noreply@github.com |
f4e9e05d8f49cab8f597e4920e0ebf279ac1185a | 32274e14bce27331626f734aaf2e9074dec9bbf0 | /great_expectations/data_asset/__init__.py | 9de24563be3757e723d06cee5b996be4c8d615f5 | [
"Apache-2.0"
] | permissive | dataguage/great_expectations | 1036a3d20dc320ce2e9986ae18a84932bb1fad3b | dc94522ca9b6742c0c1844cf378b781f74dfc9b5 | refs/heads/master | 2022-07-04T18:38:21.332245 | 2020-05-04T17:56:02 | 2020-05-04T17:56:02 | 261,509,508 | 2 | 0 | Apache-2.0 | 2020-05-05T15:24:58 | 2020-05-05T15:24:57 | null | UTF-8 | Python | false | false | 76 | py | from .data_asset import DataAsset
from .file_data_asset import FileDataAsset | [
"james.p.campbell@gmail.com"
] | james.p.campbell@gmail.com |
8554912a8d043b6eb7ba2609bc2f017ec50a31cc | bc50264e99304bf11b3a8afc8e01472621446293 | /modules/bullet_physics/config.py | 969d613ef506f300af250c2732240cd7e2bfc8c4 | [
"MIT"
] | permissive | V-Sekai/godex | a37d28a92ce6585237da44d432d801c5d00a98b5 | d0ca9bf8ea303742a6aa2e88dadb85120e9504a5 | refs/heads/main | 2023-07-09T21:18:54.132422 | 2023-03-03T08:49:28 | 2023-03-03T08:49:28 | 664,382,957 | 2 | 0 | null | 2023-07-09T20:08:27 | 2023-07-09T20:08:26 | null | UTF-8 | Python | false | false | 138 | py | def can_build(env, platform):
env.module_add_dependencies("bullet_physics", ["godex"])
return True
def configure(env):
pass
| [
"info@andreacatania.com"
] | info@andreacatania.com |
2effeae7dc99bb7320d8dcf0a9f0946299302e1f | 46d396509807892de368ebcf454f04f21b2b6cc2 | /eCommerce/carts/migrations/0002_cart_subtotal.py | f2848a7b62140ab7a3094bc7dd5a100c218b23b6 | [] | no_license | akashbiradaar/Online-Shopping | 05ab3935599d42ffeed4c54fb17645b8599d0b33 | 5b72bfa786751c363e3099dd662fc9b6e4c7045f | refs/heads/master | 2020-03-30T12:47:15.728260 | 2018-10-04T08:32:24 | 2018-10-04T08:32:24 | 151,240,418 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-10-01 09:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('carts', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"akashbiradaar@gmail.com"
] | akashbiradaar@gmail.com |
706658a5ad3c0ba6ba13b0b90069ae2c6aca8d3d | 47deebe6fefedb01fdce5d4e82f58bb08f8e1e92 | /python core/Lesson_2/io_4.py | b4c12d1fa85d38f06e385bcd672cb795c9629322 | [] | no_license | developeryuldashev/python-core | 5bb162603bdb5782acf05e3fb25ca5dd6347067a | 08fca77c9cfde69d93a7875b3fb65b98f3dabd78 | refs/heads/main | 2023-08-21T03:33:12.160133 | 2021-10-19T04:56:53 | 2021-10-19T04:56:53 | 393,383,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | d=10
pi=3.14
l=pi*d
print(l) | [
"81365808+developeryuldashev@users.noreply.github.com"
] | 81365808+developeryuldashev@users.noreply.github.com |
5ed635daa9f623e4ef0ee66dfb42d6b5a05d4bd9 | 61c9d62a62d2b649bca7ddebaf3e46fc1aa94973 | /print_program.py | c340fd0d59ddce7985edddb36df6a2284bbe0801 | [
"Apache-2.0"
] | permissive | nividata-consultancy/SVIT | 79f2032f2353ce1a815b23dc56917e22e3ee94d9 | 09948d182063076ee85f5aed9cdacf6bbdc24a3a | refs/heads/master | 2020-12-04T02:17:40.503506 | 2020-01-03T10:55:29 | 2020-01-03T10:55:29 | 231,568,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | avengers = ["Iron Man", "Captain America", "Thor", "Hulk"]
justice_league = ["Batman", "Flash", "Aquaman"]
justice_league.append(avengers)
print(justice_league[2])
print(justice_league[2][1])
print(justice_league[0:2])
numbers = [1,2,3,4,5,6,7,8,9,10]
print(len(numbers))
print(max(numbers))
print(min(numbers))
pri... | [
"gunjan@nividata.com"
] | gunjan@nividata.com |
b11f0a5b1a074531753b3388db82d6ba54eb60f4 | b72226b758e3e7e14d63d5ab135bf090b2ef3747 | /visual/graphviz/tools.py | 06667527caa24e8080a57a380e02e941ea3041ad | [] | no_license | dylan-lawrence/ppredict | 44bd15cf868775fac5e2df274bf96acc48d0e1f3 | 2389aad2ea2fbc575f8fc5ac40425ccfb88c4816 | refs/heads/master | 2021-05-30T15:17:59.802950 | 2015-12-10T18:01:09 | 2015-12-10T18:01:09 | 45,797,831 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | # tools.py
import os
import errno
from ._compat import iteritems
__all__ = ['mkdirs', 'mapping_items']
def mkdirs(filename, mode=0o777):
"""Recursively create directories up to the path of filename as needed."""
path = os.path.dirname(filename)
if not path:
return
try:
os.makedirs(... | [
"dlawre14@slu.edu"
] | dlawre14@slu.edu |
660587319535f41cf427a3c7fec40c3a4d6ee083 | 3ca25075381bf4381ae1f2d144c489f4a0bbc5e1 | /A2070_Count_Positive_and_Negative_In_Lists.py | 3596e30dd2f076a63dc252f59a56f7c02278e8a9 | [] | no_license | sudevansujit/2_Python | 7c44b58024b24027f3d15a5fd473d31250ef91ad | 5060ac7a0f94e91f11866afd7f772be71ae4fa8a | refs/heads/master | 2021-07-05T20:52:04.549852 | 2020-08-06T17:27:46 | 2020-08-06T17:27:46 | 156,524,984 | 0 | 0 | null | 2020-03-18T16:23:40 | 2018-11-07T09:51:14 | Python | UTF-8 | Python | false | false | 448 | py | # Count positive and negative numbers in a list
L1 = [1,-3,-5,-7,-2,2,4,8,9]
positive = 0
negative = 0
for item in L1:
if (item >= 0):
positive = positive + 1
else:
negative = negative + 1
print(positive, "numbers are positive")
print(negative, "numbers are negative")
... | [
"noreply@github.com"
] | sudevansujit.noreply@github.com |
dca8dd72172381372dcb94f00fbeecad81c8ddd6 | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg_old/scg_Route/test_c37280.py | e1f0802b3947f00158ecb0ded8f58e68ea24a2c8 | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,359 | py | import pytest
import time
import sys
from page_obj.common.rail import *
from os.path import dirname, abspath
from page_obj.common.ssh import *
from page_obj.scg.scg_def_static_route import *
from page_obj.scg.scg_def_interface import *
sys.path.insert(0, dirname(dirname(abspath(__file__))))
test_id = 37280... | [
"15501866985@163.com"
] | 15501866985@163.com |
fc88a0e18d5717a453a1707aa88e30ca3f5e565d | cd143b512f1357b49cefce25c4746d22ca32dc70 | /ArticleCollect/ArticleCollect/spiders/symantec_spider.py | 1a3e5b02c899a9069125ceeeb42437be59730cba | [] | no_license | Maggie147/ArticleSpider | 90be139d9ff9d49c099d0af2743f82b84f830e6b | 3daf080841b97f443b09b4a9fc1a674e134783d5 | refs/heads/master | 2021-09-12T15:28:50.095357 | 2018-04-18T02:39:38 | 2018-04-18T02:39:38 | 112,554,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,340 | py | # -*- coding: utf-8 -*-
#
# Project: ArticleCollect (https://www.symantec.com)
# author : tx
# Update : 2017-12-06
#
# from w3lib.url import urljoin
import scrapy
from ArticleCollect.items import ArticlecollectItem
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
import time... | [
"tianxueol@outlook.com"
] | tianxueol@outlook.com |
d91e55ee4978d6e82df75b4144ece6a112ac8abf | 7a383f9c146ea4cd506fb526d1e538d499ca3b9f | /Modul7/2.py | ab7ac5eea8c84effad13deba56c2ef72b004854a | [] | no_license | L200170174/prak_ASD_E | 1f6867709dd864f4b9e70cf940dc8d5ddc48aa0d | 21354758fe281b4856766bcacfdcd28225cdf880 | refs/heads/master | 2020-04-25T22:41:47.957380 | 2019-06-16T03:28:53 | 2019-06-16T03:28:53 | 173,119,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | import re
f = open('Indonesia.txt', 'r', encoding = 'latin1')
teks = f.read()
f.close
pola = r'di+\w+'
print(re.findall(pola, teks))
| [
"noreply@github.com"
] | L200170174.noreply@github.com |
cb35567994667e4557959d82c254ecb10ebecead | e14669883c3fccbc79dd63f6edec7a9af9916611 | /erg5_test2.py | d53246d125b6a2786cb3eee9004f354e11cd53ad | [] | no_license | kostasartKKM/semweb1718a1 | 9fd48dcf99c517977689474b636e1b7349e36d58 | df314fdbd0fb1713e6ecd580101e981ae4c1e267 | refs/heads/master | 2020-03-18T11:55:23.906542 | 2018-05-24T10:41:17 | 2018-05-24T10:41:17 | 134,698,399 | 0 | 0 | null | 2018-05-24T10:16:49 | 2018-05-24T10:16:48 | null | UTF-8 | Python | false | false | 524 | py | import csv
with open('out.csv','r',newline='') as ifp:
ir = csv.reader(ifp)
for s,p,o in ir:
s = '_'+s[1:]
p = '<'+p+'>'
if p == '<http://dilab77.ionio.gr/sw/p14sken/myvocab#ΗΜΕΡΑ>' :
o = '"'+o+'"'
elif p =='<http://dilab77.ionio.gr/sw/p14sken/myvocab#ΕΝΑΡΞΗ>' or p =='<http://dilab77.ionio.gr/sw... | [
"noreply@github.com"
] | kostasartKKM.noreply@github.com |
3a1dd1561a71cc04502f4922a3693f05bb93758c | 3ab994e70eddd11ba50c1f7d8cfd4c22fe17f1e6 | /DQN entree image/deep_reinforcement_img_buffer.py | 555c018aedd92baa21595d7e9006318847df6b5e | [] | no_license | JuliCou/Reinforcement_learning | 6595e34237b30f3e306140a48eca8c6464df9d60 | 3d1768979c8cd775097bf878e605e158d733d79c | refs/heads/main | 2023-04-02T13:07:55.530075 | 2021-04-12T17:26:05 | 2021-04-12T17:26:05 | 352,922,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,992 | py | import math
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torchvision.transforms as T
import copy
import random
import imageio
# Sauvegarde image numpy
from PIL import Image
import collections
def generate_grille_jeu(taille_grille=4, nb_drag... | [
"julie.courgibet@cgi.com"
] | julie.courgibet@cgi.com |
d0418164f2a0982bdf00edb775d1d603a7460649 | 20eb132f7c37c657c19fdd3ce6c1fc0418ac43c5 | /src/message.py | 90072fbc14faf441c11e77dea17af77de7037c99 | [] | no_license | ThomasVy/P2P-Messaging-App | 27663c317ae11f4fcab53840d593f7ebf198b8ce | 1bfe33b388518073bbacafd05d2ad1edf5524969 | refs/heads/master | 2023-07-30T23:03:35.673487 | 2021-09-09T23:06:16 | 2021-09-09T23:06:16 | 331,109,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | # message.py file
# this class will hold the information that is used in UDP Server
# CPSC 559 Project
# By Zachery Sims & Thomas Vy
from address import Address
class Message:
def __init__(self, message: str, source: Address, timestamp: str) -> None:
self.__type = message[:4] #type of message
self... | [
"vythomas97@gmail.com"
] | vythomas97@gmail.com |
3cd3f7bd6dce506df96e8ca520071ed2b1cdcb02 | ae6b1e0983357816733e3753ed658816eb39061d | /project/urls.py | fc646c24583ed176ef2c41dbea0f889dd509c1b4 | [] | no_license | thedevsaddam/dj-project | 2262ce2312826b9f6e3cd539fc3d60935434b2a0 | ddb4ff86f76cbf634ab216014dc3733c171f1915 | refs/heads/master | 2020-04-06T07:06:21.989597 | 2016-09-14T18:28:59 | 2016-09-14T18:28:59 | 65,585,158 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | from django.contrib import admin
from django.conf.urls import url, include
from django.contrib.auth.models import User
from rest_framework import routers, serializers, viewsets
# Serializers define the API representation.
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Use... | [
"thedevsaddam@gmail.com"
] | thedevsaddam@gmail.com |
dc4851b40cb641b66fe8f67c685289776001336a | 66fa0bcfe8fcd9e5087caf7e0b42e944ec636fc6 | /catalog/models.py | bcfdd700c38e2be4f0d8b7dac61af1245336ebd9 | [] | no_license | vintkor/for_prom | 899a7eb70978c1d4d77bf3a958d11423fd1bcda5 | 4b692c192d931e2ffb97dcd36bb7f31b242f848b | refs/heads/master | 2022-12-09T05:49:11.150879 | 2017-08-21T20:37:51 | 2017-08-21T20:37:51 | 99,605,489 | 0 | 0 | null | 2022-12-08T00:41:44 | 2017-08-07T18:02:53 | Python | UTF-8 | Python | false | false | 9,434 | py | from django.db import models
from testsite.baseModel import BaseModel
from ckeditor_uploader.fields import RichTextUploadingField
from mptt.models import MPTTModel, TreeForeignKey
from feature.models import Set, Feature, Unit, Value
from django.utils.crypto import get_random_string
from PIL import Image
from resizeimag... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
ca97a8123844f451a7a157676edc3882987f0da5 | 128cf1e8485a18f97df8afb391186ee9fe5e1620 | /lib/bot/__init__.py | dfe74beeaec15bb39bea4df62d705f028cdf9ee5 | [] | no_license | iDefault1337/updated-discord.py-tutorial | b1ed325da5e3b2fe06fea33e4d3dd6975797b0bb | c772ee4911d3602811b0451f02a98fda6ffa1372 | refs/heads/master | 2022-11-12T03:42:28.518978 | 2020-06-24T16:21:15 | 2020-06-24T16:21:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,206 | py | from asyncio import sleep
from datetime import datetime
from glob import glob
from apscheduler.schedulers.asyncio import AsyncIOScheduler
from apscheduler.triggers.cron import CronTrigger
from discord import Embed, File, DMChannel
from discord.errors import HTTPException, Forbidden
from discord.ext.commands import Bot... | [
"43846948+parafoxia@users.noreply.github.com"
] | 43846948+parafoxia@users.noreply.github.com |
cbeb7c52b69ccb08063d53ce62a2cf21c57256d2 | df6a2530aee50aa31aa025957201725a8a3bdbda | /coffee.py | 97476f8d2f0d4d49ecf811dc7c31196ec5bbffeb | [] | no_license | DragonofDwest/Tic-Tac-Toe | 6aee0b54b992385c3e8ce3f841c43fe78fbc8d0a | e34826157898ae8e66ea3880b02e732c5476eaa5 | refs/heads/master | 2023-01-01T21:07:57.491475 | 2020-10-31T14:51:00 | 2020-10-31T14:51:00 | 285,864,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,085 | py | # water_tank = 400
# milk_tank = 540
# coffee_bean_bag = 120
# disposable_cups = 9
# cash = 550
#
#
# def stock():
# print(f"The coffee machine has: \n{water_tank} of water \n{milk_tank} of milk")
# print(f"{coffee_bean_bag} of coffee beans \n{disposable_cups} of disposable cups")
# print(f"{cash}... | [
"noreply@github.com"
] | DragonofDwest.noreply@github.com |
493d520c0d07928df21fe61e3135dd80f8708dd2 | bd9744fcb00ad0884bc996cc314bbaab6644a165 | /kerasLSTMStock1to1.py | 8dc42fbf6bdc533e0c8bcd70befdfa7d94677112 | [] | no_license | q275212/tensorflow_study | 488e9c51d27230a74329dc1ab24fd5f15bfd205b | 1fa15c3787e8984bad393963f7949aad23d45b24 | refs/heads/master | 2020-12-21T11:09:45.280031 | 2020-01-05T09:21:23 | 2020-01-05T09:21:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,605 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 1 21:17:06 2020
@author: 64054
"""
import os
import sys
#数据预处理以及绘制图形需要的模块
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
##
from sklearn.preprocessing import MinMaxScaler
from keras.models import Sequential
from keras.layers import Dense, LSTM, ... | [
"horace@handytoo.com"
] | horace@handytoo.com |
4d42595a22f952ddfa1e6967602dbe48315a35cb | bf43cd7700d0d92163139c483faee0f5434e4bf1 | /day13/solve_pt2.py | a6f039d316680521b13046b071776093af69a7b2 | [
"ISC"
] | permissive | tmward/aoc2020 | e3a61e1d3c7780126a52bb2de6d4a951ce4c5a64 | 6181054cbc5fefd7e286a5f2350ce1541d48ac9f | refs/heads/master | 2023-02-02T16:47:33.858071 | 2020-12-19T19:09:47 | 2020-12-19T19:09:47 | 317,907,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | #!/usr/bin/env python3
from itertools import count
import sys
def get_input(filename):
with open(filename, "r") as ifile:
return [
int(t) if t != "x" else 1 for t in ifile.read().splitlines()[1].split(",")
]
def solve(buses):
n = 1
step = 1
for i, b in enumerate(buses):
... | [
"thomas@thomasward.com"
] | thomas@thomasward.com |
1d029126189b24c00d14fdff00f46f246760742a | 0c6cdebed866334a0a5085f481c15d328c00a6e0 | /run.py | f46b421c0f5f670dd82255c8447a25f420ca52d3 | [] | no_license | CarolinaCobo/love-sandwiches | 794985b98a4837e0e89b49cb0bafdbf9250fe90e | f70a0a7d79042266ec9e65b3ee8437dfb3279a97 | refs/heads/main | 2023-06-26T01:07:01.055762 | 2021-07-24T15:50:29 | 2021-07-24T15:50:29 | 388,381,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,536 | py | import gspread
from google.oauth2.service_account import Credentials
import json
# Every Google account has as an IAM (Identity and Access Management)
# configuration which specifies what the user has access to.
# The SCOPE lists the APIs that the program should access in order to run.
SCOPE = [
"https://www.goog... | [
"ccobo.dev@gmail.com"
] | ccobo.dev@gmail.com |
33027ad3fbaac7324f07bb19b17be288ebc90dd7 | 950c4953963316983624ad9164211e2d8fc90a57 | /BinaryConvertor.py | a5ccf48237a929faa60af2acafcf47c4080d23f8 | [] | no_license | jftcampbell1/PythonCode | a14c095ba8d9f4cbeea1a586e263b3f27df7b707 | f0e695b1704cda93391f44e0b6164ed724104887 | refs/heads/master | 2020-04-19T18:37:05.217402 | 2019-01-30T15:42:33 | 2019-01-30T15:42:33 | 168,367,547 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | #Binary Covertor
bNumber = input("Please enter a binary number: ")
while len(bNumber) != 8:
bNumber = input("Please enter a binary number, this number must be 8 bits long: ")
b1 = bNumber[0]
b2 = bNumber[1]
b3 = bNumber[2]
b4 = bNumber[3]
b5 = bNumber[4]
b6 = bNumber[5]
b7 = bNumber[6]
b8 = bNumber[7... | [
"jamescampbell@Jamess-MacBook-Pro.local"
] | jamescampbell@Jamess-MacBook-Pro.local |
84316df917b8a72f472a5c7a2a0d9811cdf8385b | 72b660c3487a5484fb94cbd25855a6e6a146acbd | /api/utils.py | 04d689b49323431f013460a5cd0dec0c44c90a11 | [] | no_license | jitendrapurbey/qr_api | 77b17e387b4b34243be21ed8f1b3f0335e0435d1 | a12a6027b08a19a5eb1fb3365d4b1caf22b07086 | refs/heads/master | 2023-08-19T11:40:51.727393 | 2023-07-18T03:09:38 | 2023-07-18T03:09:38 | 198,996,041 | 11 | 4 | null | 2023-07-25T21:53:05 | 2019-07-26T10:15:53 | Python | UTF-8 | Python | false | false | 691 | py | import base64
import qrcode
import io
def generate_qr_code(data, size=10, border=0):
qr = qrcode.QRCode(version=1, error_correction=qrcode.constants.ERROR_CORRECT_L, box_size=size, border=border)
qr.add_data(data)
qr.make(fit=True)
img = qr.make_image()
return img
def generate_qr(url_text):
... | [
"jitendra.purbey@xtagelabs.com"
] | jitendra.purbey@xtagelabs.com |
4c4ac42971c3ea60c5afb109b6ebadd8078ea34b | 9dd07ac7212123aa361a0aa323ae185e9c889a19 | /main.py | 730c28e7b35da234c6df5511330b2c7b2e2f27ba | [] | no_license | detectiveSnowball/WiresBot | 2c948cf946775d0e7c110f41a8a290e750d57351 | 6eebac6f38c504970624bf1f407af5704a2572e0 | refs/heads/master | 2023-08-07T09:23:31.234613 | 2021-10-09T20:35:21 | 2021-10-09T20:35:21 | 395,163,820 | 0 | 0 | null | 2021-10-09T20:35:02 | 2021-08-12T01:49:10 | Python | UTF-8 | Python | false | false | 993 | py | import discord
import os
import time
import pet
client = discord.Client()
@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))
@client.event
async def on_message(message):
if (message.author == client.user):
return
if "genshin" in message.content.lower() or "impact... | [
"detectiveboudreaux@gmail.com"
] | detectiveboudreaux@gmail.com |
9229b2f555f79cbed6c76a6d4cd3c57907fe831f | 4e92106302c784431115cea8e822f56234e2684b | /lib/plot.py | 5c515658ec0f0625310cab69f0e794fed096ddaf | [] | no_license | CardiacModelling/cside-2018 | 950a7cd92c791fd1840e38ce1726d1c13f68b267 | d91df2bc71a6e2fb18e1d009a3f5722b1e0fc271 | refs/heads/master | 2020-04-15T17:09:13.118292 | 2019-03-12T11:51:01 | 2019-03-12T11:51:01 | 164,862,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,223 | py | #
# Quick diagnostic plots.
#
# This file is part of PINTS.
# Copyright (c) 2017-2018, University of Oxford.
# For licensing information, see the LICENSE file distributed with the PINTS
# software package.
#
from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
impo... | [
"chonloklei@gmail.com"
] | chonloklei@gmail.com |
7ca2ee68e6fd0e5017398a30e23f37def6d5d4de | 65a8ee4c587307e5ab47fabdd31d0467621e2f78 | /models/province.py | 088f241df7507a3b270a059ea11cd6264b01f309 | [] | no_license | yndlsds/ynuweilan | 4ae69f8bf95d40b8b233b56ec0b54bd9ab4df174 | 5158073a9301aaf54fb72add38f2fc9638f6257e | refs/heads/master | 2016-09-06T18:31:54.622603 | 2014-03-26T06:05:45 | 2014-03-26T06:05:45 | 18,127,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | from mysite import db
class Province(db.Model):
__tablename__ = "Province"
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(8), default="")
pinyin = db.Column(db.String(8), default="")
def __init__(self, *args, **kwargs):
super(Province, self).__init__(*args, **kwargs)
def __st... | [
"yndlsds@126.com"
] | yndlsds@126.com |
9ee2cd7d084dc0e32bc6d712119679edb830780a | e7c4f2094da7239a5fad2e4b8f5a52e7ef474290 | /sloth/gui/plot/stackview1D.py | 965fc32cbcfd2662787fa50360bd1630a0500b9f | [
"BSD-3-Clause"
] | permissive | maurov/xraysloth | 27728cff811460e70e04936d70664334f36a42d9 | d0ff10530833fa8b0866f7303a6a8c99d5a9b208 | refs/heads/master | 2023-03-31T07:24:26.803914 | 2023-03-27T22:20:46 | 2023-03-27T22:20:46 | 23,457,349 | 6 | 3 | BSD-3-Clause | 2019-05-02T11:08:21 | 2014-08-29T08:13:34 | Python | UTF-8 | Python | false | false | 6,846 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Viewer for a stack of 1D plots
==============================
"""
import numpy as np
from silx.gui import qt
from matplotlib.pyplot import cm
from silx.gui.widgets.FrameBrowser import HorizontalSliderWithBrowser
from sloth.gui.plot.plot1D import Plot1D
__credits__ = [... | [
"mauro.rovezzi@gmail.com"
] | mauro.rovezzi@gmail.com |
4c6e20d7f775e2a7e143468dbc96518a243c779d | bb5b2f2ddb59b3b7b55851f840fa5d76c921f505 | /gitplay_site/urls.py | cf23b869fdb3f61e5ade4b3c335f90b2ca891ae8 | [] | no_license | padrethecat/gitplay | 9bdb79ad153e11bef30ff5069fa32af3bfc6085f | 0f383678fbe9e66b5a5d8c4421032cc170b27a4c | refs/heads/master | 2016-09-06T15:18:04.413935 | 2015-06-18T04:35:27 | 2015-06-18T04:35:27 | 37,637,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | """gitplay_site URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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')
Clas... | [
"bryanwh@a45e60c66237.ant.amazon.com"
] | bryanwh@a45e60c66237.ant.amazon.com |
2463293afc1d93b7f309b6a7e5570b015a89f48d | a602aefd8531cd14d889c195fcd509bda27e0950 | /POO/association.py | 139521e1c503ae846545030a3e7e02d7441382d6 | [] | no_license | JeanAfonso/CursoUdemyPython | ed7967acf2fc534a5ce20ce541d452a052ac320a | 99fd941c98c8185e9959eabfd6a7f6e796f6aeee | refs/heads/main | 2023-08-02T13:06:46.787808 | 2021-09-19T04:18:33 | 2021-09-19T04:18:33 | 382,742,486 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | from classesmodules import Writer
from classesmodules import Pen
from classesmodules import TypeWriter
writer = Writer('joaozinho')
pen = Pen('Bic')
machine = TypeWriter()
writer.tool = machine
writer.tool.writing()
del writer
print(pen.brand)
machine.writing()
| [
"42818833+JeanAfonso@users.noreply.github.com"
] | 42818833+JeanAfonso@users.noreply.github.com |
d26c542a54ba6d12dbca64aee5e633b40f76419d | 7a13cbfdf7b703e86301ae93093de6c8dd5dbb13 | /urls.py | 15b2d5c185711deb830053e1be3b04b5930f33f7 | [] | no_license | vaughns/pystar-work-myproject | 8c4a633b4bf2c8a51b2f9ab887f4da7defc557f5 | f6f460cba7cb2fa5d23c0d5b2529002c5df2eb07 | refs/heads/master | 2021-05-26T15:55:41.602454 | 2011-03-26T20:23:14 | 2011-03-26T20:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
(r'^$', 'polls.views.redirect_to_polls'),
(r'^polls/$', 'polls.views.index'),
(r'^polls/(\d+)/$', 'polls.views.... | [
"vani.ramakrishnan@gmail.com"
] | vani.ramakrishnan@gmail.com |
d814ca9c6da927cb9c27703d69bf0cceb5742c21 | e077589d9b137aa9b7cbdf3e50869c074a842dbc | /apps/front/decorators.py | 94efc1107f7b8e3ec0ecc3efd5a30621cd8e0c33 | [] | no_license | 2228505521/zlbbs | a5059cae4737982a83c1eac89bc25590c92db849 | 220076ad331595437a0d8997e936ab5922d81333 | refs/heads/master | 2020-03-21T22:33:01.552443 | 2018-07-04T15:30:17 | 2018-07-04T15:30:17 | 139,133,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py |
from flask import session, redirect, url_for, g
from functools import wraps
import config
def login_required(func):
@wraps(func)
def inner(*args, **kwargs):
user_id = session.get(config.FRONT_USER_ID)
if config.FRONT_USER_ID in session:
return func(*args, **kwargs)
else:... | [
"2228505521qq.com"
] | 2228505521qq.com |
3efd1076857cbe871a485e9d14e6898d2f15a523 | c679493b52a82875ffc862246a510649fb134601 | /visualization.py | 7040fe26fa73ba6d414ea5b3eae2e13bffdb864d | [] | no_license | ahj1592/EDA_tools | 77f55efb6811af2a252c2434981da9326b3732f2 | e9e214d7d5cd22f147dc9effac64d001cc5944e3 | refs/heads/main | 2023-04-24T08:40:22.931650 | 2021-05-01T06:51:31 | 2021-05-01T06:51:31 | 363,340,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,149 | py | import numpy as np
import pandas as pd
from pandas.api.types import is_numeric_dtype, is_categorical_dtype
import matplotlib.pyplot as plt
import seaborn as sns
def init_plot_theme():
'''
Note:
palette ref: http://hleecaster.com/python-seaborn-color/
'''
sns.set_theme('poster', palette... | [
"noreply@github.com"
] | ahj1592.noreply@github.com |
3bd3fca8d7656cbcc27d70129eef1ca5de15881c | bd0c4e28f2814ce93d6dbc6ee941a37894918225 | /cnn_cleaner13400_3conv2d_2drop_flt3x3_AWS.py | f7083639546a2dc3485dd2486b37767a0b9c96b9 | [] | no_license | gretchenriggs/AWS_repo | 2011c30496fde25e3abbd800d2f0162d4abe0f42 | f39605040b6446698478e74442e2d504f87fba12 | refs/heads/master | 2021-01-21T10:04:35.233870 | 2017-03-17T20:38:07 | 2017-03-17T20:38:07 | 83,360,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,754 | py | ''' Running CNN to classify satellite images as containing only natural
objects (0) or containing some man-made objects (1).
Using Theano, with Tensorflow image_dim_ordering :
(# images, # rows, # cols, # channels)
(# images, 124, 124, 3) for the X_train images below
'''
import cPickle
import numpy as n... | [
"gretchen.m.riggs@gmail.com"
] | gretchen.m.riggs@gmail.com |
b7c6cb163f6f35915e4fd76d905f8bb4b2ff6646 | 23bdcb74f9c4d98ff790d140bea56fbb0fd7bbbd | /app/env/Lib/site-packages/sqlalchemy/dialects/mysql/base.py | 2bba2f81a7249980748bccf376d1a90900ce35f0 | [
"MIT"
] | permissive | OswaldoCaleone/transporte_uniescolar | 85c680c062fa14d0bc90afa60f7434b059fdf245 | 1ef10869358457a6a9d0f04df891ce4eb0905887 | refs/heads/main | 2023-08-30T18:37:11.496451 | 2021-11-12T13:35:45 | 2021-11-12T13:35:45 | 429,673,776 | 1 | 0 | MIT | 2021-11-19T04:53:24 | 2021-11-19T04:53:24 | null | UTF-8 | Python | false | false | 117,932 | py | # mysql/base.py
# Copyright (C) 2005-2021 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php
r"""
.. dialect:: mysql
:name: MySQL / MariaDB
:full_support: 5.6, 5.7, 8.0 ... | [
"92728746+alexpls2021@users.noreply.github.com"
] | 92728746+alexpls2021@users.noreply.github.com |
6860caabac9b63fc7d3b36420c4d2b640cf5f8ce | 5fd7f9c9b2f87f1a329958b934aa3ae309fdad40 | /conin_market_0/coin.py | 23b55b26a91fdaa61678c10813e97c8453153924 | [] | no_license | gollumHome/coin_market | f598a2902afe7ec654ca709d2727507861f53cdf | c033dd2f0609505c5e34533e75f3df1b4c58032b | refs/heads/master | 2020-03-15T12:48:09.016203 | 2018-05-05T02:23:28 | 2018-05-05T02:23:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,240 | py | #! usr/bin/python
# -*-coding:utf8-*-
import requests
from lxml import etree
from email.header import Header
from email.mime.text import MIMEText
from email.utils import parseaddr, formataddr
import smtplib
from constant import coin_list
from constant import coin_usdt
from constant import smtp_server
from constant ... | [
"1025951714@qq.com"
] | 1025951714@qq.com |
c4194b35b0c4d19fbf61ada823bfe4a80aa83e71 | 40f4908483b98fc4f370ff4f2d520e1284d045b3 | /phase02/immortals_repo/harness/pymmortals/generated/com/securboration/immortals/ontology/resources/memory/physicalmemoryresource.py | 9be4f40b65705d8717bea20004f42fc927ec8dd1 | [] | no_license | TF-185/bbn-immortals | 7f70610bdbbcbf649f3d9021f087baaa76f0d8ca | e298540f7b5f201779213850291337a8bded66c7 | refs/heads/master | 2023-05-31T00:16:42.522840 | 2019-10-24T21:45:07 | 2019-10-24T21:45:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | from pymmortals.generated.com.securboration.immortals.ontology.property.property import Property
from pymmortals.generated.com.securboration.immortals.ontology.resources.memory.memoryresource import MemoryResource
from pymmortals.generated.com.securboration.immortals.ontology.resources.memory.memorytype import MemoryTy... | [
"awellman@bbn.com"
] | awellman@bbn.com |
cbc3968f2cb0225fcf1812ccf11da14a2c4830b0 | b49ff69cdabf0e2117934d3f785bfc444c2c4f47 | /ppp.py | 7aba8cde31925de77ddcee5df5c40669d56d26fc | [] | no_license | KristianOksavik/TKoT | e0744872eb4dcdbb04b2d19863b586356eb033fa | da07cd5ee776a8233f3209968ef5ea57f018c78f | refs/heads/master | 2020-05-02T20:51:50.721832 | 2019-04-25T12:28:46 | 2019-04-25T12:28:46 | 178,203,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | #!/urs/bin/python3
# oppgave en (classes)
class kjoretoy:
navn = ""
variant = "bil"
farge = ""
verdi = 100.000
def besrkivelse(self):
beskrivelse_str = " %s er en %s %s verdt kr %.2f." % (self.navn, self.farge, self.variant, self.verdi)
print (beskrivelse_str)
bil1 = kjoretoy()
b... | [
"danielolsen88@gmail.com"
] | danielolsen88@gmail.com |
3e17b5f9f01afa7784a6d968c6969279490e9932 | 776b78ab67e3db728999b45f93f3be70ef11b477 | /Code/multivariate.py | e55e7cf9df662dddee3435bc4ac94a0cd324bd33 | [] | no_license | bexshinderman/DSMI_Code | 724b80eed29171cdd523de56ae43e5e52c7a74af | f488510cc9247a97208c902943da42894c699ec3 | refs/heads/master | 2021-03-29T15:13:35.295441 | 2020-06-11T06:55:10 | 2020-06-11T06:55:10 | 247,963,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,425 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 10 10:58:17 2020
@author: shind
"""
import numpy as np
data = np.loadtxt("artifical_lin.txt")
print(data)
print("*********************")
X = data[:, :-1] # select all the rows [:, in the data object and all the columns except the last one ,:-1
y = data[:, -1] # select al... | [
"bex@bex.com"
] | bex@bex.com |
ad60a308941a31bd7b29668a32b898e25a1161fc | 250199cdee694b4e0f6d0f87335d791fe6f1e9c6 | /Class_Demos/trips/apps/logreg/views.py | 7e904551e08b4857a16caa21f18eaf741058178e | [] | no_license | makijurowski/dojo-week7 | d23adf763f7f1bad7fc3c72eedfc4338f952f168 | 56a36e98f2e565071756513655d1b88581116c6e | refs/heads/master | 2023-04-14T06:03:56.616197 | 2017-10-07T02:49:18 | 2017-10-07T02:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import HttpResponse, redirect, render
from django.views import View
# Create your views here.
# def index(request):
# response = "Placeholder to verify logreg creation."
# return HttpResponse(response)
class LandingView(Vie... | [
"makiroggers@gmail.com"
] | makiroggers@gmail.com |
9ebcfe440aadfcb8bf00181e22e0cfadd7c707ac | 9b6a8923e783bd2641d7af3b118ff83f38c1de31 | /review/list/list.py | db0572268d2cf805fbed1cf651fd1c590a2e4f44 | [] | no_license | mbrsagor/PyLearn | 1c625698802fc5325ea06b754dc9b80d716d9f31 | 94e68f10efd1f5b1a26d1fd965a29dbbe6c2253d | refs/heads/master | 2023-02-25T05:50:23.530150 | 2021-01-31T19:09:01 | 2021-01-31T19:09:01 | 263,316,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | students = [
{
"name": "Jacob Martin",
"father name": "Ros Martin",
"Address": "123 Hill Street",
}, {
"name": "Angela Stevens",
"father name": "Robert Stevens",
"Address": "3 Upper Street London",
}, {
"name": "Ricky Smart",
"father name": "Wi... | [
"mbrsagor@gmail.com"
] | mbrsagor@gmail.com |
39a78544f35be6ef9bef4d434c0609cc0f0f6d53 | 5eb29ce7104e10a399d9afd7e253f029bf8bc0ff | /workflows/images-incremental-update/image_dl.py | 642aff4941ac111e9fcba03ef642bc5941dbcc25 | [
"BSD-2-Clause"
] | permissive | svebk/DeepSentiBank_memex | 69789dc09316e97aad711edeb251837a60184e7e | 4e69ce66e3a177817ff360ddc263f55c6e0b63f7 | refs/heads/master | 2021-01-18T18:55:10.870052 | 2017-10-19T22:51:29 | 2017-10-19T22:51:29 | 36,091,024 | 22 | 1 | null | 2017-02-09T20:31:20 | 2015-05-22T19:20:54 | Python | UTF-8 | Python | false | false | 11,040 | py | import requests
imagedltimeout=3
class UnknownImageFormat(Exception):
pass
def get_image_size_and_format(input):
# adapted from https://github.com/scardine/image_size
"""
Return (width, height, format) for a given img file content stream.
No external dependencies except the struct modules from cor... | [
"svebor.karaman@gmail.com"
] | svebor.karaman@gmail.com |
0d17cb5e6e0e5521324e159484f2ba82a098d3e4 | cf5cc32f4576b521c6f30b98fcaf4581941e3d42 | /frjj/industry/indu.py | ec5990991b74be12224e1deb0d062d3dd1247e81 | [] | no_license | ZhiweiGiHub/my_factors | e9ce0b264bfb448ef56d8dbaa0862997880b8ab4 | 00d37f1fc892071b4fa6822ff1182245c5fa823b | refs/heads/master | 2020-07-13T08:53:49.258337 | 2019-08-29T01:07:05 | 2019-08-29T01:07:05 | 205,050,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,671 | py | import pandas as pd
from tqdm import tqdm
from api import get_data_crosssection_genaral, get_data_panel, get_tradingdays, get_data_crosssection
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.ticker as ticker
banchmark = '000905.SH'
index_for_simple_weight = '000905.SH'
top_num = None
begin_date =... | [
"1976349775@qq.com"
] | 1976349775@qq.com |
0a2c7d21835cec969faaa3feb05c6c726d848605 | 26365e45a64f7809f62be4981c9f77ff8796047f | /scripting/utils.py | f93a5db4993dc449aaef9a1eb143511564b0b578 | [] | no_license | gabrielelanaro/scripting | 42e79d77c9568e8b45144a7a02dbfe084cbb96b5 | 65c3a127611f15782e548189d1f29535e12da3bf | refs/heads/master | 2021-01-15T22:29:22.475259 | 2013-05-24T17:45:11 | 2013-05-24T17:45:11 | 1,071,502 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | """Functions of generic utility
"""
def partition(alist, indices):
return [alist[i:j] for i, j in zip([0]+indices, indices+[None])] | [
"gabriele.lanaro@gmail.com"
] | gabriele.lanaro@gmail.com |
199de7e9f97a79772b2fbd93c9619b55d9fdb18a | 930eb77f49c60c6be7f49243c14658f3d70a3532 | /kNN.py | 475ace4397aa7efcd122c44476a5874543c95f9c | [] | no_license | lonelam/LinearPy | f55489f66249c64f4fee2d582e4369e6782d02d7 | 642060510670a09b3b51e74111b121dfa7e8929b | refs/heads/master | 2021-09-13T05:52:59.470923 | 2018-04-25T18:24:38 | 2018-04-25T18:24:38 | 116,158,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,530 | py | from numpy import *
import operator
def file2matrix(filename):
fr = open(filename)
arrayOfLines = fr.readlines()
numberOfLines = len(arrayOfLines)
returnMat = zeros((numberOfLines, 3))
classLabelVector = []
index = 0
for line in arrayOfLines:
line = line.strip()
listFromLine ... | [
"laizenan@gmail.com"
] | laizenan@gmail.com |
a8c5c7e3b1280c05481bf5cf00de1d61e37f5aa5 | 923d035a4762a19b30d5900db91143a83837ae70 | /ichnaea/async/config.py | 1fd35092f9eaed4de2aaf9188da99570999ed30d | [
"Apache-2.0"
] | permissive | voolitels/ichnaea | d5d5da34cb30b3e0c85675e32dab3972cc31d7b0 | bd0350fcba9efb0bad3957309ed3a471ae07e41b | refs/heads/master | 2021-01-17T14:21:16.056481 | 2015-11-10T16:38:22 | 2015-11-10T16:57:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,402 | py | """
Contains celery specific one time configuration code.
"""
import os
from kombu import Queue
from kombu.serialization import register
from ichnaea.async.schedule import CELERYBEAT_SCHEDULE
from ichnaea.cache import configure_redis
from ichnaea.config import read_config
from ichnaea import internaljson
from ichnae... | [
"hanno@hannosch.eu"
] | hanno@hannosch.eu |
712595abb233c1b9403dbc62c3221745b91b68b3 | 6c4643ee81073b8fe90dbb90ace8515f27ee5d94 | /tests/test_interp.py | e71cc10e79b10137946e98ce59bfbfd31d37bc78 | [
"MIT"
] | permissive | hhu-stups/python_jvm | 1c38ff8299057f4eefee66d627b9483c45bef80d | 57b9e6cbdfae23c2aeac1383b04b2ab9424cea16 | refs/heads/master | 2021-01-19T09:09:16.934172 | 2015-08-30T11:48:23 | 2015-08-30T11:48:23 | 32,401,360 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,666 | py | # -*- coding: utf-8 -*-
from classloader import encode_name, descriptor
from interp import ClassLoader, Stack, Arrayref, make_String
from javaclasses import JavaIoPrintStream
#import interp
#import java_threading
import py, os, StringIO
udir = py.path.local.make_numbered_dir(prefix='usession-', keep=3)
#current_dir... | [
"John.Witulski@uni-duesseldorf.de"
] | John.Witulski@uni-duesseldorf.de |
4971148ded922aab1c7bcceb73ea4136e79c4e7f | c7cb4e768cbb4110c1995234bae2967fb92b0bd3 | /mySite/mySite/urls.py | 52c38cceaf3621feb74b8355d96a957b9a943ae3 | [] | no_license | backtobasic18/main_roni_site | d50f7418f8e6a48855746bb2229a840a2af7d7f8 | 06cabff9b960f762bb2ad64421cc8e2a3e5422a4 | refs/heads/master | 2020-07-06T13:44:34.805318 | 2016-09-10T17:34:16 | 2016-09-10T17:34:16 | 67,798,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | """mySite 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-bas... | [
"test@gmail.com"
] | test@gmail.com |
d3b980a8ca6ff1014d641b3e9d8eea210eb0de37 | 8528604d3231d86feada09465170220b892c1c35 | /tests/components/weathering/test_exponential_weatherer.py | c8ed60574448adb93795c9f06ba6bbffcd34820d | [
"MIT"
] | permissive | ChristinaB/landlab | 9780acbd5753741cd91c40dbc5d683b66f2481a6 | 82fd45d059dbe58728b074b024e46a1a10ce1e5c | refs/heads/master | 2021-04-26T22:45:44.007416 | 2020-12-02T22:57:27 | 2020-12-02T22:57:27 | 124,138,852 | 0 | 1 | MIT | 2020-12-02T22:57:28 | 2018-03-06T21:08:56 | Python | UTF-8 | Python | false | false | 494 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri May 1 14:02:18 2020
@author: gtucker
"""
from landlab import RasterModelGrid
from landlab.components import ExponentialWeatherer
def test_create_weatherer_and_change_rate():
grid = RasterModelGrid((3, 3), 1.0)
grid.add_zeros("soil__depth", ... | [
"noreply@github.com"
] | ChristinaB.noreply@github.com |
2a328dfdc1bda8f5f63a8bf8ac1b558e05fc28fa | 463c7a43bef0d7bf5e87ec2f301d541608215356 | /methods/density.py | d2f64873174e53bb0a58f0b6d4ee791f3d6a74a0 | [] | no_license | RSIP4SH/PythonFramework | 01344285318e6eae0321cb3d2a3082f810bfd0f5 | 0e5eab1f465f89379e1cca9604e5a8d3f78dcaac | refs/heads/master | 2021-09-20T08:35:15.070133 | 2018-08-07T02:55:15 | 2018-08-07T02:55:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,917 | py | from methods import method
from utility import array_functions
from configs.base_configs import MethodConfigs
from results_class import results
import scipy
import sklearn
import numpy as np
from loss_functions import loss_function
import statsmodels.api as sm
from utility import array_functions
class KDE(method.Meth... | [
"agress@ucdavis.edu"
] | agress@ucdavis.edu |
3a4c7d1ca25812470d244b62c6ebb2d7a3675775 | 138701c41d979671f063a2896ba298b08c1a0b6a | /deprecated/common_utils/__init__.py | 9944dc596f05601e7bdae437ead42bdf0cec374e | [
"MIT"
] | permissive | zhuchangzhan/SEAS | d6f6c4ecf8f9aaa8473112398f285a2ab864b3fd | d844ceecc54a475a5384925f45a2078eef3416ee | refs/heads/master | 2023-08-18T20:39:15.884976 | 2020-09-07T01:21:42 | 2020-09-07T01:21:42 | 199,416,568 | 2 | 1 | null | 2023-07-06T21:45:17 | 2019-07-29T08:58:43 | Python | UTF-8 | Python | false | false | 2,538 | py | #
# Copyright (C) 2017 - Massachusetts Institute of Technology (MIT)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#... | [
"zzhan@mit.edu"
] | zzhan@mit.edu |
281102498d3f93366cd287fa27c1077cd8c658ea | c19c1cbbb11739ab3d031cabdb417c9eed376d69 | /authentication/views.py | 9f58f2cdf93f0effbcaad2274cd7851ad2392515 | [] | no_license | arevej/Notes | 90bcfadb7e7a8d3346ae2613effe2d1dd7016206 | e4f1acd078a96b0f6ef9adf0e59cb5ee6b216712 | refs/heads/master | 2021-06-17T08:13:57.993870 | 2017-05-19T10:17:20 | 2017-05-19T10:17:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,168 | py | from django.views.decorators.csrf import csrf_exempt
from django.shortcuts import render
from django.http import HttpResponseRedirect, HttpResponse
from django.urls import reverse
from django.contrib.auth import login, authenticate
from django.contrib.auth.models import User
from .models import Note
import json
def i... | [
"tim@Tims-MacBook-Air.local"
] | tim@Tims-MacBook-Air.local |
544691d1ddac1a2ff9e0419bfc69e8b15f00a0b1 | a8c0867109974ff7586597fe2c58521277ab9d4d | /LC648.py | e3823a187d57e17a47a6641bfc77b27bfb8ab450 | [] | no_license | Qiao-Liang/LeetCode | 1491b01d2ddf11495fbc23a65bb6ecb74ac1cee2 | dbdb227e12f329e4ca064b338f1fbdca42f3a848 | refs/heads/master | 2023-05-06T15:00:58.939626 | 2021-04-21T06:30:33 | 2021-04-21T06:30:33 | 82,885,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | class Solution(object):
def replaceWords(self, dict, sentence):
"""
:type dict: List[str]
:type sentence: str
:rtype: str
"""
sen_list = sentence.split(' ')
for idx, word in enumerate(sen_list):
min_root = word
len_word = len(w... | [
"qiaoliang@Qiaos-MacBook-Pro.local"
] | qiaoliang@Qiaos-MacBook-Pro.local |
d8219168fad609cda903bcbc9dddcdc5a8999cc5 | a4cfc4814f97431e28728cfb1cf99f44046245d5 | /dongguanspider/dongguanspider/settings.py | 986d3f6fcbf1f6d0aed4e8a4150357a5c7945fa4 | [] | no_license | junge2018/mygithub | d2832fdc6af699614c5160bead659df7c1f60171 | c8aa2a533ecde09986dc3cef9fa33bfc124c9445 | refs/heads/master | 2020-03-25T06:39:16.427673 | 2018-10-15T02:50:55 | 2018-10-15T02:50:55 | 143,516,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,427 | py | # -*- coding: utf-8 -*-
# Scrapy settings for dongguanspider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/lates... | [
"970430670@qq.com"
] | 970430670@qq.com |
0521bb9fbe44a99b36021750f89977a0fd640d1c | d1dbe180867997ba27a5bf8ddfbdb2b3e7aba577 | /bot/cfg.py | 7ea8d5020a491c312d712fd0f01b5fc3125c32c3 | [
"MIT"
] | permissive | buffet-time/buffet_bot | c2661c77871b4def35333b586ff229b840b88bf6 | 5500bf0ce5a3e9f55081fc321e06acda58bfb080 | refs/heads/master | 2021-01-23T08:10:16.811961 | 2017-09-14T16:12:09 | 2017-09-14T16:12:09 | 86,480,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | # Config File
HOST = "irc.twitch.tv" # irc server
PORT = 6667 # irc port#
NICK = "buffet_bot" # twitch name (lower case)
PASS = "[REDACTED]" # OAuth Token
CHAN = "#buffet_time" ... | [
"noreply@github.com"
] | buffet-time.noreply@github.com |
5f1902405557087febfe595ce242a323145b738e | ed74dbe0754094ef60f788185bd15c47d45f41eb | /python/genfold/alg1_2.py | 0dfc2d8c1d33530841f8897fd9d222bb699a63b5 | [] | no_license | AndrewDuncan/Doublecoset | e045cdff6744f79763eb80c0a50386bcd006d421 | e29c9aaa483964ae469a0d4f6b3904d61e800dd2 | refs/heads/master | 2021-01-21T04:54:05.325858 | 2016-05-25T12:59:00 | 2016-05-25T12:59:00 | 2,112,734 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,124 | py | from graph_2 import *
class element(object): #reduced word
def __init__(self,word):
self.word = word
i=0
while i<len(self.word)-1:
if (self.word[i]==self.word[i].lower() and self.word[i].upper()==self.word[i+1]) or (self.word[i]==self.word[i].upper() and self.word[i].lower()==self.word[i+1]):
self.word... | [
"m.j.gough@newcastle.ac.uk"
] | m.j.gough@newcastle.ac.uk |
78228f1ddc1711827e6e3abf0f2b9539a2a9f985 | b19546e74b12f4712bdc3647aeb3f125cca2884c | /forms.py | 7400b5e6749ba19da64e745ceb29de50ae311504 | [] | no_license | HelenOd1/project | 8dcc7162709474e51a1f801bcf2832b4f976679d | 242ab934400c9e94ff1c13e3c9da2b90835ebd5f | refs/heads/master | 2021-07-11T07:17:18.691264 | 2020-02-18T12:41:44 | 2020-02-18T12:41:44 | 241,342,876 | 0 | 0 | null | 2021-03-20T02:55:13 | 2020-02-18T11:22:12 | Python | UTF-8 | Python | false | false | 742 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import Datarequired, Length
class PostForm(FlaskForm):
first_name = StringField('First Name',
validators = [
DataRequired(),
Length(min=2, max=30)
]
)
last_name = StringField('Firs... | [
"bob@email.com"
] | bob@email.com |
ef00bb6c55f03705ce5ee9027d152a76d79f979d | 4e7bff773d8d78377b112e16b561209dc2e74c9b | /server/lib/admin.py | 1b1bc1d4393ddbd0932dde094265769cc628bd22 | [] | no_license | irqize/flask-angular-forum | 85997536025bac56c1c45eef93b648f52a6a3294 | 46960eb5bcef19e8106e398f5bb11d25c6a595a4 | refs/heads/master | 2022-12-08T16:45:06.812004 | 2020-08-28T23:06:17 | 2020-08-28T23:06:17 | 288,308,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,842 | py | from flask import jsonify, request, session
from jsonschema import validate
import json
import time
from werkzeug.security import generate_password_hash, check_password_hash
from forum import app
from lib.db import get_db
def admin_json_required(func):
def wrapper(*args, **kwargs):
if 'name' not in sessio... | [
"irqize@gmail.com"
] | irqize@gmail.com |
f32bf145330eb4065328760c83b827d60333156b | 07faadd987a5febb3c6e7180323c2b01e654f3c7 | /experiments/heuristic/__init__.py | 73467e2af94ea44712c1083f9c42270e4e9fe45a | [
"BSD-3-Clause"
] | permissive | TheoryInPractice/practical-oct | eda454d57e27274c857b874b5526ecf03bfef29e | e57119b26ca7e17d91f12a07cca55bf26e0b5aeb | refs/heads/master | 2023-07-23T00:31:11.496517 | 2020-04-13T19:33:11 | 2020-04-13T19:33:11 | 130,571,253 | 5 | 0 | BSD-3-Clause | 2023-07-10T14:15:13 | 2018-04-22T13:44:23 | Python | UTF-8 | Python | false | false | 815 | py | """Heuristic Experiment Module."""
from experiments import headers, RESULTS_DIR
COMBINED_RESULTS_DATA_FILE = (
RESULTS_DIR / 'combined_heuristics_experiment_results.csv'
)
CPLEX_RESULTS_DATA_FILE = RESULTS_DIR / 'cplex_experiment_results.csv'
HEURISTICS_RESULTS_DATA_FILE = (
RESULTS_DIR / 'heuristics_experime... | [
"ewhorton@ncsu.edu"
] | ewhorton@ncsu.edu |
be4e9e3a42b8c97562deeecd8c3b871fa6fb01c7 | f124cb2443577778d8708993c984eafbd1ae3ec3 | /saleor/account/migrations/0054_alter_user_language_code.py | c4843696a427a6c0f24f171c7feab251cf7eca57 | [
"BSD-3-Clause"
] | permissive | quangtynu/saleor | ac467193a7779fed93c80251828ac85d92d71d83 | 5b0e5206c5fd30d81438b6489d0441df51038a85 | refs/heads/master | 2023-03-07T19:41:20.361624 | 2022-10-20T13:19:25 | 2022-10-20T13:19:25 | 245,860,106 | 1 | 0 | BSD-3-Clause | 2023-03-06T05:46:25 | 2020-03-08T17:44:18 | Python | UTF-8 | Python | false | false | 40,337 | py | # Generated by Django 3.2.6 on 2021-08-17 11:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("account", "0053_auto_20210719_1048"),
]
operations = [
migrations.AlterField(
model_name="user",
name="language_code... | [
"noreply@github.com"
] | quangtynu.noreply@github.com |
c1763ba5175c207c332aa37cf46bb1aa24f588dd | a82aa8430e32eaf62df0f44b20afb0e7d50c3d7b | /ippon/group_phase/serializers.py | ed76683a6121808cf8e4196a5a8a7ebad298988f | [
"MIT"
] | permissive | morynicz/ippon_back | 314daac99f79247b749dc46d59a645a6eb840263 | dce901bfc649c6f8efbbf0907654e0860606b3e3 | refs/heads/master | 2022-12-20T23:33:10.898738 | 2021-10-17T09:25:39 | 2021-10-17T09:25:39 | 124,851,931 | 0 | 2 | MIT | 2022-12-08T12:37:26 | 2018-03-12T07:43:17 | Python | UTF-8 | Python | false | false | 307 | py | from rest_framework import serializers
import ippon.models
class GroupPhaseSerializer(serializers.ModelSerializer):
class Meta:
model = ippon.models.group_phase.GroupPhase
fields = (
'id',
'tournament',
'fight_length',
'name'
)
| [
"morynicz@gmail.com"
] | morynicz@gmail.com |
7a1a6ea1c3bb51d49b324dcf99ea502af272d5f1 | 60bd075b5591e9f6c61c087a665c01c9a5e78d40 | /recruiterapp/models.py | 37bad1857aacfac94bfa71328eb7bbe8d0159890 | [] | no_license | ritesh90y/Job_Portal | 110671ea6cb6d3aae74df2144b27028afd92f981 | 9f2d8a0ee20ed95def425b540589d184748aede8 | refs/heads/master | 2020-12-26T18:42:22.734483 | 2020-02-01T10:52:30 | 2020-02-01T10:52:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | from django.db import models
from Jobapp.models import *
from .choices import *
from datetime import datetime
from tinymce.models import HTMLField
# Create your models here.
class Vacancy(models.Model):
user=models.ForeignKey(User,on_delete=models.CASCADE)
company=models.CharField(max_length=100)
jobcatego... | [
"karanjitrishav4@gmail.com"
] | karanjitrishav4@gmail.com |
77d8f3cbc67a729af7ac8c58d8feb916d6d7aea6 | 9e2694b32f9010d1f6b6cfafae8cf254464fe5b0 | /frospy/tests/todo/Su/plot_dQ_vs_cmt.py | 6d42b268b76cad0305969268acf45fd1f9920a75 | [] | no_license | sujania/frospy | 32bcb89acbc5ae9a7bef676e546081c56f8cb147 | 3fce33d974d6412717d8ae1d1c27db9160e3930a | refs/heads/main | 2023-02-20T18:03:54.850724 | 2021-01-22T13:36:17 | 2021-01-22T13:36:17 | 331,956,254 | 0 | 0 | null | 2021-01-22T13:36:26 | 2021-01-22T13:36:25 | null | UTF-8 | Python | false | false | 3,881 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 20 13:49:37 2018
@author: sujania
"""
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from mpl_toolkits.basemap import Basemap
from mpl_toolkits.axes_grid... | [
"s.a.schneider@uu.nl"
] | s.a.schneider@uu.nl |
d4093ac3dc928217c0b8f692d877775f3b31b7b1 | b251f82ec35d30dcca8bc6d3f6bd59c61aea9576 | /server/search.py | b1a6899cfa16771ed565b9500cda9582fc5b1961 | [] | no_license | yupbank/buttong | 85c9e993b7e89f010c4e4dbe6defe8b56ae7fffb | 163be52221c305793cc64ffd4c548ce5af216543 | refs/heads/master | 2021-01-10T22:05:55.992440 | 2014-07-04T07:22:06 | 2014-07-04T07:22:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
seach.py
Author: yupbank
Email: yupbank@gmail.com
Created on
2014-07-03
'''
from tornado import web
from tornado import httpclient
from settings import API_BASE, SUGGETION
from util import ensure_tradition
def suggestion(q, callback):
q = ensure_tradition(q)
... | [
"yupbank@gmail.com"
] | yupbank@gmail.com |
5ce3ab44c092203b24090566c9c958aa01d7048a | 0ea78833e453d531db033bca00a082f2c61664e9 | /apps/accounts/tasks.py | 616d4d28365467fc78c2d86a82d0109676624f52 | [
"MIT"
] | permissive | jimialex/django-wise-template-mysql | 5ef7894abf915cd7a0338135db96cb454f4a26f3 | 78b7281ba5cdd1e89a165b217e1b200fdba0135b | refs/heads/main | 2023-01-29T15:02:51.694866 | 2020-12-09T05:15:39 | 2020-12-09T05:15:39 | 319,849,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | # -*- coding: utf-8 -*-
import time
import logging
from celery import shared_task
from celery.utils.log import get_task_logger
@shared_task
def delay_task():
logger = get_task_logger(__name__)
logger.setLevel(logging.DEBUG)
time.sleep(20)
logger.info('Delayed Task Finished!!!')
| [
"jimialex06@gmail.com"
] | jimialex06@gmail.com |
e416cacefa3c1d28641f2bf2e3cd0d28d8c0e1c9 | ca51d1bf00d3326175d385e0f8e451d0d0bc0de2 | /src/transformers/configuration_albert.py | c9dd6bbbbd0719c13234afd13237a7e63ed5908f | [
"Apache-2.0"
] | permissive | leodotnet/bert-ss | 1db536c9114949e46663656b5bdbfe211b659a26 | e3e216094b7303fdced0c9f6ec4494702ab96991 | refs/heads/master | 2021-02-15T13:35:39.202326 | 2020-03-04T13:15:17 | 2020-03-04T13:15:17 | 244,903,668 | 0 | 0 | Apache-2.0 | 2020-03-12T18:29:56 | 2020-03-04T13:11:09 | Python | UTF-8 | Python | false | false | 7,265 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 cop... | [
"lihao.leolee@gmail.com"
] | lihao.leolee@gmail.com |
f78200e6f81943d3b92413741d69a34d640d1f5e | 54925bbc302d5341d01d11d3898726b197e8a784 | /report/strong_scaling/plotter_strong.py | 3b170d81935ff9c6413b63b364dcfc9310338c1f | [] | no_license | sheroze1123/water | 424312b77ec6f6dd3d29fc2c5751db16e6dabaa7 | 8428a960ba8022e0e32e8f4fb66a74023e46ff8a | refs/heads/master | 2020-12-01T11:37:49.849877 | 2015-10-29T22:09:26 | 2015-10-29T22:09:26 | 43,750,903 | 0 | 0 | null | 2015-10-06T13:02:15 | 2015-10-06T13:02:14 | null | UTF-8 | Python | false | false | 1,002 | py | import csv
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from matplotlib import rc
import numpy as np
import sys
rc('font',**{'family':'serif','serif':['Palatino']})
rc('text', usetex=True)
def get_last_row(csv_filename):
with open(csv_filename,'rb') as f:
reader = csv.reader(f)
... | [
"mss385@cornell.edu"
] | mss385@cornell.edu |
76c9d0acc8c5242eef7e1c34eb5c7b49b94cd992 | 4830a3d160a3cc8df039cbe0c37b4fb78e571af4 | /mysiteEx101/manage.py | 2ea3efdbbd4b921f775a11ad92402cb1ec0b1484 | [] | no_license | xucongyong/django | e187832586ba79480d03a370b55df56a612da764 | 9a978170fafeb52463a172aae2eaba5bf3d54cc1 | refs/heads/master | 2023-06-22T08:40:17.539477 | 2017-03-02T05:20:44 | 2017-03-02T05:20:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysiteEx101.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"ironvanxv@gmail.com"
] | ironvanxv@gmail.com |
99aeccda9cabe52f63a6291377b378e10f4007e7 | 493e2e891f269a7edcf07f0b6f74846cd9ee3fbb | /tools/lightning_train_net.py | 1a3ab2745ef6e75e457837582e84c7b10b0ed0a3 | [
"Apache-2.0"
] | permissive | pankajkumar9797/d2go | 699da502c9527e1e6061e4300b68fc7ed70a65db | 23a644a1213ff19f32b3f106b271d41ff3148bd1 | refs/heads/main | 2023-06-07T18:28:03.431979 | 2021-06-28T15:48:20 | 2021-06-28T15:48:20 | 381,084,281 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,287 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import logging
import os
from dataclasses import dataclass
from typing import Any, Dict, List, Optional, Type
import pytorch_lightning as pl # type: ignore
from d2go.config import CfgNode, temp_defrost, auto_scale_world_si... | [
"pankajkumar9797@gmail.com"
] | pankajkumar9797@gmail.com |
2b4b177013d39476805ddb88dcbd3416241fc203 | b44efc71f4da37ea94f5891d63c115704a7ab59d | /landingpagewebsite/settings.py | f2f5fd80f3d5ff1bdd27f97d616cb8026145903c | [] | no_license | AddDon1337/django_training_website | 10778c25324ff3135932417bd9ba9ca2cb3664c3 | 8cb9ab4c967eab25569db2a59dc6c21de74c7fe8 | refs/heads/master | 2023-06-17T14:15:32.649657 | 2021-07-14T09:37:50 | 2021-07-14T09:37:50 | 378,891,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | """
Django settings for landingpagewebsite project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
im... | [
"dmitriy.lekov@mail.ru"
] | dmitriy.lekov@mail.ru |
670059a654f31135335adbe7093d1eb3225f839c | 4d167b2d0e6c25e79b3c08f9383d32b82e914d46 | /week2/textReader.py | cf792746cb6cd5e97a986dd8d196adec5ad29bd6 | [] | no_license | eriixon/pythonBegins | f687fdd48c57e55895ec908df6d4ec550893be42 | 8254935d59bfa748cdd80feddb2f7acfb2765fc9 | refs/heads/master | 2021-01-01T18:57:01.513449 | 2017-11-30T00:56:40 | 2017-11-30T00:56:40 | 98,467,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | import numpy as np
import re
from scipy import spatial
text = ''
lines_count = 0
with open ("text.txt", 'r') as f:
text = f.readlines()
lines_count = len(text)
new_text = []
words = {}
i=0
for line in text:
line = line.lower()
line = re.split('[^a-z]',line)
line = list(filter(None, line))
ne... | [
"radkovsn@gmail.com"
] | radkovsn@gmail.com |
026d82102e954440bf345d67049c6ece4d6b3553 | cf56d96afc89af644d6c40cae3299f10ac70fd51 | /typeidea/blog/apis.py | 6a1fd794b4047e90c758dd4dee5908bd5ddaa4ae | [] | no_license | NS2018/typeidea | e52238b4ae9e4c813360565af024bd5e78454f99 | dd3344f861db606fc4ac61cdcc4ebc9a3d3a1fcd | refs/heads/master | 2022-12-20T00:08:07.947043 | 2020-09-22T07:47:21 | 2020-09-22T07:47:21 | 293,702,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | """
from rest_framework import generics
from rest_framework.decorators import api_view
from rest_framework.response import Response
from .models import Post
from .serializers import PostSerializer
@api_view()
def post_list(request):
posts = Post.objects.filter(status=Post.STATUS_NORMAL)
post_serializers = Post... | [
"“18737114330@163.com”"
] | “18737114330@163.com” |
8456beb0c77c5114ac1679b79bdcaea2a51b9cd8 | c706ce7491a0848e816b6247ee367d5310d9eed8 | /LifeGame/operation/StaticVar.py | a8a79163fdd66e17650ff4318c460dd3618d0b1b | [] | no_license | yushulinfeng/LifeGame | f211cb56c1a8a06dc559a672aaa094e20056786b | c340a6a3b9bd007d177bf7e3ee9b853a565417f7 | refs/heads/master | 2020-07-02T09:53:27.181126 | 2016-12-20T07:43:22 | 2016-12-20T07:43:22 | 69,333,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# 这个文档用于存储静态变量
notfinished = -2
draw = -1
prepare = 10
everyCalTurn = 5
size = 30
turnend = 30
null = 0
human = 1
humantobevirus = 3
humanminlive = 2
humanmaxlive = 5
humanminborn = 2
humanmaxborn = 3
virus = 2
virusminlive = 1
virusmaxlive = 6
v... | [
"china2012syl@163.com"
] | china2012syl@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.