blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bbae3698bee755a86e113f6ff4e7d52fe4f8a1ca | 7b12eb45c1ea76ad9c186b858b5dfebf2c5b862a | /.history/DEBER_20210905000023.py | 9516b0bda58c56e4e39bbf9f8a08dc9dc32c935e | [
"MIT"
] | permissive | Alopezm5/PROYECTO-PARTE-1 | a1dce04009b24852c1c60e69bdf602ad3af0574b | bd7a8594edf08d41c6ca544cf6bac01ea4fcb684 | refs/heads/main | 2023-07-25T11:22:17.994770 | 2021-09-07T03:27:34 | 2021-09-07T03:27:34 | 403,670,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,447 | py | import os
class Empresa():
def __init__(self,nom="",ruc=0,dire="",tele=0,ciud="",tipEmpr=""):
self.nombre=nom
self.ruc=ruc
self.direccion=dire
self.telefono=tele
self.ciudad=ciud
self.tipoEmpresa=tipEmpr
def datosEmpresa(self):#3
self.nombre=input("Ingres... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
c2154d3a5fe4c8670860e1c2b5ea7301a892ea20 | 780b6cca690a213ac908b1cd5faef5366a18dc4e | /314_print_names_to_columns/save1_nopass.py | 8cb6c53bb39aa700c4f9bc48b51e4735762b74ba | [] | no_license | katkaypettitt/pybites-all | 899180a588e460b343c00529c6a742527e4ea1bc | 391c07ecac0d92d5dc7c537bcf92eb6c1fdda896 | refs/heads/main | 2023-08-22T16:33:11.171732 | 2021-10-24T17:29:44 | 2021-10-24T17:29:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from typing import List # not needed when we upgrade to 3.9
def print_names_to_columns(names: List[str], cols: int = 2) -> None:
name_list = [f'| {name:{9}}' for name in names]
output = ''
for i in range(0, len(name_list), cols):
output += ' '.join(name_list[i: i + cols]) + '\n'
pri... | [
"70788275+katrinaalaimo@users.noreply.github.com"
] | 70788275+katrinaalaimo@users.noreply.github.com |
010885dad083a7b1ec9ebb80c5c3d64b92989605 | 37930870719caede967fdf6905c032e22d086e8b | /scripts/imaging/chaining/slam/light_parametric__mass_light_dark__source_parametric.py | 80e4df39df68667dc5cd365fcf51cfac21c6f9f0 | [] | no_license | Cywtim/autolens_workspace | cbede944c0f85ee95cd7362fee957ef77e701280 | da40cafee8dc26e5d8b1041888fb280598e74a5e | refs/heads/master | 2023-04-05T14:22:06.091992 | 2021-04-15T20:29:28 | 2021-04-15T20:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,711 | py | """
SLaM (Source, Light and Mass): Light Parametric + Mass Total + Source Parametric
================================================================================
SLaM pipelines break the analysis down into multiple pipelines which focus on modeling a specific aspect of the strong
lens, first the Source, then ... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
d1564abb5583ba7d937b0d846491cf7aa40a1cb2 | 00ef8e1eb57b73427508b20aadf0266da6b1f900 | /rlf/exp_mgr/viz_utils.py | f323dee2afc60a42bb37336d3b28e50fe18fb7b4 | [] | no_license | amy12xx/rl-toolkit | f4643935cc8afd960356bfeae74c233d2596dea9 | 8254df8346752ea0226ae2064cc1eabc839567b0 | refs/heads/master | 2023-08-14T00:56:52.270642 | 2021-09-28T15:59:32 | 2021-09-28T15:59:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,503 | py | """
Utilities for manipulating images, rendering images, and rendering videos.
"""
import os
import os.path as osp
from argparse import Namespace
from typing import List, Optional, Union
import cv2
import matplotlib.pyplot as plt
import numpy as np
import rlf.rl.utils as rutils
try:
import wandb
except:
pass
... | [
"me@andrewszot.com"
] | me@andrewszot.com |
2aeb217b02dbe82cdc5445f4bec4aafb01b07802 | 68049b03dbbd9a3d778571794472e07c05fb00ad | /python/courses/jose_portilla/flask/sandbox/10_databases/10_1_flask_and_databases_practice/setupdatabase.py | e2f38694c1a0eb91547cf484e4e8aa594a19934b | [] | no_license | tjkhara/notes | c9e96ecea6efed860c521eb7df562c5715091aea | 5602a25ba23104e4154700108f1b8a3a0144f712 | refs/heads/master | 2023-01-20T07:42:47.129359 | 2020-11-24T06:43:24 | 2020-11-24T06:43:24 | 285,811,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | from basic import db, Puppy
# creates all the tables
# takes classes and converts them into tables
db.create_all()
sam = Puppy('Sammy', 3)
frank = Puppy('Frankie', 4)
miles = Puppy('Miles', 10)
# These will say none because they are not in the database yet
# They don't have any ids
print(sam.id)
print(frank.id)
prin... | [
"tkhara@gmail.com"
] | tkhara@gmail.com |
e4fd0b88f086e8155bee37b5546c0096f7760d3e | e78154abbb8bacf5afccda9da371684cbeabad36 | /envs/ALPHA-POPEGO/lib/python2.5/site-packages/ipython-0.8.2-py2.5.egg/IPython/Release.py | c22250cf389d6cc8e86540e756de11ec217a66b1 | [
"BSD-3-Clause"
] | permissive | enterstudio/popego | 1a196fabc374c0f45764e5c74bd7752236424040 | 2d09e793d9d2f297139edb325b8a70ddda9b2705 | refs/heads/master | 2021-04-09T16:39:40.781634 | 2016-10-14T16:53:47 | 2016-10-14T16:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,806 | py | # -*- coding: utf-8 -*-
"""Release data for the IPython project.
$Id: Release.py 2855 2007-11-06 06:53:49Z vivainio $"""
#*****************************************************************************
# Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
#
# Copyright (c) 2001 Janko Hauser <jhause... | [
"santisiri@gmail.com"
] | santisiri@gmail.com |
31298541903089b84d357150a735501103053981 | 0a57f05221d425119cb2994c5686a95e01b33d46 | /ex21.py | 67a0f965521d5f8cce8027401d93c01786fc9214 | [] | no_license | luroto/lpthw | 371ad2de422e7656b9f18461808d28847d17971f | e89329477d0c5c5b34d7998832b395c05385876b | refs/heads/master | 2022-06-02T17:56:01.873932 | 2020-05-02T17:52:11 | 2020-05-02T17:52:11 | 260,742,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | def add(a,b):
print(f"ADDING {a} + {b}")
return a + b
def substract(a, b):
print(f"SUBSRACTING {a} - {b}")
return a - b
def multiply(a, b):
print(f"MULTIPLYING {a} * {b}")
return a * b
def divide(a, b):
print(f"DIVIDING {a} / {b}")
return (a / b)
print("Let's do some math with just functions")
age = add(3... | [
"774@holbertonschool.com"
] | 774@holbertonschool.com |
6a6ebe3550b44d0e3ce445ed0151ed8f95c18ec0 | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /2.1.2/_downloads/boxplot_demo1.py | aac441baa4f86269d657f3d8b96bfebf095017f7 | [] | no_license | matplotlib/matplotlib.github.com | ef5d23a5bf77cb5af675f1a8273d641e410b2560 | 2a60d39490941a524e5385670d488c86083a032c | refs/heads/main | 2023-08-16T18:46:58.934777 | 2023-08-10T05:07:57 | 2023-08-10T05:08:30 | 1,385,150 | 25 | 59 | null | 2023-08-30T15:59:50 | 2011-02-19T03:27:35 | null | UTF-8 | Python | false | false | 7,720 | py | """
========
Boxplots
========
Visualizing boxplots with matplotlib.
The following examples show off how to visualize boxplots with
Matplotlib. There are many options to control their appearance and
the statistics that they use to summarize the data.
"""
import matplotlib.pyplot as plt
import numpy as np
from matplo... | [
"tcaswell@gmail.com"
] | tcaswell@gmail.com |
c8c91b8f93916d59a46e5052ed5bf42d766b5c99 | e914da03391c81b69ae47c3dfaabb119259eb66f | /aon_decoder.py | 4f5b351c967cae4c175b18aac6ed5d606fc3f548 | [] | no_license | koder-ua/python_practice | 25f67e7c2333c0f96a2a711947e87951769570db | a68b8fc9c12e841b7355c745db6d104205ea568f | refs/heads/master | 2021-01-22T04:22:58.642582 | 2015-12-15T14:16:40 | 2015-12-15T14:16:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | #!/usr/bin/env python
# -*- coding:utf8 -*-
"""
Homework for Automatic Number Identification (ANI)
https://github.com/koder-ua/python-classes/blob/master/slides/pdf/FF_tasks.pdf
Slide #7
"""
def decode(string):
"""
ANI decoder:
- combine repeated characters (2333# -> 3)
- remove single characters (123... | [
"vitaliy@kulanov.org.ua"
] | vitaliy@kulanov.org.ua |
8cc39834a3986a41c0b6c4717eda289d67aa0f2a | 7d3cb9e6ac0f2a0f217fb8ad77076fd4f719a437 | /xen_signature/apps/pdf_to_image/migrations/0003_auto_20181020_1658.py | 75cf4f4498115f51b134898cac32d0c1bc38dea3 | [] | no_license | FlashBanistan/django-xen-signature | b88b0698b00390e019ebb419d74043f1e36777ba | b390e9aa069c89021e63e41a554489ccf9d685a5 | refs/heads/master | 2020-04-02T06:11:24.486660 | 2018-10-26T17:17:20 | 2018-10-26T17:17:20 | 154,135,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | # Generated by Django 2.1.2 on 2018-10-20 16:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pdf_to_image', '0002_auto_20181020_1657'),
]
operations = [
migrations.RenameField(
model_name='documentimage',
old_... | [
"FlashBanistan66@gmail.com"
] | FlashBanistan66@gmail.com |
29aa7eefb7323c5953972bcecbf05797b238b684 | e42cce21fbb3c4fe3f271c2029d9659270a968ab | /vmrunapi/vmrunapi.py | cde0c05a165dbfc2cd3c7b87f6803f601bfd2453 | [] | no_license | cloudbase/maas-hacks | d086a91338e45121dafb33734ba4977e31851dbc | 0e2cc5537ff64376505c1e9e77dcdf3657fc4d78 | refs/heads/master | 2016-09-06T13:02:15.808249 | 2014-04-30T00:24:58 | 2014-04-30T00:24:58 | 17,869,386 | 5 | 0 | null | 2014-05-06T01:23:22 | 2014-03-18T14:43:58 | Python | UTF-8 | Python | false | false | 3,400 | py | #!/usr/bin/python
import flask
import os
import re
import subprocess
import sys
if sys.platform == 'win32':
from win32com.shell import shell
from win32com.shell import shellcon
app = flask.Flask(__name__)
STARTED = "started"
STOPPED = "stopped"
def _get_matching_vmx_path(path, mac_address):
mac_address... | [
"apilotti@cloudbasesolutions.com"
] | apilotti@cloudbasesolutions.com |
57c5f0267b758e4eb4c42389e10c758178243ed3 | c703b8ac3b5545857f6c95efa2d61eaf7a664021 | /iPERCore/models/networks/discriminators/patch_dis.py | 83491547d5a6977f9e719ae8d16041dd07558ae4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | iPERDance/iPERCore | d29681d229b3098b3517b1abf4f7ea65f579de73 | fcf9a18ffd66bf3fdd3eea4153a3bc4785131848 | refs/heads/main | 2023-07-30T15:04:15.835396 | 2023-04-12T14:21:23 | 2023-04-12T14:21:23 | 313,664,064 | 2,520 | 339 | Apache-2.0 | 2023-05-12T03:26:52 | 2020-11-17T15:36:25 | Python | UTF-8 | Python | false | false | 2,757 | py | # Copyright (c) 2020-2021 impersonator.org authors (Wen Liu and Zhixin Piao). All rights reserved.
import torch
import torch.nn as nn
import functools
class PatchDiscriminator(nn.Module):
"""Defines a PatchGAN discriminator"""
def __init__(self, input_nc, ndf=32, n_layers=3, max_nf_mult=8,
... | [
"liuwen@shanghaitech.edu.cn"
] | liuwen@shanghaitech.edu.cn |
e0a7315e974496146f931f1dccb8aff89ce1264d | 1ca94f20401cc0bd33a7a935dea2f3c66776dbe4 | /users/models.py | b8680d9a1d986368544da5d9676214693646fa7a | [] | no_license | liangsongyou/news-18 | 468d06a854e3bf6b5389e6efbb2b1a812d45fef6 | 45619e32d7f950d75949912ee8c570903f6c39f3 | refs/heads/master | 2020-04-11T15:59:26.136085 | 2018-12-15T13:54:16 | 2018-12-15T13:54:16 | 161,909,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
class CustomUser(AbstractUser):
age = models.PositiveIntegerField(default=0)
| [
"yuebei58@gmail.com"
] | yuebei58@gmail.com |
2cb549fab7ccf5db93a112f7980fa14fbc3ffbd0 | 8e7e51ff8b9c1103d10aa86c3d1cb446cfb25e4c | /djeniesecurity/djeniesecurity/urls.py | c409e1093e267c2e36d190bdc95028974c4ec905 | [] | no_license | huogerac/modulo4 | b2c6e07f5e2928182a03edac503d0a4468736007 | b30e056fb5a4703255982a349ed184beaea010fd | refs/heads/master | 2021-01-17T21:25:03.926382 | 2013-09-23T10:21:51 | 2013-09-23T10:21:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'djeniesecurity.views.home', name='home'),
# url(r'^djeniesecurity/', include('djeniesecurity.foo.urls')),
# Uncomment the admin/doc line below... | [
"huogerac@gmail.com"
] | huogerac@gmail.com |
b12c0fb45f697b54880348bc5234ea5e8967228d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq1197.py | 1ebb841cfc54a0fc26e0f2bd3522d7dfdaa63405 | [
"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 | 3,855 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=51
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
e1241643f1fdabd9675e8ec25ea0a5b2350349a4 | 62d6a37e1fb1b224b53e14a1cf151ef0571aa20f | /tests/fixtures/tests.py | abc94a63d35f2bfe008a3e1bdcf4d4b144ec1bb5 | [] | no_license | katrid/orun | 4fa0f291a1ef43f16bc1857a170fc0b2e5e06739 | bfc6dae06182124ba75b1f3761d81ba8ca387dea | refs/heads/master | 2023-08-30T03:58:34.570527 | 2023-08-09T04:05:30 | 2023-08-09T04:05:30 | 66,562,767 | 14 | 4 | null | 2023-01-06T22:29:37 | 2016-08-25T14:01:44 | Python | UTF-8 | Python | false | false | 2,024 | py | from orun.test import TestCase
from orun.apps import apps
from orun.db import connection
class FixturesTest(TestCase):
fixtures = {
'fixtures': [
'fixtures.author.csv', 'fixtures.author.tsv', 'data.xml', 'fixtures.book.tsv', 'fixtures.book.csv',
'metadata.%(db_vendor)s.sql',
... | [
"alexandre@katrid.com"
] | alexandre@katrid.com |
1e6895e6f359a03fff2e6129c7a5e162e1c1d48a | 4ad53199feb82d911bd2edbe0b5713da8c1909c1 | /pytablewriter/style/__init__.py | 6be6ff1844a0928139b11cb5ac086bac8216c4f9 | [
"MIT"
] | permissive | thombashi/pytablewriter | 9bf8b73da0eb18dba835e951021fd581958a4d12 | 49f9da777625a5b920c2c87c5e086d33d19a80d4 | refs/heads/master | 2023-08-19T05:13:15.333317 | 2023-07-01T08:03:47 | 2023-07-01T08:03:47 | 59,484,958 | 609 | 43 | MIT | 2021-09-20T15:26:45 | 2016-05-23T13:25:53 | Python | UTF-8 | Python | false | false | 1,006 | py | from dataproperty import Align, Format
from ._cell import Cell
from ._font import FontSize, FontStyle, FontWeight
from ._style import DecorationLine, Style, ThousandSeparator, VerticalAlign
from ._styler import (
GFMarkdownStyler,
HtmlStyler,
LatexStyler,
MarkdownStyler,
NullStyler,
ReStructure... | [
"tsuyoshi.hombashi@gmail.com"
] | tsuyoshi.hombashi@gmail.com |
c4ab791f131770d16025600c9969fa275bcb485e | 6527b66fd08d9e7f833973adf421faccd8b765f5 | /yuancloud/recicler/localizaciones/l10n_be_invoice_bba/__init__.py | 8c3517b22a87f1e464f6866fc7d7621f263d5a7d | [] | no_license | cash2one/yuancloud | 9a41933514e57167afb70cb5daba7f352673fb4d | 5a4fd72991c846d5cb7c5082f6bdfef5b2bca572 | refs/heads/master | 2021-06-19T22:11:08.260079 | 2017-06-29T06:26:15 | 2017-06-29T06:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | # -*- encoding: utf-8 -*-
# Part of YuanCloud. See LICENSE file for full copyright and licensing details.
# Copyright (c) 2011 Noviat nv/sa (www.noviat.be). All rights reserved.
import partner
import invoice
| [
"liuganghao@lztogether.com"
] | liuganghao@lztogether.com |
ae825fe3516b3c4458a8137c101f289786af735c | 3ced55b04ec82df5257f0e3b500fba89ddf73a8a | /src/stk/molecular/topology_graphs/cage/two_plus_four/two_plus_four.py | 80aa18537329f8d918ee7fea003280f088245115 | [
"MIT"
] | permissive | rdguerrerom/stk | 317282d22f5c4c99a1a8452023c490fd2f711357 | 1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a | refs/heads/master | 2023-08-23T21:04:46.854062 | 2021-10-16T14:01:38 | 2021-10-16T14:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,112 | py | """
Two Plus Four
=============
"""
from ..cage import Cage
from ..vertices import LinearVertex, NonLinearVertex
from ...topology_graph import Edge
class TwoPlusFour(Cage):
"""
Represents a capsule cage topology graph.
Unoptimized construction
.. moldoc::
import moldoc.molecule as molecul... | [
"noreply@github.com"
] | rdguerrerom.noreply@github.com |
6305425047bc6275d2a171616fbdffe8a360ec2c | 674f5dde693f1a60e4480e5b66fba8f24a9cb95d | /armulator/armv6/opcodes/concrete/rsb_register_shifted_register_a1.py | 584074016b2edaaf59d9ac2ff84cb51509bec935 | [
"MIT"
] | permissive | matan1008/armulator | 75211c18ebc9cd9d33a02890e76fc649483c3aad | 44f4275ab1cafff3cf7a1b760bff7f139dfffb07 | refs/heads/master | 2023-08-17T14:40:52.793120 | 2023-08-08T04:57:02 | 2023-08-08T04:57:02 | 91,716,042 | 29 | 7 | MIT | 2023-08-08T04:55:59 | 2017-05-18T16:37:55 | Python | UTF-8 | Python | false | false | 837 | py | from armulator.armv6.bits_ops import substring, bit_at
from armulator.armv6.opcodes.abstract_opcodes.rsb_register_shifted_register import RsbRegisterShiftedRegister
from armulator.armv6.shift import decode_reg_shift
class RsbRegisterShiftedRegisterA1(RsbRegisterShiftedRegister):
@staticmethod
def from_bitarra... | [
"matan1008@gmail.com"
] | matan1008@gmail.com |
8d26a6f969809cb725345cdc97e909cdc61f535b | 97a39cfdbd0ae4310eef729785630438278d3279 | /manage.py | 4dfa3b998a58a9b60a40062cf56854fe68d23419 | [
"Apache-2.0"
] | permissive | cvlucian/confidant | e9ddf15885ec6a4442422a00d7c9d2a84f8dfa20 | 8e273fb813d57ae831343f7d047b32a8f62458cb | refs/heads/master | 2021-01-13T09:37:39.757319 | 2020-09-23T14:35:53 | 2020-09-23T14:35:53 | 72,053,900 | 1 | 0 | NOASSERTION | 2020-09-23T14:36:19 | 2016-10-26T23:44:55 | Python | UTF-8 | Python | false | false | 809 | py | from flask.ext.script import Manager
import confidant.workarounds # noqa
from confidant import app
from scripts.utils import ManageGrants
from scripts.utils import RevokeGrants
from scripts.bootstrap import GenerateSecretsBootstrap
from scripts.bootstrap import DecryptSecretsBootstrap
manager = Manager(app.app)
# E... | [
"rlane@lyft.com"
] | rlane@lyft.com |
78df3320c27ab2b3e2c072df6c4e2ef16a3b7759 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/1469.py | 8fbe59658076b2a46a7c77ed1bf039f34b16f0ae | [] | 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 | 2,234 | py | import numpy as np
def checkWin(p):
#2 is X, 3 is O, check using the MOD method
if p == 0:
return "no"
if p % 2 == 0 and p % 3 != 0:
return 'X'
if p % 2 != 0 and p % 3 == 0:
return 'O'
else:
return 'draw'
def solve(filename):
fin = open(filename + '.in', 'r')
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0dc35183393d83eb31bf25b1f1f39d1850886c4d | 17ef1c7483843540ce4d063708afa65430b9301f | /tests/test_allocate.py | b4281fbb11694e1dbc38fd7af714e2195439f9b5 | [
"MIT"
] | permissive | CivicKnowledge/synpums | e01f8815c5fe118ec748c248b84c862a1db15a3f | dd3793388862aa7b43eee2fc2aa96fcf21014267 | refs/heads/main | 2023-01-03T09:04:37.021235 | 2020-10-31T00:17:15 | 2020-10-31T00:17:15 | 304,128,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | import unittest
import warnings
import pandas as pd
import rowgenerators as rg
from synpums import *
from synpums.util import *
warnings.filterwarnings("ignore")
state = 'RI'
year = 2018
release = 5
cache_dir = '/tmp/synpums'
class TestAllocate(unittest.TestCase):
def test_basic(self):
tasks = Alloc... | [
"eric@civicknowledge.com"
] | eric@civicknowledge.com |
5a5e0ce76558c3b94ad2149478844745d1f5087a | 67f19ebb1fb3189e4c2f99484c1dc13af5099edb | /wii_packages/enso/gage_don_h/gage_don_h.py | 08da11557b1626666c779f60cf484d446bd3aa80 | [] | no_license | delguoqing/PyLMPlayer | 609c4fe35e56e4ce3ce30eeb2e9244aad5ea1609 | db8a1edf70ac1c11deffddc458788b3a2c2078df | refs/heads/master | 2021-01-22T05:06:00.491732 | 2013-09-13T04:54:23 | 2013-09-13T04:54:23 | 8,878,510 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | def func0(this, _global):
this.stop()
def func1(this, _global):
this.gotoAndPlay("fever")
def func2(this, _global):
if 2 <= this.fever_gage._play_head <= 23:
this.fever_gage.gotoAndPlay("toNormal")
this.stop()
def func3(this, _global):
this.fever_gage.gotoAndPlay("toFever")
this.stop()
DATA = (
func0,
fu... | [
"delguoqing@hotmail.com"
] | delguoqing@hotmail.com |
8d13198a10bafeba6b94dad3cf02953c983de332 | 67325192c1e528a39d457f11e61b480d68826708 | /mods/mcpython/Item/gold_block.py | 248d5e0998a17f7d438e81b093ded15dc48a62bd | [
"MIT"
] | permissive | vashistaarav1611/mcpython-a-minecraft-clone-in-python | 5851b377b54fd2b28c106112c7b18f397b71ab50 | c16cd66f319efdeec4130e1a43f5a857caf1ea13 | refs/heads/master | 2023-02-01T22:48:51.787106 | 2020-12-21T15:02:25 | 2020-12-21T15:02:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from .Item import *
class GoldBlock(Item):
def getName(self):
return "minecraft:gold_block"
def getTexturFile(self):
return "./assets/textures/items/gold_block.png"
handler.register(GoldBlock)
| [
"baulukas1301@googlemail.com"
] | baulukas1301@googlemail.com |
c2a50a2894a8886745a3b0cf6176b87cdd9ff324 | bd14c979335112b7718b0feda18ebf0e3b40fe5c | /contest_093/b_small_and_large_integers_2nd.py | 5090fc480a7ed5adb7ee90d373f591aadebb6a25 | [] | no_license | ababa831/atcoder_beginners | 22c57b15333d110126d1b1afadc0ff5e8784fc4f | 1a30882ce7f20f312045d5dc7bfaa5688cc8a88e | refs/heads/master | 2023-03-07T15:47:19.750682 | 2020-03-04T19:53:45 | 2020-03-04T19:53:45 | 143,360,607 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | # Accepted
a, b, k = map(int, input().split())
lower_list = [i for i in range(a, a + k)]
upper_list = [i for i in range(b, b - k, -1)]
out_list = sorted(set(lower_list + upper_list))
for out in out_list:
if a <= out <= b:
print(out) | [
"flvonlineconverter@gmail.com"
] | flvonlineconverter@gmail.com |
dbc0f0130cf61ccefa2cb7304519c144f1dc48bf | a3c34ad9425cf9c16a09423278b81c20edd8d77a | /sms_frame/models/sms_compose.py | 3cbd3cbd6f0bcc7f98da112e58038923a071a292 | [] | no_license | meswapnilwagh/Odoo9 | d1dca7de18ac555abe2da96fb78f0d3bd3835650 | 91f1e545ab597ca89283b8dc5dbf3d7f5bd5df5b | refs/heads/9.0 | 2020-04-08T00:24:25.179940 | 2016-02-22T08:49:56 | 2016-02-22T08:49:56 | 52,294,854 | 0 | 1 | null | 2016-02-22T18:20:41 | 2016-02-22T18:20:40 | null | UTF-8 | Python | false | false | 3,144 | py | # -*- coding: utf-8 -*
from datetime import datetime
from openerp import api, fields, models
class SmsCompose(models.Model):
_name = "sms.compose"
error_message = fields.Char(readonly=True)
record_id = fields.Integer()
model = fields.Char()
sms_template_id = fields.Many2one('sms.template', s... | [
"steven@sythiltech.com"
] | steven@sythiltech.com |
10c70540a9623f4e0994a218263f3b689583ef58 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_049/ch25_2019_03_11_12_40_04_650432.py | 1ccce705dfcb58b27c4c448e847adbc6418c6bc3 | [] | 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 | 219 | py | distancia=int(input('Qual a distância do trajeto? '))
def preco(distancia):
if distancia > 200:
return 100+(distancia-200)*0.45
else:
return distancia*0.5
print ("{:.2f}".format(preco(distancia)) | [
"you@example.com"
] | you@example.com |
737ec07de6c5ea89bf1610e81acecb3e9200babb | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5708284669460480_0/Python/zdan/B.py | e89eff79728bb389faaa4be1f8d9b26f813576ea | [] | 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,651 | py | import sys
import itertools
import numpy as np
def occurrences(string, target):
if len(target) > 1 and target[0] == target[-1]:
count = start = 0
while True:
start = string.find(target, start) + 1
if start > 0:
count += 1
else:
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
098f68ce0de1a4e85ab1ea096ed45ccf2fff3eeb | 4bed9030031fc99f6ea3d5267bd9e773f54320f8 | /sparse/repos/Calysto/matlab_kernel/setup.py | 313419fcbb79751dd03972ceb291c85638644417 | [
"BSD-3-Clause"
] | permissive | yuvipanda/mybinder.org-analytics | c5f4b939541d29727bc8d3c023b4d140de756f69 | 7b654e3e21dea790505c626d688aa15640ea5808 | refs/heads/master | 2021-06-13T05:49:12.447172 | 2018-12-22T21:48:12 | 2018-12-22T21:48:12 | 162,839,358 | 1 | 1 | BSD-3-Clause | 2021-06-10T21:05:50 | 2018-12-22T20:01:52 | Jupyter Notebook | UTF-8 | Python | false | false | 1,680 | py | import glob
from setuptools import setup, find_packages
with open('matlab_kernel/__init__.py', 'rb') as fid:
for line in fid:
line = line.decode('utf-8')
if line.startswith('__version__'):
version = line.strip().split()[-1][1:-1]
break
DISTNAME = 'matlab_kernel'
PACKAGE_DAT... | [
"yuvipanda@gmail.com"
] | yuvipanda@gmail.com |
7c7b6d5899ee3e4f388506f32f261fbed6508bac | 3649308c5d709100c4dc90e661fc9f564f184877 | /ocs/login/models.py | bc379435ce64eb699e183aa176c7f68a662e65a4 | [] | no_license | anirudhasj441/django | 54171f6141d6938201146a6d3e9475477a3f0078 | 5bb202d13d4b17daca9aedf3b213908c3245757b | refs/heads/master | 2021-07-09T06:18:11.597848 | 2021-03-07T17:58:32 | 2021-03-07T17:58:32 | 230,616,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | from django.db import models
from datetime import date
# Create your models here.
class Student(models.Model):
# s_id = models.AutoField(primary_key=True,default="1")
s_pnr = models.IntegerField(primary_key=True)
s_name = models.CharField(max_length=50)
s_dob = models.DateField(null=True,blank=T... | [
"anirudhasj441@gmail.com"
] | anirudhasj441@gmail.com |
210bc7bd0293918d3ca37014a57b68ebe2823f96 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03408/s214379251.py | fba6c07029d057c1512feb87f8d481f483ef4cb4 | [] | 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 | 283 | py | N = int(input())
ListP = []
for i in range (N):
ListP.append(input())
M = int(input())
ListN = []
for i in range (M):
ListN.append(input())
res = 0
mid = 0
for i in range(N):
mid += ListP.count(ListP[i])
mid += -ListN.count(ListP[i])
res = max(res,mid)
mid = 0
print(res) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
07f87234adb59300c6bb17578632811553a04257 | 8cf633e92a0671c8201268620a0372f250c8aeb2 | /205.同构字符串.py | f76217c78e58ac420845c37b25d7da82a86ce71d | [
"Unlicense"
] | permissive | SprintGhost/LeetCode | 76da5c785009d474542e5f2cdac275675b8e60b8 | cdf1a86c83f2daedf674a871c4161da7e8fad17c | refs/heads/develop | 2021-06-06T04:04:28.883692 | 2021-01-01T14:09:26 | 2021-01-01T14:09:26 | 230,635,046 | 0 | 0 | Unlicense | 2020-12-11T14:55:36 | 2019-12-28T16:34:39 | Python | UTF-8 | Python | false | false | 1,636 | py | #
# @lc app=leetcode.cn id=205 lang=python3
#
# [205] 同构字符串
#
# Accepted
# 30/30 cases passed (48 ms)
# Your runtime beats 55.2 % of python3 submissions
# Your memory usage beats 16.3 % of python3 submissions (14.1 MB)
# @lc code=start
class Solution:
def isIsomorphic(self, s: str, t: str) -> bool:
if (not... | [
"864047435@qq.com"
] | 864047435@qq.com |
554b02c0fd1b8bac352fe742a597f5be3d13b43d | 8222dcbb226682a9112720927361877a92185407 | /fluent_contents/plugins/sharedcontent/managers.py | 7bd0a8f6915af76928eb41ced0dc3898c6d93cf6 | [
"Apache-2.0"
] | permissive | acolorbright/django-fluent-contents | ada4a5fedb590e5f679463221fce2f965730bac1 | 4e5c6e99134ceee804bb42391ec37e5e17ff5a7e | refs/heads/master | 2023-04-12T05:31:19.179528 | 2018-05-14T11:10:16 | 2018-05-14T11:10:16 | 108,149,326 | 0 | 0 | Apache-2.0 | 2023-04-04T00:22:27 | 2017-10-24T15:48:46 | Python | UTF-8 | Python | false | false | 1,888 | py | from django.conf import settings
from django.db.models import Q, Manager
from parler.managers import TranslatableQuerySet
from fluent_contents import appsettings
from fluent_contents.plugins.sharedcontent import appsettings as sharedcontent_appsettings
class SharedContentQuerySet(TranslatableQuerySet):
"""
Th... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
7e97dec12b5a269ee009a038ff2b1bb48711aff7 | 5577a04c006e73b8a40f68055b2173ffe34ce83e | /htsint/database/fetchTimeExperiment.py | 52b01c5ccf358b0f3acfe468ea3b6ae2dc535dfc | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | changanla/htsint | 1617c56bd5f02ab01e0de80d3d06d2d75983a376 | a343aff9b833979b4f5d4ba6d16fc2b65d8ccfc1 | refs/heads/master | 2020-03-16T13:10:15.082839 | 2017-05-24T21:27:27 | 2017-05-24T21:27:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | #!/usr/bin/python
import sys,time
from sqlalchemy.sql import select
from htsint.database import db_connect,fetch_annotations,fetch_taxa_annotations
from htsint.database import Taxon,taxa_mapper,Gene,gene_mapper
session,engine = db_connect()
conn = engine.connect()
#timeStart = time.time()
#annotations = fetch_annot... | [
"adamricha@gmail.com"
] | adamricha@gmail.com |
58b7f2c696ee6df680f34658e112ba3ceb045e99 | 4503c155a0252eea7f4c80ec499999a8b52bc8b6 | /nntool/model/sequential.py | 8a9984b8e4fd3d8c6aec1d4526eff9e3e02fa3b0 | [
"MIT"
] | permissive | NLP-Deeplearning-Club/nntool | e76f7be29dd184be18a6fde509b89918a8692639 | 1bbf0a20c7526d423f351ba9a854902a669d3713 | refs/heads/master | 2020-12-03T01:42:44.316321 | 2017-07-12T16:08:30 | 2017-07-12T16:08:30 | 95,854,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | from nntool.abc.modelabc import ModelABC
import numpy as np
class Sequential(ModelABC):
"""序列模型,这个是keras中的概念,将模型理解为层的堆叠
"""
_layers = []
_trained = False
def add(self,layer:'layer'):
self._layers.append(layer)
@property
def trained(self):
"""是否已经训练过"""
return self.... | [
"hsz1273327@gmail.com"
] | hsz1273327@gmail.com |
96c271f4ba502360e86ae8b36745e783d53d418e | d3f30c67faf0b593565fc5fa526d6b96a8a9f65f | /tests/test_dates.py | 9c3a7b40745a472ca8520756a080d082d887c101 | [
"BSD-3-Clause"
] | permissive | has2k1/mizani | 4b3732b13380c6f2660f313877d95f63095781f3 | 90b0a54dd3a76528fae7997083d2ab8d31f82a58 | refs/heads/main | 2023-09-02T00:47:17.321472 | 2023-09-01T09:44:57 | 2023-09-01T13:45:36 | 62,319,878 | 41 | 15 | BSD-3-Clause | 2022-04-04T04:26:51 | 2016-06-30T15:02:41 | Python | UTF-8 | Python | false | false | 2,210 | py | from datetime import datetime
from zoneinfo import ZoneInfo
import pytest
from mizani._core.date_utils import (
align_limits,
ceil_mid_year,
ceil_second,
ceil_week,
floor_mid_year,
floor_second,
floor_week,
)
from mizani._core.dates import (
datetime_to_num,
get_tzinfo,
num_to_... | [
"has2k1@gmail.com"
] | has2k1@gmail.com |
4af1a97e3d67f049f346cc7b4760ac232eb1d942 | c62040636877dc3584bcf4d22988fc71739c8a78 | /lbworkflow/tests/test_process.py | 828d4ebd11d173132620237557b9f9d4b02ff56d | [
"MIT"
] | permissive | felixcheruiyot/django-lb-workflow | 82de680f37aa68707640022cb3b99435f54ea09e | 0fb4be2d39848374d60ec27c6ee1b72913e2f674 | refs/heads/master | 2022-04-12T19:11:41.673818 | 2020-04-09T12:03:53 | 2020-04-09T12:03:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,312 | py | from django.contrib.auth import get_user_model
from django.urls import reverse
from lbworkflow.views.helper import user_wf_info_as_dict
from .leave.models import Leave
from .test_base import BaseTests
User = get_user_model()
class HelperTests(BaseTests):
def test_user_wf_info_as_dict(self):
leave = se... | [
"zbirder@gmail.com"
] | zbirder@gmail.com |
48b56952ac3dc1fd3a8bd513d93bad85874010cd | 3927b135bd77100532e3dc82c405a2d377fc8517 | /vndk/tools/definition-tool/tests/test_vndk.py | 8938e68aa18145dd971748268f9c1f6e06f6e889 | [
"Apache-2.0"
] | permissive | eggfly/platform_development | b9367c9ecd775c766dd552bf0b417c29bc4cc1cc | 52c291d53c8f58cfe67cd3251db19b0d94b4a9c8 | refs/heads/master | 2020-05-20T22:54:41.470361 | 2017-03-10T02:06:38 | 2017-03-10T02:06:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | #!/usr/bin/env python3
from __future__ import print_function
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import unittest
from compat import StringIO
from vndk_definition_tool import ELF, ELFLinker, PT_SYSTEM, PT_VENDOR
SCRIPT_DIR = os.path.dirname(os.path.abspa... | [
"loganchien@google.com"
] | loganchien@google.com |
5a85f68337da49fec9d664ec55a0ccab7bb51369 | fdcb2cdee4d5b398eed4eefc830213234e3e83a5 | /00_DataCamp/07_Functions/error_handling/more_error_handling.py | 5d65abc9f7d11cc8d26ffaba9af4fec231b1c483 | [] | no_license | daftstar/learn_python | be1bbfd8d7ea6b9be8407a30ca47baa7075c0d4b | 4e8727154a24c7a1d05361a559a997c8d076480d | refs/heads/master | 2021-01-20T08:53:29.817701 | 2018-01-15T22:21:02 | 2018-01-15T22:21:02 | 90,194,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | # #####################################################
# ERROR HANDLING W/ TRY EXCEPT
# #####################################################
def shout_echo(word1, echo=1):
""" Concat echo copies of word1 and three exclamation
marks at end of sting """
# Initialize empty strings: echo_word, shout_words
... | [
"nikdaftary@gmail.com"
] | nikdaftary@gmail.com |
e1682205360b4928220bbc12cb3953be8221e9f8 | 14252ea933a08056363230c6df89223b996a0da2 | /app/enquiry/admin.py | 71f3c238e9b152b6658810ef408539597e9ec865 | [
"MIT"
] | permissive | S3Infosoft/mvr-insights | eeb02aa2e6767e6a23818d4e09f7be7ce29f80cb | ac73feff03c1592d5efd8e0b82f72dd4dbd3e921 | refs/heads/master | 2020-05-29T14:08:11.070784 | 2020-04-23T19:46:57 | 2020-04-23T19:46:57 | 189,184,619 | 0 | 1 | MIT | 2020-04-23T19:46:58 | 2019-05-29T08:35:56 | CSS | UTF-8 | Python | false | false | 918 | py | from . import models
from django.contrib import admin
@admin.register(models.OTA)
class OTAAdmin(admin.ModelAdmin):
list_display = "name", "registration", "contact_person", "contact_number",\
"contact_email",
search_fields = "name", "contact_person",
@admin.register(models.Partner)
class ... | [
"abhie.lp@gmail.com"
] | abhie.lp@gmail.com |
2037b65f41e66d5efd97fb4037f35830d3fbc814 | b1c578ce83d94848a1c2ec0bcb91ae791ef419cd | /src/ggrc/migrations/versions/20180319122658_679480cbd712_add_risk_propagation_roles.py | ed07384e4deaf9cf32f022902852e518f9698b63 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | zdqf/ggrc-core | 0d1575557af3c49980fe6dbad586d045ad73d5ad | 29dea12d189bc6be21006369efc0aae617bbab6f | refs/heads/master | 2020-03-27T19:29:00.536374 | 2018-08-28T15:29:56 | 2018-08-28T15:29:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | # Copyright (C) 2018 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""
Add risk propagation roles
Create Date: 2018-03-19 12:26:58.016090
"""
# disable Invalid constant name pylint warning for mandatory Alembic variables.
# pylint: disable=invalid-name
from ggrc.migration... | [
"zidarsk8@gmail.com"
] | zidarsk8@gmail.com |
48c0fa3c02b94ef7d4860dcf8193efc152f59b9e | f28ef7c72a56a2a732bee3e42506c96bb69edee8 | /old_scripts/stocks_data.py | f9a03cddc88b57d6fb4ab645a0f58a8230321f1b | [] | no_license | webclinic017/backtrader_stocks_api | cb92311a1069199e61acc547ec69941ba861d4e6 | e489724e7a30bb915657244bf12e55ad2f484832 | refs/heads/main | 2023-03-26T05:40:53.584824 | 2021-03-10T07:53:35 | 2021-03-10T07:53:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,442 | py | from fastquant import get_stock_data, backtest
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from datetime import date, timedelta
#array: [open, high, low, close, volume]
class ticker_data():
def __init__(self, ticker, date_range='null'):
self.name = ticker.upper()
# forma... | [
"noreply@github.com"
] | webclinic017.noreply@github.com |
06ea7004e6548c99ae12598d02b6772fe46d7dec | 417ab6024a95e97b4d2236c67e28d00e6d1defc0 | /python/fetch/s58589/video.py | ed22519cf6a9c389fddd2e76eb4a290ff89c4b7b | [] | no_license | zeus911/myconf | 11139069948f7c46f760ca0a8f1bd84df5ec4275 | 6dc7a6761ab820d6e97a33a55a8963f7835dbf34 | refs/heads/master | 2020-04-18T02:16:09.560219 | 2019-01-22T18:15:08 | 2019-01-22T18:15:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,392 | py | #!/usr/bin python
# -*- coding: utf-8 -*-
from baseparse import *
from urlparse import urlparse
from common import common
from urllib import unquote
import time
from fetch.profile import *
class VideoParse(BaseParse):
def __init__(self):
pass
def run(self):
dbVPN = db.DbVPN()
ops = db_... | [
"liguoqing19861028@163.com"
] | liguoqing19861028@163.com |
d93af998f22f0599ae05964e40bf4946e07934db | dd4d1a61ec680a86d4b569490bf2a898ea0d7557 | /appengine/findit/model/test/wf_swarming_task_test.py | f6921dfc809d6a8bcf5b6cc3326292e6c1424897 | [
"BSD-3-Clause"
] | permissive | mcgreevy/chromium-infra | f1a68914b47bcbe3cd8a424f43741dd74fedddf4 | 09064105713603f7bf75c772e8354800a1bfa256 | refs/heads/master | 2022-10-29T23:21:46.894543 | 2017-05-16T06:22:50 | 2017-05-16T06:22:50 | 91,423,078 | 1 | 1 | BSD-3-Clause | 2022-10-01T18:48:03 | 2017-05-16T06:23:34 | Python | UTF-8 | Python | false | false | 1,690 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from model.wf_swarming_task import WfSwarmingTask
class WfSwarmingTaskTest(unittest.TestCase):
def testClassifiedTests(self):
task ... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
46704702b85011345fc39dacbe1433db96bfee18 | 34932f68b9878081748d96f267bd7a8359c24ffc | /code/derivatives.py | 4acdd9ae7c4a81771d706b2786c1eb10623caf02 | [] | no_license | rossfadely/wfc3psf | 388160cd692d77e4db24668a924f12004099d572 | b0ac9fd1ed993f250cd1923d6a4ca16dd7f42a70 | refs/heads/master | 2020-06-04T08:54:15.044796 | 2014-12-15T20:40:38 | 2014-12-15T20:40:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,859 | py | import multiprocessing
import numpy as np
from patch_fitting import eval_nll, make_background, evaluate
from generation import render_psfs
def get_derivatives(data, dq, shifts, psf_model, old_nlls, fit_parms, masks,
parms):
"""
Calculate the derivatives of the objective (in patch_fitting)
... | [
"rossfadely@gmail.com"
] | rossfadely@gmail.com |
3766f9a5133652056ebd9b6b6bc0c4f68515983c | f2cb9b54e51e693e1a1f1c1b327b5b40038a8fbe | /src/bin/shipyard_airflow/tests/unit/plugins/test_deckhand_client_factory.py | 044f4cc7ae96a556bd1cc726789890d7c1abce2c | [
"Apache-2.0"
] | permissive | airshipit/shipyard | 869b0c6d331e5b2d1c15145aee73397184290900 | 81066ae98fe2afd3a9c8c5c8556e9438ac47d5a2 | refs/heads/master | 2023-08-31T11:46:13.662886 | 2023-07-01T06:42:55 | 2023-08-30T16:04:47 | 133,844,902 | 6 | 2 | Apache-2.0 | 2023-09-12T19:09:02 | 2018-05-17T17:07:36 | Python | UTF-8 | Python | false | false | 1,083 | py | # Copyright 2017 AT&T Intellectual Property. All other 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... | [
"bryan.strassner@gmail.com"
] | bryan.strassner@gmail.com |
e94bb0b4072bf172c48f8d8cb3bfe91985a8dd3e | b2de5660d81afdf6b1fba058faee6ece6a51e462 | /amplify/agent/managers/bridge.py | 76902e4239a982a79bdc60e47f872d32cb28807d | [
"BSD-2-Clause"
] | permissive | Ferrisbane/nginx-amplify-agent | 725d8a7da7fb66e0b41cddd8139d25a084570592 | ef769934341374d4b6ede5fcf5ebff34f6cba8de | refs/heads/master | 2021-01-22T00:03:49.686169 | 2016-07-20T17:50:30 | 2016-07-20T17:50:30 | 63,801,713 | 0 | 0 | null | 2016-07-20T17:41:25 | 2016-07-20T17:41:25 | null | UTF-8 | Python | false | false | 7,064 | py | # -*- coding: utf-8 -*-
import gc
import time
from collections import deque
from amplify.agent.common.context import context
from amplify.agent.common.util.backoff import exponential_delay
from amplify.agent.managers.abstract import AbstractManager
__author__ = "Mike Belov"
__copyright__ = "Copyright (C) Nginx, Inc.... | [
"dedm@nginx.com"
] | dedm@nginx.com |
2a4c2e2000a7aff2f1657522ab2b84b85f99e5c7 | a16feb303b7599afac19a89945fc2a9603ae2477 | /Simple_Python/standard/ConfigParser/ConfigParser_9.py | cd739d82a6b2776cc41204fb21e4a9bde96a1869 | [] | no_license | yafeile/Simple_Study | d75874745ce388b3d0f9acfa9ebc5606a5745d78 | c3c554f14b378b487c632e11f22e5e3118be940c | refs/heads/master | 2021-01-10T22:08:34.636123 | 2015-06-10T11:58:59 | 2015-06-10T11:58:59 | 24,746,770 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #! /usr/bin/env/python
# -*- coding:utf-8 -*-
import ConfigParser
parser = ConfigParser.SafeConfigParser()
parser.add_section('bug_tracker')
parser.set('bug_tracker','uri','http://localhost:8080/bugs')
parser.set('bug_tracker','username','Jack')
parser.set('bug_tracker','password','123456')
for section in parser.sec... | [
"zhuzhulang@126.com"
] | zhuzhulang@126.com |
e43252b1c78b9d16a9c21784ae22ba5cd362fffa | d475a6cf49c0b2d40895ff6d48ca9b0298643a87 | /pyleecan/Classes/ImportVectorField.py | 8dbc5501c4eb5fc5d7c8a98afbad66071632c118 | [
"Apache-2.0"
] | permissive | lyhehehe/pyleecan | 6c4a52b17a083fe29fdc8dcd989a3d20feb844d9 | 421e9a843bf30d796415c77dc934546adffd1cd7 | refs/heads/master | 2021-07-05T17:42:02.813128 | 2020-09-03T14:27:03 | 2020-09-03T14:27:03 | 176,678,325 | 2 | 0 | null | 2019-03-20T07:28:06 | 2019-03-20T07:28:06 | null | UTF-8 | Python | false | false | 7,283 | py | # -*- coding: utf-8 -*-
# File generated according to Generator/ClassesRef/Import/ImportVectorField.csv
# WARNING! All changes made in this file will be lost!
"""Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Import/ImportVectorField
"""
from os import linesep
from logging impo... | [
"sebgue@gmx.net"
] | sebgue@gmx.net |
acd10b8f4a7a1c925fe17066c2dada6d620110a8 | f0b33d42741f3c470cc7f616c70a4b10a73fc012 | /scripts/ddd17_steer_export.py | 1af7dd96ef80d87062a2bd107b25ea8fa25b1c88 | [
"MIT"
] | permissive | duguyue100/ddd20-itsc20 | 1e51a7a76fe1f2759746814ae58f4e1e21c0c4e6 | 667bb5e702a06cfff30b20de669697f3271baf04 | refs/heads/master | 2021-09-17T06:34:17.545026 | 2018-06-28T16:35:39 | 2018-06-28T16:35:39 | 114,002,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,309 | py | """Steer export.
Author: Yuhuang Hu
Email : duguyue100@gmail.com
"""
from __future__ import print_function
import os
import os
from os.path import join, isfile, isdir
import cPickle as pickle
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import spiker
from spiker.data imp... | [
"duguyue100@gmail.com"
] | duguyue100@gmail.com |
362df6b63b69bd5d5fd4eb04726056f47d873113 | 122f9bf0d996c104f541453ab35c56f6ff3fc7cd | /z수업용문제/JunminLim/2331_반복수열.py | cfed0ed0d334dc85da62587de4d10ebc079ceff3 | [] | no_license | JannaKim/PS | 1302e9b6bc529d582ecc7d7fe4f249a52311ff30 | b9c3ce6a7a47afeaa0c62d952b5936d407da129b | refs/heads/master | 2023-08-10T17:49:00.925460 | 2021-09-13T02:21:34 | 2021-09-13T02:21:34 | 312,822,458 | 0 | 0 | null | 2021-04-23T15:31:11 | 2020-11-14T13:27:34 | Python | UTF-8 | Python | false | false | 281 | py |
n=input()
L=[]
P=[]
while n not in L:
L.append(n)
a = 0
for i in n:
a+=int(i)**2
n = str(a)
while n in L:
L.remove(n)
a = 0
for i in n:
a+=int(i)**2
n = str(a)
print(len(L))
'''
for i in range (len(L)):
dic[L[i], i]
''' | [
"baradamoh@gmail.com"
] | baradamoh@gmail.com |
ad4e66e29bd494bd629bac9884cd7367ed7601f6 | 69526d234c01b1d33b9fb569e55fe363d96beac0 | /api/routes/payments.py | 099b50144d23882f39259fcecf2873101b650077 | [] | no_license | jzamora5/orders_creator_backend | 53b0a773fb88d99354175835cebdfc93c8e7357e | d5dd51ba39a5f549cc55fd9835b6082edd91d0a6 | refs/heads/main | 2023-03-29T11:27:08.602656 | 2021-04-05T22:49:25 | 2021-04-05T22:49:25 | 348,373,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,726 | py | from api.models.order import Order
from api.models.user import User
from api.models.payment import Payment
from api.routes import app_routes
from flask import abort, jsonify, make_response, request
from flask_jwt_extended import jwt_required, get_jwt_identity
from app import storage
@app_routes.route('/order/<order_i... | [
"jzamora_5@yahoo.com"
] | jzamora_5@yahoo.com |
26f2f4fa282fac3064a8d18fa75e67c517c1a09c | a1c8731a8527872042bd46340d8d3e6d47596732 | /programming-laboratory-I/70b7/seguro.py | f49bcb6be7708680dab29dab7ae4ee5f91b095ce | [
"MIT"
] | permissive | MisaelAugusto/computer-science | bbf98195b0ee954a7ffaf58e78f4a47b15069314 | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | refs/heads/master | 2022-12-04T08:21:16.052628 | 2020-08-31T13:00:04 | 2020-08-31T13:00:04 | 287,621,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | # coding: utf-8
# Aluno: Misael Augusto
# Matrícula: 117110525
# Problema: Cálculo de Seguro
def calcula_seguro(valor_veiculo, lista):
dados_cliente = []
verdadeiros = [10, 20, 20, 20, 10]
falsos = [20, 10, 10, 10, 20]
pontos = 0
if lista[0] <= 21:
pontos += 20
elif 22 <= lista[0] <= 30:
pontos += 15
elif 3... | [
"misael.costa@ccc.ufcg.edu.br"
] | misael.costa@ccc.ufcg.edu.br |
e258390aa13593f651e7ecf2780121ade1ffe47d | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_com_adobe_granite_acp_platform_platform_servlet_info.py | 488d29b6091afc227c8d8f0f40e8699ea4f50cdc | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,263 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-... | [
"michael.bloch@shinesolutions.com"
] | michael.bloch@shinesolutions.com |
7379d9371c3922d86ed73492c5400df4bd96a4b1 | fb72d7eb880c7777e414587347d54a0446e962a3 | /pycis/wrappers/base_wrapper.py | ce076d12e21a7994866c5b8b5224567e4a2ce62d | [
"MIT"
] | permissive | marcwebbie/pycis | 4ad806aeb9f257f5178dcb19741666b0f4576721 | 4c123c5805dac2e302f863c6ed51c9e2e05a67c8 | refs/heads/master | 2016-09-06T01:10:11.301029 | 2013-12-28T09:39:36 | 2013-12-28T09:39:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | class BaseWrapper(object):
""" BaseWrapper gives the default interface for wrappers.
It also add utility functions to be shared by sub classes.
Sub classes should override:
self.site_url:
Wrapped site base url
get_streams(self, media):
Get a list of stream for given... | [
"marcwebbie@gmail.com"
] | marcwebbie@gmail.com |
6726e26d26e7add78314772b18f26038174e56e8 | 64a80df5e23b195eaba7b15ce207743e2018b16c | /Downloads/adafruit-circuitpython-bundle-py-20201107/lib/adafruit_onewire/device.py | 8e2dcb3c176bb555d7382ad17baa965dce45f366 | [] | no_license | aferlazzo/messageBoard | 8fb69aad3cd7816d4ed80da92eac8aa2e25572f5 | f9dd4dcc8663c9c658ec76b2060780e0da87533d | refs/heads/main | 2023-01-27T20:02:52.628508 | 2020-12-07T00:37:17 | 2020-12-07T00:37:17 | 318,548,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | # The MIT License (MIT)
#
# Copyright (c) 2017 Carter Nelson for Adafruit Industries
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... | [
"aferlazzo@gmail.com"
] | aferlazzo@gmail.com |
09ee19f59fcbf8de31c5285d7d5cfcf228701935 | de33ba7be349eed5e2a1fc3f2bd9fce5bfdb9f13 | /phenocube/lib/python3.8/site-packages/setuptools/__init__.py | 25b4679b185857fa015cb43acc5f8b34a0faf3b3 | [
"MIT"
] | permissive | SteveMHill/phenocube-py | 9bebf239e24af3f97e59b080560228605e6611c5 | cb262aef1c0925efd2e955170bacd2989da03769 | refs/heads/main | 2023-02-24T03:35:11.461869 | 2020-12-22T12:15:22 | 2020-12-22T12:15:22 | 334,703,261 | 0 | 0 | MIT | 2021-01-31T16:37:21 | 2021-01-31T16:36:47 | null | UTF-8 | Python | false | false | 7,430 | py | """Extensions to the 'distutils' for large or complex distributions"""
import os
import functools
import distutils.core
import distutils.filelist
import re
from distutils.errors import DistutilsOptionError
from distutils.util import convert_path
from fnmatch import fnmatchcase
from ._deprecation_warning import Setupt... | [
"steven.smhill@gmail.com"
] | steven.smhill@gmail.com |
82a16cd345d6ca544ea367fa613b86c7f22ffdc1 | afafaa82a058a3ac1d3721039a11e587278bc80b | /script/plot_condition_numbers.py | b1f2c2ccefdab57544cf7d8851cff68ddbec1b06 | [
"BSD-3-Clause"
] | permissive | tonymcdaniel/sfepy | 24ec0b84bd0ee94ac3935ce01a25db5e6574110a | b7a70547515c6b0faf642dcc127841b782a51200 | refs/heads/master | 2021-01-15T20:13:28.735206 | 2012-07-23T14:33:32 | 2012-07-23T15:17:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,961 | py | #!/usr/bin/env python
"""
Plot conditions numbers w.r.t. polynomial approximation order of reference
element matrices for various FE polynomial spaces (bases).
"""
from optparse import OptionParser
import time
import numpy as nm
import matplotlib.pyplot as plt
from sfepy import data_dir
from sfepy.base.base import out... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
5e73ef0d3118c4e024fe986a11cdce3910655b65 | 01b04d980b2746b4d4db1c2be1a263f77e2a7596 | /liangsongyou.blog/blog/views.py | 95f46d736ea14fb65f41de2b0e1d859dea64a6e2 | [] | no_license | liangsongyou/quarkblob | e9763efefe91f30b6da278ca6787564770cef4ec | 5d926ab40881a5f499734bfcbcb083d8bbb5e03e | refs/heads/master | 2022-11-26T17:30:47.276314 | 2018-11-28T09:47:54 | 2018-11-28T09:47:54 | 155,494,671 | 0 | 0 | null | 2022-11-22T03:07:32 | 2018-10-31T03:42:41 | Python | UTF-8 | Python | false | false | 1,505 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.contrib.auth.decorators import permission_required
from blog.models import Post
from blog.forms import PostForm
def post(request, slug=None):
item = get_object_or_404(Post, slug=slug)
return render(request, 'blog/post.html', {'item... | [
"yuebei58@gmail.com"
] | yuebei58@gmail.com |
203d9a37000a582dcdc625710f4e7bbb0c159639 | 78f65f6c8be381773cc847c93da4b28eb4eeefae | /fastmri/models/__init__.py | d1d79c2627e2cc480fe53930fa89a0e984117d8d | [
"MIT"
] | permissive | soumickmj/fastMRI | af7bc3c654eda93905e19c24ab40dd255eb6c128 | 2056879fd9444c14599447af38ba0507f1222901 | refs/heads/master | 2022-11-29T22:32:26.152484 | 2022-03-09T20:50:02 | 2022-03-09T20:50:02 | 214,513,364 | 1 | 0 | MIT | 2022-11-08T08:29:57 | 2019-10-11T19:22:54 | Python | UTF-8 | Python | false | false | 270 | py | """
Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
"""
from .unet import Unet
from .varnet import NormUnet, SensitivityModel, VarNet, VarNetBlock
| [
"matt.muckley@gmail.com"
] | matt.muckley@gmail.com |
b789dcc8c2c8b5c5cc7429535c32875a9f690efc | 8cfee59143ecd307fe7d7a27986c3346aa8ce60c | /AI/1. Machine Learning/163_mnist-tocsv.py | cf18d04e18f98b2720fada6f34a867fd43f3f5a4 | [] | no_license | kiminhan/Python | daafc1fde804f172ebfb1385ab9d6205c7a45970 | dc6af486aaf7d25dbe13bcee4e115207f37d4696 | refs/heads/master | 2020-03-08T19:18:10.173346 | 2018-09-06T06:11:40 | 2018-09-06T06:11:40 | 128,288,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | import struct
def to_csv(name, maxdata):
# 레이블 파일과 이미지 파일 열기
lbl_f = open("./mnist_/"+name+"-labels-idx1-ubyte", "rb")
img_f = open("./mnist_/"+name+"-images-idx3-ubyte", "rb")
csv_f = open("./mnist_/"+name+".csv", "w", encoding="utf-8")
# 헤더 정보 읽기 --- (※1)
mag, lbl_count = struct.unpack(">II", ... | [
"rladlsgks4@naver.com"
] | rladlsgks4@naver.com |
bc03d8274188df69eac85d025d78dbfa59a16efd | 42321745dbc33fcf01717534f5bf7581f2dc9b3a | /lab/jax/linear_algebra.py | 618778d388a9415d7318fdcb5ef3dd6f36ac76e4 | [
"MIT"
] | permissive | talayCh/lab | 0a34b99fd60bc65fdfd1ead602d94dfb6b96f846 | 4ce49b68782a1ef8390b14ee61f57eeaa13070cf | refs/heads/master | 2023-08-25T04:42:06.904800 | 2021-11-01T18:22:00 | 2021-11-01T18:22:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py | import logging
from typing import Union, Optional
import jax.numpy as jnp
import jax.scipy.linalg as jsla
from . import dispatch, B, Numeric
from .custom import jax_register
from ..custom import (
toeplitz_solve,
i_toeplitz_solve,
s_toeplitz_solve,
i_s_toeplitz_solve,
expm,
i_expm,
s_expm,... | [
"wessel.p.bruinsma@gmail.com"
] | wessel.p.bruinsma@gmail.com |
35da58bdb8be02fba0f38d7f0bb56498199a2c1a | b090cb9bc30ac595675d8aa253fde95aef2ce5ea | /trunk/test/NightlyRun/test304.py | 73f9108132ad2bddc032b4278bf438f74d72234c | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | eyhl/issm | 5ae1500715c258d7988e2ef344c5c1fd15be55f7 | 1013e74c28ed663ebb8c9d398d9be0964d002667 | refs/heads/master | 2022-01-05T14:31:23.235538 | 2019-01-15T13:13:08 | 2019-01-15T13:13:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | #Test Name: SquareSheetConstrainedStressSSA3d
from model import *
from socket import gethostname
from triangle import *
from setmask import *
from parameterize import *
from setflowequation import *
from solve import *
md=triangle(model(),'../Exp/Square.exp',180000.)
md=setmask(md,'','')
md=parameterize(md,'../Par/Sq... | [
"cummings.evan@gmail.com"
] | cummings.evan@gmail.com |
b8137ddbd4d31ee1e675044996c2784fc45b202a | 28c1c3afaf5e70c0530b864ead16fa8762ef1ca4 | /ch05_Array/list_size.py | 78660ba7e14c0f9ebf85b4bc2b7a1d1726f1190f | [] | no_license | luoshao23/Data_Structure_and_Algorithm_in_Python | 8059381c21580e3e4f1276089b9fe4f96de385f8 | 051754963ca2eb818b981ba72583314a043e5df4 | refs/heads/master | 2020-04-29T06:29:02.148886 | 2019-05-15T02:46:48 | 2019-05-15T02:46:48 | 175,917,337 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | import sys
data = []
n = 27
for k in range(n):
a = len(data)
b = sys.getsizeof(data)
print('Length: {0:3d}; Size in bytes: {1:4d}'.format(a, b))
data.append(None)
| [
"luoshao23@gmail.com"
] | luoshao23@gmail.com |
816e04e5d69c642ba2a24942f2af7ce25030a1a5 | 8c9402d753e36d39e0bef431c503cf3557b7e777 | /Sarsa_lambda_learning/main.py | e198580483ff22b2a9cc4c9141037276d21998a9 | [] | no_license | HuichuanLI/play_with_deep_reinforcement_learning | 9477e925f6ade81f885fb3f3b526485f49423611 | df2368868ae9489aff1be4ef0c6de057f094ef56 | refs/heads/main | 2023-07-08T04:52:38.167831 | 2021-08-21T14:05:36 | 2021-08-21T14:05:36 | 395,042,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | # -*- coding:utf-8 -*-
# @Time : 2021/8/17 10:59 下午
# @Author : huichuan LI
# @File : main.py
# @Software: PyCharm
from maze import Maze
from Sara_Lambda import SarsaLambdaTable
def update():
for episode in range(100):
# initial observation
observation = env.reset()
# RL choose action ba... | [
"lhc14124908@163.com"
] | lhc14124908@163.com |
2c67af0e6a0e47698557d1c16075616c11e7da42 | 1ec59e88299c7af9df3854188736b706e89e01fa | /app/forms/public/profile_forms.py | 1f3f68864842f4660895d45a56b96a51956c26cd | [] | no_license | Chenger1/NutCompany_FlaskApp | 7484b04721766b42f9cc909d11c3e942bf3b3371 | c51129e04f2c9e35263d9e28810b4c2862932ef6 | refs/heads/master | 2023-08-06T09:08:27.532820 | 2021-09-23T19:52:25 | 2021-09-23T19:52:25 | 405,457,276 | 0 | 0 | null | 2021-09-12T10:55:47 | 2021-09-11T18:44:35 | HTML | UTF-8 | Python | false | false | 1,241 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SelectField
from wtforms.validators import Email, Optional
from ..custom_field import CustomFileField
from app._db.choices import CountryChoice
class ClientPersonalInfoForm(FlaskForm):
fio = StringField('ФИО', validators=[Optional()])
email = ... | [
"exs2199@gmail.com"
] | exs2199@gmail.com |
cb1b09b13545f6e89fee158e5b5e37ee7d392d73 | 59366342805d7b7682a8c45fd5c11b910e791c21 | /L8包/package/pack1/py1.py | b0fd52ca063138c053548e40274a039e81ea139e | [] | no_license | wantwantwant/tutorial | dad006b5c9172b57c53f19d8229716f1dec5ccd1 | 8d400711ac48212e6992cfd187ee4bfb3642f637 | refs/heads/master | 2022-12-29T05:41:12.485718 | 2019-01-07T08:28:33 | 2019-01-07T08:28:33 | 171,679,026 | 2 | 0 | null | 2022-12-08T01:21:22 | 2019-02-20T13:33:42 | Python | UTF-8 | Python | false | false | 214 | py | def foo():
# 假设代表一些逻辑处理
print('foo')
def boo():
print('boo')
# 单脚本的时候,调用方法
foo()
boo()
print(__name__)
#
# if __name__ =='__main__':
# foo()
# boo()
| [
"778042395@qq.com"
] | 778042395@qq.com |
a99c2a5837c537a407dd87963f6047684fc42131 | 60b52f75e2b0712738d5ad2f9c2113e4d8016c1e | /Chapter01/Logistic regression model building/logistic.py | 9173bc687a2a76562df6ba94ab599b0b78764c5a | [
"MIT"
] | permissive | PacktPublishing/Hands-On-Deep-Learning-with-TensorFlow | b63b40140882762841403467f9255612972f7ec7 | c81fdc1edf8f2275ea76a9900c92e7fae0ddf6ed | refs/heads/master | 2023-01-24T19:44:40.191675 | 2023-01-24T11:07:02 | 2023-01-24T11:07:02 | 100,028,897 | 96 | 77 | null | null | null | null | UTF-8 | Python | false | false | 3,308 | py | import tensorflow as tf
import numpy as np
%autoindent
try:
from tqdm import tqdm
except ImportError:
def tqdm(x, *args, **kwargs):
return x
# Set random seed
np.random.seed(0)
# Load data
data = np.load('data_with_labels.npz')
train = data['arr_0']/255.
labels = data['arr_1']
# Look at some data
p... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
123d18a02f05d17059d952a8169d5b7d13b2133e | 61bd4a9dfd606b3c9efd52f23848b7329b18a909 | /Pythonscripts/run_predictions.py | 071dc31901d1c69daae74de43dde6e21c174c466 | [] | no_license | philmcc/aistocks | e9e85dc65e5439793cc5caa4d851a9149ff762a1 | 0706ce7d63db271ee807cc1f6dba8cd178223612 | refs/heads/master | 2021-01-10T05:36:33.736881 | 2016-09-06T13:53:03 | 2016-09-06T13:53:03 | 46,048,154 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import MySQLdb as mdb
from pyfann import libfann
from datetime import date
from network_functions import save_prediction
mydate = date.today()
con = None
con = mdb.connect('localhost', 'root',
'fil1202job', 'stock');
with con:
cur = con.cursor(mdb.cursors.DictCu... | [
"pmcclarence@iparadigms.com"
] | pmcclarence@iparadigms.com |
0f5ed518db714ea344380b6429275fec41ee5e98 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/test/webapps/graph_analysis_unittest.py | 8c279f8cf4de227a48180ac060fca8eb86fd07b9 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 4,714 | py | #!/usr/bin/env python3
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import csv
from file_reading import read_actions_file, read_enums_file, read_platform_supported_actions, read_unprocessed_coverage_tests_file
from test_anal... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
ce7933230d5bc50519059d8bf563e142cacd0f9d | 4f1218079f90a65befbf658679721886d71f4ee8 | /python/hackerrank/birthdaychocolate.py | ef225e1789e29cfa011f85c8ddf433ee3d17c0b9 | [] | no_license | Escaity/Library | 9f57767617422a7930caf48718d18f7ebef81547 | b34d8600e0a65845f1b3a16eb4b98fc7087a3160 | refs/heads/master | 2022-07-29T16:18:33.073738 | 2022-07-17T10:25:22 | 2022-07-17T10:25:22 | 238,588,249 | 0 | 0 | null | 2021-08-17T03:02:34 | 2020-02-06T02:04:08 | Python | UTF-8 | Python | false | false | 213 | py | def birthday(s, d, m):
n = len(s)
cnt = 0
for i in range(n - m + 1):
bar = 0
for j in range(i, i + m):
bar += s[j]
if bar == d:
cnt += 1
return cnt
| [
"esk2306@gmail.com"
] | esk2306@gmail.com |
e9e335201ab716e0b4e0c4dd41ecd24d930e054d | b7eb41b068614e04f38a969326f43d8f8119cb05 | /74_search_a_2d_matrix.py | ca546b4123fa5936447cab9c7edc0057dcffd1b4 | [] | no_license | YI-DING/daily-leetcode | ddfb6985bf5014886cba8d6219da243e0aa28d71 | a6d3898d900f2063302dc1ffc3dafd61eefa79b7 | refs/heads/master | 2020-05-19T06:07:21.557077 | 2019-07-19T16:31:46 | 2019-07-19T16:31:46 | 184,866,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | class Solution:
def searchMatrix(self, matrix: List[List[int]], target: int):
if not matrix or not matrix[0]:
return False
start, end = 0, len(matrix)-1
while start+1 < end:
mid = (start+end)//2
if matrix[mid][0] > target:
end = mid... | [
"yiding1@uchicago.edu"
] | yiding1@uchicago.edu |
f7a23f0389fe8115da3ae140207cef638d3ed979 | cb3634622480f918540ff3ff38c96990a1926fda | /PyProject/leetcode/history/symmetric-tree—2.py | 6a7f516c3065f6a3a5169f67922957b4efac8b15 | [] | no_license | jacksonyoudi/AlgorithmCode | cab2e13cd148354dd50a0487667d38c25bb1fd9b | 216299d43ee3d179c11d8ca0783ae16e2f6d7c88 | refs/heads/master | 2023-04-28T07:38:07.423138 | 2022-10-23T12:45:01 | 2022-10-23T12:45:01 | 248,993,623 | 3 | 0 | null | 2023-04-21T20:44:40 | 2020-03-21T14:32:15 | Go | UTF-8 | Python | false | false | 725 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def isSymmetric(self, root):
if root is None:
return True
else:
return self.isMirror(root.left, root.right... | [
"liangchangyoujackson@gmail.com"
] | liangchangyoujackson@gmail.com |
2fc6c3ca11a0533b9e305d1c97100d5ac134da5a | 7044043460c74a9c1c9d386bdeccb87289362f76 | /mysite/urls.py | 7794602ec06995938b9e62a0ce60bf93ca078cb7 | [] | no_license | KIMJONGIK/mysite | 6630682eca869b5122597baf2e2f59dd0b40869a | 84b908ea75602c7ca801eafb7dd975aadf70593b | refs/heads/master | 2022-12-09T14:33:38.741339 | 2020-09-16T11:48:53 | 2020-09-16T11:48:53 | 293,227,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"kji089@naver.com"
] | kji089@naver.com |
d5676fa17de1d686869f532cf7410e0555426ced | a75e7f434271f1ce4bc9e89f6cc10126aa1947e7 | /test/__main__.py | b6661dcb01917492dc29fa3c377d63eb7fd7c385 | [] | no_license | smutel/pylib | 53f0918ef897d5df5e2ecb7a6b0179bdd3647843 | 463873a0f9ff2052f740be632dde746be6e3b19b | refs/heads/master | 2020-06-15T16:26:16.476496 | 2016-11-25T14:15:44 | 2016-11-25T14:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | #!/usr/bin/env python
# vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2015-11-14 12:21:54 +0000 (Sat, 14 Nov 2015)
#
# https://github.com/harisekhon/pylib
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send m... | [
"harisekhon@gmail.com"
] | harisekhon@gmail.com |
8fc33e667b9cd3bc3e640188e68f4aa66390f63a | 6bd4d4845ac3569fb22ce46e6bdd0a8e83dd38b7 | /fastreid/data/build.py | da5b4b0137cd82c4dc9cc869976c914e7c475f7a | [] | no_license | wodole/fast-reid | a227219acf2606124655d63fa88c0cf3e22f4099 | 9cf222e093b0d37c67d2d95829fdf74097b7fce1 | refs/heads/master | 2022-04-15T15:10:07.045423 | 2020-04-08T13:04:09 | 2020-04-08T13:04:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,159 | py | # encoding: utf-8
"""
@author: l1aoxingyu
@contact: sherlockliao01@gmail.com
"""
import logging
import torch
from torch._six import container_abcs, string_classes, int_classes
from torch.utils.data import DataLoader
from . import samplers
from .common import CommDataset, data_prefetcher
from .datasets import DATASET... | [
"sherlockliao01@gmail.com"
] | sherlockliao01@gmail.com |
bda08bb1e8392fe0495c5b0f7bc2ba3dc882b580 | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/tools/scan-view/share/startfile.py | 673935909f823467ad1dd737788133966d2a00e3 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"NCSA",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-arm-llvm-sga",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 6,038 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Utility for opening a file using the default application in a cross-platform
manner. Modified from http://code.activestate.com/recipes/511443/.
"""
__version__ = '1.1x'
__all__ = ['open']
import os
import sys
import webbrowser
import subprocess
_controllers = {}
_ope... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
a269a7226604cf187ef5653174f1c4c263b1f6a7 | 92dd6a174bf90e96895127bb562e3f0a05d6e079 | /apply dfs and bfs/섬나라 아일랜드.py | d24817c5606aba77e667c87bdc35fa782e3a2e65 | [] | no_license | 123qpq/inflearn_python | caa4a86d051d76bf5612c57ae9578f1925abc5a9 | 5904cedabea9d5bc4afa3f1f76911dfccce754b5 | refs/heads/main | 2023-03-12T05:14:06.162651 | 2021-02-28T14:03:58 | 2021-02-28T14:03:58 | 338,735,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | from collections import deque
n = int(input())
table = [list(map(int, input().split())) for _ in range(n)]
dx = [-1, -1, 0, 1, 1, 1, 0, -1]
dy = [0, 1, 1, 1, 0, -1, -1, -1]
q = deque()
cnt = 0
for i in range(n):
for j in range(n):
if table[i][j] == 1:
table[i][j] = 0
q.append((i, j)... | [
"45002168+123qpq@users.noreply.github.com"
] | 45002168+123qpq@users.noreply.github.com |
34017423ccd92177b7ccc9ac8445d31505fcfc05 | 20aadf6ec9fd64d1d6dffff56b05853e0ab26b1f | /problemset3/hangmanPart1.py | 98e635434a0aee5915adad9d46256d25316d340e | [] | no_license | feminas-k/MITx---6.00.1x | 9a8e81630be784e5aaa890d811674962c66d56eb | 1ddf24c25220f8b5f78d36e2a3342b6babb40669 | refs/heads/master | 2021-01-19T00:59:57.434511 | 2016-06-13T18:13:17 | 2016-06-13T18:13:17 | 61,058,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | def isWordGuessed(secretWord, lettersGuessed):
'''
secretWord: string, the word the user is guessing
lettersGuessed: list, what letters have been guessed so far
returns: boolean, True if all the letters of secretWord are in lettersGuessed;
False otherwise
'''
# FILL IN YOUR CODE HERE...
... | [
"femi1991@gmail.com"
] | femi1991@gmail.com |
e2305a194758b56976ba2b3d942a874de4f50a80 | bfe13b5458c5a3b8a212479ad8596934738a83d9 | /solar/solar_conv1d_1.py | b6c23eee1267e5d4790dbb3a0f5d9eff7cae0ab1 | [] | no_license | sswwd95/Project | f32968b6a640dffcfba53df943f0cf48e60d29df | fdcf8556b6203a407e5548cb4eda195fb597ad6e | refs/heads/master | 2023-04-21T23:03:24.282518 | 2021-02-15T00:55:16 | 2021-02-15T00:55:16 | 338,989,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,872 | py | import pandas as pd
import numpy as np
import os
import glob
import random
import tensorflow.keras.backend as K
import warnings
warnings.filterwarnings('ignore')
train = pd.read_csv('./solar/csv/train.csv')
sub = pd.read_csv('./solar/csv/sample_submission.csv')
# Hour - 시간
# Minute - 분
# DHI - 수평면 산란일사량(Diffuse Horiz... | [
"sswwd95@gmail.com"
] | sswwd95@gmail.com |
237ed5f539d9574b418d151c89a4c1c84834526c | 3adec884f06eabfe50d4ab3456123e04d02b02ff | /287. Find the Duplicate Number.py | df0582aa45ceb74b6bdc850e22299524e03b7121 | [] | no_license | windmzx/pyleetcode | c57ecb855c8e560dd32cf7cf14616be2f91ba50e | d0a1cb895e1604fcf70a73ea1c4b1e6b283e3400 | refs/heads/master | 2022-10-05T17:51:08.394112 | 2020-06-09T09:24:28 | 2020-06-09T09:24:28 | 250,222,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from typing import List
class Solution:
def findDuplicate(self, nums: List[int]) -> int:
left = 1
right = len(nums)
while left < right:
mid = (left+right)//2
count = 0
for i in nums:
if i <= mid:
count += 1
... | [
"2281927774@qq.com"
] | 2281927774@qq.com |
4c6b37c4b6d003a5c694b4bdd7795f7854e6f430 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/managedidentities/v1beta1/managedidentities-v1beta1-py/noxfile.py | 34dc58b5f6e2c0eefe1b194e280ee2a1542d9b95 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,595 | py | # -*- coding: utf-8 -*-
# Copyright 2020 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
4a8839c76e364ce097ae40ad6f248bb84cc4d8ef | 7bcb0b7f721c8fa31da7574f13ed0056127715b3 | /src/apps/base/models/dimensions/dimension_client.py | 666ebe39af5dc08ced900d20257b4276f2e8c9ce | [] | no_license | simonchapman1986/ripe | 09eb9452ea16730c105c452eefb6a6791c1b4a69 | c129da2249b5f75015f528e4056e9a2957b7d884 | refs/heads/master | 2022-07-22T05:15:38.485619 | 2016-01-15T12:53:43 | 2016-01-15T12:53:43 | 49,718,671 | 1 | 0 | null | 2022-07-07T22:50:50 | 2016-01-15T12:53:09 | Python | UTF-8 | Python | false | false | 1,358 | py | from django.db import models
from django_extensions.db.fields import UUIDField
from apps.base.models.dimensions.dimension import select_or_insert
from apps.flags.checks.client import client
class DimensionClient(models.Model):
"""
DimensionClient
Dim to filter down on clients within the reported data fac... | [
"simon-ch@moving-picture.com"
] | simon-ch@moving-picture.com |
7df42e2ac65b41410913aeea15f66a7ecc66569b | 772d1ab6a1814e4b6a408ee39865c664563541a6 | /lms_app/lms_dto/QuestionDto.py | 8b8efd36df53eb095889030e90c1f10efc0d854d | [] | no_license | omitogunjesufemi/lms | 7deed8bf54799034d6af2b379a0c56801f5645cc | 9c8bb88556a3f5598cf555623ef016a74ae3f5c7 | refs/heads/master | 2023-05-04T12:52:13.862572 | 2021-05-25T13:48:26 | 2021-05-25T13:48:26 | 330,643,258 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | class SetQuestionDto:
question_title: str
question_content: str
choice1: str
choice2: str
choice3: str
choice4: str
answer: str
assigned_mark: int
assessment_id: int
id: int
class UpdateQuestionDto:
question_title: str
question_content: str
choice1: str
choice2:... | [
"omitogunopeyemi@gmail.com"
] | omitogunopeyemi@gmail.com |
edfb5453073a6d9575cdaf11a8e4117f7ae0ec0d | 5e05c6ec892d9a6bc33c0c0a9b6ce4c7135a83f4 | /cristianoronaldoyopmailcom_299/settings.py | d5a0c910720d8dd82153b4b4433f70e3d17e090e | [] | no_license | payush/cristianoronaldoyopmailcom-299 | 54eb5118840ea7ea68f077ffd7032a62a79880f3 | 52e5bb6ad599605b8cdf1088f9d7cdcf7c1a0265 | refs/heads/master | 2020-03-23T14:23:17.476546 | 2018-07-20T06:30:07 | 2018-07-20T06:30:07 | 141,672,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,157 | py | """
Django settings for cristianoronaldoyopmailcom_299 project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/s... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
ab2312766b10746a33edee87aae7a0185bc0508e | 70ce903a7b835e4e960abe405158513790d37426 | /django-bloggy/bloggy_project/blog/models.py | 6e45b65afb50888a69149b4da6bd875560586d7b | [] | no_license | lpatmo/book2-exercises | 29af718d74732a5bbe287ab60a67b0d84d4e0abd | 9524bc58997ff4eda10177abf70805f3691e247c | refs/heads/master | 2020-12-25T22:29:09.391501 | 2014-10-26T03:15:35 | 2014-10-26T03:15:35 | 25,755,186 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from django.db import models
from uuslug import uuslug
class Post(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
title = models.CharField(max_length=100)
content = models.TextField()
tag = models.CharField(max_length=20, blank=True, null=True)
image = models.ImageField(upload... | [
"hermanmu@gmail.com"
] | hermanmu@gmail.com |
808afd2c166dd88286794b21c33a75891fcad75a | eb0bb5267035c0222da0c072c5dcd85b46099904 | /test/bug.986.t | 7d7e22538d6c69ad56a124722cd5c465bf5b6fda | [
"MIT"
] | permissive | bjornreppen/task | 6d96f578eec7b9cceeb4d728caeda87e7a446949 | a9eac8bb715ac8f51073c080ac439bf5c09493e8 | refs/heads/master | 2021-05-30T07:48:39.263967 | 2015-10-21T20:50:42 | 2015-10-21T20:50:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | t | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
###############################################################################
#
# Copyright 2006 - 2015, Paul Beckingham, Federico Hernandez.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentatio... | [
"paul@beckingham.net"
] | paul@beckingham.net |
ae2eade74f9f078d1840f1f5df750227c8959659 | ce6e91fb9a5a9049d817d020ca0018b7f4008b9b | /runtests.py | ef35cd877b6d81a7ad6d506365c6d7dfbe0e8cb7 | [] | no_license | ccnmtl/django-pagetimer | b98536273b38c64f10d6832b7b74833099e68436 | 2844b3c702df2952deffdf6cd75c9e47e6f35284 | refs/heads/master | 2021-01-09T20:53:18.627185 | 2017-08-30T19:32:23 | 2017-08-30T19:32:23 | 58,394,973 | 0 | 0 | null | 2017-08-30T19:32:23 | 2016-05-09T17:25:37 | Python | UTF-8 | Python | false | false | 2,149 | py | """ run tests for pagetimer
$ virtualenv ve
$ ./ve/bin/pip install Django==1.8
$ ./ve/bin/pip install .
$ ./ve/bin/python runtests.py
"""
import django
from django.conf import settings
from django.core.management import call_command
def main():
# Dynamically configure the Django settings with the minimum neces... | [
"anders@columbia.edu"
] | anders@columbia.edu |
1f9f53be7d85b393f7c0638c796d8ddc9f14b72f | 77090c3eaf15342505edc228ea19769ab219e0f7 | /CNVbenchmarkeR/output/manta3-datasetall/results17316/runWorkflow.py | 8ecfbc9ac2eb16a453983e3a063bca3a9ffd2a6b | [
"MIT"
] | permissive | robinwijngaard/TFM_code | 046c983a8eee7630de50753cff1b15ca3f7b1bd5 | d18b3e0b100cfb5bdd9c47c91b01718cc9e96232 | refs/heads/main | 2023-06-20T02:55:52.071899 | 2021-07-13T13:18:09 | 2021-07-13T13:18:09 | 345,280,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,090 | py | #!/usr/bin/env python2
# Workflow run script auto-generated by command: '/home/robin/Documents/Project/manta/Install/bin/configManta.py --bam=/home/robin/Documents/Project/Samples/bam/all/17316.bam --referenceFasta=/home/robin/Documents/Project/Samples/hg38/hg38.fa --config=/home/robin/Documents/Project/TFM_code/CNVben... | [
"robinwijngaard@gmail.com"
] | robinwijngaard@gmail.com |
743cc0818768c373bc08f9acf81e567aacb3a69b | d528d21d32a2a7f299e8365d0a935b8718f9c07f | /cogs/utils/checks.py | 7f0962fe5b0e94c665e2849f9eb198a293c99c7d | [] | no_license | sizumita/Aegis | 53b3f3db4d88b8ffdbc0d44781f55251081a32fc | 2c9684695a32481583fd214fa63deaddea3d5ebc | refs/heads/master | 2020-09-11T00:05:48.629459 | 2020-06-23T14:04:41 | 2020-06-23T14:04:41 | 221,874,644 | 6 | 4 | null | 2019-12-10T10:58:34 | 2019-11-15T08:04:23 | Python | UTF-8 | Python | false | false | 2,758 | py | from .database import CommandPermission
from discord.ext.commands import check
import discord
async def check_command_permission(context):
"""
権限周りについて:
DMの場合確実に有効
CommandPermissionがなければそもそも有効化されていない
作成されていて、かつroles、users、permissionsが空であれば誰でも使える
:param context: commands.Context
... | [
"sumito@izumita.com"
] | sumito@izumita.com |
94ec5975940892096bc5b805de5af3e9c66312a3 | 6b8960551ee4be37c46f6c5f28257845fcb871ed | /task1.py | 2105ae960977b9acf3bde10337df6d46c5ad633f | [] | no_license | htrueman/db2_limited_test | 10e9e574fe52b2346c33f4485f8b1dec00c30ac8 | 489379a952ad5c1ecb5123e9e3d41ec28206dc01 | refs/heads/master | 2022-12-09T06:32:27.709446 | 2017-06-12T01:40:08 | 2017-06-12T01:40:08 | 93,772,542 | 0 | 0 | null | 2022-11-22T01:46:27 | 2017-06-08T16:56:17 | Python | UTF-8 | Python | false | false | 649 | py | test_num1 = 1
test_num2 = 10
test_num3 = 2
def handle_numbers(number1, number2, number3):
count_div_numbers = 0
div_numbers_list = []
for number in range(number1, number2 + 1):
if number % number3 == 0:
count_div_numbers += 1
div_numbers_list.append(str(number))
if div... | [
"vege1wgw@gmail.com"
] | vege1wgw@gmail.com |
fe01b307a0814fd473a553ad5bfd3a7ad7f22547 | 245a3f8cea6f232bf3142706c11188b51eb21774 | /python/hetu/onnx/onnx_opset/Where.py | 6da3b659d9f9858f398695ae791903a6f8c2c8b5 | [
"Apache-2.0"
] | permissive | initzhang/Hetu | 5bfcb07e62962fbc83def14148f8367fab02625a | 447111a358e4dc6df5db9c216bdb3590fff05f84 | refs/heads/main | 2023-06-20T18:37:21.760083 | 2021-07-27T04:37:48 | 2021-07-27T04:37:48 | 389,848,768 | 0 | 0 | Apache-2.0 | 2021-07-27T04:32:57 | 2021-07-27T04:32:57 | null | UTF-8 | Python | false | false | 610 | py | from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
from onnx import onnx_pb
from hetu.onnx import constants, util, graph
from hetu.onnx.handler import hetu_op
from hetu.onnx.onnx_opset import general
@hetu_op(["WhereOp"], onnx_op=["Where"... | [
"swordonline@foxmail.com"
] | swordonline@foxmail.com |
2ca77983524514c47a936a1f296297e5ba1c4456 | 7b1b4ed8bd4c887362b367625a833c28aa919dd8 | /wpaudit/providers/aliyun/resources/ram/policies.py | 09ac9427cfcba323da87129ef7e60ece906a9935 | [] | no_license | wperic/wpaudit | 6bbd557c803ce9bceb764c1451daeb5e440a3d9c | ed69c1eabcf85e80ed8fe5397d2d369fd3ff35d8 | refs/heads/main | 2023-07-16T21:36:57.528548 | 2021-09-03T10:35:43 | 2021-09-03T10:35:43 | 402,716,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,794 | py | from wpaudit.providers.aliyun.resources.base import AliyunResources
from wpaudit.providers.aliyun.facade.base import AliyunFacade
import json
class Policies(AliyunResources):
def __init__(self, facade: AliyunFacade):
super().__init__(facade)
async def fetch_all(self):
for raw_policy in await ... | [
"90035639+wperic@users.noreply.github.com"
] | 90035639+wperic@users.noreply.github.com |
04d46f70d2543594d36fc9d340ad9c2da9f9cd7b | 7eb8bf846dc7021751019debf91925139203bed2 | /Django_Clases/tercer_proyecto/populate_modelos_aplicacion.py | 348b1e00929e50d9b01698e636df06708a4c9001 | [] | no_license | rpparada/python-and-django-full-stack-web-developer-bootcamp | 5c384dc1c19557097c893cf6149c1831984b1946 | 7b91f16cfb49d7de71901857b4e4c8f447db5e6f | refs/heads/master | 2021-09-08T22:40:44.737431 | 2018-03-12T15:12:06 | 2018-03-12T15:12:06 | 116,153,519 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE','tercer_proyecto.settings')
import django
django.setup()
import random
from modelos_aplicacion.models import Usuarios
from faker import Faker
generaFake = Faker()
def popular(N=10):
for entrada in range(N):
nombre_falso = generaFake.first_name()
... | [
"rpparada@gmail.com"
] | rpparada@gmail.com |
6bbe246fd9bd6d0eb23ccd5e2f43f5280487874c | d29c2dea4afbb21de0b1e508e501ee6711805451 | /__main__.py | e084aa8b11fab88e422d61a1e430451cb2602f83 | [
"MIT"
] | permissive | cdeitrick/workflows | ef69003cbd6030bc828815b7c898128327da129a | 8edd2a08078144a2445af3903eb13b71abb96538 | refs/heads/master | 2020-03-18T07:04:20.554986 | 2019-12-18T21:16:39 | 2019-12-18T21:16:39 | 134,430,686 | 0 | 0 | MIT | 2019-07-11T03:29:48 | 2018-05-22T14:50:28 | Python | UTF-8 | Python | false | false | 333 | py | from pipelines import main
import argparse
def create_parser()->argparse.Namespace:
parser = argparse.ArgumentParser()
parser.add_argument(
"which",
help = "assembly or variants.",
type = str,
choices = ['assembly', 'variants']
)
args = parser.parse_args()
return args
if __name__ == "__main__":
main.... | [
"cld100@pitt.edu"
] | cld100@pitt.edu |
6479a595ec5e5e6a86e7178104d6df7763bfa983 | 5f58a50d7c44d0cf612b9076df40da89302b5ba6 | /geeadd/batch_copy.py | ff05da1fea9836b073de8a843dc1faa2c53b45c2 | [
"Apache-2.0"
] | permissive | jkrizan/gee_asset_manager_addon | 386a2a5b96e31bdb5e40a08ad12545e11a376764 | 884793185ef5641f0b53349feb5f4c3be272fd28 | refs/heads/master | 2020-05-19T12:58:15.830923 | 2019-01-01T16:46:16 | 2019-01-01T16:46:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | from __future__ import print_function
import ee
import os
ee.Initialize()
def copy(collection_path,final_path):
assets_list = ee.data.getList(params={'id': collection_path})
assets_names = [os.path.basename(asset['id']) for asset in assets_list]
print('Copying a total of '+str(len(assets_names))+'.....')
... | [
"samapriya.roy@gmail.com"
] | samapriya.roy@gmail.com |
99d16f620ac24b74834e13c63e09b6196c038fb0 | 7f4fb112bc9ab2b90f5f2248f43285ce9ac2e0a0 | /src/igem/neutronics/air/bare/borosilicate-glass-backfill/0wt/plot_all.in.one_cask.thickness_dose.rate_t4045_plug.py | c763b91a79e02074300d90606bbccfa7b9fb3d2b | [] | no_license | TheDoctorRAB/plot | dd3b5134c91c8fa7032fcc077c5427b26a80e49d | ed6746d511222c03e79f93548fe3ecd4286bf7b1 | refs/heads/master | 2021-07-11T10:21:19.347531 | 2020-07-16T17:13:15 | 2020-07-16T17:13:15 | 20,462,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,119 | py | ########################################################################
# R.A.Borrelli
# @TheDoctorRAB
# rev.11.March.2015
########################################################################
#
# Plot routine
# All in one file, with no separate control input, lib files
# Plot data is contained in a separate data f... | [
"borrelli@localhost.localdomain"
] | borrelli@localhost.localdomain |
83e185e53ee41e521bdd311be71ebf8b7318349e | 05b8143f004c6531a1d24a66888e2b02a41616cf | /mainApp/apis/cinemas_api.py | 905d41498de23e6efa289decd85035190b6c01d9 | [] | no_license | cangmingssir/flask_tpp | 1b0d8f40fd3298789beffca877874dd45d734987 | e6903a47aa2658a105f79c37a30ef5f44a4d1fab | refs/heads/master | 2020-03-19T12:04:37.056215 | 2018-06-17T08:07:48 | 2018-06-17T08:07:48 | 136,493,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,864 | py | # coding:utf-8
from flask import request, session
from flask_restful import Resource, reqparse, fields, marshal_with
from mainApp import dao
from mainApp.models import Cinemas, User, Qx
from mainApp.settings import QX
def check_login(qx):
def check(fn):
def wrapper(*args,**kwargs):
token = re... | [
"mu_tongwu@163.com"
] | mu_tongwu@163.com |
140384afde407034a54ba2db872c23687b2803b5 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /exeY2wDuEW4rFeYvL_18.py | df232bc3446da8ba44e538db19a12468c1434bda | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | """
Create an ordered 2D list (matrix). A matrix is ordered if its (0, 0) element
is 1, its (0, 1) element is 2, and so on. Your function needs to create an a ×
b matrix. `a` is the first argument and `b` is the second.
### Examples
ordered_matrix(5, 5) ➞ [
[1, 2, 3, 4, 5],
[6, 7, 8, 9, 10],
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.