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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1680eee25e123cd65af8e484e82f821ffcef73f5 | 72fd091cf4f9ad8c1a6475a8344bb750889e3b53 | /cars/migrations/0001_initial.py | 6f561308a8ce2a3549922aa1b79b89063e822140 | [] | no_license | petrshirin/example-web-app-for-using-db | abe312ab9dee36e5f53b795a2a0bc7529fa245f3 | c625815525cc8427a6e0fc749afc14f126a90e05 | refs/heads/master | 2023-02-18T08:31:03.842057 | 2021-01-14T14:43:11 | 2021-01-14T14:43:11 | 328,006,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,449 | py | # Generated by Django 3.1.5 on 2021-01-08 18:02
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Car',
... | [
"[email protected]"
] | |
fab4e484e4788c8cdc5b3d600f1bcd29168b91b8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02897/s211396554.py | 103568fcd8071619233fcea4b16b1f438fe3b2be | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | #A
import math
n = int(input())
print((math.ceil(n / 2)) / n)
| [
"[email protected]"
] | |
222aba3bdc6078a2bbd2e01c79d319ab45d44737 | 30dea47f44695f3eeacb8270496cdced39485cbd | /tonedetect/tones.py | b72f95f4783db9396b689fd9cd31df1dc93ba559 | [] | no_license | cheind/py-tonedetect | 67490d9b6f238226486e0cfa2831c4855e079c07 | 662b5d335ba9e830914cc0d0d2a1515f832f743b | refs/heads/master | 2021-01-10T23:36:59.131599 | 2016-10-29T06:52:37 | 2016-10-29T06:52:37 | 70,419,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py |
import json
import itertools
import math
import numpy as np
class Tones(object):
""" A list of tones """
def __init__(self):
self.items = []
def add_tone(self, frequencies, sym=None):
sym = sym if sym is not None else len(self.items)
self.items.append({'f': frequencies, 'sym': sy... | [
"[email protected]"
] | |
281d0127dbb5560633ec0da580a15c81be6ba978 | 24f29f50988c59785011f3bc2645fa5d2a7a7d97 | /wlct/cogs/ladders.py | 333e6289dac1c32fa28dd01d4fe5d125622fc1c7 | [] | no_license | h-shan/wzclot | d1c0c0f83b0b2916e0352c7cc0bfd25775a632d9 | 88d0e57c053a69a212af43f52168e234f41f6351 | refs/heads/master | 2021-01-07T20:17:04.065980 | 2020-02-19T22:44:18 | 2020-02-19T22:44:18 | 241,809,955 | 0 | 0 | null | 2020-02-20T06:25:12 | 2020-02-20T06:25:11 | null | UTF-8 | Python | false | false | 5,329 | py | import discord
from wlct.models import Clan, Player
from wlct.tournaments import Tournament, TournamentTeam, TournamentPlayer, MonthlyTemplateRotation, get_games_finished_for_team_since, find_tournament_by_id, get_team_data_no_clan, RealTimeLadder, get_real_time_ladder, TournamentGame
from discord.ext import commands, ... | [
"[email protected]"
] | |
23cc696455e578661687ff0eb2c8e466a0ecca7b | 492d3e666b87eff971628a74fe13facde01e2949 | /htmlcov/_python_Django_My Projects_student-portal_Lib_site-packages_PIL_GifImagePlugin_py.html.py | 1dc887ff9dbe11ce042ec22d45bfd7fc4da3fc41 | [] | no_license | OmarFateh/Student-Portal | 42050da15327aa01944dc79b5e00ca34deb51531 | 167ffd3a4183529c0cbc5db4ab232026711ea915 | refs/heads/master | 2023-06-13T01:03:16.475588 | 2021-07-08T11:09:09 | 2021-07-08T11:09:09 | 382,895,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251,069 | py | XXXXXXXXX XXXXX
XXXXXX
XXXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXX XX
XXXXXXXXXXXXXXX XXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXX XXXXXXXXXX XXXX... | [
"[email protected]"
] | |
8fbd6c02b72607b5cd55525e6fb33f0ce4082fef | a964f0f3f93a84d5195042d3c1bb2288e8b62161 | /muddery/server/utils/utils.py | a69f6d5ace3c6d1dc5892332ebc02a3c67a0e928 | [
"BSD-3-Clause"
] | permissive | nobodxbodon/muddery | 474433791b75d2f2130e6b758fb3126e2d56230b | 4b4c6c0dc5cc237a5df012a05ed260fad1a793a7 | refs/heads/master | 2023-06-19T19:28:39.252340 | 2021-07-14T15:07:47 | 2021-07-14T15:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,890 | py | """
General helper functions that don't fit neatly under any given category.
They provide some useful string and conversion methods that might
be of use when designing your own game.
"""
import os, re, inspect
from importlib import import_module
from pkgutil import iter_modules
from django.conf import settings
from ... | [
"[email protected]"
] | |
58d9f299b2be3ac5b35e101e9d797493adbbab9e | 502fc0002d5575d0a37b4f13706c7072f860033c | /Chapter06/cyclegan/datasets.py | c851a615e497b6d1583f95c8955550f2b29adf88 | [
"MIT"
] | permissive | PacktPublishing/Hands-On-Generative-Adversarial-Networks-with-PyTorch-1.x | 665d9364af54d7fd44787d0753400d7625ac8b82 | beee21343078b607f393bbb1321ac49cf17ffb5f | refs/heads/master | 2023-02-10T22:12:08.980700 | 2023-01-30T09:26:20 | 2023-01-30T09:26:20 | 227,829,701 | 66 | 50 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | import glob
import random
import os
import torchvision
from torch.utils.data import Dataset
from PIL import Image
class ImageDataset(Dataset):
def __init__(self, root_dir, transform=None, unaligned=False, mode='train'):
self.transform = torchvision.transforms.Compose(transform)
self.unaligned = ... | [
"[email protected]"
] | |
e65cbf5b64816e289ebbda33044e7070ef649a39 | a5e591dc09e11e88af56fb5a881fae064fb9c495 | /recruitment/recruitment/doctype/sds/test_sds.py | c6cce9a11e7909f1af24d4e5044701cb9cfd6ede | [
"MIT"
] | permissive | barathprathosh/recruitment | 6b61dd1ee9c0b9d7851b0b3e5bab307f7ee2d1b5 | 9660944856e72288e47960e6802ec97a220a656d | refs/heads/master | 2020-04-29T03:03:51.722972 | 2019-03-15T08:58:32 | 2019-03-15T08:58:32 | 175,794,797 | 0 | 0 | NOASSERTION | 2019-03-15T10:00:32 | 2019-03-15T10:00:31 | null | UTF-8 | Python | false | false | 247 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, VHRS and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
# test_records = frappe.get_test_records('SDS')
class TestSDS(unittest.TestCase):
pass
| [
"[email protected]"
] | |
a697dce54965d918f7b330653707e0336ac916cc | 4bd4bacecee33cada173e427b5ecb1d758bafaad | /src/scalarizr/storage2/filesystems/ext3.py | db6c14a7eb67d5266be90987c0ab7e3c2a861102 | [] | no_license | kenorb-contrib/scalarizr | 3f2492b20910c42f6ab38749545fdbb79969473f | 3cc8b64d5a1b39c4cf36f5057f1a6a84a9a74c83 | refs/heads/master | 2022-11-26T10:00:58.706301 | 2017-11-02T16:41:34 | 2017-11-02T16:41:34 | 108,550,233 | 0 | 2 | null | 2020-07-24T11:05:36 | 2017-10-27T13:33:46 | Python | UTF-8 | Python | false | false | 1,840 | py | """
Created on Aug 29, 2012
@author: marat
"""
from scalarizr import storage2
from scalarizr.storage2 import filesystems
E2LABEL_EXEC = "/sbin/e2label"
RESIZE2FS_EXEC = "/sbin/resize2fs"
E2FSCK_EXEC = "/sbin/e2fsck"
MAX_LABEL_LENGTH = 16
class ExtFileSystem(filesyste... | [
"[email protected]"
] | |
e2dd3fc6ed5023653573ada2255327ccf464b401 | d694a99c910ce36c8d6981e126548fc91e74046e | /Regression/regression.py | 60bd820898953a66d0998f401bded14011439700 | [] | no_license | YiddishKop/ml_src_adam_compare | 08ac23cf1fb02222da1f04e833e296b1b75ae9af | cfeadebd41f802686828958068c15bcfdfea0be9 | refs/heads/master | 2020-03-25T22:16:19.581690 | 2018-08-09T23:37:31 | 2018-08-09T23:37:31 | 144,213,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,177 | py | import numpy as np
import tensorflow as tf
from math import sqrt
from keras import optimizers
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, normalization
from keras.backend.tensorflow_backend import set_session
config = tf.ConfigProto()
config.gpu_options.per_process_gpu_memo... | [
"[email protected]"
] | |
5497665447fb033386b2092a63fbef7149fd845b | dddd89637373f455a476431f4fcb7e17b4e9dd57 | /py/display.py | 85bcfe46e59c909fad72f4b04abaf084a127d399 | [] | no_license | DhirManish/Python | 35304eb47dea61934426fb6fc5094e1a83517cf3 | 10df7245d0964340d6c8d14cf26a9cf8f93ecf5d | refs/heads/master | 2020-06-05T07:09:41.856780 | 2015-03-07T12:53:10 | 2015-03-07T12:53:10 | 20,372,496 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# display.py
#
# Copyright 2014 Ajay Bhatia <ajay@dumb-box>
#
# 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 2 of the Lic... | [
"[email protected]"
] | |
51d3cd83c17924f57928febd4c77f7e11a693a64 | ac42f1d918bdbd229968cea0954ed75250acd55c | /admin/dashboard/openstack_dashboard/test/integration_tests/tests/test_credentials.py | 45c7f9956f3bb90d941ff841ff21f9390cc0aa7a | [
"Apache-2.0"
] | permissive | naanal/product | 016e18fd2f35608a0d8b8e5d2f75b653bac7111a | bbaa4cd60d4f2cdda6ce4ba3d36312c1757deac7 | refs/heads/master | 2020-04-03T22:40:48.712243 | 2016-11-15T11:22:00 | 2016-11-15T11:22:00 | 57,004,514 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,250 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"[email protected]"
] | |
8654ed8796db644dd4805d8b68137f4e06de7879 | f2b44af5372c6318a941015f64b279ccf9099a18 | /rest130/wsgi.py | 5726a659e41211d23cf13244551e776d53d36061 | [] | no_license | yuansuixin/Rest-Framework-page-view | c459ca54c1998cde4c0fe207ba6464353471cbdf | a8663c09a00ce4f4d055ca96e3132ae0a4ddea54 | refs/heads/master | 2020-03-13T06:58:12.512163 | 2018-04-25T14:09:15 | 2018-04-25T14:09:15 | 131,015,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | """
WSGI config for rest130 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"[email protected]"
] | |
f80eb0ee75c7c6f6668996e9f7d6ded968c8c196 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-937.py | 1cb8651f581c5c2f244b40205a24f459938ff392 | [] | 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 | 23,291 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"[email protected]"
] | |
43eeefacfcf0e69ed91cff1e139d21ea5ca3dcb0 | 55b57d64ec547869835334318f3059fbb507558c | /Fred2/Data/pssms/tepitopepan/mat/DRB3_0303_9.py | 9a0ad63b34e9c15470b38ea93c1c9309344d6602 | [
"BSD-3-Clause"
] | permissive | FRED-2/Fred2 | 9845f6678d4011cb746c7a5a6f283eea68077a02 | b3e54c8c4ed12b780b61f74672e9667245a7bb78 | refs/heads/master | 2021-07-12T05:05:54.515427 | 2020-05-25T06:56:25 | 2020-05-25T06:56:25 | 16,275,425 | 42 | 35 | null | 2021-07-07T12:05:11 | 2014-01-27T10:08:11 | Python | UTF-8 | Python | false | false | 2,168 | py | DRB3_0303_9 = {0: {'A': -999.0, 'E': -999.0, 'D': -999.0, 'G': -999.0, 'F': -0.004754, 'I': -0.99525, 'H': -999.0, 'K': -999.0, 'M': -0.99525, 'L': -0.99525, 'N': -999.0, 'Q': -999.0, 'P': -999.0, 'S': -999.0, 'R': -999.0, 'T': -999.0, 'W': -0.004754, 'V': -0.99525, 'Y': -0.004754}, 1: {'A': 0.0, 'E': 0.1, 'D': -1.3, '... | [
"[email protected]"
] | |
fd0e88862a3552ff5a444410f25c478bc09b9ccc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_185/ch21_2019_09_02_16_11_34_126817.py | caeb588b2448887a21cc708aae209b3242a27c36 | [] | 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 | 138 | py | valor_conta = float(input("Digite o valor da conta"))
valor_10 = valor_conta * 1.1
print("Valor da conta com 10% {.:2f}".format(valor_10)) | [
"[email protected]"
] | |
962e96893571f492778142b708236e00d56b680e | c54f5a7cf6de3ed02d2e02cf867470ea48bd9258 | /pyobjc/pyobjc-framework-Quartz/PyObjCTest/test_cikernel.py | b0db5ef848f5d457400c0faee426365fabfe1997 | [
"MIT"
] | permissive | orestis/pyobjc | 01ad0e731fbbe0413c2f5ac2f3e91016749146c6 | c30bf50ba29cb562d530e71a9d6c3d8ad75aa230 | refs/heads/master | 2021-01-22T06:54:35.401551 | 2009-09-01T09:24:47 | 2009-09-01T09:24:47 | 16,895 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 306 | py |
from PyObjCTools.TestSupport import *
from Quartz.QuartzCore import *
from Quartz import *
class TestCIKernel (TestCase):
def testMethods(self):
self.failUnlessArgIsSEL(CIKernel.setROISelector_, 0, CGRect.__typestr__ + '@:i' + CGRect.__typestr__ + '@')
if __name__ == "__main__":
main()
| [
"ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25"
] | ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25 |
bdbb08709eafee58b0e2298380f07b3701a79bd1 | 605356250c655a7f98d5f1158e0ffc94175de4f7 | /devel/lib/python2.7/dist-packages/pal_vision_msgs/msg/_FaceRecognitionFeedback.py | 463e9865ee7b4e52e18bc66246629867f1f725f5 | [] | no_license | MatthewCallery/msc-tiago-project | 4d3dcf07b7bc6915d2f203bbff46f6c11720ff9f | 8c9e987c45d6152192ba36bb27781e961e7900c3 | refs/heads/master | 2020-11-30T04:17:53.649839 | 2017-07-11T14:38:47 | 2017-07-11T14:38:47 | 96,903,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | /home/mc16766/tiago_public_ws/devel/.private/pal_vision_msgs/lib/python2.7/dist-packages/pal_vision_msgs/msg/_FaceRecognitionFeedback.py | [
"mc16766@it051534"
] | mc16766@it051534 |
cbc6351fd46ad8ea36dc9847027121c21c9f0537 | c81d7dfef424b088bf2509a1baf406a80384ea5a | /venv/Lib/site-packages/pandas/tests/indexes/period/test_period_range.py | 49d34248207919814f02e980ff00b963e21dcdd9 | [] | no_license | Goutham2591/OMK_PART2 | 111210d78fc4845481ed55c852b8f2f938918f4a | cb54fb21ebf472bffc6ee4f634bf1e68303e113d | refs/heads/master | 2022-12-10T01:43:08.213010 | 2018-04-05T02:09:41 | 2018-04-05T02:09:41 | 124,828,094 | 0 | 1 | null | 2022-12-07T23:43:03 | 2018-03-12T03:20:14 | Python | UTF-8 | Python | false | false | 3,740 | py | import pytest
import pandas.util.testing as tm
from pandas import date_range, NaT, period_range, Period, PeriodIndex
class TestPeriodRange(object):
@pytest.mark.parametrize('freq', ['D', 'W', 'M', 'Q', 'A'])
def test_construction_from_string(self, freq):
# non-empty
expected = date_... | [
"[email protected]"
] | |
820d4e8465a9ca575fe26c9092050f29834c8f99 | 5891051796778cfb44a255248ce38789bfef9e70 | /DjangoLearn/apps/test_django/models.py | 8820b1517c116ec9de6dbc52b1199d2373a5e12e | [] | no_license | Faithlmy/Python_base | cc546a5d86b123e102a69df1227cde9b6e567493 | 5a43557e6375dc9dbe5f6701d7c10e549873a5ab | refs/heads/master | 2021-01-01T17:07:04.097978 | 2018-03-31T16:44:01 | 2018-03-31T16:44:01 | 98,000,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,296 | py | from django.db import models
# Create your models here.
class TbCustomInfo(models.Model):
c_name = models.CharField(max_length=255, blank=True, null=True)
c_name_short = models.CharField(max_length=255, blank=True, null=True)
c_num = models.CharField(max_length=255, blank=True, null=True)
c_type = mode... | [
"[email protected]"
] | |
717bd41fe9b212c3ecf9faf925de10324dd12ab9 | ef48efff7b9022f9745145509193d551f4084376 | /novedades/models.py | f731d1dcb004d9927fff918f8e0a6360dcc718a1 | [] | no_license | ljarufe/incamotors | b5ace5cfb2f5208a31859f06da3e6cf46867b35c | 79926654e286e9fd496bb1be9ce8d03ca218d654 | refs/heads/master | 2020-05-06T12:20:00.996574 | 2013-10-21T16:09:20 | 2013-10-21T16:09:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,527 | py | # -*- coding: utf-8 -*-
from django.db import models
from sorl.thumbnail.fields import ImageWithThumbnailsField
class Novedad(models.Model):
"""
Clase abstracta para todas las novedades
"""
nombre = models.CharField(max_length=100)
descripcion = models.TextField(verbose_name=u"descripción")
... | [
"[email protected]"
] | |
d0da70c270dd71617fd4d3449d199f1a9f94549a | 8004cc465359aecb7a1890617646ea5b49f11d9a | /cnn_models/cnn_dropout.py | 4034ce3be9e2c7aad18f0a543a39bd23928ad07f | [] | no_license | jhyang12345/facial-recognition | 661e34d874986943f50b5b9691d186760957b594 | 2f2ba5cfcbd58efbc9de5b9f0bafc7bc640d9c26 | refs/heads/master | 2020-04-06T09:52:20.932793 | 2018-12-13T08:15:25 | 2018-12-13T08:15:25 | 157,360,076 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,747 | py | from keras.layers import Input, Convolution2D, SeparableConvolution2D, \
GlobalAveragePooling2D, GlobalMaxPooling2D, MaxPooling2D, \
Dense, Activation, BatchNormalization, Dropout
from keras.models import Sequential, Model
from keras.callbacks import ModelCheckpoint
class CNNDropout:
... | [
"[email protected]"
] | |
7455afa728f6af5d47411cfac7fe64159c81c7f0 | 7e20c4ad991159e46462c1ef6674340d1427452e | /mfr/version.py | 3e33c308c4918e8b00b6d51b698aa58ad76155f4 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | CenterForOpenScience/modular-file-renderer | 2758fa4142251b21a10f0f8f42fdae135dd69497 | 64a04870eb6b358e4ba65dfe275869450868a2aa | refs/heads/develop | 2023-08-09T03:27:20.875353 | 2023-04-17T18:57:47 | 2023-04-17T18:57:47 | 13,421,446 | 37 | 49 | Apache-2.0 | 2023-04-17T18:58:12 | 2013-10-08T18:11:00 | JavaScript | UTF-8 | Python | false | false | 23 | py | __version__ = '23.1.0'
| [
"[email protected]"
] | |
6496d16a1187ee2afb1d4f13a192c17ebc29b49a | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/work/v4_1/models/board_reference.py | 6e58999b0b5322ab38b6dc0d498ad651c3982709 | [] | no_license | u-blavins/secret_sasquatch_society | c36993c738ab29a6a4879bfbeb78a5803f4f2a57 | 0214eadcdfa9b40254e331a6617c50b422212f4c | refs/heads/master | 2020-08-14T00:39:52.948272 | 2020-01-22T13:54:58 | 2020-01-22T13:54:58 | 215,058,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | [
"[email protected]"
] | |
e7bab45d83b2b3418bbf9dfb6ebb11ed89573d0a | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/joblib/test/common.py | 038ab537b9faa4cf059cd0c8b2edab674cdc1a7a | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 3,061 | py | """
Small utilities for testing.
"""
import threading
import signal
import time
import os
import sys
import gc
from joblib._multiprocessing_helpers import mp
from joblib.testing import SkipTest, skipif
# A decorator to run tests only when numpy is available
try:
import numpy as np
def with_numpy(func):
... | [
"[email protected]"
] | |
dae634b72dac458cfa57d1bcb809f4d6d4bedf11 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2790/60730/256936.py | ed7cd9f25137e77fa2fe3809ef5f880ec7402267 | [] | 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 | 450 | py | num_m, num_n = map(int, input().split())
m = list(map(int, input().split()))
n = list(map(int, input().split()))
m.sort(reverse=False)
tmp = 0
for i in range(num_n):
for j in range(num_m):
if (m[j] <= n[i]):
tmp = tmp + 1
if (j == 4):
print(str(tmp))
t... | [
"[email protected]"
] | |
61786e2faf6ca3617cc2547869f76cce86441d76 | b76c6813f2ce2fd24a33175a0249cd9544583fe7 | /acerca_de/url_acerca_de.py | 50417f63558bf4aa93ed35902ad121d612af8286 | [] | no_license | adrianglez2203/nuevo_as | 0074e6d8155a471bb7d81bc3456914acdc7fba98 | df375410e9d6922ebb931645ff8f1c7b3f5cb93b | refs/heads/master | 2022-08-01T23:43:51.328124 | 2020-06-06T15:35:23 | 2020-06-06T15:35:23 | 270,111,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from django.urls import path
from acerca_de import views
urlpatterns = [
path('acerca',views.vista , name='acerca_de'),
] | [
"[email protected]"
] | |
ba8c22cf3cea258a5f767182a5ff8dbf68b2b507 | 16b26e6a9e6d6a7db2a20a6327b3d042e2245747 | /bigramas/bigramas.py | dbef177920a9911443ced6ff74a1eed9c8710e79 | [
"Unlicense"
] | permissive | jabaier/iic1103.20152.s4 | 3826b8de35470acc0387c8199b6ecce50d4222bd | 63ddd5f9b73caff218b6744e7392e7a66afba570 | refs/heads/master | 2020-05-27T16:59:32.232746 | 2015-11-20T14:34:21 | 2015-11-20T14:34:21 | 41,114,018 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | import sys
import random
class Bigramas:
def __init__(self):
self.bigramas=[] # lista de bigramas
self.nbigramas=0 # numero de bigramas
def buscar(self,palabra):
for par in self.bigramas:
if par[0]==palabra:
return par[1]
# la palabra no está
... | [
"[email protected]"
] | |
11f4ba38d434e1643f04aaf34ec8646b27782520 | 7e0fdfb76cae8145a4bbac0cac0e4cac6b8e3788 | /dingding_shouqi/dingding_shouqi.py | daaee3a0bc4aec488160ca6adf2ad171e17d3204 | [] | no_license | w193241125/dingdingdaka | 603b06323b5c5e3341e0077614e044b2c80c038b | 3d2088d2e876fc4e80fc06bea3eaa5b8833392ed | refs/heads/master | 2020-05-17T21:45:44.276659 | 2019-05-13T10:16:29 | 2019-05-13T10:16:29 | 183,981,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,007 | py | #!/usr/local/bin python
# -*- coding: utf-8 -*-
# @Time : 2019/3/5 10:38
# @Author : Larwas
# @Link : [email protected]
# @Site : www.larwas.com
# @File : dingding.py
# @Software: PyCharm
import os
import re
import time
import urllib
import json
import requests
# nameplt = re.compile("package: name='(.*?)'... | [
"[email protected]"
] | |
68f57b90cb2d6b9dd5cb519f88279a89150b0f99 | 070eabad59ba058bbdf4a8d76be03c692143cd32 | /exp/exp12.py | 554b19772087d50833d69b718d2632c0dc1dfe03 | [] | no_license | osuossu8/Kaggle_Bengali2019 | 1ebaabd36a0225a42e77d07ea2da04a7860a01d4 | a32397e73b2861cb677988c7d39abb719e229d8c | refs/heads/master | 2022-04-20T16:19:36.961665 | 2020-03-14T13:02:38 | 2020-03-14T13:02:38 | 239,647,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,950 | py | import numpy as np
import pandas as pd
import albumentations
import argparse
import collections
import cv2
import datetime
import gc
import glob
import logging
import math
import operator
import os
import pickle
import pkg_resources
import random
import re
import scipy.stats as stats
import seaborn as sns
import shuti... | [
"[email protected]"
] | |
16d7d093326b863bf363be47886a033059a9f1f4 | 96f181736c9975adfabd45cc776cab7a37d2e7a1 | /transformer/SubLayers.py | 636b67878e40d8e50b27f1d0f49b7d9bf2797668 | [
"MIT"
] | permissive | fangxiaoquan/transformer-pytorch | 6b43fb75635bb512c38c6f2ac8ec306b6e6ba5d9 | c9c5c81151c37ad7a088ea96aa5248fd4f4ad2d1 | refs/heads/master | 2020-05-17T00:36:59.073875 | 2019-03-17T14:42:02 | 2019-03-17T14:42:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,844 | py | ''' Define the sublayers in encoder/decoder layer '''
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
from transformer.Modules import ScaledDotProductAttention
class MultiHeadAttention(nn.Module):
''' Multi-Head Attention module '''
def __init__(self, n_head, d_model, d_k, d_v, dropo... | [
"[email protected]"
] | |
214e9acf4f63476ff161a03f36b9d65e5158d29c | e8c5d8a473a71f88616b692dcdfd2d604485f580 | /test_corrector.py | 1db70ec4aff76eef61b92ad17796f78834360551 | [
"Apache-2.0"
] | permissive | modernYan/corrector | a6907bf1dc0e5e91048704365b4ade7327939592 | 75c86075ea51a53ebe6d649d729e690e3b414f7a | refs/heads/master | 2021-04-03T01:51:33.407724 | 2018-03-07T12:49:45 | 2018-03-07T12:49:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | # -*- coding: utf-8 -*-
# Author: XuMing <[email protected]>
# Brief:
import unittest
from pycorrector.cn_spell import correct
class BasicTestSuite(unittest.TestCase):
"""Basic test cases."""
@staticmethod
def test_text1():
error_sentence_1 = '机七学习是人工智能领遇最能体现智能的一个分知'
correct_sent = corr... | [
"[email protected]"
] | |
e0409dc7eb85b5766250889ef408b577012505a7 | 8338bde799fab50fa28b3c9e85035fce12f1e152 | /src/crystal_analysis/fluctuations.py | a31246b51e26e6bab8b8c6c145aa242d5bfe1576 | [
"MIT"
] | permissive | malramsay64/Crystal_Melting | c5941ad261ef71f1357d6064302344b093b22b53 | e8305928b06b536d7293cb751963d058d55627aa | refs/heads/master | 2021-03-24T10:24:23.291821 | 2020-08-07T07:19:09 | 2020-08-07T07:19:09 | 119,946,491 | 0 | 0 | MIT | 2020-02-12T07:35:47 | 2018-02-02T07:13:03 | Python | UTF-8 | Python | false | false | 8,047 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""A module to measure the structural fluctuations of each state.
The concept of this module is to understand how much particles within each state... | [
"[email protected]"
] | |
4c2de55d37b6463dc9cb09e1b3fab791b94fb59f | 1842d2e7989b9fb1bdd6edff2b2ce187ca9f27ad | /BIOMD0000000484/model.py | 9d53fe8ba1862ad4b82c03c37bafa36698e3a221 | [
"CC0-1.0"
] | permissive | biomodels/BIOMD0000000484 | cc08199b3d324bf10425829755d70e67d52b155d | 293ac221c1615e7446f55960cff130f784243220 | refs/heads/master | 2016-09-06T17:32:40.282597 | 2014-10-16T05:17:52 | 2014-10-16T05:17:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import os
path = os.path.dirname(os.path.realpath(__file__))
sbmlFilePath = os.path.join(path, 'BIOMD0000000484.xml')
with open(sbmlFilePath,'r') as f:
sbmlString = f.read()
def module_exists(module_name):
try:
__import__(module_name)
except ImportError:
return False
else:
ret... | [
"[email protected]"
] | |
563a9e4d56769ebc277637da90f87d84e0eb46b2 | 16dcbf88ae9514109151fe5ff447b2b653ddf48b | /2016/035-TheasGame/thea.py | 60cf62e1e123e8f303f839ac3e8286c58ec426a6 | [] | no_license | ChristerNilsson/Lab | efa55ef5e79dff84b232dfcf94473eacdb263175 | b1f730f45ec6e901bd14c1e4196aa5e0f591ecd2 | refs/heads/master | 2023-07-06T04:35:09.458936 | 2023-06-24T21:40:54 | 2023-06-24T21:40:54 | 48,474,249 | 8 | 8 | null | 2022-12-10T07:03:31 | 2015-12-23T06:51:11 | JavaScript | UTF-8 | Python | false | false | 690 | py | import pygame
pygame.init()
windowSurface = pygame.display.set_mode((1000, 750), pygame.DOUBLEBUF)
done = False
while not done:
# --- Main event loop
for event in pygame.event.get():
if event.type == pygame.QUIT:
done = True
s = pygame.Surface((1000,750), pygame.SRCALPHA) # per-p... | [
"[email protected]"
] | |
96e362619f5e1ca63b616907a81a83d7ad5268b9 | 7a17f9e6706b6e3f6d55c8e30f0dcec97f495541 | /src/hyperka/hyperbolic/manifold.py | e5bfa0abf060d8a9093cb836b10fa666c81e5cfe | [
"MIT"
] | permissive | HELL-TO-HEAVEN/HyperKA | 8d097c58e0188961de6e4ea74f214e40d9408a04 | cadaf824a739b55211997e73d9948ddbfbe7ce83 | refs/heads/main | 2023-03-30T04:20:31.477323 | 2021-03-25T07:56:55 | 2021-03-25T07:56:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | from abc import abstractmethod
from abc import ABC
class Manifold(ABC):
def __init__(self, *args, **kwargs):
pass
@property
def name(self):
raise NotImplementedError
@staticmethod
def dim(dim):
return dim
def normalize(self, u):
return u
@abstractmethod
... | [
"[email protected]"
] | |
4233d111f76ceabf87cbb1c1701d766aeaf5393b | 17e813f4f20a6ce2d82619be9fac517b5176a74b | /Trees/btToLinkedList.py | 84dacb4426c7a87aa171291005e233ea32317e16 | [] | no_license | AryanGanotra07/DSALGO | 0ee86bbca4b345d21f5d6eb60d96c7aff6f1fc93 | 8cbac991ceec43522a57c65d68f00b54ccb6ea3f | refs/heads/master | 2022-12-08T22:33:14.031636 | 2020-09-13T14:05:41 | 2020-09-13T14:05:41 | 283,800,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # Definition for a binary tree node
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
import sys
sys.setrecursionlimit(15000000)
def solve(a, b):
if a is None:
return
b.append(a.val)
solve(a.left, b)
solve(a.right, b)
... | [
"[email protected]"
] | |
ee8f01d9ff709d7f69ae6cebd6b938844bdd5ee8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03290/s821428254.py | d06c09c404c991b8d3ef901f9f4a5f494259ea0e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | from math import ceil
from itertools import product
D,G=map(int,input().split())
pc=[list(map(int,input().split())) for _ in range(D)]
def calc(P):
count = 0
g = G
for i in range(D):
p,c = pc[-1-i]
if P[-1-i]==1:
count += p
g -= (D-i)*100*p+c
if g<=0:
return count
for i in range(... | [
"[email protected]"
] | |
bcf4f86043750b69eed83dad9603a1d113b66fb7 | a176f3705c92ec1974ada17af2a891e0bf763b97 | /core/get_input.py | 21fcd1c9c836417783cbba4c9450586ea9653811 | [
"Apache-2.0"
] | permissive | indrajithbandara/OWASP-Nettacker | 593bdf5426606e67a94e447b4a9534bf79b0396b | 087ce32f06758db03039a34e6e32fbc57fb4ffef | refs/heads/master | 2021-05-08T14:22:54.520184 | 2018-01-27T20:34:59 | 2018-01-27T20:34:59 | 120,082,592 | 1 | 0 | null | 2018-02-03T10:49:34 | 2018-02-03T10:49:33 | null | UTF-8 | Python | false | false | 514 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from core.compatible import version
from core.alert import __input_msg
def __input(msg, default):
if version() is 2:
try:
data = raw_input(__input_msg(msg))
if data == '':
data = default
except:
data... | [
"[email protected]"
] | |
ec0fe22ab52822601adcf965f531dec7895c63aa | 66fb5bbf3cd0f2c7b00db7081271c376812b68dd | /control_planner/scripts/purepursuit.py | c4385ac0777d26b0a19d879eb7b8d5ef81f9ef78 | [] | no_license | freesloth/wecar_2 | d5e95ae67d65bcd78a60ceae95a48161656e4fab | c05888cc70ddd775a3151b722db06aa41705f6b9 | refs/heads/master | 2023-01-22T15:47:39.505150 | 2020-12-10T03:29:36 | 2020-12-10T03:29:36 | 278,523,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,179 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy
import rospkg
from sensor_msgs.msg import LaserScan,PointCloud,Imu
from std_msgs.msg import Float64
from vesc_msgs.msg import VescStateStamped
from laser_geometry import LaserProjection
from math import cos,sin,pi,sqrt,pow,atan2
from geometry_msgs.msg import P... | [
"[email protected]"
] | |
6fb892e8583fa7eb8e4ec468bbb83d3a7077a633 | fec9d5e77fe0248853c11084cb27ed3b1dcb500c | /users/arxiv/users/legacy/tests/test_endorsements.py | f38ff79e7bc0d63bd241498e861451266964fc1c | [
"MIT"
] | permissive | SamanthaFeidFischer/arxiv-auth | bb1c41f018a3573fa1cbc7b5def9532deb6bdd9c | 08df4e0196a04a06eac1d26477b3ad56ebf56f08 | refs/heads/develop | 2021-06-13T09:58:48.592901 | 2018-09-12T21:31:04 | 2018-09-12T21:31:04 | 148,851,802 | 1 | 0 | MIT | 2021-04-29T19:40:12 | 2018-09-14T23:37:49 | Python | UTF-8 | Python | false | false | 11,057 | py | """Tests for :mod:`arxiv.users.legacy.endorsements` using a live test DB."""
import os
from unittest import TestCase, mock
from datetime import datetime
from pytz import timezone
from flask import Flask
from mimesis import Person, Internet, Datetime
from .. import endorsements, util, models
from ... import domain
E... | [
"[email protected]"
] | |
a8d0358b14e0899a93fda27fcd872490e907be31 | 5c0a253bf2fb83db01abc99097871c965f4cf565 | /study/machinelearning/clustering/flat/KMeans/kMeansWithScratch.py | 6e509df62cf33b8d8436cb1ad679ecef276bd6d5 | [] | no_license | airuibel/python-1 | 3b16553ede9d069ec56efbb12a89a4de6917a447 | 94f387e2d406fab2128bcfffce6146da720b2ccc | refs/heads/master | 2020-07-05T15:43:00.957221 | 2017-09-17T14:05:48 | 2017-09-17T14:05:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | # -*- utf-8 -*-
import matplotlib.pyplot as plt
from matplotlib import style
style.use('ggplot')
import numpy as np
X = np.array([[1, 2],
[1.5, 1.8],
[5, 8],
[8, 8],
[1, 0.6],
[9, 11],
[1, 3],
[8, 9],
[0, ... | [
"[email protected]"
] | |
1fc8c3edd2c2ef3d16c220f36cb7d72c3bcad84f | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-datalabeling/samples/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py | 5f3fe6b186baf941dd84aef169d534faaebfa3cf | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 2,012 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# 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... | [
"[email protected]"
] | |
d49d4df253e01b51cbef0fd3337a5d662b8bb43c | 6a2c2af113bb8b4d55db6ceabc6e78a0bbcd1f91 | /genus processing/Shorts Back Pocket Flap.py | c5157eb6d81a0e4a0684d901d89b3339771afb61 | [] | no_license | JinghongM/Everlasting_Data_Cleansing | 4a966aca5cba102961f64338411d76e51f60f51e | 237073980b2bd1697db578013c7463dcbc1492fb | refs/heads/master | 2021-04-26T23:48:38.083155 | 2018-06-21T20:00:11 | 2018-06-21T20:00:11 | 123,861,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | import pandas as pd
import copy
import os.path
Pattern=6
Material=7
Species=4
CGP = pd.read_excel("../Realdata.xlsx")
for row in range(1,CGP.shape[0]):
genus = str(CGP.iat[row,3])
if "Shorts Back Pocket Flap" == genus:
print(row)
CGP.iat[row,Species] = "Back Pocket"
CGP.iat[row,3] = "Shorts"
i=0 ... | [
"[email protected]"
] | |
42ae99636bef2b466a152cd47dbb195677753fcc | 4960e3e005ba04ec0a8b0defc6642dff5e71f5ae | /knowledge/cron/flow4/scan_domain2sentiment.py | 82aed86bc47562f200906949fc65791e17a4ba4e | [] | no_license | jianjian0dandan/knowledge_revised | aa7d772ba9efcaa579907b0418e145d6b440a9c9 | ffc80dcca932c977755128c80c17dca603ee8a8b | refs/heads/master | 2021-01-24T18:27:41.117166 | 2017-04-25T14:55:42 | 2017-04-25T14:55:42 | 84,448,466 | 1 | 0 | null | 2017-06-15T07:32:31 | 2017-03-09T14:02:46 | HTML | UTF-8 | Python | false | false | 1,974 | py | # -*- coding:utf-8 -*-
'''
use to scan user domain to redis hash for compute sentiment
update: one month
'''
import sys
import time
from elasticsearch.helpers import scan
reload(sys)
sys.path.append('../../')
from global_utils import es_user_portrait, portrait_index_name, portrait_index_type
from global_utils import R... | [
"[email protected]"
] | |
1d2e2eb2c10108687a1dc49559484804e918c456 | 93d700b0275bca7bbe10da7b05afb63129180327 | /cmsplugin_rst/forms.py | 52c718fb178b45fdcd2bb193c48470d6edaec1f1 | [
"BSD-3-Clause"
] | permissive | nwojcik/cmsplugin-rst | d251a4bc029b4f804ee81b8cb5a4efbe719d3270 | afc564dc32fff5fa5e0ad7a9449088cb49737db6 | refs/heads/master | 2021-01-16T20:26:48.392784 | 2011-10-09T13:29:06 | 2011-10-09T13:29:06 | 2,537,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | from cmsplugin_rst.models import RstPluginModel
from django import forms
help_text = '<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html">Reference</a>'
class RstPluginForm(forms.ModelForm):
body = forms.CharField(
widget=forms.Textarea(attrs={
'rows':... | [
"[email protected]"
] | |
b1b7fec1ef05d9659b007e38d824978221d4191c | 0aa2db201678205e9eccd3f4f2dcb6f95a97b5f6 | /tut_23.py | ca22460439ce1e75e3520ad687c01f55a1515c70 | [] | no_license | udoy382/PyTutorial_telusko | ffa76b4b6772d289c787e4b682df2d0965a2bf62 | 5dc5f3fc331605310f7c3923d7865f55a4592e28 | refs/heads/main | 2023-06-09T11:00:41.915456 | 2021-06-30T14:29:56 | 2021-06-30T14:29:56 | 381,730,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # run this type of shape
# # # #
# # # #
# # # #
'''
for i in range(4):
for j in range(4):
print("# ", end="")
print()
'''
# run this type of shape
#
# #
# # #
# # # #
'''
for i in range(4):
for j in range(i+1):
print("# ", end="")
print()
'... | [
"[email protected]"
] | |
45afd3a8a7c4e27c8a14cae91ba000ca278b0c88 | e0f13152e4575f09f0b1e4b1811726bbe5066f90 | /tests/spend.py | 6f12c1c3b03880c9039e75a9eab6c88f5ec189dc | [] | no_license | yagamidev/amoveo | 88bc0dea994fab72c9f430f838ffc54418e30abf | 4dfd6cc8a5cb740500a873c83ff979fa521ec4e7 | refs/heads/master | 2021-04-09T11:45:23.697801 | 2018-03-16T09:13:35 | 2018-03-16T09:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | from get_request import request
def spend_test():
print("spend test")
pub = "BGRv3asifl1g/nACvsJoJiB1UiKU7Ll8O1jN/VD2l/rV95aRPrMm1cfV1917dxXVERzaaBGYtsGB5ET+4aYz7ws="
priv = "nJgWyLTX1La8eCbPv85r3xs7DfmJ9AG4tLrJ5fiW6qY="
brainwallet = ''
request(2, "load_key", [pub, priv, brainwallet], 1)
reque... | [
"[email protected]"
] | |
c5c02b528246d16171faa687ec9e7fb3d4df0a74 | 039ba9dba0f131496a959338c32e811904f00708 | /mycrm/shopcrm/shopcrm/settings.py | bd18f1c8d64d8efad0647ac52c6bf4b7e4fd5f5d | [] | no_license | mageshrocky/python_django_projects | 49e12aff8fe08704c2d17b60d5373f0990120336 | 444c30780632ceea5c6b7377356ed2c3c5ce6253 | refs/heads/master | 2023-05-18T11:57:01.691868 | 2021-06-15T11:18:26 | 2021-06-15T11:18:26 | 377,125,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,265 | py | """
Django settings for shopcrm project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
fro... | [
"[email protected]"
] | |
93fb80555ba83304ee0774e8a8d306de3231038c | d8edd97f8f8dea3f9f02da6c40d331682bb43113 | /networks439.py | 52a3ed76800ad9bf46c5c6733e530a3fa5cc21d3 | [] | no_license | mdubouch/noise-gan | bdd5b2fff3aff70d5f464150443d51c2192eeafd | 639859ec4a2aa809d17eb6998a5a7d217559888a | refs/heads/master | 2023-07-15T09:37:57.631656 | 2021-08-27T11:02:45 | 2021-08-27T11:02:45 | 284,072,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,889 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
__version__ = 205
# Number of wires in the CDC
n_wires = 3606
# Number of continuous features (E, t, dca)
n_features = 3
class Gen(nn.Module):
def __init__(self, ngf, latent_dims, seq_len, encoded_dim):
super().__init__... | [
"[email protected]"
] | |
0fbcb4dace7a1a4154e9787babcc6e51e2fb5d94 | 46769b03aa33875bf4c7b1d4a2c51635a397cdfc | /new_test_22_dev_10089/wsgi.py | 71a95a093114e20c8b2cd6e41198ec4cfed9c106 | [] | no_license | crowdbotics-apps/new-test-22-dev-10089 | 89b7e69c0dc0144f507ad6a0b84f06386d9a4e1c | ff18ba29e44581c139829607c663d731730b7bd9 | refs/heads/master | 2022-12-14T20:30:56.738780 | 2020-09-07T13:15:20 | 2020-09-07T13:15:20 | 293,532,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for new_test_22_dev_10089 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault... | [
"[email protected]"
] | |
1cd44967f3be59b5da4887abb18f70c55b13da1d | 79c1f1e1f9a123a146a314b9e4cd7f57c2301ed3 | /visualize/CSVVsersion/SceneCSV.py | 1fa2468f95df5ef35c99938e975a8dbef066891a | [
"MIT"
] | permissive | ys1998/motion-forecast | 41a1ebc553edddcf8c463d67237f53c23aa53729 | ef8fa9d597906a756f28952a731f6bc8d178f2bf | refs/heads/master | 2020-04-17T16:41:20.276427 | 2019-07-07T06:19:30 | 2019-07-07T06:19:30 | 166,751,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | import vtk
class SceneCSV(object):
def __init__(self):
self.sceneSources = list()
self.sceneMappers = list()
self.sceneActors = list()
self.sceneLights = list()
self.addLight(1.0, 1.0, 1.0, 1000, 1000, -1000, 0.75, 180, 0.75)
self.addLight(1.0, 1.0, 1.0, -1000, 500... | [
"[email protected]"
] | |
91b1c10e64a295b822581c8cf1127bbf61ba56b2 | 7cecdae92dc9b32df74d45a1bd529bc544283f94 | /tests/test_config_reader.py | 20ca54e3cbd8839410c09f8f079c3409405dcb82 | [
"MIT"
] | permissive | Josef-Friedrich/jflib | 6d680bebc414a7b56918fdb33694ce666e41d9af | 722f8cd9fa7008fc1db77d7e785f6bfd90b5d7f6 | refs/heads/main | 2023-05-28T23:32:33.381374 | 2023-05-23T21:30:22 | 2023-05-23T21:30:22 | 180,605,227 | 3 | 0 | MIT | 2023-05-23T21:30:23 | 2019-04-10T14:58:43 | Python | UTF-8 | Python | false | false | 16,179 | py | import argparse
import os
import tempfile
import unittest
from jflib import config_reader
from jflib.config_reader import (
ArgparseReader,
ConfigReader,
ConfigValueError,
DictionaryReader,
EnvironReader,
IniReader,
ReaderBase,
ReaderSelector,
load_readers_by_keyword,
validate_k... | [
"[email protected]"
] | |
be9f7d8b3ac111643c48d86d2142203de3228393 | 7b383cab8f9708dd9bc00c939cbab9600c0ca894 | /UP2/NCS1/USBCam/Classes/NCS1.py | 87c91137d99cfd455a3f827b54d10b7e35d6f62c | [
"MIT"
] | permissive | amirunpri2018/TassAI | 3f05b1b848d6d93fe491761589352bc0521496c3 | 3451f34d8973b67a823784e7db8fde03b274a60d | refs/heads/master | 2022-12-22T06:48:46.024068 | 2020-10-01T15:43:25 | 2020-10-01T15:43:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,806 | py | ######################################################################################################
#
# Organization: Asociacion De Investigacion En Inteligencia Artificial Para La Leucemia Peter Moss
# Project: UP2 NCS1 Facial Recognition USB Security System
#
# Author: Adam Milton-Barker (AdamMiltonB... | [
"[email protected]"
] | |
2de76a36c9302294182913712a4cbdbd7f90c964 | 9e1f60a867f66b1f4e4fc84fa4252c581e5e1a36 | /Chapter09/test_state_1.py | e33eaec766eaab31fbfd5891365def90b52cc707 | [
"MIT"
] | permissive | PacktPublishing/Clean-Code-in-Python | c216e002485b8cd7736f97b59215a3930f35359a | 7348d0f9f42871f499b352e0696e0cef51c4f8c6 | refs/heads/master | 2023-06-10T13:40:33.331115 | 2023-05-30T17:48:09 | 2023-05-30T17:48:09 | 145,072,942 | 523 | 181 | MIT | 2023-05-30T17:48:10 | 2018-08-17T04:48:38 | Python | UTF-8 | Python | false | false | 1,489 | py | """Clean Code in Python - Chapter 9: Common Design Patterns
> Test State
"""
import unittest
from state_1 import Closed, InvalidTransitionError, Merged, MergeRequest, Open
class TestMergeRequestTransitions(unittest.TestCase):
def setUp(self):
self.mr = MergeRequest("develop", "master")
def test_r... | [
"[email protected]"
] | |
2145526225efcedfd80d26083e233b193732814f | 8ff6c3e513e17be6c51b484bed81d03150bdd175 | /2013-01-facegif/cutface.py | afb58002b5ace80bf5625eccd582ac4bee62a9f2 | [] | no_license | ricbit/Oldies | f1a2ac520b64e43d11c250cc372d526e9febeedd | 2d884c61ac777605f7260cd4d36a13ed5a2c6a58 | refs/heads/master | 2023-04-27T20:35:19.485763 | 2023-04-26T04:45:44 | 2023-04-26T04:45:44 | 2,050,140 | 40 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | import cv
import os
import sys
def DetectFaces(image):
cascade = cv.Load('haarcascade_frontalface_alt.xml')
storage = cv.CreateMemStorage(0)
return cv.HaarDetectObjects(
image, cascade, storage, 1.2, 2, cv.CV_HAAR_DO_CANNY_PRUNING)
def cut_image(image):
grayscale = cv.CreateImage(cv.GetSize(image), 8, 1... | [
"[email protected]"
] | |
4e6ebbffaa7463d3cfd44e97df532f2dee48d07a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2788/60595/251681.py | ce493d0bf81d1f4beb8b4ad066205aea69c75fcb | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | def Test():
n=int(input())
boys=eval("["+input().strip().replace(" ",",")+"]")
m=int(input())
girls=eval("["+input().strip().replace(" ",",")+"]")
z=min(m,n)
parts=[]
j=0
if(z==n):
while(j<len(girls)):
if(check(boys[0],girls[j])):
parts.append([boys[0]... | [
"[email protected]"
] | |
a4b1a60545658a8d8f78c60948c9a730f08c530f | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_sqr/trend_constant/cycle_12/ar_/test_artificial_1024_sqr_constant_12__100.py | 2239a2b9360d2647f6e4ca61b30fe39991f9a2e9 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 1024 , FREQ = 'D', seed = 0, trendtype = "constant", cycle_length = 12, transform = "sqr", sigma = 0.0, exog_count = 100, ar_order = 0);
art.process_dataset(dataset); | [
"[email protected]"
] | |
082a1d0a91074a3a3545799fa89ac845b5d5790b | bf448de248ec95325839b5e355af6982b4e5632d | /todo_project/testing_app/views/index.py | ac307f51c5dad4b28290138bc92c859ef3195724 | [] | no_license | rusalinastaneva/Python-Web-Basics | b459b8f47918b52654d304f3db3de54156299f66 | ecdd72b44d4d0a1b107ef1f9fa10eb252bd4fd0e | refs/heads/master | 2023-01-05T13:15:58.691511 | 2020-11-02T20:32:16 | 2020-11-02T20:32:16 | 309,486,341 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from django.shortcuts import render, redirect
from testing_app.forms.profile import ProfileForm
from testing_app.models import Profile
def index(request):
if request.method == 'GET':
context = {
'profiles': Profile.objects.all(),
'form': ProfileForm(),
}
return ren... | [
"[email protected]"
] | |
b4391290703dfc6a10438c48de9f21f63720a332 | cc0c0f99a5cf563ff52a76f2ac17cdad09d22f01 | /venv/Lib/site-packages/itk/itkReinitializeLevelSetImageFilterPython.py | 3d980dd5b7380f3bcd09a86b369d64e85eb438f6 | [] | no_license | Marxss/carck_detect_system | 9c0d338bde322b4c7304fd0addb524d8697c8a7b | d2480f2108052af8af0aa5265a5239c309885043 | refs/heads/master | 2022-04-15T23:34:20.988335 | 2020-03-29T16:24:00 | 2020-03-29T16:24:00 | 214,625,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,562 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3, 0, 0):
new_instancemethod = lambda func, inst, cls: _itkR... | [
"[email protected]"
] | |
4fa0efb8dc0dd6987ee766db7a94b8729fca3054 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_Class168.py | 6263a03eb4672e046fa05de76c19787287b6648e | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,188 | py | # qubit number=3
# total number=30
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"[email protected]"
] | |
c7de402e23ffc1e90db73f1063f4c6f29ac379e0 | a0f0bfa44979566732b76c609a9198457e031a2b | /docs/source/conf.py | de97daef2a9bc7e1ee09bea6783833a6f2872132 | [
"BSD-3-Clause"
] | permissive | davidfischer/sporco-cuda | 951aebd1001e9cfe58e490c470b6addb163ca271 | ffe633b9cf7055550a0f2250e29bedd99cd098f1 | refs/heads/master | 2020-03-16T11:41:31.922467 | 2018-05-08T00:41:26 | 2018-05-08T00:41:26 | 132,652,756 | 0 | 0 | null | 2018-05-08T19:03:16 | 2018-05-08T19:03:15 | null | UTF-8 | Python | false | false | 10,177 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# sporco_cuda documentation build configuration file, created by
# sphinx-quickstart on Wed Nov 22 21:03:01 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
... | [
"[email protected]"
] | |
b1baa37ccc2300a62d8d9375b75162e34c2989df | 5a281cb78335e06c631181720546f6876005d4e5 | /openstack-placement-1.0.0/placement/tests/fixtures.py | be235b355a8c4dee2334904091ad0f96969adaab | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 3,272 | py | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a ... | [
"Wayne [email protected]"
] | Wayne [email protected] |
393ccdde7ef08c546deeb32ee7f792b458c689fa | a63419b2c457a219c010876ece3980af8cfc3c1b | /_DJANGO_/django-player/gameplay/views.py | 556971862e1019a0cf46647d9fb7fb1688c69685 | [] | no_license | thomasm1/python_2018 | ba87560a1e25343c0429fcafe51bb867dc299223 | 6a57c7603055a2511a8734ab34ce21f76e4427ef | refs/heads/master | 2023-05-10T07:20:07.911734 | 2023-05-05T03:58:36 | 2023-05-05T03:58:36 | 147,065,041 | 2 | 5 | null | 2023-03-03T15:15:08 | 2018-09-02T07:41:32 | Rich Text Format | UTF-8 | Python | false | false | 1,150 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.contrib.auth.decorators import login_required
from django.core.exceptions import PermissionDenied
from django.views.generic import ListView
from .models import Game
from .forms import MoveForm
@login_required()
def game_detail(request, id):... | [
"[email protected]"
] | |
3110c67c6673e46cd839713921988a00f652a37e | e7290064b5df4731167bab10606f451b446a21f7 | /python/ray/runtime_context.py | 1ec4a38511968bc138256290746c4f4428646c0f | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | sven1977/ray | dce9f6fa114741837341f14aef0a8c64c442aba6 | b73a496af19bce627a611e7af2cb02a3c5d99684 | refs/heads/master | 2023-09-02T00:57:47.167794 | 2023-08-17T09:33:04 | 2023-08-17T09:33:04 | 229,269,728 | 2 | 5 | Apache-2.0 | 2023-07-29T07:08:41 | 2019-12-20T13:27:01 | Python | UTF-8 | Python | false | false | 13,583 | py | import logging
from typing import Any, Dict, Optional
import ray._private.worker
from ray._private.client_mode_hook import client_mode_hook
from ray._private.utils import pasre_pg_formatted_resources_to_original
from ray.runtime_env import RuntimeEnv
from ray.util.annotations import Deprecated, PublicAPI
logger = log... | [
"[email protected]"
] | |
ae77d3ac091bad1efdaf9614fef017f8eeb6c022 | ade9a658d227f8b91c9c19ceb7dfaf1bab24f909 | /tests/test_items/test_contacts.py | 4e77130f21744d24f35265713b9da73ed45cedc5 | [
"BSD-2-Clause"
] | permissive | spmsh/exchangelib | 3da14e89e5606178f0594ac0498063db0c3e62a2 | 9cf3d9f08926d8a923c00d3a3cb9d96203cb25b1 | refs/heads/master | 2023-08-30T23:01:03.929611 | 2021-11-23T00:41:03 | 2021-11-23T00:41:03 | 203,696,045 | 0 | 0 | BSD-2-Clause | 2021-11-23T00:43:06 | 2019-08-22T02:04:23 | Python | UTF-8 | Python | false | false | 10,088 | py | import datetime
try:
import zoneinfo
except ImportError:
from backports import zoneinfo
from exchangelib.errors import ErrorInvalidIdMalformed
from exchangelib.folders import Contacts
from exchangelib.indexed_properties import EmailAddress, PhysicalAddress, PhoneNumber
from exchangelib.items import Contact, Di... | [
"[email protected]"
] | |
e1eca6386c795d0c9133574f9c9d774114791f16 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/word-count/5cf7181856df4d0a963c76fedfbdd36a.py | f9930a4d6aa5f919c9e249a5f9a7b5e2abcc8d31 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 908 | py | """Word Counting."""
from collections import Counter
import re
import string
# A regular expression that matches any punctuation character.
PUNCTUATION_REGEX = re.compile("[{}]".format(re.escape(string.punctuation)))
class Phrase(str):
"""A subclass of str that supports word counting."""
def __init__(self... | [
"[email protected]"
] | |
88441b7e0974e4fc5de5bd965e9a9ad800acd21e | c7dfacea4969b4fef264429e7c21d6c2d4c932b4 | /src/baxter_examples/src/baxter_examples/recorder.py | 032f365f567755301f351b69f2b1e7a75a832475 | [
"BSD-2-Clause"
] | permissive | DeepBlue14/arm_wkspc | 697944c72be9a8efaf97a84b6c26a84ebc8de3a6 | 04009550321868722d207924eed3609be7f54882 | refs/heads/master | 2020-03-21T10:10:05.644158 | 2018-06-23T23:16:40 | 2018-06-23T23:16:40 | 138,436,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,350 | py | # Copyright (c) 2013-2014, Rethink Robotics
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditio... | [
"[email protected]"
] | |
1b619b69b89bc115f7076f0884b11de16029f768 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_graph_ql_api_resolver_policy_operations.py | 38e54b6b1cfaa067458f84d88918cd32ea53c32f | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 38,418 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"[email protected]"
] | |
94b0a380ce4543b547a5176caef0e9ce5901f3ca | ad71b2aaab2bf1127f40fef008ac6f6d1334c32c | /share/rpcauth/rpcauth.py | 219286929731362f0553450cf62c1d98e5fd84b4 | [
"MIT"
] | permissive | minblock/carpaticoin | 00eb755770f370d54d73ae9b227e4d4bbd60babb | f65cf89970b36a073b49435a3833a2a83a7f2145 | refs/heads/master | 2021-05-22T01:38:29.187393 | 2020-04-04T04:41:16 | 2020-04-04T04:41:16 | 252,909,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from argparse import ArgumentParser
from base64 import urlsafe_b64encode
from binascii import hexlify
fro... | [
"[email protected]"
] | |
6ab3e1a39cd93671912027393c5a68e9026211cb | 7941390ad02fca9f8c66ceaf1d71a9fd0815f50e | /simple_NER/annotators/remote/allenai.py | b54499e860da539887f6b0098ac177a14e67b49b | [
"MIT"
] | permissive | msgpo/simple_NER | 08cde36758f1d97560c3db9e36918a7e4abe08dd | 5eaed615d9075d879e4b2af461f2e99acc0f9e68 | refs/heads/master | 2022-04-19T13:07:56.507469 | 2020-04-12T18:43:42 | 2020-04-12T18:43:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | from simple_NER.annotators import NERWrapper
from simple_NER import Entity
import requests
def allen_NER(text, host):
url = host + "named-entity-recognition"
data = {"sentence": text}
return requests.post(url, json=data).json()
class AllenNlpNER(NERWrapper):
def __init__(self, host="http://demo.all... | [
"[email protected]"
] | |
3dd267f794d2b0b929fd7ea3529b59d9507ba38a | a3cc7286d4a319cb76f3a44a593c4a18e5ddc104 | /lib/surface/app/__init__.py | 9826abe1d2a81963769b6af01ae5ebf38641f8f6 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jordanistan/Google-Cloud-SDK | f2c6bb7abc2f33b9dfaec5de792aa1be91154099 | 42b9d7914c36a30d1e4b84ae2925df7edeca9962 | refs/heads/master | 2023-09-01T01:24:53.495537 | 2023-08-22T01:12:23 | 2023-08-22T01:12:23 | 127,072,491 | 0 | 1 | NOASSERTION | 2023-08-22T01:12:24 | 2018-03-28T02:31:19 | Python | UTF-8 | Python | false | false | 2,758 | py | # Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"[email protected]"
] | |
541e28ec93c85cc1adc61eecd87bdde2a641136b | c91d029b59f4e6090a523bf571b3094e09852258 | /src/utils/middlewares.py | 64ca375d393cdaff4d003588764a00f79181c0a1 | [
"MIT"
] | permissive | anselmobd/fo2 | d51b63ebae2541b00af79448ede76b02638c41f0 | 8e7f8f3d9a296c7da39d0faf38a266e9c6c162ab | refs/heads/master | 2023-08-31T19:59:33.964813 | 2023-08-31T19:50:53 | 2023-08-31T19:50:53 | 92,856,677 | 1 | 0 | MIT | 2023-04-21T21:50:46 | 2017-05-30T17:04:27 | Python | UTF-8 | Python | false | false | 2,927 | py | import re
import threading
from django.conf import settings
from django.http import HttpResponse
from django.shortcuts import redirect
from geral.functions import is_alternativa
from utils.functions import get_client_ip
request_cfg = threading.local()
try:
from django.utils.deprecation import MiddlewareMixin
... | [
"[email protected]"
] | |
f3e46e8de53108b8175863fac2003556b51fdbdc | 5dc393ffb3d65094d2c4f6bc8b9980e2fc167670 | /pandas/stats/tests/test_fama_macbeth.py | f48dde20f138ac2a2f78bf479e668b579e96ac1f | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | JWCornV/pandas | 913db2a34cb9f9820f986412e9c3cf868ecef24d | 6078fba9410918baa486ca008cc9e3ba066c03ec | refs/heads/master | 2020-12-25T10:14:13.384789 | 2012-06-27T17:10:54 | 2012-06-27T17:10:54 | 4,813,052 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | from pandas import DataFrame, Panel
from pandas.stats.api import fama_macbeth
from common import assert_almost_equal, BaseTest
import numpy as np
class TestFamaMacBeth(BaseTest):
def testFamaMacBethRolling(self):
# self.checkFamaMacBethExtended('rolling', self.panel_x, self.panel_y,
# ... | [
"[email protected]"
] | |
7dbb8959b233092833590760e034f6ebe7360014 | 1065a2782e4947b5bf14ec4536e4ad7addc7aec3 | /strategy/cryptoalpha/casubc.py | f4bb09a5cb12cc696d58f6af909445370b6e56b8 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Johannesduvenage/siis | 0bf6875d4a5f3638cadb01ed5541aab29ba1d77a | 57e537cf9b6a71c8ad0b3bb0759772d126496a17 | refs/heads/master | 2020-09-10T21:51:56.814014 | 2019-11-13T23:57:34 | 2019-11-13T23:57:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,900 | py | # @date 2018-08-24
# @author Frederic SCHERMA
# @license Copyright (c) 2018 Dream Overflow
# Crypto Alpha strategy, sub-strategy B.
from strategy.indicator import utils
from strategy.strategysignal import StrategySignal
from monitor.streamable import StreamMemberFloatSerie, StreamMemberSerie, StreamMemberFloatBarSerie... | [
"[email protected]"
] | |
901ed40757453f72482e04347a567f48a4452388 | b29acb2e230b3cf2f8be070850c34ed5d62dc80c | /Python/YPS/10/Sample1.py | ff99a7a4d11b7f13bd9fd07db5ef310bd2a798dc | [] | no_license | MasatakaShibataSS/lesson | be6e3557c52c6157b303be268822cad613a7e0f7 | 4f3f81ba0161b820410e2a481b63a999d0d4338c | refs/heads/master | 2020-06-17T13:42:08.383167 | 2019-11-11T07:23:14 | 2019-11-11T07:23:14 | 195,940,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | f = open("Sample.txt", "w")
f.write("こんにちは\n")
f.write("さようなら\n")
f.close()
| [
"[email protected]"
] | |
3fc5667310c4f116f9078ae8b07b622e7b91b154 | bbb5447fa5c39c050f23e8b62a91df052818570d | /modules/ibm_app_domain_shared_info.py | e47b4b30b53100306ee9d568fa4aca3a21e41555 | [] | no_license | Trickster4/ansible-collection-ibm | b28b79174b1f1b3f0dcba09e4888396e16b945bd | 14455103b7cb4845e6cfa3803cce7b2a0546af03 | refs/heads/master | 2021-01-03T22:33:46.082228 | 2020-02-09T19:49:09 | 2020-02-11T04:55:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,417 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Mozilla Public License, version 2.0
1. Definitions
1.1. “Contributor”
means each individual or legal entity that creates, contributes to the
creation of, or owns Covered Software.
1.2. “Contributor Version”
means the combination of the Contributions of o... | [
"[email protected]"
] | |
ba6aeae64431208cbabea1456729c92c602f9921 | 386d5d4f8f102e701d02b326cd066f520e3dff9f | /ProjectApplication/project_core/migrations/0163_add_account_number.py | b5f637bb6f9f02103a1375f7fd3e3ed9b338b0fa | [
"MIT"
] | permissive | Swiss-Polar-Institute/project-application | ae2561c3ae2c1d5412d165d959ce2e5886135e0a | 7dc4a9f7e0f8d28c89977b85f99bc5e35ea77d43 | refs/heads/master | 2023-08-31T04:01:23.492272 | 2023-08-25T14:33:02 | 2023-08-25T14:33:02 | 206,330,401 | 7 | 5 | MIT | 2023-09-13T08:03:53 | 2019-09-04T13:49:39 | Python | UTF-8 | Python | false | false | 2,043 | py | # Generated by Django 3.2 on 2021-04-23 10:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('project_core', '0162_callpartfile_proposal_keywords_null'),
]
operations = [
migrations.AddField(
... | [
"[email protected]"
] | |
01f2b39e906fa6896ddad81b11c800af607781d7 | 652121d51e6ff25aa5b1ad6df2be7eb341683c35 | /examples/mouse_and_key_modifiers.py | 6d28b7351cebc4f69acb343c35eb8233fa6877a3 | [] | no_license | jgalaz84/eman2 | be93624f1c261048170b85416e517e5813992501 | 6d3a1249ed590bbc92e25fb0fc319e3ce17deb65 | refs/heads/master | 2020-04-25T18:15:55.870663 | 2015-06-05T20:21:44 | 2015-06-05T20:21:44 | 36,952,784 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | from PyQt4 import QtCore, QtGui
class MouseAndKeyModifiers(QtGui.QWidget):
def __init__(self, parent = None):
QtGui.QWidget.__init__(self, parent)
layout = QtGui.QVBoxLayout()
label = QtGui.QLabel("Click here to test mouse buttons: Left, Right, Middle\nand keyboard modifiers: Ctrl, Alt, Shift, and Command (a... | [
"[email protected]"
] | |
b8e8df4165e5c68d730eab8b8fe69f808f78ca32 | bc08302533982d4a154f5615a2c8366f695234e5 | /work/tools/free_ip.py | 721bcc9f76e13c7c646d22000c17c96dd1e0352c | [] | no_license | rvfedorin/PythonDevelopment | bfd3cfb4ad22d72e2002d7430fa8821ea35717f6 | d6748189874b53b8357d5b3ff7d520ff0a93e15a | refs/heads/master | 2022-12-13T11:53:16.041737 | 2019-02-15T08:50:15 | 2019-02-15T08:50:15 | 122,050,190 | 0 | 0 | null | 2022-12-08T01:18:43 | 2018-02-19T10:57:37 | Python | UTF-8 | Python | false | false | 3,528 | py | def mark_used_ip(list_used_ip, list_all_ip):
for ip in list_all_ip:
if ip in list_used_ip:
position_ip = list_all_ip.index(ip)
list_all_ip[position_ip] = 'x'
def get_free_lan(list_ip_with_used):
free_lan = []
for lan in range(25, 33):
count_subnet = 2**(lan - 24)
... | [
"[email protected]"
] | |
1c95e6322f01f2981b14f4584444c325432b8207 | 490ffe1023a601760ae7288e86723f0c6e366bba | /kolla-docker/patching/zun_compute_api/providerregion.py | 4dc91fc51a266902d9ef25f4c4c4b88fc506ef8c | [] | no_license | bopopescu/Cloud-User-Management | 89696a5ea5d2f95191327fbeab6c3e400bbfb2b8 | 390988bf4915a276c7bf8d96b62c3051c17d9e6e | refs/heads/master | 2022-11-19T10:09:36.662906 | 2018-11-07T20:28:31 | 2018-11-07T20:28:31 | 281,786,345 | 0 | 0 | null | 2020-07-22T21:26:07 | 2020-07-22T21:26:06 | null | UTF-8 | Python | false | false | 1,658 | py | def providerregion_update(self, context, container, *args):
if direct_action:
return self.manager.providerregion_update(context, container, *args)
else:
return self.rpcapi.providerregion_update(context, container, *args)
def providerregion_show(self, context, container,... | [
"[email protected]"
] | |
ea468b999d209aa5949f47fbf2a33213a78b306b | 4369c5a214f8c4fb1f8a286f72d57cfa9c3f02c7 | /geotrek/maintenance/migrations/0010_auto_20200228_1755.py | dfa45158e5acc1cee91f1e527738011a5ef40379 | [
"BSD-2-Clause"
] | permissive | GeotrekCE/Geotrek-admin | c13d251066e92359c26f22d185b8bd2e26e622ef | a91b75261a876be51ad2a693618629900bea6003 | refs/heads/master | 2023-08-21T12:45:25.586551 | 2023-08-09T12:28:33 | 2023-08-09T12:28:33 | 9,886,107 | 71 | 56 | BSD-2-Clause | 2023-09-13T09:40:33 | 2013-05-06T12:17:21 | Python | UTF-8 | Python | false | false | 1,121 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2020-02-28 16:55
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('maintenance', '0009_auto_20200211_1011'),
]
operations = [
migrations.Alte... | [
"[email protected]"
] | |
a67fd9139f1b1a1a5f55555ccfc4ea911006371a | f1e98def25f88d17c328c07d4052cd6c34c27707 | /app/accounts/migrations/0002_alter_account_is_active.py | c7dd55e323cc76df4802b6c243d6f44f3d2b3d94 | [
"MIT"
] | permissive | iyanuashiri/exchange-api | c7f1fd2257c3369de9c0b7bea6806c602f25662e | 86f7a4e9fb17f71888e6854510618876d1010c19 | refs/heads/main | 2023-05-30T22:57:46.901693 | 2021-06-13T21:59:22 | 2021-06-13T21:59:22 | 376,542,066 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # Generated by Django 3.2.4 on 2021-06-13 17:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='account',
name='is_active',
... | [
"[email protected]"
] | |
34b10e72f10087aaa703323b4c4bb1e1fefdc4d2 | 5b7d5723b84f5011965aba18ebf0c080253b2fcb | /posts/views/feed.py | 607dc5b67c34d133f749e9e5c0c63d56c801c80a | [
"MIT"
] | permissive | ReDetection/vas3k.club | 5980e6849ccf2e67a380d80d23036ec09ed94453 | ad97fefca5ec52047b2daad77ddf2eb2aecb03b3 | refs/heads/master | 2023-06-11T19:48:56.730541 | 2020-08-12T17:44:26 | 2020-08-12T17:44:26 | 287,545,618 | 0 | 0 | MIT | 2020-08-14T13:58:31 | 2020-08-14T13:58:30 | null | UTF-8 | Python | false | false | 2,905 | py | from datetime import datetime, timedelta
from django.db.models import Q
from django.http import Http404
from django.shortcuts import get_object_or_404, render
from auth.helpers import auth_required
from common.pagination import paginate
from posts.models import Post, Topic
POST_TYPE_ALL = "all"
ORDERING_ACTIVITY = ... | [
"[email protected]"
] | |
5c3b9ce4daac002df7317fca1d9da2026544660a | 82205ef1622ef3bb3bd4982f6ddc52509686af8c | /numba2/pipeline.py | 6a3813352da9a461afdad7bd801f5f684e75bdd7 | [] | no_license | cooperliu101/numba-lang | 22f1567e17cd7cf831f254bf64bc7e3192c973c3 | 37abfcbb516175153e73474dababb2d89cba7a8b | refs/heads/master | 2021-07-21T14:35:23.943243 | 2013-11-15T12:07:53 | 2013-11-15T12:07:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | # -*- coding: utf-8 -*-
"""
Pipeline that determines phase ordering and execution.
"""
from __future__ import print_function, division, absolute_import
import dis
import types
import pykit.ir
#===------------------------------------------------------------------===
# Pipeline
#===-----------------------------------... | [
"[email protected]"
] | |
f3e7ef114ef2471fbf5671381769253a62f14fce | f693c9c487d31a677f009afcdf922b4e7f7d1af0 | /biomixer-venv/bin/rst2latex.py | f2bf88ab2545f14b13e630bbf6232fa0aac977a0 | [
"MIT"
] | permissive | Shellowb/BioMixer | 9048b6c07fa30b83c87402284f0cebd11a58e772 | 1939261589fe8d6584a942a99f0308e898a28c1c | refs/heads/master | 2022-10-05T08:16:11.236866 | 2021-06-29T17:20:45 | 2021-06-29T17:20:45 | 164,722,008 | 1 | 3 | MIT | 2022-09-30T20:23:34 | 2019-01-08T19:52:12 | Python | UTF-8 | Python | false | false | 831 | py | #!/home/shello/Documents/BioMixer/biomixer-venv/bin/python
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
# Author: David Goodger <[email protected]>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing LaTeX.
"""
try:
import locale
... | [
"[email protected]"
] | |
5114e9fb9e89b7c121fe36ba7adffd2c63ca57fb | 1f5299e547125f7ba2c3b72984e82ba3b1f984de | /basejumper/security.py | ad0e4a6b627153a5f150932198651845b40573cd | [] | no_license | ESGF/basejump | 72b805818188ae09b1e3329035718b0816927a13 | 593d5e57e63848c30219ca9b49e25f49b59dcf82 | refs/heads/master | 2021-07-23T04:19:57.489628 | 2017-11-02T16:51:52 | 2017-11-02T16:51:52 | 47,994,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | import hmac
import hashlib
import json
import collections
def constant_time_compare(val1, val2):
# We'll allow them to know that the lengths of the strings don't match
if len(val1) != len(val2):
return False
result = 0
for x, y in zip(val1, val2):
result |= ord(x) ^ ord(y)
return ... | [
"[email protected]"
] | |
c433ae0599808eb1ea13010018c8a7e094198719 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/189/29190/submittedfiles/swamee.py | 3b19ef457ff49af07dc44e820878bdc4c334e957 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | # -*- coding: utf-8 -*-
import math
f= float(input('digite f:'))
l= float(input('digite l:'))
q= float(input('digite q:'))
delta= float(input('digite delta:'))
v= float(input('digite v:'))
d=(8*f*l*(q*q)/3.14159**2*9.81*delta)/(1/5)
rey=((4*q)/(3.14159*d*v))
k=0.25/(math.log10(0.000002/3.7*d+5.74/rey**0.9))**2
print('O... | [
"[email protected]"
] | |
8bafb18de3c09b4e845ad8d2df44676d5617bfad | 3e3743928f43aaef5cfb72e257b6f091fc2a39cb | /src/whirlwind/tornado/carbon/persist.py | 6a4360ba75d08129ad746ac60e9c350f75c12a51 | [
"Apache-2.0"
] | permissive | bearstech/whirlwind-tornado | 3871862944f584816a1d90891cec815f64209e14 | 85b9e6b4b3413694cb6e5040ce5c72b6e5e436ac | refs/heads/master | 2021-01-18T14:10:05.666763 | 2020-10-13T09:47:05 | 2020-10-13T09:47:05 | 10,527,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | import time
import struct
import os.path
import os
import whisper
from redis import StrictRedis as Redis
from whirlwind import target_to_path
METRICS = 'metrics'
PERIOD = 30
METRIC_WRITE = 'carbon.write'
METRIC_POINTS = 'carbon.points'
class Persist(object):
""" Sequential writer for Carbon server.
The sto... | [
"[email protected]"
] | |
dc49aee3b646e4e2864be55fd34519a351e9c3ad | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R1/benchmark/startQiskit_noisy83.py | 997aaa1938fcb497d01eab2eff9be00509126ac8 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | # qubit number=3
# total number=9
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collection... | [
"[email protected]"
] | |
e680ac98db693298f1bdeb9376fa11577feeb89a | c237e2f29eac2b92bd2b77d055e33cf760960284 | /todobackend/todo/serializers.py | dc073eafa9c9e17d9bdc60cc128b53a776392e7b | [] | no_license | razyesh/Django-TODO-React | 7f3293c858099f8656a287c8706f739b1d513077 | b8529138334710d582324f286c10a39197aca25d | refs/heads/master | 2022-12-11T11:20:33.622468 | 2019-06-28T10:28:03 | 2019-06-28T10:28:03 | 194,255,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from rest_framework import serializers
from .models import Todo
class TodoSerializer(serializers.ModelSerializer):
class Meta:
model = Todo
fields = (
'id',
'title',
'description',
'completed',
) | [
"[email protected]"
] | |
a9844ec6bc76cbabb561aa8a324b90f85c935090 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-hbr/aliyunsdkhbr/request/v20170908/DeleteSqlServerInstanceRequest.py | 8647a804d9271b31c253673d44db33fd213dcbae | [
"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 | 1,604 | 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... | [
"[email protected]"
] | |
25c3b42a397977592ebd6616aeefe441954c721c | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/classification/3D_ResNet_ID0421_for_PyTorch/pth2onnx.py | 344f0acb80d30eeb817bac80202a259a4e4fbed2 | [
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,739 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"[email protected]"
] | |
fe0b784d9423f6752a2e04ea2db13d45f4526bf0 | 7249edf3365731c92a9c9c05db3186894306cc17 | /python/src/vmaf/svmutil.py | ca49e991943642c3fce7b7aca7f07566c7af3622 | [
"LGPL-3.0-or-later",
"Apache-2.0"
] | permissive | sunery/vmaf | 22e2f782549e1c71aa6f5160f26350e0aca06189 | 03eb8a4980b1bf2b3edd66767e67927109dbd9de | refs/heads/master | 2020-04-01T15:12:57.469291 | 2018-10-15T00:31:21 | 2018-10-15T00:31:21 | 153,327,009 | 1 | 0 | Apache-2.0 | 2018-10-16T17:32:53 | 2018-10-16T17:32:53 | null | UTF-8 | Python | false | false | 735 | py | # TODO: dependency on libsvm/svmutil needs to be properly done, this is a temporary workaround wrapper
from __future__ import absolute_import
import sys
from vmaf.config import VmafConfig
# This will work only when running with a checked out vmaf source, but not via pip install
libsvm_path = VmafConfig.root_path('l... | [
"[email protected]"
] | |
a85f58e88b5664a708051c99c0c4ada535118d4e | 70121257e52e0fd2f0895414fcee3c991737443a | /python_recipes/danfo_csv.py | 96c22906850257b9b40aa400587b7180e3fa23bd | [] | no_license | OlgaBelitskaya/cookbooks | 2e54208bb5e5157814deea6ff71cd7ce5b1e4972 | 216dde3e5617203371ed4c4bb7d9e8391640c588 | refs/heads/master | 2021-07-11T15:56:44.923442 | 2021-03-25T08:38:46 | 2021-03-25T08:38:46 | 99,447,645 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | from IPython.core.display import display,HTML
def danfo_table_csv(url,columns,header_font_size):
html_str="""<html><head><meta charset='UTF-8'>"""+\
"""<meta name='viewport' """+\
"""content='width=device-width,initial-scale=1.0'>"""+\
"""<script src='https://cdn.jsdelivr.net/npm/"""+\
"""danfojs@0... | [
"[email protected]"
] | |
55dbe8317f1c57f0eda91ec6f4ea5d6a3355faf5 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/Flickr/Places/FindByKeyword.py | c0620abf4ec0d8e85c197a86e1e3a6d28555d771 | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,859 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# FindByKeyword
# Returns a list of place IDs for a query string.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Chor... | [
"[email protected]"
] | |
96b7ae9b557800edf96fa234ccdc6c5e23c59dea | 1125345341e496920b661e612cd67cdb96a1d170 | /createCampaign/parameter_tests/CREATIVE_NAME/test02_valid_p.py | 4718d851e9cdc50ac51047f4f44e5f3ae48e305b | [] | no_license | Stephen-Williams/swarm-qa | 0bac526f0ee44b8c3677fb35959e6f7d0e258be2 | 90e36b5eab475788d9ab54051ad9c2736f3633ec | refs/heads/master | 2021-01-01T20:11:51.033059 | 2015-07-08T16:07:06 | 2015-07-08T16:07:06 | 38,764,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,678 | py | { 'all':
{ '0':
{ 'ADOMAIN': 'abc.com',
'ADVERTISER_CATEGORY': 'IAB8-5',
'APP_FILTER': 'sites',
'CREATIVE_ATTR': '0',
'CREATIVE_BASE_64': 'iVBORw0KGgoAAAANSUhEUgAAAUAAAAAyCAIAAACib5WDAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAD2EAAA9hAag/p2kAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAAYHSURBVHhe7... | [
"[email protected]"
] | |
cf1c7ed666e3e2ffefa00c4742ed5302dc0b15bd | 8f580f80eae1f947ebb3fed099a996ba961dfe95 | /view/resources_rc.py | 7179cf4a2b5a045727fb4f05db70fd80865c4d6c | [] | no_license | ankhbold/sesmim_training | 45efb172b8269708cc4a352fa944a5c2b35936a1 | 162ba8fe798c565fbd46f6b5f06f0d8aa17d2962 | refs/heads/master | 2020-04-28T08:01:02.805373 | 2019-03-19T00:34:19 | 2019-03-19T00:34:19 | 175,111,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,103 | py | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt4 (Qt v4.8.7)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x06\xa7\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x20\x00... | [
"[email protected]"
] | |
a3a07052f03a7dc28d6f2c41f80889cbc46bc905 | 32c6590127686114bfacff11fa7cd646025d3819 | /test_project/test_app/models.py | e45ce8711f5854e739457ed3382e0356433d6b1c | [
"BSD-2-Clause"
] | permissive | revsys/django-test-plus | 42cc6cddde30f561bec91294d2e85c21cbc62887 | 9cfb0c865b1dcad1ca6c9c4717d67ea8d476269c | refs/heads/main | 2023-08-29T03:52:59.089300 | 2023-07-11T11:37:47 | 2023-07-11T11:37:47 | 36,131,033 | 618 | 75 | BSD-3-Clause | 2023-07-11T11:35:24 | 2015-05-23T16:08:52 | Python | UTF-8 | Python | false | false | 154 | py | from django.db import models
class Data(models.Model):
""" Simple model to test our query assertions """
name = models.CharField(max_length=50)
| [
"[email protected]"
] | |
053f64e6385d70d8e49c045ff44d38e56873a99a | d4a569dcf616b7f05e53a44803e38196b436b8b9 | /[email protected]/Lib/site-packages/mypy/typeshed/third_party/2and3/dateutil/utils.pyi | 3eefd2e48ba5311cbdb709991a6815cdd94459e1 | [
"MIT"
] | permissive | nverbois/TFE21-232 | ac3178d24939c872c02a671c0f1d8cc471af516b | 7113837b5263b5c508bfc6903cb6982b48aa7ee4 | refs/heads/main | 2023-06-05T18:50:59.207392 | 2021-06-25T19:54:40 | 2021-06-25T19:54:40 | 337,691,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | pyi | from typing import Optional
from datetime import datetime, tzinfo, timedelta
def default_tzinfo(dt: datetime, tzinfo: tzinfo) -> datetime: ...
def today(tzinfo: Optional[tzinfo] = ...) -> datetime: ...
def within_delta(dt1: datetime, dt2: datetime, delta: timedelta) -> bool: ...
| [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.