blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
42ae99636bef2b466a152cd47dbb195677753fcc | 4960e3e005ba04ec0a8b0defc6642dff5e71f5ae | /knowledge/cron/flow4/scan_domain2sentiment.py | 82aed86bc47562f200906949fc65791e17a4ba4e | [] | no_license | jianjian0dandan/knowledge_revised | aa7d772ba9efcaa579907b0418e145d6b440a9c9 | ffc80dcca932c977755128c80c17dca603ee8a8b | refs/heads/master | 2021-01-24T18:27:41.117166 | 2017-04-25T14:55:42 | 2017-04-25T14:55:42 | 84,448,466 | 1 | 0 | null | 2017-06-15T07:32:31 | 2017-03-09T14:02:46 | HTML | UTF-8 | Python | false | false | 1,974 | py | # -*- coding:utf-8 -*-
'''
use to scan user domain to redis hash for compute sentiment
update: one month
'''
import sys
import time
from elasticsearch.helpers import scan
reload(sys)
sys.path.append('../../')
from global_utils import es_user_portrait, portrait_index_name, portrait_index_type
from global_utils import R... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
1d2e2eb2c10108687a1dc49559484804e918c456 | 93d700b0275bca7bbe10da7b05afb63129180327 | /cmsplugin_rst/forms.py | 52c718fb178b45fdcd2bb193c48470d6edaec1f1 | [
"BSD-3-Clause"
] | permissive | nwojcik/cmsplugin-rst | d251a4bc029b4f804ee81b8cb5a4efbe719d3270 | afc564dc32fff5fa5e0ad7a9449088cb49737db6 | refs/heads/master | 2021-01-16T20:26:48.392784 | 2011-10-09T13:29:06 | 2011-10-09T13:29:06 | 2,537,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | from cmsplugin_rst.models import RstPluginModel
from django import forms
help_text = '<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html">Reference</a>'
class RstPluginForm(forms.ModelForm):
body = forms.CharField(
widget=forms.Textarea(attrs={
'rows':... | [
"jonas.obrist@divio.ch"
] | jonas.obrist@divio.ch |
45afd3a8a7c4e27c8a14cae91ba000ca278b0c88 | e0f13152e4575f09f0b1e4b1811726bbe5066f90 | /tests/spend.py | 6f12c1c3b03880c9039e75a9eab6c88f5ec189dc | [] | no_license | yagamidev/amoveo | 88bc0dea994fab72c9f430f838ffc54418e30abf | 4dfd6cc8a5cb740500a873c83ff979fa521ec4e7 | refs/heads/master | 2021-04-09T11:45:23.697801 | 2018-03-16T09:13:35 | 2018-03-16T09:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | from get_request import request
def spend_test():
print("spend test")
pub = "BGRv3asifl1g/nACvsJoJiB1UiKU7Ll8O1jN/VD2l/rV95aRPrMm1cfV1917dxXVERzaaBGYtsGB5ET+4aYz7ws="
priv = "nJgWyLTX1La8eCbPv85r3xs7DfmJ9AG4tLrJ5fiW6qY="
brainwallet = ''
request(2, "load_key", [pub, priv, brainwallet], 1)
reque... | [
"zack.bitcoin@gmail.com"
] | zack.bitcoin@gmail.com |
c5c02b528246d16171faa687ec9e7fb3d4df0a74 | 039ba9dba0f131496a959338c32e811904f00708 | /mycrm/shopcrm/shopcrm/settings.py | bd18f1c8d64d8efad0647ac52c6bf4b7e4fd5f5d | [] | no_license | mageshrocky/python_django_projects | 49e12aff8fe08704c2d17b60d5373f0990120336 | 444c30780632ceea5c6b7377356ed2c3c5ce6253 | refs/heads/master | 2023-05-18T11:57:01.691868 | 2021-06-15T11:18:26 | 2021-06-15T11:18:26 | 377,125,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,265 | py | """
Django settings for shopcrm project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
fro... | [
"magesh1699@gmail.com"
] | magesh1699@gmail.com |
93fb80555ba83304ee0774e8a8d306de3231038c | d8edd97f8f8dea3f9f02da6c40d331682bb43113 | /networks439.py | 52a3ed76800ad9bf46c5c6733e530a3fa5cc21d3 | [] | no_license | mdubouch/noise-gan | bdd5b2fff3aff70d5f464150443d51c2192eeafd | 639859ec4a2aa809d17eb6998a5a7d217559888a | refs/heads/master | 2023-07-15T09:37:57.631656 | 2021-08-27T11:02:45 | 2021-08-27T11:02:45 | 284,072,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,889 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
__version__ = 205
# Number of wires in the CDC
n_wires = 3606
# Number of continuous features (E, t, dca)
n_features = 3
class Gen(nn.Module):
def __init__(self, ngf, latent_dims, seq_len, encoded_dim):
super().__init__... | [
"m.dubouchet18@imperial.ac.uk"
] | m.dubouchet18@imperial.ac.uk |
0fbcb4dace7a1a4154e9787babcc6e51e2fb5d94 | 46769b03aa33875bf4c7b1d4a2c51635a397cdfc | /new_test_22_dev_10089/wsgi.py | 71a95a093114e20c8b2cd6e41198ec4cfed9c106 | [] | no_license | crowdbotics-apps/new-test-22-dev-10089 | 89b7e69c0dc0144f507ad6a0b84f06386d9a4e1c | ff18ba29e44581c139829607c663d731730b7bd9 | refs/heads/master | 2022-12-14T20:30:56.738780 | 2020-09-07T13:15:20 | 2020-09-07T13:15:20 | 293,532,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for new_test_22_dev_10089 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... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1cd44967f3be59b5da4887abb18f70c55b13da1d | 79c1f1e1f9a123a146a314b9e4cd7f57c2301ed3 | /visualize/CSVVsersion/SceneCSV.py | 1fa2468f95df5ef35c99938e975a8dbef066891a | [
"MIT"
] | permissive | ys1998/motion-forecast | 41a1ebc553edddcf8c463d67237f53c23aa53729 | ef8fa9d597906a756f28952a731f6bc8d178f2bf | refs/heads/master | 2020-04-17T16:41:20.276427 | 2019-07-07T06:19:30 | 2019-07-07T06:19:30 | 166,751,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | import vtk
class SceneCSV(object):
def __init__(self):
self.sceneSources = list()
self.sceneMappers = list()
self.sceneActors = list()
self.sceneLights = list()
self.addLight(1.0, 1.0, 1.0, 1000, 1000, -1000, 0.75, 180, 0.75)
self.addLight(1.0, 1.0, 1.0, -1000, 500... | [
"yashshah2398@gmail.com"
] | yashshah2398@gmail.com |
be9f7d8b3ac111643c48d86d2142203de3228393 | 7b383cab8f9708dd9bc00c939cbab9600c0ca894 | /UP2/NCS1/USBCam/Classes/NCS1.py | 87c91137d99cfd455a3f827b54d10b7e35d6f62c | [
"MIT"
] | permissive | amirunpri2018/TassAI | 3f05b1b848d6d93fe491761589352bc0521496c3 | 3451f34d8973b67a823784e7db8fde03b274a60d | refs/heads/master | 2022-12-22T06:48:46.024068 | 2020-10-01T15:43:25 | 2020-10-01T15:43:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,806 | py | ######################################################################################################
#
# Organization: Asociacion De Investigacion En Inteligencia Artificial Para La Leucemia Peter Moss
# Project: UP2 NCS1 Facial Recognition USB Security System
#
# Author: Adam Milton-Barker (AdamMiltonB... | [
"adammiltonbarker@eu.techbubbletechnologies.com"
] | adammiltonbarker@eu.techbubbletechnologies.com |
2de76a36c9302294182913712a4cbdbd7f90c964 | 9e1f60a867f66b1f4e4fc84fa4252c581e5e1a36 | /Chapter09/test_state_1.py | e33eaec766eaab31fbfd5891365def90b52cc707 | [
"MIT"
] | permissive | PacktPublishing/Clean-Code-in-Python | c216e002485b8cd7736f97b59215a3930f35359a | 7348d0f9f42871f499b352e0696e0cef51c4f8c6 | refs/heads/master | 2023-06-10T13:40:33.331115 | 2023-05-30T17:48:09 | 2023-05-30T17:48:09 | 145,072,942 | 523 | 181 | MIT | 2023-05-30T17:48:10 | 2018-08-17T04:48:38 | Python | UTF-8 | Python | false | false | 1,489 | py | """Clean Code in Python - Chapter 9: Common Design Patterns
> Test State
"""
import unittest
from state_1 import Closed, InvalidTransitionError, Merged, MergeRequest, Open
class TestMergeRequestTransitions(unittest.TestCase):
def setUp(self):
self.mr = MergeRequest("develop", "master")
def test_r... | [
"35489117+gaurav-packt@users.noreply.github.com"
] | 35489117+gaurav-packt@users.noreply.github.com |
2145526225efcedfd80d26083e233b193732814f | 8ff6c3e513e17be6c51b484bed81d03150bdd175 | /2013-01-facegif/cutface.py | afb58002b5ace80bf5625eccd582ac4bee62a9f2 | [] | no_license | ricbit/Oldies | f1a2ac520b64e43d11c250cc372d526e9febeedd | 2d884c61ac777605f7260cd4d36a13ed5a2c6a58 | refs/heads/master | 2023-04-27T20:35:19.485763 | 2023-04-26T04:45:44 | 2023-04-26T04:45:44 | 2,050,140 | 40 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | import cv
import os
import sys
def DetectFaces(image):
cascade = cv.Load('haarcascade_frontalface_alt.xml')
storage = cv.CreateMemStorage(0)
return cv.HaarDetectObjects(
image, cascade, storage, 1.2, 2, cv.CV_HAAR_DO_CANNY_PRUNING)
def cut_image(image):
grayscale = cv.CreateImage(cv.GetSize(image), 8, 1... | [
"bluepenguin@gmail.com"
] | bluepenguin@gmail.com |
4e6ebbffaa7463d3cfd44e97df532f2dee48d07a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2788/60595/251681.py | ce493d0bf81d1f4beb8b4ad066205aea69c75fcb | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | def Test():
n=int(input())
boys=eval("["+input().strip().replace(" ",",")+"]")
m=int(input())
girls=eval("["+input().strip().replace(" ",",")+"]")
z=min(m,n)
parts=[]
j=0
if(z==n):
while(j<len(girls)):
if(check(boys[0],girls[j])):
parts.append([boys[0]... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
a4b1a60545658a8d8f78c60948c9a730f08c530f | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_sqr/trend_constant/cycle_12/ar_/test_artificial_1024_sqr_constant_12__100.py | 2239a2b9360d2647f6e4ca61b30fe39991f9a2e9 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 1024 , FREQ = 'D', seed = 0, trendtype = "constant", cycle_length = 12, transform = "sqr", sigma = 0.0, exog_count = 100, ar_order = 0);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
082a1d0a91074a3a3545799fa89ac845b5d5790b | bf448de248ec95325839b5e355af6982b4e5632d | /todo_project/testing_app/views/index.py | ac307f51c5dad4b28290138bc92c859ef3195724 | [] | no_license | rusalinastaneva/Python-Web-Basics | b459b8f47918b52654d304f3db3de54156299f66 | ecdd72b44d4d0a1b107ef1f9fa10eb252bd4fd0e | refs/heads/master | 2023-01-05T13:15:58.691511 | 2020-11-02T20:32:16 | 2020-11-02T20:32:16 | 309,486,341 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from django.shortcuts import render, redirect
from testing_app.forms.profile import ProfileForm
from testing_app.models import Profile
def index(request):
if request.method == 'GET':
context = {
'profiles': Profile.objects.all(),
'form': ProfileForm(),
}
return ren... | [
"rossavelrs@yahoo.com"
] | rossavelrs@yahoo.com |
b1baa37ccc2300a62d8d9375b75162e34c2989df | 5a281cb78335e06c631181720546f6876005d4e5 | /openstack-placement-1.0.0/placement/tests/fixtures.py | be235b355a8c4dee2334904091ad0f96969adaab | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 3,272 | py | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# 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 ... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
393ccdde7ef08c546deeb32ee7f792b458c689fa | a63419b2c457a219c010876ece3980af8cfc3c1b | /_DJANGO_/django-player/gameplay/views.py | 556971862e1019a0cf46647d9fb7fb1688c69685 | [] | no_license | thomasm1/python_2018 | ba87560a1e25343c0429fcafe51bb867dc299223 | 6a57c7603055a2511a8734ab34ce21f76e4427ef | refs/heads/master | 2023-05-10T07:20:07.911734 | 2023-05-05T03:58:36 | 2023-05-05T03:58:36 | 147,065,041 | 2 | 5 | null | 2023-03-03T15:15:08 | 2018-09-02T07:41:32 | Rich Text Format | UTF-8 | Python | false | false | 1,150 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.contrib.auth.decorators import login_required
from django.core.exceptions import PermissionDenied
from django.views.generic import ListView
from .models import Game
from .forms import MoveForm
@login_required()
def game_detail(request, id):... | [
"thomasm1.maestas@gmail.com"
] | thomasm1.maestas@gmail.com |
e1eca6386c795d0c9133574f9c9d774114791f16 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/word-count/5cf7181856df4d0a963c76fedfbdd36a.py | f9930a4d6aa5f919c9e249a5f9a7b5e2abcc8d31 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 908 | py | """Word Counting."""
from collections import Counter
import re
import string
# A regular expression that matches any punctuation character.
PUNCTUATION_REGEX = re.compile("[{}]".format(re.escape(string.punctuation)))
class Phrase(str):
"""A subclass of str that supports word counting."""
def __init__(self... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
88441b7e0974e4fc5de5bd965e9a9ad800acd21e | c7dfacea4969b4fef264429e7c21d6c2d4c932b4 | /src/baxter_examples/src/baxter_examples/recorder.py | 032f365f567755301f351b69f2b1e7a75a832475 | [
"BSD-2-Clause"
] | permissive | DeepBlue14/arm_wkspc | 697944c72be9a8efaf97a84b6c26a84ebc8de3a6 | 04009550321868722d207924eed3609be7f54882 | refs/heads/master | 2020-03-21T10:10:05.644158 | 2018-06-23T23:16:40 | 2018-06-23T23:16:40 | 138,436,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,350 | py | # Copyright (c) 2013-2014, Rethink Robotics
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditio... | [
"james.perl12@gmail.com"
] | james.perl12@gmail.com |
94b0a380ce4543b547a5176caef0e9ce5901f3ca | ad71b2aaab2bf1127f40fef008ac6f6d1334c32c | /share/rpcauth/rpcauth.py | 219286929731362f0553450cf62c1d98e5fd84b4 | [
"MIT"
] | permissive | minblock/carpaticoin | 00eb755770f370d54d73ae9b227e4d4bbd60babb | f65cf89970b36a073b49435a3833a2a83a7f2145 | refs/heads/master | 2021-05-22T01:38:29.187393 | 2020-04-04T04:41:16 | 2020-04-04T04:41:16 | 252,909,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from argparse import ArgumentParser
from base64 import urlsafe_b64encode
from binascii import hexlify
fro... | [
"POSTMASTER@provgn.com"
] | POSTMASTER@provgn.com |
6ab3e1a39cd93671912027393c5a68e9026211cb | 7941390ad02fca9f8c66ceaf1d71a9fd0815f50e | /simple_NER/annotators/remote/allenai.py | b54499e860da539887f6b0098ac177a14e67b49b | [
"MIT"
] | permissive | msgpo/simple_NER | 08cde36758f1d97560c3db9e36918a7e4abe08dd | 5eaed615d9075d879e4b2af461f2e99acc0f9e68 | refs/heads/master | 2022-04-19T13:07:56.507469 | 2020-04-12T18:43:42 | 2020-04-12T18:43:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | from simple_NER.annotators import NERWrapper
from simple_NER import Entity
import requests
def allen_NER(text, host):
url = host + "named-entity-recognition"
data = {"sentence": text}
return requests.post(url, json=data).json()
class AllenNlpNER(NERWrapper):
def __init__(self, host="http://demo.all... | [
"jarbasai@mailfence.com"
] | jarbasai@mailfence.com |
3dd267f794d2b0b929fd7ea3529b59d9507ba38a | a3cc7286d4a319cb76f3a44a593c4a18e5ddc104 | /lib/surface/app/__init__.py | 9826abe1d2a81963769b6af01ae5ebf38641f8f6 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jordanistan/Google-Cloud-SDK | f2c6bb7abc2f33b9dfaec5de792aa1be91154099 | 42b9d7914c36a30d1e4b84ae2925df7edeca9962 | refs/heads/master | 2023-09-01T01:24:53.495537 | 2023-08-22T01:12:23 | 2023-08-22T01:12:23 | 127,072,491 | 0 | 1 | NOASSERTION | 2023-08-22T01:12:24 | 2018-03-28T02:31:19 | Python | UTF-8 | Python | false | false | 2,758 | py | # Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"jordan.robison@gmail.com"
] | jordan.robison@gmail.com |
541e28ec93c85cc1adc61eecd87bdde2a641136b | c91d029b59f4e6090a523bf571b3094e09852258 | /src/utils/middlewares.py | 64ca375d393cdaff4d003588764a00f79181c0a1 | [
"MIT"
] | permissive | anselmobd/fo2 | d51b63ebae2541b00af79448ede76b02638c41f0 | 8e7f8f3d9a296c7da39d0faf38a266e9c6c162ab | refs/heads/master | 2023-08-31T19:59:33.964813 | 2023-08-31T19:50:53 | 2023-08-31T19:50:53 | 92,856,677 | 1 | 0 | MIT | 2023-04-21T21:50:46 | 2017-05-30T17:04:27 | Python | UTF-8 | Python | false | false | 2,927 | py | import re
import threading
from django.conf import settings
from django.http import HttpResponse
from django.shortcuts import redirect
from geral.functions import is_alternativa
from utils.functions import get_client_ip
request_cfg = threading.local()
try:
from django.utils.deprecation import MiddlewareMixin
... | [
"anselmo.blanco.dominguez+github@gmail.com"
] | anselmo.blanco.dominguez+github@gmail.com |
f3e46e8de53108b8175863fac2003556b51fdbdc | 5dc393ffb3d65094d2c4f6bc8b9980e2fc167670 | /pandas/stats/tests/test_fama_macbeth.py | f48dde20f138ac2a2f78bf479e668b579e96ac1f | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | JWCornV/pandas | 913db2a34cb9f9820f986412e9c3cf868ecef24d | 6078fba9410918baa486ca008cc9e3ba066c03ec | refs/heads/master | 2020-12-25T10:14:13.384789 | 2012-06-27T17:10:54 | 2012-06-27T17:10:54 | 4,813,052 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | from pandas import DataFrame, Panel
from pandas.stats.api import fama_macbeth
from common import assert_almost_equal, BaseTest
import numpy as np
class TestFamaMacBeth(BaseTest):
def testFamaMacBethRolling(self):
# self.checkFamaMacBethExtended('rolling', self.panel_x, self.panel_y,
# ... | [
"wesmckinn@gmail.com"
] | wesmckinn@gmail.com |
7dbb8959b233092833590760e034f6ebe7360014 | 1065a2782e4947b5bf14ec4536e4ad7addc7aec3 | /strategy/cryptoalpha/casubc.py | f4bb09a5cb12cc696d58f6af909445370b6e56b8 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Johannesduvenage/siis | 0bf6875d4a5f3638cadb01ed5541aab29ba1d77a | 57e537cf9b6a71c8ad0b3bb0759772d126496a17 | refs/heads/master | 2020-09-10T21:51:56.814014 | 2019-11-13T23:57:34 | 2019-11-13T23:57:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,900 | py | # @date 2018-08-24
# @author Frederic SCHERMA
# @license Copyright (c) 2018 Dream Overflow
# Crypto Alpha strategy, sub-strategy B.
from strategy.indicator import utils
from strategy.strategysignal import StrategySignal
from monitor.streamable import StreamMemberFloatSerie, StreamMemberSerie, StreamMemberFloatBarSerie... | [
"frederic.scherma@gmail.com"
] | frederic.scherma@gmail.com |
ba6aeae64431208cbabea1456729c92c602f9921 | 386d5d4f8f102e701d02b326cd066f520e3dff9f | /ProjectApplication/project_core/migrations/0163_add_account_number.py | b5f637bb6f9f02103a1375f7fd3e3ed9b338b0fa | [
"MIT"
] | permissive | Swiss-Polar-Institute/project-application | ae2561c3ae2c1d5412d165d959ce2e5886135e0a | 7dc4a9f7e0f8d28c89977b85f99bc5e35ea77d43 | refs/heads/master | 2023-08-31T04:01:23.492272 | 2023-08-25T14:33:02 | 2023-08-25T14:33:02 | 206,330,401 | 7 | 5 | MIT | 2023-09-13T08:03:53 | 2019-09-04T13:49:39 | Python | UTF-8 | Python | false | false | 2,043 | py | # Generated by Django 3.2 on 2021-04-23 10:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('project_core', '0162_callpartfile_proposal_keywords_null'),
]
operations = [
migrations.AddField(
... | [
"carles@pina.cat"
] | carles@pina.cat |
01f2b39e906fa6896ddad81b11c800af607781d7 | 652121d51e6ff25aa5b1ad6df2be7eb341683c35 | /examples/mouse_and_key_modifiers.py | 6d28b7351cebc4f69acb343c35eb8233fa6877a3 | [] | no_license | jgalaz84/eman2 | be93624f1c261048170b85416e517e5813992501 | 6d3a1249ed590bbc92e25fb0fc319e3ce17deb65 | refs/heads/master | 2020-04-25T18:15:55.870663 | 2015-06-05T20:21:44 | 2015-06-05T20:21:44 | 36,952,784 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | from PyQt4 import QtCore, QtGui
class MouseAndKeyModifiers(QtGui.QWidget):
def __init__(self, parent = None):
QtGui.QWidget.__init__(self, parent)
layout = QtGui.QVBoxLayout()
label = QtGui.QLabel("Click here to test mouse buttons: Left, Right, Middle\nand keyboard modifiers: Ctrl, Alt, Shift, and Command (a... | [
"jgalaz@gmail.com"
] | jgalaz@gmail.com |
b8e8df4165e5c68d730eab8b8fe69f808f78ca32 | bc08302533982d4a154f5615a2c8366f695234e5 | /work/tools/free_ip.py | 721bcc9f76e13c7c646d22000c17c96dd1e0352c | [] | no_license | rvfedorin/PythonDevelopment | bfd3cfb4ad22d72e2002d7430fa8821ea35717f6 | d6748189874b53b8357d5b3ff7d520ff0a93e15a | refs/heads/master | 2022-12-13T11:53:16.041737 | 2019-02-15T08:50:15 | 2019-02-15T08:50:15 | 122,050,190 | 0 | 0 | null | 2022-12-08T01:18:43 | 2018-02-19T10:57:37 | Python | UTF-8 | Python | false | false | 3,528 | py | def mark_used_ip(list_used_ip, list_all_ip):
for ip in list_all_ip:
if ip in list_used_ip:
position_ip = list_all_ip.index(ip)
list_all_ip[position_ip] = 'x'
def get_free_lan(list_ip_with_used):
free_lan = []
for lan in range(25, 33):
count_subnet = 2**(lan - 24)
... | [
"35657347+rvfedorin@users.noreply.github.com"
] | 35657347+rvfedorin@users.noreply.github.com |
1c95e6322f01f2981b14f4584444c325432b8207 | 490ffe1023a601760ae7288e86723f0c6e366bba | /kolla-docker/patching/zun_compute_api/providerregion.py | 4dc91fc51a266902d9ef25f4c4c4b88fc506ef8c | [] | no_license | bopopescu/Cloud-User-Management | 89696a5ea5d2f95191327fbeab6c3e400bbfb2b8 | 390988bf4915a276c7bf8d96b62c3051c17d9e6e | refs/heads/master | 2022-11-19T10:09:36.662906 | 2018-11-07T20:28:31 | 2018-11-07T20:28:31 | 281,786,345 | 0 | 0 | null | 2020-07-22T21:26:07 | 2020-07-22T21:26:06 | null | UTF-8 | Python | false | false | 1,658 | py | def providerregion_update(self, context, container, *args):
if direct_action:
return self.manager.providerregion_update(context, container, *args)
else:
return self.rpcapi.providerregion_update(context, container, *args)
def providerregion_show(self, context, container,... | [
"Mr.Qinlichao@hotmail.com"
] | Mr.Qinlichao@hotmail.com |
ea468b999d209aa5949f47fbf2a33213a78b306b | 4369c5a214f8c4fb1f8a286f72d57cfa9c3f02c7 | /geotrek/maintenance/migrations/0010_auto_20200228_1755.py | dfa45158e5acc1cee91f1e527738011a5ef40379 | [
"BSD-2-Clause"
] | permissive | GeotrekCE/Geotrek-admin | c13d251066e92359c26f22d185b8bd2e26e622ef | a91b75261a876be51ad2a693618629900bea6003 | refs/heads/master | 2023-08-21T12:45:25.586551 | 2023-08-09T12:28:33 | 2023-08-09T12:28:33 | 9,886,107 | 71 | 56 | BSD-2-Clause | 2023-09-13T09:40:33 | 2013-05-06T12:17:21 | Python | UTF-8 | Python | false | false | 1,121 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2020-02-28 16:55
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('maintenance', '0009_auto_20200211_1011'),
]
operations = [
migrations.Alte... | [
"gael.utard@makina-corpus.com"
] | gael.utard@makina-corpus.com |
a67fd9139f1b1a1a5f55555ccfc4ea911006371a | f1e98def25f88d17c328c07d4052cd6c34c27707 | /app/accounts/migrations/0002_alter_account_is_active.py | c7dd55e323cc76df4802b6c243d6f44f3d2b3d94 | [
"MIT"
] | permissive | iyanuashiri/exchange-api | c7f1fd2257c3369de9c0b7bea6806c602f25662e | 86f7a4e9fb17f71888e6854510618876d1010c19 | refs/heads/main | 2023-05-30T22:57:46.901693 | 2021-06-13T21:59:22 | 2021-06-13T21:59:22 | 376,542,066 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # Generated by Django 3.2.4 on 2021-06-13 17:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='account',
name='is_active',
... | [
"ajaoiyanu@gmail.com"
] | ajaoiyanu@gmail.com |
34b10e72f10087aaa703323b4c4bb1e1fefdc4d2 | 5b7d5723b84f5011965aba18ebf0c080253b2fcb | /posts/views/feed.py | 607dc5b67c34d133f749e9e5c0c63d56c801c80a | [
"MIT"
] | permissive | ReDetection/vas3k.club | 5980e6849ccf2e67a380d80d23036ec09ed94453 | ad97fefca5ec52047b2daad77ddf2eb2aecb03b3 | refs/heads/master | 2023-06-11T19:48:56.730541 | 2020-08-12T17:44:26 | 2020-08-12T17:44:26 | 287,545,618 | 0 | 0 | MIT | 2020-08-14T13:58:31 | 2020-08-14T13:58:30 | null | UTF-8 | Python | false | false | 2,905 | py | from datetime import datetime, timedelta
from django.db.models import Q
from django.http import Http404
from django.shortcuts import get_object_or_404, render
from auth.helpers import auth_required
from common.pagination import paginate
from posts.models import Post, Topic
POST_TYPE_ALL = "all"
ORDERING_ACTIVITY = ... | [
"me@vas3k.ru"
] | me@vas3k.ru |
5c3b9ce4daac002df7317fca1d9da2026544660a | 82205ef1622ef3bb3bd4982f6ddc52509686af8c | /numba2/pipeline.py | 6a3813352da9a461afdad7bd801f5f684e75bdd7 | [] | no_license | cooperliu101/numba-lang | 22f1567e17cd7cf831f254bf64bc7e3192c973c3 | 37abfcbb516175153e73474dababb2d89cba7a8b | refs/heads/master | 2021-07-21T14:35:23.943243 | 2013-11-15T12:07:53 | 2013-11-15T12:07:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | # -*- coding: utf-8 -*-
"""
Pipeline that determines phase ordering and execution.
"""
from __future__ import print_function, division, absolute_import
import dis
import types
import pykit.ir
#===------------------------------------------------------------------===
# Pipeline
#===-----------------------------------... | [
"markflorisson88@gmail.com"
] | markflorisson88@gmail.com |
f3e7ef114ef2471fbf5671381769253a62f14fce | f693c9c487d31a677f009afcdf922b4e7f7d1af0 | /biomixer-venv/bin/rst2latex.py | f2bf88ab2545f14b13e630bbf6232fa0aac977a0 | [
"MIT"
] | permissive | Shellowb/BioMixer | 9048b6c07fa30b83c87402284f0cebd11a58e772 | 1939261589fe8d6584a942a99f0308e898a28c1c | refs/heads/master | 2022-10-05T08:16:11.236866 | 2021-06-29T17:20:45 | 2021-06-29T17:20:45 | 164,722,008 | 1 | 3 | MIT | 2022-09-30T20:23:34 | 2019-01-08T19:52:12 | Python | UTF-8 | Python | false | false | 831 | py | #!/home/shello/Documents/BioMixer/biomixer-venv/bin/python
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing LaTeX.
"""
try:
import locale
... | [
"marcelo.becerra@ug.uchile.cl"
] | marcelo.becerra@ug.uchile.cl |
5114e9fb9e89b7c121fe36ba7adffd2c63ca57fb | 1f5299e547125f7ba2c3b72984e82ba3b1f984de | /basejumper/security.py | ad0e4a6b627153a5f150932198651845b40573cd | [] | no_license | ESGF/basejump | 72b805818188ae09b1e3329035718b0816927a13 | 593d5e57e63848c30219ca9b49e25f49b59dcf82 | refs/heads/master | 2021-07-23T04:19:57.489628 | 2017-11-02T16:51:52 | 2017-11-02T16:51:52 | 47,994,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | import hmac
import hashlib
import json
import collections
def constant_time_compare(val1, val2):
# We'll allow them to know that the lengths of the strings don't match
if len(val1) != len(val2):
return False
result = 0
for x, y in zip(val1, val2):
result |= ord(x) ^ ord(y)
return ... | [
"fries2@llnl.gov"
] | fries2@llnl.gov |
c433ae0599808eb1ea13010018c8a7e094198719 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/189/29190/submittedfiles/swamee.py | 3b19ef457ff49af07dc44e820878bdc4c334e957 | [] | 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 | 414 | py | # -*- coding: utf-8 -*-
import math
f= float(input('digite f:'))
l= float(input('digite l:'))
q= float(input('digite q:'))
delta= float(input('digite delta:'))
v= float(input('digite v:'))
d=(8*f*l*(q*q)/3.14159**2*9.81*delta)/(1/5)
rey=((4*q)/(3.14159*d*v))
k=0.25/(math.log10(0.000002/3.7*d+5.74/rey**0.9))**2
print('O... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
8bafb18de3c09b4e845ad8d2df44676d5617bfad | 3e3743928f43aaef5cfb72e257b6f091fc2a39cb | /src/whirlwind/tornado/carbon/persist.py | 6a4360ba75d08129ad746ac60e9c350f75c12a51 | [
"Apache-2.0"
] | permissive | bearstech/whirlwind-tornado | 3871862944f584816a1d90891cec815f64209e14 | 85b9e6b4b3413694cb6e5040ce5c72b6e5e436ac | refs/heads/master | 2021-01-18T14:10:05.666763 | 2020-10-13T09:47:05 | 2020-10-13T09:47:05 | 10,527,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | import time
import struct
import os.path
import os
import whisper
from redis import StrictRedis as Redis
from whirlwind import target_to_path
METRICS = 'metrics'
PERIOD = 30
METRIC_WRITE = 'carbon.write'
METRIC_POINTS = 'carbon.points'
class Persist(object):
""" Sequential writer for Carbon server.
The sto... | [
"mlecarme@bearstech.com"
] | mlecarme@bearstech.com |
dc49aee3b646e4e2864be55fd34519a351e9c3ad | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R1/benchmark/startQiskit_noisy83.py | 997aaa1938fcb497d01eab2eff9be00509126ac8 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | # qubit number=3
# total number=9
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collection... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
e680ac98db693298f1bdeb9376fa11577feeb89a | c237e2f29eac2b92bd2b77d055e33cf760960284 | /todobackend/todo/serializers.py | dc073eafa9c9e17d9bdc60cc128b53a776392e7b | [] | no_license | razyesh/Django-TODO-React | 7f3293c858099f8656a287c8706f739b1d513077 | b8529138334710d582324f286c10a39197aca25d | refs/heads/master | 2022-12-11T11:20:33.622468 | 2019-06-28T10:28:03 | 2019-06-28T10:28:03 | 194,255,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from rest_framework import serializers
from .models import Todo
class TodoSerializer(serializers.ModelSerializer):
class Meta:
model = Todo
fields = (
'id',
'title',
'description',
'completed',
) | [
"pudasainirajesh504@gmail.com"
] | pudasainirajesh504@gmail.com |
25c3b42a397977592ebd6616aeefe441954c721c | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/classification/3D_ResNet_ID0421_for_PyTorch/pth2onnx.py | 344f0acb80d30eeb817bac80202a259a4e4fbed2 | [
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,739 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# 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 agree... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
fe0b784d9423f6752a2e04ea2db13d45f4526bf0 | 7249edf3365731c92a9c9c05db3186894306cc17 | /python/src/vmaf/svmutil.py | ca49e991943642c3fce7b7aca7f07566c7af3622 | [
"LGPL-3.0-or-later",
"Apache-2.0"
] | permissive | sunery/vmaf | 22e2f782549e1c71aa6f5160f26350e0aca06189 | 03eb8a4980b1bf2b3edd66767e67927109dbd9de | refs/heads/master | 2020-04-01T15:12:57.469291 | 2018-10-15T00:31:21 | 2018-10-15T00:31:21 | 153,327,009 | 1 | 0 | Apache-2.0 | 2018-10-16T17:32:53 | 2018-10-16T17:32:53 | null | UTF-8 | Python | false | false | 735 | py | # TODO: dependency on libsvm/svmutil needs to be properly done, this is a temporary workaround wrapper
from __future__ import absolute_import
import sys
from vmaf.config import VmafConfig
# This will work only when running with a checked out vmaf source, but not via pip install
libsvm_path = VmafConfig.root_path('l... | [
"zli@netflix.com"
] | zli@netflix.com |
a85f58e88b5664a708051c99c0c4ada535118d4e | 70121257e52e0fd2f0895414fcee3c991737443a | /python_recipes/danfo_csv.py | 96c22906850257b9b40aa400587b7180e3fa23bd | [] | no_license | OlgaBelitskaya/cookbooks | 2e54208bb5e5157814deea6ff71cd7ce5b1e4972 | 216dde3e5617203371ed4c4bb7d9e8391640c588 | refs/heads/master | 2021-07-11T15:56:44.923442 | 2021-03-25T08:38:46 | 2021-03-25T08:38:46 | 99,447,645 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | from IPython.core.display import display,HTML
def danfo_table_csv(url,columns,header_font_size):
html_str="""<html><head><meta charset='UTF-8'>"""+\
"""<meta name='viewport' """+\
"""content='width=device-width,initial-scale=1.0'>"""+\
"""<script src='https://cdn.jsdelivr.net/npm/"""+\
"""danfojs@0... | [
"safuolga@gmail.com"
] | safuolga@gmail.com |
55dbe8317f1c57f0eda91ec6f4ea5d6a3355faf5 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/Flickr/Places/FindByKeyword.py | c0620abf4ec0d8e85c197a86e1e3a6d28555d771 | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,859 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# FindByKeyword
# Returns a list of place IDs for a query string.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Chor... | [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
a3a07052f03a7dc28d6f2c41f80889cbc46bc905 | 32c6590127686114bfacff11fa7cd646025d3819 | /test_project/test_app/models.py | e45ce8711f5854e739457ed3382e0356433d6b1c | [
"BSD-2-Clause"
] | permissive | revsys/django-test-plus | 42cc6cddde30f561bec91294d2e85c21cbc62887 | 9cfb0c865b1dcad1ca6c9c4717d67ea8d476269c | refs/heads/main | 2023-08-29T03:52:59.089300 | 2023-07-11T11:37:47 | 2023-07-11T11:37:47 | 36,131,033 | 618 | 75 | BSD-3-Clause | 2023-07-11T11:35:24 | 2015-05-23T16:08:52 | Python | UTF-8 | Python | false | false | 154 | py | from django.db import models
class Data(models.Model):
""" Simple model to test our query assertions """
name = models.CharField(max_length=50)
| [
"frank@revsys.com"
] | frank@revsys.com |
053f64e6385d70d8e49c045ff44d38e56873a99a | d4a569dcf616b7f05e53a44803e38196b436b8b9 | /Thesis@3.9.1/Lib/site-packages/mypy/typeshed/third_party/2and3/dateutil/utils.pyi | 3eefd2e48ba5311cbdb709991a6815cdd94459e1 | [
"MIT"
] | permissive | nverbois/TFE21-232 | ac3178d24939c872c02a671c0f1d8cc471af516b | 7113837b5263b5c508bfc6903cb6982b48aa7ee4 | refs/heads/main | 2023-06-05T18:50:59.207392 | 2021-06-25T19:54:40 | 2021-06-25T19:54:40 | 337,691,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | pyi | from typing import Optional
from datetime import datetime, tzinfo, timedelta
def default_tzinfo(dt: datetime, tzinfo: tzinfo) -> datetime: ...
def today(tzinfo: Optional[tzinfo] = ...) -> datetime: ...
def within_delta(dt1: datetime, dt2: datetime, delta: timedelta) -> bool: ...
| [
"38432529+nverbois@users.noreply.github.com"
] | 38432529+nverbois@users.noreply.github.com |
8cae290d2e0f4814c027458fafbd56b76c6c8859 | e99bc88c211c00a701514761fdfcb9b755e6de4e | /payloads/oracle/reverse_sql.py | c8a4d05996c833f8976901daa94da532f212e589 | [] | no_license | Wuodan/inguma | 177f40f636d363f081096c42def27986f05e37e7 | c82e7caf86e24ad9783a2748c4f1d9148ad3d0ee | refs/heads/master | 2020-03-26T21:52:28.421738 | 2013-03-20T20:45:13 | 2018-08-20T12:19:30 | 145,413,992 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | #!/usr/bin/python
"""
NOTE: Should be rewritten from scratch!!!!
"""
import sys
sys.path.append("../../lib")
sys.path.append("../lib")
sys.path.append("lib")
import run_command
from oracleids import randomizeSpaces
data = """
DECLARE
data varchar2(32767);
v_ret varchar2(32767);
len number;
conn utl_tcp.con... | [
"muts@kali.org"
] | muts@kali.org |
e55349cdae31ad6838c68bcf8a78353c4625794a | 1e0355b293100873cedfcac789655a35180781db | /BOJ1541.py | 80f1eee1110f147baa91c39f0bbea9e2989c2d24 | [
"MIT"
] | permissive | INYEONGKIM/BOJ | 47dbf6aeb7a0f1b15208866badedcd161c00ee49 | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | refs/heads/master | 2021-06-14T13:50:04.124334 | 2021-03-09T14:04:14 | 2021-03-09T14:04:14 | 168,840,573 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | s=input().split("-")
if s[0]=="":
res=0
else:
res=sum(map(int,s[0].split("+")))
for i in range(1,len(s)):
res-=sum(map(int,s[i].split("+")))
print(res)
| [
"noreply@github.com"
] | INYEONGKIM.noreply@github.com |
b4a2db0fc6da43c2eb0ad5f2cd65f2c360d65ad7 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /eDQDChGrv6y4fd44j_20.py | 1a24d4d5555b5a19f0f2a0043b0899ec7134f363 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | """
A billboard is an `m * n` list, where each list element consists of either one
letter or a blank space. You are given a phrase and the billboard dimensions.
Create a function that determines whether you can place the complete phrase on
the billboard.
There are two rules:
1. If there is a space between two wo... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
4f4b68ca0c6623d671747618cbe6275ec180ab9f | b22cbe574c6fd43fde3dc82441805917b5996bb2 | /test/util.py | 9a84f69774201372124c9d12aad475c699637b11 | [] | no_license | matthagy/hlab | 7a7b16526ee06f9b6211e387795e09c6438b536c | 1bea77cf6df460f1828f99f3a54251d20e2d0f3d | refs/heads/master | 2021-01-25T03:26:52.311278 | 2012-07-23T16:20:11 | 2012-07-23T16:20:11 | 2,352,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | '''Assorted unit tests utilities
'''
import unittest
from HH2.pathutils import FilePath,DirPath
def basepath():
filebase = FilePath(__file__).abspath().stripext()
backpath = __name__.replace('.','/')
assert filebase.endswith(backpath)
path = DirPath(filebase[:-len(backpath)])
assert path.isdir()
... | [
"hagy@gatech.edu"
] | hagy@gatech.edu |
e91fb3b0579a68d2e180e42add34ad6919708d82 | 3929d114c1bc6aef86402300a8d5b278849d41ae | /186. Reverse Words in a String II.py | 8cc8dc1f28c024f2e87d00719eb97c60a509c32c | [] | no_license | lxyshuai/leetcode | ee622235266017cf18da9b484f87c1cf9ceb91d0 | 5f98270fbcd2d28d0f2abd344c3348255a12882a | refs/heads/master | 2020-04-05T21:29:37.140525 | 2018-12-16T13:17:15 | 2018-12-16T13:17:15 | 157,222,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | """
Given an input string, reverse the string word by word. A word is defined as a sequence of non-space characters.
The input string does not contain leading or trailing spaces and the words are always separated by a single space.
For example,
Given s = "the sky is blue",
return "blue is sky the".
Could you do it in-p... | [
"442536013@qq.com"
] | 442536013@qq.com |
9dfef73bdb4ca36d08e448d5637ff33d58b50b88 | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2019_02_01/models/managed_cluster_addon_profile_py3.py | 71e05cd14c0e9e64885cfee910165304b5df4421 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 1,290 | 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 ... | [
"wx44@cornell.edu"
] | wx44@cornell.edu |
419db0786d502a3cf9c1eae20144f684848c9409 | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/gensim/test/test_utils.py | 240900129cf6621eddafef08f2c921360b47d10e | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 6,864 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
Automated tests for checking various utils functions.
"""
import logging
import unittest
import numpy as np
from six import iteritems
from gensim import utils
class TestIsCorpus(unittest... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
547f56cae470648424b7485f6231f2167b17b872 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-hbase/aliyunsdkhbase/request/v20190101/CreateInstanceRequest.py | 6dcc7d5ca183ba80569cfe098efcfdd438b27383 | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 6,117 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
afd5e9a732ae36b23155af1e2cba98c435520645 | dde6faa0857c8c7e46cbe3c48dbe80b1ac9c9bcf | /suspend_resume/scripts/suspend_resume_handler_3.py | 18f59181cb17badae55a3e34d125fbf2cc356724 | [] | no_license | ROSDevoloper/Atlas80EVO-Gazebo | 7119270f4421b1a077e3c4abbb90dcf11281023b | 468d068584e71c3cca2169b365ec43faaac33f47 | refs/heads/master | 2022-10-16T10:02:48.121404 | 2020-06-15T05:08:46 | 2020-06-15T05:08:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | #!/usr/bin/env python
"""
Author: (1) Arefeen Ridwan
(2) Samuel Chieng Kien Ho
Function: Suspend Resume based on service request
"""
import rospy
from atlas80evo_msgs.msg import FSMState
from atlas80evo_msgs.srv import SetFSMState
from std_srvs.srv import Empty
from geometry_msgs.msg import Twist
from std_m... | [
"kienho91@gmail.com"
] | kienho91@gmail.com |
f64feda20504dccac97a40d5747a0a3c49125432 | d05298a88638fd62f74e8f26c5a1959f821367d1 | /src/words_baseline/reddit_output_att.py | 413266f01e93721f50de7639a7e50fc75bac1c43 | [
"MIT"
] | permissive | rpryzant/causal-text-embeddings | d4b93f5852f1854d52a09e28b81ee784015e296a | 2966493f86a6f808f0dfa71d590e3403a840befc | refs/heads/master | 2022-12-22T09:33:23.654291 | 2020-03-05T19:41:33 | 2020-03-05T19:41:33 | 298,045,006 | 1 | 0 | MIT | 2020-09-23T17:28:18 | 2020-09-23T17:28:18 | null | UTF-8 | Python | false | false | 4,087 | py | from semi_parametric_estimation.att import att_estimates, psi_plugin, psi_q_only
from reddit.data_cleaning.reddit_posts import load_reddit_processed
from .helpers import filter_document_embeddings, make_index_mapping, assign_split
import numpy as np
import pandas as pd
import os
from sklearn.linear_model import Logisti... | [
"victorveitch@gmail.com"
] | victorveitch@gmail.com |
bf3628287d6912c3ae78c55e67f21dd80313b222 | b95e71dcc1b42ebf3459ee57bd0119c618a79796 | /Array/maximum_subarray.py | 562be03611c865ee216e753a51da805015ca258d | [] | no_license | anton-dovnar/LeetCode | e47eece7de28d76b0c3b997d4dacb4f151a839b5 | 6ed9e1bd4a0b48e343e1dd8adaebac26a3bc2ed7 | refs/heads/master | 2023-06-29T07:21:06.335041 | 2021-07-31T15:08:05 | 2021-07-31T15:08:05 | 361,205,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | class Solution:
def maxSubArray(self, nums: List[int]) -> int:
max_subarr = float('-inf')
curr_sum = 0
for n in nums:
curr_sum = max(n, curr_sum + n)
max_subarr = max(max_subarr, curr_sum)
return max_subarr
| [
"fode4cun@gmail.com"
] | fode4cun@gmail.com |
96302dbfad171e64160534464df2b0add5495106 | 59e613d6a0bcb8570c89defa77da398f69b82c77 | /qcengine/tests/test_config.py | 40178a4cfe0e32b0d39d4a31efe3c27904365901 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | ffangliu/QCEngine | 3e081e7f5e236c434016e222f716e6b34b24030b | 835b291986069669e4be0e708ec4846ebfd858d6 | refs/heads/master | 2020-04-22T23:57:35.470503 | 2019-02-14T16:57:30 | 2019-02-14T16:57:30 | 170,760,404 | 0 | 0 | null | 2019-02-14T21:27:14 | 2019-02-14T21:27:14 | null | UTF-8 | Python | false | false | 5,049 | py | """
Tests the DQM compute module configuration
"""
import copy
import os
import pydantic
import pytest
import qcengine
from qcengine.testing import environ_context
def test_node_blank():
node = qcengine.config.NodeDescriptor(name="something", hostname_pattern="*")
def test_node_auto():
desc = {
... | [
"malorian@me.com"
] | malorian@me.com |
25bb1e59fa52a1478f01a27db44ee8ae299b07d2 | 81407be1385564308db7193634a2bb050b4f822e | /the-python-standard-library-by-example/subprocess/repeater.py | cf01ca41051f6970c677e34642d0326924274e24 | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 1,421 | py | #!/usr/bin/env python
#
# Copyright 2007 Doug Hellmann.
#
#
# All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby
# granted, provided that the above copyright notice appear in all
# copies and tha... | [
"350840291@qq.com"
] | 350840291@qq.com |
3f78c466709124429eaedfcbc4849133d80eb1be | 4c4509c34b57350b605af50600eefc0c24a74255 | /ecommerce/urls.py | 0dead703ab3eb8c660305689032883b343a6f140 | [] | no_license | sayanth123/ecomm | cd6dd7e8c3fb13048d35c272379a320c20eb3d24 | 67101ebbb08c82bbd15a7c1dfc22c3da5483e307 | refs/heads/main | 2023-05-05T03:20:16.660301 | 2021-05-27T04:21:44 | 2021-05-27T04:21:44 | 370,259,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | """ecommerce URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"you@example.com"
] | you@example.com |
9170b0b21899081c2505bb3e82a8d26b4391d673 | d650da884a0a33dd1acf17d04f56d6d22a2287fd | /test/test_inspect.py | 894d8f97bc3c3456e7baeaaca34461ea1c6b61a8 | [] | no_license | GaelicGrime/rpnpy | debe3a79e9a456e13dcd1421d42f01c0bcbe9084 | 5a095dd024403daad93a3222bd190bbb867a8ae2 | refs/heads/master | 2023-04-03T11:19:16.737278 | 2020-12-03T08:26:40 | 2020-12-03T08:26:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | from unittest import TestCase
from math import log
from rpnpy.inspect import countArgs
class TestCountArgs(TestCase):
"""Test the countArgs function"""
def testZero(self):
"A function that takes zero arguments must be processed correctly"
self.assertEqual(0, countArgs(lambda: 3))
def te... | [
"terry@jon.es"
] | terry@jon.es |
d09e8cfd12158d7338f73096900aa2f29faece0c | 09cead98874a64d55b9e5c84b369d3523c890442 | /py210110c_python1a/day06_210214/homework/hw_5_yiding.py | 2b8e12eb578a330374112c74a1059c59eddd995b | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | """
1,1
2,1
3,1
4,0
5,0
6,1
7,0.5
8,1
"""
"""
q1.
none, false, else if, for, in, from, as
q2.
abc$, 0a
q3.
a
q4.
c
q5.
a
q6.
a
q7.
a
q8.
a
""" | [
"lada314@gmail.com"
] | lada314@gmail.com |
7a6ea156514e8fec2c46d6640f4d2fd9b8b57b5d | 80b7f2a10506f70477d8720e229d7530da2eff5d | /ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/statistics/misdirectedperflow/misdirectedperflow.py | 0562872acb73fb50d2a0e5450f633d42c7da8502 | [
"MIT"
] | permissive | OpenIxia/ixnetwork_restpy | 00fdc305901aa7e4b26e4000b133655e2d0e346a | c8ecc779421bffbc27c906c1ea51af3756d83398 | refs/heads/master | 2023-08-10T02:21:38.207252 | 2023-07-19T14:14:57 | 2023-07-19T14:14:57 | 174,170,555 | 26 | 16 | MIT | 2023-02-02T07:02:43 | 2019-03-06T15:27:20 | Python | UTF-8 | Python | false | false | 4,342 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
006123581571814076c0c5a650ae638e95c97553 | 6fe2d3c27c4cb498b7ad6d9411cc8fa69f4a38f8 | /algorithms/algorithms-python/leetcode/Question_010_Regular_Expression_Matching.py | 68ae34c4b6feaa6b7adadbf0450d28621463d895 | [] | no_license | Lanceolata/code | aae54af632a212c878ce45b11dab919bba55bcb3 | f7d5a7de27c3cc8a7a4abf63eab9ff9b21d512fb | refs/heads/master | 2022-09-01T04:26:56.190829 | 2021-07-29T05:14:40 | 2021-07-29T05:14:40 | 87,202,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | #!/usr/bin/python
# coding: utf-8
class Solution(object):
def isMatch(self, s, p):
"""
:type s: str
:type p: str
:rtype: bool
"""
if not p:
return not s
m, n = len(s), len(p)
dp = [[False] * (n + 1) for i in range(m + 1)]
dp[m][n] ... | [
"lanceolatayuan@gmail.com"
] | lanceolatayuan@gmail.com |
ee3473b10902f6c6c697639c370c76082fa54da6 | 06919b9fd117fce042375fbd51d7de6bb9ae14fc | /py/dcp/problems/graph/find_order.py | 65b844789e326bb2a11db792095d06afc91af167 | [
"MIT"
] | permissive | bmoretz/Daily-Coding-Problem | 0caf2465579e81996869ee3d2c13c9ad5f87aa8f | f79e062e9f6e7b18b7e95c071fbe71ad104affcb | refs/heads/master | 2022-12-07T15:41:06.498049 | 2021-11-18T19:45:19 | 2021-11-18T19:45:19 | 226,376,236 | 1 | 0 | MIT | 2022-11-22T09:20:23 | 2019-12-06T17:17:00 | C++ | UTF-8 | Python | false | false | 1,593 | py | '''Topological sort.
We are given a hasmap associating each courseId key with a list of courseIds values, which tells us that the prerequisites of courseId
are course Ids. Return a sorted ordering of courses such that we can complete the curriculum.
Return null if there is no such ordering.
For example, given the fo... | [
"bmoretz82@gmail.com"
] | bmoretz82@gmail.com |
b0ee96afdbb8d940aeeedbe2f8276662709cd207 | 09cead98874a64d55b9e5c84b369d3523c890442 | /py200913b_python2m8/day06_201018/filedir_4_remove.py | 0740189b7058ab68253a539e1376c26eddba0f08 | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | """
remove dir or file
remove(name)
"""
import os
# os.remove("mydir3a")
# remove a file
os.remove("rename_file_new.py")
| [
"lada314@gmail.com"
] | lada314@gmail.com |
9e673189f7b3663b9f3c1004c0d52e8ed3aec3bb | 871c8b48a58b3e7dc7821e14bc451acb92dfe33e | /cms/migrations/0009_auto_20160308_1456.py | e5cf4eb94dfd3f19f01071c28af85f5df2715bea | [
"BSD-3-Clause"
] | permissive | sonsandco/djangocms2000 | 6f3937e2185707c32f15e5e42d06e138751d85e4 | 25131e9e8659a7a30a8fd58b7da011cbb928c8ac | refs/heads/master | 2022-08-25T22:18:17.173639 | 2022-08-17T11:36:36 | 2022-08-17T11:36:36 | 121,998,739 | 0 | 0 | NOASSERTION | 2022-07-24T05:16:48 | 2018-02-18T23:00:47 | Python | UTF-8 | Python | false | false | 1,935 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-03-08 01:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cms', '0008_auto_20150216_1649'),
]
operations = [
migrations.AddField(
... | [
"gregplaysguitar@gmail.com"
] | gregplaysguitar@gmail.com |
7e96884df88998e1cd4b4b6f2f635021055b5322 | c317f99691f549b393562db200b1e9504ce11f95 | /algorithms_learn/what_can_be_computed/src/simulateDfa.py | efedb724f8a32d4de40d6a61ff15aa0d1e302d68 | [
"CC-BY-4.0"
] | permissive | RRisto/learning | 5349f9d3466150dbec0f4b287c13333b02845b11 | 618648f63a09bf946a50e896de8aed0f68b5144a | refs/heads/master | 2023-09-01T00:47:23.664697 | 2023-08-30T17:56:48 | 2023-08-30T17:56:48 | 102,286,332 | 15 | 24 | null | 2023-07-06T21:22:48 | 2017-09-03T18:42:58 | Jupyter Notebook | UTF-8 | Python | false | false | 1,135 | py | # SISO program simulateDfa.py
# Simulate a given dfa with a given input.
# dfaString: ASCII description of the dfa M to be simulated
# inString: the initial content I of M's tape
# returns: 'yes' if M accepts I and 'no' otherwise
# Example:
# >>> simulateDfa(rf('multipleOf5.dfa'), '3425735')
# 'yes'
import utils;... | [
"ristohinno@gmail.com"
] | ristohinno@gmail.com |
e92b6a0a8f15c772f6a3f238232ce0d47afa3a9f | ee87e89befa0d4bf353dcf682b6467f9daaf657e | /src/foo_ext/setup_foo.py | 00cab0b82444aae83ea486fa9f58bec6a8b7de40 | [
"BSD-3-Clause",
"MIT"
] | permissive | umedoblock/fugou | 43046056ce5f20b81d76e3c8e3149717b63708ed | 45d95f20bba6f85764fb686081098d92fc8cdb20 | refs/heads/master | 2021-07-15T15:26:30.856753 | 2018-11-26T23:44:18 | 2018-11-26T23:44:18 | 152,105,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | from distutils.core import setup, Extension
# module_camellia = Extension('camellia', sources = ['camellia/pycamellia.c'])
module_foo = \
Extension('_foo',
sources = ['foo/pyfoo.c'],
extra_link_args=['-Wl,-soname,build/lib.linux-i686-3.2-pydebug/_foo.cpython-32dm.so'])
# build/lib.linux-i686-... | [
"devnull@localhost"
] | devnull@localhost |
ff10aab701873a6743c66ff43a452b141e61b2e3 | d153c170a4839deb4d8606009be15198418aea69 | /알고리즘풀이/21.07.09/벽부수고이동.py | 9a0c96664f8cbc835b7ed167735d13703b0e7b60 | [] | no_license | rlatmd0829/algorithm | 669085907e2243b4c3a663feab87cd83ff50cc49 | 116bebf16afa6e20d9e968aa312b99b8eea447a5 | refs/heads/master | 2023-08-21T02:27:36.944919 | 2021-09-26T09:39:52 | 2021-09-26T09:39:52 | 345,480,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,533 | py | # 시간초과
import collections
n, m = map(int, input().split())
graph = [list(map(int,input())) for _ in range(n)]
dx, dy = [-1,1,0,0], [0,0,-1,1]
def bfs():
queue = collections.deque()
queue.append((0,0))
distance = [[0]*m for _ in range(n)]
while queue:
x, y = queue.popleft()
for i in ... | [
"rlatmd0829@naver.com"
] | rlatmd0829@naver.com |
6053712f6528d72f50dd12642f249150218a7d4c | 651a296c8f45b5799781fd78a6b5329effe702a0 | /bvec/bvec_print.py | a927d2db4dfdd041e9b0fa3dbdc83056ccf7b51a | [] | no_license | pdhhiep/Computation_using_Python | 095d14370fe1a01a192d7e44fcc81a52655f652b | 407ed29fddc267950e9860b8bbd1e038f0387c97 | refs/heads/master | 2021-05-29T12:35:12.630232 | 2015-06-27T01:05:17 | 2015-06-27T01:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,944 | py | #!/usr/bin/env python
def bvec_print ( n, bvec, title ) :
#*****************************************************************************80
#
## BVEC_PRINT prints a binary integer vector, with an optional title.
#
# Discussion:
#
# A BVEC is an integer vector of binary digits, intended to
# represent an integer... | [
"siplukabir@gmail.com"
] | siplukabir@gmail.com |
1539d348092bab286434a5b073c5490382d7dffe | 9f4b1884273f995806c1e755665a92b785cc52a8 | /onnx/test/parser_test.py | 46604593e0c848bd177032dfeda4264980d26494 | [
"Apache-2.0"
] | permissive | zhijl/onnx | 340f7c5794a9aca96d2a9e76c3336aeebe798776 | ac0afea916f989c714692dd8551eff762a639cd5 | refs/heads/main | 2023-03-31T02:30:50.151799 | 2023-03-20T23:09:55 | 2023-03-20T23:09:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,295 | py | # SPDX-License-Identifier: Apache-2.0
import unittest
from parameterized import parameterized
import onnx
from onnx import GraphProto, OperatorSetIdProto, checker
class TestBasicFunctions(unittest.TestCase):
def check_graph(self, graph: GraphProto) -> None:
self.assertEqual(len(graph.node), 3)
s... | [
"noreply@github.com"
] | zhijl.noreply@github.com |
f4a8e3c81ba011c641b4218d7ed3cca00179f752 | e0c8662a56d89730043146ddc340e9e0b9f7de72 | /plugin/14e55cec-1596.py | 7b13f9266669dc060f05fe19bfca14b9054da31c | [] | no_license | izj007/bugscan_poc | f2ef5903b30b15c230b292a1ff2dc6cea6836940 | 4490f3c36d4033bdef380577333722deed7bc758 | refs/heads/master | 2020-09-22T17:20:50.408078 | 2019-01-18T09:42:47 | 2019-01-18T09:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | #coding:utf-8
from lib.curl import *
# -*- coding: utf-8 -*-
"""
POC Name : OGNL console
Author : a
mail : a@lcx.cc
Referer: http://wooyun.org/bugs/wooyun-2010-080076
"""
import urlparse
def assign(service, arg):
if service == 'www':
arr = urlparse.urlparse(arg)
return True, '%s://%s/... | [
"yudekui@wsmtec.com"
] | yudekui@wsmtec.com |
8787aeb0950cc8d74bb12753045c0ae4d10b16e6 | 17c280ade4159d4d8d5a48d16ba3989470eb3f46 | /18/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisWprime1800.py | 9e802f49450f00b24370cdff361d92b3565fac2c | [] | no_license | chengchen1993/run2_ntuple | 798ff18489ff5185dadf3d1456a4462e1dbff429 | c16c2b203c05a3eb77c769f63a0bcdf8b583708d | refs/heads/master | 2021-06-25T18:27:08.534795 | 2021-03-15T06:08:01 | 2021-03-15T06:08:01 | 212,079,804 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'Wprime_1800_weight_v2'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName='Analysis'
config.JobType.sendExternalFolder=True# = 'Analysis'
config.JobTy... | [
"c.chen@cern.ch"
] | c.chen@cern.ch |
76c6d426ea19c82ba2d57cfb8810ec4fedfbf1d8 | f03f7f4cad663f4687b8b87ea9a001cd7a0c6b31 | /rule_engine/asgi.py | 626b087bf951a5d79ee0f8275ef1dc902482b7ec | [] | no_license | amarbabuk/rule-engine | 79f05a2338539a8791aaea3a0432e4b8a1a7d1d3 | 9b7a504501d2db02178e4bbeac0409dfd0ba4833 | refs/heads/master | 2023-05-03T20:40:01.259232 | 2021-05-15T21:24:18 | 2021-05-15T21:24:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for rule_engine project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"kohlivishrut@gmail.com"
] | kohlivishrut@gmail.com |
669563710a76da0b0965af59920ba5fa960381db | a1f009fbc7700cd17fffcd97518bda1593064e33 | /source_code/python/python_advanced/strings/bytes.py | b6ee415eaff9935b7df255dd1b656f9772eacbb5 | [] | no_license | Alrin12/ComputerScienceSchool | 2db06f9d198f67ad587535b3cab0dabd8a4b8e5c | 7543ae686394fc573f80bf680ae4371a2871dede | refs/heads/master | 2021-01-23T15:04:22.672139 | 2017-07-17T15:32:31 | 2017-07-17T15:32:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | b = b"abcde"
#print(b)
#print(b.upper())
#print(b.startswith(b"ab"))
#bytes -> string
string = b.decode('UTF-8')
print(string)
| [
"ythwork83@gmail.com"
] | ythwork83@gmail.com |
cbabaab8f53d23cfaa2ecbf319388276b6172f67 | 433d8d457ed431b9ad38e3ed8ed6e441b7caa334 | /bin/generate_zippylog_message_classes | 92c4f25b4a7ff5fa92a47278254795a8f91aaf8f | [
"Apache-2.0"
] | permissive | indygreg/zippylog | 365f4f95dd2c9f8743180178fa90d66b0611cc71 | 5efc10b28a3e9d5f4df6c2014e7121d689291a70 | refs/heads/master | 2020-05-09T17:15:23.063121 | 2012-09-06T23:53:19 | 2012-09-06T23:53:19 | 795,523 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,674 | #!/usr/bin/python
# Copyright 2011 Gregory Szorc
#
# 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 la... | [
"gregory.szorc@gmail.com"
] | gregory.szorc@gmail.com | |
14fcaeb305d053f5521da45fd3ee2dd1a9697fba | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startCirq155.py | 094f1a6799a76414621d8cdf570c3e79f509ea54 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,673 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=3
# total number=29
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
627cf8253da28f9a0b598a5ce5132606b0f3c62b | a1431c25ebd62daead742e0120a16253c4cf67ca | /django/movie/migrations/0002_auto_20190910_2053.py | 212f7307d9b37543ceb71c884a998090b3067fed | [] | no_license | KonradMarzec1991/my_MDB | f840cbf495c23272b3e39db68c241219a60d63bd | d77339a4c37a3d7ae21b6d28bd9644ce15130f10 | refs/heads/master | 2022-04-29T10:15:37.109422 | 2019-11-03T20:13:57 | 2019-11-03T20:13:57 | 207,375,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | # Generated by Django 2.2.5 on 2019-09-10 20:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('movie', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Person',
fi... | [
"konrimarzec@gmail.com"
] | konrimarzec@gmail.com |
ca059aa8c32a39ed214dc0199c72e92922850c57 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02677/s955369222.py | 6cf51b7ad9b75384f56164aff5faa203ac653ac3 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | """AtCoder."""
import math
a, b, h, m = [int(v) for v in input().split(' ')]
class Point:
def __init__(self, r, v):
self.r = r
self.w = (2 * math.pi) / v
def get_pos(self, t):
wt = self.w * t
return self.r * math.cos(wt), self.r * math.sin(wt)
p1 = Point(a, 12 * 60)
p2 = ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2f5a0fdf8f81ef767fc19d5a34d2bbaeb635d01d | 646f2a135dc8ba97b2fc7436194dcab2a8f0ae8c | /autocomplete_light/channel/base.py | 8ba3f984df5a1c0a22922c1c42937c3567e22822 | [
"MIT"
] | permissive | pix0r/django-autocomplete-light | 9f55252d4aa4fb8a28471772a98e793b171cdb0c | f1026dfe49934065206ca1fdae46289c68e8c231 | refs/heads/master | 2020-12-30T18:50:36.304623 | 2012-05-30T09:39:24 | 2012-05-30T09:39:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,932 | py | """
The channel.base module provides a channel class which you can extend to make
your own channel. It also serves as default channel class.
"""
from django.core import urlresolvers
from django.template import loader
from django.utils.translation import ugettext_lazy as _
__all__ = ('ChannelBase',)
class ChannelBas... | [
"jamespic@gmail.com"
] | jamespic@gmail.com |
a585d4489cb8b4295cdbaa734255fddff64656b5 | 416f598c62277659f787a37d06f3ebc633a79d53 | /every_election/apps/organisations/migrations/0036_auto_20180606_1035.py | bfa7659c15a88e941da82db96db06e8575c0edfb | [] | no_license | chris48s/EveryElection | 53b6d807e97b2a8b9a943dedcc5ff6ecc65d20fc | 38192a075ae359b91e2aa352fb3886c6c93d3337 | refs/heads/master | 2021-01-22T19:49:15.898338 | 2018-08-17T09:11:42 | 2018-08-17T09:11:42 | 85,244,907 | 0 | 0 | null | 2017-03-16T21:53:29 | 2017-03-16T21:53:28 | null | UTF-8 | Python | false | false | 484 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-06 10:35
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('organisations', '0035_rename_divset_constraint'),
]
operations = [
migrations.Alte... | [
"chris.shaw480@gmail.com"
] | chris.shaw480@gmail.com |
0216d00c4a0280404201ed358bfc7c240952ec5a | 0202d8faff21f24e468654b3da56ca16457ff5b3 | /entrant/abc133/abc133-c.py | a93b0c17761a620084c2519ce520de7d390fcc5d | [] | no_license | ryogoOkura/atcoder | a3d8d052c6424db26994444eca1ebaa3efbd3e21 | 2865b42bbdb50d83bf129fd868083c2363e92024 | refs/heads/master | 2021-06-24T06:07:32.290393 | 2021-01-02T13:39:24 | 2021-01-02T13:39:24 | 187,552,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | l,r=map(int,input().split())
if (l//2019) == (r//2019):
l,r=l%2019,r%2019
ans=2018
for i in range(l,r):
for j in range(i+1,r+1):
tmp=(i*j)%2019
if tmp<ans:
ans=tmp
print(ans)
else:
print(0)
| [
"nem1442so@gmail.com"
] | nem1442so@gmail.com |
39ceb9d36775a75edf35014ee07e0ae39affc16f | f8f2536fa873afa43dafe0217faa9134e57c8a1e | /aliyun-python-sdk-hbr/aliyunsdkhbr/request/v20170908/DescribeHanaRestoresRequest.py | 29b991a2c5cbecc928a581fe3e4ae75d2966a997 | [
"Apache-2.0"
] | permissive | Sunnywillow/aliyun-openapi-python-sdk | 40b1b17ca39467e9f8405cb2ca08a85b9befd533 | 6855864a1d46f818d73f5870da0efec2b820baf5 | refs/heads/master | 2022-12-04T02:22:27.550198 | 2020-08-20T04:11:34 | 2020-08-20T04:11:34 | 288,944,896 | 1 | 0 | NOASSERTION | 2020-08-20T08:04:01 | 2020-08-20T08:04:01 | null | UTF-8 | Python | false | false | 2,536 | 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 ... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
e7b2527e9d44eef72048f1bb2f0a78a12a668f9b | 77639380e2c33eee09179f372632bcb57d3f7e3f | /favorita/base_xgb_model.py | d550fd5b81efab514e96961f156451c648bd8a32 | [] | no_license | razmik/demand_forecast_walmart | b8f5c4aaa3cb6dccae102e4ca19f1131131a9f26 | 56292bfbeebc1d3d4962e3ee26d05be2aebd5f4c | refs/heads/master | 2023-01-22T12:30:18.129486 | 2020-08-10T10:44:12 | 2020-08-10T10:44:12 | 283,923,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,399 | py | """
Author: Rashmika Nawaratne
Date: 05-Aug-20 at 4:53 PM
"""
import pandas as pd
import numpy as np
from datetime import datetime
import time
import gc
from xgboost import XGBRegressor
from xgboost import Booster
import matplotlib.pyplot as plt
from favorita.load_data import Data
from favorita.evaluation import Ev... | [
"razmik89@gmail.com"
] | razmik89@gmail.com |
4103376dbbca20b7caa6c000a96c5304895c31f9 | e017eca53dbe0d35977546df1bb36a59915f6899 | /debugging/assert_variable.py | 8aec26cfafa0f80b02465a455cc3c785aa89bd35 | [] | no_license | clivejan/python_basic | 7d14b7335f253658f8814acbdb753a735481e377 | 773de644a87792b872e38017dcac34c1691ccc87 | refs/heads/master | 2020-12-04T17:44:24.737370 | 2020-01-09T14:43:36 | 2020-01-18T03:11:20 | 231,856,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | #!/usr/bin/env python3 -O
# Assertion is used for programmer errors and
# should not use try except to handle it.
# Status well
job_title = 'DevOps'
assert job_title == "DevOps", "Tansform from SE to DevOps"
# Status wrong
job_title = 'Systems Engineer'
assert job_title == "DevOps", "Tansform from SE to DevOps"
pri... | [
"clive.jan@gmail.com"
] | clive.jan@gmail.com |
0116db3631d3d531836248a0bca1d5d46ba83d49 | 302442c32bacca6cde69184d3f2d7529361e4f3c | /cidtrsend-all/stage3-model/pytz/zoneinfo/Africa/Bujumbura.py | 76c4c7a6e44ba67e832b34d93a452c2827caf84f | [] | no_license | fucknoob/WebSemantic | 580b85563072b1c9cc1fc8755f4b09dda5a14b03 | f2b4584a994e00e76caccce167eb04ea61afa3e0 | refs/heads/master | 2021-01-19T09:41:59.135927 | 2015-02-07T02:11:23 | 2015-02-07T02:11:23 | 30,441,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | '''tzinfo timezone information for Africa/Bujumbura.'''
from pytz.tzinfo import StaticTzInfo
from pytz.tzinfo import memorized_timedelta as timedelta
class Bujumbura(StaticTzInfo):
'''Africa/Bujumbura timezone definition. See datetime.tzinfo for details'''
zone = 'Africa/Bujumbura'
_utcoffset = time... | [
"learnfuzzy@gmail.com"
] | learnfuzzy@gmail.com |
ab96c2674dd84ae1432b1ef67ca398aa1e033854 | 71f3ecb8fc4666fcf9a98d39caaffc2bcf1e865c | /.history/第2章/2-2/lishi_20200527235931.py | 947e75d59de12d8489b2a6b14a7c1c09b49fe148 | [
"MIT"
] | permissive | dltech-xyz/Alg_Py_Xiangjie | 03a9cac9bdb062ce7a0d5b28803b49b8da69dcf3 | 877c0f8c75bf44ef524f858a582922e9ca39bbde | refs/heads/master | 2022-10-15T02:30:21.696610 | 2020-06-10T02:35:36 | 2020-06-10T02:35:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | #!/usr/bin/env python
# coding=utf-8
'''
@version:
@Author: steven
@Date: 2020-05-27 22:20:22
@LastEditors: steven
@LastEditTime: 2020-05-27 23:59:31
@Description:将列表的最后几项作为历史记录的过程。
'''
from _collections import deque
def search(lines, pattern, history=5):
previous_lines = deque(maxlen=history)
for line in lin... | [
"a867907127@gmail.com"
] | a867907127@gmail.com |
82c5ce7b4ebbb0b5752945713ead109a06be2960 | 16ba38ef11b82e93d3b581bbff2c21e099e014c4 | /haohaninfo/Python_Future_Sample/實單交易/90.py | dbf39a68d38224f520449600d95099dfb3431206 | [] | no_license | penguinwang96825/Auto-Trading | cb7a5addfec71f611bdd82534b90e5219d0602dd | a031a921dbc036681c5054f2c035f94499b95d2e | refs/heads/master | 2022-12-24T21:25:34.835436 | 2020-09-22T09:59:56 | 2020-09-22T09:59:56 | 292,052,986 | 2 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | # -*- coding: UTF-8 -*-
# 載入相關套件
import sys,indicator,datetime,haohaninfo
# 券商
Broker = 'Masterlink_Future'
# 定義資料類別
Table = 'match'
# 定義商品名稱
Prod = sys.argv[1]
# 取得當天日期
Date = datetime.datetime.now().strftime("%Y%m%d")
# K棒物件
KBar = indicator.KBar(Date,'time',1)
# 定義威廉指標的週期、超買區、超賣區
WILLRPeriod = 14
Ov... | [
"penguinwang@smail.nchu.edu.tw"
] | penguinwang@smail.nchu.edu.tw |
5106152e77d060a927253686296d12540bed8155 | 2a94e60460f91c4a4b919953ef1a15de4d89166a | /argil_cb_pos_ticket/pos.py | 79525802be904af3b677e6207922930e7981aaf3 | [] | no_license | germanponce/addons_cb | de8ddee13df36cf2278edbbc495564bbff8ea29e | 858453d4f4c3e8b43d34a759b20306926f0bf63e | refs/heads/master | 2021-01-22T23:20:16.826694 | 2015-10-29T22:05:03 | 2015-10-29T22:05:03 | 41,502,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the ter... | [
"german_442@hotmail.com"
] | german_442@hotmail.com |
0a97d29e2bec4a1a9d370b41f0a000614f2f24db | c3e2f56672e01590dc7dc7e184f30c2884ce5d3a | /Programs/MyPythonXII/Unit1/PyChap06/filera.py | 9500b097eee3e35d0a288c02f76d1e850d45b55f | [] | no_license | mridulrb/Basic-Python-Examples-for-Beginners | ef47e830f3cc21cee203de2a7720c7b34690e3e1 | 86b0c488de4b23b34f7424f25097afe1874222bd | refs/heads/main | 2023-01-04T09:38:35.444130 | 2020-10-18T15:59:29 | 2020-10-18T15:59:29 | 305,129,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # File name: ...\\MyPythonXII\Unit1\PyChap06\filera.py
import os
txtfile = "Friends.txt" # Text file is assigned
if os.path.isfile(txtfile):
print ("Friends names are...")
print ("-------------------")
for F in open(txtfile).read(): # Both open and read the contents
print (F, end="")
... | [
"mridurb@gmail.com"
] | mridurb@gmail.com |
b8e7b0de85b7573829e61fafb9cd287c1173b9af | fbd5c602a612ea9e09cdd35e3a2120eac5a43ccf | /Finished/old_py/75.颜色分类.py | 7bd771f54cb7ff8dcc151c48d2e2b94a7f6bf8e8 | [] | no_license | czccc/LeetCode | 0822dffee3b6fd8a6c6e34be2525bbd65ccfa7c0 | ddeb1c473935480c97f3d7986a602ee2cb3acaa8 | refs/heads/master | 2023-09-01T18:18:45.973563 | 2023-08-27T02:44:00 | 2023-08-27T02:44:00 | 206,226,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | #
# @lc app=leetcode.cn id=75 lang=python
#
# [75] 颜色分类
#
# @lc code=start
class Solution(object):
def sortColors(self, nums):
"""
:type nums: List[int]
:rtype: None Do not return anything, modify nums in-place instead.
"""
left, right = -1, len(nums)
p = 0
w... | [
"lichchchn@gmail.com"
] | lichchchn@gmail.com |
5c9dac8602f051955f5bba3b5b992bee8b05f77a | 88900156c1fc6d496e87a0c403811e30a7398cfc | /check4fsm/Communication.py | 70dd87ad40c4646164be3443114f9caeac43fce8 | [] | no_license | Totoro2205/check4fsm | 4be7b73b9331ed2d46ce119b762d67a64a4420cc | 4245b7f0babca6f5d15d1f85ee85fddc69cf0196 | refs/heads/main | 2023-08-10T07:32:22.121413 | 2021-09-20T09:28:57 | 2021-09-20T09:28:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,207 | py | #!/usr/bin/env python
from check4fsm.ProccesText import ProcessText
from check4fsm.TonalizeText import TonalText
from check4fsm.ProcessAppeal import ProcessAppeal
from check4fsm.extractAllData import ExtractData
from check4fsm import *
from natasha import Segmenter, Doc
from loguru import logger
from flask_cors impor... | [
"you@example.com"
] | you@example.com |
62cfb6b503b6ce9ea99f372bcf8a13687c42dca9 | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/simulation/conditional_layers/conditional_layer_handlers.py | 9f92448745a071c4aac20c994e6eed081d12f54c | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,967 | py | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\conditional_layers\conditional_layer_handlers.py
# Compiled at: 2018-05-11 22:46:41
# Size of source... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
78de7289058ba6cd0376717e3c054543a4765a6e | dda618067f13657f1afd04c94200711c1920ea5f | /scoop/user/util/inlines.py | fae84630c7d38141cbccae33232c7d71bd188d6d | [] | no_license | artscoop/scoop | 831c59fbde94d7d4587f4e004f3581d685083c48 | 8cef6f6e89c1990e2b25f83e54e0c3481d83b6d7 | refs/heads/master | 2020-06-17T20:09:13.722360 | 2017-07-12T01:25:20 | 2017-07-12T01:25:20 | 74,974,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | # coding: utf-8
from django_inlines import inlines
from django_inlines.inlines import TemplateInline
from scoop.user.models import User
class UserInline(TemplateInline):
"""
Inline d'insertion d'utilisateur
Format : {{user id [style=link|etc.]}}
Exemple : {{user 2490 style="link"}}
"""
inline... | [
"steve.kossouho@gmail.com"
] | steve.kossouho@gmail.com |
3f56e0b32438cf0782e92e5ea2de9f3379161e3d | 679cbcaa1a48c7ec9a4f38fa42d2dc06d7e7b6ef | /main.py | d5f2cef309384ff826e8e3934d2f1a1e69578595 | [] | no_license | roblivesinottawa/canada_provinces_game | cb2242845e3dd3a3902c0f416ac1a4efa485aecf | 2aa5c7236c2ac7381522b493fddf415ece9c3a87 | refs/heads/main | 2023-03-04T08:08:31.409489 | 2021-02-17T21:46:18 | 2021-02-17T21:46:18 | 339,863,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | import turtle
import pandas
screen = turtle.Screen()
screen.title("Canada Provinces Game")
image = "canada_map.gif"
screen.addshape(image)
turtle.shape(image)
data = pandas.read_csv("canada_provinces.csv")
all_provinces = data.province.to_list()
guessed = []
while len(guessed) < 50:
answer = screen.textinput(ti... | [
"tech.rob@icloud.com"
] | tech.rob@icloud.com |
6605d4e27c4cb4a040af60508ae4e17b5382aed8 | f594560136416be39c32d5ad24dc976aa2cf3674 | /mmdet/core/bbox/samplers/__init__.py | f58505b59dca744e489328a39fdabb02a893fb51 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ShiqiYu/libfacedetection.train | bd9eb472c2599cbcb2f028fe7b51294e76868432 | dce01651d44d2880bcbf4e296ad5ef383a5a611e | refs/heads/master | 2023-07-14T02:37:02.517740 | 2023-06-12T07:42:00 | 2023-06-12T07:42:00 | 245,094,849 | 732 | 206 | Apache-2.0 | 2023-06-12T07:42:01 | 2020-03-05T07:19:23 | Python | UTF-8 | Python | false | false | 827 | py | # Copyright (c) OpenMMLab. All rights reserved.
from .base_sampler import BaseSampler
from .combined_sampler import CombinedSampler
from .instance_balanced_pos_sampler import InstanceBalancedPosSampler
from .iou_balanced_neg_sampler import IoUBalancedNegSampler
from .mask_pseudo_sampler import MaskPseudoSampler
from .m... | [
"noreply@github.com"
] | ShiqiYu.noreply@github.com |
78a54771d395abae7a5403a3cdbd6b176f71da9e | d4252920cf72df6973c31dad81aacd5d9ad6d4c6 | /core_example/core_export_with_name.py | 52b36666b3edfbf02e3adaec01909a7214c30acb | [] | no_license | tnakaicode/GeomSurf | e1894acf41d09900906c8d993bb39e935e582541 | 4481180607e0854328ec2cca1a33158a4d67339a | refs/heads/master | 2023-04-08T15:23:22.513937 | 2023-03-20T04:56:19 | 2023-03-20T04:56:19 | 217,652,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,697 | py | import numpy as np
import sys
import time
import os
from OCC.Display.SimpleGui import init_display
from OCC.Core.gp import gp_Pnt
from OCC.Core.XSControl import XSControl_Writer, XSControl_WorkSession
from OCC.Core.XCAFApp import XCAFApp_Application
from OCC.Core.XCAFDoc import XCAFDoc_DocumentTool_ShapeTool
from OCC.... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
f8f06cef7eb7f8000f785ce17005caaadfb5e2b9 | 7241ebc05ce727585224b3a98b0824f99e63627d | /tool/parser/JsonParser.py | d6539c8d86cf5900ad1f23f9402586f492b77105 | [] | no_license | mabenteng/ai-kg-neo4j | ca0cc161244229821e3b89e516fb616828823609 | 713e978ffedda7986245307cace02fb7ec240acd | refs/heads/master | 2021-10-20T03:50:43.583436 | 2019-02-25T14:25:11 | 2019-02-25T14:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # -*- coding: utf-8 -*-
# coding=utf-8
"""
create_author : zhangcl
create_time : 2018-07-01
program : *_* parse the parameter and generate cypher *_*
"""
import json
class JsonParser:
"""
Parser of request parameter.
"""
def __init__(self):
"""
initialize local variables.
... | [
"254675123@qq.com"
] | 254675123@qq.com |
bcc9f50e79bc76fc958fb5af4610f1cf265ea29f | a2dc75a80398dee58c49fa00759ac99cfefeea36 | /bluebottle/projects/migrations/0087_merge_20190130_1355.py | 705027f9fe948f888b16eb0437a1f45584ffd9db | [
"BSD-2-Clause"
] | permissive | onepercentclub/bluebottle | e38b0df2218772adf9febb8c6e25a2937889acc0 | 2b5f3562584137c8c9f5392265db1ab8ee8acf75 | refs/heads/master | 2023-08-29T14:01:50.565314 | 2023-08-24T11:18:58 | 2023-08-24T11:18:58 | 13,149,527 | 15 | 9 | BSD-3-Clause | 2023-09-13T10:46:20 | 2013-09-27T12:09:13 | Python | UTF-8 | Python | false | false | 341 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-01-30 12:55
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('projects', '0086_auto_20190117_1007'),
('projects', '0086_merge_20190121_1425'),
]
... | [
"ernst@onepercentclub.com"
] | ernst@onepercentclub.com |
7023e5ecdc00bc0113342ae94985d9d03e3efcba | afc693a1095f99cc586770fbd5a65dd40f2d822f | /docs/conf.py | 82c0e03d8f2804c1c403a6bc1943dfa63271cb9d | [
"LicenseRef-scancode-homebrewed",
"Beerware"
] | permissive | ndkoch/ihatemoney | 974f3b75d3bc2519d3c17f492d221da9fa780236 | 51bc76ecc5e310602216fb8eaa2ede2ab43b3d00 | refs/heads/master | 2020-09-27T00:03:31.320035 | 2019-12-09T00:19:22 | 2019-12-09T00:19:22 | 226,371,920 | 0 | 2 | NOASSERTION | 2019-12-09T00:19:23 | 2019-12-06T16:48:41 | Python | UTF-8 | Python | false | false | 266 | py | # coding: utf8
import sys, os
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = "I hate money"
copyright = "2011, The 'I hate money' team"
version = "1.0"
release = "1.0"
exclude_patterns = ["_build"]
pygments_style = "sphinx"
| [
"alexis@notmyidea.org"
] | alexis@notmyidea.org |
a138938f68658430a7186f241fa868fec2590e61 | 865bd5e42a4299f78c5e23b5db2bdba2d848ab1d | /Python/322.coin-change.135397822.ac.python3.py | 5e9a0619060981526f9753a831b848d95c17ab70 | [] | no_license | zhiymatt/Leetcode | 53f02834fc636bfe559393e9d98c2202b52528e1 | 3a965faee2c9b0ae507991b4d9b81ed0e4912f05 | refs/heads/master | 2020-03-09T08:57:01.796799 | 2018-05-08T22:01:38 | 2018-05-08T22:01:38 | 128,700,683 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | #
# [322] Coin Change
#
# https://leetcode.com/problems/coin-change/description/
#
# algorithms
# Medium (26.58%)
# Total Accepted: 92.2K
# Total Submissions: 346.9K
# Testcase Example: '[1]\n0'
#
#
# You are given coins of different denominations and a total amount of money
# amount. Write a function to compute t... | [
"miylolmiy@gmail.com"
] | miylolmiy@gmail.com |
59ec3812dd12a3af309dfdcc37161df0ee23d29f | 2e89ff0a41c5ae40bc420e5d298504927ceed010 | /anything/users/migrations/0001_initial.py | fdaae19b9ff03d88bd74ac05938ab739e8e817a4 | [] | no_license | darkblank/anything | 6dc676b7a099ddfce0c511db9234715a4f0ca66c | 17589f8988ed1cb6fa049962bfd3fbe57c392fba | refs/heads/master | 2020-03-11T09:40:32.608171 | 2018-05-12T09:20:27 | 2018-05-12T09:20:27 | 129,918,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | # Generated by Django 2.0.3 on 2018-05-11 23:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | [
"darkblank1990@gmail.com"
] | darkblank1990@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.