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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f1c06dc9a2b63988dd0e1e3ed38cff047d229b50 | e8830532568d6e9df50552dd861e992143c4461a | /Color/Model_concat.py | 488612bc6690adabb9ad796aaeb55f43bf3ccd06 | [] | no_license | sogangori/dopperSegmentation | b56abccdd7b2b9c492d85ee707edcace8bbf9b89 | f8001c1f3b951986e5acf0a23a82482e922b857f | refs/heads/master | 2020-12-30T12:35:39.047604 | 2017-06-23T05:41:02 | 2017-06-23T05:41:02 | 91,395,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,180 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import gzip
import os
import sys
import time
import numpy
from six.moves import urllib
from six.moves import xrange # pylint: disable=redefined-builtin
import tensorflow as tf
import Model_helper as helper
m... | [
"sogangori@naver.com"
] | sogangori@naver.com |
a3145605d4de6973cf46e8e3bac6c04229f20aea | 8cb8bfd2dae516612251039e0632173ea1ea4c8a | /modules/helper2.py | d8f7789e7351f10f378cb89aa9148aa8b6c6c43f | [] | no_license | nyzsirt/lift-prod | 563cc70700d26a5812a1bce0bd9795998dce6e99 | 9a5f28e49ad5e80e422a5d5efee77a2d0247aa2b | refs/heads/master | 2020-04-22T01:05:42.262876 | 2019-02-09T13:31:15 | 2019-02-09T13:31:15 | 170,003,361 | 1 | 0 | null | 2019-02-10T17:11:50 | 2019-02-10T17:11:50 | null | UTF-8 | Python | false | false | 3,534 | py | import json
import re
from modules.permission.constants import EnumPermission
from resources import app
from datetime import datetime, timedelta
from bson import json_util
from bson.objectid import ObjectId
from flask import session
import os
class helper():
def __init__(self):
self.formatString = '%d.%... | [
"mutlu.erdem@soft-nec.com"
] | mutlu.erdem@soft-nec.com |
7ad4c6e80053bb54d1807cee8e8c949db58a23e6 | d683a49752ba1eed514b960d16f6f9b0817f6383 | /gtd/settings.py | d7718309f2daa22546b28fc84094e14617d12644 | [] | no_license | ViktorOgnev/gtd | 1fd7821260ab805545b7ad3f83598d752362e989 | adf0a6003ae323c303e83fee52f7a35cd4d1bf0d | refs/heads/master | 2021-01-10T19:27:28.010344 | 2013-10-30T18:35:02 | 2013-10-30T18:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,670 | py | import os
from .private_settings import *
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# fake trans
ugettext = _ = lambda s: s
# This is an utility function for accessing project root
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
PROJECT_NAME = os.path.basename(PROJECT_ROOT)... | [
"ognev.victor@gmail.com"
] | ognev.victor@gmail.com |
c8932b5ef8731ae63fc1ba6bafd7c1b152d6f7c4 | 868b557b4fb5f663a67794237107869bec3af0f7 | /Backend/App/Upload/__init__.py | 109961089e4671b2b592527d9cc5c55bb9e6ec5a | [] | no_license | korawitpa/korawitTest | cf00299823194dcc4061fd275bfbdc7a23466a46 | 806307f2dfe254dbb35d3bd790ec7948f9413464 | refs/heads/master | 2022-12-31T15:47:20.397385 | 2020-10-21T17:21:05 | 2020-10-21T17:21:05 | 304,644,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,406 | py | from flask import Blueprint, jsonify, request, send_file, send_from_directory
import datetime
import os
from werkzeug.utils import secure_filename
from Database import Database
from PIL import Image
import cv2
from yaml import load, dump
try:
from yaml import CLoader as Loader, CDumper as Dumper
except ImportError... | [
"admin@example.com"
] | admin@example.com |
13b9c51ffd2a469bfe9cafc82cb45d9ef134fa95 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/jupyter_core-4.1.0-py27_0/bin/jupyter | 8de6551da7350bd94cf54d4dedc6d951ed738528 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 162 | #!/opt/anaconda1anaconda2anaconda3/bin/python
"""Launch the root jupyter command"""
from jupyter_core.command import main
if __name__ == '__main__':
main()
| [
"wgyumg@mgail.com"
] | wgyumg@mgail.com | |
f888e679d4e2a8de8b4e43789b035826a5fd67c6 | c83acc6433aa8ef7703192e9033fe7cd92b2cccf | /traits/observation/_i_notifier.py | 5d7ca076d3eab446afdf49f9fb49c06e67a31671 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"CC-BY-3.0"
] | permissive | oscarpicas/traits | 857f5c06f3caf06003aed8b21b502b66ca8ba6cc | e72691a2f8aa34529af431d6b6b8c1a476ef4107 | refs/heads/master | 2022-03-17T10:30:08.330129 | 2022-02-18T21:01:50 | 2022-02-18T21:01:50 | 26,197,506 | 0 | 0 | null | 2015-01-10T04:01:48 | 2014-11-05T01:39:56 | null | UTF-8 | Python | false | false | 1,620 | py | # (C) Copyright 2005-2022 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in LICENSE.txt and may be redistributed only under
# the conditions described in the aforementioned license. The license
# is also available online at... | [
"noreply@github.com"
] | oscarpicas.noreply@github.com |
6ab1710401f35a67e5849d156b3dcea85c0baa13 | ddfb8fe53a31ddb984d7e647010fe15a6b8978a3 | /export_points.py | 4226b7b2a728f68b6c07c11e3b4a771a832d6b01 | [] | no_license | linzzz98/cvg_scripts | 7d27b551e9d994a8385d4e6007d132674ac84906 | e727fbb905bbcad4adaf722c830348678e04a860 | refs/heads/master | 2022-01-02T06:30:45.783826 | 2012-05-04T14:07:44 | 2012-05-04T14:07:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,895 | py | from boxm2_scene_adaptor import *;
from bbas_adaptor import *;
from vil_adaptor import *;
from vpgl_adaptor import *;
import numpy, random, os, sys, math, scene_registry;
from optparse import OptionParser
#######################################################
# handle inputs ... | [
"andrew.colin.miller@gmail.com"
] | andrew.colin.miller@gmail.com |
f6515703fed2439763530e3007470bbc04947352 | 7198ba93f84d088fe744fa022620d42f0f69f19a | /Chapter_7_code/build/hector_geotiff_plugins/catkin_generated/pkg.installspace.context.pc.py | 6183880e2a1b7202518cae70a5178c0d83f2aa21 | [
"MIT"
] | permissive | crepuscularlight/ROSbyExample | 114ae726f48cfef1b8e6443593c1204654453096 | fa7b1a60cacca9b1034e318a2ac16ce4c8530d7c | refs/heads/main | 2023-04-04T16:26:36.933566 | 2021-04-23T11:16:50 | 2021-04-23T11:16:50 | 359,818,748 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "hector_geotiff_plugins"
PROJECT_SPACE... | [
"18003316366@163.com"
] | 18003316366@163.com |
183607ed2cc5feb2376a684220909106babb9363 | 918f0fdef0e9224aa1a0596479178618290055ec | /configs/_base_/datasets/nuim_instance.py | 6e62dce5f92a0dc11b7422fcbd5063edc6c60d75 | [
"Apache-2.0"
] | permissive | Tsinghua-MARS-Lab/futr3d | b7eb3a0c9d92a58759c9c43e96bfd024a2e3de96 | 9130d71e487bad47f5dbcffd696fe9e4a838104f | refs/heads/main | 2023-07-24T15:40:00.121665 | 2023-07-06T05:50:45 | 2023-07-06T05:50:45 | 499,766,918 | 188 | 27 | MIT | 2022-06-19T10:42:03 | 2022-06-04T08:21:17 | Python | UTF-8 | Python | false | false | 2,050 | py | dataset_type = 'CocoDataset'
data_root = 'data/nuimages/'
class_names = [
'car', 'truck', 'trailer', 'bus', 'construction_vehicle', 'bicycle',
'motorcycle', 'pedestrian', 'traffic_cone', 'barrier'
]
img_norm_cfg = dict(
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
train_... | [
"noreply@github.com"
] | Tsinghua-MARS-Lab.noreply@github.com |
5d915c5c177cf6f5c1c1cc4440390ff027361656 | ed51048124c9b1f9eae26e55ea519bae3e4e4b3d | /variables_aleatorias/discretas/binomial.py | 71b2360efe7a117475e028a37f66efc9fd7dbac8 | [] | no_license | nanomolina/Ejercicios_MS | c9e89091b160b6d8605cf29865b6ea5093579f9e | 4e84f085ab33a2214858313a2a8c6f47af9c8457 | refs/heads/master | 2020-04-06T22:15:31.133051 | 2015-05-21T16:02:13 | 2015-05-21T16:02:13 | 33,733,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | from random import random
def genBinomial(n, p):
u = random()
i = 0
c = p / (1 - p)
pr = (1 - p) ** n
F = pr
while u >= F:
pr *= c * (n - i) / (i + 1)
F += pr
i += 1
return i
| [
"nanomolinacav@gmail.com"
] | nanomolinacav@gmail.com |
457a7e6d60d60d3300e0259da830dcb517704361 | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/powerbidedicated/azext_powerbidedicated/vendored_sdks/powerbidedicated/operations/_operations.py | 0041d20a72ba82356a04e0352fab2b2f15d6ec75 | [
"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 | 3,827 | 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 ... | [
"noreply@github.com"
] | ebencarek.noreply@github.com |
91c29f6f2af33de1ce57d2cbcc418439fc16b6e2 | e4e4f5c1e9d1e5e530720cdbfdf854fccf7ab1c4 | /herders/migrations/0079_auto_20160407_1956.py | a8a35c895ef37836ec3369ac263e4e50da8ce5a9 | [
"Apache-2.0"
] | permissive | CMuelstroh/swarfarm | 419c0e16b7c70a8bc7111f409111cac1e59253af | 73ba1f9c5a80d29b44a17a12eabc16a8cda3b62e | refs/heads/master | 2020-12-24T18:41:53.782796 | 2017-03-25T00:56:16 | 2017-03-25T00:56:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('herders', '0078_runecraftinstance'),
]
operations = [
migrations.AddField(
model_name='runeinstance',
... | [
"peter@porksmash.com"
] | peter@porksmash.com |
55b761dec18cc97740b64c184ced6afc50c170a3 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/object_attr_set_eval_order-203.py | c7cef3111bfa8da8aa517f8c9249667476bc2b02 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | class A(object):
a:int = 42
class B(A):
b:bool = True
def __init__(self:"B"):
print("B")
a:A = None
b:B = None
def get_b() -> B:
print("Getting B")
return b
def get_one() -> int:
print("Getting 1")
return 1
def get_false() -> bool:
print("Getting False")
return False
a... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
8c3fe4cfa06fd6cac1e31eb3aebb117be66b4e67 | 534502d26120b4f259ffd56f244afc0344d9b36d | /rlpyt/envs/gym.py | abd46432a233b42ab740583f55222af496a550b8 | [
"MIT"
] | permissive | deepdrive/rlpyt | 84b459757e47d57702b2800356ee5090d4a0a32d | f28331c6237d7e0f9663b384671ee416fb298595 | refs/heads/master | 2021-01-26T07:51:46.403277 | 2020-03-10T01:31:00 | 2020-03-10T01:31:00 | 243,371,487 | 1 | 0 | MIT | 2020-02-27T19:52:14 | 2020-02-26T21:39:57 | null | UTF-8 | Python | false | false | 6,765 | py |
import numpy as np
import gym
from gym import Wrapper
from gym.wrappers.time_limit import TimeLimit
from collections import namedtuple
from rlpyt.envs.base import EnvSpaces, EnvStep
from rlpyt.spaces.gym_wrapper import GymSpaceWrapper
from rlpyt.utils.collections import is_namedtuple_class
class GymEnvWrapper(Wrapp... | [
"adam.stooke@gmail.com"
] | adam.stooke@gmail.com |
b1ed8655f71fb29f4123881946cc6312187486aa | a8750439f200e4efc11715df797489f30e9828c6 | /LeetCodeContests/63/750_corner_rectangles.py | 2bb7622b230dc0af12b0c27ff94f3949c661b6a7 | [] | no_license | rajlath/rkl_codes | f657174305dc85c3fa07a6fff1c7c31cfe6e2f89 | d4bcee3df2f501349feed7a26ef9828573aff873 | refs/heads/master | 2023-02-21T10:16:35.800612 | 2021-01-27T11:43:34 | 2021-01-27T11:43:34 | 110,989,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | '''
750. Number Of Corner Rectangles My SubmissionsBack to Contest
Difficulty: Medium
Given a grid where each entry is only 0 or 1, find the number of corner rectangles.
A corner rectangle is 4 distinct 1s on the grid that form an axis-aligned rectangle.
Note that only the corners need to have the value 1. Also, all f... | [
"raj.lath@gmail.com"
] | raj.lath@gmail.com |
4edffc3af04b50f41e8467dc304de61e31c18e6d | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc076/C/1379221.py | 4049e34bb8c650fa5067504afe18b353cc006ae8 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def rls(): return list(input())
def pli(a): return "".join(list(map(str, a)))
R, C, N = rli()
lis = []
idx = 0
i = 0
for j in range(N):
x1, y1, x2, y2 = rli()
if((x1 % R == 0 or y1 % C == 0) and (x2 % R == 0 or y2 % C ... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
fc0398cedaa549f115c5f2f0aa2c1f4c9cb401c0 | 61d08e23fbb62e16f7bd9d43673b1cf4e0558c37 | /miraLibs/mayaLibs/hierarchy_opt.py | 03b8bf1bc63c19e22f85e875d92fb0fe82497cf8 | [] | no_license | jonntd/mira | 1a4b1f17a71cfefd20c96e0384af2d1fdff813e8 | 270f55ef5d4fecca7368887f489310f5e5094a92 | refs/heads/master | 2021-08-31T12:08:14.795480 | 2017-12-21T08:02:06 | 2017-12-21T08:02:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,673 | py | # -*- coding: utf-8 -*-
import os
import maya.cmds as mc
import json
class HierarchyOpt(object):
def __init__(self, group=None):
self.group = group
def shapes(self):
all_shape = mc.listRelatives(self.group, ad=1, f=1, type="mesh")
return all_shape
def transforms(self):
sh... | [
"276575758@qq.com"
] | 276575758@qq.com |
ebd01d9ae815b3d5ac6a85370fb38386c9889c1d | 2e5bda2c9812cd1669ba990762fd96dfc358940e | /Agisoft/Legacy/AgiBatchProcess_allWorking_MK_V4.py | 0c3ef8548ceb5ca56e214c172d360e7e8c6bd12f | [] | no_license | mj-bvtc/pythonTest | 4fe66bdce084d241f2b2b7897bbe428c502fa08d | 310d3b7941529f3220be26270f97d48fe9dcb884 | refs/heads/master | 2021-01-22T18:15:14.349797 | 2019-12-06T17:07:06 | 2019-12-06T17:07:06 | 85,069,109 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,862 | py | """
Tools for automating BVTC process with Agisoft PhotoScan
Compatible with Version 1.2.6
"""
import PhotoScan
import os
import math
import itertools
import time
import datetime
doc = PhotoScan.app.document
app = PhotoScan.app
class AgiChunk:
"""
A collection of attributes and
commands for processing a... | [
"mkreidler@bostonvalley.com"
] | mkreidler@bostonvalley.com |
9956cf08b0482428e08679f97b48562ec7bed240 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D08A/COREORD08AUN.py | e15bd9ca4f57cf36e829e338481d5b8f7d1f305d | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,989 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD08AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 0, MAX: 9},
{ID: 'FTX', MIN: 0, MAX: 9},
{ID: 'RFF'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
c532551ac3583a421ece6e98529048356af855fd | 26f78ba56388765f2fe2dc8fa23ddea097209ec5 | /Leetcode/回溯DFS/695. 岛屿的最大面积.py | 7d0107673087739215bf329d0c6f0667f750727d | [] | no_license | johnkle/FunProgramming | 3ef2ff32a1a378e1c780138ec9bab630c9ba83c7 | a60e0d17a1e9f0bc1959d7a95737fc4a0362d735 | refs/heads/master | 2023-07-18T16:05:56.493458 | 2021-09-08T19:01:19 | 2021-09-08T19:01:19 | 402,861,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | #注意dfs有返回值和无返回值的区别
class Solution:
def maxAreaOfIsland(self, grid):
row = len(grid)
col = len(grid[0])
res = 0
def dfs(grid,m,n,level,path):
if m<0 or n<0 or m>row-1 or n>col-1 or grid[m][n] != 1:
return
grid[m][n] = "#"
path.append... | [
"605991742@qq.com"
] | 605991742@qq.com |
49a36cd1c95e7faf97ed3f24121a99c635bb22ea | f00ad57c98e554470a72511dda7a7bfd160aca19 | /dynamic_programming/cancel_max_wallop_games/cancel_max_wallop_games.py | 80b929a30aba3ceb4577c69ec4f83c9a47c6c063 | [] | no_license | fanzhangg/algorithm-problems | d60115210aaaffcd094b34b9db5b46dadf93fe9e | 43b111ad625f197ba0905abceab9ee4484284e08 | refs/heads/master | 2021-07-12T20:24:46.265700 | 2020-07-06T17:58:31 | 2020-07-06T17:58:31 | 171,220,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | py | from typing import List, Tuple
class Game(object):
def __init__(self, opponent: str, walloping: int):
self.opponent = opponent
self.walloping = walloping
def __str__(self):
return ":".join((self.opponent, str(self.walloping)))
def cancel_max_wallop_games(games: List[Game], max_games... | [
"vanadiumzhang@gmail.com"
] | vanadiumzhang@gmail.com |
49a29358da40dd4ab5dd7db54a620985e4af7020 | d48d2680904f9812f2b73d3e4f2592ffe5e4c8c4 | /house/yy.py | 2778b68246724deccdb49b852f711dd80d507de5 | [] | no_license | zhilangtaosha/lijing | 4d14372036cc2dd457248338c6cd9801fc8e3987 | 4a33249776b622b6cbdc6c460ddc223fa3369f75 | refs/heads/master | 2020-04-03T18:57:27.959894 | 2017-11-17T06:30:53 | 2017-11-17T06:30:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | #-*- coding:utf-8 -*-
from functools import reduce
def fn(x, y):
return x * 10 + y
def char2num(s):
return {'0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9}[s]
print map(char2num,'13579')
print reduce(fn, map(char2num, '13579'))
def print_msg():
msg = 'zen of python... | [
"376700233@qq.com"
] | 376700233@qq.com |
35ebe56ddf2edb33e8cfcd12c12396b0c8744577 | 52709b129976c12206c68e34192c956e181e6d62 | /tests/models/test_recipient.py | 859e9dac508523cf78fa368c37a65f1b88aa5022 | [
"MIT"
] | permissive | tobsowo/apostello | 5e25764df7cd7e2dd51a2a5eb5dc12829ff88214 | e807202a3d6bd003e3d0d18fb5f6c36045bd1be3 | refs/heads/master | 2021-01-13T10:45:32.058677 | 2016-10-28T00:32:40 | 2016-10-28T00:32:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | # -*- coding: utf-8 -*-
from datetime import datetime
import pytest
from tests.conftest import twilio_vcr
@pytest.mark.django_db
class TestRecipient:
def test_display(self, recipients):
assert str(recipients['calvin']) == 'John Calvin'
def test_personalise(self, recipients):
assert recipien... | [
"montgomery.dean97@gmail.com"
] | montgomery.dean97@gmail.com |
8f82bfae35a8003210436c0c2cb6ca7992645636 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Mastering-Machine-Learning-scikit-learn/code/8365OS_04_Codes/tokenizer.py | d9ee73cb71d013c07ff266eb8c86e026038c276c | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 282 | py | __author__ = 'gavin'
from nltk import word_tokenize
from nltk.stem import PorterStemmer
class Tokenizer(object):
def __init__(self):
self.stemmer = PorterStemmer()
def __call__(self, doc):
return [self.stemmer.stem(token) for token in word_tokenize(doc)] | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
9e8105e652f20c1eb9741c9092ced497235b94cd | c2e77ac7daf85c0c7fa10aa3badd9204582ec105 | /persistent_messages/templatetags/persistent_message_tags.py | a2620fa790422a8e733eaa39dfd9efa30e45cf73 | [
"MIT"
] | permissive | yunojuno/django-persistent-messages | b8d0a44698406895e0ab61ad2dad2f71aa3daf47 | 657fcbfb116bc02e7bcdac7f546bd9d76951e641 | refs/heads/master | 2023-07-07T07:57:08.702642 | 2023-06-21T15:41:18 | 2023-06-21T15:41:18 | 109,124,525 | 0 | 0 | MIT | 2023-06-21T15:41:19 | 2017-11-01T11:43:30 | Python | UTF-8 | Python | false | false | 2,789 | py | import logging
from datetime import datetime
from typing import Iterable
from django import template
from django.conf import settings
from django.contrib.messages.storage.base import Message
from persistent_messages.models import PersistentMessage
register = template.Library()
logger = logging.getLogger(__name__)
... | [
"hugo@yunojuno.com"
] | hugo@yunojuno.com |
b12064bf9422fea469d6f1988f1c097c19644500 | 741ee09b8b73187fab06ecc1f07f46a6ba77e85c | /AutonomousSourceCode/data/raw/sort/21d4e742-c751-4a70-a004-23bb6bed4bed__program2.py | 67d87b0bab49577e1abc3c46676aeb0a53b396c5 | [] | no_license | erickmiller/AutomatousSourceCode | fbe8c8fbf215430a87a8e80d0479eb9c8807accb | 44ee2fb9ac970acf7389e5da35b930d076f2c530 | refs/heads/master | 2021-05-24T01:12:53.154621 | 2020-11-20T23:50:11 | 2020-11-20T23:50:11 | 60,889,742 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 514 | py |
# Return True if the argument to the function
# is a sorted-in-ascending order tuple. DO NOT use builtin functions
# like sort/sorted etc to solve this.
def is_sorted(a):
b = len(a)
if b == 1 :
return 1
for i in range(b-1):
if a[i] > a[i+1] :
return 0
return 1
assert(is_sorted((10, 2... | [
"erickmiller@gmail.com"
] | erickmiller@gmail.com |
b1d03fe434d9aa7ad33c346002d5a6d7ea010925 | 7b55cfc4ffa7678e4c7b8f2312831ebbd549e54f | /proj1/tests/other-tests/strictfp_tests/correct/test_tuple.py | 8ce9ab9744401646dacecf08c9d72e1fbe1ebd21 | [] | no_license | czchen1/cs164-projects | 0d330efef85421e611a436b165428ba0ddfb3512 | a04cafbcaafd32e518227dacf89a6d7837bf9f57 | refs/heads/master | 2020-03-27T04:03:31.727524 | 2018-08-23T21:43:46 | 2018-08-23T21:43:46 | 145,909,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | ()
(1,)
(1, 2,)
1,
1, 2
(),
(1,),
(1, 2,),
1,
1, 2,
| [
"czchen@mit.edu"
] | czchen@mit.edu |
72b6437ef5ca7b5aefc4b55d8aa8094b98848d79 | 323f618462f939621a4287a781986d995f83b5f2 | /controllers/times.py | 33aa7b21e87acd82306ab4aafdd7550e2a897144 | [] | no_license | almamuncsit/virtual-assistant | 3f08e433bd4d9c985a00bfdc2b31bf27b3d8ce9e | 4ea31dc8667e397724229d8383bbfbb0e50ab626 | refs/heads/master | 2023-04-03T18:07:26.775071 | 2021-04-08T17:29:47 | 2021-04-08T17:29:47 | 325,242,463 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | import datetime
from helpers.speak import talk
def tell_current_time(command: str = '') -> None:
time = datetime.datetime.now().strftime('%I:%M %p')
print('Current time is ' + time)
talk('Current time is ' + time)
| [
"msarkar.cse@gmail.com"
] | msarkar.cse@gmail.com |
e8b2d38c4e28e20872f75c2905894f4726cb9371 | 5b3b5fa3f31cb0433e11f0b732e99565fd9f12f2 | /backend/apps/core_app/__init__.py | cc66a389c3df1fa1c79af125775801a53fa50830 | [] | no_license | alexmon1989/directors_portal | 2a30f7eea89f5427008d1b6af295fead75c2e4a5 | 4c7e866983c516b905603913010a9d5842ce61db | refs/heads/master | 2022-12-11T15:33:15.765043 | 2020-05-24T14:16:22 | 2020-05-24T14:16:22 | 223,412,062 | 0 | 0 | null | 2022-12-08T03:14:22 | 2019-11-22T13:41:42 | HTML | UTF-8 | Python | false | false | 56 | py | default_app_config = 'apps.core_app.apps.CoreAppConfig'
| [
"alex.mon1989@gmail.com"
] | alex.mon1989@gmail.com |
7ca0a04a61987c1badff6e351f2ed768d88ec95d | cfc5725c29fc2337982f010f7fe4e5b12b4c56e0 | /cairis/mio/SecurityPatternContentHandler.py | d1f1efc73d2a2d1292d40df0d24e737fcea449d1 | [
"Apache-2.0"
] | permissive | adamrbu/cairis | 63d3a7331e7c4791e3b315cbc451aa274e11fb22 | a16f75a7a9a8c07338c9725114bc9c4d5769bb83 | refs/heads/master | 2020-07-07T22:33:38.037935 | 2016-11-17T23:41:02 | 2016-11-17T23:41:02 | 74,031,346 | 0 | 0 | null | 2016-11-17T13:51:06 | 2016-11-17T13:51:06 | null | UTF-8 | Python | false | false | 9,190 | 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... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
6cae3fd1880276d2095baa103bdb00e254598d16 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/cs61a/untarred/258.py | 2c1e7567d367ed7631bc4bc05fadd3cfb5377b59 | [] | 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 | 662 | py | def num_common_letters(goal_word, guess):
goal_lst = get_list(goal_word)
guess_lst = get_list(guess)
count,index_goal,index_guess = 0,0,0
while index_goal < len(goal_lst):
index_guess = 0
while index_guess < len(guess_lst):
if goal_lst[index_goal] == guess_lst[index_guess]:
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
caa1ce847cecd8996aa4e7804c03acf3eae2eeea | 9bedc6874b3431b140639160160d95153d9e08b8 | /backend/medicar/serializers.py | ee2c5fa5fb683e69095357b38cec73e97871c52b | [
"MIT"
] | permissive | WesGtoX/medicar | 937f279d020fa6063b6ca5c3dbce473f500a23ed | 3a797996e5ae4ba6e2a7e48e1939119ec35ce14d | refs/heads/main | 2023-02-22T23:42:16.601786 | 2023-02-21T22:23:33 | 2023-02-21T22:23:33 | 297,851,512 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | from rest_framework import serializers
from .models import (
Specialty, Doctor, Agenda, MedicalAppointment
)
class SpecialtySerializer(serializers.ModelSerializer):
class Meta:
model = Specialty
fields = ['id', 'name']
class DoctorSerializer(serializers.ModelSerializer):
specialty = ser... | [
"wesley_gto_x@yahoo.com.br"
] | wesley_gto_x@yahoo.com.br |
a80f4a5388cecf959e7f45b5ff50ddaa073b455e | 3325f16c04ca8e641cbd58e396f983542b793091 | /Seção 08 - Funções em Python/Exercícios da Seção/Exercício_32.py | 5639934dfacf41edf31a5578305bf4b059970da4 | [] | no_license | romulovieira777/Programacao_em_Python_Essencial | ac929fbbd6a002bcc689b8d6e54d46177632c169 | e81d219db773d562841203ea370bf4f098c4bd21 | refs/heads/master | 2023-06-11T16:06:36.971113 | 2021-07-06T20:57:25 | 2021-07-06T20:57:25 | 269,442,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | """
32) Faça uma funçao chamada 'simplifica' que recebe como parâmetro o numerador
e o denominador de uma fração. Esta função deve simplificar a fração
recebebida dividindo o numero e o denominador pelo maior fator possível.
Por exemplo, a fração 36/60 simplifica para 3/5 dividindo o numerador e o denominador
por 12. A... | [
"romulo.vieira777@gmail.com"
] | romulo.vieira777@gmail.com |
efff670dafdaadf292866a3b690a4e00d049c1e2 | 8dfe4b53fae92795405d789d52148d1291836afa | /.metadata/.plugins/org.eclipse.core.resources/.history/3/00b991e1899e00151f42de96c018740f | b409020f6d59819ff60a76c6f7ce709f3b747632 | [] | no_license | ymyjohnny/python | e07c54a88954e090cf3d30a4c6f6ac46353063fb | b483fd55e577d4dcceb5762bddf833df23874f3a | refs/heads/master | 2021-01-10T01:10:19.038424 | 2019-07-02T02:40:23 | 2019-07-02T02:40:23 | 45,223,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | #!/usr/bin/python
#coding=utf-8
'''
Created on 2015-12-9
@author: ymy
Copyright ymyjohnny@gmail.com
'''
import filecmp
import sys
try:
dir1 = sys.argv[1]
dir2 = sys.argv[2]
except:
print 'Please input diffdir.py dir1 dir2'
sys.exit()
dirobject = filecmp.dircmp(dir1,dir2)
dirobject.report()
dirobjec... | [
"ymyjohnny@adsame.com"
] | ymyjohnny@adsame.com | |
507e8b90cc0527fbee4d2ffadd56bf8405d20285 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/A/anahlik/konzertkarten_preise_berlin_ebay.py | 29777ec52756850c35318f18b2f71e6625984d58 | [] | 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 | 4,460 | py | # Import Thing
from BeautifulSoup import BeautifulSoup
import urllib
import urllib2
import re
import json
import scraperwiki
import cookielib
username = 'webscrape'
password = 'testing'
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
login_data = urllib.urlencode({'Email_Addr... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
d51629288e152b911527221d578f2c51ca939c91 | c471e8d4d5cf59a68ccfbe79037cb256505b5502 | /venv/lib/python3.8/site-packages/didl_lite/didl_lite.py | 075400a4c216a4d3bfec0d82d26a970f901fafa6 | [
"Apache-2.0"
] | permissive | vsevolodpohvalenko/home-assistant | b7fc37537929cc2c9989df357a8b76eb4de849e3 | 4ae19b7d5d843c65ba700922c1814755257eb4e0 | refs/heads/master | 2023-07-16T08:05:07.126996 | 2021-08-30T11:52:35 | 2021-08-30T11:52:35 | 401,318,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,816 | py | # -*- coding: utf-8 -*-
"""DIDL-Lite (Digital Item Declaration Language) tools for Python."""
# Useful links:
# http://upnp.org/specs/av/UPnP-av-ContentDirectory-v2-Service.pdf
# http://www.upnp.org/schemas/av/didl-lite-v2.xsd
# http://xml.coverpages.org/mpeg21-didl.html
from typing import Any, Dict # noqa: F401 ... | [
"vsevolod.pohvalenko@gmail.com"
] | vsevolod.pohvalenko@gmail.com |
e728f8398ee4d2b4b23f75802c9080edea659b2b | 14dfd44bddfd61f023cd8ce17df49247d4dd736e | /saleor/graphql/checkout/mutations.py | e2df33facdcfa69f1ebb211d7e4f1b76afc63e2f | [
"BSD-3-Clause"
] | permissive | NamoxLabs/Yaab | be4ee8510ac2f1f659879038d0847fabd4ca7b2f | 8ef957a745a89ac866f05a2a4f2196e929645320 | refs/heads/master | 2021-07-06T14:19:29.487602 | 2018-11-06T07:38:31 | 2018-11-06T07:38:31 | 156,343,572 | 0 | 1 | BSD-3-Clause | 2020-09-03T23:42:14 | 2018-11-06T07:29:52 | Python | UTF-8 | Python | false | false | 17,895 | py | import graphene
from django.db import transaction
from ...account.models import Address
from ...checkout import models
from ...checkout.utils import (
add_variant_to_cart, change_billing_address_in_cart,
change_shipping_address_in_cart, create_order, get_taxes_for_cart,
ready_to_place_order)
from ...core i... | [
"giovanniyatze@gmail.com"
] | giovanniyatze@gmail.com |
e22fe83b7d9d052e0297c0fc28bc8f5f0fc472e5 | 0bb474290e13814c2498c086780da5096453da05 | /abc140/A/main.py.1 | 30c03545e7cf79ce7e6aed20c0004558d5b4f1ad | [] | no_license | ddtkra/atcoder | 49b6205bf1bf6a50106b4ae94d2206a324f278e0 | eb57c144b5c2dbdd4abc432ecd8b1b3386244e30 | refs/heads/master | 2022-01-25T15:38:10.415959 | 2020-03-18T09:22:08 | 2020-03-18T09:22:08 | 208,825,724 | 1 | 0 | null | 2022-01-21T20:10:20 | 2019-09-16T14:51:01 | Python | UTF-8 | Python | false | false | 507 | 1 | #!/usr/bin/env python3
import sys
def solve(N: int):
print(N ** 3)
return
# Generated by 1.1.5 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)
def main():
def iterate_tokens():
for line in sys.stdin:... | [
"deritefully@gmail.com"
] | deritefully@gmail.com |
46ddfacb5ee0e8e7632d75e6f8ffa99c750f37a5 | e8e5477e49527e6f9600d15726499e4d54fdb375 | /tests/todomvc/selement_test.py | 4d8e1489aaeea3570169dd1e204557cf4c88286c | [
"Apache-2.0"
] | permissive | cdlz/selene | ad43f2048068d05cd04fc33ed377fa4b5bb5b981 | 07b27a3558ea5151ba9e44a2e1cc0370eb3ba76a | refs/heads/master | 2021-01-20T05:13:38.550701 | 2015-11-30T12:52:41 | 2015-11-30T12:52:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | __author__ = 'ayia'
from selenium import webdriver
from selene.conditions import *
from selene.tools import *
from tests.todomvc.helpers.todomvc import given_active, given_at_other_page
def setup_module(m):
set_driver(webdriver.Firefox())
def teardown_module(m):
get_driver().quit()
def test_assure_hidde... | [
"yashaka@gmail.com"
] | yashaka@gmail.com |
cb590f0d45dd3ededc8910337fe5e051e92d0b36 | 87c0d8230c0828d6ebf13a391e79b7fee245554f | /examples/calendar_spread_other_params.py | 5ff6a8edef319ac56717a608b1193cbf7379fafb | [
"MIT"
] | permissive | haoran-pku/pyBlackScholesAnalytics | 47df6be2841da7b51c88355b71a1eb7886fdc2da | 14c1cc5a75a37b6532bc5365958a6a1aeff7d228 | refs/heads/master | 2022-12-08T10:02:46.518749 | 2020-09-02T10:27:27 | 2020-09-02T10:27:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,835 | py | """
Created by: Gabriele Pompa (gabriele.pompa@gmail.com)
File: calendar_spread_other_params.py
Created on Tue Jul 14 2020 - Version: 1.0
Description:
This script shows usage of Portfolio class to create a Calendar-Spread option strategy. Instantiation examples are
provided with combinations of the underlying ... | [
"gabriele.pompa@gmail.com"
] | gabriele.pompa@gmail.com |
50781fcf699e1344020730f3e793ea7af720b1a3 | 758bf41e46a3093f4923af603f1f7f8063408b9c | /website/testFromRemoteRepo/_bsch3398/museum/python/util.py | f234f3b2c3fd348c26ea15a7aa7d5e99f0176e81 | [] | no_license | mpetyx/mpetyx.com | 4033d97b21c9227a6ba505980fd0c1b57254e8fb | d50c379b4fe09e0135656573f7049225fc90ae36 | refs/heads/master | 2021-01-10T19:50:15.488371 | 2014-01-22T09:04:14 | 2014-01-22T09:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | from django.template import Template
### Utils ###
#file loader
def loader(fname):
fp = open(fname + '.html')
t = Template(fp.read())
fp.close()
return t
def http_response(html, cookie=""):
if cookie:
return "Content-Type: text/html\r\n" + "Set-Cookie: " + cookie + "\r\n\r\n" + html
e... | [
"mpetyx@gmail.com"
] | mpetyx@gmail.com |
7f355412603ab90cf566454b02cd6db9bb88ce59 | 1d0c89ecaa7598e5cb6a26a20a1bdd5f51d60123 | /apps/venta/migrations/0001_initial.py | 1e174709306a38441e1c69606a581ee269eeed31 | [] | no_license | chrisstianandres/american_audio | a1fee70e798a151fcbfd492ed75878a8524c783b | ee31f01af4212cc2484188003900648064811fcb | refs/heads/master | 2023-02-01T02:36:59.824789 | 2020-12-09T23:17:45 | 2020-12-09T23:17:45 | 307,203,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,713 | py | # Generated by Django 3.1.1 on 2020-11-05 20:20
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('producto', '0001_initial'),
('cliente', '0001_i... | [
"Chrisstianandres@gmail.com"
] | Chrisstianandres@gmail.com |
3093e8e99ee9aafc0e5167f45975ffcf05fab075 | 3fe1e3645bf87d18dfe4db2d47b855dcc6cd682a | /authlete/dto/userinfo_response.py | f3aa2dc3e7f4bd9b5d207a8a26c040cde1e471e5 | [
"Apache-2.0"
] | permissive | authlete/authlete-python | 35f0ce3af935a4871cf3a899770eb30c52514b6f | 751514c525cd04a930373de78463a1fe71b6da60 | refs/heads/master | 2021-07-05T05:02:53.388485 | 2020-11-04T15:25:30 | 2020-11-04T15:25:30 | 199,516,861 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,464 | py | #
# Copyright (C) 2019-2020 Authlete, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | [
"taka@authlete.com"
] | taka@authlete.com |
e58d4f93529b4eb28585e44c666b3504e20c7fe3 | 1979ad81f809a8e6798dbaeca38fa3a5920bca7d | /pyprint/pyprint/src/components/cmd_component.py | aaa33c23afb9441ce4e89e38a40e6f0d8986655d | [] | no_license | eacevedof/prj_python37 | 90951f17f3f3e2d6a846e73f05088079568fa1de | 4a2d7065b234dac048fc753d5a71fff756fbab86 | refs/heads/master | 2023-04-28T08:58:27.414511 | 2023-04-21T21:17:43 | 2023-04-21T21:17:43 | 175,962,623 | 4 | 2 | null | 2023-02-16T01:33:46 | 2019-03-16T11:20:28 | Python | UTF-8 | Python | false | false | 354 | py | from subprocess import PIPE, Popen
from src.factories.log_factory import get_log
class CmdComponent:
def __init__(self):
self.__log = get_log()
@staticmethod
def exec(cmd: str) -> str:
process = Popen(
args=cmd,
stdout=PIPE,
shell=True
)
... | [
"eacevedof@yahoo.es"
] | eacevedof@yahoo.es |
f483c1e35081bd6b0b3b1378977a59652f1e90ef | d37277c61facf70dae7d74c82e5b14826d0f7029 | /task6_KirrShortener/src/shortener/models.py | 049c2ab04099e1a05a5d063282d916e30f336530 | [] | no_license | ProgMmgGhoneim/Django-Tasks | d8d53acbec6e042261ee28ef0e5931fb40e93fd7 | 2288c1a9c3d1348897f5fb7be42bc807719aacb4 | refs/heads/master | 2020-03-30T08:41:10.720962 | 2018-10-01T23:27:59 | 2018-10-01T23:27:59 | 151,031,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | import string
import random
from django.db import models
from .utils import code_generator
# Create your models here.
class KirURLModel(models.Model):
Url = models.CharField(max_length=100)
Shortcode = models.CharField(max_length=200 , unique =True ,blank=True)
Title = models.CharField(max_length=100,nul... | [
"progmmgghoneim@gmail.com"
] | progmmgghoneim@gmail.com |
79dba5c5263f8521a944dc7a63dd1b403082c7e3 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_211/60.py | d5f07e75834009a86562a88bf8590def7223b27c | [] | 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 | 985 | py | import functools
def solve(N, K, U, P):
while U > 0:
min_P = min(P)
argmins = [i for i in range(N) if P[i] == min_P]
next_min_P = max(P)
for i in range(N):
if P[i] > min_P and P[i] < next_min_P:
next_min_P = P[i]
if next_min_P == min_P... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f63dd95659419b5cf7444e2542a2eeb676f1e601 | aeeec9b63f46df4a3d1cab45456a2392b5ed37cf | /sale_oplos/models/stock.py | 8ff5d9c59d5f1cf14004eba9239509801c0438df | [] | no_license | davidsetiyadi/addons_v10 | c5d89a49784387cf38b65bb0898fce9f1e8da3be | 1d714436c5a262ac53928dbb9f30783a6c1efef2 | refs/heads/master | 2020-03-11T18:23:30.351820 | 2018-09-09T01:29:22 | 2018-09-09T01:29:22 | 130,176,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,978 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from datetime import datetime
from dateutil import relativedelta
import time
from odoo import api, fields, models, _
from odoo.addons import decimal_precision as dp
from odoo.addons.procurement.models import procurement... | [
"davidsetiadi11@gmail.com"
] | davidsetiadi11@gmail.com |
101e483185d60609753aa7ce689f70171333208e | 95eb3b81828fdc44847bc53214e6d5ca5aaca1db | /litepcie/phy/usppciephy.py | 565df49b6d32e371ea981eaf43081fba33f55be0 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | wangqueping/litepcie | 39441c9a6518faa7647d81b051750139b4ba5d6b | 6ce80b4e41f7d9a24675a1196be109f55115868b | refs/heads/master | 2023-01-28T21:39:42.301031 | 2020-11-24T12:52:45 | 2020-11-24T12:52:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,906 | py | #
# This file is part of LitePCIe.
#
# Copyright (c) 2020 Enjoy-Digital <enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
import os
from migen import *
from litex.soc.interconnect.csr import *
from litepcie.common import *
from litepcie.phy.common import *
# USPPCIEPHY ------------------------------------... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
8081e611a3a578653c3e7131e377e4f89c296b1e | f9ed608c620093b9f6b5058bcedf7ae610c09c8d | /274-H-Index.py | cdc52273a78c0e5e7950c5e08486759b5ae456ef | [] | no_license | chanyoonzhu/leetcode-python | 9b88d7f2749e1ae3ed597759b1bf9f7fa4912c35 | 085d868ba0458fc8e6b5549aa00fa151c335fa7f | refs/heads/master | 2022-05-24T11:20:35.927915 | 2022-04-16T06:02:33 | 2022-04-16T06:02:33 | 166,224,197 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | """
- greedy with sort
- O(nlogn), O(logn)
"""
class Solution:
def hIndex(self, citations: List[int]) -> int:
citations.sort(reverse=True)
h, n = 0, len(citations)
while h < n:
if citations[h] <= h : # citations[:h+1] all larger than citation[h], if citations[h] > h, there are h ... | [
"zhuchanyoon@gmail.com"
] | zhuchanyoon@gmail.com |
b89b6b21018cefcdedf7951fbc59abf0a948b661 | c33617b283b317a36dd790c31e16ccb46754fe1a | /backend/home/api/v1/serializers.py | 1ce6faede8065c3e232fee12dd2351821ea3d8e4 | [] | no_license | crowdbotics-apps/mobile-app-again-al--5938 | 171e6142b7b947e4e26b5a3e347f7cb1dd3c56a1 | 20ae40c2e06b297acf7cdb4bc5198a83b240df61 | refs/heads/master | 2022-11-19T22:39:44.464694 | 2020-07-01T19:34:44 | 2020-07-01T19:34:44 | 271,835,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,875 | py | from django.contrib.auth import get_user_model
from django.http import HttpRequest
from django.utils.translation import ugettext_lazy as _
from allauth.account import app_settings as allauth_settings
from allauth.account.forms import ResetPasswordForm
from allauth.utils import email_address_exists, generate_unique_user... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
046d386833814e3b859c0ae71f651f3e5117102e | 2e5c174af6e6f8ed75badd13185de3da87ea07ee | /level3/level3_ex12.py | 8e1e7a58970c23c507b3981ab4eedb43823cc91f | [] | no_license | jaeyun95/Programmers | 4b0a6550a3b9664e31c8446886116a4cc9185013 | 66fbac989d4f7610c2638b465cbff6502f288fe2 | refs/heads/master | 2021-06-23T11:02:58.623868 | 2021-05-20T08:44:39 | 2021-05-20T08:44:39 | 224,216,937 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #(12) 거스름돈
def solution(n, money):
answer = 0
count_table = [[1 if i == 0 and j%money[0] == 0 else 0 for j in range(n+1)] for i in range(len(money))]
for i in range(1, len(money)):
for j in range(n+1):
if j >= money[i]:
count_table[i][j] = (count_table[i-1][j]+count_tabl... | [
"wodbs9522@gmail.com"
] | wodbs9522@gmail.com |
8985aea9d4dd53d48313b9ab20e7c22cff029e91 | 01abb5fe2d6a51e8ee4330eaead043f4f9aad99d | /Repo_Files/Zips/plugin.video.streamhub/resources/lib/indexers/streamhub.py | d92541fd8b4330710896e7b65d324eddbca3e102 | [] | no_license | MrAnhell/StreamHub | 01bb97bd3ae385205f3c1ac6c0c883d70dd20b9f | e70f384abf23c83001152eae87c6897f2d3aef99 | refs/heads/master | 2021-01-18T23:25:48.119585 | 2017-09-06T12:39:41 | 2017-09-06T12:39:41 | 87,110,979 | 0 | 0 | null | 2017-04-03T19:09:49 | 2017-04-03T19:09:49 | null | UTF-8 | Python | false | false | 60,899 | py | # -*- coding: utf-8 -*-
'''
Phoenix Add-on
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 progr... | [
"mediahubiptv@gmail.com"
] | mediahubiptv@gmail.com |
ff3aeee5c342bc376eb7d32abe0950b58b287bf8 | 08f6237dee72a476b258ee6c4bfc6e20bb307e2b | /mysqrt.py | 93d99358b7f71c2abb2714ca0fefe9bd339535c0 | [] | no_license | 0siris7/Think-python-repo | 2fa110898f6be9c922b6988605bb46dcc2140ef1 | ea126cea4040b88d78a5ab54345fe966ba1b4a8c | refs/heads/master | 2020-06-25T17:54:26.987797 | 2020-01-21T17:44:53 | 2020-01-21T17:44:53 | 199,383,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | from math import sqrt
def mysqrt(a):
x = 3
y = (x + (a/x)) / 2
while True:
if abs(y - x) < 0.0000001:
return y
else:
x = y
y = (x + (a/x)) / 2
def test_square_root():
a = int(input("Enter the number (a): >"))
print("a\tmysqrt(a)\tmath.sqrt(a)\... | [
"sarang.prakash2@gmail.com"
] | sarang.prakash2@gmail.com |
028e670f8fa193884f8b0d25bf8a1d79438d102f | 24a1da610a57d9558a7261ed9ca92b20d8689634 | /March/5Day/Binary_Tree_Right_Side_View.py | 96305acc2887af42f4d0fcb0d1c98ba0a610d81a | [] | no_license | JadeKim042386/LeetCode | b5b70a8100a19d705150f276ee8e0dc11c5038b2 | 77234a14dc97bd0e023842cd57698b37d1460511 | refs/heads/master | 2023-06-09T20:16:36.352246 | 2021-07-06T09:25:15 | 2021-07-06T09:25:15 | 349,680,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | from typing import List
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def __init__(self):
self.answer = []
def rightSideView(self, root: TreeNode):
if not root... | [
"jk042386@gmail.com"
] | jk042386@gmail.com |
05fbe00c0f2f44b15758d31b9eff00be253991a8 | b4cf6c790b0cf850e95787cd71b6a0a1314e9df6 | /bin/untrend | 43e5db0fbf429dccb7a27ce838346e3c17256265 | [
"MIT"
] | permissive | JinbiaoJi/untrendy | 52769fc559b5abff84e6f08b38cf851c041a38c9 | b6372fee2200386a4ed8907724da045f00c4570b | refs/heads/master | 2020-05-03T12:35:34.617293 | 2013-06-18T14:39:56 | 2013-06-18T14:39:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,940 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Command Line Untrending
-----------------------
There is also the option of using **Untrendy** from the command line if you
don't want to bother with all the Python stuff. If you have a whitespace
separated ASCII file containing your light curve, you can de-trend it by... | [
"danfm@nyu.edu"
] | danfm@nyu.edu | |
7ee0fa364d52aefdfc2e26460e86669ddac20a51 | 4323476bff74d551d192d23f93f09abbeb5369d4 | /part3/template3b.py | 03e64d8e3a20bc0ecdf805af925d1393fd36ae7d | [
"MIT"
] | permissive | EricxY211/lsbate | a7736174bfc8faf73590c76a52ce3771bfc2532c | c6757ed2d9154cb42a6cd4f6ffdcd614a9ca9972 | refs/heads/master | 2020-09-08T16:48:06.648494 | 2016-07-10T05:44:56 | 2016-07-10T05:54:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,250 | py | # -*- coding: utf-8 -*-
# tested on Python 3.5.1
import os
import re
class CodeBuilder:
INDENT_STEP = 4 # 每次缩进的空格数
def __init__(self, indent=0):
self.indent = indent # 当前缩进
self.lines = [] # 保存一行一行生成的代码
def forward(self):
"""缩进前进一步"""
self.indent += self.IN... | [
"opensource.mozillazg@gmail.com"
] | opensource.mozillazg@gmail.com |
82b01706722b44129007a91138d9878cb6095d92 | d75fc0ae459066bfb15187d1c902e22000153dc4 | /TestScript/plantemplatestagnotesdelete.py | 64b623d4d9772a1b398aa4ddb8b83c016ec020a2 | [] | no_license | sureshkumarkadi/Project | 875a05a752164ff9620286ab8261c7774acc4f27 | 4652edfa6ac47d6f44bd41e03314d96753e09d92 | refs/heads/master | 2020-03-25T19:52:23.124215 | 2018-08-09T05:28:08 | 2018-08-09T05:28:08 | 144,104,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,994 | py | #-------------------------------------------------------------------------------
# Name: module2
# Purpose:
#
# Author: suresh.kumar
#
# Created: 12/07/2017
# Copyright: (c) suresh.kumar 2017
# Licence: <your licence>
#-------------------------------------------------------------------------------... | [
"Suresh.Kumar@causeway.com"
] | Suresh.Kumar@causeway.com |
20d524a6584bd37664466b596808e897408cf276 | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/abc/abc020/C/answers/797166_knottyknot.py | f02f7f109a19095f74d64cf516e8138c652a9671 | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | H, W, T = map(int, input().split())
inf = 10**18
s = []
for h in range(H):
s.append(input())
start = 0
goal = 0
edges = []
for h in range(H):
for w in range(W):
if s[h][w] == 'S':
start = h*W+w
elif s[h][w] == 'G':
goal = h*W+w
if h > 0:
edges.append((W*h+w, W*(h-1)+w))
if ... | [
"kojinho10@gmail.com"
] | kojinho10@gmail.com |
824bc61d2ff94343d56ad679b73d559df778ea8e | 7bead245354e233f76fff4608938bf956abb84cf | /test/test_detect_line_endings_response.py | 066170dfa7e69e3705be1ff04cfb75dca923c389 | [
"Apache-2.0"
] | permissive | Cloudmersive/Cloudmersive.APIClient.Python.Convert | 5ba499937b9664f37cb2700509a4ba93952e9d6c | dba2fe7257229ebdacd266531b3724552c651009 | refs/heads/master | 2021-10-28T23:12:42.698951 | 2021-10-18T03:44:49 | 2021-10-18T03:44:49 | 138,449,321 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | # coding: utf-8
"""
convertapi
Convert API lets you effortlessly convert file formats and types. # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import cloudmersive_convert_api_... | [
"35204726+Cloudmersive@users.noreply.github.com"
] | 35204726+Cloudmersive@users.noreply.github.com |
76bd26299f94bcb882f1c541a9d17e8147ec0b3f | 890a5467cb32658af1349010dae8a788715aaa04 | /190917/solvingclub1865동철이의일분배.py | 442ee3dbe1e80c746ef4d796d6759b015689d3ce | [] | no_license | Dianeha/algorithm_study | eaab20f87da08887efbd692dec0a2c965eb960a3 | fa4150c185421324c4ad0500b93c146c596a1c2a | refs/heads/master | 2020-07-07T12:57:07.759038 | 2019-09-25T08:52:40 | 2019-09-25T08:52:40 | 203,354,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | import sys
sys.stdin = open('input.txt', 'r')
def perm(k, val):
global ans
global cnt
cnt += 1
if k == N:
tr.append(nums)
print(nums)
else:
for i in range(k, N):
nums[k], nums[i] = nums[i], nums[k]
perm(k + 1)
nums[k], nums[i] = n... | [
"gvbhjnmk@gmail.com"
] | gvbhjnmk@gmail.com |
fdc93d37fcc76caf5551f76caf99bff7cc39984b | b20516f56f24f0f0441f8c5f56f03252af66adb1 | /apps/Grammar_foundation/new_init.py | 1a56caf28c18db737b76ea966c08c729c90a5f07 | [] | no_license | yuyexiaohan/python_base | 2c59a26043a8fa9a2a076a2b39de1591cd158a8d | a94f5fcab3c1876227897d0ae6deb3340d5f44a8 | refs/heads/master | 2020-03-26T23:34:04.159036 | 2019-03-21T16:02:37 | 2019-03-21T16:02:37 | 145,552,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # coding=utf-8
# @Time : 2018/8/24 23:22
# @Author : achjiang
# @File : new_init.py
class Vector:
def __init__(self, a, b):
self.a = a
self.b = b
def __str__(self):
return 'Vector(%d, %d)' % (self.a, self.b)
def __add__(self, other):
return Vector(self.a + other.a, self.b ... | [
"htxz_jiang@163.com"
] | htxz_jiang@163.com |
7e219f3f5edc49e4a2df476b067809d47458668b | 5c5c5af6d7f88dfcae2f869a22b29e714b58ae12 | /job_scripts/sequence_design_for_LHL_reshaping_example.py | f4f5dd29037cafe9f820e6905404ca6d74ade108 | [] | no_license | jxwangxl/local_protein_sequence_design | 634c6106b2c0f29fa5bd5ec24658bf9ccfd9388c | ea75f9401215eb4d3b821a24501615ae15d480de | refs/heads/master | 2020-04-25T09:25:58.224071 | 2019-02-02T18:20:16 | 2019-02-02T18:20:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,020 | py | #!/usr/bin/env python3
import os
import sys
import time
import json
import pyrosetta
from pyrosetta import rosetta
import local_protein_sequence_design as LPSD
def print_pymol_selection_for_residues(pose, residues):
'''Print the pymol selection command for the residues.'''
res_commands = ['(c. {0} and res... | [
"xingjiepan@gmail.com"
] | xingjiepan@gmail.com |
51385c74e2ac310f3b322b12e3bc933edbdc6d8c | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/QName/Schema+Instance/NISTXML-SV-IV-list-QName-minLength-2-1.py | 115dedd45f4bcad16cb58fefaa921bb906a1b7bc | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 864 | py | from output.models.nist_data.list_pkg.qname.schema_instance.nistschema_sv_iv_list_qname_min_length_2_xsd.nistschema_sv_iv_list_qname_min_length_2 import NistschemaSvIvListQnameMinLength2
from xml.etree.ElementTree import QName
obj = NistschemaSvIvListQnameMinLength2(
value=[
QName("{http://www.nist.gov/xs... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
1a8c5c2bd0f429291781dc100fbfddaead3a6a6f | 3dc8a63be515e5677f1b2b18ed21431f0da1257f | /booksAuthors_project/apps/booksAuthors_app/migrations/0004_auto_20180321_1128.py | 634187fc9775b3e967eb7635d27db977e35d5b53 | [] | no_license | IanDanner/Django | a686e5e68eee5d452f16d66a8b3161645790075a | f000adf3126db3d57559f1146da669b37b14f755 | refs/heads/master | 2020-03-21T21:37:05.076714 | 2018-06-28T22:22:10 | 2018-06-28T22:22:10 | 139,073,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-21 18:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('booksAuthors_app', '0003_auto_20180321_1123'),
]
operations = [
migrations... | [
"norseman117@gmail.com"
] | norseman117@gmail.com |
6f8ce621fc71b3a4a57fd4b224806ed16bc7c449 | e73f0bd1e15de5b8cb70f1d603ceedc18c42b39b | /adventOfCode/2016/4.py | c2b7fcaef736ecb09c07cc42c65223241d45040c | [] | no_license | thran/the_code | cbfa3b8be86c3b31f76f6fbd1deb2013d3326a4a | ba73317ddc42e10791a829cc6e1a3460cc601c44 | refs/heads/master | 2023-01-05T14:39:16.708461 | 2022-12-25T08:37:39 | 2022-12-25T08:37:39 | 160,978,160 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | from collections import Counter
from ciphers import caesar
with open('4.txt') as f:
lines = [l.replace('\n', '') for l in f.readlines()]
s = 0
for line in lines:
line = line.split('-')
name = ''.join(line[:-1])
check = line[-1].split('[')[-1][:-1]
number = int(line[-1].split('[')[0])
counts ... | [
"thran@centrum.cz"
] | thran@centrum.cz |
1d2cf0987ceb1f15c9f54c7fbb6505866bb02375 | 59bd9c968a3a31a73d17f252fe716a3eacdf7f4f | /portfolio/Python/scrapy/bosch_russian_diy/__init__.py | 8456b1b5843d88413cbefe019fc4ee153268a404 | [
"Apache-2.0"
] | permissive | 0--key/lib | 113ff1e9cf75e446fa50eb065bc3bc36c090d636 | a619938ea523e96ab9e676ace51f5a129e6612e6 | refs/heads/master | 2023-06-23T22:17:54.244257 | 2023-06-21T17:42:57 | 2023-06-21T17:42:57 | 23,730,551 | 3 | 5 | null | 2016-03-22T08:19:30 | 2014-09-06T08:46:41 | Python | UTF-8 | Python | false | false | 35 | py | ACCOUNT_NAME = 'Bosch Russian DIY'
| [
"a.s.kosinov@gmail.com"
] | a.s.kosinov@gmail.com |
6a203da8266a0e86f4e5efce9963d553af786a3a | 571075b354cb94ca01a943258dbdc419559da8bc | /vector/labeled2vec.py | 93c8ea4081b83d8c849b9f024c284c84a6e19d41 | [] | no_license | wtgme/LeNet | df930b0d8272daa17ab16b33cd7211524f0f82e2 | 94c53ea7c62eb41ca94bc42bcbea9bef4fdb1ced | refs/heads/master | 2021-01-13T07:59:00.218393 | 2016-10-24T17:22:17 | 2016-10-24T17:22:17 | 69,986,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,838 | py | # -*- coding: utf-8 -*-
"""
Created on 4:52 PM, 5/2/16
@author: tw
"""
import sys
from os import path
sys.path.append(path.dirname(path.dirname(path.dirname(path.abspath(__file__)))))
import pickle
from collections import OrderedDict
import numpy as np
import pandas as pd
from sklearn.feature_extraction.text import T... | [
"wtgmme@gmail.com"
] | wtgmme@gmail.com |
74c5346477e270fbc0739952bbcc4f8983f0845a | 825cb21f82ded03cc8c5f202eff8ae0f7e7d9d38 | /classcode/basics/funcs2.py | f96d08f650844164f19a9a087fa10adf7f6a27ba | [] | no_license | MorisGoldshtein/127 | fe0fd45f353af00ebd3df146f5c279342456e3b4 | 299b7685986e61eb9e33c99a1749d85f8b6d3264 | refs/heads/master | 2020-09-08T02:33:49.630556 | 2019-11-04T14:24:04 | 2019-11-04T14:24:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | def f(a):
a = a + 10
return a
def inc(val):
val = val + 1
return val
def add2(a,b):
result = a + b
return result
a = 10
print(f(a))
b = 10
c = inc(b)
print("C is ",c)
a = 15
b = 30
result = add2(a,b)
print(result)
s1 = "hello"
s2 = "world"
print(add2(s1,s2))gi | [
"zamansky@gmail.com"
] | zamansky@gmail.com |
9ed38a896f34fd630f06a5f45f548a89e14b1459 | 18aee5d93a63eab684fe69e3aa0abd1372dd5d08 | /test/ir/inference/test_trt_convert_lookup_table_v2.py | 60bd6c6f267af9cb05b8ed8a0e53d0649bb132eb | [
"Apache-2.0"
] | permissive | Shixiaowei02/Paddle | 8d049f4f29e281de2fb1ffcd143997c88078eadb | 3d4d995f26c48f7792b325806ec3d110fc59f6fc | refs/heads/develop | 2023-06-26T06:25:48.074273 | 2023-06-14T06:40:21 | 2023-06-14T06:40:21 | 174,320,213 | 2 | 1 | Apache-2.0 | 2022-12-28T05:14:30 | 2019-03-07T10:09:34 | C++ | UTF-8 | Python | false | false | 4,891 | py | # Copyright (c) 2023 PaddlePaddle Authors. 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 appli... | [
"noreply@github.com"
] | Shixiaowei02.noreply@github.com |
ec7d640f44c5428cfb680e73a2d9ce3a0473b5c8 | 664eaaf3ce1329637966ee85752a4bf792f93d64 | /mainapp/migrations/0021_shareselection.py | a4c3895a8ba295907334b0029c121cd6898c83e9 | [] | no_license | rajinder-mohan/thelunchbox | 6fb9f7228490e22da58f59a29601aebec9c8fd35 | 54e3a14229fd72d24152671fb8f0bc13ae83be8c | refs/heads/master | 2021-05-04T16:25:33.015292 | 2018-02-05T03:43:34 | 2018-02-05T03:43:34 | 120,251,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-18 13:37
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"rajinder_mohan@esferasoft.com"
] | rajinder_mohan@esferasoft.com |
70e7fc9d420f00b0092db06bafdb5bf222ec6be1 | 0c672b0b8431064617831d16bf0982d5d3ce6c27 | /utils/mongoDB.py | e32f7d4959ea03ccdf324a271c67740d9fa9c249 | [] | no_license | buxuele/amazon_books | 617327376044ffd4e760fdc1a71962119717cfe8 | 691bd3e48bd1730dbc4a4a855e84e0b1c3e9c2ec | refs/heads/master | 2023-03-09T23:18:14.730828 | 2021-03-01T10:53:47 | 2021-03-01T10:53:47 | 342,610,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,748 | py | import datetime
from pymongo import MongoClient
from pprint import pprint
# todo 重写这部分。方法命名之间太繁杂了。
class Mongo:
def __init__(self, db, collections):
self.client = MongoClient('localhost', 27017)
# 这里需要检查一下给出的2个名称是否已经存在了,
# 如果存在同名的,就删除,然后重建。是不是有点暴力啊。??? todo
# 还算太危险了, 误伤的几率比较高。
... | [
"baogexuxuele@163.com"
] | baogexuxuele@163.com |
6f5cdc8a5b2d4734d2a27f9829e670dd51f775b6 | 29eacf3b29753d65d8ec0ab4a60ea1f7ddecbd68 | /lightly/cli/config/get_config.py | 644d1864c3a522eac55fc026573fdfeee5eaf43c | [
"MIT"
] | permissive | lightly-ai/lightly | 5b655fe283b7cc2ddf1d7f5bd098603fc1cce627 | 5650ee8d4057139acf8aa10c884d5d5cdc2ccb17 | refs/heads/master | 2023-08-17T11:08:00.135920 | 2023-08-16T12:43:02 | 2023-08-16T12:43:02 | 303,705,119 | 2,473 | 229 | MIT | 2023-09-14T14:47:16 | 2020-10-13T13:02:56 | Python | UTF-8 | Python | false | false | 427 | py | from pathlib import Path
from omegaconf import DictConfig, OmegaConf
def get_lightly_config() -> DictConfig:
config_path = Path(__file__).with_name("config.yaml")
conf = OmegaConf.load(config_path)
# TODO(Huan, 05.04.2023): remove this when hydra is completely dropped
if conf.get("hydra"):
# ... | [
"noreply@github.com"
] | lightly-ai.noreply@github.com |
2a0455871a259a9223f35753e07eaae445d0ddf3 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4138/codes/1638_2724.py | b50fd76b1d61fd6fa83a9a59ea8371dd34f92c5f | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | n1 = int(input("insira o numero1: "))
n2 = int(input("insira o numero2: "))
n3 = int(input("insira o numero3: "))
if(n1 > n2 > n3):
print(n2)
if(n1 > n3 > n2):
print(n3)
if(n2 > n3 > n1):
print(n3)
if(n2 > n1 > n3):
print(n1)
if(n3 > n2 >n1):
print(n2)
if(n3 > n1 > n2):
print(n1) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
cd5cc3b683cad61fd94637b9adcb9715524ef3d0 | 443585e4fc146308b18bc2f9234d0947da38d3e5 | /practice/math/2869.py | c2fb2090c0845d8366a0071de52cb856e5962870 | [] | no_license | ggyudongggyu/20201208commit | b524c4a7fb241cacaacffa5882c55d1d0ccba11f | fbb58a8ed06f454a2a79a9b8c75deabaec62b317 | refs/heads/master | 2023-02-02T21:59:51.518218 | 2020-12-24T14:32:21 | 2020-12-24T14:32:21 | 319,578,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | import math
A, B, V = map(int, input().split())
print(math.floor(V/(A-B)))
| [
"donggyu0219@gmail.com"
] | donggyu0219@gmail.com |
b72f869045e71f22a681e1075e33d4da4c3f717f | 790639c0c83602fb786284f1f7315dd36a5cd159 | /bin/check_json.py | d41bdc17341f8461a6aecf4a46799a1098001db0 | [
"Apache-2.0"
] | permissive | belbio/schemas | 7af6a4a84e268327c15ec345d8bf36112c2eaa4f | 15ff116d141508a8581c4d3e1facfc80cae071e5 | refs/heads/master | 2023-03-29T22:30:54.659624 | 2020-12-30T14:33:10 | 2020-12-30T14:33:10 | 106,302,301 | 2 | 0 | Apache-2.0 | 2021-04-20T17:05:27 | 2017-10-09T15:35:33 | Python | UTF-8 | Python | false | false | 2,649 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Usage: check_json.py schema jsonfile
"""
import click
import jsonschema
import re
import gzip
import json
import yaml
from typing import Tuple, List, Mapping, Any
def validate_to_schema(data, schema: Mapping[str, Any]) -> Tuple[bool, List[Tuple[str, str]]]:
""... | [
"william.s.hayes@gmail.com"
] | william.s.hayes@gmail.com |
442005609e8b1ad14f7880149001848d1230ab11 | 4100b5f885de996d5b1315d5aaf75352cfd7ffca | /withoutrestm/test.py | 60d0ea35c88d14a46ba1527b882ad5e549f5b988 | [] | no_license | shivendra04/RestApiProjects | be2e46e8c9ad03303a8f60d85bc1f5dd3dc0ac92 | eadebfe481b18afccbdc2f4afc52dbbc4206f8d0 | refs/heads/master | 2022-12-24T22:02:15.072502 | 2020-09-22T08:48:02 | 2020-09-22T08:48:02 | 297,587,095 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | import requests,json
BASE_URL='http://127.0.0.1:8000/'
ENDPOINT='api/'
# def get_resource(id=None):
# data={}
# if id is not None:
# data={
# 'id':id,
# }
# resp=requests.get(BASE_URL+ENDPOINT,data=json.dumps(data))
# print(resp.status_code)
# print(resp.json())
# get_resourc... | [
"52535417+shivendra04@users.noreply.github.com"
] | 52535417+shivendra04@users.noreply.github.com |
64e5c6ea3b3dd6a2f4a27f350de216f7653b9107 | a9243f735f6bb113b18aa939898a97725c358a6d | /0.12/_downloads/plot_visualize_evoked.py | b456f656629749c615ce00ab3a7649c2fd2680ab | [] | permissive | massich/mne-tools.github.io | 9eaf5edccb4c35831400b03278bb8c2321774ef2 | 95650593ba0eca4ff8257ebcbdf05731038d8d4e | refs/heads/master | 2020-04-07T08:55:46.850530 | 2019-09-24T12:26:02 | 2019-09-24T12:26:02 | 158,233,630 | 0 | 0 | BSD-3-Clause | 2018-11-19T14:06:16 | 2018-11-19T14:06:16 | null | UTF-8 | Python | false | false | 7,963 | py | """
.. _tut_viz_evoked:
=====================
Visualize Evoked data
=====================
"""
import os.path as op
import numpy as np
import matplotlib.pyplot as plt
import mne
###############################################################################
# In this tutorial we focus on plotting functions of :class:... | [
"larson.eric.d@gmail.com"
] | larson.eric.d@gmail.com |
6858ba52efdf1188fc911a136345e68c10eaa78c | a29f151197c85dee8f05493a8fe697549391fef2 | /nr10_Operacje_WEJŚCIA_I_WYJŚCIA/nr003_Kontrola_sciezki_do_pliku_LAB.py | 6d3831677a01900d5acf7393779e7079e86d5dc2 | [] | no_license | sswietlik/helloPython | 18a9cd3bb6ab9276415cbb018c9153c99abcb2f0 | d207567e7d5eabd9d7eef8c72538453ca3382021 | refs/heads/master | 2022-11-26T20:15:07.723910 | 2020-08-11T06:44:34 | 2020-08-11T06:44:34 | 261,168,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,788 | py | # /home/slavo/temp/
# /home/slavo/temp/data_input/
import os
import datetime
##W zmiennej data_input_catalog zapamiętaj ścieżkę 'c:\temp\data_input'
data_input_catalog = r'/home/slavo/temp/data_input/'
#W zmiennej data_output_catalog zapamiętaj ścieżkę ... | [
"sswietlik@gmail.com"
] | sswietlik@gmail.com |
ca84cbef1849505397e1026d833e591fa8d18985 | faebf881f10623df49db7390d7b4a7bfcea94e0d | /backend/cadiDeltaLogger.py | 472a1b6fad7e19b839cc019ec50cbb481dfceb9c | [] | no_license | jhakala/cadiTool | c69d7ba5e0f2932b8ec6f99c28baa3a50dada900 | fee50b9c9d9fe34fb47f09f3f493f43bfc1e548e | refs/heads/master | 2020-03-12T04:03:22.115176 | 2018-04-24T21:17:29 | 2018-04-24T21:17:29 | 130,436,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,369 | py | import requests
import cookielib
import json
import json_delta
import sqlite3
import shlex
from time import sleep
from datetime import datetime
from os import path, getcwd, remove, environ
from subprocess import check_call
def connectToDB(dbFileName = "cadiDiffs.sqlite"):
# setup for reading what's in the cadi diff... | [
"john_hakala@brown.edu"
] | john_hakala@brown.edu |
af62e71482853576b2405bd9bdecd9dc666d321b | 78c0a441742a4451fcca2d304d30bd21ce2b2dbd | /_old/src/predict_2017_06_17_5.py | 174853bbd1b39f95414b3a90988b5c7d93d40fc8 | [] | no_license | ivan-filonov/mlbootcamp_5 | c7aa7506a6d929a055f89c9129584f0df71490c1 | b3b06eb91c1cbc81fea68fb1724197513a19b07a | refs/heads/master | 2023-08-19T06:58:05.099722 | 2019-08-22T11:25:30 | 2019-08-22T11:25:30 | 97,398,154 | 4 | 1 | null | 2023-08-28T17:18:16 | 2017-07-16T17:08:06 | Python | UTF-8 | Python | false | false | 13,871 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 15 20:26:49 2017
@author: user
"""
import datetime
import os
import sys
import matplotlib.pyplot as plot
import numpy as np
import pandas as pd
import seaborn as sns
import xgboost as xgb
from sklearn import ensemble
from sklearn import metrics
fr... | [
"ivan.filonov@gmail.com"
] | ivan.filonov@gmail.com |
e4134a76c7542bacfdefba4e5b92a242878e9c6c | 525f2167cdd3ab0c1c7f9d9e29bda9d779f99ea3 | /utils/convolution.py | a0054c411f6bb45cea45c711ff17d06d16f0519f | [] | no_license | slowmoyang/torch4hep | 416d35c3a23f5364d6f5f41a44cd4356b653e5d8 | 2afe5ddfc3edce2b2af63ab34842c38101b785d6 | refs/heads/master | 2020-03-24T21:04:11.498856 | 2019-02-04T13:49:33 | 2019-02-04T13:49:33 | 142,560,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,672 | py | '''arXiv:1603.07285
https://github.com/vdumoulin/conv_arithmetic
https://tensorflow.blog/a-guide-to-convolution-arithmetic-for-deep-learning/ (Korean)
https://www.tensorflow.org/api_guides/python/nn#Notes_on_SAME_Convolution_Padding
'''
from __future__ import absolute_import
from __future__ import division
from __fut... | [
"slowmoyang@gmail.com"
] | slowmoyang@gmail.com |
0ffa118d630ccc5e3fc13e746dd5e520e1b91799 | 44600adf1731a449ff2dd5c84ce92c7f8b567fa4 | /colour_down/models/rgb/transfer_functions/tests/test_itur_bt_2020.py | 53c2f67e973a1df05aaaae7b936c0bc2b8227e39 | [] | no_license | ajun73/Work_Code | b6a3581c5be4ccde93bd4632d8aaaa9ecc782b43 | 017d12361f7f9419d4b45b23ed81f9856278e849 | refs/heads/master | 2020-04-11T23:16:43.994397 | 2019-12-28T07:48:44 | 2019-12-28T07:48:44 | 162,161,852 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,815 | py | # -*- coding: utf-8 -*-
"""
Defines unit tests for :mod:`colour.models.rgb.transfer_functions.itur_bt_2020`
module.
"""
from __future__ import division, unicode_literals
import numpy as np
import unittest
from colour.models.rgb.transfer_functions import oetf_BT2020, eotf_BT2020
from colour.utilities import ignore_nu... | [
"ajun73@gmail.com"
] | ajun73@gmail.com |
887052371e36779b71638988faf40388fff912ff | 5c904e9c768398a62204ec0d8bc3e3b794193cf2 | /software/metax/genotype/Genotype.py | aef36508c541bc7563913c996faa4a99d0ea19e8 | [
"MIT"
] | permissive | ly-0/MetaXcan | ba1cbebc2381faee60c2af89f31627e7abb10c65 | 1f0eb0660f9b2a0d25b7083a34e9418cd8ba9566 | refs/heads/master | 2020-07-18T04:39:54.168284 | 2019-07-25T00:13:12 | 2019-07-25T00:13:12 | 206,177,021 | 1 | 0 | NOASSERTION | 2019-09-03T21:40:12 | 2019-09-03T21:40:12 | null | UTF-8 | Python | false | false | 133 | py |
class GF(object):
RSID=0
CHROMOSOME=1
POSITION=2
REF_ALLELE=3
ALT_ALLELE=4
FREQUENCY=5
FIRST_DOSAGE=6
| [
"alvarobarbeira@gmail.com"
] | alvarobarbeira@gmail.com |
3496f7f22d988aae809aad923b15789edd3fbfdc | 0368436dc981ab44975d4b28935ae89a37065030 | /qa/rpc-tests/rpcbind_test.py | 9184ab8ef0d17d938e722a2b17233f15f4a6eb2c | [
"MIT"
] | permissive | mirzaei-ce/core-koobit | b1d350c28f87764a14ed7e92e9918c7af90a93a0 | 7d24e9c554fec6f3631691f456e9873bc4536fbd | refs/heads/master | 2021-08-14T19:04:05.775343 | 2017-11-16T14:35:05 | 2017-11-16T14:35:05 | 110,982,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,567 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Test for -rpcbind, as well as -rpcallowip and -rpcconnect
# TODO extend this test from the test framew... | [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
7102739e28920cf0341119052d224f432536ca03 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/gMonth/Schema+Instance/NISTXML-SV-IV-list-gMonth-maxLength-1-4.py | 42b1bd4946b54691f235926a78d7765a1c385aba | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 438 | py | from output.models.nist_data.list_pkg.g_month.schema_instance.nistschema_sv_iv_list_g_month_max_length_1_xsd.nistschema_sv_iv_list_g_month_max_length_1 import NistschemaSvIvListGMonthMaxLength1
from xsdata.models.datatype import XmlPeriod
obj = NistschemaSvIvListGMonthMaxLength1(
value=[
XmlPeriod("--04")... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
12f662061ab8e535ab0917cfc5202be81b2b80c4 | d9d9a203a27bd28fe9afc72ecc613b186b33d673 | /13_Biodata/mainform.py | b4b4c556ef8db808e9dd40ac94313f4159a39c25 | [] | no_license | wildenali/Belajar-GUI-dengan-pyQT | 378951fcf0e172f48bf71ec46d887599cf5e09ed | 06ebbcbf57bec8a6a63fbb6d5397a7e2ab7c9ef9 | refs/heads/master | 2020-04-06T10:51:58.582049 | 2018-12-31T10:37:56 | 2018-12-31T10:37:56 | 157,395,034 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,247 | py | from PyQt5.QtWidgets import (QWidget, QVBoxLayout, QHBoxLayout, QLineEdit,
QPushButton, QListWidget)
from entryform import *
class MainForm(QWidget):
def __init__(self):
super(MainForm, self).__init__()
self.setupUI()
def setupUI(self):
self.resize(500,... | [
"wildeeeeen@gmail.com"
] | wildeeeeen@gmail.com |
12d41e15dc069124ef74f734414a4a6615fa0bd6 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1482494_0/Python/ameerkat/B.py | 67642c0d6d794d67ad7ff4a2df0fb6563e2463f6 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | def is_complete(nl, l):
for i in range(nl):
if l[i][1] == 0:
return False
return True
def b(nl, l):
c = []
for i in range(nl):
c.append([0, 0])
s = 0
lt = 0
atdl = True
while not is_complete(nl, c) and atdl:
atdl = False
# try 2 star with no level 1 done
for i in range(nl):
if ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
7be331e72fe0c68d22a105b96a295418ee245102 | cf193cb3f4834f0b606d34723dbdf335d7d299cc | /tests.py | dfcb88512ba9442b6f52d564403c034b7f288e5c | [
"ISC"
] | permissive | zenhack/python-ast-format | 2c6e13a43b53903cc423aa0248597742533e20f3 | f8205b2f928d048d7fca6390a716542f931c6bec | refs/heads/master | 2023-08-29T17:02:43.357905 | 2016-07-10T01:26:43 | 2016-07-10T01:26:43 | 23,681,708 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,150 | py | from pyast.indent_io import IndentIO
from cStringIO import StringIO
from pyast import *
import pytest
# yapf: disable
ast_output_tests = [
(Const(0), "0"),
(Const('Hello'), "'Hello'"),
(Const(True), 'True'),
(Const(4.2), '4.2'),
(Var("x"), "x"),
(Var("_hello"), "_hello"),
(BinOp(Const(4), '+', Const(2)),
"(4 +... | [
"ian@zenhack.net"
] | ian@zenhack.net |
ac2f41acc769d07995e810f454defde7dee7aca9 | c268dcf432f3b7171be6eb307aafbe1bd173285a | /reddit2telegram/channels/history/app.py | e15c2dcc245f70fb952bf53170487b71a909ebfa | [
"MIT"
] | permissive | Fillll/reddit2telegram | a7162da2cc08c81bcc8078ea4160d4ee07461fee | 5d8ee3097e716734d55a72f5a16ce3d7467e2ed7 | refs/heads/master | 2023-08-09T10:34:16.163262 | 2023-07-30T18:36:19 | 2023-07-30T18:36:19 | 67,726,018 | 258 | 205 | MIT | 2023-09-07T02:36:36 | 2016-09-08T17:39:46 | Python | UTF-8 | Python | false | false | 1,726 | py | #encoding:utf-8
from urllib.parse import urlparse
from utils import get_url, weighted_random_subreddit
from utils import SupplyResult
t_channel = '@RedditHistory'
subreddit = weighted_random_subreddit({
'HistoryPorn': 0.5,
'ArchivePorn': 0.01,
# /r/ADifferentEra
'BattlePaintings': 0.02,
'Biograp... | [
"git@fillll.ru"
] | git@fillll.ru |
d89fbc531afd2282c48299598e7cf2b6d6e59e78 | efae42443d77e09387e25230541fbe76217a0188 | /venv/Scripts/django-admin.py | e51d69def69f3e503a36778829be254701bcb78d | [] | no_license | koudayo24/my-first-blog | d5745b85307bb4892b2bb0ab6a6b59651a6292c8 | 66cea836e361ef5343b6b316c497178ff734fc35 | refs/heads/master | 2020-11-28T17:24:16.565861 | 2019-12-26T10:42:16 | 2019-12-26T10:42:16 | 229,879,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | #!C:\Users\kou\PycharmProjects\djangogirl\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"you@example.com"
] | you@example.com |
321857ca79abd2921f664d8ff51a68b5bb8dc581 | 0ad9fea49857f16ed8ff3836b568a31d17c8d3c9 | /src/atCoder/beginner_contest_085/d.py | df904acc9f55e494a37c1b795bb10bfb3e9babbd | [] | no_license | nannany/python | 38ce9a105a7f94d76fbf95799664c1fd93d9de6e | 18c7b2e06fcea361ef1dab2e3f55fbc67c4486ae | refs/heads/master | 2020-05-23T09:05:13.780089 | 2019-03-21T05:39:48 | 2019-03-21T05:39:48 | 80,430,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | import math
if __name__ == '__main__':
N, H = map(int, input().split())
a = []
b = []
for _ in range(N):
tmp_a, tmp_b = map(int, input().split())
a.append(tmp_a)
b.append(tmp_b)
max_a = max(a)
ans = 0
b = sorted(b, reverse=True)
damage = 0
for i in range(N):... | [
"ymym1990ymym@gmail.com"
] | ymym1990ymym@gmail.com |
f1237e2fead8857eddd412f27b71627dc84d2e9f | efc379dc12731b9b29d6dc212ae49b230b01c6bb | /reports/report.py | 155c21abe725e6e3d1ff4412787e8c31c464c42f | [
"BSD-3-Clause"
] | permissive | stjordanis/reports | 082da58c2d08b199247f89af8d72b3da81dec419 | 4c792b7ac1704af0eb9d251b6b0388f08ab1d9b2 | refs/heads/master | 2023-07-27T01:53:26.026735 | 2021-09-09T08:04:11 | 2021-09-09T08:04:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,229 | py | # coding=utf-8
# -*- python -*-
#
# This file is part of report software
#
# Copyright (c) 2016
# All rights reserved
#
# File author(s): Thomas Cokelaer <cokelaer@gmail.com>
#
# Distributed under the BSD 3-Clause License.
# See accompanying file LICENSE.txt distributed with this software
#
######################... | [
"cokelaer@gmail.com"
] | cokelaer@gmail.com |
4751da20406bdbaf877d76da5972a44b3c5be721 | 7a09af404f29389504742a3d5f1727bfbe562750 | /TrekBot_WS/build_isolated/cartographer_ros/catkin_generated/pkg.develspace.context.pc.py | 2173e6d92bfe6b6d119d96ff8b075982607ff04e | [
"MIT"
] | permissive | Rafcin/TrekBot | 4baa2ed93b90920b36adba0b72384ac320d2de01 | d3dc63e6c16a040b16170f143556ef358018b7da | refs/heads/master | 2020-03-30T02:15:35.361254 | 2018-12-14T03:30:25 | 2018-12-14T03:30:25 | 150,622,252 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/xavier_ssd/TrekBot/TrekBot_WS/src/cartographer_ros/cartographer_ros/.;/usr/include/pcl-1.8;/usr/include/eigen3;/usr/include".split(';') if "/xavier_ssd/TrekBot/TrekBot_WS/src/cartographer_ros/cartogra... | [
"Rafcin.s@gmail.com"
] | Rafcin.s@gmail.com |
b3e998773a820cdfaba685a0f23c5ad2cf3a7a6e | fdb14ef656a2092fb5cccef2ae215f82616fe65e | /brainnotation/tests/test_resampling.py | ab996da86f698adc69fe81f23245901dda4c5361 | [
"BSD-3-Clause"
] | permissive | danjgale/brainnotation | 10df93aaac140d80a6efd31b8c657cbdb016583d | 3c16e4af457eb95e9598829af318eb150fb4796b | refs/heads/main | 2023-06-05T21:38:20.317272 | 2021-06-17T19:39:50 | 2021-06-17T19:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | # -*- coding: utf-8 -*-
"""
For testing brainnotation.resampling functionality
"""
import pytest
from brainnotation import resampling
@pytest.mark.xfail
def test__estimate_density():
assert False
@pytest.mark.xfail
@pytest.mark.workbench
def test_downsample_only():
assert False
@pytest.mark.xfail
@pytes... | [
"rossmarkello@gmail.com"
] | rossmarkello@gmail.com |
4a32b4e794ea9df48910bc92863f28dd5241e0fa | 56523b9952b8e1b31717021fbcf4b6a2cde907ef | /eval/create_data.py | c279e7390ae5448c121aade669f1ba60f3a0503f | [] | no_license | XhivaW/tf-face-recognizer | 1857f056c352ca2248c271453456d36ff3a35600 | 45049229419811b94cf03be7fd1b8775b0ccb53f | refs/heads/master | 2021-01-12T00:41:33.855608 | 2017-02-07T15:57:27 | 2017-02-07T15:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,057 | py | import os
import json
import random
import tensorflow as tf
from urllib.parse import urljoin
from urllib.request import urlopen, Request
FLAGS = tf.app.flags.FLAGS
tf.app.flags.DEFINE_string('url_base', 'http://localhost:3000',
'''API endpoint url''')
tf.app.flags.DEFINE_string('json_file'... | [
"sugi1982@gmail.com"
] | sugi1982@gmail.com |
7ed4b6ee4189ea7849ec7b89e88b4f04d2b93f93 | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_inv/trend_constant/cycle_0/ar_/test_artificial_32_inv_constant_0__20.py | 3a344e2bb995e28f48ed736aca6dec0844de6351 | [
"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 | 306 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 32 , FREQ = 'D', seed = 0, trendtype = "constant", cycle_length = 0, transform = "inv", sigma = 0.0, exog_count = 20, ar_order = 0);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
e9a6e77057d7a240f5f83828d412cb03b378b72e | 6d590d9387649fc3e3433558795329ddc3590d92 | /hades/driver_lxc.py | 96698d67bbde20c2c23c7cd292677ae5bfb4f462 | [] | no_license | zielmicha/hades | 1594978c40b96b7c2efcd88e08e35d2aecff6917 | 6c7b2b6875327eb7b42afead7ca061ec77d4cc02 | refs/heads/master | 2020-04-15T14:00:39.224067 | 2016-10-12T06:54:59 | 2016-10-12T06:54:59 | 58,277,541 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,348 | py | import subprocess
import yaml
import tempfile
import binascii
import time
import glob
import stat
import os
from . import core
_lxd = None
def lxd():
global _lxd
if _lxd == None:
from pylxd import api
_lxd = api.API()
return _lxd
@core.create_driver.register
def _create_driver(name, prof... | [
"michal@zielinscy.org.pl"
] | michal@zielinscy.org.pl |
8500bf9aa3609e01aabfc53b8a92d0f853247787 | 79e45a6e4846927da432087aba845036b11c5622 | /PROD/bin/EOD/Analytics/RSBPriceDataFrame/RSBDataFrame.py | e6eac2a06715b1d6fea5bf8c1c1d89fd67956f70 | [] | no_license | mjserpico/Scarlett-Trading | cba2bcfaacf886b9d851d978683b4ce641c8f6ad | 9778717393dbb0818ee026356996d1806345a6c2 | refs/heads/master | 2020-03-21T21:39:51.108503 | 2019-05-09T02:06:26 | 2019-05-09T02:06:26 | 139,076,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py | # -*- coding: utf-8 -*-
"""
RSB DataFrame
This script will pull the OHLC values for the past 45 trading days for each of the read Ticker symbols
The script will format the values and export the csv daily for ingestion by downstream script to analyze data
"""
#Standard Python Libs
#import mysql.connector
#Standard Pyth... | [
"mjserpico@gmail.com"
] | mjserpico@gmail.com |
b373f506e163a5a2e165b1122856f2cad746813a | 6cac470db9b279f57770eb0ec4b6270c6d4d66dc | /recipe_engine/arguments_pb2.py | aa63d4e64ed67bfb74dacd0b1c7def3baf31fc96 | [
"Apache-2.0"
] | permissive | Kryndex/recipes-py | 3eac61cfa6f54e32888b48dedd1f646f37f0b91f | d76483b254ec53d583dd4e46cf1e2654590823c8 | refs/heads/master | 2021-05-12T06:02:36.643876 | 2018-01-09T18:40:34 | 2018-01-09T18:48:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 8,525 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: arguments.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _ref... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
8367a7a3cd94fe9d799198febd6c053c0b32c705 | fb4a60fc1435931d76b3f830a26652a7110244e0 | /documentation/idioms/package_creation/maec_basic_package.py | 6df9a88a1331684861868184c618bb3f58f8d26f | [
"BSD-3-Clause"
] | permissive | MAECProject/MAECProject.github.io | 5f48dca00ed6cb55a7b32d7b4f871a02812ce4df | 77d57380f3b5715947aa284f7840f89cbf7333e4 | refs/heads/master | 2022-11-10T20:31:21.533777 | 2022-10-22T03:53:10 | 2022-10-22T03:53:10 | 19,456,946 | 15 | 4 | BSD-3-Clause | 2019-10-04T18:54:55 | 2014-05-05T13:38:38 | HTML | UTF-8 | Python | false | false | 875 | py | # Code for MAEC Basic Package Idiom
from maec.package.package import Package
from maec.package.malware_subject import MalwareSubject
from cybox.core import Object
from cybox.objects.file_object import File
# Set up the necessary Package and Malware Subject, Analysis Bundle Instances
p = Package()
ms = MalwareSubject()... | [
"ikirillov@mitre.org"
] | ikirillov@mitre.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.