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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8f98e67156bd92bf6e4c796ae0c76000bd169bcc | 89f1364334950ceec7eb82e79dfc1146b770a46f | /sync_report/migrations/0004_last_sync_date_id_class_name.py | e8f5866633366e35145445a08b5d817d3383145d | [] | no_license | swapnil106111/Nalanda_Dashboard | 3b1fec0d42c0cb6cfde8c52c0081cc6ba8e7b705 | 2912f0d64b911084f8e104011afe25c185bc1613 | refs/heads/master | 2020-03-27T21:38:44.811323 | 2019-02-27T09:28:29 | 2019-02-27T09:28:29 | 147,163,695 | 0 | 0 | null | 2018-09-03T06:53:37 | 2018-09-03T06:53:37 | null | UTF-8 | Python | false | false | 518 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2019-02-12 10:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sync_report', '0003_auto_20190212_0758'),
]
operations = [
migrations.AddFi... | [
"swap106111@gmail.com"
] | swap106111@gmail.com |
aefc689aff365cd6cd4cb7505006a44022974310 | a147fa3a2d1aec2e1a7ef3b8b675197ff38a5f4c | /expensefixer.py | 7ba844968efa01cfca219d69255824d5d84146ea | [] | no_license | dworin/FreshbooksExpenseFixer | e700febf0fd714733158cd64d3693735671163b8 | 831828c6f42d1227449fcca23f7251887746018d | refs/heads/master | 2021-01-16T21:23:52.198639 | 2013-08-16T19:23:19 | 2013-08-16T19:23:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | __author__ = 'David Dworin'
from refreshbooks import api
c = api.TokenClient(
'YOUR_SITE_ADDRESS.freshbooks.com',
'YOUR_API_TOKEN',
user_agent='DavidsChaseExpenseFixer/1.0'
)
expenses = c.expense.list(page='100')
print "There are %s pages of expenses." % (
expenses.expenses.attrib['pages'],
)
fo... | [
"dworin@gmail.com"
] | dworin@gmail.com |
46db0d8f9e71286c4f3ed5f14b4ad29ae4029cba | 99052370591eadf44264dbe09022d4aa5cd9687d | /install/lib/python2.7/dist-packages/cwru_action/msg/_cart_moveActionFeedback.py | d2eda06fd03c8ca0980303f9c1bb86a9a0d5a72c | [] | no_license | brucemingxinliu/ros_ws | 11b1a3e142132925d35b3adf929f1000392c5bdc | 45f7e553ea20b79e3e93af5f77a1b14b64184875 | refs/heads/master | 2021-01-24T03:36:47.043040 | 2018-02-26T00:53:37 | 2018-02-26T00:53:37 | 122,892,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,445 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from cwru_action/cart_moveActionFeedback.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import genpy
import actionlib_msgs.msg
import cwru_action.msg
import std_msgs.msg
... | [
"mxl592@case.edu"
] | mxl592@case.edu |
fb8dfefe0dc4c55e2506a37d3f162f3a82d9fd0a | 963f79e9bfa46cd472d2ded512107e446694f590 | /proginn_ping/proginn_ping.py | c2590372f603ff2bb820adf076263fcafdf4282c | [
"MIT"
] | permissive | bluehole333/spider | 3081fe42479fc4d66fbcaf3d6cc34b22c4c21a0b | 0540b7495306224b1e54ba1609718fa1b4d0eb6a | refs/heads/master | 2020-07-28T20:12:23.011446 | 2019-09-29T11:10:58 | 2019-09-29T11:10:58 | 209,523,078 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,380 | py | # -*- coding: utf-8 -*-
"""
程序员客栈 自动ping
Python3.6
"""
import os
import yaml
import time
import requests
import memcache
from selenium import webdriver
from bs4 import BeautifulSoup
from requests.exceptions import *
from selenium.webdriver.common.proxy import Proxy, ProxyType
LOGIN_URL = 'https://ww... | [
"bluehole333@foxmail.com"
] | bluehole333@foxmail.com |
94036e1a9b4aa7e367668e2e3b058c27028e0ebe | 2a8b00122bd6842b0ad0e8408ff959ad09918faa | /pybcm/deprecated/bcmdata.py | 217c370efbea25d0d3eb67983027487cbb688763 | [] | no_license | Geekly/pybcm | 3ee1d1d397c43e3fbb3e29053866ac4d0ab72a9e | 610cd96f210cc3451834409b5d5f50448d812152 | refs/heads/master | 2023-06-09T21:12:32.729983 | 2023-06-02T11:35:21 | 2023-06-02T11:35:21 | 8,487,052 | 1 | 0 | null | 2022-12-07T23:59:24 | 2013-02-28T20:09:33 | Jupyter Notebook | UTF-8 | Python | false | false | 19,572 | py | """
Created on Oct 30, 2012
@author: khooks
"""
# from numpy import *
import logging
from collections import defaultdict
from operator import itemgetter
import numpy as np
import numpy.ma as ma
from vendors import VendorMap
class BCMData():
""" Contains the core data of pybcm.
It contains several consta... | [
"khooks@gmail.com"
] | khooks@gmail.com |
b4ee1c0cb839bb0df1f176c4a10940a5cb20ecd8 | 8176417a4ec9c93dc2a0142a629de3e24c5935da | /migrations/versions/6ae2d6dded93_.py | 2b55ee7339082f71a9ac52ad2ac454196e52d543 | [] | no_license | jamesinsheffield/1000Words | af6935034816de95d0b55a4b39d6ddb1af0130cc | b4e38a85721c62418a5efc3ed1f0d6577daedd63 | refs/heads/master | 2021-06-25T03:26:19.044594 | 2020-08-16T10:36:06 | 2020-08-16T10:36:06 | 194,422,698 | 0 | 0 | null | 2021-03-20T01:20:17 | 2019-06-29T15:50:45 | Python | UTF-8 | Python | false | false | 876 | py | """empty message
Revision ID: 6ae2d6dded93
Revises:
Create Date: 2020-08-09 17:07:45.493167
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6ae2d6dded93'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"jamesinsheffield@hotmail.com"
] | jamesinsheffield@hotmail.com |
ff99d46b0f0ebc6112fa72d36496b55f8858bd34 | 4ff66f5d34b602d286ccf7661ebf8ab451135433 | /backend/app/__init__.py | 7a9ec147868c31b1c8d0991197aba1b45e9dea95 | [] | no_license | Plawn/LostPass | ea96aa64bab63ba21059a5e46bf4112072b99659 | 3817a696e8c1c01ea151eb5d02870b736ba91be0 | refs/heads/master | 2023-07-20T06:38:20.655154 | 2022-06-01T14:40:54 | 2023-01-27T14:57:14 | 253,583,307 | 0 | 0 | null | 2023-07-18T21:36:11 | 2020-04-06T18:31:01 | TypeScript | UTF-8 | Python | false | false | 46 | py | from . import ressources
from .api import app
| [
"plawn.yay@juniorisep.com"
] | plawn.yay@juniorisep.com |
8ca75affe6937bc42958158b666799c2c3f053a4 | a1a518ba04855820f531c705c36028e4d7435a86 | /tests/python/unittest/test_tir_schedule_reduction.py | 5f5daa144e966998594dc5a2db2784a8afa2cf20 | [
"Apache-2.0",
"BSD-3-Clause",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | ZQPei/tvm | b47f7a3f16400774eefb5ca882a0053e46176a52 | 6c32f976522aa1d923fcfe364f05a7860cb346b4 | refs/heads/main | 2021-12-10T22:33:44.248391 | 2021-11-30T23:58:05 | 2021-11-30T23:58:05 | 203,511,290 | 0 | 1 | Apache-2.0 | 2021-11-25T09:28:32 | 2019-08-21T05:17:34 | Python | UTF-8 | Python | false | false | 9,082 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | ZQPei.noreply@github.com |
d91b0b09a6363d1a5cfb3b8b9ce79db8db0c1305 | d56885aa49e6541932b1dba223f3a6aa1601ea5d | /MovieToFolder.py | 073706a36bd81b31755c3d2c63f84d87d39fcdd9 | [
"MIT"
] | permissive | stevin05/SonarrDiskMultiplexer | 6e11cea91e9da7b55318c11b85b93cbdf3993a34 | 21a74883aef176ab4275644c75ca5be4f1faec9a | refs/heads/master | 2022-04-21T17:08:15.617696 | 2020-04-18T01:45:37 | 2020-04-18T01:45:37 | 256,647,795 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | import os
import sys
from pathlib import Path
import logging
import requests
# Convert my_movie.mkv to my_movie/my_movie.mkv so it's ready for import by radarr
# Run this from the directory with the movie files (like the staging directory)
for movie in Path('.').iterdir():
if movie.is_dir():
continue
... | [
"63887600+stevin05@users.noreply.github.com"
] | 63887600+stevin05@users.noreply.github.com |
9417beb619ae6401d4353809791731b087fa0537 | 9f71bb956fec62c32e3573221deb3ed64c6bdb21 | /Puzzle9/contiguousSum.py | 573cf36c9019922233f7105e78e691f8672cda34 | [
"Apache-2.0"
] | permissive | manasharma90/AoC-2020-Python | 77654732ab3e78494377b150f1f155f0e7d7f053 | 6a979eff34136b6b74a340c40121da76e35451da | refs/heads/main | 2023-07-16T20:54:59.883773 | 2021-08-19T17:27:50 | 2021-08-19T17:27:50 | 387,441,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | with open('input.txt', 'r') as f:
a = f.read()
input_string = a.splitlines()
input_nums = []
# making a list of all the elements as integers for ease of mathematical operations
for input in input_string:
input_nums.append(int(input))
# the number from the previous puzzle is 2089807806
# further operation wil... | [
"malvika.sharma@live.com"
] | malvika.sharma@live.com |
cfbd7dc3148b8b578e64f12e68feaab0176a207b | 09e85d81313ccb1e389e5869d663470adb2f9c07 | /app/tests/movie_test.py | e6e1a28d303c7cd43d7ed3aa97af885aa315c32b | [] | no_license | Evan-cell/kim-movie | c4762b4b8111594cc91825ee2b920b34c1e6d00f | f4e5c0753e2c75da2eeac3a999cbf5bf21b49096 | refs/heads/main | 2023-08-28T23:51:34.101831 | 2021-11-04T04:02:05 | 2021-11-04T04:02:05 | 424,466,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | import unittest
from app.models import Movie
class MovieTest(unittest.TestCase):
'''
Test Class to test the behaviour of the Movie class
'''
def setUp(self):
'''
Set up method that will run before every Test
'''
self.new_movie = Movie(1234,'Python Must Be Crazy','A thri... | [
"60639510+Evan-cell@users.noreply.github.com"
] | 60639510+Evan-cell@users.noreply.github.com |
2b55b47506ede995d142ca465e342a5b6d4cd32c | 53777e590a1478e3c430dc9bc500b4cd45583d5b | /src/stylons/stitems/ui.py | fda5c81f544529277e109ff1edeff43cc96f2a2d | [] | no_license | mkurek/stylons | cc254c9338ec63b0d843ee713ad97a954e9373b6 | abb75d91acce0f469b0eb083d6da9309dd9dada6 | refs/heads/master | 2020-07-23T23:49:38.296733 | 2015-01-14T20:39:49 | 2015-01-14T20:39:49 | 4,992,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py |
class Ui:
uiPrefixes = ('normal', 'back', 'round', 'forward', 'action', 'confirm',
'decline')
uiSuffixes = ('', 'round', 'small')
@classmethod
def isUi(cls, ui):
pre = post = ''
position = ui.find('-')
if position != -1:
pre = ui[:position]
... | [
"marcin.kliks@gmail.com"
] | marcin.kliks@gmail.com |
6ad0881f0f5665fab535b939848e74b5ef8be53f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/320/usersdata/297/89238/submittedfiles/lecker.py | 7c2c081024f3c11904eb15b9afbddb878e330677 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | # -*- coding: utf-8 -*-
import math
a=float(input('digite o numero da primeira casa: '))
b=float(input('digite o numero da segunda casa: '))
c=float(input('digite o numero da terceira casa: '))
d=float(input('digite o numero da quarta casa: '))
if a>b>=c>=d or a<b>c>=d or a<=b<c>d or a<=b<=c<d :
print('S')
else :
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
70ae20806909613a57221cb2d48c8a30fb665da2 | 855e20bc7f7ec2a68f5b436d4d186394370ccc62 | /setup.py | 62cf706a784f794cd1d84f12fad57b5433e033bb | [
"BSD-3-Clause"
] | permissive | toastedcornflakes/STReam-Annotate | 69bbfce43237dbc6c554f58ed60188cecc0b8bf1 | 016c9f1d223ec463f638b6e791e922eb1ca2cfea | refs/heads/master | 2020-12-25T14:58:07.504556 | 2016-09-02T20:41:30 | 2016-09-02T21:05:08 | 67,249,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | from setuptools import setup
setup(
name = 'stra',
version = '0.0.1',
author = 'toastedcornflakes',
author_email = 'toastedcornflakes@gmail.com',
description = 'Annotates the output of running a command with the name of the corresponding stream',
license = 'BSD',
url = 'https://github.com/t... | [
"toastedcornflakes@gmail.com"
] | toastedcornflakes@gmail.com |
a9cb003a18900abf7919ff2ad1f0cadd5d5b7980 | bd377db57ba53462eb09cd402032f1b34991a215 | /A7.py | 3e35eaf5bace6a34323f7f7326e712090c45ae3c | [] | no_license | tanvisenjaliya/PES-Python-Assignment-SET1 | 5349fecb79affc9757e7d40aa5d13b7c271492f1 | db98bda4b49ac783651ffb88ac5c7271a3a1eb84 | refs/heads/master | 2022-11-24T04:14:00.165349 | 2020-08-04T13:44:38 | 2020-08-04T13:44:38 | 284,992,111 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | str1=input("Enter the list1")
list1=list(str1)
print ("list1=",list1)
list2=list(input("Enter list2 elements"))
print ("list2=",list2)
print ("list1[1:3]=",list1[1:3])
print ("list2[3:-3]=",list2[3:-3])
print ("list1*2=",list1*2)
print ("list1+list2=",list1+list2)
| [
"noreply@github.com"
] | tanvisenjaliya.noreply@github.com |
9ac5c1fa58aa1ff60d4befbbfa02050f56ea9930 | 1ee9d5a2b28f3a233f6e5c229a457c6be5c7b0e6 | /task5.py | 6408fa3bab1830f6f0d96ab9051dbeba81f890ba | [] | no_license | Mekazara/Chapter3 | 43f01893b0e66e9c0f79910e2c5a02cb3809c462 | 6f694580728692e3925dad85d4e5ab559abb600a | refs/heads/master | 2020-12-01T06:19:12.401726 | 2019-12-30T08:08:11 | 2019-12-30T08:08:11 | 230,573,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | def twoStrings():
p = int(input("Enter the number of test cases: "))
for i in range(p):
s1 = input("Print any word: ").lower()
s2 = input("Print any word: ").lower()
for i in range(p):
count = 0
for letter in s1:
if letter in s2:
count += 1
... | [
"mekuchazara@gmail.com"
] | mekuchazara@gmail.com |
5f13bc1505fc5e928ab47e71817ac9c23d7a8bad | 35a2589936ef752f61d0bbfb3b809d811d53002c | /preprocessor.py | a7db5416f1c5b268e6fe631d2e3124e5d305e4b1 | [
"MIT"
] | permissive | hexod0t/classifier-bert | af4fd55c2a70b6dcbbded660b0bc33c6d9e49540 | f53354cefff493c36c365d6fe8cab0a2214dddd0 | refs/heads/master | 2023-08-05T01:45:17.868055 | 2021-09-17T22:13:40 | 2021-09-17T22:13:40 | 401,207,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import torch
from transformers import BertTokenizerFast
class Preprocessor():
def __init__(self):
self.tokenizer = BertTokenizerFast.from_pretrained('./models')
"""
Function tokenize_data
Params: input_text -> sentence that could be true or fake
"""
def tokenize_data(self, text):
... | [
"cris_does@hotmail.es"
] | cris_does@hotmail.es |
55b14c6d19a5c6549294bd6f8f4bbfeefb2481c9 | e38e849bcac7b7865c4b9696df171d806c0226f1 | /results/preview/2018-06-21-00-00-01-EDT/scripts/train-sklearn-one-model.py | 3c9ca6b3d70f66c45366ae8a64112d9c6747f644 | [] | no_license | hning86/ViennaTest | 99a4e1160050428cf11655454abf84e702109262 | 35b504873b575bee0d4dfdb5eb576276545a1910 | refs/heads/master | 2020-03-18T18:32:21.714572 | 2018-09-04T07:02:38 | 2018-09-04T07:02:38 | 135,099,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | from sklearn.datasets import load_diabetes
from sklearn.linear_model import Ridge
from sklearn.metrics import mean_squared_error
from sklearn.model_selection import train_test_split
from sklearn.externals import joblib
import os
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--alpha', type = f... | [
"haining@microsoft.com"
] | haining@microsoft.com |
96d2e4caa83de19960ab83fd8c9fc4b96440ec96 | 6e7f7b6d070d8b2b291226657afe445fc619ab78 | /Devquery/wsgi.py | 079f68554d6c0ef73443eee692782aac2eca537d | [] | no_license | sakib-shahriar/Devquery | 51b29cd94cc9c6bc31cd81b40af7b2e87833fd24 | 5cd38a850f07808c83e889325b2360b508a86b42 | refs/heads/master | 2022-12-07T07:58:08.138408 | 2019-10-11T21:44:42 | 2019-10-11T21:44:42 | 185,671,424 | 0 | 0 | null | 2022-11-22T03:48:16 | 2019-05-08T19:59:23 | Python | UTF-8 | Python | false | false | 393 | py | """
WSGI config for Devquery project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"sakibnx@gmail.com"
] | sakibnx@gmail.com |
c27434a207e10c45443dfe8773f9ca95dd1bd6f4 | 4d2a903ae7e7cbc3ae5070c274bb07aaba4ecd7b | /apps/auth/views/logout.py | bac71f13ca1faec171bcc0559c6d6d9afe3aab1e | [] | no_license | mbaragiola/drf-demo-app | 14316e1e0c6b6116194bbd6ed7df0922de1f40cb | 41e3584376c9ac0f7da14e139543eecee0422cdc | refs/heads/master | 2023-01-21T12:33:24.799358 | 2020-11-11T13:36:25 | 2020-11-11T13:36:25 | 269,968,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | from django.contrib.auth import logout as django_logout
from django.core.exceptions import ObjectDoesNotExist
from rest_framework import status
from rest_framework.decorators import action
from rest_framework.permissions import AllowAny
from rest_framework.response import Response
from rest_framework.viewsets import G... | [
"mbaragiola@linux.com"
] | mbaragiola@linux.com |
9f3a0de3814a277c06f58559e4bac131a7f8bb03 | 62e6a6c2543a2a7f93d1986073e914589d9dc116 | /learn/13-tuples.py | 1d28bfd147d80cb4bbc0cc29845191012ec67767 | [] | no_license | kittyofheaven/learn-python | 3af9caecffa2d204292611368d20bf1b6ae12e00 | d0c4cdb36de9f9d2a6fb3e66480f156ca7094b52 | refs/heads/main | 2023-08-16T01:14:59.221786 | 2021-10-20T03:55:10 | 2021-10-20T03:55:10 | 404,293,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | t = (1,2,3,4,5,6,7,8,9)
#tuple seperti list tapi dengan tanda kurung, bedanya dengan list
#tuple tidak dapat diubah diganti dihapus dan lebih aman
credit_card = (123123123121, "Shironeko", '10/26', "alamat rumah A3/18", 123)
credit_card1 = (123126723121, "Shiro Neko Senpai", '8/21', "alamat rumah 67", 321)
cr... | [
"noreply@github.com"
] | kittyofheaven.noreply@github.com |
9f3d9296a257a42b17d7b497de2440862edd849a | bfd6ac084fcc08040b94d310e6a91d5d804141de | /devel/custom_button.py | b4d32e6ccff3b71bb9e085a23c8f817535aa6a0e | [] | no_license | jqwang17/HaeffnerLabLattice | 3b1cba747b8b62cada4467a4ea041119a7a68bfa | 03d5bedf64cf63efac457f90b189daada47ff535 | refs/heads/master | 2020-12-07T20:23:32.251900 | 2019-11-11T19:26:41 | 2019-11-11T19:26:41 | 232,792,450 | 1 | 0 | null | 2020-01-09T11:23:28 | 2020-01-09T11:23:27 | null | UTF-8 | Python | false | false | 1,891 | py | import sys
from PyQt4 import QtGui, QtCore
class BurningWidget(QtGui.QAbstractButton):
def __init__(self):
super(BurningWidget, self).__init__()
self.setMinimumSize(100, 50)
self.setCheckable(True)
def sizeHint(self):
return QtCore.QSize(100,50)
def paintEvent... | [
"micramm@gmail.com"
] | micramm@gmail.com |
3842fd91c09f9050b796d822658bf5128f7aebf6 | 7d4bb2c79954fee935cd753b62b7dd43d98a9411 | /src/movies/schema.py | 2bc89ea0ecdd2bc581b5abfc32a3a41e9e5e4f06 | [] | no_license | tsuyukimakoto/ghraphql_with_django | fb3dd581fdc763f3470736e6b3a56975064d9586 | 2cda01b94842f0970d82efadcd0d0fb841cb995d | refs/heads/master | 2020-05-01T07:53:08.936294 | 2019-12-21T01:36:46 | 2019-12-21T01:36:46 | 177,362,804 | 1 | 0 | null | 2020-01-03T14:33:53 | 2019-03-24T02:39:48 | Python | UTF-8 | Python | false | false | 4,122 | py | import graphene
from graphene_django.types import DjangoObjectType, ObjectType
from .models import Actor, Movie
class ActorType(DjangoObjectType):
class Meta:
model = Actor
class MovieType(DjangoObjectType):
class Meta:
model = Movie
class Query(ObjectType):
actor = graphene.Field... | [
"mtsuyuki@gmail.com"
] | mtsuyuki@gmail.com |
81e5a6c5622b291eb98c5d67710816b22f2b498a | d03f5069b4fbf8da3c6d36ccb308904286856f37 | /archive/src/step/child.py | 22b7fcafa3a3addb1475e9793ccbbd0d52f402c7 | [] | no_license | TeraokaKanekoLab/Tree-Decomposition | 597d3119ee7bd1cbd5abf267d929eac99269abb7 | 9bbb94722d3c4562cbf4564f0213c20cf1019599 | refs/heads/master | 2023-02-22T03:28:43.443392 | 2021-01-27T12:20:48 | 2021-01-27T12:20:48 | 298,772,084 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,714 | py | import sys
import numpy as np
import matplotlib.pyplot as plt
def read_file():
if len(sys.argv) != 3:
print("usage: python3", sys.argv[0], "<filename> <width>")
exit()
filename = sys.argv[1]
arg_width = sys.argv[2]
filepath = "output/step/mdh-"+arg_width+"-"+filename+".output"
f =... | [
"cirusthenter@gmail.com"
] | cirusthenter@gmail.com |
227c5bb2771d7399e52af5b01e03e2f2cdeb5f7f | 214afa34f9f25127836cb8fabd864d6334ea53ef | /node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/config.gypi | b95240b8edc0d122428279d7292857835d4b4d78 | [
"Apache-2.0",
"MIT"
] | permissive | NetherNova/WetterBerry | 758f1b5fa57dc6ee0828979c0a872b7da0f86117 | 530ae00d5d41d085582178c565133578bad00d5a | refs/heads/master | 2021-05-04T10:17:46.179731 | 2015-11-22T17:31:17 | 2015-11-22T17:31:17 | 46,669,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,421 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"host_arch": "ia32",
"node_has_winsdk": "true",
"node_insta... | [
"martin.ringsquandl@googlemail.com"
] | martin.ringsquandl@googlemail.com |
8c66e4849507700754a2b58f083bc6e0ab85afb6 | f58f8120d5ceadf95042b9c2f2b24a2eaf109ddc | /train-classifier-from-scratch-master/MyTest3.py | d4d770b284743df0a0071c043485b6f8500e7b3b | [] | no_license | heBody/mygit | 2d52ac33af14b0faa65aceaff58fb5f2e1578f72 | a5731a5d1c4c2699f63599d02e4b27533f19583a | refs/heads/master | 2022-07-13T05:49:05.546725 | 2022-07-01T01:25:00 | 2022-07-01T01:25:00 | 117,950,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,649 | py | #coding:utf-8
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import random, math
x = np.linspace(-1,1,500)[:,np.newaxis] #列向量
noise = np.random.normal(0,0.1,x.shape)
y = np.power(x,3) + noise
xs = tf.placeholder(tf.float32,[None, 1])
ys = tf.placeholder(tf.float32,y.shape)
#构建神经网络
#输入,输出神... | [
"32090495+heBody@users.noreply.github.com"
] | 32090495+heBody@users.noreply.github.com |
fc3bb5dc6ff0e342805467fe0017419ccd3b7a6a | 9a6a38e34708930ee54ab8d68df8e545876b7123 | /app/study/tests/test_view.py | 2a1a16c2170db364dbeb04902346aa77d4cb5438 | [] | no_license | Avderevo/IT-school--django-react | b95a1350e550963fb6e034a6553c4d6f0dd33ee7 | 0878c39cf2e054543d2cf9b8aed8cb3b8e4ecbc3 | refs/heads/master | 2020-04-15T05:29:35.158235 | 2019-01-26T20:58:31 | 2019-01-26T20:58:31 | 164,425,247 | 3 | 0 | null | 2020-02-11T23:38:22 | 2019-01-07T11:50:14 | Python | UTF-8 | Python | false | false | 7,009 | py | import json
from django.urls import reverse
from rest_framework.test import APITestCase, APIClient
from users.tests.test_view import TokenTestCase
class StudyViewApiTest(TokenTestCase):
client = APIClient()
fixtures = ['course.json', 'lessons.json']
def setUp(self):
super(StudyViewApiTest, self).... | [
"freeyura78@gmail.com"
] | freeyura78@gmail.com |
9ac3466096fe39e81d75e7be6759f330935d8f41 | be5142565865890e334ce9f7c7592eedaf6ccf58 | /main.py | 151192d5c4b003128b63110e840c78138e093b45 | [] | no_license | Krlstch/oklejki | 197dec195db738428cb2bfd38fd544fa36984888 | 26d5165f61d16e95bad4866ea105e108f48f395c | refs/heads/main | 2023-02-03T20:53:29.759418 | 2020-12-23T17:03:29 | 2020-12-23T17:03:29 | 323,897,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,404 | py | import math
import time
import pygame
cell_number_width = 30
cell_color_height = 30
cell_width = 60
cell_height = 50
cell_border = 1
cell_clear_width = 60
cell_clear_height = 30
cell_clear_upper_margin = 10
cell_clear_lower_margin = 10
cell_clear_right_margin = 10
def draw_background(game_display):
... | [
"noreply@github.com"
] | Krlstch.noreply@github.com |
b81490fb9503fda9cc9046ed991954a66b465018 | e74463d223acfe6b849177177cb409060e7a44d1 | /Data Structures and Algorithms/01 Algorithmic Toolbox/Week 6 - Dynamic Programming 2/assignment/test_knapsack.py | 209c4bcbe684fb1999ab30911f43150511f024b3 | [] | no_license | AlexEngelhardt-old/courses | 24f4acf6de22f6707568024c5ee4a2fde412e461 | 739be99265b0aca1c58abe6f107b4c49de055b9d | refs/heads/master | 2023-05-05T22:25:50.327739 | 2020-12-09T14:57:46 | 2020-12-09T14:57:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from knapsack import optimal_weight
W = 10
w = [1, 4, 8]
print(optimal_weight(W, w)) | [
"alexander.w.engelhardt@gmail.com"
] | alexander.w.engelhardt@gmail.com |
91079f982271171ec88a5a4d36f79f4e45a7372d | b9f0f1644464a89ad9d2c7cc4c888fa18ef035a9 | /page/page_public.py | fb4d41d15b748712c2b8dcd2051e8076efcbbb34 | [] | no_license | lixiaofeng1993/UIAutomation | 004cfa3a6d3149dec112a51a471ffef3ba2cf7e5 | 6381b5b7698ecbe9e92094f0e46a72f9b7e13e76 | refs/heads/master | 2020-04-14T20:28:13.284923 | 2019-11-22T05:11:16 | 2019-11-22T05:11:16 | 164,094,808 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,176 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/4/26 11:43
# @Author : lixiaofeng
# @Site :
# @File : page_public.py
# @Software: PyCharm
from common.basics import Crazy
class Pulicpage(Crazy):
"""公众号"""
choice_public_loc = ('id', 'com.tencent.mm:id/b5m') # 置顶公众号,默认选择第一个
def cl... | [
"liyongfeng@xxbmm.com"
] | liyongfeng@xxbmm.com |
f690ec10c0ef739a407247e7ba73ddcb9e2cd94e | 8794ed160bab5675a253735f1c7567e7e2ab5cc0 | /scraping/migrations/0004_releaseinfo.py | 6bafbfb19a6c2768c6b4e9392ec13feff3f1f76b | [] | no_license | ooyu-kioo/backend_django_mcu | 924f87fb0b0e8ad0b19b1ee44636c371388ffed9 | b37653aa01eca0237abd5ad4e7a8c14cff8fe01b | refs/heads/master | 2022-10-07T04:06:32.280450 | 2019-07-16T00:14:11 | 2019-07-16T00:14:11 | 185,401,266 | 0 | 0 | null | 2022-09-30T20:10:27 | 2019-05-07T12:51:32 | Python | UTF-8 | Python | false | false | 930 | py | # Generated by Django 2.2 on 2019-05-24 05:19
from django.db import migrations, models
import django.utils.timezone
import uuid
class Migration(migrations.Migration):
dependencies = [
('scraping', '0003_auto_20190504_0213'),
]
operations = [
migrations.CreateModel(
name='Rel... | [
""
] | |
e4229e2ca9264838c89a079c67ee7a069472d406 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_hydronium1.py | a683742b4fb99df679d99eb4d786e8944159d953 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,357 | py | from xcp2k.inputsection import InputSection
from _point12 import _point12
class _hydronium1(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Oxygens = []
self.Hydrogens = []
self.Roo = None
self.Pno = None
self.Qno = None
self.Roh = None
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4d5c56c2f007d63298add4efecd1536045d738d2 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2021_06_01_preview/operations/_vaults_operations.py | 941ca54d0d9171c189c4bebbf50201aaf841d748 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 76,701 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
35168cf875fbca339d9a03a620f3d361be4003cf | be2788aa621b5ef701163a2291d705752c739bfc | /rainframework.py | 9d6de4c3ccd2a7a8e7913bd64fbf32ccb618c2c1 | [
"MIT"
] | permissive | charlotteviner/project | e804b952d625378a2661b9642f6aa69b4933ce2b | 225e3183f7bee5f86b142547ebdea8e4c0dea9db | refs/heads/master | 2020-04-10T07:02:35.053762 | 2018-04-26T10:51:02 | 2018-04-26T10:51:02 | 116,581,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,479 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 27 10:52:22 2017
@author: charlotteviner
"""
import random
class Rain():
"""
Set up and provide methods for raindrops as agents.
Set up raindrop coordinates and provide methods to allow the
raindrops to interact with the lan... | [
"charlotteviner@btinternet.com"
] | charlotteviner@btinternet.com |
ed82372d90ffc4a56ad8646a850b8f8a2d285b6d | ca8827f8c002e59f7a3588746d9fa2eeb68e918d | /Round1/old_structure_analysis/old_structure_analysis/ext.py | b61874116bd673dddbf99d7e554437b8855383a3 | [
"MIT"
] | permissive | NavneelSinghal/HCLHackIITK | 0af243121b50410ae3400aac70c3c2f4bb52ec63 | 91ceb865d1ff7c1ff109fbbbcfda8005d3b9cf93 | refs/heads/master | 2023-02-16T09:53:33.231186 | 2021-01-14T08:42:35 | 2021-01-14T08:42:35 | 283,153,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,422 | py | import collections
import os
import sys
def get_feature_dict(filename, ignore_indent=False):
lines = open(os.path.join(filename, 'Structure_Info.txt'), 'r').readlines()
kv = collections.defaultdict(lambda: [0., 0., float('inf'), 0.])
ret = collections.defaultdict(float)
all_size = 0
for l in lines:... | [
"navneel.singhal@ymail.com"
] | navneel.singhal@ymail.com |
b8dc35e654265a3bd10036c3bae134afdaae4e55 | 9482bdaa9829716997a7811eda781a2064952b8a | /predict.py | d246bba2c73e1fdc87329dedc582c075627b08e8 | [
"MIT"
] | permissive | ramaprv/yolo_pascal_voc | f2cec0d1dfd8ef1b8d455a6484d7a62af9760e3a | bd1baba97fe3517d7dac5ed589496c24e44fe79a | refs/heads/master | 2022-06-13T14:45:55.173037 | 2020-05-04T21:14:14 | 2020-05-04T21:14:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,198 | py | """Taken from: http://slazebni.cs.illinois.edu/fall18/assignment3_part2.html """
import os
import cv2
import numpy as np
import torch
import torch.nn as nn
import torchvision.transforms as transforms
from torch.autograd import Variable
from config import VOC_CLASSES, VOC_IMG_MEAN, YOLO_IMG_DIM
def decoder(pred):
... | [
"pulkitkumar95@vpn-054.umiacs.umd.edu"
] | pulkitkumar95@vpn-054.umiacs.umd.edu |
dcdb7f236443dbfde9a936d17d86d13a409c60fd | 2589f33994195434c2ac23cd66bb3821a11562cd | /myapp/migrations/0015_register.py | 0414299658c7ef80dfb05f2f9ec5ce1a5d444a27 | [] | no_license | AakankshaHanda/cancer_probe | fe215c932c2fafb6f1538571cf731d7a55cf6125 | 169676a0d0f545c63a2b3edc182a27e87be697c2 | refs/heads/master | 2022-10-01T01:32:50.645312 | 2020-06-10T06:22:59 | 2020-06-10T06:22:59 | 268,717,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | # Generated by Django 3.0.5 on 2020-05-11 22:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0014_review'),
]
operations = [
migrations.CreateModel(
name='Register',
fields=[
('id', mo... | [
"akkshanda25@gmail.com"
] | akkshanda25@gmail.com |
e26c09292ddea700910bce3519bcf68cfacefdcc | f939f97c4031e9f18a1aba8d7f67194ca3cdeb92 | /script.py | 693e139bd5c271515fbc9312b380841cd6f543dd | [] | no_license | conranpearce/genetic-algorithm | 99d749dd8827e115392ebf6ba53eeb1f90589947 | c9ca6833b7e86905939ff0b97bd973df32918bad | refs/heads/main | 2023-07-13T15:41:17.153044 | 2021-08-19T08:06:21 | 2021-08-19T08:06:21 | 397,567,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,991 | py | import random
import math
import plotly.express as px
import pandas as pd
from numpy import random as rand
# Global Variables
N = 20 # Chromosome length
P = 50 # Population
GENERATIONS = 300 # Increased to run more generations, decreasing the fitness
LOWER_BOUND = -32.0
UPPER_BOUND = 32.0
ITERATIONS = 10
SWAP_AMOUNT =... | [
"noreply@github.com"
] | conranpearce.noreply@github.com |
0c4359df5c7eee324f79aee6a6a234dfd7dcc4b6 | be0edc20433a6ad3bf4b8f448f1c457437de4c52 | /huxley/accounts/exceptions.py | e17051478da72471a69878919d3035f3e31e57cc | [
"BSD-3-Clause"
] | permissive | ethanlee16/huxley | eca8c3c1d4ea543a5875c28d4cb5c81dc4e4eddb | 5d601e952c711e9b6703170c78fb23fcc2734ead | refs/heads/master | 2021-01-15T09:20:25.310737 | 2014-12-03T14:51:33 | 2014-12-03T14:51:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | # Copyright (c) 2011-2014 Berkeley Model United Nations. All rights reserved.
# Use of this source code is governed by a BSD License (see LICENSE).
class AuthenticationError(LookupError):
'''Error raised when a user fails to authenticate a User.'''
INVALID_CREDENTIALS = 'The credentials you provided are inval... | [
"k.mehta@berkeley.edu"
] | k.mehta@berkeley.edu |
a62b036f57c1874d0ce3d82a3468729f8b5bf2bb | 65c001b5f572a6b0ca09dd9821016d628b745009 | /frappe-bench/env/lib/python2.7/site-packages/github/Team.py | 8c28a758a5909d410d42641226a8f708cd339f5e | [
"LGPL-3.0-or-later",
"MIT"
] | permissive | ibrahmm22/library-management | 666dffebdef1333db122c2a4a99286e7c174c518 | b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506 | refs/heads/master | 2022-10-30T17:53:01.238240 | 2020-06-11T18:36:41 | 2020-06-11T18:36:41 | 271,620,992 | 0 | 1 | MIT | 2022-10-23T05:04:57 | 2020-06-11T18:36:21 | CSS | UTF-8 | Python | false | false | 17,254 | py | # -*- coding: utf-8 -*-
############################ Copyrights and license ############################
# #
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
# Copyright 2012 Zearin <zearin@gonk.net> ... | [
"iabouelftouh@trudoc24x7.com"
] | iabouelftouh@trudoc24x7.com |
370de429b5de32664a5d850ea94da51b7d4a1b58 | 207544107302b1a837d50f9140f45482685a166c | /temp.py | 457c36e7bc5b495a84ea1b62db183f739e312ee2 | [] | no_license | surajdurgesht/Machine-Learning-Lab | 16ec874f1f82afa1d9a6644b84798ada2fa03d2c | 09f1e9506d82291255cb5106e2a764fe96189fa8 | refs/heads/master | 2020-06-04T19:09:30.297071 | 2019-06-16T06:34:20 | 2019-06-16T06:34:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,894 | py | # -*- coding: utf-8 -*-
"""
@author: Suraj
"""
import numpy as np
import matplotlib.pyplot as plt
from math import pi
def get_experiment_data(num_datasets, target_fn):
num_samples = num_datasets * 2
s = np.random.uniform(-1, 1, num_samples)
s = s.reshape(num_datasets, 2)
x1, x2 = s[:, 0... | [
"noreply@github.com"
] | surajdurgesht.noreply@github.com |
0d1a4210be5fd242dce89a24edccb2f7ba0eacc8 | ec3cd6ea0ca48ddf830d116c8f1326c772e15ded | /Security Tools/Scanners/Port_Scanner.py | aac8501dffc24071e12dfe37060a24ff68ed48da | [
"MIT"
] | permissive | SWCousins/TootSuite | 10d9fb9234750d8881ab938e71bbe90d29f5a71e | 9e581d6828f07044cbbe3f71c86e896ff4c65835 | refs/heads/master | 2023-04-09T03:38:34.816813 | 2023-03-26T01:13:00 | 2023-03-26T01:13:00 | 143,488,188 | 0 | 0 | MIT | 2020-01-07T04:36:05 | 2018-08-04T01:32:23 | JavaScript | UTF-8 | Python | false | false | 639 | py | import sys
import socket
ip = '192.168.1.11'
open_ports = []
ports = range(1, 65535)
def probe_port(ip, port, result = 1):
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.settimeout(0.5)
r = sock.connect_ex((ip, port))
if r == 0:
result = r
s... | [
"spencercousins@outlook.com"
] | spencercousins@outlook.com |
a9e3052430c8ee57e1fd25ab7bd40fd094129190 | a3eb732ead7e1d10a85a88e42dc639eb16a40265 | /tests/instagram/fixtures/endpoints/login.py | 5582777dbd0c27cf09995003e2fda2f8c899945a | [
"MIT"
] | permissive | carsam2021/instagram_api | 7654c0f485c22935cf478016e46e65acbeda9344 | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | refs/heads/master | 2023-03-16T14:06:27.515432 | 2020-10-17T04:39:19 | 2020-10-17T04:39:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | import json
import httpretty
import pytest
@httpretty.activate
@pytest.fixture(scope='session')
def accounts_login_success(request, base_uri):
httpretty.register_uri(
httpretty.POST,
''.join([base_uri, 'accounts/login/']),
body=json.dumps({}),
)
| [
"root@proscript.ru"
] | root@proscript.ru |
af3c186e1285b14a2977ff6f96973739bc572921 | aa404e67da6affb43fed60d6c267505833c59a28 | /training/eval.py | 48f9fdf56772d327282a10a1c46fedd4a728dbf1 | [] | no_license | MikszaM/rl-quadruped | b3a1a6bb6c96570c85a2805b7285c26d6c7303b4 | 6bcaa76a7ba06c4007144cf4418ec273b362da62 | refs/heads/master | 2022-12-18T18:13:06.603163 | 2020-09-23T18:06:06 | 2020-09-23T18:06:06 | 269,415,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | from stable_baselines.common.evaluation import evaluate_policy
from stable_baselines import PPO2
import gym
import mm_walker
from stable_baselines.common.policies import FeedForwardPolicy, register_policy
from stable_baselines.common.vec_env import SubprocVecEnv, DummyVecEnv, VecNormalize
import pybullet_envs
class Cu... | [
"miksza.michal@gmail.com"
] | miksza.michal@gmail.com |
d7d86fe5dc30eb6d99c91a096dd6e44de927eef5 | a62805c61b259964fb8c5a4add1935d2a9460773 | /latexbot/latexbot/simplelatex.py | e453db266da03315ba032b9c1b94849ea644dff9 | [
"MIT"
] | permissive | tylertian123/ryver-latexbot | 6cc10da5d65fc111e3818102ab5ca80c47440292 | ff9844a5461429788e2e86d5a679922cda69c21d | refs/heads/master | 2022-11-02T23:51:13.161110 | 2022-10-07T02:16:15 | 2022-10-07T02:34:00 | 230,349,327 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,834 | py | r"""
Convert simple, easy-to-read math expressions into LaTeX.
E.g. `sin(sqrt(e^x + a) / 2)` becomes `\sin \left(\frac{\sqrt{e^{x}+a}}{2}\right)`.
"""
import lark
import typing
GRAMMAR = r"""
%import common.WS
%import common.NUMBER
%ignore WS
VARIABLE: /\.\.\.|inf|oo|[a-zA-Z]+|(\\\w+)/
VAL_SUFFIX: /!|'+/
ARW_OP:... | [
"tylertian123@gmail.com"
] | tylertian123@gmail.com |
5b0a05836beff1fd6987664da7f32378c3a4ffbe | 61ce2d27fc36a666ac1c794c2b09a0535698f468 | /cerach.py | 926ecf818d7019c00470fc80c458429a0a224db2 | [] | no_license | TubuOwl/tango-bot | 22b742e8bb24eeeaf7f7dc943dd2b2e026f3caf3 | 1ae83a587edbc1edfd3a8f2220421b559dacbf60 | refs/heads/main | 2023-06-07T09:20:06.505313 | 2023-05-27T05:08:19 | 2023-05-27T05:08:19 | 373,472,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,524 | py | ################################################################
# Original By : Lumirayz/Lumz lumirayz@gmail.com
# Edited By : Agunq
# Use python3 because python2 is discontinued :(
# Require websocket-client module
# pip install websocket-client
################################################################
... | [
"noreply@github.com"
] | TubuOwl.noreply@github.com |
a8c71dd3a1929762af1b24e53fa169f9e5a1bf40 | cbff06d328b57ef1203aa72d1a95b9a6f6247477 | /my_first_project/settings.py | bc3bcfa995db56ab19fc1ea6a683f27fdbdd2ae8 | [] | no_license | forward995/django-api | 934736eefb94569646f3288963c06cbf8c7bb035 | d84248a932930699d2ceaaf79eda3062b948014e | refs/heads/master | 2021-11-04T13:37:31.606704 | 2019-04-27T20:33:44 | 2019-04-27T20:33:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,110 | py | """
Django settings for my_first_project project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impor... | [
"hyodong000@outlook.com"
] | hyodong000@outlook.com |
7edf943665d6fc4b762825851b1485b56daa2a86 | 5c2f520dde0cf8077facc0fcd9a92bc1a96d168b | /test/tests/48.py | 701214cadabfb5fab25b77cf13ac06fbb3227046 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | nagyist/pyston | b613337a030ef21a3f03708febebe76cedf34c61 | 14ba2e6e6fb5c7316f66ccca86e6c6a836d96cab | refs/heads/master | 2022-12-24T03:56:12.885732 | 2015-02-25T11:11:08 | 2015-02-25T11:28:13 | 31,314,596 | 0 | 0 | NOASSERTION | 2022-12-17T08:15:11 | 2015-02-25T13:24:41 | Python | UTF-8 | Python | false | false | 113 | py | # This should raise a python level error, not an assertion in the compiler
x = 1
y = x.doesnt_exist
print y + 1
| [
"kevmod@gmail.com"
] | kevmod@gmail.com |
56a847e3692eadcd5bfcc70482b5fdd4f134c2dc | cdb186ad49bba1406c81f634b936e73f8cb04009 | /ABC/166/a.py | 9895741e925d392b5ccba894a64c79fc71a3d3af | [] | no_license | ToshikiShimizu/AtCoder | 9e46f5581f2c1f5149ce1394d61d652cda6256a3 | 41fe6408c20c59bbf1b5d7ee9db2e132f48ad1ac | refs/heads/master | 2023-07-26T22:45:51.965088 | 2023-07-10T14:11:35 | 2023-07-10T14:11:35 | 148,154,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | import sys
#input = sys.stdin.readline
sys.setrecursionlimit(10**7)
INF = 10**10
MOD = 10**9 + 7
# N = int(input())
# A = list(map(int,input().split()))
# A, B, N = map(int,input().split())
S = input()
if S=='ABC':
print ('ARC')
else:
print('ABC') | [
"tamreff3290@gmail.com"
] | tamreff3290@gmail.com |
51a9d301919a9c7dacb4cb5db074aa3df00179b2 | c5347d37f7d8018c2e6161de265ed5ced7deab51 | /budget/urls.py | f59d1c1f0c7f1ac13751abfb74f2d159ba9a4042 | [
"MIT"
] | permissive | davidlares/budget-webapp-django-testing | db3f1d5f6f90ccc357271cbe02becf31d4d38355 | 330039ba8a34e14afc96050a5cb9494380edbe84 | refs/heads/master | 2022-01-12T15:50:53.638288 | 2019-05-10T14:27:05 | 2019-05-10T14:27:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('', views.project_list, name='list'),
path('add', views.ProjectCreateView.as_view(), name="add"),
path('<slug:project_slug>', views.project_detail, name='detail')
]
| [
"="
] | = |
f2780f8659ab8faa16a33e70632ee2f9b892c939 | 34212c7d0e41b3a1460ec4b852959bae4889991e | /2021/plot_response.py | 98ed7dd6a2df3e830f694373bace2f2b3236eaea | [] | no_license | JialiUMassWengLab/Misc | 795b07b2a43455eed84bf4a0923477911c6446a6 | 0aca8cbdf975c237c1efdcb7ac763bce3db6162e | refs/heads/master | 2023-08-30T12:55:53.910153 | 2023-08-25T17:33:45 | 2023-08-25T17:33:45 | 47,572,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,217 | py | #! /usr/bin/python
import re
import os
import sys
import glob
import numpy as np
import pandas as pd
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import seaborn as sns
def getData(metric):
files = glob.glob('/home/jzhuang/DB109/Source/*/eff_%s_nom.csv' % metric)
array = []
for f... | [
"jlzhuang87@gmail.com"
] | jlzhuang87@gmail.com |
22fc100c9cbc0c85936d6c1159b5de9e3ad51583 | ccb328be3723d6967b6afd1831ca18f00df0b016 | /Convert files.py | 69b6d352f8636243cf9c91bb3ade4e3378559d50 | [] | no_license | RamachandiranVijayalakshmi/Convert-following-datetime-instance-into-string-format | 3bbd43e7cd7dc13faefc07177100e3a8720752e3 | f916ab000268b6f49b85d2455ddbcff6dd0f3c30 | refs/heads/main | 2023-01-24T14:03:45.947903 | 2020-12-12T16:47:46 | 2020-12-12T16:47:46 | 320,635,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | from datetime import datetime
given_date = datetime(2020, 2, 25)
string_date = given_date.strftime("%Y-%m-%d %H:%M:%S")
print(string_date)
| [
"noreply@github.com"
] | RamachandiranVijayalakshmi.noreply@github.com |
620f31ff27295887ffa9e963707f744ebcfe05ea | cc6cf69de91f9419dd75d91da3448c244e0b5658 | /Curso Python/ex009.py | e11a8e425c834148530d1f4e74a6a8f4d690673a | [
"MIT"
] | permissive | sandro-fidelis/Cursos | 5f9248bc400186793dec950a9edee9fb49091c5b | cee1960181b1309be93034694cab8cf2878e2194 | refs/heads/main | 2023-07-28T06:57:40.604393 | 2021-09-14T20:40:59 | 2021-09-14T20:40:59 | 328,688,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | n = int(input('Qual tabuada deseja ver: '))
c=1
print(11*'=')
while c <= 10:
print('{} x {:2} = {}'.format(n,c,c*n))
c += 1
print(11*'=')
| [
"54478235+sandro-fidelis@users.noreply.github.com"
] | 54478235+sandro-fidelis@users.noreply.github.com |
770e7ed8f36edb31f3f1ef3dfdd713e584abaabc | 0daeabeb24b6e90e1ffa1eaf45a5854e128812ba | /src/ggrc/models/associationproxy.py | 0350f136eb1fca1e664397f44259f8305ecf40d3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | 2947721120/sagacious-capsicum | 3d3e47cb2ece4b4473895581345d7479a62e9e8d | 671d2b4a17a1d82c7ad4ffa22a27b17dfc9addcd | refs/heads/master | 2021-01-13T13:01:01.266842 | 2016-02-04T18:04:08 | 2016-02-04T18:04:08 | 47,549,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py |
# Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By:
# Maintained By:
from sqlalchemy.ext.associationproxy \
import association_proxy as orig_association_proxy
"""Wrapper for SQLAlchemy associat... | [
"david@thecharboneaus.net"
] | david@thecharboneaus.net |
8817508835dfcbdb7a4bc238056806024829ee01 | f9d39ab1429ca32418a766cfceaf49ed21d75abf | /exercise_2020_01/exercise1.py | ad7fa5aca991bbf48d7b01d9ff060508134d9ed6 | [
"Apache-2.0"
] | permissive | yorkshire-geek/advent_of_code_2020 | 31a8886858201a9b0359e9f9dfc6657d9afca6a6 | 6868f89849ab7347689136b010020f8cd90f2d93 | refs/heads/main | 2023-01-24T23:01:27.230369 | 2020-12-06T11:29:45 | 2020-12-06T11:29:45 | 317,262,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | def return_list():
result = []
with open("input.txt", 'r') as input_file:
for line in input_file:
result.append(int(line.strip()))
input_file.close()
return result
if __name__ == "__main__":
list_of_ints = return_list()
list_of_ints.sort()
print("--- find 2020 with t... | [
"david.turner@sonocent.com"
] | david.turner@sonocent.com |
b53c8d83659f41af4480372772684be13c465601 | 387fc1d31252f7dce3726f26a9d64f4a868083c0 | /samples/python/guides/images16.py | f90a6ffe0757c965d98e357f1a692075decc0aa8 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | gino-m/earthengine-community | 3081e2806ce7bcb1980acfa2c04d97abd5a6efe7 | ff3b589134b8ace62502f45b11c705098c818d8e | refs/heads/master | 2022-02-20T06:56:20.473192 | 2022-02-11T00:39:05 | 2022-02-11T00:39:33 | 201,116,826 | 3 | 1 | Apache-2.0 | 2021-06-18T20:43:12 | 2019-08-07T19:42:05 | Jupyter Notebook | UTF-8 | Python | false | false | 1,560 | py | # Copyright 2020 The Google Earth Engine Community Authors
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
bac404b702c7c2e55d3b5f877c3a39a6c4fce3ae | 8d41e1c623b39f54da76d8b3c65a0e0a4fd2b551 | /QueueCheck-requests.py | ea7875d0cd80078d0b9a84837aad29b1bc0b5ae5 | [] | no_license | heijigaoke/AMQ-monitoring | a28166dffe8e26d3360e89e1d32df6f9d048d64a | 206d967f05edb04e55cb341ea3e4d8068d51feea | refs/heads/master | 2020-06-06T23:29:36.902469 | 2018-09-25T11:19:01 | 2018-09-25T11:19:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | #!/usr/bin/python3.6
import sys
import requests
import json
# first argument should be ip address
# second argument should be port
# third argument should be one of queue names
# fourth argument should be 'EnqueueCount' or 'DequeueCount' or 'ConsumerCounts' or 'OueueSize'
url = gittp://{}:{}/api/jolokia/read/org.apache... | [
"noreply@github.com"
] | heijigaoke.noreply@github.com |
b417c143d2627605b42b7f8daee98f149a41f248 | 442cf473443c3c033f045d147c359445ea9c1402 | /tonya_bot/source/settings_example.py | 8256e57d1f93d115e06b0a966ff48f0d5345de9f | [] | no_license | Coloboros/TONYA | 536de45d5e0259fe2dca5204fb6c65587a9dbbb9 | 359c00d1afc66adce75c601ac5872d59dcda7ed9 | refs/heads/main | 2023-06-12T19:47:02.075803 | 2021-07-08T19:05:14 | 2021-07-08T19:05:14 | 378,373,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | import os
BOT_TOKEN = 'Some Telegramm bot tocken'
SERVER_HOST = '0.0.0.0:3253/api/'
SERVER_HOST_AUTH_URL = '0.0.0.0:3253/api/user/auth'
SERVER_HOST_PROTOCOL = 'http'
SOURCE_PATH = os.path.split(__file__)[0] | [
"deposha322@mail.ru"
] | deposha322@mail.ru |
33b750230707d0305339feaee5ca36824a728853 | 2aaa9780fc683ee535205742ecb77c2f2e7b4c5f | /flask_app/s3.py | da4251a21f5c8fbe16bea8a2e24b867cb7bdb94e | [] | no_license | climam/Railsbank_Mock_Card_Endpoints | 3886ecbc3309e2828a3467964b1b910c23e43f6b | 5d74abf86320cfd1be39d6b81fe74efd37639406 | refs/heads/master | 2022-11-09T22:19:41.444595 | 2020-06-26T16:07:33 | 2020-06-26T16:07:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | __author__ = "Bruce Pannaman"
import boto3
import botocore
class s3:
def __init__(self):
self.bucketName = "{Your s3 bucket name}"
self.local_filepath = "/tmp/temp_storage"
self.s3client = boto3.client('s3')
s3resource = boto3.resource('s3')
self.s3resource = s3resource.Bu... | [
"bruce@pannaman.com"
] | bruce@pannaman.com |
253fa0e7077b76e305a9ee7e04125ac836321ab0 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/cnremm002/question4.py | 349c4f29977ee2a2864796a3da87ca34d39ce2ff | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | """Grade
Emmanuel Conradie
25 April 2014"""
#marks input
mark = []
marks = input("Enter a space-separated list of marks:\n")
marks = marks.split(" ")
fail = 0
third = 0
second1 = 0
second2 = 0
first = 0
#sort marks into catagories
for i in marks:
if int(i) < 50:
fail += 1
elif int(i)... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
c626856030bb7194c786d3b64456a7553abe90ae | 1f2e375d85a47141d87d323d3186a576dd4a2303 | /app/__init__.py | 1c9601a3c93ed5001866b32ba585a0624f4eebc9 | [] | no_license | nmineev/freqspec-of-sound | 0a1ccdcbf404f0dccc6fdae103780ae05cb9785e | 6d145232d822d0c8c68d5de0cf0268239a05c494 | refs/heads/master | 2022-12-27T16:13:23.579093 | 2020-09-29T12:52:49 | 2020-09-29T12:52:49 | 299,609,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # -*- coding: utf-8 -*-
import os
from flask import Flask
from flask_bootstrap import Bootstrap
def create_app(test_config=None):
# create the app
app = Flask(__name__, instance_relative_config=True)
app.config["SECRET_KEY"]='dev'
bootstrap = Bootstrap(app)
from . import freqspec_builder... | [
"nmineev98@gmail.com"
] | nmineev98@gmail.com |
e51ea5339c55f14d2b16346cc64c8f11eaa2d1ab | 9f7512711f78d71a5de7ec54001411cb9c319424 | /glc_env/bin/easy_install-3.8 | 70b3fead27c551349f4d1219a3ec7613bf5de9c9 | [] | no_license | charles-co/glc_project | a819ad5b401ba2279901f8f752f7a9331271d376 | ae8c3cba6dcb416d7afa3abbbf439f48003b6e9f | refs/heads/main | 2023-03-29T17:28:05.518810 | 2021-04-03T18:00:16 | 2021-04-03T18:00:16 | 336,250,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | 8 | #!/home/glc/glc_project/glc_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"charlesboy49@gmail.com"
] | charlesboy49@gmail.com |
ba150da1be21589a22c729f3b45bc5850ce42ea3 | e5f1597886b11f4a59173c86d804f5227f41f0f0 | /bot.py | 3cdeb6d6fed06bd79a66e8c7d193b2d9a65e6b6c | [] | no_license | Forevka/forevka_bot_telegram | 85abe2f314c075ee1a17ec9e3c1d411f38018de6 | 6363135b796a982512e4e38b2de650070dde4342 | refs/heads/master | 2021-08-31T21:23:13.731862 | 2017-12-23T00:13:39 | 2017-12-23T00:13:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,532 | py | import sys, traceback, time, config, telebot,sqlite3, dbworker, random, grabing, ast, get_weather, virus_total
import wget,os
import lxml.html as lhtml
from google import search
from telebot import types
from vedis import Vedis
from calculator.simple import SimpleCalculator
from googletrans import Translator
conn = sq... | [
"noreply@github.com"
] | Forevka.noreply@github.com |
a414686d76bdc2d63ea904bb126ad4fda325e8a8 | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /accelbyte_py_sdk/api/cloudsave/models/models_bulk_get_admin_player_record_request.py | 5969988affec0459d9429ac7ada139535ba14966 | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 3,953 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template file: ags_py_codegen
# AccelByte Gaming Services Cloudsave Service (3.10.1)
# pylint: disable=... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
f36ac72326e5a95f8a19126fdfd9bf06dc8f6261 | 7e65740956db489cc46f722027af5e560912c162 | /sweetxcyanide.py | 85c1f7f500b78a77f3f7bce3492af27c2f61b4da | [
"MIT"
] | permissive | ApoorvTyagi/youtube-apiv3 | 65f70ecdf33693af1be5433bb834bca9887abe6a | 1cc419c4a113e5a584cdfa6631afce933033ad41 | refs/heads/master | 2023-04-06T01:27:51.008250 | 2021-04-13T15:21:43 | 2021-04-13T15:21:43 | 284,260,055 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,613 | py | '''GET video statistics using youtube api v3 and update the video's metadata'''
#importing all required liberaries
import google_auth_oauthlib.flow
import googleapiclient.discovery
import googleapiclient.errors
import logging
import time
from apiclient.discovery import build
# Setting Up Logging
logger =... | [
"noreply@github.com"
] | ApoorvTyagi.noreply@github.com |
007f1bf6e621cb68ad91f330a33b674ee5f7ed80 | 720a85f9170164620b6225bd39c09cf866e0253a | /loops/while loop/multi-muliplication using WHILE.py | 79146de104dee59588ecc6384356f6ed93eedf12 | [] | no_license | mourice-oduor/Python-3 | a333d27a767e4f3a60c1d76eddca89b1f16ddc9f | e49f30d2aff2afb20f8989d2c296edda11500c69 | refs/heads/master | 2020-08-27T07:48:04.626974 | 2020-02-06T17:05:03 | 2020-02-06T17:05:03 | 217,289,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | num = int(input("Enter any number: "))
i = 1
while(i<num):
print("\n")
i = i+1
j = 1
while(j<11):
print(i,"X",j, "=", i*j)
j = j+1
| [
"otienomaurice364@gmail.com"
] | otienomaurice364@gmail.com |
d8b272891bed8d7d331ec677e732e32b6fbee606 | ccf7ca1e3eb8918426fd33b61855768a0a4e06ee | /app/apps/address/forms.py | 9bb0d6a0807dc90ce6bae4bba2cb7f605f755226 | [
"MIT"
] | permissive | barisortac/mini-erp-docker | b4a77370d8cc10bc010756180a6c9a033276399e | f5c37c71384c76e029a26e89f4771a59ed02f925 | refs/heads/master | 2023-02-13T16:27:58.594952 | 2021-01-15T21:23:40 | 2021-01-15T21:23:40 | 322,933,618 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,022 | py | # from __future__ import unicode_literals
# from dal import autocomplete
# from django import forms
# from django.utils.translation import ugettext_lazy as _t
# from django.urls import reverse
# from crispy_forms.helper import FormHelper
# from crispy_forms.layout import Layout
# from crispy_forms.layout import Fieldse... | [
"baris.ortac@hamurlabs.com"
] | baris.ortac@hamurlabs.com |
caed48b5b5fd31495310e9327d58a1c4d19d8ffd | 4c252eb68446d5fd050e28a6b5ba1a7879b70b0a | /pyuavcan/_cli/commands/_paths.py | a270e2ab069d3ad6ba09df9106feaf9e9ff563e3 | [
"MIT"
] | permissive | jxltom/pyuavcan | ce2cdf3a95ba4c6f3a0fd8aae24b341e46481fae | 42063b65ee2af431ab485f228d1ed5465a576449 | refs/heads/master | 2021-01-16T15:09:48.547764 | 2020-05-26T09:31:25 | 2020-05-26T09:31:25 | 243,163,363 | 0 | 0 | MIT | 2020-02-26T03:53:47 | 2020-02-26T03:53:46 | null | UTF-8 | Python | false | false | 2,052 | py | #
# Copyright (c) 2019 UAVCAN Development Team
# This software is distributed under the terms of the MIT License.
# Author: Pavel Kirienko <pavel.kirienko@zubax.com>
#
import os
import sys
import pathlib
import pyuavcan
VERSION_AGNOSTIC_DATA_DIR: pathlib.Path
"""
The root directory of version-specific data directori... | [
"pavel.kirienko@gmail.com"
] | pavel.kirienko@gmail.com |
32508c5e95c812085d349826080e03e7aafd348b | 63d3a6255f2677f9d92205d62163b9d22a74c5c7 | /modules/dynadb/uploadhandlers.py | 8b258c9efa46a1c569c225170a667d65fd85e717 | [
"Apache-2.0"
] | permissive | GPCRmd/GPCRmd | 9204f39b1bfbc800b13512b316e05e54ddd8af23 | 47d7a4e71025b70e15a0f752760873249932c54e | refs/heads/main | 2023-09-04T11:13:44.285629 | 2023-08-29T13:43:01 | 2023-08-29T13:43:01 | 260,036,875 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,126 | py | import os
from django.core.files.uploadhandler import TemporaryFileUploadHandler, StopUpload, StopFutureHandlers
from rdkit.Chem import MolFromMolBlock, ForwardSDMolSupplier
from .customized_errors import MultipleMoleculesinSDF,InvalidMoleculeFileExtension, RequestBodyTooLarge, FileTooLarge, TooManyFiles
from django.co... | [
"adrian.garcia.recio@gmail.com"
] | adrian.garcia.recio@gmail.com |
1530090e1c718d363e1965265df8172db832486d | f3b233e5053e28fa95c549017bd75a30456eb50c | /tyk2_input/45/45-42_MD_NVT_rerun/set_2.py | a785bc303fba3cc93b06dcf7f2ba4db66e95ff30 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/tyk2/L45/MD_NVT_rerun/ti_one-step/45_42/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_2.in'
temp_pbs = filesdir + 'temp_2.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lam... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
0ef4bd56bca266a23c1257f4970f9dcf5716d062 | 2f82c81b5c6d1033d5d79a1f41a853c84669d4d4 | /restaurant/restaurantApp/admin.py | 8921191f30ed469e0ee6b70ff9d518def7f88c69 | [] | no_license | DarshanN1/UTSTuesdayG52021Aut | ba241c88126574cfdd39451468e19a2d68043966 | 345025e675f638e2d1b0a7419996e32c58d6e81a | refs/heads/main | 2023-06-16T08:05:48.230774 | 2021-07-15T02:49:39 | 2021-07-15T02:49:39 | 341,414,511 | 0 | 0 | null | 2021-07-08T12:11:00 | 2021-02-23T03:22:03 | HTML | UTF-8 | Python | false | false | 353 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Customer)
admin.site.register(StaffMember)
admin.site.register(MenuItem)
admin.site.register(Category)
admin.site.register(OrderItem)
admin.site.register(Order)
admin.site.register(Booking)
admin.site.register(Table... | [
"dulyacsm15@gmail.com"
] | dulyacsm15@gmail.com |
95f997d730d4349f34e763fa45584ee59e322956 | 1b120be95adf8003570164fe05950691b5d5838e | /venpo/cli.py | 01d4c7b8b1bb367fbd7c2ed34b01d8fdaa1061c5 | [
"MIT"
] | permissive | mfdeux/venpo | 19949256a5919f7a083d0d08256f3e12261d821c | 3afac802d81540d9833b8216744e9823188c39f2 | refs/heads/master | 2022-11-24T05:18:27.235837 | 2020-08-03T16:09:45 | 2020-08-03T16:09:45 | 284,719,035 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | import click
from .main import USER_AGENT_FILE, load_user_agents, save_data, scrape_profile
@click.command()
@click.argument('username')
@click.option('--filename', default='venmo-txn', help='Filename of which to save scraped data')
def cli(username: str, filename: str):
"""
Extract Venmo transactions from a... | [
"mrfxyz567@gmail.com"
] | mrfxyz567@gmail.com |
fc8d7a1cc3753284ca0a7d7e33b64bc819d8206e | 0d4742b4393e5a5adb779d10fd9473dc8b3d9cd4 | /LoginByEmail/wsgi.py | 10ce9fc8eb87d0879491ed238bc35a3534ddd939 | [] | no_license | arjuntheprogrammer/LoginByEmailDjango | 589dbd3cf584c8d52e2082e398d96763d8171ea3 | 313e4028cd37feeda54b9af3a7b364071d86dbb3 | refs/heads/master | 2020-04-02T02:26:28.452725 | 2018-10-22T19:09:05 | 2018-10-22T19:09:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for LoginByEmail project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"saimzn4241@gmail.com"
] | saimzn4241@gmail.com |
ae6f820584750c60b673c130ec3650336ee08996 | 1927778b40057958bca95fee27d17e7ab4fbfed7 | /demucs/grids/mdx_extra.py | e32f7cd7538de2ed2ab376e69c135ba886dd6eb8 | [
"MIT"
] | permissive | ishine/demucs | c91a3a745629f9d362344f61bd7444ce7cf3ef12 | e1f2ed2963f1373fb5e66f4079fc7d4f544e128e | refs/heads/master | 2022-12-02T06:58:21.238933 | 2022-11-17T15:50:07 | 2022-11-17T15:50:07 | 360,808,025 | 0 | 0 | MIT | 2021-04-23T08:00:10 | 2021-04-23T08:00:10 | null | UTF-8 | Python | false | false | 1,039 | py | # Copyright (c) Meta, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
"""
Main training for the Track A MDX models.
"""
from ._explorers import MyExplorer
from ..train import main
TRACK_B = ['e51e... | [
"alexandre.defossez@gmail.com"
] | alexandre.defossez@gmail.com |
065486e3d651931890313eff71b6e5aa7e66e103 | 93a10a77cfed19f6f43987d5f7333c7599990ab1 | /vpy27/Lib/site-packages/cms/tests/test_site.py | 9e3c28f77b6ff413a8fcfd0f6da48a13ebf220be | [] | no_license | zfanai/vpy27 | 8cd00a49cadccd462276f685dfa30d51cfdfe3d6 | 57ae83d393c569cb632b1ad0bb093a13851e10ed | refs/heads/master | 2021-07-15T20:25:41.383490 | 2017-10-21T02:18:50 | 2017-10-21T02:18:50 | 107,623,345 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,915 | py | # -*- coding: utf-8 -*-
from __future__ import with_statement
import copy
from django.contrib.sites.models import Site
from cms.api import create_page
from cms.models import Page, Placeholder
from cms.test_utils.testcases import CMSTestCase, URL_CMS_PAGE
from cms.utils import get_cms_setting
from cms.utils.urlutils i... | [
"zf_sch@126.com"
] | zf_sch@126.com |
84cb818bf7c6bcc47943255f6207b78f2f3eea43 | 82d284f9f7d66baf75914614ac1bf56dc3516a9a | /SGA_SEVEN/SGA_SEVEN/wsgi.py | 2b04a6dfb3e75d9e1d6dabff5ea2fe791ae2f36d | [] | no_license | WanerAndresVM/SGAseven | ed4f11df01e037640c3cf5b0054800578b989909 | 53195177d9b88c282cdf8d2d2fa34f9912783718 | refs/heads/develop | 2023-08-01T06:39:23.292451 | 2020-05-13T21:54:46 | 2020-05-13T21:54:46 | 263,747,757 | 0 | 0 | null | 2021-09-22T19:01:14 | 2020-05-13T21:32:52 | Python | UTF-8 | Python | false | false | 395 | py | """
WSGI config for SGA_SEVEN 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_SET... | [
"valenciawaner@gmail.com"
] | valenciawaner@gmail.com |
68e2f46d01b89ea3bba1ff71f747a494048e4971 | b63551b3ecbd9ba25285d1a059ca6010b94d8713 | /mysql/_sqlalchemy.py | cdfef705af3611bb43059bb0eab8105498763d61 | [] | no_license | kinpoll/python- | 9082749d21c40cc563dd13536e5aa79af62583d0 | a3e0f3189caf29984d46e95bba8411f2a24fbbed | refs/heads/master | 2020-04-04T21:58:50.330917 | 2018-11-06T01:10:18 | 2018-11-06T01:10:18 | 156,305,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base#(类)
from sqlalchemy import Column, Integer, String
# session会话
from sqlalchemy.orm import sessionmaker
# 创建数据库连接对象
engine = create_engine('mysql+pymysql://root:123456@localhost/db5')
# 创建一个orm基类
Base = declarative_base()
# ... | [
"tarena@tedu.cn"
] | tarena@tedu.cn |
3acc4bbf31aad07722de7810acf23fa4861eb307 | 5759f0579782a52b289fe62455b790d7ad91bdf8 | /cracks_nms.py | 19eaa72e393a8eebc000c92d755842f1148fb352 | [] | no_license | ShabeerMohammad/Deep-Custom | 19f7acd75b10187ede45071f401c153ce6cc9102 | 9baef2e6b89d524e76093b29b6d31ea3fa250c00 | refs/heads/main | 2023-05-11T13:59:58.067584 | 2021-05-20T16:17:26 | 2021-05-20T16:17:26 | 368,842,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,437 | py | from matplotlib import pyplot
from tensorflow.keras.preprocessing.image import load_img,img_to_array
#from mrcnn.visualize import display_instances
from matplotlib.patches import Rectangle
from mrcnn.model import MaskRCNN
import glob
import cv2
from mrcnn.config import Config
import numpy as np
from mrcnn.model import ... | [
"noreply@github.com"
] | ShabeerMohammad.noreply@github.com |
51c3379cd586914315f9820e95e92bc7f4309e0f | 69c8862c03eadc2132cf6e841da73fe397a53672 | /utilizadores/migrations/0001_initial.py | 2dfdab42387a84f8f340a667d71509fbc137d65d | [] | no_license | svigor/ULTIMATE_LES | 9eddbc7cf50e41625a98cd0bd0e893e9eae40e19 | 5f5b7f56d8ca88d5d5122bcb91dc95a466de8d01 | refs/heads/master | 2023-06-01T00:31:46.738186 | 2023-05-28T20:46:19 | 2023-05-28T20:46:19 | 351,144,973 | 0 | 0 | null | 2022-03-15T17:58:32 | 2021-03-24T16:12:45 | JavaScript | UTF-8 | Python | false | false | 2,698 | py | # Generated by Django 3.2 on 2021-04-21 15:07
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations =... | [
"variormerfi@gmail.com.com"
] | variormerfi@gmail.com.com |
3575325c24967392841f9f453c832b41d751575f | a268cd67916fbf33ec0c18fce9ba883c3aae005c | /iputils/iputils.py | 88c4ec63eb178fdb2a4d732f7d270667d3269cab | [] | no_license | adamacosta/OMSCS-6250-Examples | 152ea13ab53ac94ed5b0f886b56e143067e86416 | 179801320162c7135c9e47ba3e7188b398175156 | refs/heads/master | 2021-01-01T20:48:07.267554 | 2015-06-09T14:45:55 | 2015-06-09T14:45:55 | 37,002,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,778 | py | import re
from numpy import binary_repr
from bitarray import bitarray
def _gen_octet(bits):
exec('b = ' + '0b' + bits)
return str(b)
def _bits_to_string(bits):
return bits.to01()
def _bits_to_dotted_quad(bits):
return '.'.join(list(map(_gen_octet, [bits[:8].to01(),
bits[8:16... | [
"acosta.adam@gmail.com"
] | acosta.adam@gmail.com |
3fdcc5ff4ac4f4111bcb8147b7b2b25b259e93a9 | 00fa2a8f248870316b1f582ea2baebc8e86f6363 | /py/prospect/mycoaddcam.py | f6803d7b2b13beb89950bb6cb04d71946b41b775 | [] | no_license | moustakas/prospect | d9521aaf279707707553338ab659e847dbf470aa | cd445bcf3912d834f17587eff2c28cde6b7fe7a8 | refs/heads/master | 2020-12-29T05:45:45.426590 | 2020-02-06T15:34:12 | 2020-02-06T15:34:12 | 238,477,786 | 0 | 0 | null | 2020-02-05T15:05:01 | 2020-02-05T15:05:00 | null | UTF-8 | Python | false | false | 2,694 | py |
# EA - Oct 2019 (Temporary / preliminary)
# desispec.coaddition.coadd_cameras() unsatisfying at least since
# 1) don't want to coadd over exposures / 2) cannot assume waves are aligned over arms (r/z mismatch seen in datachallenge)
import numpy as np
from desispec.interpolation import resample_flux
def mycoaddcam(s... | [
"eric.armengaud@cea.fr"
] | eric.armengaud@cea.fr |
1ac8b41806a067abca1fdc45593dc680c0a3e844 | ad0a9af0e6e17db1a1ab1ce001e7fd310a41ff91 | /smtp_proj/manage.py | 51e717400e4637b45d1ccf203fe5d427dc77045c | [] | no_license | matthewgstillman/nba_api | c73e6f4b086ca9ceaf2009a691472e8356899c5c | 4f840bd0002f201e8696d2a6d82a2fefe1170f7a | refs/heads/master | 2022-02-21T01:27:21.512006 | 2019-08-16T02:50:51 | 2019-08-16T02:50:51 | 198,093,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "smtp_proj.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that th... | [
"matthewgstillman@gmail.com"
] | matthewgstillman@gmail.com |
90d4943fbffe4b239c2566d420ef7fd466efed78 | 91f4078045a57eaaafe0b172909d7041e829941c | /arjuna/interact/gui/dispatcher/driver/driver_commands.py | b53c495a8f2550697d250ee1544d207518bd6a0b | [
"Apache-2.0"
] | permissive | amiablea2/arjuna | 0d06d1dfb34309f4b6f39b17298f7acb6c3c48c9 | af74e0882216881ceca0a10f26442165ffc43287 | refs/heads/master | 2023-08-21T20:04:30.416303 | 2021-10-27T06:41:40 | 2021-10-27T06:41:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,022 | py | # This file is a part of Arjuna
# Copyright 2015-2021 Rahul Verma
# Website: www.RahulVerma.net
# 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... | [
"rahulverma81@gmail.com"
] | rahulverma81@gmail.com |
1a2cbca2b47e204576ed75b0558589bb3685657d | 79fd905786eeb0ab21ca1945a3305a18a2d5176a | /Restart.py | 9b38684ae7d162ce5869a42e76efaf38c89818f4 | [] | no_license | sushil1024/Computer-Troubleshoot-and-Intelligent-System | 8e5f6608513358305d87f2a67cc276d39643dabd | 2c2cbcd05163dc4c0b2655b74b263acc53175705 | refs/heads/main | 2023-08-28T00:49:39.808386 | 2021-10-25T12:03:35 | 2021-10-25T12:03:35 | 384,628,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | #importing os which is used for interaction with the operating system
import os
#choice to whether or not restart the computer
restart = input("Are you sure ? (yes / no): ")
if restart == 'yes':
#restart the computer
os.system("shutdown /r /t 1")
elif restart == 'no':
print("Cancelled")
els... | [
"noreply@github.com"
] | sushil1024.noreply@github.com |
172b8fbbdf7493697776b058232fbe4c91b4d476 | 06c07c7a791e3487ddc84b1ab4e14769c23c2460 | /path_finder.py | ace25c5cfd6a7cae8a8e15471080c4540aaed294 | [] | no_license | jimstevens2001/AI-Pacman | a0eb0004ebda7b30c6a1a09e3afc2b97f9273afd | 0e2b26b28b5ce0ed6845e6f12f2134e203d79763 | refs/heads/master | 2020-05-17T20:29:46.595727 | 2011-05-07T16:24:28 | 2011-05-07T16:24:28 | 1,675,391 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,631 | py | from common import *
import random
class PF:
#------------------------------------------------------------------------------
# __init__()
#------------------------------------------------------------------------------
def __init__(self, game):
self.game = game
self.random = random.Random()
#-------------------... | [
"jims@cs.umd.edu"
] | jims@cs.umd.edu |
415e976a4adc1c0c915435715d74dd585e196784 | 161a765674b837cf4a2f48879a987dce3f40d15f | /api_dev/blog/migrations/0005_auto_20210613_0419.py | 688daf888b9c485f7616526297a1b43520fd6e65 | [
"MIT"
] | permissive | ManhTai01/api | 19662cae94f9182dabb183a37bf7715be04254d9 | 09d7a8dd0a11c1552c34cd9006c5afae94897afc | refs/heads/master | 2023-05-23T17:09:36.339576 | 2021-06-14T12:19:13 | 2021-06-14T12:19:13 | 376,811,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | # Generated by Django 3.1.12 on 2021-06-13 04:19
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('blog', '0004_auto_20210613_0419'),
]
operations = [
migrations.AlterField(
... | [
"lemanhtaictbp@gmail.com"
] | lemanhtaictbp@gmail.com |
3d6b83db1676023fa24d0d85d6002eab0aaa8483 | d7214b7c62d32c22d18023a827ef35fe483163ad | /Archive/tdsr_dec.py | 9d73c7a066c2daf5d39adfe0b5c98cef553235de | [] | no_license | shawn-y-sun/ReportingAnalytics | 85058608126486b425161efd8edff0e7ba84b609 | 10504711a5c512fce81f061c43ce8c6edc672721 | refs/heads/main | 2023-07-13T06:32:57.793954 | 2021-08-27T18:21:00 | 2021-08-27T18:21:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | from Reporting import load_data, Write, st_tdsr, template_tdsr_dec
import time
import datetime
file_path = r'C:\Users\sunsh\Documents\TDSR A Decline\TDSRA_over65_makingitthrough_noTDSRrule.xlsx'
if __name__ == "__main__":
start = time.time()
################################################
df... | [
"noreply@github.com"
] | shawn-y-sun.noreply@github.com |
380081a06fd4a15bd7a9daedd5e5203a518b85a4 | bf226f09fbcdb9be737f85cee6609afb9e896b72 | /server/models.py | fa1d14930d731e599302e6ed2c8787fd44b6a257 | [] | no_license | AymirAydinli/AirlineFlask | bd8c0c975cd74e8af6ebe8d5f72d3c415ddeee8e | c6d4a47499cebf2e926c0a3012bb11b4b996cc6f | refs/heads/master | 2020-12-27T05:48:12.630606 | 2020-02-27T17:22:02 | 2020-02-27T17:22:02 | 237,784,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,257 | py | from server import db, login_manager
from datetime import datetime
from flask_login import UserMixin
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
first_name = db.Co... | [
"Ay@Aydinlis-MacBook-Pro.local"
] | Ay@Aydinlis-MacBook-Pro.local |
aa8c44690bf5d7007a049f7c7dc999404472d4db | 61bc53ec90d92aece91753ec5ec9d25e0879a1e2 | /content/vqa-maskrcnn-benchmark/tests/test_data_samplers.py | 54e550dc141d2efe37aaf02f0ecf7de1ede58b48 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | aluka1994/textvqa | 08a16c9b21ea9c5eca05f5d4d1763c190d2d7275 | 694cb2be08def519ba73be78e34664afa2c607b5 | refs/heads/master | 2021-05-26T23:44:21.973827 | 2020-04-08T22:05:58 | 2020-04-08T22:05:58 | 254,190,630 | 0 | 0 | MIT | 2020-04-08T20:14:11 | 2020-04-08T20:14:10 | null | UTF-8 | Python | false | false | 5,380 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import itertools
import random
import unittest
from torch.utils.data.sampler import BatchSampler
from torch.utils.data.sampler import Sampler
from torch.utils.data.sampler import SequentialSampler
from torch.utils.data.sampler import RandomSampler... | [
"anandkumar@instance-1.us-central1-a.c.andromanit.internal"
] | anandkumar@instance-1.us-central1-a.c.andromanit.internal |
ca2706a8d5c4c223e9c842547960c37338378f89 | 7f6395e060bc6c50ff37fb95733daec15473c85a | /app/migrations/0003_alter_loja_id.py | c9434c453421ee51ee5bea468b0aa034f5a2b064 | [] | no_license | Anaveronica3001/Projeto-LuizaCode | c4e9647b021dc84875894e414750ea07b8dd3037 | 77599b94c2b7ef96432a26abc1f43e652cb3520f | refs/heads/main | 2023-07-19T02:56:26.043084 | 2021-09-27T22:18:43 | 2021-09-27T22:18:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 3.2.7 on 2021-09-23 22:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0002_alter_loja_id'),
]
operations = [
migrations.AlterField(
model_name='loja',
name='id',
field... | [
"rachelacarvalho@gmail.com"
] | rachelacarvalho@gmail.com |
7e2d327f6e6b8b82fe4642dbba754763aa5129d9 | c7bb6a3b348d34f4cb117f13cfd36172dff02d2e | /apps/vaccinations/permissions.py | c569fbe8705d804c89d39178c0d4a450b203123c | [] | no_license | santosronald/Briana | 2a6a2e97611981329abc2b374dd23ec83fa71b13 | 7ad74ca05cea9e2b7754917fd89bc066966651c0 | refs/heads/master | 2021-01-23T10:36:02.926304 | 2017-04-20T20:10:33 | 2017-04-20T20:10:33 | 93,078,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | from django.core.urlresolvers import resolve
from rest_framework.permissions import BasePermission
from apps.control.models import UserChild
from apps.vaccinations.models import AppliedVaccine
__author__ = 'klaatu'
class CanSeeAppliedVaccines(BasePermission):
def has_permission(self, request, view):
retu... | [
"erikd.guiba@gmail.com"
] | erikd.guiba@gmail.com |
d74a5ebdd3be83c433b05938cc73cf77d5130c3e | 32db6e22f06523fba36988fd0456d365331f4322 | /CSNet/dataset.py | 6dee37f934e5edc21ad21dbb2d125c450d479039 | [] | no_license | Taylister/TGNet-Datagen | bcb8627ae8bb8c775a2ef52c7890433cce7a30b6 | f528d3cacc40020fc3dcc27801587b8127cb3756 | refs/heads/main | 2023-03-11T11:54:32.634692 | 2021-03-01T07:13:48 | 2021-03-01T07:13:48 | 319,907,358 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,770 | py | # author: Niwhskal
# github : https://github.com/Niwhskal/SRNet
import os
from skimage import io
from skimage.transform import resize
import numpy as np
import random
import cfg
import torch
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms
class CSNet_dataset(Dataset):
def __in... | [
"track.and.field.c.love1203@gmail.com"
] | track.and.field.c.love1203@gmail.com |
f1278b3e1bc553043bd35ab9b750d6e8f12e1767 | af62843e2af3ea6550f91372139dba31f9c58f7a | /markment/engine.py | a042be9af5bb87f438f80516ab4ffe4c9f5b1721 | [
"MIT"
] | permissive | hltbra/markment | e276c24ac9ce628bdd3a29f18732c41cf243d70e | 59976c2fee9787c96aec7c4a9074ad0d2a904388 | refs/heads/master | 2021-01-18T06:17:34.395303 | 2013-05-27T17:21:26 | 2013-05-27T17:21:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,292 | py | # -*- coding: utf-8 -*-
# <markment - markdown-based documentation generator for python>
# Copyright (C) <2013> Gabriel Falcão <gabriel@nacaolivre.org>
#
# 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 Fou... | [
"gabriel@nacaolivre.org"
] | gabriel@nacaolivre.org |
20a269ebaedbbf51b0d2ea1c0a32b4d85f91a46d | 5de810ae0383d04957e14863f502d4d64345c8db | /node_modules/dtrace-provider/src/build/config.gypi | 1e79170c4815154c1c845e230751e851cec78c0c | [
"BSD-2-Clause"
] | permissive | GoestaHuppenbauer/PortfolioBot | c30fdb9f86dcf5f2f5bcd7de900e4bc5b6db8a1b | 4debe72ee58f4d2c27c59eb7655ad5497d1026e5 | refs/heads/master | 2022-12-12T22:44:47.938483 | 2019-12-01T15:07:54 | 2019-12-01T15:07:54 | 225,156,368 | 0 | 0 | null | 2022-12-06T15:33:44 | 2019-12-01T12:17:58 | JavaScript | UTF-8 | Python | false | false | 5,506 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"40520263+GoestaHuppenbauer@users.noreply.github.com"
] | 40520263+GoestaHuppenbauer@users.noreply.github.com |
f768a17d9375124b1b9dc3913ee75a866813d920 | 24cbb30b8527ad7a41aaa01a59ee3fcf4f67f24a | /limitsetting/theta/analysis_tmassfit_CNN_combo.py | 8b086c0f575dc17330947bea05b329929143bf68 | [] | no_license | knash/NanoAODskimAna | 01bfb4cb7152f707af8204c6d0da2877022767f5 | adcbfae126775f272fb8be8fea3a2b583f56dd9e | refs/heads/master | 2021-07-08T10:08:45.901977 | 2020-11-12T20:07:53 | 2020-11-12T20:07:53 | 209,535,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,223 | py | # -*- coding: utf-8 -*-
import scipy.interpolate
import ROOT
def histogram_filter_partial(hname):
if "q2" in hname:
return False
if "tptrw" in hname:
return False
if "btag" in hname:
return False
if "semi_tag" in hname:
return False
#if "bmerge_tag" in hname:
#return False
return True
... | [
"knash201@gmail.com"
] | knash201@gmail.com |
bff30b9ffa84cf82990529d2205628711ad8b099 | 087db43af911ae0c2320187743f30a1fb1148e8a | /Week_8/2048_attempt/util.py | f89ff34896ae92c876878841d5912494d8270362 | [] | no_license | LuyandaGitHub/intro_python | 00b6e1c02d67c00bb6f7dced3a837d23bc5ee4e6 | 317099ab01ba3228163b6a7459615d6b55d595c8 | refs/heads/master | 2022-11-27T01:43:51.970893 | 2020-07-30T12:45:59 | 2020-07-30T12:45:59 | 283,663,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,950 | py | # IMPORT THE random MODULE
import random
# THIS FUNCTION WILL CREATE A GRID WITH 16 0'S
def create_grid(grid_param):
for i in range(16):
grid_param.append(0)
# THIS FUNCTION WILL PRINT THE GRID
def print_grid(grid_param):
row_1 = ''
row_2 = ''
row_3 = ''
row_4 = ''
... | [
"noreply@github.com"
] | LuyandaGitHub.noreply@github.com |
6035aff637448d6f342a96ae9243e4ce19471990 | b1e059870a72cfe6ef90b9a5f615cb4b5aa4de41 | /Chap 1/Image ginput.py | 43187a12889075c52b6cf77746716fa6fd0eee57 | [] | no_license | Wangman1/python-computer-version | bfc679c00f5bdaab39c67098935f240be7f47cf1 | aca121fa51e2cbb5d0c21f1252f1c12f6811ea90 | refs/heads/master | 2020-03-06T15:03:10.846086 | 2018-03-27T08:37:45 | 2018-03-27T08:37:45 | 126,947,754 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | from PIL import Image
from pylab import *
im = array(Image.open('E:/python/Python Computer Vision/Image data/empire.jpg'))
imshow(im)
print('Please click 3 points')
x = ginput(3)
print('you clicked:', x)
show()
| [
"244280786@qq.com"
] | 244280786@qq.com |
6e5ed45d8e324cd491dc14f45253b175fea26caa | 50a6f90c46ee83e667de08be9c74acbaa792dbc5 | /filefi/025/mc.py | 57a87e7379c99302830a70f355932dc6c3a40a8d | [
"MIT"
] | permissive | cpausmit/Kraken | e8f51a46e5d181e855bb9d2276b66c67e5842888 | e79a19f6a4570e10ae52e543a5af9b2a3414c965 | refs/heads/master | 2023-08-16T21:36:54.426014 | 2023-08-15T14:11:08 | 2023-08-15T14:11:08 | 75,231,636 | 0 | 2 | MIT | 2018-02-08T14:25:53 | 2016-11-30T22:09:47 | Python | UTF-8 | Python | false | false | 1,709 | py | # $Id: BAMBUProd_AODSIM42.py,v 1.1 2011/10/09 14:15:32 bendavid Exp $
import FWCore.ParameterSet.Config as cms
process = cms.Process('FILEFI')
# import of standard configurations
process.load('Configuration/StandardSequences/Services_cff')
process.load('FWCore/MessageService/MessageLogger_cfi')
process.load('Configu... | [
"paus@mit.edu"
] | paus@mit.edu |
f86623fcf6f7206be652b39fbbe524b18419d731 | 95447e499f9eb8bed0b11a93b5bb48c12657e9f6 | /colorscheme.py | dfdd9dc830399b9f47bb1e5bb85e731559e04f53 | [] | no_license | trhartke/turtle-papyrus | 8c18d6c0e30c5e6905142914deb813ece78b415c | ba908d5b76b838e70ff11e8a84fd0dd37b7e8081 | refs/heads/master | 2021-05-14T13:05:17.762162 | 2018-01-05T20:49:30 | 2018-01-05T20:49:30 | 116,427,713 | 0 | 0 | null | 2018-01-05T21:17:41 | 2018-01-05T21:17:41 | null | UTF-8 | Python | false | false | 315 | py |
#RGB format
blue = (6/255. , 111/255. , 167/255. )
green = (66/255. , 165/255. , 74/255. )
red = (234/255. , 29/255. , 34/255. )
purple = (126/255. , 77/255. , 132/255. )
orange = (238/255. , 135/255. , 38/255. )
black = (2/255. , 7/255. , 5/255. )
yellow = (254/255. , 244/255. , 49/255. )
| [
"eqm@mit.edu"
] | eqm@mit.edu |
4581ab414b51e7074ca5e0bd5d88db5635789b56 | 6f099b8912e3623c524a86900ec252fd69f48e91 | /flbdeezer/flbdeezer/wsgi.py | 313cc95dc9e9d747244825a008bdd5f38a039b5b | [] | no_license | crypticwasp254/apiflbdeeze | 8595f40940fbe63926c4e102249114226563a232 | 2de08dedb8dcfde953761a86d20536363b533729 | refs/heads/master | 2023-04-04T19:14:17.122822 | 2021-01-08T14:08:05 | 2021-01-08T14:08:05 | 327,902,659 | 2 | 1 | null | 2021-04-15T08:13:42 | 2021-01-08T12:53:57 | Python | UTF-8 | Python | false | false | 395 | py | """
WSGI config for flbdeezer project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"crypticwasp254@gmail.com"
] | crypticwasp254@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.