blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eec37585b4feaa9cc15c76cd3fead5d237d8c535 | db6a3eb678c372256c342e76caaf750de253c119 | /tests/conftest.py | 1153bb41932ba778afc0b91d999d0b9826a2eb12 | [
"BSD-3-Clause"
] | permissive | molssi-seamm/table_step | 80678f1bb05fb068d0dc5c6390d4e69a822d9cbc | e98f79ee5455f1caf1f03da32c9771cee24e7813 | refs/heads/main | 2023-08-17T02:20:08.451145 | 2023-07-25T19:22:14 | 2023-07-25T19:22:14 | 170,744,384 | 0 | 0 | BSD-3-Clause | 2023-07-25T19:22:16 | 2019-02-14T19:14:57 | Python | UTF-8 | Python | false | false | 1,584 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Fixtures for testing the table_step package."""
import pytest
def pytest_addoption(parser):
parser.addoption(
"--no-unit", action="store_true", default=False, help="don't run the unit tests"
)
parser.addoption(
"--integration",
act... | [
"paul@thesaxes.net"
] | paul@thesaxes.net |
aab78f44cb62d54f045f75c91f11d8a9fb0b08d9 | 7ecbdf17a3d6c11adac10781fc08f16e60c2abe7 | /testGridWorldPython/multiplePCrystal_N1609/testGridWorld.py | 6e24c232b62941638a56757ba8ea221ecf64d66c | [] | no_license | yangyutu/multiagentAssembly | 459f7941403d38c877f51094dee9462372b491c0 | 1e7c950e13fadf5e2e471de15b5c06f349130869 | refs/heads/master | 2020-06-07T06:17:27.747500 | 2019-06-30T19:39:58 | 2019-06-30T19:39:58 | 192,946,813 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | import GridWorldPython as gw
import json
import numpy as np
from timeit import default_timer as timer
configName = 'config.json'
model = gw.GridWorldPython(configName, 1)
with open(configName,'r') as file:
config = json.load(file)
N = config['N']
iniConfigPos = np.genfromtxt('squareTargetN1609CPP.txt')
iniConfi... | [
"yangyutu123@gmail.com"
] | yangyutu123@gmail.com |
cd2cd539213e5471e56fbe40f7277b75376c4c8a | bdff6688cee79226723fbcf9980c3757a55651b7 | /algorithms/implementation/find_digits.py | ae389e624b94fb978174728591e73e5e389879b0 | [] | no_license | kruthar/hackerrank | 1f151203c8f26c033585f30d2cf69a2b22dcaf71 | ef81b2aa41a678ad6b0692f933f438a62b1d6b64 | refs/heads/master | 2016-08-10T07:15:19.165058 | 2016-02-26T17:48:58 | 2016-02-26T17:48:58 | 49,286,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | import sys
num_lines = int(sys.stdin.next().strip())
for i in range(0, num_lines):
num_string = sys.stdin.next().strip()
num = int(num_string)
divs = 0
for digit in num_string:
if digit != '0' and num % int(digit) == 0:
divs += 1
print divs | [
"kruthar@gmail.com"
] | kruthar@gmail.com |
ff8c2bc814120ac52259dc6eb7847a31d804f055 | a7b0d36ed471f48b549355430eb474d1f212fed4 | /products/tests.py | 455a4e4972f84336b889ee549a3a66df2411f105 | [
"MIT"
] | permissive | Yezz123-Archive/E-Commerce-Boilerplate | 93fd1aca5fb462c44915aeb60a1e89284c15ad0a | c57196b92ae5395bbfa0ef97f50425904fe2ead2 | refs/heads/main | 2023-05-07T05:08:59.232857 | 2021-06-05T11:56:51 | 2021-06-05T11:56:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from django.test import TestCase
from .models import Product
# Create your tests here.
class ProductTests(TestCase):
def test_str(self):
test_name = Product(name='product')
self. assertEqual(str(test_name), 'product') | [
"yasserth19@gmail.com"
] | yasserth19@gmail.com |
6cc1153dc9a841af6cfd746ccd2fceb3e74f88e1 | b7663107da61a8530c92567639f9bc3e51b4b3c7 | /models/org.py | 7382bbf5a6d5092ca17972a91445f26a9546972b | [
"MIT"
] | permissive | goldenboy/eden | adb5dddeee56b891ee11fb31453fa7ea65df60d3 | 628ee2278b7535486482a6030c5d84b70e3bdb4a | refs/heads/master | 2021-01-16T21:36:21.965358 | 2012-02-26T23:54:56 | 2012-02-26T23:54:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,577 | py | # -*- coding: utf-8 -*-
"""
Organization Registry
"""
# -----------------------------------------------------------------------------
# Defined in the Model for use from Multiple Controllers for unified menus
#
def org_organisation_controller():
""" RESTful CRUD controller """
# T = current.T
# db = ... | [
"fran@aidiq.com"
] | fran@aidiq.com |
baadca2b3a178ee55b51a4210be750d6080444b5 | d5c8f7f7481c86266dfccb862e16c59132f5eb34 | /config.py | 414128cefca0776539c2eef574cb551b9d9efe7c | [] | no_license | AngleMAXIN/BlogGo | 59aec933b7743ba19a3eca147ce61b864da79399 | 49dd6cd930ae059d533bcfd2f1aa3cd3197deb95 | refs/heads/master | 2021-04-12T12:32:32.895508 | 2018-04-24T09:17:07 | 2018-04-24T09:17:07 | 126,703,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | #/usr/bin/env python3
# -*- coding: utf-8 -*-
#/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
basedir = os.path.abspath(os.path.dirname(__file__))
HOSTNAME = '127.0.0.1'
PORT = '3306'
USERNAME = 'root'
PASSWORD = 'maxin'
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'this is a secre... | [
"1678190746@qq.com"
] | 1678190746@qq.com |
8ffbcbd15ddfd36fa85faee3a276f226df7e7419 | 21f98d8bb31264c94e7a98fb8eb806d7f5bd396e | /Fenwick Tree/218. The Skyline Problem.py | 0ce89568e86b08184393b63f0be9409ec3eb3a60 | [] | no_license | mcfair/Algo | e1500d862a685e598ab85e8ed5b68170632fdfd0 | 051e2a9f6c918907cc8b665353c46042e7674e66 | refs/heads/master | 2021-10-31T01:25:46.917428 | 2021-10-08T04:52:44 | 2021-10-08T04:52:44 | 141,460,584 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | class Solution(object):
def getSkyline(self, buildings):
"""
:type buildings: List[List[int]]
:rtype: List[List[int]]
"""
points =[]
endsAt ={}
for L, R, H in buildings:
left, right = (L, 'left', -H), (R, 'right', -H) #'left' < 'right', don't use ... | [
"noreply@github.com"
] | mcfair.noreply@github.com |
14d9deb91f33a952aa11d3c81ab4256f362e0ba0 | f98a2875e0cdc84341fe8e37b11336368a257fe7 | /auxiliary/accessing_comparative_data_sensitivity_runs.py | f6c3cd9c7f009bf8ac5af1f2218e353a026000d2 | [
"MIT"
] | permissive | anhnguyendepocen/PolicySpace2 | eaa83533b7ad599af677ce69353841e665b447d0 | d9a450e47651885ed103d3217dbedec484456d07 | refs/heads/master | 2023-08-28T04:55:40.834445 | 2021-10-21T18:50:03 | 2021-10-21T18:50:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | import os
from shutil import copyfile
import numpy as np
import pandas as pd
from analysis.output import OUTPUT_DATA_SPEC as cols
import read_meta_json
def moving_files(path1, path2):
path = os.path.join(path1, path2)
dirs = os.listdir(path)
for each in dirs:
if '=' in each and '.csv' not in eac... | [
"furtadobb@gmail.com"
] | furtadobb@gmail.com |
3421a3b55caa64222cf08320ee46daabcf0b12f6 | 2f0d56cdcc4db54f9484b3942db88d79a4215408 | /.history/Python_Learning/lesson13_20200329144341.py | c8241db28a95319939d792a162f3f2bb4400c80a | [] | no_license | xiangxing98/xiangxing98.github.io | 8571c8ee8509c0bccbb6c2f3740494eedc53e418 | 23618666363ecc6d4acd1a8662ea366ddf2e6155 | refs/heads/master | 2021-11-17T19:00:16.347567 | 2021-11-14T08:35:01 | 2021-11-14T08:35:01 | 33,877,060 | 7 | 1 | null | 2017-07-01T16:42:49 | 2015-04-13T15:35:01 | HTML | UTF-8 | Python | false | false | 3,467 | py | # -*- encoding: utf-8 -*-
# !/usr/bin/env python
'''
@File : lesson13.py
@Time : 2020/03/29 11:43:27
@Author : Stone_Hou
@Version : 1.0
@Contact : xiangxing985529@163.com
@License : (C)Copyright 2010-2020, Stone_Hou
@Desc : None
'''
# here put the import lib
# Practice #01
print('He said,"I\'m... | [
"xiangxing985529@163.com"
] | xiangxing985529@163.com |
d2281b34b9b3168f241bc8f861adadeb4a0716cc | da4303d7ee77310c5a21997f1bfe0746affa3e0c | /papers/resources/best.py | 395be833ef41ff557a22bc6013b545f7f5ac067d | [
"MIT"
] | permissive | AaronCWacker/copycat | 44bf0626965cfba12c304d9e44fe848ce0791cc7 | c05e3e832ce614e8ccea9b47cb1d3ac31d2b18c2 | refs/heads/master | 2022-04-09T03:45:41.076460 | 2020-03-26T11:39:11 | 2020-03-26T11:39:11 | 378,260,131 | 1 | 0 | MIT | 2021-06-18T20:38:32 | 2021-06-18T20:38:31 | null | UTF-8 | Python | false | false | 577 | py | def _working_best(temp, prob):
s = .5 # convergence
r = 1.05 # power
u = prob ** r if prob < .5 else prob ** (1/r)
return _weighted(temp, prob, s, u)
def _soft_best(temp, prob):
s = .5 # convergence
r = 1.05 # power
u = prob ** r if prob < .5 else prob ** (1/r)
return _weighted(temp... | [
"lucassaldyt@gmail.com"
] | lucassaldyt@gmail.com |
1941bd362fac4df26ea58880cfaabd40d3057590 | 4ece3041f2ed0cd312dc70fd3c7c240924dbb6ae | /tests/test_cursor.py | 51eb95ae71efcaa65788113e1657e63128e0a442 | [
"MIT"
] | permissive | ivssh/PyAthena | 175c5dfff0289a7ceccfe9a47ac490985535f669 | 156c51f19b46ea2f89612b3383937d78942bc990 | refs/heads/master | 2020-03-27T13:07:58.417397 | 2018-07-21T13:08:41 | 2018-07-21T13:08:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,391 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
import contextlib
import re
import time
import unittest
from concurrent import futures
from concurrent.futures.thread import ThreadPoolExecutor
from datetime import date, datetime
from decimal import Decimal
from ran... | [
"laughingman7743@gmail.com"
] | laughingman7743@gmail.com |
c29a0940b61699c23849ff51675b3dd3b4b3a82f | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/gui/scaleform/daapi/view/lobby/boosters/__init__.py | 8931986bafcc9a61774fc38ab7ba64eb901eeea7 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 414 | py | # 2015.11.10 21:26:35 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/boosters/__init__.py
__author__ = 'i_malashenko'
# okay decompyling c:\Users\PC\wotsources\files\originals\res\scripts\client\gui\scaleform\daapi\view\lobby\boosters\__init__.pyc
# decompiled 1 files: 1... | [
"info@webium.sk"
] | info@webium.sk |
908b043137e9fe004778131309d0327786b0e893 | a3635ea0c475cc7e4655ed786e870361eede6464 | /format/_fix_incomplete_iso9660/directory_record.py | 1d2a9176ba8e8af6f6fc5efb0ddb612f1b9995c8 | [] | no_license | Nicba1010/PS-Tools | 91802ce37309ef0dcd52771a8c2c0c3c2f6c4a8b | 2c2b7a83b4bea39be4459bb980adfd37bd44c2be | refs/heads/master | 2020-04-14T00:25:09.976960 | 2019-03-05T09:14:12 | 2019-03-05T09:14:12 | 163,532,843 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,805 | py | from datetime import datetime
from aenum import IntFlag
from format._fix_incomplete_iso9660.errors import InvalidISOException
from format._fix_incomplete_iso9660.utils import unpack_both_endian_u32, unpack_directory_record_datetime, \
unpack_both_endian_u16, unpack_str_a
from utils.utils import unpack_u8
class ... | [
"nicba1010@gmail.com"
] | nicba1010@gmail.com |
1763030ef95c32889f4303497003b01b717874d2 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Fz92j7nQEkoRXhRE7_8.py | 4c783b20eedaf0eec0f44af589ca079bcadde34b | [] | 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,021 | py | """
A frog wants to cross a river. Unfortunately, he can't jump across in a single
leap. Luckily, there are `n` stones in the river.
The frog can jump from the near bank to stone `1` and from stone `n` to the
far bank. He can also jump from stone to stone, forward and backward. However,
on each stone, a number `j` ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f9b655af2e1bbd8ac1b50e7fc3c73ce38f411749 | 19da1a56f137a08772c347cf974be54e9c23c053 | /lib/adafruit_lidarlite.py | 1893b50a7169d64063eb64031a74fdd87eb79bd7 | [] | no_license | mk53202/mk53202-timeclock-pyportal | d94f45a9d186190a4bc6130077baa6743a816ef3 | 230a858d429f8197c00cab3e67dcfd3b295ffbe0 | refs/heads/master | 2021-02-04T05:38:25.533292 | 2020-02-27T22:45:56 | 2020-02-27T22:45:56 | 243,626,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,421 | py | # The MIT License (MIT)
#
# Copyright (c) 2018 ladyada for adafruit industries
#
# 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 ri... | [
"mkoster@stack41.com"
] | mkoster@stack41.com |
1e03fdfc67c1b1e1fe60f6a7d9f6981745a37274 | 2337351b228818e41be3002bd38f68f77c2aa074 | /tests/test_hash.py | c10a96478165e914236a8897a388fe57add9eb5a | [
"BSD-3-Clause"
] | permissive | nocproject/noc | 57d40c680a1499374463e472434f9595ed6d1374 | 6e6d71574e9b9d822bec572cc629a0ea73604a59 | refs/heads/master | 2023-08-31T01:11:33.544573 | 2023-08-30T17:31:11 | 2023-08-30T17:31:11 | 107,815,776 | 105 | 33 | BSD-3-Clause | 2023-07-31T07:57:45 | 2017-10-21T21:04:33 | Python | UTF-8 | Python | false | false | 1,914 | py | # ----------------------------------------------------------------------
# Test noc.core.hash functions
# ----------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
#... | [
"dv@nocproject.org"
] | dv@nocproject.org |
733ba5fb18c29c246887a964601e46b3548dc780 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/rfRecon/591-tideGauge.py | 2207dc765cefb00abc41e7f582bf2c7c7e84a698 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,696 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 7 11:39:00 2020
This program is designed to reconstruct
daily max surge using RF
@author: Michael Tadesse
"""
def reconstructRF():
"""
run KFOLD method for random forest regression
"""
#import packages
import os
import numpy as np
import pan... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
5e8646400ae70762ff471fffe0fd4633446384d0 | 134ff3c0719d4c0022eb0fb7c859bdbff5ca34b2 | /desktop/core/ext-py/django-extensions/django_extensions/management/commands/create_app.py | 3fcf7e6053b65dd8588a8dfd011af9aec35762c9 | [
"Apache-2.0"
] | permissive | civascu/hue | 22637f13a4cfc557716557661523131b6ac16da4 | 82f2de44789ff5a981ed725175bae7944832d1e9 | refs/heads/master | 2020-03-31T01:50:39.449966 | 2010-07-21T01:05:50 | 2010-07-21T01:07:15 | 788,284 | 0 | 0 | Apache-2.0 | 2019-02-04T07:03:12 | 2010-07-21T07:34:27 | Python | UTF-8 | Python | false | false | 3,259 | py | import os
import re
import django_extensions
from django.core.management.base import CommandError, LabelCommand, _make_writeable
from optparse import make_option
class Command(LabelCommand):
option_list = LabelCommand.option_list + (
make_option('--template', '-t', action='store', dest='app_template',
... | [
"bcwalrus@cloudera.com"
] | bcwalrus@cloudera.com |
585762a8c98cac23f2e45d296b0bc57b3b31cfe9 | 5a25f4f5f9c7cba03f9b5848eafc01a760c88768 | /analysis/bsens_cleanest_diff_zooms.py | 86b02dd38170047b195bc6e7a5b624af3f12c0d6 | [] | no_license | ALMA-IMF/reduction | b3579a548fe20193b807a7415a040f351c879beb | de606cc6bc542f088223ce84082ff333739c9007 | refs/heads/master | 2023-06-22T13:21:13.841999 | 2023-06-12T09:17:50 | 2023-06-12T09:17:50 | 115,018,799 | 9 | 29 | null | 2023-06-12T09:17:51 | 2017-12-21T15:13:55 | Python | UTF-8 | Python | false | false | 7,898 | py | import requests
import re
import numpy as np
from astropy import table
import io
import time
from astropy import units as u
import radio_beam
import regions
from astropy.io import fits
from astropy.visualization import simple_norm
from astropy import stats, convolution, wcs, coordinates
from spectral_cube import Spectr... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
4b858fafb09c3c580a3b53f9df313e263ed7fe98 | 63efb13760eabfc09c288d29264adfff0da6622a | /LeetCode/54_spiral_matrix.py | 334481a1decda2f1c02166c8e4cbcbdeaeb8d063 | [] | no_license | KKosukeee/CodingQuestions | 59f0002ace13ebbe3a4a36976277bcb0d3766dbd | 01fe893ba2e37c9bda79e3081c556698f0b6d2f0 | refs/heads/master | 2020-05-16T04:22:31.578974 | 2020-03-30T00:27:51 | 2020-03-30T00:27:51 | 182,775,403 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,600 | py | """
Solution for 54. Spiral Matrix
https://leetcode.com/problems/spiral-matrix/
"""
class Solution:
"""
Runtime: 36 ms, faster than 77.01% of Python3 online submissions for Spiral Matrix.
Memory Usage: 13.3 MB, less than 5.18% of Python3 online submissions for Spiral Matrix.
"""
def spiralOrder(sel... | [
"kousuke.newlife@gmail.com"
] | kousuke.newlife@gmail.com |
18375f5328d2d152a2bf52b751758c80aeef94a3 | 6d69b249a81e076d79787dd08eb8957908052052 | /wiktionary_bot/cron/send_daily_word.py | 18e6b326e27d746aea7ad179a8240945e26ae9f0 | [] | no_license | 2vitalik/wiktionary | 02ee1f1327c3b82fc7b4d7da12083b1431b1eb8b | 8edae2f7dcf9089084c5ce7033c4fb0b454f4dfa | refs/heads/master | 2023-02-06T11:28:41.554604 | 2023-02-05T22:49:01 | 2023-02-05T22:49:01 | 121,025,447 | 7 | 2 | null | 2021-10-13T17:36:32 | 2018-02-10T15:06:24 | Lua | UTF-8 | Python | false | false | 755 | py | import sys; sys.path.append('../..')
from datetime import datetime
import telegram
from core.conf import conf
from libs.utils.io import json_load
from wiktionary_bot.src.semantic import Reply
from wiktionary_bot.src.slack import slack
from wiktionary_bot.src.utils import send
@slack('send_daily_word')
def send_dail... | [
"2vitalik@gmail.com"
] | 2vitalik@gmail.com |
e1311a382dc1bb67bb92ed7488178fb8085c06ea | a1bffcd8854e1843e56bb812d4d83b3161a5211e | /tests/unit/modules/network/fortios/test_fortios_firewall_ip_translation.py | 816db03ac6fbbe071fa2513e4ba6324bf05ad352 | [] | no_license | goneri/ansible.community | 1a71f9d98c164b77f8ed2ed7f558b4963005ff8f | f26f612dd0a3154050d90b51a75502018c95f6e4 | refs/heads/master | 2020-12-29T07:47:35.353515 | 2020-01-22T17:43:18 | 2020-01-22T17:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,273 | py | # Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
6ad6c28a4be99b031ff33625ec068853131f61f7 | 445892d8512378aea29fe3ac32289193a74f1ad0 | /16.py | 067d858cef42ec88793d5d02f238fbe4180e54a9 | [] | no_license | nemec/euler | 4310ca29869a253b34860df133f5f41e5b2cf7ae | d566a453dbd2ae50e1e450b2e43dc885015ce48d | refs/heads/master | 2021-01-19T06:31:40.072085 | 2012-01-07T22:54:16 | 2012-01-07T22:54:16 | 3,127,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | ## Project Euler
## Problem 16
##
## 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
##
## What is the sum of the digits of the number 2^1000?
print "Euler answer is:", sum(map(int, str(pow(2, 1000))))
| [
"djnemec@gmail.com"
] | djnemec@gmail.com |
da353a032312bc515f977a62039f08b39d156cdb | 32a6db4d595ef4d308ac0e2ef37c57f65a777bfc | /ZYCami_00_彭小钗/TestCase01/test_prime02.py | 6ed9b88761b6de280907d63f3a4961a0cf453136 | [] | no_license | wangdan377/Python_UI | 1c8f0b3d46272d72f849f242c39e035c6b20720b | 6c3e23b301ffe14cbd27a5211e48c8f79169dcf9 | refs/heads/master | 2023-02-17T02:37:34.353523 | 2021-01-19T11:58:22 | 2021-01-19T11:58:22 | 311,855,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,236 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from ddt import ddt,data,unpack
from Public.Function import *
from Public import Caplictily
from PO.login_element import Login_Page
from PO.Prime_Element import Prime_Page
from PO.Edit_Element import Edit_Page
from PO.Activation_page import Activation_Page
from Data.data import... | [
"1065913054@qq.com"
] | 1065913054@qq.com |
de53abff3d0ed3259297bf19dad05ed4f09e5723 | b8cc6d34ad44bf5c28fcca9e0df01d9ebe0ee339 | /Python100例/Python练习实例87.py | eb040332bbd64b5daa5056ab2b402bd6c2c73df0 | [] | no_license | python-yc/pycharm_script | ae0e72898ef44a9de47e7548170a030c0a752eb5 | c8947849090c71e131df5dc32173ebe9754df951 | refs/heads/master | 2023-01-05T06:16:33.857668 | 2020-10-31T08:09:53 | 2020-10-31T08:09:53 | 296,778,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | '''
题目:回答结果(结构体变量传递)。
程序分析:无。
'''
if __name__ == '__main__':
class Student():
x = 0
c = 0
def f(stu):
stu.x = 20
stu.c = 'c'
a = Student()
a.x = 3
a.c = 'a'
f(a)
print(a.x,a.c)
| [
"15655982512.com"
] | 15655982512.com |
e7ddeda006ae2b971e70239a650e89491dbacd25 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/comp/trnsmtderrpkts1h.py | 9927dce493959ad637ac5073e7dc30002187f9e6 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 20,524 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
1a874b1f92374058db5c3ca342920bc09dacd61a | aea8fea216234fd48269e4a1830b345c52d85de2 | /fhir/resources/STU3/deviceusestatement.py | 7db6646ba3f74ade538fe51cd3a2428909343d91 | [
"BSD-3-Clause"
] | permissive | mmabey/fhir.resources | 67fce95c6b35bfdc3cbbc8036e02c962a6a7340c | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | refs/heads/master | 2023-04-12T15:50:30.104992 | 2020-04-11T17:21:36 | 2020-04-11T17:21:36 | 269,712,884 | 0 | 0 | NOASSERTION | 2020-06-05T17:03:04 | 2020-06-05T17:03:04 | null | UTF-8 | Python | false | false | 6,807 | py | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/DeviceUseStatement
Release: STU3
Version: 3.0.2
Revision: 11917
Last updated: 2019-10-24T11:53:00+11:00
"""
import sys
from . import domainresource
class DeviceUseStatement(domainresource.DomainResource):
""" Record of use of a device... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
5efcbd8e26a79950b89b0c5a334dd80056969df4 | fe109bdb960bfbf7255ad89eef862f0811d613b1 | /action_plugins/storage.py | dfb35a8070ae2f15d6ea1bc63b1ad6c142a46981 | [
"Apache-2.0"
] | permissive | FlorianHeigl/ansible-role-storage | 7b4ee7606d30cd75d1467cedff474b048682e28d | 327c522dff56bb837fc239c9da77eeef4ec283a0 | refs/heads/master | 2023-03-19T11:53:51.827490 | 2019-09-13T11:36:20 | 2019-09-13T11:36:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,267 | py | # Copyright (c) 2018, Red Hat, 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 requir... | [
"geguileo@redhat.com"
] | geguileo@redhat.com |
37c42c2db2f6ccdc031e2a57d830f319f7285191 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/452/usersdata/278/104002/submittedfiles/avenida.py | b830fcc4174b52263fd249e580b8cecb56557fb8 | [] | 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 | 937 | py | # -*- coding: utf-8 -*-
m = int(input('Digite o número de quadras no sentido Norte-Sul: '))
while (m<2 or m>1000):
m = int(input('Digite o número de quadras [2,1000] no sentido Norte-Sul: '))
n = int(input('digite o número de quadras no sentido Leste-Oeste: '))
while (n<2 or n>1000):
n = int(input('digite o núm... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a7c2ca14b118fd55db1f803488e33a2b02b59688 | 209c2dd5f0ae41ccd41d84e8c86fe4a7e3321715 | /tests/test_services.py | 4ff7b8ac73dbcb8b987af56b24d2064124738a01 | [
"MIT"
] | permissive | vladimirmyshkovski/django-url-shorter | 4d17b165c14b8584bdabc0a60bd6cab03f88d2dd | dcea9f77af951ec3cfc41fbbc4bab951ccab7f41 | refs/heads/master | 2021-09-15T13:02:59.286830 | 2018-06-02T16:59:59 | 2018-06-02T16:59:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | from django.test import TestCase
from url_shorter import services
from url_shorter import models
from . import factories
class TestCreateNewURL(TestCase):
@classmethod
def setUpTestData(cls):
#cls.new_url = factories.URLFactory()
cls.user = factories.UserFactory()
cls.new_url = servi... | [
"narnikgamarnikus@gmail.com"
] | narnikgamarnikus@gmail.com |
f5aa734ec84bd5ce364e5dd9f8182e2fe20138ce | 2a2b26f3fbdd16d99fd65f390acc37cff6783805 | /backend/tin_marin_23659/urls.py | e29fe74e819d07acbddd4a80408b93aca7f3153f | [] | no_license | crowdbotics-apps/tin-marin-23659 | fb6b8dcb98c069a6543039bd95b2c821eed39300 | f50588680e57d8840dc1e406d5ac5171d67f3c54 | refs/heads/master | 2023-02-09T00:02:16.087858 | 2021-01-03T22:16:05 | 2021-01-03T22:16:05 | 326,510,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,973 | py | """tin_marin_23659 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Cla... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2ccaa438cc6a3f06783e2f09ad8b0a66adeb5558 | a59dcdb8e8b963a5082d4244889b82a4379510f6 | /bemani/client/jubeat/clan.py | e16cae8c7d9cbb57b4e2a24a5addb98913094f59 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | vangar/bemaniutils | 9fdda035eb29e5e0b874d475fdbfdc8b99aeb003 | 284153ef2e2e40014656fbfeb254c05f3a8c61e8 | refs/heads/trunk | 2023-04-04T04:00:21.088088 | 2023-02-17T03:32:27 | 2023-02-17T03:40:07 | 332,388,243 | 1 | 0 | null | 2021-01-24T07:07:34 | 2021-01-24T07:07:33 | null | UTF-8 | Python | false | false | 33,079 | py | import random
import time
from typing import Any, Dict, List, Optional
from bemani.client.base import BaseClient
from bemani.common import CardCipher, Time
from bemani.protocol import Node
class JubeatClanClient(BaseClient):
NAME = "TEST"
def verify_shopinfo_regist(self) -> None:
call = self.call_no... | [
"dragonminded@dragonminded.com"
] | dragonminded@dragonminded.com |
220733b7bec929fe2135f19393091bb7b9da15c5 | cbf9f600374d7510988632d7dba145c8ff0cd1f0 | /abc/187/d.py | d87bf83a875df88d7799159669ee7b2738c9db82 | [] | no_license | sakakazu2468/AtCoder_py | d0945d03ad562474e40e413abcec39ded61e6855 | 34bdf39ee9647e7aee17e48c928ce5288a1bfaa5 | refs/heads/master | 2022-04-27T18:32:28.825004 | 2022-04-21T07:27:00 | 2022-04-21T07:27:00 | 225,844,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | import heapq
n = int(input())
aoki = 0
takahashi = 0
eva_heap = []
for i in range(n):
a, b = map(int, input().split())
aoki += a
eva_heap.append([-1*(2*a+b), a, b])
heapq.heapify(eva_heap)
for i in range(n):
pop = heapq.heappop(eva_heap)
takahashi += pop[1] + pop[2]
aoki -= pop[1]
if tak... | [
"sakakazu2468@icloud.com"
] | sakakazu2468@icloud.com |
24ccc45f17a0ad0467b37575e53011fbc3fd29dc | dffbcc5d83153dd8b3ca91f91fd80311b266c586 | /lesweets/templatetags/extratags.py | f13d381679ba34bc506d684c5d01df3c0a206616 | [] | no_license | jayoshih/activity-builder | 0d2aa57a55266cc9d4abd554f367cdbee855195e | 3b76a670e0365458f9422efcc2cc5b354b848074 | refs/heads/master | 2021-05-01T22:09:49.078050 | 2018-02-24T05:27:23 | 2018-02-24T05:27:23 | 120,987,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | import json
import re
from django import template
from django.template.defaultfilters import stringfilter
register = template.Library()
@register.filter(is_safe=True)
def parsestory(value):
story = value["story"]
MATHLIBS_REGEX = r'(\[([^\]]+)\])'
for match in re.findall(MATHLIBS_REGEX, story):
t... | [
"jordanyoshihara@gmail.com"
] | jordanyoshihara@gmail.com |
ac3585e83cbdf80f4e384846177b3ce97a51323c | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/f68bf254a5a9503bbaef64e23bd53cd85527d20e-<_sort_labels>-bug.py | 2f291b6818e245eb814d0a21821e59925da51495 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | def _sort_labels(uniques, left, right):
if (not isinstance(uniques, np.ndarray)):
uniques = Index(uniques).values
l = len(left)
labels = np.concatenate([left, right])
(_, new_labels) = sorting.safe_sort(uniques, labels, na_sentinel=(- 1))
new_labels = _ensure_int64(new_labels)
(new_left,... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
7826e402c224ee5ded49a02aeca550616e2b3421 | d12946acff8dab7127720e9f7393acc6b6c22daf | /ngcasa/flagging/manual_unflag.py | 2399198632f1ba319a8d0afd754504f72054063f | [
"Apache-2.0"
] | permissive | keflavich/cngi_prototype | ff84c6d36e823148d3e21d6c2a2eb8298893a5da | cf6ea38a8dd7219c351bcc5a10e9a38dcf733ae5 | refs/heads/master | 2023-02-01T09:21:47.847739 | 2020-12-14T21:03:16 | 2020-12-14T21:03:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | # Copyright 2020 AUI, Inc. Washington DC, USA
#
# 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 ... | [
"ryanraba@gmail.com"
] | ryanraba@gmail.com |
db411ddca642519eaddf1710497d10f4c1122f36 | c77148a25435b50a35fceab36112fba18dbb0866 | /backup/Jun17/units/TatsuNullifier.py | f22337f88388c799dec174265e8621b1e779f14b | [] | no_license | SozBroz/PrismataBot | 51fbecf90950d13eb52606a5b18984b5474746ba | f375ca8dc396abbca4134f70cb262fc78b90a17e | refs/heads/master | 2020-05-31T13:37:50.102010 | 2019-06-06T02:48:01 | 2019-06-06T02:48:01 | 136,826,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | #!/usr/bin.python3.6
class TatsuNullifier:
def __init__(self,owner):
self.owner=owner
self.lifespan=-1
self.frontline=False
self.cooldown=1
self.defaultBlocking=False
self.assignedBlocking=False
self.health=2
self.fragile=False
self.attack=2
self.startTurnDict={
"attack":2
}
self.onClickDict=... | [
"Phil@oc1140302110.ibm.com"
] | Phil@oc1140302110.ibm.com |
123e7e6a2f7aed9ff30733adf3eddbf3b0ea4f4f | 9131dd03ff2880fca2a5883572784f8e51046e41 | /env/lib/python3.6/site-packages/clicksend_client/models/fax_message_collection.py | 92d275d5d89e723c11c3188f79eed1f58a23cad1 | [] | no_license | aviadm24/coronaap | fe10619ae42a8c839cd0a2c2c522187c5f21fbc7 | 5608c2d77cb3441b48ba51da04c06a187fb09488 | refs/heads/master | 2022-12-09T21:35:17.179422 | 2021-01-28T08:21:49 | 2021-01-28T08:21:49 | 249,938,200 | 0 | 0 | null | 2021-09-22T18:47:51 | 2020-03-25T09:36:10 | JavaScript | UTF-8 | Python | false | false | 4,785 | py | # coding: utf-8
"""
ClickSend v3 API
This is an official SDK for [ClickSend](https://clicksend.com) Below you will find a current list of the available methods for clicksend. *NOTE: You will need to create a free account to use the API. You can register [here](https://dashboard.clicksend.com/#/signup/step1... | [
"aviadm24@gmail.com"
] | aviadm24@gmail.com |
bf6c54d9c768f84150459c9cd82e12ccf61504a4 | bc441bb06b8948288f110af63feda4e798f30225 | /translate_sdk/model/msgsender/send_message_request_pb2.pyi | 1a877b900d8b0e65122b3d5884b44703adb7b282 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.message import (
Message as google___protobuf___message___Message,
)
from translate_sdk.model.msgsender.send_message... | [
"service@easyops.cn"
] | service@easyops.cn |
cf7f4d296d73068a1dc89316da6367097e02ebb5 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_103/ch171_2020_06_21_22_12_16_899924.py | 135086fcb73f5f97d48136cc47c30773eeb720b1 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | class Carrinho:
def __init__(self,adiciona,total_do_produto):
self.adiciona = adiciona
self.total_do_produto= {}
def adiciona(self,nome_do_produto,preco):
self.nome_produto= nome_produto
self.preco = preco
if nome_produto not in total_do_produto:
... | [
"you@example.com"
] | you@example.com |
af095b8c5a638874a1b7bd9875f1dbdc6558e8d1 | ee00ebe5e71c36b05fbff993b19e9723b963313f | /1086_High_Five.py | 54383bdd24da9e14847397d5e189ffb6be5523ec | [] | no_license | 26XINXIN/leetcode | f365560d93604a28abf399707b333f3c11f924ec | 78ed11f34fd03e9a188c9c6cb352e883016d05d9 | refs/heads/master | 2021-06-28T16:31:45.103879 | 2020-09-19T20:33:55 | 2020-09-19T20:33:55 | 144,975,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | from heapq import heappush, heappop
class Solution:
def highFive(self, items: List[List[int]]) -> List[List[int]]:
scores = dict()
for sid, score in items:
if sid not in scores:
scores[sid] = [-score]
else:
heappush(scores[sid], -score)
... | [
"yangxin.nlp@bytedance.com"
] | yangxin.nlp@bytedance.com |
9ecd94aa5b45d765eb89069280cf0292db75b096 | 7f68bbb3fd328a4d6bbabecb44305987d8cbbfc4 | /algorithm/codexpert/e0수열.py | e730b33a25301642f929bd741f4f6f0672570f2f | [] | no_license | seunghoon2334/TIL | c84f9f9e68c8ccc7a1625222fe61f40739774730 | 51cfbad2d9b80a37b359716fca561c2a5c5b48b3 | refs/heads/master | 2022-12-18T18:20:19.210587 | 2019-11-26T03:14:23 | 2019-11-26T03:14:23 | 162,101,369 | 0 | 0 | null | 2022-11-22T03:59:16 | 2018-12-17T08:51:53 | C | UTF-8 | Python | false | false | 535 | py | import sys
sys.stdin = open("e0수열.txt")
n = int(input())
nums = list(map(int, input().split()))
result1 = 0
cnt1 = 1
for i in range(n-1):
if nums[i]<=nums[i+1]:
cnt1 += 1
else:
if cnt1>result1:
result1 = cnt1
cnt1 = 1
if cnt1>result1:
result1 = cnt1
result2 = 0
cnt2 = ... | [
"gogo12394@naver.com"
] | gogo12394@naver.com |
dde99daa877a40e2e9b98354706c64fd41061c61 | 470dfeafdfe41ca8456093f59d589bee83718dfe | /aliyun-python-sdk-cloudphoto/aliyunsdkcloudphoto/request/v20170711/SearchPhotosRequest.py | 8d27f029acb8b75776ce1da4e4ab289282c98f03 | [
"Apache-2.0"
] | permissive | lihongda1998/aliyun-openapi-python-sdk | f475356f1c6db2f94db2e8b24558db79109619a6 | c6ff1bcf7381b48dac3e6ac4203741e902e3545a | refs/heads/master | 2021-07-02T18:42:24.943017 | 2017-09-19T07:10:56 | 2017-09-19T07:10:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | 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... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
aabebdb84e10f2ef4a37756005f0313ae8f8a5bb | b4d30f82a6842d57dd01d231799c2199be8230a3 | /hello_world_tweepy.py | e642a0e6094d115f5f15a4467098831e8c2c17f9 | [
"MIT"
] | permissive | farisachugthai/instapy | fbe33d6cad744cb4cb06ccf219b9682e4ff3100e | 0adcbe9d3b24199519e103ce9e7ee44f7aa402f0 | refs/heads/master | 2022-11-23T20:36:02.655554 | 2020-07-26T01:05:50 | 2020-07-26T01:05:50 | 280,748,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,392 | py | #!/usr/bin/env python
"""A basic script show casing how to use tweepy.
====================
Tweepy functionality
====================
Over time, the names of various Twitter concepts have evolved, some old names are still used in Tweepy. So keep in mind that, in the context of this article, these equivalences hold:
... | [
"farischugthai@gmail.com"
] | farischugthai@gmail.com |
5fbd26c9ee1800f928da0cfcd0d869110f76344a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2558/60619/285468.py | b9e5d0b42906f6129d626a05905013c89f266675 | [] | 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 | 367 | py | t = int(input())
for ind in range(t):
s = input()
if s == "}{{}}{{{":
print(3)
elif s == "{{}}}}":
print(1)
elif s == "{{}{{{}{{}}{{" or s == "{{}{{{}{{}{" or s == "}{{}}{{{{":
print(-1)
elif s == "{{{{}}}}":
print(0)
elif s == "{{{{}}}}}{" or s == "{{}{{{}{{}}{{}... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
cc7c473f7472d2a40fcd7d825f9ea7caa08f5ced | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_Difference/model_control_one_enabled_Difference_PolyTrend_Seasonal_DayOfMonth_NoAR.py | d4e66886be254d972152d5397cca35ab358649bb | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 164 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Difference'] , ['PolyTrend'] , ['Seasonal_DayOfMonth'] , ['NoAR'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
a92d69aa70529fdc9f97b2e8eb87db38dc3380ca | 422c9cc1c5ef7eba24610e66d6a74ec2e16bf39e | /devel_isolated/rosunit/lib/python2.7/dist-packages/rosunit/__init__.py | c89bb390f5366f452b27f97c39bcab7180fd0016 | [] | no_license | twighk/ROS-Pi3 | 222c735d3252d6fce43b427cdea3132f93025002 | 9f2912c44ae996040f143c1e77e6c714162fc7d2 | refs/heads/master | 2021-01-01T05:16:20.278770 | 2016-05-08T19:24:15 | 2016-05-08T19:24:15 | 58,306,257 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/opt/ros_catkin_ws/src/ros/rosunit/src".split("... | [
"twighk@outlook.com"
] | twighk@outlook.com |
a25d4a8e8452c08db22e1d70eef2fffd07c537c2 | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/dbformariadb/latest/firewall_rule.py | dd52b6b640e5bb747bacd94f8df589763e677d12 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,897 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
f24b30682ffecb2b5a32830e62d9b425c521d277 | 54553be3dda33ce7865f28a2e81b4e5ae72dac7e | /synapse/lib/sqlite.py | 79a978392421c2632893a542c0bba3e76b008e20 | [
"Apache-2.0"
] | permissive | mari0d/synapse | 52d9402ed80ca80d1f5185dccc7fd6cb2b812feb | 4fd8b345ddcd46fe2c780caa582d1263fbf172ee | refs/heads/master | 2021-08-30T04:23:41.137920 | 2017-12-14T19:51:14 | 2017-12-14T19:51:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import sqlite3
import synapse.lib.db as s_db
'''
Integration utilities for sqlite db pools.
'''
# turn on db cache sharing
sqlite3.enable_shared_cache(1)
def pool(size, path, **kwargs):
'''
Create an sqlite connection pool.
Args:
size (int): Number of connections in the pool
'''
def cto... | [
"invisigoth.kenshoto@gmail.com"
] | invisigoth.kenshoto@gmail.com |
c65063c16efbcaef1560909ad2312ed2b5c5d158 | 7066555f4c2ff9b405754d2e793b97bf04b6ab98 | /jianzhi-offer/04.py | 9043030e7a970938f899c10b58708952719fc874 | [] | no_license | yangtao0304/hands-on-programming-exercise | c0d0fe324ffaf73c7b4c45aba721a245a8cc9ce2 | cc7740026c3774be21ab924b99ae7596ef20d0e4 | refs/heads/master | 2020-09-11T02:05:51.305196 | 2020-03-19T03:45:53 | 2020-03-19T03:45:53 | 221,904,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | class Solution:
def findNumberIn2DArray(self, matrix: List[List[int]], target: int) -> bool:
R = len(matrix)
if R == 0:
return False
C = len(matrix[0])
r, c = 0, C-1
while 0 <= r < R and 0 <= c < C:
if matrix[r][c] > target:
c -= 1
... | [
"im.yangtao0304@gmail.com"
] | im.yangtao0304@gmail.com |
7f8c4b566d38a4e701f4b0ef300ea8cc157b73d1 | 009df7ad499b19a4df066160cf0c7d8b20355dfb | /src/the_tale/the_tale/game/companions/abilities/relations.py | 7ac90d034fcb5fb146883eb23f31cb9e408467ca | [
"BSD-3-Clause"
] | permissive | devapromix/the-tale | c0804c7475e877f12f29444ddbbba025561d3412 | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | refs/heads/develop | 2020-03-28T20:26:30.492292 | 2018-10-07T17:32:46 | 2018-10-07T17:32:46 | 149,070,887 | 1 | 0 | BSD-3-Clause | 2018-10-07T17:32:47 | 2018-09-17T04:57:50 | Python | UTF-8 | Python | false | false | 6,846 | py |
import smart_imports
smart_imports.all()
class METATYPE(rels_django.DjangoEnum):
description = rels.Column()
records = (('TRAVEL', 0, 'дорожная', 'влияет на скорость путешествия героя'),
('BATTLE', 1, 'боевая', 'влияет на битвы'),
('MONEY', 2, 'денежная', 'влияет на деньги и п... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
bf8f80474745344c894d3080d2ebb03d8384fbdf | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /nemo/collections/nlp/modules/common/megatron/adapters/__init__.py | 12c02a5e041c8959108c66bb031d366b7d346779 | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 625 | py | # coding=utf-8
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
5759a5b0fc9daa4829c1e47292239d9b10d0c643 | 60223e7376275631710d5ff8231e6cab23b383bb | /sportsbet/registration/migrations/0001_initial.py | 7db1135783099878ca9b97c607d7ae98abaaabab | [] | no_license | sangeeth-subramoniam/sportsbet | 5f07a8f8013cf1bcf88d7a2ef9ffa26ce8c24eb8 | d41af45bc49c0ac1c62d000026b2d7f0684369a6 | refs/heads/main | 2023-08-24T06:08:01.980781 | 2021-10-27T05:15:55 | 2021-10-27T05:15:55 | 418,737,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | # Generated by Django 3.2.8 on 2021-10-19 02:32
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"s-sangeeth-k@sicis.co.jp"
] | s-sangeeth-k@sicis.co.jp |
3f30af29870f82c99f507dfb86f222a60a8a626a | e7b7505c084e2c2608cbda472bc193d4a0153248 | /LeetcodeNew/python/LC_813.py | f7f4a9deb62825b29cd55f0a2eebd63f5687bf09 | [] | no_license | Taoge123/OptimizedLeetcode | 8e5c1cd07904dfce1248bc3e3f960d2f48057a5d | 3e50f6a936b98ad75c47d7c1719e69163c648235 | refs/heads/master | 2023-02-27T21:13:40.450089 | 2023-02-07T04:11:09 | 2023-02-07T04:11:09 | 170,044,224 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py |
"""
X X X X X [X X i]
dp[i][K] : the maximum of sum of the average of the k groups
dp[j][K-1] + avg(j+1, i):
"""
import collections
class SolutionTony:
def largestSumOfAverages(self, nums, k: int) -> float:
memo = {}
return self.dfs(nums, 0, k, memo)
def dfs(self, nums, i, k, memo):
... | [
"taocheng984@gmail.com"
] | taocheng984@gmail.com |
cba321e8cc0e76f36c27b898e78e56c7ba09dde5 | 9cfdfe633dfb2755955f9d356fdd0a9601089955 | /accounts/forms.py | ce49fb97a27747bb33ce17c2986e8f8c9c77e3f1 | [] | no_license | DimAntDim/ResumeBuilder | cec597ba4b857d98147e2f5f6831bd3c93c83c80 | 0507d5d9c44936d892df280015f7c6d8e630f55b | refs/heads/main | 2023-08-21T08:03:43.327868 | 2021-11-03T19:43:04 | 2021-11-03T19:43:04 | 394,882,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | from .models import Profile
from django import forms
from django.contrib.auth import get_user_model
UserModel = get_user_model()
class ProfileForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['first_name'].widget.attrs.update({'class': 'inp... | [
"66394357+DimAntDim@users.noreply.github.com"
] | 66394357+DimAntDim@users.noreply.github.com |
baa4b16248b44f4c2c45800896451fa44644c5a4 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /9AMT6SC4Jz8tExihs_9.py | bb2c304e4cf2aa2ec2362ec9ace44483c5877dc3 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py |
def countStrings(n):
x=[]
x.append(0)
p = (1 << n)
for i in range(1, p):
if ((i & (i << 1)) == 0):
x.append(i)
return x
def generate_nonconsecutive(n):
res,c='',n
for i in countStrings(n):
a=bin(i).replace('b','')
if len(a)<c:
b='0'*(c... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6cefd5f8948ce9a2d3b3df747ce88b2daa6c80b6 | 741c5c70bf4a0adb05db6b0777c8d07e28eb9cf6 | /bin/easy_install-3.4 | 1f532eda7ff95e38c48cd8828a33ad5a0823bea9 | [] | no_license | andybp85/hyLittleSchemer | e686d2dc0f9067562367ea1173f275e8e2d2cb85 | af5cb6adf6a196cc346aa7d14d7f9509e084c414 | refs/heads/master | 2021-01-19T07:48:31.309949 | 2015-01-04T00:57:30 | 2015-01-04T00:57:30 | 28,496,304 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | 4 | #!/Users/andrew/dev/python/virtualenvs/HY3/bin/python3.4
# -*- 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())
| [
"andy@youshallthrive.com"
] | andy@youshallthrive.com |
5ac5bca329b95a6f0263befae741e5d9b76a1eb7 | 14bd4b2131dfc1a7a4c7b2518e694f7817763ecf | /core/migrations/0005_auto_20180107_1711.py | 9f3c5f53e6d48c581f5e4c1af22c3e3c30fb80d8 | [] | no_license | itkartell/vozhakov | ea5ca11bd5aa2a2de2d7fc69d39c569ddaaaaac4 | dcf516a476920a5d3313ec1a246c3b980b57c0c7 | refs/heads/master | 2021-05-09T02:02:32.328687 | 2018-01-21T22:20:54 | 2018-01-21T22:20:54 | 119,194,706 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | # Generated by Django 2.0 on 2018-01-07 17:11
import ckeditor_uploader.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0004_auto_20180107_1709'),
]
operations = [
migrations.AddField(
model_name='video',
... | [
"greenteamer@bk.ru"
] | greenteamer@bk.ru |
eff984e146cda1a9191c3692e08c2743385564ce | 626833b2f8955b1d5b6ac33328e689c793f1a1c2 | /Chapter6/BA6A.py | 6d62022674126e96ceee657f64806ab15aa9a646 | [] | no_license | Leoberium/BA | 8b1bbe9ddf43e9498b3e7419fbdc7ae81e151c43 | 61409d57a228188e7d8ce78db20cf926f2a1d34d | refs/heads/master | 2020-09-22T14:43:43.338784 | 2019-12-01T23:24:12 | 2019-12-01T23:24:12 | 225,244,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | import sys
def greedy_sorting(p):
permutations = []
for i in range(len(p)):
if abs(p[i]) != i + 1:
index = 0
for j in range(i + 1, len(p)):
if abs(p[j]) == i + 1:
index = j
break
m = (index - i) // 2
... | [
"leo.mazaev@gmail.com"
] | leo.mazaev@gmail.com |
7e784cf82de7c14d0d95252ffdab214f2a713642 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/L/legz/twitter_hashtag_user_friendship_network_-2gen.py | 5c7a965a16f2b358932ba349750cf12c813a5d34 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,662 | py | #Script to grab a list of recent hashtag users from Twitter and graph their friendship connections
#NOTE this goes against the spirit of Scraperwiki somewhat, because I am using a view on its own to grab and display the data
#As to why I'm not grabbing the Twitter data into a Scraperwiki db using a Scraperwiki scraper... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
43ecc023480a4d0a3ae444fdbb018d62949e576f | 277cd286fa69eb7ab03b806a620322d5701b04b3 | /2017/round2/freshCholocate.py | 9a32325d5177e3651f13eb3194f6926336f867be | [] | no_license | YeahHuang/Codejam | 5cd96d45cdb8d26eadb1e3a5f1fae8c1faef4e48 | 5086696b9dd1ac7b09f0cab34b643dde1d916e0b | refs/heads/master | 2021-05-24T17:36:36.314823 | 2020-07-19T15:52:52 | 2020-07-19T15:52:52 | 253,679,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,098 | py | from bisect import bisect_left, bisect_right, insort_left, insort_right
from string import ascii_lowercase
from heapq import heappush, heappop, heapify
from collections import Counter, defaultdict
from itertools import product
import random
import sys
"""
11:57 - 13:01 pass
n(number of groups) p(number of pieces of... | [
"noreply@github.com"
] | YeahHuang.noreply@github.com |
5b709f7498dc80885e92977e4067ecdcf71992e7 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_109/38.py | 7c4de50235fef69c7b9596e465413432228daf45 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | #!/usr/bin/python
import sys
def solve(N, W, L, students):
corners = set([(0, 0)])
locs = {}
ordered_students = list(enumerate(students))
ordered_students.sort(key=lambda a: -a[1])
for j, r in ordered_students:
for x, y in corners:
px = x
py = y
newx = ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
88cfb85af6861de642d593f1d15f51ff6a76f3d4 | 1780cd68f8927c2e8d57850ef2985c5a682dd2de | /wsh/__main__.py | c7adcbf6938075befdbb3048e01155e69ea2ea25 | [] | no_license | RyanKung/stack | 68087b85560e0a4f334521123153694cb555f595 | 27e2563763dbca73e816ab699e3f5976d5b92a53 | refs/heads/master | 2021-01-21T15:21:56.766727 | 2016-07-27T02:53:45 | 2016-07-27T02:53:45 | 57,367,027 | 84 | 7 | null | 2016-05-22T04:17:55 | 2016-04-29T08:04:27 | Python | UTF-8 | Python | false | false | 128 | py | import sys
import re
from .main import main
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ryankung@ieee.org"
] | ryankung@ieee.org |
12067521f8dcc24d30cfd4bdd28b91eb3e13998d | 5777b01b9d6a6479cf2dc497ea8e3ff7f7dc7b48 | /206_ReverseLinkedList.py | 4d1b5eaa52406f88cbf5c4f45744d06c850ef63e | [
"MIT"
] | permissive | brettchien/LeetCode | d0e6c980b814fe866667f7be23ee674949004a49 | 386b9e2f7c6389fed8825a5ec0b8c0ea733e780b | refs/heads/master | 2021-03-12T21:24:06.552129 | 2016-08-27T06:10:55 | 2016-08-27T06:10:55 | 38,339,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
# @param {ListNode} head
# @return {ListNode}
def reverseList(self, head):
if not head:
return head
dummy = ListNode(0)
d... | [
"brett.chien@gmail.com"
] | brett.chien@gmail.com |
4bc511805642a574d45078d0a0c880bacbde8c51 | 51afd3d538f79c13af39dc13d974b2fe48be0285 | /baseline_LR/train_test_multilr.py | c83a597a9828a59e59d3027bd83195528d105e0e | [] | no_license | listenzcc/mne_signal_detection | 5d6fc7831762281bfea5a3377a957a6b2688ca28 | 103e0b3736a14dd0b6763583d94b5bd1f47bdc9c | refs/heads/master | 2020-04-04T19:18:11.299444 | 2018-12-07T01:26:11 | 2018-12-07T01:26:11 | 156,200,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,771 | py | # coding: utf-8
import os
import sys
import numpy as np
import threading
import matplotlib.pyplot as plt
from sklearn.linear_model import LogisticRegression
sys.path.append('..')
from load_preprocess import get_epochs
def vstack(a, b):
if len(a) == 0:
return b
return np.vstack((a, b))
def scale(dat... | [
"listenzcc@mail.bnu.edu.cn"
] | listenzcc@mail.bnu.edu.cn |
d4cdff5dc3003601e3f5cd24332181069349a8c4 | e9f5ab8edbc60272a6e0ee8ad97c84eec344e5d6 | /examples/02_stdnormal_K1/plot-01-demo=deletes-model=dp_mix+gauss.py | b67a27f76ce42412714edf4a594f7940dd01042d | [
"BSD-3-Clause"
] | permissive | s-mawjee/bnpy | 85a114043b4d557e3e2baec9ce654a50712dce7d | 57cc2d6545c6bd169132db5596a323ea52980d50 | refs/heads/master | 2020-04-24T23:45:57.889647 | 2019-05-08T11:07:08 | 2019-05-08T11:07:08 | 155,522,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,605 | py | """
========================================================================
Variational with merge and delete proposals for DP mixtures of Gaussians
========================================================================
How delete moves can be more effective than merges.
In this example, we show how merge moves al... | [
"mike@michaelchughes.com"
] | mike@michaelchughes.com |
e02578080980b2b450e344b20eee1ab7eb42e084 | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/chromite/lib/cros_logging_unittest.py | 5ec365c3addccd5a85b0afd3193dc35ebed13c47 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 3,796 | py | # -*- coding: utf-8 -*-
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Tests for cros_logging."""
from __future__ import print_function
import sys
from chromite.lib import cros_logging as logging... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
1eed5a6b4240f4958b2f31bd6573c8e90732fd33 | d3ce58c4576431df14de0990f45cfd574f0aa45f | /.history/user/views_20201012031349.py | c2b13bfdbd18379d7610d2eee0c80aff2d6309f3 | [] | no_license | rahulsolankib/portfolio | fe93f0e6b0b28990f0b9fad84dbf7c3aa07243c4 | 281ed429e2590376aee4649b2ea7b3e8facaf6f1 | refs/heads/master | 2023-01-02T06:55:21.319094 | 2020-10-26T08:55:22 | 2020-10-26T08:55:22 | 305,586,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from django.shortcuts import render,redirect
from django.contrib.auth.forms import UserCreationForm
from django.contrib import messages
from .forms import UserRegisterForm
# Create your views here.
def register(request):
if request.method == 'POST':
form = UserRegisterForm(request.POST)
if form.... | [
"rahulsolankib@gmail.com"
] | rahulsolankib@gmail.com |
30a6d77a390396db8c45a785cd1129a10f348acb | b8dfb4371270042da2828b8f3e3da9a1ee9d0e83 | /chat/migrations/0002_message_created.py | 296f446a5b7beab992b26586c1d1b4b66dbb2116 | [] | no_license | skiboorg/puzzle_game | 4bcfcad8a5e9647b413cab3b6f05b7aaa92811b3 | c38a6b5af9c50da0a1e978df3851d7d78db41dfe | refs/heads/master | 2023-01-22T15:48:58.962659 | 2020-11-25T07:27:01 | 2020-11-25T07:27:01 | 263,743,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 3.0.6 on 2020-05-16 12:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('chat', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='message',
name='created',
fiel... | [
"ddnnss.i1@gmail.com"
] | ddnnss.i1@gmail.com |
f14882f969949e9cb17aeffd927c279b87368ab3 | 1d483945b82db39d2c5a0cd31522c2780c2c43ad | /my_app/ss_lib/Ssheet_class.py | 6b13db5aa008fc257c6cecf841cf911bc6309015 | [] | no_license | jpisano99/scrub_email | f2dfaa47437a1e5102baa62687df84e855be8835 | 0aaff6d8ffd5adc6549d490c396d8ae125ca6ad4 | refs/heads/master | 2020-07-24T22:35:07.855516 | 2019-09-16T15:06:52 | 2019-09-16T15:06:52 | 208,071,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,060 | py | from .smartsheet_basic_functions import *
ss_config = dict(
SS_TOKEN=my_app.my_secrets.passwords["SS_TOKEN"]
)
class Ssheet:
ss_token = ss_config['SS_TOKEN']
ss = smartsheet.Smartsheet(ss_token)
def __init__(self, name, meta_data_only=False):
self.name = name
self.sheet = {}
... | [
"jpisano@cisco.com"
] | jpisano@cisco.com |
c7687c1fc9bb0a10bffee0abdafcf0a9bdbfa4c2 | 0366bccae8841bbf6ecaad70660aae89bb0f6394 | /19_OOP_polymorphism.py/4_example.py | 6b6eaf7e022d461d103323dc43a5c7a9f62a3f52 | [] | no_license | KobiShashs/Python | 8a5bdddcaef84b455795c5393cbacee5967493f7 | e748973ad0b3e12c5fb87648783531783282832a | refs/heads/master | 2021-04-05T20:18:57.715805 | 2020-04-02T21:51:44 | 2020-04-02T21:51:44 | 248,597,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | class BigThing:
def __init__(self, something):
self._something = something
def size(self):
if(type(self._something) == int):
print(self._something)
else:
print(len(self._something))
class BigCat(BigThing):
def __init__(self, something, weight):
super... | [
"kobi.shasha@gmail.com"
] | kobi.shasha@gmail.com |
09171235eb4b872b6ae2dd265aee80bd82353d98 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyInstanceMaintenanceAttributesRequest.py | 2c3e59f0c7a53b3514866f689d76e78e1a24c31f | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 3,168 | 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 |
175ca4dbc99b9d492d6ae7075d14c6c264b624c7 | 503d2f8f5f5f547acb82f7299d86886691966ca5 | /atcoder/diverta2019_b.py | 91c65200aac281406b1f81daf84852c467ff3220 | [] | no_license | Hironobu-Kawaguchi/atcoder | 3fcb649cb920dd837a1ced6713bbb939ecc090a9 | df4b55cc7d557bf61607ffde8bda8655cf129017 | refs/heads/master | 2023-08-21T14:13:13.856604 | 2023-08-12T14:53:03 | 2023-08-12T14:53:03 | 197,216,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | # https://atcoder.jp/contests/diverta2019/tasks/diverta2019_b
R, G, B, N = map(int, input().split())
ans = 0
for r in range(N//R+1):
tmp = N - r * R
for g in range(tmp//G+1):
if (N - r * R - g * G) % B == 0:
ans += 1
print(ans)
| [
"hironobukawaguchi3@gmail.com"
] | hironobukawaguchi3@gmail.com |
fa67cb1779f7feb966a476e6984cc58af6ff7cf3 | 688be2b7e2aef0f7484f390d0a1dc105e3217b5e | /product/urls.py | 9819a5d59007108354d65c5c2464a9f98ab6b2fc | [] | no_license | extreme1337/olx-clone | 0fffac94f3d6bce0085bc52526357a6f2b81bd47 | d7ad9e5d90f9dbb73d1fbe8b82b8d0d2b6996922 | refs/heads/main | 2023-03-01T11:00:22.760807 | 2021-02-10T08:27:13 | 2021-02-10T08:27:13 | 337,080,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from django.urls import path
from . import views
app_name = 'product'
urlpatterns = [
path('', views.productlist, name='product_list'),
path('<slug:category_slug>', views.productlist, name='product_list_category'),
path('detail/<slug:product_slug>', views.productdetail, name='product_detail'),
]
| [
"marko.miseljic.14@gmail.com"
] | marko.miseljic.14@gmail.com |
a5776fa23dd4a48ace919efe7fb4709bc7d2f969 | 8f24e443e42315a81028b648e753c50967c51c78 | /dashboard/modules/runtime_env/runtime_env_agent.py | 01ccd94af5a6ab54712ca8864c05bb328d00c4c4 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | simon-mo/ray | d07efdada8d05c6e10417f96e8dfc35f9ad33397 | 1e42e6cd15e2fb96c217cba8484e59ed0ef4b0c8 | refs/heads/master | 2023-03-06T00:09:35.758834 | 2022-12-23T18:46:48 | 2022-12-23T18:46:48 | 122,156,396 | 4 | 2 | Apache-2.0 | 2023-03-04T08:56:56 | 2018-02-20T04:47:06 | Python | UTF-8 | Python | false | false | 23,830 | py | import asyncio
import json
import logging
import os
import time
import traceback
from collections import defaultdict
from dataclasses import dataclass
from typing import Callable, Dict, List, Set, Tuple
from ray._private.ray_constants import (
DEFAULT_RUNTIME_ENV_TIMEOUT_SECONDS,
)
import ray.dashboard.consts as d... | [
"noreply@github.com"
] | simon-mo.noreply@github.com |
cc097148e3d7e18a8f47a9cb3025b59a1f608088 | c102085883a0c066f3d7edf7d81e4057ed745748 | /pypy3/lilac.py | 767f629c87e8c52708e572cf27fe02b4ef234ad9 | [] | no_license | jcstr/arch4edu | 58afe3a59727bb57afd1decdd6988392d151c29b | 76104e81ef0097a6c21f3d241b92772656b39703 | refs/heads/master | 2020-05-15T15:19:40.301478 | 2019-04-20T06:21:14 | 2019-04-20T06:21:14 | 182,370,458 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | #!/usr/bin/env python3
from lilaclib import *
update_on = [{'archpkg': 'pypy3'}]
build_prefix = ['extra-armv6h', 'extra-armv7h']
time_limit_hours = 72
def pre_build():
download_official_pkgbuild('pypy3')
add_arch(['armv6h', 'armv7h'])
for line in edit_file('PKGBUILD'):
if line.startswith('source=... | [
"i@jingbei.li"
] | i@jingbei.li |
6f9cd87d90dcc4a0affe0aaa017f87908eeb611c | b41b996b4a14f11bb3d7676b4539725a93c2d586 | /SourceCode/Codesignal-Selenium/SourceNew/Py3/createArray.py3 | 528b8cb6fad90081036480d7d75d4d0320b130f2 | [] | no_license | mquandvr/selenium | ee2c0e7febb15f4db4d33a8575726f67c48bde05 | d7bb4c95d4d0756c66cbf3c69387318fc07219f2 | refs/heads/master | 2020-06-05T05:49:57.476867 | 2019-06-18T10:55:27 | 2019-06-18T10:55:27 | 192,335,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py3 | def createArray(size):
return [1]* size
| [
"11130052@st.hcmuaf.edu.vn"
] | 11130052@st.hcmuaf.edu.vn |
b0dfaa6f3182873be00588c860c03b8b3989b65d | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/cylicRot_20200715001137.py | b769c8a9d001bcac07d9fa2a6eb925b43dd3895f | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | # given an array rotate it k times to the right
def rotate(A,K):
# first I'd rotate the array once
# so how do we rotate the array
# we move the last element to the firs place and
# the rest follow suit
# moving elements to the right in an array
# [3,8,9,7,6]
# 3 ---> 0 now 3 ---> 1
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
720904416d61d2eb860e892e6a3bedc06be3beb9 | 0febba6ea7a07550e3c7677dfb4037f3ea9662e4 | /mysite/settings.py | dea9ef93351be4c69ed1fcb3f4a893bfa014fe75 | [] | no_license | abubych/my-first-blog | 88341a6e2b9a006aa22fc1b243230c95e51a400a | 8e39bd6a0d964bcaa99db7bfbe89a1755d75c113 | refs/heads/master | 2020-09-26T22:09:31.931145 | 2019-12-06T15:03:10 | 2019-12-06T15:03:10 | 219,852,145 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,155 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.7.
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/
"""
import os
# ... | [
"you@example.com"
] | you@example.com |
12f2d2c34e5181bb8883b981c7dd86ec76bba947 | c8ea4fe0dccca928b92234b72a7a8d9cd6cf4d14 | /tests/eth2/beacon/types/test_proposer_slashings.py | 2d70091de7d9c186937546a3f8b370369a0c2677 | [
"MIT"
] | permissive | kclowes/trinity | b6bc4f7c57ade1651cf9b2ca9ca88493f3485007 | f0400c78a6d828dd266b1f31dd3fa7aacf97486d | refs/heads/master | 2020-04-16T16:11:28.531260 | 2019-01-14T17:03:56 | 2019-01-14T17:44:58 | 165,728,497 | 0 | 0 | MIT | 2019-01-14T20:17:01 | 2019-01-14T20:17:00 | null | UTF-8 | Python | false | false | 665 | py |
from eth2.beacon.types.proposer_slashings import (
ProposerSlashing,
)
def test_defaults(sample_proposer_slashing_params):
slashing = ProposerSlashing(**sample_proposer_slashing_params)
assert slashing.proposer_index == sample_proposer_slashing_params['proposer_index']
assert slashing.proposal_data_1... | [
"hwwang156@gmail.com"
] | hwwang156@gmail.com |
cdd80aa7d4fd23ee92ffbfa5085fa51294fb6d22 | 614cad3588af9c0e51e0bb98963075e3195e92f5 | /models/onet/config.py | 5ab763d53ab51f06d527d863d05d4dbdd603df17 | [] | no_license | dragonlong/haoi-pose | 2810dae7f9afd0a26b3d0a5962fd9ae8a5abac58 | 43388efd911feecde588b27a753de353b8e28265 | refs/heads/master | 2023-07-01T14:18:29.029484 | 2021-08-10T10:57:42 | 2021-08-10T10:57:42 | 294,602,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,532 | py | import torch
import torch.distributions as dist
from torch import nn
import os
import __init__
from models.encoder import encoder_dict
from models.onet import models, training, generation
# from im2mesh import data
# from im2mesh import config
import dataset as data
from utils import config
def get_model(cfg, device... | [
"lxiaol9@vt.edu"
] | lxiaol9@vt.edu |
7e404da28c3fe14b73b70c442e023410f00a3ade | a62fdd0beb6c47cc704c1192b68b0bcfcd024304 | /Python/II/19-TXTEDIT2/3/ui_form.py | a4d1d6b8f2c118bffdff979ebf87d1580422b60e | [] | no_license | a6461/Qt-PyQt | da1895b4faccda80b8079ecdca79f1ea525daa0a | 404bd7fbbc432ebeaa1a486fc8e005d47aed9cfd | refs/heads/master | 2020-03-14T22:16:48.714825 | 2018-06-12T20:45:58 | 2018-06-12T20:45:58 | 131,817,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,492 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'form.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("For... | [
"a6461@yandex.ru"
] | a6461@yandex.ru |
70cb2348662187ca633adcf0cdd99bff60a49366 | cd40b7cc395f36740000ed4a4144b1c0666ab0fd | /hstrat/test_drive/generate_template_phylogeny/_evolve_fitness_trait_population_/__init__.py | 120b54b41250aec6ea25e07702d1f1cbcbf146b6 | [
"MIT"
] | permissive | mmore500/hstrat | 94fd22c86a87a5707590b9398ef679444ed82d6d | b2d2caded1db5e2dc681d9f171d7c74b322c55c3 | refs/heads/master | 2023-08-31T03:36:44.457576 | 2023-08-25T14:39:29 | 2023-08-25T14:39:29 | 464,531,144 | 5 | 2 | NOASSERTION | 2023-08-25T13:07:52 | 2022-02-28T15:11:45 | Python | UTF-8 | Python | false | false | 575 | py | """Implementation for `evolve_fitness_trait_population`."""
from ._apply_island_migrations import _apply_island_migrations
from ._apply_mutation import _apply_mutation
from ._apply_niche_invasions import _apply_niche_invasions
from ._get_island_id import _get_island_id
from ._get_niche_id import _get_niche_id
from ._s... | [
"mmore500.login+gpg@gmail.com"
] | mmore500.login+gpg@gmail.com |
c84c74cb7e09d90664a0eec0ef4a514fc53fc7d3 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res_bw/scripts/common/lib/email/mime/application.py | c28b866a4335bc589db5c85b4d96b4a6b04c04fd | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,525 | py | # 2016.02.14 12:47:54 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/email/mime/application.py
"""Class representing application/* type MIME documents."""
__all__ = ['MIMEApplication']
from email import encoders
from email.mime.nonmultipart import MIMENonMultipart
class MIMEApplication(MIMENonMult... | [
"info@webium.sk"
] | info@webium.sk |
91385116b3fdd55a4da2fd97f1c0d310dc86f93b | 3b74b57d5f513e98d1ad5404c09aeb7b7a03ed63 | /solow/tests_solow/test_ces.py | b39266ad585f3e2e99a4867cb3fa058212f302e9 | [] | no_license | vgregory757/QuantEcon.applications | 0b7a13aa05798c15ff5943adb99d4c01585a2d76 | 4f542e20034b1ca6cfbca2708cb6e29509af401d | refs/heads/master | 2020-04-05T22:52:45.978767 | 2017-03-15T19:53:30 | 2017-03-15T19:53:30 | 51,265,260 | 2 | 1 | null | 2016-02-07T20:39:34 | 2016-02-07T20:39:33 | null | UTF-8 | Python | false | false | 2,652 | py | """
Test suite for ces.py module.
@author : David R. Pugh
@date : 2014-12-08
"""
import nose
import numpy as np
from .... models.solow import ces
params = {'A0': 1.0, 'g': 0.02, 'L0': 1.0, 'n': 0.02, 's': 0.15,
'alpha': 0.33, 'sigma': 1.1, 'delta': 0.05}
model = ces.CESModel(params)
def test_steady_sta... | [
"mamckay@gmail.com"
] | mamckay@gmail.com |
2c4b41bdd50001fb5c1c59e6267ace6e6328bb99 | b44b690c96cfbaba35fa3cc32e8da4442adb9fad | /Python/0151. Reverse Words in a String.py | 321978c8c6a222f9d220eacb369fc4854db04e12 | [] | no_license | faisalraza33/leetcode | 24d610c6884e218719d82a5c79f1695cb6463d68 | d7cf4ffba14c6f1ff4551634f4002b53dfeae9b7 | refs/heads/master | 2022-08-10T02:05:21.932664 | 2022-07-05T09:59:47 | 2022-07-05T09:59:47 | 238,060,131 | 0 | 0 | null | 2020-02-03T20:54:51 | 2020-02-03T20:54:50 | null | UTF-8 | Python | false | false | 1,218 | py | # Given an input string s, reverse the order of the words.
# A word is defined as a sequence of non-space characters. The words in s will be separated by at least one space.
# Return a string of the words in reverse order concatenated by a single space.
# Note that s may contain leading or trailing spaces or multiple s... | [
"Hongbo.Miao@outlook.com"
] | Hongbo.Miao@outlook.com |
dafa4f1cff7207f3e58d1b7ccc1374c0626541d2 | d993f821da125498b6dfb01792fcd24c83ae7e34 | /selfself/Custom_Logger.py | b5e3ddece1261f6cbd1aac598eaa40a1be777d40 | [] | no_license | Arjuna1513/Python_Practice_Programs | 2c8370d927c8bade2d2b0b5bd0345c7d5f139202 | 7c72600d72f68afee62ee64be25d961822429aeb | refs/heads/master | 2020-06-24T02:36:03.186924 | 2019-07-25T14:31:02 | 2019-07-25T14:31:02 | 198,824,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | import logging
import inspect
class CustomLogger:
def custom_logger(self, logLevel=logging.INFO):
loggerName = inspect.stack()[1][3]
logger = logging.getLogger(loggerName)
logger.setLevel(logging.DEBUG)
fHandler = logging.FileHandler("Automation.log", mode='a')
fHandler.... | [
"malli00022@gmail.com"
] | malli00022@gmail.com |
e6b6647a488e26f74160f7438b57eade28904ee2 | f1961c86e6da14f35c21d7235f4fc8a89fabdcad | /DailyProgrammer/DP20120716C.py | fbf41c1a899349a2b6e8c51a9ac8c6c23b1ec13b | [
"MIT"
] | permissive | DayGitH/Python-Challenges | d4930bdd85cd1a977d8f6192775ca956a375fcde | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | refs/heads/master | 2021-01-17T13:01:03.784523 | 2018-06-29T23:49:04 | 2018-06-29T23:49:04 | 58,497,683 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | """
Write a program that is able to find all words in a Boggle [http://en.wikipedia.org/wiki/Boggle] board. For a word list,
you can use this file [http://code.google.com/p/dotnetperls-controls/downloads/detail?name=enable1.txt].
How many words can you find in the following 10x10 Boggle board?
T N L E P I A C N M
T R... | [
"akber91@gmail.com"
] | akber91@gmail.com |
af364988e9423021730917fdab606389a84c8240 | 7a1a65b0cda41ea204fad4848934db143ebf199a | /automatedprocesses_thirdstage/oath_core_yesterday_media.py | cdb09b67be3c5a1a2f87b835ad27edef4a1dd403 | [] | no_license | bpopovich44/ReaperSec | 4b015e448ed5ce23316bd9b9e33966373daea9c0 | 22acba4d84313e62dbbf95cf2a5465283a6491b0 | refs/heads/master | 2021-05-02T18:26:11.875122 | 2019-06-22T15:02:09 | 2019-06-22T15:02:09 | 120,664,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,227 | py | #!/usr/bin/python2.7
import sys
import json
import time
import datetime
import aol_api
from mysql.connector import MySQLConnection, Error
from python_dbconfig import read_db_config
from data_file import report_book
from data_file import platforms
from data_file import fees
todaysdate = time.strftime("%Y-%m-%d %H:%M:%... | [
"bpopovich4@gmail.com"
] | bpopovich4@gmail.com |
da23b03efa139367d54c2fcb3e57fd0f9d9631df | a06586c101a31bf6c9a7dc307cf664120ac092fd | /Trakttv.bundle/Contents/Libraries/Shared/shove/stores/bsdb.py | 0da028a82f4fcbd598ea314ed513ba07efaced6b | [] | no_license | HaKDMoDz/Plex-Trakt-Scrobbler | 22dd1d8275698761cb20a402bce4c5bef6e364f9 | 6d46cdd1bbb99a243b8628d6c3996d66bb427823 | refs/heads/master | 2021-01-22T00:10:18.699894 | 2015-05-25T23:52:45 | 2015-05-25T23:52:45 | 37,312,507 | 2 | 0 | null | 2015-06-12T09:00:54 | 2015-06-12T09:00:53 | null | UTF-8 | Python | false | false | 1,271 | py | # -*- coding: utf-8 -*-
'''
Berkeley Source Database Store.
shove's URI for BSDDB stores follows the form:
bsddb://<path>
Where the path is a URL path to a Berkeley database. Alternatively, the native
pathname to a Berkeley database can be passed as the 'engine' parameter.
'''
from threading import Condition
from ... | [
"gardiner91@gmail.com"
] | gardiner91@gmail.com |
f29357782fe9d19f59b184769074665aac2d6031 | 0fa00ecf2dd671515dc001d4b14049ec6a0c1f1c | /custom_components/solcast_solar/sensor.py | 4f8754b9a839da84530777f98558be4b93ca6e78 | [
"Unlicense"
] | permissive | bacco007/HomeAssistantConfig | d91a5368344f50abbea881bd1e6dfc57a0e456ca | 8548d9999ddd54f13d6a307e013abcb8c897a74e | refs/heads/master | 2023-08-30T07:07:33.571959 | 2023-08-29T20:00:00 | 2023-08-29T20:00:00 | 230,585,631 | 98 | 16 | Unlicense | 2023-09-09T08:28:39 | 2019-12-28T09:05:02 | Python | UTF-8 | Python | false | false | 12,368 | py | """Support for Solcast PV forecast sensors."""
from __future__ import annotations
import logging
from typing import Final
from datetime import datetime as dt
from datetime import timedelta, timezone
from homeassistant.components.sensor import (SensorDeviceClass, SensorEntity,
... | [
"thomas@thomasbaxter.info"
] | thomas@thomasbaxter.info |
957745c63aa4acbb57a1750949c8d2115760bb3c | d772869033c47a666622e9ee518bb306db5451a5 | /unified/modules/main/categories/phone_sms/clicksend_sms/util.py | 45a36a96360e84f47ec87f916ca256fc31d727b4 | [] | no_license | funny2code/unified_api | 920f1e19b2304e331b019f8a531d412b8759e725 | ffa28ba0e5c0bd8ad7dd44a468e3d1e777bba725 | refs/heads/main | 2023-08-31T16:00:17.074427 | 2021-10-04T04:09:45 | 2021-10-04T04:09:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | import clicksend_client
from flask import Response, request
def get_clicksend_configuration(clicksend_sms_headers):
'''Authentication for Clicksend API'''
configuration = clicksend_client.Configuration()
configuration.username = clicksend_sms_headers['username']
configuration.password = clicksend_sms... | [
"baidawardipendar@gmail.com"
] | baidawardipendar@gmail.com |
a4b7456e3c8f645d193567dd9cb63fb57ebd7f6d | 729a5032e812ef85fe09d4e9682105288ab915fc | /elit/item/seed.py | 2946e57dd876c784673d1cc23f34f3c5314d8600 | [] | no_license | junhg0211/elit | d2c60f2325efd37c5c20a5160157c296c8c45d49 | b6c26f655b1d485b47483c6ef184ff6cb0c226f0 | refs/heads/main | 2023-07-18T07:20:26.519724 | 2021-08-30T01:57:08 | 2021-08-30T01:57:08 | 397,745,875 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,346 | py | from asyncio import TimeoutError as AsyncioTimeoutError
from typing import Tuple
from discord import Embed
from discord.ext.commands import Bot, Context
from elit.exception import ChannelError
from elit.item import Item
from util import message_author_check, irago
class Seed(Item):
name = '씨앗'
type = 3
... | [
"junhg0211@gmail.com"
] | junhg0211@gmail.com |
8fdd8520b2283971949c09761c0766c98f0e3724 | fd10bb1c3e08f429a421ea87e73939aea2187227 | /src/model/modules/feed_forward_block.py | 0bcba2db8594bdf7b66e406381a84e60e9e2198d | [] | no_license | dertilo/speech-recognition-transformer | 2b9e6336c57eafdbb0dde34c61166a0364f283f4 | f3c4ef5bae631ce6bbdd9dcc78c529e4d39994ce | refs/heads/master | 2022-12-13T06:04:56.939095 | 2020-07-07T09:39:12 | 2020-07-07T09:39:12 | 257,938,478 | 4 | 1 | null | 2022-11-28T12:48:00 | 2020-04-22T15:14:55 | Python | UTF-8 | Python | false | false | 5,394 | py | import torch as t
from src.model.modules.gelu import Gelu
import torch
from src.model.modules.low_rank_linear import LowRankLinear
class FeedForwardReZeroBlock(t.nn.Module):
"""
feed forward layer combine with add - layer norm - dropout
"""
def __init__(self, input_size, inner_size, dropout, use_low_r... | [
"lancertong@live.com"
] | lancertong@live.com |
39b67bdf6db8b2bd8a32118189359f4ca09763ca | 0cf9bb9c50c6efc1bc4a7923f42f6fad79039598 | /Homeworks/HW 11_ Playing the Game Starter Code/testgame.py | 56ad1ba84fd6cf3e17dcc8bd4907ab171d691030 | [] | no_license | AlbMej/CSE-2050-Data-Structures-and-Object-Oriented-Design | c950bada185823c70370522e0735533b41bd726b | bfbe91d698e650d78c20fd535c45108a8dba1030 | refs/heads/master | 2020-04-25T13:20:57.537243 | 2019-03-12T19:54:04 | 2019-03-12T19:54:04 | 172,806,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,884 | py | from nim import Nim
from gametree import GameTree
from TicTacToe import TicTacToe
import unittest
class TestGameTree(unittest.TestCase):
"""Tests for the GameTree data structure"""
def testinit(self):
"""Test the initializer"""
n1 = Nim([2,3,4])
g1 = GameTree(n1)
n2... | [
"albertomejia295@gmail.com"
] | albertomejia295@gmail.com |
e60acb0ebd7eefde531c78becbdac6ce143d7eb5 | 0d6e6d696dbba1380b742a1ff77ad342360ac243 | /src/scripts/dispms.py | 19c3773ba48ef21c68c14f442f34407149889f6f | [
"MIT"
] | permissive | griembauer/EESARDocker | 82c0791c3b51fd6144e7ec48f275b5fcaab527d4 | 49f5b2990a0d01dad830b054adf5f7555c927781 | refs/heads/master | 2023-01-12T00:59:52.519821 | 2020-11-19T11:54:25 | 2020-11-19T11:54:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,793 | py | #!/usr/bin/env python
#******************************************************************************
# Name: dispms.py
# Purpose: Display a multispectral image
# allowed formats: uint8, uint16,float32,float64
# Usage (from command line):
# python dispms.py [OPTIONS]
#
# Copyright ... | [
"mort.canty@gmail.com"
] | mort.canty@gmail.com |
eefadf6c7a8ed64f11d537d97fad62d617be43b6 | 6f2b98bcfca2e338dba4b313f5cbca3e5ca2e1f6 | /backend/api/migrations/0034_add_image_deletehash.py | a6ea652b4581bac987436aa749d7c4db20c9a3b4 | [
"MIT"
] | permissive | Disfactory/Disfactory | c9187d73607d359a18206b42b3e7e4727f62e0ae | 54163d8c14e9b67493a0354175cfe87a0f98d823 | refs/heads/master | 2023-07-24T19:22:28.963065 | 2023-07-17T10:54:50 | 2023-07-17T10:54:50 | 209,294,385 | 50 | 22 | MIT | 2023-08-26T07:55:06 | 2019-09-18T11:43:33 | Python | UTF-8 | Python | false | false | 419 | py | # Generated by Django 2.2.13 on 2021-03-17 13:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0033_remove_factory_point'),
]
operations = [
migrations.AddField(
model_name='image',
name='deletehash',
... | [
"swind@cloudmosa.com"
] | swind@cloudmosa.com |
3aaa5e767907175dcfd0bc96a76aad87f4a2a27b | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/famou.py | 851c640e9e32f3289b86018e04310c50f3ee47f8 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 1,814 | py | ii = [('CookGHP3.py', 3), ('MarrFDI.py', 2), ('CoolWHM2.py', 3), ('GodwWSL2.py', 2), ('RogePAV.py', 1), ('SadlMLP.py', 3), ('FerrSDO3.py', 1), ('WilbRLW.py', 4), ('RennJIT.py', 1), ('ProuWCM.py', 1), ('CookGHP.py', 1), ('ShawHDE.py', 1), ('MartHSI2.py', 2), ('LeakWTI2.py', 4), ('KembFJ1.py', 4), ('WilkJMC3.py', 5), ('W... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
253eb447069949259264040ad4f04fa3c929cca0 | acff427a36d6340486ff747ae9e52f05a4b027f2 | /playground/narcisse/vstream-client/actions.py | 2fcb4cc9c1c59b88cf51530ab7e633160d07a0a4 | [] | no_license | jeremie1112/pisilinux | 8f5a03212de0c1b2453132dd879d8c1556bb4ff7 | d0643b537d78208174a4eeb5effeb9cb63c2ef4f | refs/heads/master | 2020-03-31T10:12:21.253540 | 2018-10-08T18:53:50 | 2018-10-08T18:53:50 | 152,126,584 | 2 | 1 | null | 2018-10-08T18:24:17 | 2018-10-08T18:24:17 | null | UTF-8 | Python | false | false | 662 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
WorkDir="vstrea... | [
"erkanisik@yahoo.com"
] | erkanisik@yahoo.com |
c79bb1ad75927ddf35a24723228d2a9a9a44e124 | 83a6382bd9842c432e8d9672b8b03188bcf8dda4 | /test_project/test_project/settings.py | 74db50b1f21aa0209f9e22a3982cc0fc9def1781 | [] | no_license | encast/django-services | c401c299eaacc87c3089d8c0b6f90fc7e736a72b | 813e5bee7eb0dc9144ca814ce471f3c69e176c6d | refs/heads/master | 2021-06-25T12:48:41.157800 | 2017-05-19T13:26:20 | 2017-05-19T13:26:20 | 152,356,678 | 0 | 0 | null | 2018-10-10T03:18:10 | 2018-10-10T03:18:09 | null | UTF-8 | Python | false | false | 5,397 | py | # Django settings for test_project project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'd... | [
"semarjt@gmail.com"
] | semarjt@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.