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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eb2a00823d54942b073c34b8e71e91ea83f0d77b | a5d82d6da2bc6a950c43cd70ba35cb6e22174a07 | /DjangoRV/urls.py | 99342009c3ad39187aed19f27142ce80ad757fcb | [] | no_license | cryptopotluck/Django-RV | 3f1688d236141bb85e449cd4e0d98280418b584b | d70b3a1b6227aa89075e7607645199ddaf923c09 | refs/heads/master | 2020-04-29T06:49:01.159122 | 2019-03-16T05:34:38 | 2019-03-16T05:34:39 | 175,930,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | """DjangoRV URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-base... | [
"ajkiesewetter@gmail.com"
] | ajkiesewetter@gmail.com |
d0ec0186ae9afc856f78b53b6439831f4865b158 | 4ea43f3f79ad483d83238d88572feb822f451372 | /philo/migrations/0004_auto__del_field_attribute_json_value.py | 2cfc222a490142fcde0e59222b460dd47760eab8 | [
"ISC"
] | permissive | kgodey/philo | c8c433d44b2f31121f13bd0ee101605be11fe9da | c19bf577d44606d2b284e6058d633f4a174b61cc | refs/heads/master | 2020-12-29T02:54:11.746966 | 2011-05-24T21:57:47 | 2011-05-24T21:57:47 | 686,009 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,789 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Attribute.json_value'
db.delete_column('philo_attribute', 'json_value')
def backwa... | [
"stephen.r.burrows@gmail.com"
] | stephen.r.burrows@gmail.com |
e57a2eac0d5aae324db2f1f3da2271d06bba059e | 44f216cc3bb4771c8186349013ff0ed1abc98ea6 | /torchgen/shape_functions/gen_jit_shape_functions.py | d25539d3fa2cd35023e6989e6bb93576a1c69ef5 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | eiphy/pytorch | a8fc21a3c0552b392ed8c3a1d69f7ed8660c56ac | 104f0bf09ec7609d1c5626a7d7953ade4f8c9007 | refs/heads/master | 2022-05-23T02:10:13.158924 | 2022-05-07T21:26:00 | 2022-05-07T21:26:00 | 244,914,898 | 2 | 0 | NOASSERTION | 2020-03-04T14:00:53 | 2020-03-04T14:00:53 | null | UTF-8 | Python | false | false | 3,366 | py | #!/usr/bin/env python3
import os
from pathlib import Path
from torch.jit._shape_functions import shape_compute_graph_mapping
SHAPE_HEADER = r"""
/**
* @generated
* This is an auto-generated file. Please do not modify it by hand.
* To re-generate, please run:
* cd ~/pytorch && python
* torchgen/shape_functions/ge... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
f16e57b0781c6ce1aaf648186b412f2f16a75ec9 | 92963d596f263b04d244fe87d1cad149961c7e39 | /caffe2_tutorial/Basics/test_caffe2.py | fadd2f155da66095dbc4383b8de459a6739f61a8 | [] | no_license | zchen0211/ml_system | 1d993c6f481d269013c4193bbe6de2d178f0b3fb | 7a74656eb8fab559890513ee318cf726654ff44a | refs/heads/master | 2021-01-20T05:19:10.393493 | 2019-03-08T22:45:53 | 2019-03-08T22:45:53 | 101,426,846 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | from caffe2.python import workspace, model_helper
import numpy as np
import glog as log
# Create random tensor of three dimensions
x = np.random.rand(4, 3, 2)
print(x)
print(x.shape)
workspace.FeedBlob("my_x", x)
x2 = workspace.FetchBlob("my_x")
print(x2)
### Nets and Operators
# Create the input data
data = np.ran... | [
"chenzhuoyuan07@gmail.com"
] | chenzhuoyuan07@gmail.com |
2f790ce03892c3adfa51150861c24ae3011c33be | 41de4210af23a8a8a3ca7dd090bb51faecf4a0c8 | /lib/python3.5/site-packages/statsmodels/stats/tests/test_diagnostic.py | 66be6e0764adde6802f8edd1f3d81d3962122e7a | [
"Python-2.0"
] | permissive | randybrown-github/ziplineMacOS | 42a0c2bfca2a54baa03d2803dc41317647811285 | eb5872c0903d653e19f259f0800fb7aecee0ee5c | refs/heads/master | 2022-11-07T15:51:39.808092 | 2020-06-18T20:06:42 | 2020-06-18T20:06:42 | 272,631,387 | 0 | 1 | null | 2022-11-02T03:21:45 | 2020-06-16T06:48:53 | Python | UTF-8 | Python | false | false | 44,611 | py | # -*- coding: utf-8 -*-
"""Tests for Regression Diagnostics and Specification Tests
Created on Thu Feb 09 13:19:47 2012
Author: Josef Perktold
License: BSD-3
currently all tests are against R
"""
#import warnings
#warnings.simplefilter("default")
# ResourceWarning doesn't exist in python 2
#warnings.s... | [
"randybrown18@me.com"
] | randybrown18@me.com |
4786f697c4b5c0fe502134c1c9619662fd57bd4c | 13b70fefe74a4df57c80207a9f5fddb2c2474f1d | /Ui/Ui_FormReceivables.py | db1413407c8c9c455baa3348dcce61139de3c0b0 | [] | no_license | golden7602/zion | 4f8ae947fd754d64de44bb16d9bd2bd7f8c819a5 | 70a5ba13eb1b504f94fdaceba7cc6d0564618c00 | refs/heads/master | 2021-07-01T13:46:03.769916 | 2020-12-01T11:15:01 | 2020-12-01T11:15:01 | 196,413,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,534 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'e:\Zion\zion\Ui\FormReceivables.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
... | [
"419331959@qq.com"
] | 419331959@qq.com |
a5267614375d4244c70ef9d22e43775759ce616f | b2abec1469351de38a37b6189fd365be71ac1a5c | /v2/api/assets/user_preferences.py | 9bdefa24e0677c120d05de4c4a0e13925375780f | [] | no_license | stainedart/kdm-manager | 49804eb258ebc22a7679dad8e1e704c997694747 | 3b73fc037be3b2b63c0baf4280e379bdf4e7cb75 | refs/heads/master | 2020-03-07T02:28:49.893626 | 2018-03-25T14:24:47 | 2018-03-25T14:24:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,676 | py | preferences_dict = {
"beta": {
"type": "General",
"desc": "Enable beta features of the Manager?",
"affirmative": "Enable",
"negative": "Disable",
"patron_level": 2,
},
"preserve_sessions": {
"type": "General",
"desc": "Preserve Sessions?",
"aff... | [
"toconnell@tyrannybelle.com"
] | toconnell@tyrannybelle.com |
6392b62f74dce1302bb6f079eac6e731541b0828 | 653c1dcfa2f78491722706c126f69505b750e2f1 | /pyNastran/bdf/mesh_utils/remove_unused.py | 7116d64cb09a05aa2d74367b7fefaa48cfbe7f41 | [] | no_license | lnderuiter/pyNastran | b0a2e20a9555a4f460358136f52dfc1827894a80 | cc596e637b53cf0a997f92e0e09f43222960052c | refs/heads/master | 2020-07-07T15:43:11.885862 | 2019-08-13T23:37:48 | 2019-08-13T23:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,908 | py | """
defines some methods for cleaning up a model
- model = remove_unused(bdf_filename, remove_nids=True, remove_cids=True,
remove_pids=True, remove_mids=True)
"""
from pyNastran.bdf.bdf import BDF, read_bdf
#from pyNastran.bdf.mesh_utils.bdf_renumber import bdf_renumber
def remove_unused(bdf... | [
"mesheb82@gmail.com"
] | mesheb82@gmail.com |
4236e0d6d96b40e5aafd2aa62ded0a3dd03084ea | 0dddc0508138396c740901be4a0f9eebefb8fded | /ax/storage/sqa_store/save.py | e0c902858ec5062e3292a3e03a407a0e851c1bb3 | [
"MIT"
] | permissive | facebook/Ax | 473beb143016f95f4ec381ed1bd95b32c1ca31f8 | 6443cee30cbf8cec290200a7420a3db08e4b5445 | refs/heads/main | 2023-09-01T09:29:13.684709 | 2023-08-31T21:49:30 | 2023-08-31T21:49:30 | 169,880,381 | 2,207 | 315 | MIT | 2023-09-14T21:26:51 | 2019-02-09T15:23:44 | Jupyter Notebook | UTF-8 | Python | false | false | 19,890 | py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
from logging import Logger
from typing import Any, Callable, Dict, List, Optional, Sequence, Union
from a... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e164c452409ec98b640f0278c6a8b1e41ad50837 | ef3a7391b0a5c5d8e276355e97cbe4de621d500c | /venv/Lib/site-packages/spacy/lang/en/tokenizer_exceptions.py | c45197771df93cf2b7c2d65795f64d91fe306336 | [
"Apache-2.0"
] | permissive | countBMB/BenjiRepo | 143f6da5d198ea6f06404b4559e1f4528b71b3eb | 79d882263baaf2a11654ca67d2e5593074d36dfa | refs/heads/master | 2022-12-11T07:37:04.807143 | 2019-12-25T11:26:29 | 2019-12-25T11:26:29 | 230,090,428 | 1 | 1 | Apache-2.0 | 2022-12-08T03:21:09 | 2019-12-25T11:05:59 | Python | UTF-8 | Python | false | false | 18,495 | py | # coding: utf8
from __future__ import unicode_literals
from ...symbols import ORTH, LEMMA, TAG, NORM, PRON_LEMMA
_exc = {}
_exclude = [
"Ill",
"ill",
"Its",
"its",
"Hell",
"hell",
"Shell",
"shell",
"Shed",
"shed",
"were",
"Were",
"Well",
"well",
"Whore",
... | [
"bengmen92@gmail.com"
] | bengmen92@gmail.com |
0ddbe61e94debc1edc2a81af4086a174761ad71a | 26a257186d90694e51119c388287edbfcbf5d0d3 | /manage.py | fbc5e79b8b5c7718b21f11ccfed541ffb9e2618b | [] | no_license | csxoa/16-2nd-market-ssua-backend | cfe79a29c68188b62b950e7a1da4cc10fee1b0c4 | 09888462ed16471649cace891ac27e52e0a5b8c0 | refs/heads/main | 2023-02-28T20:02:55.957448 | 2021-02-09T03:58:47 | 2021-02-09T03:58:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'market_ssua.settings')
try:
from django.core.management import execute_from_command_line
except ... | [
"sol35352000@gmail.com"
] | sol35352000@gmail.com |
b4901ff780580eb8733db95e8de4824e965fd50e | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /nox_mesh_4_loop_repro_debug_verbose/interreplay_20_l_5/replay_config.py | 81a227dc97ef5fe3361b91f64be4cda59ae66e9f | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import Replayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd='./nox_... | [
"cs@cs.berkeley.edu"
] | cs@cs.berkeley.edu |
eb26b4d645ca9ad3766a6fcd1e53b646322b4db4 | 282d0a84b45b12359b96bbf0b1d7ca9ee0cb5d19 | /Malware1/venv/Lib/site-packages/sklearn/base.py | 10620bcf6f59c053e9249cfa67230a2ee5e90210 | [] | no_license | sameerakhtar/CyberSecurity | 9cfe58df98495eac6e4e2708e34e70b7e4c055d3 | 594973df27b4e1a43f8faba0140ce7d6c6618f93 | refs/heads/master | 2022-12-11T11:53:40.875462 | 2020-09-07T23:13:22 | 2020-09-07T23:13:22 | 293,598,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:2b7638a252b70d507fafc022659ee844b25e7e5cf54b0595420920b4a8c42ce7
size 22906
| [
"46763165+sameerakhtar@users.noreply.github.com"
] | 46763165+sameerakhtar@users.noreply.github.com |
8bab9654a13dd0c4fa950b150ecde8c461622a4a | cd4bbecc3f713b0c25508d0c5674d9e103db5df4 | /toontown/estate/houseDesign.py | 2d46639382ae5909289726d39f4f1793cfaafe6c | [] | no_license | peppythegod/ToontownOnline | dce0351cfa1ad8c476e035aa3947fdf53de916a6 | 2e5a106f3027714d301f284721382cb956cd87a0 | refs/heads/master | 2020-04-20T05:05:22.934339 | 2020-01-02T18:05:28 | 2020-01-02T18:05:28 | 168,646,608 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 84,243 | py | from direct.directtools.DirectSelection import *
from direct.directtools.DirectUtil import ROUND_TO
from direct.directtools.DirectGeometry import LineNodePath
from direct.gui.DirectGui import *
from pandac.PandaModules import *
from direct.showbase.DirectObject import DirectObject
from toontown.toonbase import Toontown... | [
"47166977+peppythegod@users.noreply.github.com"
] | 47166977+peppythegod@users.noreply.github.com |
408a09caa0f100dcf5c20e1fdf23a5e47ce33265 | e940e2d5e0696b9f1385962100796c3d990c33d1 | /chapter 3/exercise_3.14.py | fa55234e74e6fed3a7a23a112f1e030b0ee30fb6 | [] | no_license | sfwarnock/python_programming | a84b6c3d18f55e59d50e5299cedd102c265dfc6b | aa45be8984cd80094f685d4fc4d0b9aca9e9eefb | refs/heads/master | 2021-04-12T03:16:49.267143 | 2018-08-06T12:24:00 | 2018-08-06T12:24:00 | 125,944,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 19
@author: Scott Warnock
"""
# Exercise 3.14
#
# Write a program that finds the average of a series of numbers entered by the user.
# First prompt the user for how many numbers are to be entered..
print("This program averages numbers entered by the user... | [
"noreply@github.com"
] | sfwarnock.noreply@github.com |
94f25a94f89bd31421515bc201727e6530947fab | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetCode_with_solution/417 Pacific Atlantic Water Flow.py | e749a8f4525325e00fb1e9c945f5d40b2aff4e87 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 4,163 | py | #!/usr/bin/python3
"""
Given an m x n matrix of non-negative integers representing the height of each
nit cell in a continent, the "Pacific ocean" touches the left and top edges of
the matrix and the "Atlantic ocean" touches the right and bottom edges.
Water can only flow in four directions (up, down, left, or right) ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
3fd0f6ad32c23a1851c4dde901c0d66727e175e1 | e776e45ae9f78765fb11e3e8cf5c87a0a1b9f0da | /OLD/tests/test-websockets.py | a3a2ab909c839346c259af6dd028fc9718d30345 | [
"MIT"
] | permissive | mvandepanne/seamless | 5100b9994b84c83d82815b572b2ee4e1f61931d6 | 1dc9108176cca2d7e2fe57eb1695aec6d39df456 | refs/heads/master | 2020-04-17T10:06:14.829539 | 2019-01-15T19:31:36 | 2019-01-15T19:31:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | import seamless
from seamless import context, cell, reactor, transformer
from seamless.lib.filelink import link
ctx = context()
ctx.server = reactor({"socket": {"pin": "output", "dtype": "int"}})
ctx.servercode = ctx.server.code_start.cell()
link(ctx.servercode, ".", "test-websockets_pycell.py")
ctx.server.code_update... | [
"sjdv1982@gmail.com"
] | sjdv1982@gmail.com |
5e91a4dab811e752ac55b1c8c0f67c5649ab163e | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/prompt_toolkit/output/color_depth.py | a6166bacafb2941014a2080438fc330df92d394d | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 1,387 | py | import os
from enum import Enum
from typing import Optional
__all__ = [
"ColorDepth",
]
class ColorDepth(str, Enum):
"""
Possible color depth values for the output.
"""
value: str
#: One color only.
DEPTH_1_BIT = "DEPTH_1_BIT"
#: ANSI Colors.
DEPTH_4_BIT = "DEPTH_4_BIT"
#:... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
91ffadc0956fd77e0b62bd670aa556229fd3ab4a | e33199ecbe80ef7205473bf1ad584bbffd1a24a5 | /test.py | a3fa8b56983b7216b2f94532745867fe0510f4da | [] | no_license | zhangjiulong/Seq2Seq_Chatbot_QA | cba49143df1a20910f687fa7c48b10a99a7127c3 | 0c3ea305615ee572d2b8a4bef654a3182709107a | refs/heads/master | 2021-01-11T01:31:13.841357 | 2016-10-10T15:57:40 | 2016-10-10T15:57:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,301 | py | #!/usr/bin/env python3
__author__ = 'qhduan@memect.co'
import sys
import math
import time
import random
import numpy as np
from sklearn.utils import shuffle
import tensorflow as tf
from tqdm import tqdm
import data_util
tf.device(data_util.test_device)
encoder_inputs = [tf.placeholder(tf.int32, [None], name='enco... | [
"mail@qhduan.com"
] | mail@qhduan.com |
ce8b2390d1ca1c2670dca353c0dfdebe4586f810 | 9ba439d691359a6296e182e0b8cea30b89f95530 | /modules/processing/parsers/malwareconfig/Ursnif.py | cb18b7eb4ad29f561d173ce2fb771cb482dcf475 | [] | no_license | naxonez/CAPE | ffed1b8c54199ac149dbe21df25f89db650d4369 | b6295b40de8b9020e4bb25b2c0b09a126736b5f5 | refs/heads/master | 2020-07-02T22:19:41.421961 | 2019-10-01T07:20:44 | 2019-10-01T07:20:44 | 201,684,949 | 1 | 0 | null | 2019-08-10T21:30:36 | 2019-08-10T21:30:36 | null | UTF-8 | Python | false | false | 3,988 | py | # Copyright (C) 2017 Kevin O'Reilly (kevin.oreilly@contextis.co.uk)
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | [
"kevoreilly@gmail.com"
] | kevoreilly@gmail.com |
d067a21fa8765b22a0f88cdba5e0a412f49c94ca | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_perilous.py | a1869b74937c931bf046a9fb6d81b59763772b4b | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py |
#calss header
class _PERILOUS():
def __init__(self,):
self.name = "PERILOUS"
self.definitions = [u'extremely dangerous: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[obj2] = {}
self.jsondata[... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
13db48c20ac0aeb1293560cbe2a6d3b6db7c0101 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/alertsmanagement/azure-mgmt-alertsmanagement/generated_samples/alerts_summary.py | 8794d5a0df8d764bf286909b59972416f2b2b42d | [
"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 | 1,547 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
25433c3b9058296a7d47ba555fd4cc166775905f | 0fe11fbe31be719a253c0b2d9e41e20fedc2c40f | /dapper/mods/Lorenz95/boc10.py | e051e268a9250ed1e2e4aa60b8ac50ba136e0b59 | [
"MIT"
] | permissive | lijunde/DAPPER | 148ff5cefb92d1bb01c78bd4a82a6f1ecdebdad2 | dc92a7339932af059967bd9cf0a473ae9b8d7bf9 | refs/heads/master | 2020-12-10T21:44:54.468785 | 2019-09-24T18:18:36 | 2019-09-24T18:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,162 | py | # From Fig. 1 of Bocquet 2010 "Beyond Gaussian Statistical Modeling
# in Geophysical Data Assimilation".
from dapper import *
from dapper.mods.Lorenz95 import core
t = Chronology(0.05,dkObs=1,T=4**3,BurnIn=20)
Nx = 10
Dyn = {
'M' : Nx,
'model': core.step,
'noise': 0
}
X0 = GaussRV(M=Nx, C=0.001)
... | [
"patrick.n.raanes@gmail.com"
] | patrick.n.raanes@gmail.com |
fa89d08d72199fe676941a86fa19de36749c1879 | 3b8013a29b6800f0f15569d74603346cef62e4e7 | /Reinforcement_learning_TUT/5.2_Prioritized_Replay_DQN/run_MountainCar.py | 127e28eff91a62bb7e6ee2a4f27218d1eb4197f4 | [] | no_license | pentium3/tutorials | 3978140a2038a988b6043cb4efcb5cab67e7ca89 | abf2ea80ba0e5c6800701908367aeb4b5ee2369b | refs/heads/master | 2021-01-22T22:28:32.828169 | 2017-03-20T03:05:18 | 2017-03-20T03:05:18 | 85,548,010 | 3 | 0 | null | 2017-03-20T07:38:15 | 2017-03-20T07:38:15 | null | UTF-8 | Python | false | false | 2,039 | py | """
The DQN improvement: Prioritized Experience Replay (based on https://arxiv.org/abs/1511.05952)
View more on 莫烦Python: https://morvanzhou.github.io/tutorials/
Using:
Tensorflow: 1.0
gym: 0.8.0
"""
import gym
from RL_brain import DQNPrioritizedReplay
import matplotlib.pyplot as plt
import tensorflow as tf
import ... | [
"morvanzhou@hotmail.com"
] | morvanzhou@hotmail.com |
af19ca4c8a24e5a881d2b25b64da4fe3e104f5be | d90283bff72b5a55dd4d0f90c7325355b00ce7b1 | /p1804/p12/tuple.py | 6cab125c1070a8dc3fdf2ce36d74f9586479b242 | [] | no_license | yuemeiss/p1804daima | f841f52e63081d53d50a199e4d148d4533605bb6 | 6ea08eb9971e42bf4ac535033a006d98ed98bf98 | refs/heads/master | 2020-03-15T23:29:59.691297 | 2018-08-06T02:42:49 | 2018-08-06T02:42:49 | 132,395,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | t = ("张三",22,"未婚","有钱","likedog","Ture",'sb')
print(t[3])
print(t[5])
print(t[6])
print(len(t))
print(t.index(22))
print(t.count("Ture"))
print(type(t))
print(t)
print("姓名: %s, \n年龄: %d, \n为什么: %s, \n爱好: %s, \n性别: %s, \n性格: %s, \n相貌: %s " % t )
for a in t:
print(a)
| [
"1083027306@qq.com"
] | 1083027306@qq.com |
dcba45dc6badfffc9ef1b173f06e2e3c525948fc | 0184a8149c063dd7a350dac476ef705304864040 | /rsbeams/rsphysics/decoherence.py | 0c205e51bddb76c15d195d8f4c9b9e1a77bbcb5d | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | radiasoft/rsbeams | 71a8bed396aced7da3f4adc3daebe1a694284c51 | 732b40b233609418b5204b4d865568bf89386005 | refs/heads/master | 2023-06-10T15:11:11.905713 | 2023-05-01T22:11:52 | 2023-05-01T22:11:52 | 56,353,370 | 4 | 24 | NOASSERTION | 2023-05-26T23:03:41 | 2016-04-15T22:28:48 | Python | UTF-8 | Python | false | false | 5,783 | py | import numpy as np
from pathos.multiprocessing import Pool, cpu_count
from scipy.integrate import quad
from scipy.special import fresnel
class CentroidPosition:
"""
Calculate position of an initially offset beam centroid vs turn.
Assumes a waterbag distribution and arbitrary order in tune dependence with ... | [
"chall@radiasoft.net"
] | chall@radiasoft.net |
f14a5f507d6c84a401f49bf011da731a8090d3e6 | 82aee3211216f55392d5a757eb57f02c859e9a28 | /Easy/680_validPalindrome_II.py | 69e73cef406dfb2488f769e23635c4306938a0dc | [] | no_license | Yucheng7713/CodingPracticeByYuch | 505d18095d4b9a35c1f3b23632a90a76d811b64a | 1461b10b8910fa90a311939c6df9082a8526f9b1 | refs/heads/master | 2022-05-01T11:51:00.612603 | 2022-04-18T09:46:55 | 2022-04-18T09:46:55 | 198,961,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | class Solution:
def validPalindrome(self, s):
l_index, r_index = 0, len(s) - 1
while l_index < r_index:
if s[l_index] != s[r_index]:
ld = s[:l_index] + s[l_index + 1:]
rd = s[:r_index] + s[r_index + 1:]
if (ld == ld[::-1]) or (rd == rd[::-1... | [
"yuchengh@usc.edu"
] | yuchengh@usc.edu |
d573c33b815eaa794a8c2ddd9347b9ff3acb8449 | 4491549f0b1bbf5397ae0b56192605a7abcb61b0 | /python/Session-Management-2/models/SQL.py | 9f80310ec3149956a81008768c2ebd2f1a619fae | [
"Apache-2.0"
] | permissive | iNoSec2/skf-labs | 81e9d400ccac1007632add23bd50a094de1f50d5 | 8af9edc83e313be1578c5dee0fd4ecdf7ac18a32 | refs/heads/master | 2023-08-17T00:20:12.274684 | 2023-08-04T13:13:10 | 2023-08-04T13:13:10 | 235,376,119 | 0 | 0 | Apache-2.0 | 2023-08-05T00:31:43 | 2020-01-21T15:33:01 | Python | UTF-8 | Python | false | false | 1,288 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# SKF Labs - Security Knowledge Framework (SKF)
# Copyright (C) 2022, OWASP Foundation, Inc.
#
# This software is provided under a slightly modified version
# of The GNU Affero General Public License. See the accompanying LICENSE
# file for more information.
#
# Description... | [
"glenntencate@gmail.com"
] | glenntencate@gmail.com |
861b5dc42fe75933ac0cd3d42acd0499ef6f55f1 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve-8.51.857815/carbon/common/script/entities/audioEmitter.py | 69d4790838f2e6414248d5702ab6b90aa4cedabd | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | #Embedded file name: carbon/common/script/entities\audioEmitter.py
"""
Contains a set of available audio components.
"""
INITIAL_EVENT_NAME = 'initialEventName'
INITIAL_SOUND_ID = 'initialSoundID'
EMITTER_GROUP_NAME = 'groupName'
class AudioEmitterComponent:
__guid__ = 'audio.AudioEmitterComponent'
def __init... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
f386041caffaa7e937c6f6caa066b710a265b17a | 66c3ff83c3e3e63bf8642742356f6c1817a30eca | /.vim/tmp/neocomplete/buffer_cache/=+home=+dante=+proyectos=+regis_comp=+regis_compr=+regis_compr=+regis_compr=+urls.py | 65df4785e69abfe3e627ed4a0ab3320b899b6f07 | [] | no_license | pacifi/vim | 0a708e8bc741b4510a8da37da0d0e1eabb05ec83 | 22e706704357b961acb584e74689c7080e86a800 | refs/heads/master | 2021-05-20T17:18:10.481921 | 2020-08-06T12:38:58 | 2020-08-06T12:38:58 | 30,074,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,944 | py | {'coding', 'utf', 'from', 'django', 'conf', 'urls', 'import', 'patterns', 'include', 'url', 'static', 'settings', 'views', 'generic', 'TemplateView', 'compras', 'ComprasHechasList', 'ProveedoresList', 'ProveedoresDetail', 'ProveedoresCreate', 'ProveedoresUpdate', 'ProveedoresDelete', 'ProductProveeCreate', 'ProductProv... | [
"pacifi.bnr@gmail.com"
] | pacifi.bnr@gmail.com |
e6fe06b32a6c28761c3ce92ab678de60ed034977 | d82e7c3cb7a8c4fe718fb041fcc9533ece6839f3 | /tf/applib/display.py | 72857c3aa8d5e8400cc83f30e96a3da43394a9e0 | [
"MIT"
] | permissive | OsvaldoJ/text-fabric | cb64a0475f229ca299862ce4697423f82948e9b8 | 63c4589ffd71d7ac11c549818ffeb54017a6216f | refs/heads/master | 2020-08-27T13:02:23.702835 | 2019-09-11T13:24:06 | 2019-09-11T13:24:06 | 217,378,170 | 0 | 1 | MIT | 2019-10-24T19:25:27 | 2019-10-24T19:25:27 | null | UTF-8 | Python | false | false | 17,377 | py | import os
import types
from ..parameters import URL_TFDOC, DOWNLOADS
from ..core.helpers import mdEsc, htmlEsc, flattenToSet
from .app import findAppConfig
from .helpers import configure, RESULT, dh
from .links import outLink
from .condense import condense, condenseSet
from .highlight import getTupleHighlights, getHlA... | [
"dirk.roorda@dans.knaw.nl"
] | dirk.roorda@dans.knaw.nl |
b275678714d301a028aa868acf30bec68fc76782 | 76de4fc4f00a04c8c9acc1e9e4a5fae12cf0c08a | /trunk/pyformex/examples/SpaceTrussRoof_abq.py | 0216d8a2ac79315d917755356de57ab4bf7795cf | [] | no_license | BackupTheBerlios/pyformex-svn | ec2361b1b9967918be65e892217a691a6f8b145d | f5404809095711334bbb938d9d119a69ad8fc260 | refs/heads/master | 2020-12-24T13:20:47.422165 | 2011-11-15T11:52:23 | 2011-11-15T11:52:23 | 40,749,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,340 | py | #!/usr/bin/env pyformex
# $Id$
##
## This file is part of pyFormex 0.8.5 Sun Nov 6 17:27:05 CET 2011
## pyFormex is a tool for generating, manipulating and transforming 3D
## geometrical models by sequences of mathematical operations.
## Home page: http://pyformex.org
## Project page: https://savannah.nongnu... | [
"bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35"
] | bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35 |
67370eb3a4b958731d7ec128f3d2da56dcf993f9 | 98bebd68f01daa7e328d06e8f6d98042b587995f | /D2/다리를지나는트럭/timecomplexity.py | 99512214389e7583dd4ebd2aa7fb5dd0ea316a05 | [] | no_license | Ysh096/programmers | f189108f2e0cd792697821e806558dea489254f9 | c391ee58df1554af91a7099817b208d6883adca8 | refs/heads/master | 2023-04-13T06:06:48.938489 | 2021-04-15T16:43:30 | 2021-04-15T16:43:30 | 332,446,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | import timeit
start_time = timeit.default_timer()
test_list = [1, 2, 3]
for _ in range(10000):
test_list = [0] + test_list
# test_list.insert(0, 0)
terminate_time = timeit.default_timer()
print('덧셈: ', terminate_time - start_time)
start_time = timeit.default_timer()
test_list = [1, 2, 3]
print('insert 전:... | [
"skk7541@gmail.com"
] | skk7541@gmail.com |
d6fc338427aacaabf688b490a8a6d5eaf9716e3a | a222e2999251ba7f0d62c428ba8cc170b6d0b3b7 | /AtC_Beg_Con_071-080/ABC075/A.py | db33151934d67c6c93187cf992931dde59650476 | [
"MIT"
] | permissive | yosho-18/AtCoder | 3e1f3070c5eb44f154c8104fbd5449f47446ce14 | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | refs/heads/master | 2020-06-02T10:21:29.458365 | 2020-05-29T12:40:48 | 2020-05-29T12:40:48 | 188,795,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | a,b,c = map(int, input().split())
if a == b:
print(c)
if c == b:
print(a)
if a == c:
print(b)
| [
"44283410+wato18@users.noreply.github.com"
] | 44283410+wato18@users.noreply.github.com |
65f8dcf11bee03d8da86bda4c16e8fef954c3273 | 52585c8d95cef15199c18ba1a76899d2c31329f0 | /05PythonCookbook/ch12Concurrency/13polling_multiple_thread_queques/pqueue.py | 91396071d9996401e4454a9b17767eed6909d23c | [] | no_license | greatabel/PythonRepository | c7a952257303a21083ed7d535274c339362bd126 | 836fcdd3f5c1b150122302685104fe51b5ebe1a3 | refs/heads/master | 2023-08-30T15:56:05.376391 | 2023-08-26T03:34:14 | 2023-08-26T03:34:14 | 29,392,599 | 33 | 6 | null | 2023-02-14T13:33:21 | 2015-01-17T13:54:58 | Python | UTF-8 | Python | false | false | 1,615 | py | import queue
import socket
import os
class PollableQueue(queue.Queue):
def __init__(self):
super().__init__()
# Create a pair of connected sockets
if os.name == 'posix':
self._putsocket, self._getsocket = socket.socketpair()
else:
# Compatibility on n... | [
"greatabel1@126.com"
] | greatabel1@126.com |
7e6c9b781e4c749a5a0b3bde3a2fb1bfe9d9f012 | 38e0a6aa9df9c968135b348845abfa489cda4031 | /binhaishiPaper/binhaishiPaper/spiders/newsPaperSpider.py | 662ae17c09cb15907a2cbf17c062004b6274cae7 | [] | no_license | AReallyMan/everySpiders | bb923de508bd986bcf158728d17638c4ce608db8 | 19419ae5097a522ed0c88e9ab63aa62419c25b44 | refs/heads/master | 2022-09-20T02:18:06.205480 | 2020-06-03T06:33:47 | 2020-06-03T06:33:47 | 263,788,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | # -*- coding: utf-8 -*-
# @Time : 2020-06-04
# @Author : ZhangYangyang
# @Software: PyCharm
import scrapy
import datetime
import re
import time
from scrapy.spiders import Rule, CrawlSpider
from scrapy.linkextractors import LinkExtractor
from ..items import BinhaishipaperItem
from ..settings import ELASTICS... | [
"969114624@qq.com"
] | 969114624@qq.com |
8359cc1c8ef4d13f10400870ed08a0427261a636 | 85043cfb5a7cc86e9f6e22c45925df778062efd5 | /rapid7vmconsole/models/disk_total.py | 3ec375fe69e6ae816c17f596f1d1231ad7c29cbc | [
"MIT"
] | permissive | xtenex/vm-console-client-python | 1b33abb6d8c0d368da16dd182f44a3ad20f090ee | 3e04e5aa4a15274ec0bcd8be38d306e42b0c9a59 | refs/heads/master | 2021-04-27T03:01:56.645918 | 2018-02-14T22:46:34 | 2018-02-14T22:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,793 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"zachary_youtz@rapid7.com"
] | zachary_youtz@rapid7.com |
a5f00db22afe958b88f3b951e3100919543dcdf9 | 77c641fd0708b279dddbe01f6af32a8531b93185 | /marketsim/gen/_intrinsic/orderbook/of_trader.py | 3818a80cc72db0e909b4478f6c75154923f96bcb | [] | no_license | abensrhir/marketsimulator | aea286afd2bb2e0c8a547bfa879601aef21c0cd5 | f9f55c72fb34cdbec42b96737ca20839f26c6299 | refs/heads/master | 2020-12-13T20:55:55.795344 | 2014-02-24T22:52:24 | 2014-02-24T22:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | from marketsim import types
from marketsim.gen._out.trader._singleproxy import SingleProxy
from marketsim import getLabel
class Base(object):
_properties = {}
def __getattr__(self, name):
if name[0:2] != '__' and self._impl:
return getattr(self._impl, name)
else:
raise... | [
"anton.kolotaev@gmail.com"
] | anton.kolotaev@gmail.com |
53c3f734336bf253cd01c5cc8db9119e31f584a6 | a1aba83b90285def84cc425c0b089dd632a01a51 | /py千峰/day1函数/func10.py | ac2e75f8e338836fa45056bb68612f7bafc0267b | [] | no_license | 15929134544/wangwang | 8ada14acb505576f07f01e37c936500ee95573a0 | 47f9abbf46f8d3cbc0698cb64c043735b06940d4 | refs/heads/master | 2023-05-11T19:59:54.462454 | 2021-05-25T15:19:43 | 2021-05-25T15:19:43 | 328,119,916 | 1 | 1 | null | 2021-05-11T16:13:18 | 2021-01-09T09:33:29 | JavaScript | UTF-8 | Python | false | false | 873 | py | # global 变量的范围
# 全局变量 局部变量
# 声明在函数外部的是全局变量,所有函数都可以访问
name = '月月'
def func():
# 函数内部声明的变量,局部变量,仅限于在函数内部使用
s = 'abcd'
s += 'X'
print(s, name)
def func1():
global name # 不修改全局变量,只是获取或者打印。但是如果要修改全局变量。则需要
# 在函数内部声明:global 变量名
# 修改后,全局变量的值发生改变
# print(s, name)
name += '弹吉他的小美女'
... | [
"you@example.com"
] | you@example.com |
326693eabcfe1a9d41f11f7c08ff574a844a8568 | bdb1c323968cd9d5441a187a29ed7e25a2e4f07e | /slave_server/runner/test_scripts/bxtp_ivi_m/operation_lib/base_lib/makelog.py | b80127c92706da5548863284c0dc568cdaff53c0 | [] | no_license | liangzhaowang/automation_system | beee351dd9f09a51e2b81617ac5bee63023ea9b8 | f77ef433c2366253dc9d9fdb7c54911cb38ed3e8 | refs/heads/master | 2022-02-19T11:07:44.047000 | 2019-09-23T02:16:00 | 2019-09-23T02:16:00 | 209,732,359 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | #!/usr/bin/env python
# coding=utf-8
import os, sys
import logging.config
import logging
import time
class makelog():
def __init__(self, filename="", filepath=""):
self.filename = filename
self.filepath = filepath
self.makelogfile()
self.logger = logging.getLogger()
self.write()
def makelogfile(sel... | [
"zhaowangx.liang@intel.com"
] | zhaowangx.liang@intel.com |
45f051b6b85c7aa298756f2cbe0f5c6d051359c2 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_PYTHON/DATA_STRUC_PYTHON_NOTES/python-prac/mini-scripts/Python_RegEx_metacharacters__exactly_the_specifies_number_of_occurrences.txt.py | 75b978dc9b6e5add1c1041161a9bbb0f41ebfb6f | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 281 | py | import re
txt = "The rain in Spain falls mainly in the plain!"
# Check if the string contains "a" followed by exactly two "l" characters:
x = re.findall("al{2}", txt)
print(x)
if x:
print("Yes, there is at least one match!")
else:
print("No match")
# Author: Bryan G
| [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
fba115b2085192f099c00764f8bfc49dcc98f713 | 279caab77d0731196b82548a35e6e61334a2141e | /n_gram_segmentation/segmenter.py | e49613368a50556db728e07bc4ae5cd18bf4e66a | [] | no_license | VitalyRomanov/segmented-embeddings | 52d6382feb36c65e12c513535a7bc5f0793d85ce | 9a8d4b897214e73b0ce18621b9ac121085c88e3a | refs/heads/master | 2022-10-19T22:38:08.148913 | 2022-10-03T14:31:53 | 2022-10-03T14:31:53 | 172,964,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | import sys
import pickle
file_path = sys.argv[1]
lang = sys.argv[2]
words = open(file_path, "r").read().strip().split("\n")
char_gram_size_min = 3
char_gram_size_max = 4
char_grams = set()
def segment_recursively(dest, win, word):
dest.append(word[:win])
if win < char_gram_size_max and len(word) > win:
... | [
"mortiv16@gmail.com"
] | mortiv16@gmail.com |
ed08a844307b2d776880dd97684ac94e4920196a | da9c4a9a92d49d2fb2983a54e0f64c2a1ce8aa19 | /symphony/cli/pyinventory/graphql/mutation/edit_equipment_port.py | 43a16d01545cd8442f49d0bcedae9fa6a4d02f20 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | rohan-prasad/magma | 347c370347724488215a0783504788eac41d8ec7 | 2c1f36d2fd04eae90366cc8b314eaab656d7f8ad | refs/heads/master | 2022-10-14T14:08:14.067593 | 2020-06-11T23:52:03 | 2020-06-11T23:54:27 | 271,671,835 | 0 | 0 | NOASSERTION | 2020-06-12T00:20:23 | 2020-06-12T00:17:39 | null | UTF-8 | Python | false | false | 3,035 | py | #!/usr/bin/env python3
# @generated AUTOGENERATED file. Do not Change!
from dataclasses import dataclass
from datetime import datetime
from gql.gql.datetime_utils import DATETIME_FIELD
from gql.gql.graphql_client import GraphqlClient
from gql.gql.client import OperationException
from gql.gql.reporter import FailedOper... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
578eae42b892dd158465af5f918e947bc035c9b9 | c4240f5084a4d564e3e49a722458c91c5eef0d35 | /for_3b1b_videos/pi_creature.py | ea688c4677b13b382c8103ac0f32c93997169b13 | [
"MIT"
] | permissive | HdXu/manim | 8619089153e72aa32a6fd0995bde406cc22bc42e | 7c272c6236926bc4e521fa37189d8d1d11a1b59c | refs/heads/master | 2020-03-08T23:33:36.842315 | 2018-04-06T20:09:53 | 2018-04-06T20:09:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,222 | py | import numpy as np
from constants import *
from mobject.mobject import Mobject
from mobject.svg.svg_mobject import SVGMobject
from mobject.svg.tex_mobject import TextMobject
from mobject.types.vectorized_mobject import VGroup
from mobject.types.vectorized_mobject import VMobject
from mobject.svg.drawings import Thou... | [
"grant@3blue1brown.com"
] | grant@3blue1brown.com |
ed3b3e49d2373541f1c4a08baaea4b9b8235163d | b03497e9c38e27aac47792c30ad0e2945ed2fca9 | /mqtt.py | ca15170b9e14dc176b9a957e70000f7c57d3ba22 | [] | no_license | ThomasMoellerR/11_02_rpi_cube | c92522e0d2dd910a383c83dd49d55ddb06b0c1b4 | 54c2a8ea6e24a7fa358773a72dade8c1354d1b37 | refs/heads/master | 2020-04-17T11:41:15.158843 | 2019-11-02T13:26:15 | 2019-11-02T13:26:15 | 166,550,814 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | import paho.mqtt.client as pmc
import time
import queue
class c_mqtt:
def __init__(self, hostname = "192.168.178.52", port = "1880", sub_list = []):
self.hostname = hostname
self.port = port
self.try_to_connect = True
self.sub_list = sub_list
self.connected = False
... | [
"test"
] | test |
53fa7be54b523395a65b6f0b0053527f50bfa22f | 4015291afebfd346da3fee4b1d5a775882b5b461 | /packages/service-library/src/servicelib/rest_constants.py | e03667f15f28a500dff9aaa58b93cb6ee3f2a129 | [
"MIT"
] | permissive | pcrespov/osparc-simcore | 3a8a6b5252038542f515c7e90d983ac6f1fb4de7 | eb5e00bc2cf4acfe81f5dc422a5e50a4646c9596 | refs/heads/master | 2023-08-06T04:33:38.594066 | 2023-07-12T09:47:00 | 2023-07-12T09:47:00 | 130,357,545 | 0 | 1 | MIT | 2023-04-18T08:04:27 | 2018-04-20T12:10:41 | Python | UTF-8 | Python | false | false | 212 | py | # SEE https://pydantic-docs.helpmanual.io/usage/exporting_models/#modeldict
RESPONSE_MODEL_POLICY = {
"by_alias": True,
"exclude_unset": True,
"exclude_defaults": False,
"exclude_none": False,
}
| [
"noreply@github.com"
] | pcrespov.noreply@github.com |
16c41ea1c7c2797237e891f1ac38e86347e93b15 | d59bf974dd42d74dae62f58c0272ceb246d935c9 | /7.2.py | 9ef0a1a85e8beb93d1c39e39aa74b67020b39afb | [] | no_license | Serega1000rr/Ser | 423d2de1ba1fcc1f3f684363b90f05d018fb1306 | e349cb8b5c7aea333a78e448e7edfaa6c13edd61 | refs/heads/main | 2023-05-14T02:39:47.855859 | 2021-06-07T10:46:56 | 2021-06-07T10:46:56 | 374,630,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | things=['mozarella','cinderella','salmonella']
print(things[0].capitalize())
things[1]=things[1].upper()
print(things)
del things[2]
print(things) | [
"unknown@example.com"
] | unknown@example.com |
2ee91074d8f40b5b85c430e2d87d4936587af0df | 177d7066f6a0326ed937a56174d7e2241653929a | /Array&String/lc4.py | 4921ef92374c02b329b3c45acd8dc4842c62be5f | [] | no_license | jasonusaco/Leetcode-Practice | 276bcdb62b28806b3d297338882f4b1eef56cc13 | 91dc73202eb9952a6064013ef4ed20dfa4137c01 | refs/heads/master | 2020-07-06T08:29:09.419062 | 2019-10-10T01:43:03 | 2019-10-10T01:43:03 | 202,955,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | class Solution(object):
def findMedianSortedArrays(self, nums1, nums2):
| [
"yangyx@raysdata.com"
] | yangyx@raysdata.com |
09b95d91f2931902d3ccab96b894edd1818d2827 | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/common/gun_rotation_shared.py | 04cdb63b1822d5294990244854eebc8db0ae3d35 | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 4,744 | py | # 2017.02.03 21:54:59 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/gun_rotation_shared.py
import BigWorld
import Math
from math import pi
from constants import IS_CLIENT, IS_CELLAPP
from debug_utils import *
if IS_CELLAPP:
from server_constants import MAX_VEHICLE_RADIUS
def calcPitchLimitsFromDe... | [
"info@webium.sk"
] | info@webium.sk |
4913ad4bd0547ee7fe66485d15f1970ac3f1ce06 | ea90a06e4f953f51aeb97b6ab93e89f8ea9ffce0 | /backend/manage.py | c65cac1ad0c9ad3290ee24f664fed922bd10e718 | [] | no_license | crowdbotics-apps/roots-africa-28471 | 787b179413afa60ada1553462b1ef90f0c402183 | 7d1271a5b2496d98cfea919441824448e0790983 | refs/heads/master | 2023-06-15T19:11:02.174439 | 2021-07-05T23:44:09 | 2021-07-05T23:44:09 | 383,278,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "roots_africa_28471.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
r... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
24f1ef6fd36b61bb20469a5bfc7613033a19d292 | c411c5513ec5d58eb0e0edab0b6a697974d638fb | /model/DeepLabV3.py | 0e3406abccfff10e00297a28aed6ff7b0ce8b37f | [] | no_license | blue88blue/Segmentation | ab7f9dec4ab1ab4cdb4b8ca5af0cb9e1a560e20f | 69c4db1897a550a08a63811ffbb817754c20fbf2 | refs/heads/master | 2023-03-01T06:58:49.405779 | 2021-01-27T02:07:56 | 2021-01-27T02:07:56 | 296,049,616 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,784 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from model.segbase import SegBaseModel
from model.model_utils import init_weights, _FCNHead
class DeepLabV3(SegBaseModel):
r"""DeepLabV3
Parameters
----------
nclass : int
Number of categories for the training dataset.
ba... | [
"805207107@qq.com"
] | 805207107@qq.com |
f2190533c3b9802af9fa0c749b96108bf2036c1a | 74a1b51082e18a152626eb8044ab5d598283dacb | /easy/leetCode1646.py | 63c66927a02405ce8571af38833036cebcea6577 | [] | no_license | git874997967/LeetCode_Python | 6eb7d869d3737e946a8c6f0c51899a80bf03d650 | 1248cd19ab0d9d8aba503c487e163808c1d107cb | refs/heads/master | 2023-08-22T13:24:15.612040 | 2021-09-20T05:53:07 | 2021-09-20T05:53:07 | 340,973,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | #1646. Get Maximum in Generated Array
def getMaximumGenerated(n):
arr = []
arr.append(0)
arr.append(1)
for i in range(2, n+ 1):
print(i)
if i % 2 == 0:
arr.append(i // 2)
else:
arr.append(arr[(i+1)//2] + arr[(i -1)//2])
return max(arr) if n >= ... | [
"g8749979677@gmail.com"
] | g8749979677@gmail.com |
e7748d6bb1278b3c1a57344f2797748c13590dfa | 0d399688fdd3568b2bbf209e573ccdbb4f9fb276 | /trainer.py | d109c50b22a55276bd446403553aafed4ac8ccdb | [] | no_license | woaksths/Weak-Supervision-Based-Self-Training | 08ff838b090430e071d228b0912ac847b6457fa9 | 1d8162a5c941a36d891effed62e27869b660dc49 | refs/heads/master | 2023-04-12T15:17:11.371147 | 2021-05-09T17:19:54 | 2021-05-09T17:19:54 | 348,579,632 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,240 | py | import os
import torch
from evaluator import Evaluator
from torch.utils.data import DataLoader
from util.early_stopping import EarlyStopping
from util.dataset import Dataset
from util.lexicon_util import stop_words
from transformers import BertTokenizer, BertForSequenceClassification
from weak_supervision import guide... | [
"woaksths@gmail.com"
] | woaksths@gmail.com |
403d845645672867f12a3e55739cd6c86e6594d3 | b31c0f0d1e8a3bf575e6b86591ec1071cd9a8a3d | /mlonmcu/platform/microtvm/microtvm_zephyr_target.py | c70668791002be5ca39259d7331daa22b90d3ca3 | [
"Apache-2.0"
] | permissive | tum-ei-eda/mlonmcu | e75238cd7134771217153c740301a8327a7b93b1 | f1b934d5bd42b5471d21bcf257bf88c055698918 | refs/heads/main | 2023-08-07T15:12:13.466944 | 2023-07-15T13:26:21 | 2023-07-15T13:26:21 | 448,808,394 | 22 | 4 | Apache-2.0 | 2023-06-09T23:00:19 | 2022-01-17T08:20:05 | Python | UTF-8 | Python | false | false | 2,969 | py | #
# Copyright (c) 2022 TUM Department of Electrical and Computer Engineering.
#
# This file is part of MLonMCU.
# See https://github.com/tum-ei-eda/mlonmcu.git for further info.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You m... | [
"philipp.van-kempen@tum.de"
] | philipp.van-kempen@tum.de |
0a363bd967dc4a9e87872bd8e62484085cbd6476 | cc2df07a053b0ee13b05fe53ea9463033dd70c36 | /app/models.py | cad45bdeca5f36778a00f25f80049c6608156b71 | [] | no_license | sinjorjob/django-progress-bar | 5d0263d0cacc867fcc4ac6e5d07b37833ab7c849 | d948663231859b3485b7a35608f1c97246f952b7 | refs/heads/master | 2023-07-01T19:19:30.712511 | 2021-08-07T00:19:28 | 2021-08-07T00:19:28 | 393,536,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from django.db import models
class FileUpload(models.Model):
title = models.CharField(verbose_name="画像のタイトル", max_length=100)
image = models.ImageField(verbose_name="画像",upload_to="images/upload_files/")
def __str__(self):
return self.title | [
"sinforjob@gmail.com"
] | sinforjob@gmail.com |
edaccd77699ca8d4dccc010070da555c9528b148 | c05ab2b704fd779f0ea76f4bd69ee58b68ab4bb7 | /resale_market_place/accounts/migrations/0001_initial.py | c619d03fb096b2a9f94af9a8cb8d9b58a3d08cbd | [] | no_license | cmrajib/django_restaurant | 8aaaa73937fe76768c88149e58417b21bacacba7 | e09a6d6855eb79d30ae5adfa2720e9c86960ecd0 | refs/heads/main | 2023-02-28T18:30:47.415293 | 2021-01-12T20:03:35 | 2021-01-12T20:03:35 | 329,099,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,931 | py | # Generated by Django 3.1.4 on 2021-01-08 08:31
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations ... | [
"cmrajib@gmail.com"
] | cmrajib@gmail.com |
a96def7f2dc97e51d0ec0b74e35ba3f491feb1d4 | 312d8dbbf980bf164f210e7935b17dc08d64ff87 | /Model/repeat3_attribute_prediction_exist_PTS_utilize_all/Baseline/main.py | f40523340de517fcd318799d311d421cece624ef | [] | no_license | hsack6/OWGP_NBA | 27dafbd6e59c17ce4a66e92132ee56782e2126bf | 56656efb5884cd9f806e476a92c5e6485c71adeb | refs/heads/master | 2023-02-25T09:52:05.165494 | 2021-02-03T12:44:04 | 2021-02-03T12:44:04 | 288,363,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,381 | py | import argparse
import random
import pandas as pd
from utils.inference import inference
from utils.data.dataset import BADataset
from utils.data.dataloader import BADataloader
import sys
import os
current_dir = os.path.dirname(os.path.abspath("__file__"))
sys.path.append( str(current_dir) + '/../../../' )
from settin... | [
"yamasaki.shohei@ist.osaka-u.ac.jp"
] | yamasaki.shohei@ist.osaka-u.ac.jp |
a501d1205297f9df8f05e56b27a9b3f0ea2f6122 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-redis/azure/mgmt/redis/models/redis_linked_server_with_properties.py | d4982b6a62d0bc2d014e157738b34cc984be1ebf | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 2,830 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
3f8dbbb445a2fdbe9505bb3a6007467a1dca973c | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/ConstrainsAnalysisPDP1P2_20210714171109.py | 252ccb2b4185bbc2c4376719387e8bd06591fab3 | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,499 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aerodynamics.Ae... | [
"libao@gatech.edu"
] | libao@gatech.edu |
3e70b5fbab2fd9affbed3b12e2d134f46d64fbcc | 33524b5c049f934ce27fbf046db95799ac003385 | /Дистанционная_подготовка/Программирование_на_python/6_Строки/zadache_I.py | 3d675f1a488dad1ae893370c2cef39a39693b5f2 | [] | no_license | mgbo/My_Exercise | 07b5f696d383b3b160262c5978ad645b46244b70 | 53fb175836717493e2c813ecb45c5d5e9d28dd23 | refs/heads/master | 2022-12-24T14:11:02.271443 | 2020-10-04T04:44:38 | 2020-10-04T04:44:38 | 291,413,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py |
n = input()
ans = n.replace('1', 'one')
print (ans) | [
"mgbo433@gmail.com"
] | mgbo433@gmail.com |
37be7de681f708069186af725c1ab6a772547fcf | 1985e545df5ddfee396e87af6501fe517661cc77 | /bin/make_slides_github_action | 0cb25a135267d1a417524d79005623c2d1f311f1 | [
"MIT"
] | permissive | blester125/dotfiles | 46e657966582ba0b4552317107c85a44426ce9fd | 03b6856552040246b4d60330d0af6f37b440024d | refs/heads/master | 2023-07-24T11:13:11.989638 | 2023-07-12T13:30:15 | 2023-07-12T14:50:18 | 127,983,262 | 1 | 0 | null | 2022-02-12T23:09:41 | 2018-04-04T00:10:30 | Emacs Lisp | UTF-8 | Python | false | false | 2,132 | #!/usr/bin/python3
import os
import argparse
import textwrap
def slides_action(title):
title = title.replace(" ", "-")
return textwrap.dedent(r"""
name: Slides
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container: blester125/beamer-image:latest
... | [
"blester125@gmail.com"
] | blester125@gmail.com | |
07224a9608ee55b656a3fe877c7771a8a6bd459d | 0eb0657ad8262952c2ec87e7605246d1bebb9cd0 | /storops/vnx/resource/mirror_view.py | 41275de1ffc7ba7358cda4a4dabb7be540b919d3 | [
"Apache-2.0"
] | permissive | cdailing/storops | b666d204bf5fc8a561c436a927e72de3f3d9d64f | d24c48b3cb58f02dce1f131e7448b5400904f8ee | refs/heads/master | 2021-01-19T10:02:01.132218 | 2017-03-29T08:01:55 | 2017-03-29T08:02:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,041 | py | # coding=utf-8
# Copyright (c) 2015 EMC Corporation.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | [
"cedric.zhuang@emc.com"
] | cedric.zhuang@emc.com |
b945dff1986dd6fd177224f743126fcb7d69fa73 | 826bffcd468f0979d05251e6578de13fff1029d4 | /tests/utils/_duplicate_console_output_check.py | 28e4ed0277ddd521f04db7319c8e9740b1c82837 | [
"MIT"
] | permissive | korepwx/madoka | 58b9b65cb1e3edf476d741ee1b5ffc67a9793a48 | 56675bd8220935c6a9c1571a886a84bed235fd3b | refs/heads/master | 2021-01-12T03:18:46.261909 | 2017-01-06T06:36:21 | 2017-01-06T06:36:21 | 78,190,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | import os
import subprocess
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')))
from madoka.utils import duplicate_console_output
with duplicate_console_output(sys.argv[1]):
print('from print')
sys.stdout.flush()
sys.stdout.write('from stdout.write\n')
sys... | [
"public@korepwx.com"
] | public@korepwx.com |
bdc7e6c501652abf318d816b800f9404c0ac8d58 | 30ac2f9831ebd33885a6f48d153356c2e3731c26 | /Python_Stack/django/django_orm/project_marcela/app_marcela/models.py | 287fbc16c76b573eca3b93d52409f5d482b42977 | [] | no_license | pharaoht/Coding-Dojo-Projects | 192cfd8c36b6dadb049e81d31bd780c7ab340d1e | 504f71acbac3c006cf866a08aea0566058f81ce2 | refs/heads/master | 2023-05-11T21:09:17.316257 | 2021-06-08T00:54:09 | 2021-06-08T00:54:09 | 334,003,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,796 | py | from django.db import models
import re
import bcrypt
# Create your models here.
class UserManager(models.Manager):
def register_validator(self, formInfo):
errors = {}
EMAIL_REGEX = re.compile(
r'[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
emailChecker = User.objects.filter(e... | [
"pharaohmanson@gmail.com"
] | pharaohmanson@gmail.com |
c5fc50bd9c9a74dc99617e3b0491bb8b90d339a0 | 03a2c1eb549a66cc0cff72857963eccb0a56031d | /hacker_rank/domains/algorithms/implementation/kaprekar-numbers_sunghyo.jung.py | fd4ff909df1f992a146f1752423d6d81c3c36433 | [] | no_license | nobe0716/problem_solving | c56e24564dbe3a8b7093fb37cd60c9e0b25f8e59 | cd43dc1eddb49d6b5965419e36db708c300dadf5 | refs/heads/master | 2023-01-21T14:05:54.170065 | 2023-01-15T16:36:30 | 2023-01-15T16:36:30 | 80,906,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | __author__ = 'sunghyo.jung'
p, q = int(raw_input()), int(raw_input())
def is_kaprekar(n):
if n == 1:
return True
d = len(str(n))
s = str(n * n)
d = len(s) - d
a = int(s[:d] if len(s[:d]) > 0 else '0')
b = int(s[d:] if len(s[d:]) > 0 else '0')
return n == a + b and b > 0
flag = Fals... | [
"sunghyo.jung@navercorp.com"
] | sunghyo.jung@navercorp.com |
5fb4190fbcf940f1f1faea22e2a81c53b7e0a41d | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/api/nn/test_hardshrink.py | e608bf97d4639e51495891a2b9089ff59b265844 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 1,951 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test_hardshrink
"""
from apibase import APIBase
from apibase import randtool
import paddle
import pytest
import numpy as np
class TestNNHardshrink(APIBase):
"""
test
"""
def hook(self):
"""
... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
0002086686eef8eef58f00ddfaa9a3c6b02f158c | 6a4d30fc4850a04f7370f30dbe1b6ffa9f616392 | /intake/migrations/0003_fillablepdf_name.py | a2eb63e24a5799a885567b47ac1da2dc90379735 | [
"MIT"
] | permissive | codeforamerica/intake | bb88d63ae914ce6eebeb957b26451dbb9cfaeb88 | 8755e64c13e2b6f9bef9bbee47011253f20e7e0d | refs/heads/master | 2021-11-26T09:51:10.084263 | 2021-11-15T19:37:23 | 2021-11-15T19:37:23 | 57,333,621 | 51 | 24 | MIT | 2021-09-29T00:07:26 | 2016-04-28T21:03:55 | Python | UTF-8 | Python | false | false | 499 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-05-09 00:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('intake', '0002_fillablepdf'),
]
operations = [
migrations.AddField(
... | [
"bgolder@codeforamerica.org"
] | bgolder@codeforamerica.org |
d97b68cb2186fd512abb20603927df0360996948 | 2d6a2539055e1efd67f4252d11adfaf7ccd2720b | /principal/models/users.py | aa5c85bbaa81af1f8ba7fa27e4c174724c1fb67d | [] | no_license | r202-coe-psu/principal | 96997818073e6dd74df3590caef90ffec16709cc | 1781eacb880ecdf6dbe35cd1433530708eb29875 | refs/heads/master | 2021-09-16T13:56:28.940394 | 2018-06-21T13:52:53 | 2018-06-21T13:52:53 | 111,189,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | import mongoengine as me
import datetime
from passlib.hash import bcrypt
from flask_login import UserMixin
class DataSource(me.EmbeddedDocument):
provider = me.StringField(required=True)
data = me.DictField()
created_date = me.DateTimeField(required=True,
default=datet... | [
"boatkrap@gmail.com"
] | boatkrap@gmail.com |
471c75482c71e69c35c6564ab841c25fb6e2fcd5 | c3df3ded1da5b86c06643955edf6d75863018c55 | /Block Schematic Swapper/BlockSchematicSwapper_v2.py | 0027207ccc5390839c1b29d8d37cef0376b2e642 | [] | no_license | abrightmoore/ScriptsForMCEdit | 064d0e3ec7b686df78317f0d5792f74728250418 | abb6ac80eb6e3c1778f3910e4d8b07bdb8130edb | refs/heads/master | 2022-11-29T16:00:53.676704 | 2020-08-13T05:59:14 | 2020-08-13T05:59:14 | 287,128,480 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,954 | py | # This filter provides a way to find a block and replace that block with a schematic.
# Requested by james22402 on the forums: http://www.minecraftforum.net/topic/213853-mcedit-filter-scripts/page__st__300#entry22658577
# abrightmoore@yahoo.com.au
# http://brightmoore.net
#
import time # for timing
from math i... | [
"noreply@github.com"
] | abrightmoore.noreply@github.com |
01112d45a464ff83d5d7b67ff843feaee71e4958 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/5c70ccf26bba78eb4d1b/snippet.py | 599476d4f4e0a616826b54de9f63877e1de77cae | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 159 | py | import sys
def exec_(code, globals, locals):
if sys.version_info >= (3, 0):
exec(code, globals, locals)
else:
exec("exec code in globals, locals") | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
790e27357a9eeb93997620d266585d71e33aed53 | d0d1e07c984651f96bd9386d546c85c0341e46b2 | /timedata/control/action.py | 0af1dc5757f38f1299f42cfed2bc37a071cdf313 | [
"MIT"
] | permissive | timedata-org/timedata | 61cde905b1fe9eb60ac83ecbf5a5a2114793c45d | 3faac7450678aaccd4a283d0d41ca3e7f113f51b | refs/heads/master | 2020-04-11T12:03:57.962646 | 2019-06-09T10:05:16 | 2019-06-09T10:05:52 | 51,217,217 | 5 | 3 | null | 2016-09-18T16:20:43 | 2016-02-06T19:13:43 | C++ | UTF-8 | Python | false | false | 1,802 | py | from .ops import Ops
from .editor import Editor
from .receiver import Receiver
class Action(Receiver):
"""
An Action takes an incoming message, applies Ops to it, and then
uses it to set a value on a Editor.
"""
def __init__(self, address, ops=()):
self.address = Editor(address)
s... | [
"tom@swirly.com"
] | tom@swirly.com |
f54ba2b9e658843fa70413a13b059f89900ab3dd | 0fe0ffe29ca6f76c6f15c85c8d82b09beaada246 | /third_party/catapult/tracing/tracing_build/strip_memory_infra_trace.py | e4c0cabb5366abaa54d428d65fbac289f6414a55 | [
"BSD-3-Clause"
] | permissive | hanpfei/chromium-net | 4dc8fd48cf3b05d89b11dc121f9c3abdd3ba962e | 9df8ce98c2a14fb60c2f581853011e32eb4bed0f | refs/heads/master | 2023-07-08T15:28:01.033104 | 2023-06-14T13:02:39 | 2023-06-14T13:02:39 | 65,541,033 | 297 | 73 | null | 2022-11-02T23:33:48 | 2016-08-12T09:25:34 | C++ | UTF-8 | Python | false | false | 3,059 | py | # Copyright 2016 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.
"""Filters a big trace keeping only the last memory-infra dumps."""
import collections
import gzip
import json
def FormatBytes(value):
units = ['B', 'kB... | [
"hanpfei@gmail.com"
] | hanpfei@gmail.com |
46cdc653fc60973ef289314fc703e4b92617f736 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/I_to_M_Gk3_no_pad/pyramid_tight_crop_size256_pad60/pyr_3s/bce_s001_tv_s0p1_L7/step10_a.py | 233c9845f52842f89df06df38f3c389a591562fa | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,295 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
4d8406d067af9e8bc7b63302376f873e80d00c09 | 2b9289c6348a58a839501f3088030061046e2b6c | /local_dm_control_suite/hopper.py | fe253ac364d772509e4d399753d88138d689dcda | [
"MIT"
] | permissive | rohitkuk/mtenv | 2a612e03cfcb8f373ae2a7e7fb21e7fe108bbe1f | 4a6d9d6fdfb321f1b51f890ef36b5161359e972d | refs/heads/main | 2023-04-21T09:26:57.666390 | 2021-05-30T00:29:02 | 2021-05-30T00:29:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,194 | py | # Copyright 2017 The dm_control Authors.
#
# 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 i... | [
"sodhani@fb.com"
] | sodhani@fb.com |
19478359aa8460360b3dff1eb95b58f9100ec364 | 7e6f17a6015ad3d20052562c142fa29a6e88e927 | /Dictionary/names-f.py | 00509e3fcd7ec90a87021fb04c4ad70ecd2a416f | [
"BSD-3-Clause"
] | permissive | voussoir/else | 9a6ce00c374cf254c7be5ebb741773ae735899b7 | 296cf5550aab13ceca5177f3357fbcebbe4a041f | refs/heads/master | 2023-07-09T15:08:51.649293 | 2023-07-04T18:37:50 | 2023-07-04T18:37:50 | 25,059,251 | 14 | 4 | null | null | null | null | UTF-8 | Python | false | false | 49,997 | py | words=['Aaren',
'Aarika',
'Abagael',
'Abagail',
'Abbe',
'Abbey',
'Abbi',
'Abbie',
'Abby',
'Abbye',
'Abigael',
'Abigail',
'Abigale',
'Abra',
'Ada',
'Adah',
'Adaline',
'Adan',
'Adara',
'Adda',
'Addi',
'Addia',
'Addie',
'Addy',
'Adel',
'Adela',
'Adelaida',
'Adelaide',
'Adele',
'Adelheid',
'Adelice',
'Adelina',
'Adelind',
... | [
"edalool@yahoo.com"
] | edalool@yahoo.com |
20a1b173592c601afd39cfed31ef20cabac2e687 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_03_22/aio/operations/_certificates_operations.py | cb3ee9059642cc0a1b57affe8c5fa30dbe7387b1 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 23,419 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
6a175ea3d24d0ba13c9ba9188e4c07e166cac602 | a777170c979214015df511999f5f08fc2e0533d8 | /claf/factory/tokens.py | 0f6f9d5845d72d7970d5be980590319398151d30 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | srlee-ai/claf | 210b2d51918cf210683e7489ccb8347cb8b1f146 | 89b3e5c5ec0486886876ea3bac381508c6a6bf58 | refs/heads/master | 2021-02-13T04:38:36.198288 | 2020-03-03T15:01:01 | 2020-03-03T15:01:01 | 244,661,892 | 0 | 0 | MIT | 2020-03-03T14:45:52 | 2020-03-03T14:45:52 | null | UTF-8 | Python | false | false | 3,202 | py |
from overrides import overrides
from claf.config.registry import Registry
from claf.config.utils import convert_config2dict
from claf.tokens import tokenizer
from .base import Factory
def make_tokenizer(tokenizer_cls, tokenizer_config, parent_tokenizers={}):
if tokenizer_config is None or "name" not in tokeniz... | [
"humanbrain.djlee@gmail.com"
] | humanbrain.djlee@gmail.com |
ccb3efc9358bc44e6f4d99ee6cd99ba7342e7f28 | 4a48593a04284ef997f377abee8db61d6332c322 | /python/dbm/python2/test_dbm.py | 9104e09525b70761eee62c3643b98bb9ef3753c2 | [
"MIT"
] | permissive | jeremiedecock/snippets | 8feaed5a8d873d67932ef798e16cb6d2c47609f0 | b90a444041c42d176d096fed14852d20d19adaa7 | refs/heads/master | 2023-08-31T04:28:09.302968 | 2023-08-21T07:22:38 | 2023-08-21T07:22:38 | 36,926,494 | 26 | 9 | MIT | 2023-06-06T02:17:44 | 2015-06-05T10:19:09 | Python | UTF-8 | Python | false | false | 1,614 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2012 Jérémie DECOCK (http://www.jdhp.org)
# 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 withou... | [
"jd.jdhp@gmail.com"
] | jd.jdhp@gmail.com |
76f40dbe916e27ef75c91cef03d606f26fd73a67 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/CJ/16_0_2_aMAN_plus.py | e499fe2553e862196dbf07b73f6585542cbcf6da | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,187 | py | t = int(input())
arr = []
s = ""
times = 0
def rev(x): # index of last from 0
global arr
global times
times = times +1
half = (x+1)//2
for i in range(half):
temp = 1 - arr[i]
arr[i] = 1 - arr[x-i]
arr[x-i] = temp
if((x+1)%2 != 0):
arr[half] = 1 - arr... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
6d45841a1bc911599365d6efe618b8bd10ce654d | fd85e5320da3e0dae5ffc270c54caa8f85d20af7 | /user_analytics/views.py | c1164b992a4c427f2472395f8cdc5ad598a66611 | [
"Apache-2.0"
] | permissive | madre/analytics_nvd3 | 9a657937c91c9acd4b60e4ff33daecdf75a78c49 | 052f775c12f04e0e3a9fd321ee05de1fbceec09a | refs/heads/master | 2021-01-10T18:26:29.051575 | 2015-04-13T10:26:30 | 2015-04-13T10:26:30 | 33,605,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | # -*- coding: utf-8 -*-
# !/usr/local/bin/python
__version__ = "1.0"
__license__ = "Copyright (c) 2014-2010, levp-inc, All rights reserved."
__author__ = "madeling <madeling@letvpicture.com>"
from django.views.generic import TemplateView
from utils.redis_cache import REDIS_INS
class UserBasicTemplate(TemplateView)... | [
"lingnck@gmail.com"
] | lingnck@gmail.com |
56d1a355702247f5513deef778923b1b68ad26fb | 397e125e94f4f139f2bf5055824d81f24b8b1757 | /ABC/145/D.py | e13c534bf3fde50c178423dff2b3ee1085432ceb | [] | no_license | tails1434/Atcoder | ecbab6ee238e3f225551297db961b1b502841fa4 | e7c7fed36be46bbaaf020a70997842240ba98d62 | refs/heads/master | 2021-07-07T00:31:49.235625 | 2020-09-30T01:42:01 | 2020-09-30T01:42:01 | 189,009,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | def cmb(n, r, MOD, g1, g2):
if ( r<0 or r>n ):
return 0
r = min(r, n-r)
return g1[n] * g2[r] * g2[n-r] % MOD
def main():
X, Y = map(int, input().split())
MOD = 10 ** 9 + 7
if (X + Y) % 3 != 0:
print(0)
exit()
m = (2 * X - Y) // 3
n = (2 * Y - X) // 3
N... | [
"sososo1333@gmail.com"
] | sososo1333@gmail.com |
0ac3ce67a375b998817489ff3c11903d0feb0220 | 804ce3c2897a8720a27e0d86ac3b868ebd41cd20 | /archive/admin.py | e4f227d12c67b1dd80f1b36e7d55cdbcb8853546 | [] | no_license | hoboland21/mango | 383359aa85b685bfe77c6336974600038454cf80 | be8bf3398612a0c3dbb4498eb5eb18407c574ce3 | refs/heads/master | 2023-07-13T06:25:39.508434 | 2021-08-25T03:25:37 | 2021-08-25T03:25:37 | 399,520,705 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | from django.contrib import admin
from rsvn.models import *
# Register your models here.
#---------------------------------------------------------
class RateHeadingAdmin(admin.ModelAdmin) :
list_display = ('title','descr',)
ordering = ('title',)
#---------------------------------------------------------
class RateA... | [
"jc@saipantech.com"
] | jc@saipantech.com |
48b265ee6ff2631ca78f8a2252c5ec978f7961fd | 4be56098894a95da5964622fc4102b69e4530ab6 | /题库/100305.二叉搜索树与双向链表.py | 9e2ff50e4126f7779f567dc905bf18390c74e9d1 | [] | no_license | ACENDER/LeetCode | 7c7c7ecc8d0cc52215272f47ec34638637fae7ac | 3383b09ab1246651b1d7b56ab426a456f56a4ece | refs/heads/master | 2023-03-13T19:19:07.084141 | 2021-03-15T09:29:21 | 2021-03-15T09:29:21 | 299,332,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : 100305.二叉搜索树与双向链表.py
| [
"1641429327@qq.com"
] | 1641429327@qq.com |
01712697928ec9ebd687a93b160d3d87fd2b3bec | c3082eb2adc43b311dd3c9ff16fd3ed9df85f266 | /python/examples/pandas/genome_calculation.py | 74384393563d0a41da51f305348efca0a30d59db | [] | no_license | szabgab/slides | 78818c7138331b3ba9e221c81da3678a46efe9b3 | 63bba06678554db737602f2fbcd6510c36037e8a | refs/heads/main | 2023-08-31T07:13:51.536711 | 2023-08-29T13:17:59 | 2023-08-29T13:17:59 | 122,212,527 | 87 | 69 | null | 2023-05-19T06:55:11 | 2018-02-20T14:57:03 | Python | UTF-8 | Python | false | false | 662 | py | import pandas as pd
import numpy as np
import datetime
import sys
filename = 'raw_data.xlsx'
if len(sys.argv) == 2:
filename = sys.argv[1]
def calculate_averages(row):
v1 = row.iloc[0:3].mean()
v2 = row.iloc[3:6].mean()
return np.log2(v1/v2)
start_time = datetime.datetime.now()
df = pd.read_excel(fil... | [
"gabor@szabgab.com"
] | gabor@szabgab.com |
8d83837460b7f44dea09a8afbd1b6c73e717ecef | eb204640c0d941d83636973ed47cebad72d9fee3 | /examples/scanvi/scanvi.py | 3ddd7e404bd4a0b79dc63d7bc1ceca8c411e1c0b | [
"Apache-2.0"
] | permissive | vishalbelsare/pyro | 708bcda2b6783caf10f74be78fac055d1b575cb5 | b64c15e2c2c1b94897c90aa032cf7156ca3ff531 | refs/heads/dev | 2023-09-02T21:43:50.380769 | 2022-03-16T23:20:11 | 2022-03-16T23:20:11 | 137,397,138 | 0 | 0 | Apache-2.0 | 2022-03-17T20:06:11 | 2018-06-14T18:56:42 | Python | UTF-8 | Python | false | false | 16,796 | py | # Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
"""
We use a semi-supervised deep generative model of transcriptomics data to propagate labels
from a small set of labeled cells to a larger set of unlabeled cells. In particular we
use a dataset of peripheral blood mononuclear cells (... | [
"noreply@github.com"
] | vishalbelsare.noreply@github.com |
60d08f29afa6ffc2672f0e31e78ffda838221d70 | 3fd47598050ab6098088eddc79624dfa855c2143 | /djangoRest/settings.py | 5a18da26ac279010d5a33f80c85edab2135a8091 | [] | no_license | sajibuzzaman/djangoRest_Framework | cf6be098744e2506cea089ebc8f9e0dc21c0162f | a90b571f2c6dc1b9f832a0e0dda5f08b1724d9cc | refs/heads/master | 2023-04-10T04:28:49.872941 | 2021-04-21T18:41:07 | 2021-04-21T18:41:07 | 359,920,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,539 | py | """
Django settings for djangoRest project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathli... | [
"muhammadsajibuzzaman1998@gmail.com"
] | muhammadsajibuzzaman1998@gmail.com |
f01c048210b678c812f3bb6b87718e5bd62b2199 | 43d0413d129d997b41cd87a740010f889ab0c646 | /dataset_balancing/balance_dataset.py | a159cf9add6b0a13dae208db000a3772fbf4e165 | [] | no_license | LTTTDH/WebVision | 467aa46f63c2b95332f83504feb73f8628382c26 | 4a133071441b7412638382c4465dc2925b87235f | refs/heads/master | 2023-03-15T21:59:29.473087 | 2017-09-27T10:12:06 | 2017-09-27T10:12:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | import numpy as np
path = "../../../datasets/WebVision/info/train_filelist_all.txt"
dest_path = "../../../datasets/WebVision/info/train_balanced_filelist.txt"
file = open(path, "r")
print("Loading data ...")
print(path)
listofclasses = {}
for c in range(0,1000):
listofclasses[c] = []
# Load data
for line in fi... | [
"raulgombru@gmail.com"
] | raulgombru@gmail.com |
bcb8f52bdf77dee5e83cf7ccb9a921a9caba190e | 2befb6f2a5f1fbbd5340093db43a198abdd5f53b | /pythonProject/customAuth/CustomAuthApp/migrations/0001_initial.py | 5e92563f7b3e1ae564639280aafad3ca484fe3c3 | [] | no_license | JanardanPandey/RestAPI | 1956d3529782d18ef2118961f6286e3213665aad | 654933a4d9687076a00c6f4c57fc3dfee1a2c567 | refs/heads/master | 2023-06-14T07:02:31.702000 | 2021-07-02T07:50:59 | 2021-07-02T07:50:59 | 382,357,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # Generated by Django 3.2.3 on 2021-06-12 11:45
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.BigAutoFie... | [
"janardanpandey0510@gmail.com"
] | janardanpandey0510@gmail.com |
392544400066482d508c6d31e0c3c975481bbfab | cacac33bd0ff7bd1024c00f907d87a2750a4118f | /radiopadre_client/backends/backend_utils.py | d126c5cb8fac1275d0be18d7814310d14ba24a18 | [
"MIT"
] | permissive | ratt-ru/radiopadre-client | b96abda62e4ad6c26d45f6468e61dbf333806530 | ef138860d22523bf08a847317f3daca363db65a3 | refs/heads/master | 2023-03-07T09:23:22.237526 | 2021-12-05T06:32:00 | 2021-12-05T06:32:00 | 234,801,909 | 4 | 0 | MIT | 2021-07-14T13:05:03 | 2020-01-18T21:44:18 | Python | UTF-8 | Python | false | false | 2,173 | py | import socket, time, os, os.path
import iglesia
from iglesia.utils import message, bye, ff, shell
from radiopadre_client import config
def update_server_from_repository():
"""
Updates the radiopadre git working directory, if necessary
:return:
"""
if config.UPDATE and config.SERVER_INSTALL_PATH an... | [
"osmirnov@gmail.com"
] | osmirnov@gmail.com |
b2530a028a58fb2c70429d5a4c290a7924804c48 | 4618ab5db3bae5417eca7e0bcb054d1707402d5c | /test/test_nnapi.py | bd990033594a7ba2689a1604f91e133d0ec74ad4 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | Mogul5306/pytorch | 460322f36678fbd715d25f20b25df4fc032b9f58 | 2e49c5dc37bce5ce8ba463a59aacb5d3e4a638b6 | refs/heads/master | 2023-06-16T19:46:08.490529 | 2021-07-13T07:55:56 | 2021-07-13T07:57:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,232 | py | #!/usr/bin/env python3
import os
import ctypes
import torch
from typing import Tuple
from torch.backends._nnapi.prepare import convert_model_to_nnapi
from torch.testing._internal.common_utils import TestCase, run_tests
def qpt(t, scale, zero_point, dtype=torch.quint8):
t = torch.tensor(t)
return torch.quantiz... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
77c75a0b7749c3c5c8338bde04b1bb61e93bb78f | 3e4bb5b4036a66d25a72793c1deaa4f5572d37bf | /apps/dashboard/views.py | 2f723b17ac30dd70dec007dcbcc52e9db4be3f89 | [
"MIT"
] | permissive | hbussell/pinax-tracker | f7f7eb0676d01251d7d8832557be14665755844d | 4f6538324b2e1f7a8b14c346104d2f1bd8e1556b | refs/heads/master | 2021-01-20T12:06:29.630850 | 2010-02-03T00:39:05 | 2010-02-03T00:39:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,788 | py |
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from tasks.models import Task
from tasks.forms import TaskDashboardForm
from tasks.filters import TaskProjectFilter
from projects.models impo... | [
"harley@harley-desktop.(none)"
] | harley@harley-desktop.(none) |
789b05e2076e5b7f7ffca11a36057f33810e1c88 | 04f4cc1b9e5420968df75c362ffad7ed78bdb86c | /yt/finance/binomial.py | 7a395d45d7c8246d4753988f471dd077a06c7f9e | [] | no_license | toumorokoshi/yt.finance | 6f4b22fa042d86751f41c3cd30f1065bf8f6f30f | 7c12a6f09c30afc28dbdee1e50f9ff32c62bebe8 | refs/heads/master | 2021-01-17T03:13:06.396961 | 2013-04-05T08:03:09 | 2013-04-05T08:03:09 | 8,792,504 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,808 | py | """
binomial.py
A set of pricing tools for various options using the binomial model
"""
__author__ = 'yusuke tsutsumi'
import math
from yt.finance.lib import precision
class Binomial(object):
"""
Price with the binomial model
"""
periods = 1 # number of periods to evaluate with the binomial model
... | [
"tsutsumi.yusuke@gmail.com"
] | tsutsumi.yusuke@gmail.com |
bbaabec616048487232d14e3d7df6c3f072d1f0e | 536a59c31d9e7d56b91a1c49f814e1b6ab513b27 | /webserver/dependencies/SQLAlchemy-0.5.6/test/orm/test_eager_relations.py | aaba9bbe5d00ca47c15de1aa000f7f8c6356de42 | [
"MIT"
] | permissive | hughperkins/ailadder | 46bf4f32e837bcf831cfa0eaaba15d3aec561bce | 2dd6c07c2e5d8709be483917b3b120322fdbc80e | refs/heads/master | 2021-01-01T19:24:58.964859 | 2009-10-23T09:12:10 | 2009-10-23T09:12:10 | 313,108 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 62,150 | py | """basic tests of eager loaded attributes"""
from sqlalchemy.test.testing import eq_
import sqlalchemy as sa
from sqlalchemy.test import testing
from sqlalchemy.orm import eagerload, deferred, undefer
from sqlalchemy import Integer, String, Date, ForeignKey, and_, select, func
from sqlalchemy.test.schema import Table
... | [
"hughperkins@gmail.com"
] | hughperkins@gmail.com |
525d87c0196a42e75f55f89d743b31765ba68d48 | 63811ad4592793a8028ab973e254ba59a4205fe5 | /src/modules/storage_evernote/__init__.py | b30826ea497661139b30177a332751794def6cb6 | [] | no_license | AlexWoroschilow/AOD-Notes | d124fe9206278cae3c57b146883081bfaaaf1ff5 | aa43c58291e2f9175a456c156ebc78aaf61cac1e | refs/heads/master | 2022-11-30T10:42:16.405161 | 2020-08-05T20:28:05 | 2020-08-05T20:28:05 | 130,315,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # -*- coding: utf-8 -*-
# Copyright 2015 Alex Woroschilow (alex.woroschilow@gmail.com)
#
# 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
#
# Unles... | [
"alex.woroschilow@gmail.com"
] | alex.woroschilow@gmail.com |
842f17c7aeae65c3e435a8bef7373d36475fcad4 | 48408a93a358e09526e8f8b9cf560cfede086d9f | /tests/test_plot_acc_signal.py | 675b8400125a71a0064af1afd0215602f6460a83 | [
"MIT"
] | permissive | eng-tools/engformat | aa4c137854f05706feceee136e0601508c4ea4f1 | 8cc3937327eb4e7b52e0b5d486248bf25894ec0d | refs/heads/master | 2023-03-28T23:07:54.075599 | 2021-03-30T21:47:27 | 2021-03-30T21:47:27 | 111,424,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,289 | py | import numpy as np
import matplotlib
matplotlib.use('agg')
from eqsig import AccSignal
from matplotlib.testing.decorators import image_comparison
import matplotlib.pyplot as plt
from bwplot import cbox
from engformat import plot_acc_signal
from tests.conftest import TEST_DATA_DIR
@image_comparison(baseline_images=[... | [
"maxim.millen@gmail.com"
] | maxim.millen@gmail.com |
8e3d54e893943143b258daaa50207961b795f69d | d9e277dc46c9ed02d339db0fc1c4ebaed9d15e12 | /ingest/spoor_xml.py | 735227883f6ef3b55d3da3731f44056cba250eff | [
"MIT"
] | permissive | O-C-R/intotheokavango | b7ea700a178610ce6154eaf8bd423ff7acf5d522 | 4006940ddead3f31eea701efb9b9dcdc7b19402e | refs/heads/master | 2020-04-10T20:13:52.547817 | 2017-10-31T16:26:17 | 2017-10-31T16:26:17 | 32,355,238 | 1 | 3 | MIT | 2018-06-15T15:43:23 | 2015-03-16T21:51:32 | JavaScript | UTF-8 | Python | false | false | 2,105 | py | import json, xmltodict, os, base64
from ingest import ingest_json_body, save_files, process_image, ingest_data, ingest_plain_body
from housepy import config, log, util, strings
from ingest.sighting import get_taxonomy
def parse(request):
log.info("spoor_xml.parse")
try:
content = ingest_plain_body(req... | [
"brian.house@gmail.com"
] | brian.house@gmail.com |
4b2850b6ce34f9c85f6c0c7634f32b5c9cf5fcff | aef9d6b8bb21957fa8b2235872bca51f64e7b5ff | /petstagram/petstagram/pets/urls.py | 2473e643a2fe767b5674d65d09873b6da5c9eacb | [] | no_license | dreadlordow/Softuni-Python-Web | 3cf9cc234960bb47f1c3c2a91a1a80d0fc499fd6 | 784faccbe15023536917d610384222d839a63bae | refs/heads/master | 2023-08-28T19:39:57.149514 | 2021-02-23T16:28:55 | 2021-02-23T16:28:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | from django.urls import path
from petstagram.pets.views import list_pets, details_or_comment_pet, like_pet, create, edit_pet, delete_pet
urlpatterns =[
path('', list_pets, name='list pets'),
path('details/<int:pk>/', details_or_comment_pet, name='pet details'),
path('like/<int:pk>/', like_pet, name='like ... | [
"georgipavlov1913@gmail.com"
] | georgipavlov1913@gmail.com |
87c33bb6777835d09d524a7349f95644d682d200 | fa7e75212e9f536eed7a78237a5fa9a4021a206b | /python/smqtk/tests/algorithms/nn_index/test_NNI_itq.py | e9cbb9ca8295459ddafa1635f0cd73c710e71e13 | [] | no_license | kod3r/SMQTK | 3d40730c956220a3d9bb02aef65edc8493bbf527 | c128e8ca38c679ee37901551f4cc021cc43d00e6 | refs/heads/master | 2020-12-03T09:12:41.163643 | 2015-10-19T14:56:55 | 2015-10-19T14:56:55 | 44,916,678 | 1 | 0 | null | 2015-10-25T15:47:35 | 2015-10-25T15:47:35 | null | UTF-8 | Python | false | false | 7,630 | py | import json
import os
import random
import unittest
import nose.tools as ntools
import numpy
from smqtk.representation.code_index.memory import MemoryCodeIndex
from smqtk.representation.descriptor_element.local_elements import \
DescriptorMemoryElement
from smqtk.algorithms.nn_index.lsh.itq import ITQNearestNeigh... | [
"paul.tunison@kitware.com"
] | paul.tunison@kitware.com |
815e6293e7b50bf45be49abf34aa8aa462497005 | ad553dd718a8df51dabc9ba636040da740db57cf | /.history/app_20181208041346.py | f81adf16e88f6eaee743e5ea52a166492686ae44 | [] | no_license | NergisAktug/E-Commerce-PythonWithFlask-Sqlite3 | 8e67f12c28b11a7a30d13788f8dc991f80ac7696 | 69ff4433aa7ae52ef854d5e25472dbd67fd59106 | refs/heads/main | 2023-01-01T14:03:40.897592 | 2020-10-19T20:36:19 | 2020-10-19T20:36:19 | 300,379,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,022 | py | import datetime
from flask import Flask, request, render_template_string, render_template
from flask import Flask, url_for, render_template, request, redirect, session, escape, render_template_string
from flask_babelex import Babel
from flask_sqlalchemy import SQLAlchemy
from flask_user import current_user, login_requi... | [
"nergis.aktug2014@gmail.com"
] | nergis.aktug2014@gmail.com |
e02728d9fc94a43001308defdd5483846398a4de | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /ime/models/ar_net.py | 218ee2b12134f1c56ce580873cc51c45a26c1c8e | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 3,614 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.