hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
01ba7e0e7bfae1bd8cee7ccbdab4b4b865b274ba | 1,181 | py | Python | 2_ProcessSRA_hpcc-batch_runcc.py | ShiuLab/RNAseq_pipeline | e5e91fb5a5c257e9df67089bafd55045f6fa5049 | [
"MIT"
] | 4 | 2020-03-04T16:51:37.000Z | 2021-04-19T15:46:00.000Z | 2_ProcessSRA_hpcc-batch_runcc.py | ShiuLab/RNAseq_pipeline | e5e91fb5a5c257e9df67089bafd55045f6fa5049 | [
"MIT"
] | null | null | null | 2_ProcessSRA_hpcc-batch_runcc.py | ShiuLab/RNAseq_pipeline | e5e91fb5a5c257e9df67089bafd55045f6fa5049 | [
"MIT"
] | 7 | 2018-06-04T20:58:01.000Z | 2021-09-08T00:31:33.000Z | # IMPORT
import os,sys
# MAIN
print('''
inp1 = file with list of SRA files
inp2 = bowtie index base (full path)
inp3 = SE (0) or PE (1) or paired processed as single (2)
inp3 and on:
Any additional parameters for ProcessSRA_hpcc2.py
These will be appended exactly as they appear
''')
files = sys.argv[1]
bowtie_ind... | 33.742857 | 83 | 0.724809 |
01bb8846e49fe494aa95112df0a29c0432c51267 | 2,097 | py | Python | MediaCatalog/media_catalog/serializers.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | null | null | null | MediaCatalog/media_catalog/serializers.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | 7 | 2020-06-06T01:06:19.000Z | 2022-02-10T11:15:14.000Z | MediaCatalog/media_catalog/serializers.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | 1 | 2020-11-04T03:21:24.000Z | 2020-11-04T03:21:24.000Z | from django.contrib.auth.models import User, Group
from rest_framework import serializers
from rest_framework.serializers import StringRelatedField
from drf_haystack.serializers import HaystackSerializer
from . models import Media, MediaPublish, Category, Creator, Provider, MediaUser
from . search_indexes import Med... | 26.884615 | 80 | 0.733906 |
01bcb1ac1ff2e44f3b34c8c2ddb2306aa7a0a5f8 | 19,976 | py | Python | src/beam/views.py | django-beam/django-beam | cba5874bfef414e65051c2534cf03c772a4da98c | [
"BSD-3-Clause"
] | 5 | 2018-05-27T08:15:06.000Z | 2020-11-10T20:38:56.000Z | src/beam/views.py | django-beam/django-beam | cba5874bfef414e65051c2534cf03c772a4da98c | [
"BSD-3-Clause"
] | 68 | 2018-05-26T19:41:57.000Z | 2022-01-26T14:46:46.000Z | src/beam/views.py | django-beam/django-beam | cba5874bfef414e65051c2534cf03c772a4da98c | [
"BSD-3-Clause"
] | 1 | 2020-06-24T03:58:47.000Z | 2020-06-24T03:58:47.000Z | from typing import List, Optional, Type
from beam.registry import default_registry, register
from django.apps import apps
from django.contrib import messages
from django.contrib.admin.utils import NestedObjects
from django.core.exceptions import FieldDoesNotExist, PermissionDenied
from django.db import router
from dja... | 32.064205 | 94 | 0.621195 |
01bd5639140a6a95c9baa58e324b49f893790914 | 4,557 | py | Python | e3nn/tensor/fourier_tensor.py | mister-bailey/e3nn | 43d4b12f5ba5947583feb35f4e0662b73aae5618 | [
"MIT"
] | null | null | null | e3nn/tensor/fourier_tensor.py | mister-bailey/e3nn | 43d4b12f5ba5947583feb35f4e0662b73aae5618 | [
"MIT"
] | null | null | null | e3nn/tensor/fourier_tensor.py | mister-bailey/e3nn | 43d4b12f5ba5947583feb35f4e0662b73aae5618 | [
"MIT"
] | null | null | null | # pylint: disable=not-callable, no-member, invalid-name, line-too-long, missing-docstring, arguments-differ
import numpy as np
import torch
from e3nn import rs
from e3nn.kernel_mod import FrozenKernel
from e3nn.tensor.spherical_tensor import projection
| 32.55 | 107 | 0.553434 |
01bf2602a5233dc77af2a63254f7948ab7be45bf | 1,189 | py | Python | utils/validations.py | WycliffeMuchumi/Stream-101-API | 9892685c37ff6f3e1e9017bfa5321968a5255c9e | [
"MIT"
] | null | null | null | utils/validations.py | WycliffeMuchumi/Stream-101-API | 9892685c37ff6f3e1e9017bfa5321968a5255c9e | [
"MIT"
] | 1 | 2021-06-04T09:45:05.000Z | 2021-06-04T09:45:05.000Z | utils/validations.py | muchumi/Stream-101-API | 9892685c37ff6f3e1e9017bfa5321968a5255c9e | [
"MIT"
] | 1 | 2021-06-04T09:43:58.000Z | 2021-06-04T09:43:58.000Z | import re
from flask import make_response, jsonify
"""
Validates key-value pairs of request dictionary body.
"""
"""
Validates key-value pairs of request dictionary body.
"""
| 24.770833 | 79 | 0.634987 |
01c21e6d6040d019aab4c4a5d4b11c12c95b4826 | 3,395 | py | Python | agents/guiPlayerAgent.py | Interpause/not-just-gomoku | fc327b2e37f6c0ee8ef4e5e2ee65309c6c9a39be | [
"MIT"
] | 1 | 2018-08-19T14:06:10.000Z | 2018-08-19T14:06:10.000Z | agents/guiPlayerAgent.py | Interpause/not-just-gomoku | fc327b2e37f6c0ee8ef4e5e2ee65309c6c9a39be | [
"MIT"
] | null | null | null | agents/guiPlayerAgent.py | Interpause/not-just-gomoku | fc327b2e37f6c0ee8ef4e5e2ee65309c6c9a39be | [
"MIT"
] | null | null | null | from tkinter import *
from agents.baseAgent import baseAgent
| 30.044248 | 116 | 0.568778 |
01c28000c41ee4fb2f2523d9f0173a71adcfa81a | 1,802 | py | Python | airflow/utils/dag_backup_helper.py | harishjami1382/test2 | f778cc7290904a84bed06f65fa5dbb49a63639f0 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | airflow/utils/dag_backup_helper.py | harishjami1382/test2 | f778cc7290904a84bed06f65fa5dbb49a63639f0 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | airflow/utils/dag_backup_helper.py | harishjami1382/test2 | f778cc7290904a84bed06f65fa5dbb49a63639f0 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | import os
import subprocess
from airflow.exceptions import AirflowException
from airflow import configuration as conf
| 36.04 | 91 | 0.690899 |
01c3854dca1655a33e493eb031e88aa4ce6113aa | 209 | py | Python | python/basis/18-package/parent/pack1/mymodule1.py | weizhenwei/tech-docs-2016 | 253564a1633e9ec75ac94efede57f52c02b29280 | [
"BSD-2-Clause"
] | 3 | 2017-06-09T08:48:07.000Z | 2020-12-13T10:37:44.000Z | python/basis/18-package/parent/pack1/mymodule1.py | weizhenwei/tech-docs-sharetome | 253564a1633e9ec75ac94efede57f52c02b29280 | [
"BSD-2-Clause"
] | null | null | null | python/basis/18-package/parent/pack1/mymodule1.py | weizhenwei/tech-docs-sharetome | 253564a1633e9ec75ac94efede57f52c02b29280 | [
"BSD-2-Clause"
] | 4 | 2020-04-29T07:03:44.000Z | 2021-07-25T15:12:15.000Z | #!/usr/bin/env python
#-*- coding=utf-8 -*-
if __name__ == "__main__":
print "mymodule1 running as main program"
else:
print "mymodule1 initializing"
| 16.076923 | 45 | 0.669856 |
01c6baf0c32d93767acdfe8d0d19a3e357b410d4 | 3,223 | py | Python | FigureGeneration/makeFigure1.py | federatedcloud/Lake_Problem_DPS | 07600c49ed543165ccdc642c1097b3bed87c28f0 | [
"BSD-3-Clause"
] | null | null | null | FigureGeneration/makeFigure1.py | federatedcloud/Lake_Problem_DPS | 07600c49ed543165ccdc642c1097b3bed87c28f0 | [
"BSD-3-Clause"
] | 3 | 2018-10-03T21:12:42.000Z | 2019-07-08T21:32:43.000Z | FigureGeneration/makeFigure1.py | federatedcloud/Lake_Problem_DPS | 07600c49ed543165ccdc642c1097b3bed87c28f0 | [
"BSD-3-Clause"
] | 2 | 2020-06-29T17:30:42.000Z | 2020-06-30T22:01:49.000Z | import matplotlib.pyplot as plt
from scipy.optimize import root
import matplotlib
import numpy as np
makeFigure1() | 35.417582 | 98 | 0.531492 |
01c6c6c8a827d3cf331a524a92625ca459d8fdce | 4,882 | py | Python | shutdown/start_clouds/gcp_node_scenarios.py | RH-ematysek/svt | 3c4f99d453c6956b434f1a90e0658a95f3fda0a4 | [
"Apache-2.0"
] | 115 | 2016-07-15T12:24:42.000Z | 2022-02-21T20:40:09.000Z | shutdown/start_clouds/gcp_node_scenarios.py | RH-ematysek/svt | 3c4f99d453c6956b434f1a90e0658a95f3fda0a4 | [
"Apache-2.0"
] | 452 | 2016-05-19T13:55:19.000Z | 2022-03-24T11:25:20.000Z | shutdown/start_clouds/gcp_node_scenarios.py | RH-ematysek/svt | 3c4f99d453c6956b434f1a90e0658a95f3fda0a4 | [
"Apache-2.0"
] | 112 | 2016-05-16T08:48:55.000Z | 2022-01-12T13:13:37.000Z | import sys
import time
from googleapiclient import discovery
from oauth2client.client import GoogleCredentials
import logging | 47.862745 | 95 | 0.607743 |
01c8616bda4dba690dc0fe4b0df6b2da85332a5b | 6,004 | py | Python | balanced_treatment_within_subject/__init__.py | UMBEE/modified-otree-snippets | 23b5baa28edc04b5a8c8d7607567ef29383b6777 | [
"MIT"
] | null | null | null | balanced_treatment_within_subject/__init__.py | UMBEE/modified-otree-snippets | 23b5baa28edc04b5a8c8d7607567ef29383b6777 | [
"MIT"
] | 1 | 2022-02-03T18:27:00.000Z | 2022-02-03T20:01:50.000Z | balanced_treatment_within_subject/__init__.py | UMBEE/modified-otree-snippets | 23b5baa28edc04b5a8c8d7607567ef29383b6777 | [
"MIT"
] | null | null | null | from otree.api import *
import itertools
doc = """
Within-subject design, with three treatment conditions. Orders of the treatment
will be balanced as long as the subjects arrive in multiples of 6.
"""
def creating_session(subsession: Subsession):
treatments = itertools.cycle(
itertools.permutations(... | 35.738095 | 142 | 0.669887 |
01cc0d8c1cafeb4c50dbdebb8736e0f6d7e35751 | 1,130 | py | Python | Azure_DataScientist_Associate/Exercise/Exe11_math_number.py | Jiaying-Wu/Note-Azure | f8f0b917debf735ad238e69361cc77799c1b8f5e | [
"MIT"
] | null | null | null | Azure_DataScientist_Associate/Exercise/Exe11_math_number.py | Jiaying-Wu/Note-Azure | f8f0b917debf735ad238e69361cc77799c1b8f5e | [
"MIT"
] | null | null | null | Azure_DataScientist_Associate/Exercise/Exe11_math_number.py | Jiaying-Wu/Note-Azure | f8f0b917debf735ad238e69361cc77799c1b8f5e | [
"MIT"
] | null | null | null | # mathematical operations
first_value = 5
second_value = 4
sum = first_value + second_value
difference = first_value - second_value
product = first_value * second_value
quotient = first_value / second_value
modulus = first_value % second_value
exponent = first_value ** second_value
print('Sum: ' + str(sum))
print('D... | 19.824561 | 41 | 0.726549 |
01cc57f987fa0e55546aee7eb123287a97e6bf0f | 2,085 | py | Python | math_utils/discretize.py | RaczeQ/naive-bayes-classifier | c8adc960885118a13677e3c5ec4039b976810bee | [
"MIT"
] | null | null | null | math_utils/discretize.py | RaczeQ/naive-bayes-classifier | c8adc960885118a13677e3c5ec4039b976810bee | [
"MIT"
] | null | null | null | math_utils/discretize.py | RaczeQ/naive-bayes-classifier | c8adc960885118a13677e3c5ec4039b976810bee | [
"MIT"
] | null | null | null | import numpy as np
from sklearn.cluster import KMeans
def bucket_discretize(dataset_name, feature_name, values, current_value, buckets):
key = (dataset_name, feature_name, buckets)
if not key in Discretizer.bucket_models.keys():
min_value = min(values)
max_value = max(values)
... | 40.096154 | 114 | 0.692086 |
01cc70c8abff0fb0bf9dc4eeeddc116b27034172 | 875 | py | Python | python/binance/app/tests/test_binanceCom.py | Vahegian/GiantTrader | 67a1acd8c52e2277ae8919834563775e59b6e6ce | [
"MIT"
] | 10 | 2020-05-12T13:41:42.000Z | 2022-03-24T17:32:09.000Z | python/binance/app/tests/test_binanceCom.py | Vahegian/GiantTrader | 67a1acd8c52e2277ae8919834563775e59b6e6ce | [
"MIT"
] | 18 | 2020-09-26T00:57:28.000Z | 2021-06-02T01:31:35.000Z | python/binance/app/tests/test_binanceCom.py | Vahegian/GiantTrader | 67a1acd8c52e2277ae8919834563775e59b6e6ce | [
"MIT"
] | 3 | 2021-01-03T07:44:09.000Z | 2021-11-20T18:44:24.000Z | import unittest
from trader.binanceCom import BinanceCom
if __name__ == '__main__':
unittest.main() | 36.458333 | 86 | 0.691429 |
01cc779657651e4920bdc21cc6224a00f4c92b64 | 3,652 | py | Python | magenta/models/polyamp/instrument_family_mappings.py | Jss7268/magenta | 10e0b2c50baaa01a9c942ed3334b5b2cca761bef | [
"Apache-2.0"
] | null | null | null | magenta/models/polyamp/instrument_family_mappings.py | Jss7268/magenta | 10e0b2c50baaa01a9c942ed3334b5b2cca761bef | [
"Apache-2.0"
] | 1 | 2020-03-01T16:02:10.000Z | 2020-03-01T16:02:10.000Z | magenta/models/polyamp/instrument_family_mappings.py | Jss7268/magenta | 10e0b2c50baaa01a9c942ed3334b5b2cca761bef | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Jack Spencer Smith.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 24.026316 | 74 | 0.627601 |
01cdb444753f4488357a72f809510aad06386257 | 1,898 | py | Python | pyIPCMI/Base/__init__.py | mithro/pyIPCMI | dd3bb6ddbf150fffb7b104d96e0ab786e0558fd2 | [
"Apache-2.0"
] | 5 | 2018-05-12T22:38:28.000Z | 2020-10-10T17:22:37.000Z | pyIPCMI/Base/__init__.py | mithro/pyIPCMI | dd3bb6ddbf150fffb7b104d96e0ab786e0558fd2 | [
"Apache-2.0"
] | 5 | 2019-10-13T01:39:38.000Z | 2020-09-28T04:36:38.000Z | pyIPCMI/Base/__init__.py | mithro/pyIPCMI | dd3bb6ddbf150fffb7b104d96e0ab786e0558fd2 | [
"Apache-2.0"
] | 4 | 2018-05-12T22:38:32.000Z | 2019-05-19T21:27:37.000Z | # EMACS settings: -*- tab-width: 2; indent-tabs-mode: t; python-indent-offset: 2 -*-
# vim: tabstop=2:shiftwidth=2:noexpandtab
# kate: tab-width 2; replace-tabs off; indent-width 2;
#
# ==============================================================================
# Authors: Patrick Lehmann
#
# Python Package... | 33.892857 | 85 | 0.630137 |
01ce990c3e3d9f74d96ced5734ef6d8addf3e314 | 207 | py | Python | Documentation/YouTube/#2 - Window/test_window.py | YuvrajThorat/goopylib | b6bc593b7bcc92498a507f34b2190365a0ac51e7 | [
"MIT"
] | null | null | null | Documentation/YouTube/#2 - Window/test_window.py | YuvrajThorat/goopylib | b6bc593b7bcc92498a507f34b2190365a0ac51e7 | [
"MIT"
] | null | null | null | Documentation/YouTube/#2 - Window/test_window.py | YuvrajThorat/goopylib | b6bc593b7bcc92498a507f34b2190365a0ac51e7 | [
"MIT"
] | null | null | null | from goopylib.imports import *
window = Window(title="Test Window", width=700, height=700, bk_colour=ColourRGB(40, 40, 40))
Circle([350, 350], 10).draw(window)
while window.is_open():
window.update()
| 23 | 92 | 0.710145 |
01cec5edb4d937a0934dcf6391bcc265af95690c | 1,123 | py | Python | test/group-test.py | Afsio/sd-groupcast | 65df8d308280cc2096449a1bc6431eae38c54f5a | [
"MIT"
] | null | null | null | test/group-test.py | Afsio/sd-groupcast | 65df8d308280cc2096449a1bc6431eae38c54f5a | [
"MIT"
] | null | null | null | test/group-test.py | Afsio/sd-groupcast | 65df8d308280cc2096449a1bc6431eae38c54f5a | [
"MIT"
] | null | null | null | import unittest
from project import group_s
from project import printer_s
from project import member_s
from pyactor.context import set_context, create_host, shutdown, sleep
if __name__ == '__main__':
suite = unittest.TestLoader().loadTestsFromTestCase(TestStringMethods)
unittest.TextTestRunner(verbosity=2)... | 30.351351 | 75 | 0.668744 |
01d12b115e20541f808963ebd17fccca6ce7f41b | 188 | py | Python | largescale/src/neuron/neuron/__init__.py | cosmozhang-lab/motion-illusion-model | 32a5ccab920095818b220642bae491429ff71f27 | [
"MIT"
] | null | null | null | largescale/src/neuron/neuron/__init__.py | cosmozhang-lab/motion-illusion-model | 32a5ccab920095818b220642bae491429ff71f27 | [
"MIT"
] | null | null | null | largescale/src/neuron/neuron/__init__.py | cosmozhang-lab/motion-illusion-model | 32a5ccab920095818b220642bae491429ff71f27 | [
"MIT"
] | null | null | null | # Package: largescale.src.neuron.neuron
from neuron import NeuronGroup
from neuron import T_EXCITATORY, T_INHIBITORY, T_EXC, T_E, T_INH, T_I
from neuron import T_ON, T_OFF, T_O, T_F
| 31.333333 | 70 | 0.776596 |
01d20ae8c1699ccf74ba7109b2ee121b6533f768 | 147 | py | Python | mock_study/project/constants.py | lockeCucumber/Study | f2e64d51c32e8d8bff5d18427e1697149298327c | [
"MIT"
] | null | null | null | mock_study/project/constants.py | lockeCucumber/Study | f2e64d51c32e8d8bff5d18427e1697149298327c | [
"MIT"
] | null | null | null | mock_study/project/constants.py | lockeCucumber/Study | f2e64d51c32e8d8bff5d18427e1697149298327c | [
"MIT"
] | null | null | null | # coding: utf8
import os
BASE_URL = 'http://jsonplaceholder.typicode.com'
SKIP_REAL = os.getenv('SKIP_REAL', False) # | 29.4 | 72 | 0.77551 |
01d2669a411e95e812fc676660fcb5c7124775a0 | 1,458 | py | Python | charlie/Include/filelogger.py | V-Perotto/Projekt-Charlie | da27d28b1194c999d17431aa990706482d7bb1a1 | [
"CC0-1.0"
] | 1 | 2021-03-20T02:03:55.000Z | 2021-03-20T02:03:55.000Z | charlie/Include/filelogger.py | V-Perotto/Projekt-Charlie | da27d28b1194c999d17431aa990706482d7bb1a1 | [
"CC0-1.0"
] | 1 | 2021-04-06T04:48:01.000Z | 2021-04-06T04:48:01.000Z | charlie/Include/filelogger.py | V-Perotto/Projekt-Charlie | da27d28b1194c999d17431aa990706482d7bb1a1 | [
"CC0-1.0"
] | null | null | null |
from os import getcwd
from os.path import isfile
from os.path import join
from os import listdir
from datetime import datetime
# Obrigado Fabrcio por me mostrar como criar um log em python e por ser um
# colega incrvel :) | 36.45 | 88 | 0.521262 |
01d34093e5c9e7f4544e25b1fde1111ea81ea296 | 3,098 | py | Python | tests/test_pj_categories.py | QwantResearch/idunn | 88b6862f1036187855b5541bbb6758ddd4df33c1 | [
"Apache-2.0"
] | 26 | 2018-11-30T09:17:17.000Z | 2020-11-07T01:53:07.000Z | tests/test_pj_categories.py | QwantResearch/idunn | 88b6862f1036187855b5541bbb6758ddd4df33c1 | [
"Apache-2.0"
] | 38 | 2018-06-08T09:41:04.000Z | 2020-12-07T17:39:12.000Z | tests/test_pj_categories.py | Qwant/idunn | 65582dfed732093778bf7c2998db1e2cd78255b8 | [
"Apache-2.0"
] | 9 | 2018-05-18T13:07:00.000Z | 2020-08-01T16:42:40.000Z | from idunn.places import PjApiPOI
from idunn.places.models import pj_info
| 36.447059 | 100 | 0.611039 |
01d3fee0f84d79a6c7dc8e8254bea86a141e910d | 2,631 | py | Python | django_project/work_evid/models.py | grumpa/work_evid | 4798dc6ffde232981981f40c962a922321fcda3a | [
"BSD-3-Clause"
] | null | null | null | django_project/work_evid/models.py | grumpa/work_evid | 4798dc6ffde232981981f40c962a922321fcda3a | [
"BSD-3-Clause"
] | 1 | 2015-01-02T07:30:40.000Z | 2015-01-02T07:30:40.000Z | django_project/work_evid/models.py | grumpa/work_evid | 4798dc6ffde232981981f40c962a922321fcda3a | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
from django.utils.translation import ugettext as _
from django.db import models
from django.core.urlresolvers import reverse
from django.utils import timezone
class Todo(models.Model):
firm = models.ForeignKey(Firm, verbose_name=_('firm'))
date = models.DateField(default=timezone.now, verbo... | 36.541667 | 85 | 0.633979 |
01d934196d480dae649338a69187b0e002359237 | 1,638 | py | Python | cadence/tests/test_itask.py | simkimsia/temporal-python-sdk | 6b35da3eb0d3da87d61c1ce0ff8b33f08e8c3263 | [
"MIT"
] | 141 | 2019-05-01T00:19:22.000Z | 2022-03-29T13:30:31.000Z | cadence/tests/test_itask.py | simkimsia/temporal-python-sdk | 6b35da3eb0d3da87d61c1ce0ff8b33f08e8c3263 | [
"MIT"
] | 19 | 2019-08-10T08:19:30.000Z | 2021-05-26T01:38:39.000Z | cadence/tests/test_itask.py | simkimsia/temporal-python-sdk | 6b35da3eb0d3da87d61c1ce0ff8b33f08e8c3263 | [
"MIT"
] | 29 | 2019-05-15T03:44:09.000Z | 2022-03-29T21:36:17.000Z | import asyncio
from asyncio.events import AbstractEventLoop
from unittest import TestCase
from unittest.mock import Mock, MagicMock
from cadence.decision_loop import ReplayDecider, ITask
from cadence.tests.test_decision_context import run_once
| 33.428571 | 90 | 0.698413 |
01daf9291c59f9ecfac44642085f4a9a36facf4d | 2,450 | py | Python | rewriting/terms.py | ethframe/scratchpad | 29287f24f805e32b302984447c914b55eae82f08 | [
"MIT"
] | 1 | 2021-07-29T08:59:06.000Z | 2021-07-29T08:59:06.000Z | rewriting/terms.py | ethframe/scratchpad | 29287f24f805e32b302984447c914b55eae82f08 | [
"MIT"
] | null | null | null | rewriting/terms.py | ethframe/scratchpad | 29287f24f805e32b302984447c914b55eae82f08 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import List
from .matching import (
ConstantOpBuilder, Context, Matchable, PatternBuilder, VarOpBuilder
)
class TermOp:
def handle_term(self, term: Term, ctx: Context['TermOp']) -> bool:
return False
def func(name: str, *args: PatternBuilder[Ter... | 25 | 77 | 0.66 |
01db48123ace2512ead68fd1601f911ab0f60cef | 41 | py | Python | classes/Optimizer/__init__.py | coopersigrist/DnDML | 782b8908147fc9d90c6fb1dbb25a394ca4022b14 | [
"MIT"
] | 2 | 2021-05-31T22:44:50.000Z | 2021-09-12T03:19:21.000Z | classes/Optimizer/__init__.py | coopersigrist/DnDML | 782b8908147fc9d90c6fb1dbb25a394ca4022b14 | [
"MIT"
] | null | null | null | classes/Optimizer/__init__.py | coopersigrist/DnDML | 782b8908147fc9d90c6fb1dbb25a394ca4022b14 | [
"MIT"
] | 1 | 2021-07-22T12:54:47.000Z | 2021-07-22T12:54:47.000Z | from .wrapper import create_optim_wrapper | 41 | 41 | 0.902439 |
01de93cc01e93ba0250a3e2becff8b0167586038 | 820 | py | Python | utils/decompress_gz_to_json.py | zahidayar/BRON | 585b365ec081eae758c7c7e7160ceca3ac9c2f6f | [
"MIT"
] | 23 | 2020-10-02T12:59:19.000Z | 2022-03-07T17:53:25.000Z | utils/decompress_gz_to_json.py | zahidayar/BRON | 585b365ec081eae758c7c7e7160ceca3ac9c2f6f | [
"MIT"
] | 9 | 2020-09-30T18:47:39.000Z | 2022-03-08T17:21:41.000Z | utils/decompress_gz_to_json.py | zahidayar/BRON | 585b365ec081eae758c7c7e7160ceca3ac9c2f6f | [
"MIT"
] | 11 | 2020-12-30T19:21:52.000Z | 2022-03-25T03:00:42.000Z | import json
import gzip
import argparse
"""
Decompresses GZ file to JSON file
"""
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Decompress GZ file to JSON file")
parser.add_argument(
"--gz_path", type=str, required=True, help="Location of .gz file to be decompressed"
)... | 27.333333 | 92 | 0.684146 |
01ded03c96a46ab8c9a1fc28b70d091d4b45aa01 | 2,981 | py | Python | tests/tangelo-watch.py | movermeyer/tangelo | 470034ee9b3d7a01becc1ce5fddc7adc1d5263ef | [
"Apache-2.0"
] | 40 | 2015-01-09T02:56:33.000Z | 2019-03-01T05:34:13.000Z | tests/tangelo-watch.py | movermeyer/tangelo | 470034ee9b3d7a01becc1ce5fddc7adc1d5263ef | [
"Apache-2.0"
] | 98 | 2015-01-05T12:51:29.000Z | 2019-01-23T20:16:48.000Z | tests/tangelo-watch.py | movermeyer/tangelo | 470034ee9b3d7a01becc1ce5fddc7adc1d5263ef | [
"Apache-2.0"
] | 21 | 2015-01-05T19:11:49.000Z | 2020-08-19T04:16:16.000Z | import fixture
import nose
import requests
import os
import pprint
import time
def get_times(response):
"""
Parse a response from a watch script to get the reported times.
:param response: the response from a requests.get call.
:returns: a dictionary of parsed times.
"""
times = {}
for pa... | 31.052083 | 76 | 0.628313 |
01e1988dca92df66d159a4de20a9672aa6ee93e3 | 1,394 | py | Python | dfs/path-sum-II.py | windowssocket/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 3 | 2018-05-29T02:29:40.000Z | 2020-02-05T03:28:16.000Z | dfs/path-sum-II.py | xidongc/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 1 | 2019-03-08T13:22:32.000Z | 2019-03-08T13:22:32.000Z | dfs/path-sum-II.py | xidongc/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 3 | 2018-05-29T11:50:24.000Z | 2018-11-27T12:31:01.000Z | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
| 25.345455 | 69 | 0.472023 |
01e1c6dfef1b13a42336acc4b9cb04fd28520995 | 4,405 | py | Python | train.py | matt-quant-heads-io/pcgil2 | acb32c5766fca5be580f4aa56b1b7c660c39048d | [
"MIT"
] | null | null | null | train.py | matt-quant-heads-io/pcgil2 | acb32c5766fca5be580f4aa56b1b7c660c39048d | [
"MIT"
] | null | null | null | train.py | matt-quant-heads-io/pcgil2 | acb32c5766fca5be580f4aa56b1b7c660c39048d | [
"MIT"
] | null | null | null | #pip install tensorflow==1.15
#Install stable-baselines as described in the documentation
import sys
import model
from model import FullyConvPolicyBigMap, FullyConvPolicySmallMap, CustomPolicyBigMap, CustomPolicySmallMap
from utils import get_exp_name, max_exp_idx, load_model, make_vec_envs
from stable_baselines impor... | 33.625954 | 122 | 0.614075 |
01e37e55485ff713b5ef926c51471d0b3aa60ce8 | 5,752 | py | Python | run_scripts/lfd_upper_bound_exp_script.py | yifan-you-37/rl_swiss | 8b0ee7caa5c1fa93860916004cf4fd970667764f | [
"MIT"
] | 56 | 2019-10-20T03:09:02.000Z | 2022-03-25T09:21:40.000Z | run_scripts/lfd_upper_bound_exp_script.py | yifan-you-37/rl_swiss | 8b0ee7caa5c1fa93860916004cf4fd970667764f | [
"MIT"
] | 3 | 2020-10-01T07:33:51.000Z | 2021-05-12T03:40:57.000Z | run_scripts/lfd_upper_bound_exp_script.py | yifan-you-37/rl_swiss | 8b0ee7caa5c1fa93860916004cf4fd970667764f | [
"MIT"
] | 10 | 2019-11-04T16:56:09.000Z | 2022-03-25T09:21:41.000Z | import numpy as np
import torch
from torch import nn
from torch.autograd import Variable
from copy import deepcopy
from gym.spaces import Dict
from rllab.misc.instrument import VariantGenerator
import rlkit.torch.pytorch_util as ptu
from rlkit.envs.wrappers import NormalizedBoxEnv
from rlkit.launchers.launcher_util i... | 34.035503 | 115 | 0.677156 |
01e3a685fc855932c7cffb03a56fb066ee005d8b | 2,535 | py | Python | tldap/helpers.py | Karaage-Cluster/python-tldap-debian | 9d3d7a28df61d9cf97c0c0f62a5eea9d5767c213 | [
"BSD-3-Clause"
] | null | null | null | tldap/helpers.py | Karaage-Cluster/python-tldap-debian | 9d3d7a28df61d9cf97c0c0f62a5eea9d5767c213 | [
"BSD-3-Clause"
] | null | null | null | tldap/helpers.py | Karaage-Cluster/python-tldap-debian | 9d3d7a28df61d9cf97c0c0f62a5eea9d5767c213 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2012-2014 Brian May
#
# This file is part of python-tldap.
#
# python-tldap 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.... | 30.178571 | 74 | 0.624458 |
01e431ac6af8e7ece57813ce92c7c03a10a541da | 933 | py | Python | deepxde/optimizers/pytorch/optimizers.py | csuastt/deepxde | 027b1489142d0dacf15baf7d7990c63027aca86f | [
"Apache-2.0"
] | null | null | null | deepxde/optimizers/pytorch/optimizers.py | csuastt/deepxde | 027b1489142d0dacf15baf7d7990c63027aca86f | [
"Apache-2.0"
] | null | null | null | deepxde/optimizers/pytorch/optimizers.py | csuastt/deepxde | 027b1489142d0dacf15baf7d7990c63027aca86f | [
"Apache-2.0"
] | null | null | null | import torch
__all__ = ["get", "is_external_optimizer"]
def get(params, optimizer, learning_rate=None, decay=None):
"""Retrieves an Optimizer instance."""
if isinstance(optimizer, torch.optim.Optimizer):
return optimizer
if learning_rate is None and optimizer not in ["L-BFGS", "L-BFGS-B"]:
... | 32.172414 | 84 | 0.672026 |
01e4a93d122c374bc7b77d38adfb718aea0aeaed | 899 | py | Python | vmraid/patches/v5_0/bookmarks_to_stars.py | sowrisurya/vmraid | f833e00978019dad87af80b41279c0146c063ed5 | [
"MIT"
] | null | null | null | vmraid/patches/v5_0/bookmarks_to_stars.py | sowrisurya/vmraid | f833e00978019dad87af80b41279c0146c063ed5 | [
"MIT"
] | null | null | null | vmraid/patches/v5_0/bookmarks_to_stars.py | sowrisurya/vmraid | f833e00978019dad87af80b41279c0146c063ed5 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import json
import vmraid
import vmraid.defaults
from vmraid.desk.like import _toggle_like
from six import string_types
| 26.441176 | 70 | 0.696329 |
01e4d64999a4e0f305613c36fd0071cb9705dd30 | 4,061 | py | Python | data_create.py | Primtee/triplet-loss-train-for-speaker-recognition | 8d0f405eddbbb129bd7bf60565390cdaca0a8aa8 | [
"MIT"
] | 13 | 2019-04-01T02:38:59.000Z | 2022-03-02T20:18:13.000Z | data_create.py | Primtee/triplet-loss-train-for-speaker-recognition | 8d0f405eddbbb129bd7bf60565390cdaca0a8aa8 | [
"MIT"
] | 1 | 2019-07-22T02:33:57.000Z | 2019-07-22T02:33:57.000Z | data_create.py | Primtee/triplet-loss-train-for-speaker-recognition | 8d0f405eddbbb129bd7bf60565390cdaca0a8aa8 | [
"MIT"
] | 8 | 2019-04-02T01:49:19.000Z | 2021-04-23T09:22:20.000Z | # coding=utf-8
__author__ = 'NXG'
import os, wave
import contextlib
import collections
from math import ceil
from dataprovider.create.data_management import mik_dir
saved_original_voice_path = '/data/validation_clip/'
# 3
if __name__ == '__main__':
path = 'D:/save'
save_path_root = 'D"/enrance_voice'
... | 35.008621 | 98 | 0.638513 |
01e8d97a7e29b1604d1107707c9dd60bfb163ffc | 43,415 | py | Python | AlignmentPracticableIORepa.py | caiks/AlignmentRepaPy | 7b67e5e1ed7a40fc0c9588b92d72536b12edaf11 | [
"MIT"
] | null | null | null | AlignmentPracticableIORepa.py | caiks/AlignmentRepaPy | 7b67e5e1ed7a40fc0c9588b92d72536b12edaf11 | [
"MIT"
] | null | null | null | AlignmentPracticableIORepa.py | caiks/AlignmentRepaPy | 7b67e5e1ed7a40fc0c9588b92d72536b12edaf11 | [
"MIT"
] | null | null | null | from AlignmentPracticableRepa import *
import logging
from timeit import default_timer as timer
from sys import stdout
# logging.basicConfig(format='%(asctime)s : %(name)s : %(message)s', datefmt='%Y-%m-%d %H:%M:%S', level=logging.INFO)
# logging.basicConfig(format='%(message)s', level=logging.INFO)
logging.bas... | 41.151659 | 158 | 0.54548 |
01ec2eb83db8877fbe9b047aa6571bb80b06575c | 213 | py | Python | nnga/utils/helper.py | rafaelsdellama/nnga | 9c04fd0c5f68644345d197db44b1bc6f6c780a30 | [
"MIT"
] | 1 | 2021-12-28T23:40:41.000Z | 2021-12-28T23:40:41.000Z | nnga/utils/helper.py | rafaelsdellama/nnga | 9c04fd0c5f68644345d197db44b1bc6f6c780a30 | [
"MIT"
] | null | null | null | nnga/utils/helper.py | rafaelsdellama/nnga | 9c04fd0c5f68644345d197db44b1bc6f6c780a30 | [
"MIT"
] | null | null | null | import tensorflow as tf
import gc
def dump_tensors():
"""
https://forums.fast.ai/t/gpu-memory-not-being-freed-after-training-is-over/10265/6
"""
tf.keras.backend.clear_session()
gc.collect()
| 19.363636 | 86 | 0.676056 |
01ec3f83f4344a57d4723456f2a886bb0fae0749 | 2,438 | py | Python | codes/cctpy/cuda/cuda_dB.py | madokast/cctpy | b02c64220ea533a4fc9cad0b882d1be6edadf1c0 | [
"MIT"
] | 1 | 2021-12-27T13:20:43.000Z | 2021-12-27T13:20:43.000Z | codes/cctpy/cuda/cuda_dB.py | madokast/cctpy | b02c64220ea533a4fc9cad0b882d1be6edadf1c0 | [
"MIT"
] | null | null | null | codes/cctpy/cuda/cuda_dB.py | madokast/cctpy | b02c64220ea533a4fc9cad0b882d1be6edadf1c0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
dB CUDA
"""
import numpy as np
import pycuda.driver as drv
import pycuda.autoinit
from pycuda.compiler import SourceModule
from cctpy.baseutils import Vectors
mod = SourceModule("""
// cct_for_cuda.cpp : "main"
//
#include<stdio.h>
#include <math.h> // CUDA IGNORE
#define MM 0.001f
... | 19.983607 | 87 | 0.561936 |
01ed823981676dcf15bd4e4814cc63e98bf56130 | 2,161 | py | Python | knowledge_extractor/keyword_generators.py | nlpconnect/knowledge-extractor | 0a9595c7c966d5908f78d6cd5a2808448737e320 | [
"Apache-2.0"
] | null | null | null | knowledge_extractor/keyword_generators.py | nlpconnect/knowledge-extractor | 0a9595c7c966d5908f78d6cd5a2808448737e320 | [
"Apache-2.0"
] | 7 | 2021-07-18T11:24:44.000Z | 2021-07-18T14:26:52.000Z | knowledge_extractor/keyword_generators.py | nlpconnect/knowledge_extractor | 0a9595c7c966d5908f78d6cd5a2808448737e320 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/00_model_based_keyword_generation.ipynb (unless otherwise specified).
__all__ = ['BartKeywordGenerator', 'ExtractiveKeywordGenerator', 'AbstractiveKeywordGenerator']
# Cell
from transformers import TextGenerationPipeline, TFAutoModelForPreTraining, TFBartForConditionalG... | 41.557692 | 131 | 0.763998 |
01ee6ced64104669ebecf6c3325e44ad9e03b6ac | 5,344 | py | Python | saving.py | pabilbado/IVanalyzer | 4ebb5333508906328c9b7df5311ea0616ba9344f | [
"MIT"
] | null | null | null | saving.py | pabilbado/IVanalyzer | 4ebb5333508906328c9b7df5311ea0616ba9344f | [
"MIT"
] | null | null | null | saving.py | pabilbado/IVanalyzer | 4ebb5333508906328c9b7df5311ea0616ba9344f | [
"MIT"
] | null | null | null |
import pandas as pd
import matplotlib.pyplot as plt
import os
import time
intro= """\
\\documentclass[a4paper]{article}
%% Language and font encodings
\\usepackage[english]{babel}
\\usepackage[utf8x]{inputenc}
\\usepackage[T1]{fontenc}
%% Sets page size and margins
\\usepackage[a4paper,top=3cm,bottom=2cm,left=3cm,... | 35.865772 | 317 | 0.537051 |
01f0b340264833a77f844be5ad80f6b639b8a21f | 1,896 | py | Python | connect4_driver.py | YeungJonathan/ConnectFourGame | a9fc8c063a6484fb9a5cbfea788b9db6c99bc43a | [
"MIT"
] | null | null | null | connect4_driver.py | YeungJonathan/ConnectFourGame | a9fc8c063a6484fb9a5cbfea788b9db6c99bc43a | [
"MIT"
] | null | null | null | connect4_driver.py | YeungJonathan/ConnectFourGame | a9fc8c063a6484fb9a5cbfea788b9db6c99bc43a | [
"MIT"
] | 2 | 2018-10-18T20:55:29.000Z | 2019-05-05T22:20:08.000Z | from connect4_board import Board
from connect4_board import Player
import random
if __name__ == '__main__':
main = Driver()
main.tick() | 24.947368 | 62 | 0.658755 |
01f38c86baedfcc484c064e47ed30b7665cc0956 | 4,450 | py | Python | DiscoPass.py | christopheleduc/Brute_Force_SHA1_Hashes_001 | 0338f462c3a4afbccc51e0418afc00c3fb1cc495 | [
"MIT"
] | 1 | 2019-11-22T20:01:40.000Z | 2019-11-22T20:01:40.000Z | DiscoPass.py | CryptoDox/Brute_Force_SHA1_Hashes_001 | 115d6373ac945191ecee35976698e922efeb3f04 | [
"MIT"
] | null | null | null | DiscoPass.py | CryptoDox/Brute_Force_SHA1_Hashes_001 | 115d6373ac945191ecee35976698e922efeb3f04 | [
"MIT"
] | null | null | null | from urllib.request import urlopen, hashlib, time
# Une petite fonction pour un timer entre les 2 mthodes (locale et distante).
# Valeur du mot de passe tester
motdepass = input("Renseiger le mot de passe tester.\n>")
# On le Hash avec SHA1 et on memorise sa valeur
hash_SHA1 = hashlib.sha1(bytes(motdepass, 'utf-8'... | 46.842105 | 190 | 0.597079 |
01f46813c24eb72d17e7473237ce843aed94ffa2 | 13,244 | py | Python | main.py | fab-jul/ppfin | f3e51583d42590eceb6d3920a351f8f2639792c1 | [
"MIT"
] | null | null | null | main.py | fab-jul/ppfin | f3e51583d42590eceb6d3920a351f8f2639792c1 | [
"MIT"
] | null | null | null | main.py | fab-jul/ppfin | f3e51583d42590eceb6d3920a351f8f2639792c1 | [
"MIT"
] | null | null | null | import logging
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
fh = logging.FileHandler('otp.log')
fh.setLevel(logging.DEBUG)
logger.addHandler(fh)
import argparse
import urwid
import data_controller
import symbol_values
_BACKGROUND = urwid.SolidFill(u'\N{MEDIUM SHADE}')
_BASE_CURRENCY = 'CHF'
_main... | 30.168565 | 100 | 0.627001 |
01f504aa53c3bb4fe7a2b249467d3edc8c31630a | 563 | py | Python | lain_sdk/yaml/lua_parser/pythonCall.py | rmrf/lain-sdk | b6623948ae25aa4bf4982a6bf755db200cc7f005 | [
"MIT"
] | null | null | null | lain_sdk/yaml/lua_parser/pythonCall.py | rmrf/lain-sdk | b6623948ae25aa4bf4982a6bf755db200cc7f005 | [
"MIT"
] | null | null | null | lain_sdk/yaml/lua_parser/pythonCall.py | rmrf/lain-sdk | b6623948ae25aa4bf4982a6bf755db200cc7f005 | [
"MIT"
] | null | null | null | import lupa
from lupa import LuaRuntime
lua = LuaRuntime(unpack_returned_tuples=True)
fileName = "test_json/3.json"
repo_name = "aaa"
meta_version = "bbbb"
comd = ""
comd += "fileName = " + "'"+ fileName +"'\n"
comd += "repo_name = " + "'"+ repo_name +"'\n"
comd += "meta_version = " + "'"+ meta_version +"'\n"
prin... | 18.766667 | 52 | 0.632327 |
01f72bd21f2a381c2c81de43a8ad15b68badbae6 | 4,917 | py | Python | exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/cloudscale.py | tr3ck3r/linklight | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | [
"MIT"
] | null | null | null | exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/cloudscale.py | tr3ck3r/linklight | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | [
"MIT"
] | null | null | null | exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/cloudscale.py | tr3ck3r/linklight | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# (c) 2017, Gaudenz Steinlin <gaudenz.steinlin@cloudscale.ch>
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
from copy import deepcopy
from ansibl... | 36.969925 | 106 | 0.548709 |
01f740df8599560ff474d7854131e8adb9839b1d | 160 | py | Python | AtCoder/ABC049/C.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | 1 | 2018-11-25T04:15:45.000Z | 2018-11-25T04:15:45.000Z | AtCoder/ABC049/C.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | null | null | null | AtCoder/ABC049/C.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | 2 | 2018-08-08T13:01:14.000Z | 2018-11-25T12:38:36.000Z | S = input()
S = S.replace("eraser", "").replace("erase", "").replace("dreamer", "").replace("dream", "")
if len(S) == 0:
print("YES")
else:
print("NO")
| 22.857143 | 92 | 0.53125 |
01f86d27aeb709342e960d73672dfac7c9005b9a | 10,879 | py | Python | jdcloud_cli/controllers/services/ossopenapi.py | Tanc009/jdcloud-cli | 4e11de77c68501f44e7026c0ad1c24e5d043197e | [
"Apache-2.0"
] | 95 | 2018-06-05T10:49:32.000Z | 2019-12-31T11:07:36.000Z | jdcloud_cli/controllers/services/ossopenapi.py | Tanc009/jdcloud-cli | 4e11de77c68501f44e7026c0ad1c24e5d043197e | [
"Apache-2.0"
] | 22 | 2018-06-05T10:58:59.000Z | 2020-07-31T12:13:19.000Z | jdcloud_cli/controllers/services/ossopenapi.py | Tanc009/jdcloud-cli | 4e11de77c68501f44e7026c0ad1c24e5d043197e | [
"Apache-2.0"
] | 21 | 2018-06-04T12:50:27.000Z | 2020-11-05T10:55:28.000Z | # coding=utf8
# Copyright 2018 JDCLOUD.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
#
# Unless required by applicable law or agreed ... | 56.958115 | 1,684 | 0.641143 |
01fa933ff3cf055d54e76aea1d31cfc730d35ab9 | 2,444 | py | Python | tools/perf/scripts/python/stat-cpi.py | fergy/aplit_linux-5 | a6ef4cb0e17e1eec9743c064e65f730c49765711 | [
"MIT"
] | 44 | 2022-03-16T08:32:31.000Z | 2022-03-31T16:02:35.000Z | tools/perf/scripts/python/stat-cpi.py | fergy/aplit_linux-5 | a6ef4cb0e17e1eec9743c064e65f730c49765711 | [
"MIT"
] | 13 | 2021-07-10T04:36:17.000Z | 2022-03-03T10:50:05.000Z | tools/perf/scripts/python/stat-cpi.py | fergy/aplit_linux-5 | a6ef4cb0e17e1eec9743c064e65f730c49765711 | [
"MIT"
] | 18 | 2022-03-19T04:41:04.000Z | 2022-03-31T03:32:12.000Z | # SPDX-License-Identifier: GPL-2.0
from __future__ import print_function
data = {}
times = []
threads = []
cpus = []
# XXX trace_end callback could be used as an alternative place
# to compute same values as in the script above:
#
# for time in times:
# for cpu in cpus:
# for thread i... | 30.55 | 119 | 0.584697 |
01fa9fa16e7ec6eb680b54dc81280b527fab92e8 | 751 | py | Python | lesson-2/task2.py | GintoGloss/GeekUniversity-Python | b30da872bd5c68905ab66485ca06bdf3008b3995 | [
"Unlicense"
] | null | null | null | lesson-2/task2.py | GintoGloss/GeekUniversity-Python | b30da872bd5c68905ab66485ca06bdf3008b3995 | [
"Unlicense"
] | null | null | null | lesson-2/task2.py | GintoGloss/GeekUniversity-Python | b30da872bd5c68905ab66485ca06bdf3008b3995 | [
"Unlicense"
] | null | null | null | # 2. , .. 0
# 1, 2 3 .. .
# input().
my_list = []
list_len = input(" ? ")
while (not list_len.isdecimal()) or int(list_len) == 0:
list_len = input(" ! ")
list_len = int(list_len)
while len(my_list) < list_len:
my_list.append(input("#"))
print(my_list)
for index, elem in enume... | 39.526316 | 116 | 0.723036 |
01fde946914f4c6f922ba5d95ad8427ac784b8c5 | 1,759 | py | Python | omniinsight/objs.py | omnibuildplatform/omni-insight | 8a83ac5742a41c07c7ee3f442c2e104b026aa484 | [
"MulanPSL-1.0"
] | null | null | null | omniinsight/objs.py | omnibuildplatform/omni-insight | 8a83ac5742a41c07c7ee3f442c2e104b026aa484 | [
"MulanPSL-1.0"
] | null | null | null | omniinsight/objs.py | omnibuildplatform/omni-insight | 8a83ac5742a41c07c7ee3f442c2e104b026aa484 | [
"MulanPSL-1.0"
] | null | null | null | import os
import yaml
| 25.867647 | 67 | 0.528709 |
01fe3b13e6d2f50b47795caf8363733e1ca35753 | 812 | py | Python | main/coin-change/coin-change-cache.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/coin-change/coin-change-cache.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/coin-change/coin-change-cache.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
import functools
if __name__ == '__main__':
run()
| 21.945946 | 64 | 0.598522 |
01fe4da65b5536a35e63367696f21e9c251539ba | 4,686 | py | Python | WebCrawler/WebCrawler.py | chenyz2000/MiniProjects | 33182e6b98190cd72aed228ab6c4b64a8ea4ebdb | [
"MIT"
] | null | null | null | WebCrawler/WebCrawler.py | chenyz2000/MiniProjects | 33182e6b98190cd72aed228ab6c4b64a8ea4ebdb | [
"MIT"
] | null | null | null | WebCrawler/WebCrawler.py | chenyz2000/MiniProjects | 33182e6b98190cd72aed228ab6c4b64a8ea4ebdb | [
"MIT"
] | null | null | null | import math
import random
import time
import re
from queue import Queue
import urllib.request
import urllib.error
import jieba
from bs4 import BeautifulSoup
urlSet = set()
urlList = []
doc = 0
que = Queue()
user_agents = [
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.... | 33.234043 | 119 | 0.532224 |
01ff0fb86e36d267d898975db026d9e74086232c | 7,398 | py | Python | dags/dop/airflow_module/operator/dbt_k8_operator.py | bytecodeio/google_data_services_template | 08b64972e9899971d5c4f892480aa0c067b53c3b | [
"MIT"
] | 63 | 2021-03-30T12:09:40.000Z | 2022-03-04T14:30:11.000Z | dags/dop/airflow_module/operator/dbt_k8_operator.py | bytecodeio/google_data_services_template | 08b64972e9899971d5c4f892480aa0c067b53c3b | [
"MIT"
] | null | null | null | dags/dop/airflow_module/operator/dbt_k8_operator.py | bytecodeio/google_data_services_template | 08b64972e9899971d5c4f892480aa0c067b53c3b | [
"MIT"
] | 8 | 2021-03-30T12:15:55.000Z | 2021-08-22T14:25:30.000Z | import logging
import os
from typing import List, Dict
from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator
from airflow.sensors.base_sensor_operator import apply_defaults
from dop.component.configuration.env import env_config
from dop.airflow_module.operator import dbt_operator_helper
... | 36.264706 | 147 | 0.598946 |
01ff66c7fe5c77fb55b20587a4618914f352a1af | 3,471 | py | Python | birthday.py | jordanvtskier12/Birthday-quiz | 8eb6cfda35ae9e7b3a0b2b7fe9d12d851e778d53 | [
"MIT"
] | null | null | null | birthday.py | jordanvtskier12/Birthday-quiz | 8eb6cfda35ae9e7b3a0b2b7fe9d12d851e778d53 | [
"MIT"
] | null | null | null | birthday.py | jordanvtskier12/Birthday-quiz | 8eb6cfda35ae9e7b3a0b2b7fe9d12d851e778d53 | [
"MIT"
] | null | null | null | """
birthday.py
Author: Jordan
Credit: none
Assignment:
Your program will ask the user the following questions, in this order:
1. Their name.
2. The name of the month they were born in (e.g. "September").
3. The year they were born in (e.g. "1962").
4. The day they were born on (e.g. "11").
If the user's birthday fe... | 33.057143 | 139 | 0.673869 |
bf00295358fe63143dc1908bc85278216ed3616f | 5,093 | py | Python | models/dyn_model.py | zhouxian/GNS-PyTorch | c2401e11cfaee06c2108369dc55e15d8a2b52a7c | [
"MIT"
] | 1 | 2022-03-24T14:15:11.000Z | 2022-03-24T14:15:11.000Z | models/dyn_model.py | zhouxian/GNS-PyTorch | c2401e11cfaee06c2108369dc55e15d8a2b52a7c | [
"MIT"
] | null | null | null | models/dyn_model.py | zhouxian/GNS-PyTorch | c2401e11cfaee06c2108369dc55e15d8a2b52a7c | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from config import _C as C
from models.layers.GNN_dmwater import GraphNet
from scipy import spatial
import numpy as np
import utils
| 36.378571 | 106 | 0.591793 |
bf02ba4cab7446a1e4a8e195ce66a394e9365faf | 1,224 | py | Python | reuse_model_layer.py | MorvanZhou/Tensorflow2-Tutorial | 871c627786d557f04db2dc5334da664a314d85f7 | [
"Apache-2.0"
] | 193 | 2019-10-22T07:15:34.000Z | 2022-03-30T12:45:55.000Z | reuse_model_layer.py | LAJsisyphean/Tensorflow2-Tutorial | 871c627786d557f04db2dc5334da664a314d85f7 | [
"Apache-2.0"
] | null | null | null | reuse_model_layer.py | LAJsisyphean/Tensorflow2-Tutorial | 871c627786d557f04db2dc5334da664a314d85f7 | [
"Apache-2.0"
] | 51 | 2019-11-06T12:52:41.000Z | 2022-03-30T07:31:45.000Z | from tensorflow import keras
import numpy as np
data_x = np.random.normal(size=[1000, 1])
noise = np.random.normal(size=[1000, 1]) * 0.2
data_y = data_x * 3. + 2. + noise
train_x, train_y = data_x[:900], data_y[:900]
test_x, test_y = data_x[900:], data_y[900:]
# define your reusable layers in here
l1 = keras.layers... | 28.465116 | 89 | 0.669935 |
bf031927f694b8c064e8a7f2a449722095468391 | 624 | py | Python | rainbow.py | Mizzlr/architect | 0edede4a07d0d8ad8976098705480b23382306bc | [
"MIT"
] | null | null | null | rainbow.py | Mizzlr/architect | 0edede4a07d0d8ad8976098705480b23382306bc | [
"MIT"
] | null | null | null | rainbow.py | Mizzlr/architect | 0edede4a07d0d8ad8976098705480b23382306bc | [
"MIT"
] | null | null | null | import colorama
| 17.333333 | 62 | 0.650641 |
bf03e63169f4a69575f56090cf3ef31b53f95eee | 158 | py | Python | owstk/analysis/export.py | Tfitzpatrick846/OWSTK | dfce0fad56c0093c2c9cf45952cb3a0958e94706 | [
"CNRI-Python"
] | null | null | null | owstk/analysis/export.py | Tfitzpatrick846/OWSTK | dfce0fad56c0093c2c9cf45952cb3a0958e94706 | [
"CNRI-Python"
] | null | null | null | owstk/analysis/export.py | Tfitzpatrick846/OWSTK | dfce0fad56c0093c2c9cf45952cb3a0958e94706 | [
"CNRI-Python"
] | null | null | null | """Export data"""
from scipy.io import savemat
def mat(filename, mdict):
"""Export dictionary to .mat file for MATLAB"""
savemat(filename, mdict)
| 15.8 | 51 | 0.677215 |
bf0473077d1f391cb46585a278833cc7fc757836 | 1,932 | py | Python | usage/python/tools/source/globus/usage/cwscorev2packet.py | jtfrey/globus-toolkit | ee55e99c6d6a6dd2dbd4246c0537e0b083069a5d | [
"Apache-2.0"
] | 44 | 2015-02-04T22:01:05.000Z | 2021-01-27T21:18:47.000Z | usage/python/tools/source/globus/usage/cwscorev2packet.py | jtfrey/globus-toolkit | ee55e99c6d6a6dd2dbd4246c0537e0b083069a5d | [
"Apache-2.0"
] | 69 | 2015-04-07T16:07:26.000Z | 2020-06-17T20:00:34.000Z | usage/python/tools/source/globus/usage/cwscorev2packet.py | ellert/globus-toolkit | 14761278bf048b0d9bd3d46ab4c3c987b968f2d3 | [
"Apache-2.0"
] | 51 | 2015-04-07T14:29:47.000Z | 2021-09-23T08:44:18.000Z | # Copyright 1999-2009 University of Chicago
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | 32.745763 | 78 | 0.628882 |
bf06cfda750aba0e7c5ef121aee70cd1a696ccc5 | 15,124 | py | Python | src/mindsync/api_test.py | mindsync-ai/mindsync-api-python | 62ad96078c0e167279abe040852fcf22dab496ec | [
"Apache-2.0"
] | null | null | null | src/mindsync/api_test.py | mindsync-ai/mindsync-api-python | 62ad96078c0e167279abe040852fcf22dab496ec | [
"Apache-2.0"
] | null | null | null | src/mindsync/api_test.py | mindsync-ai/mindsync-api-python | 62ad96078c0e167279abe040852fcf22dab496ec | [
"Apache-2.0"
] | null | null | null | import pytest
from unittest.mock import patch, AsyncMock, create_autospec, MagicMock
from mindsync.api import AsyncApi, MindsyncApiError, DEFAULT_BASE_URL
from aiohttp import ClientResponse, ClientConnectionError, FormData
from io import IOBase
API_KEY = 'an-api-key'
USER_ID = 'an-user-id'
RESPONSE_RV = dict(result... | 42.965909 | 138 | 0.656903 |
bf06d9a54893683667a74e4a18de2351b9f5889b | 1,101 | py | Python | looker_prometheus_exporter/tests/test_metric_fetcher.py | nested-tech/looker-prometheus-exporter | 7352ea9ea6e5aab7049b39882c7b3832baafc18b | [
"MIT"
] | null | null | null | looker_prometheus_exporter/tests/test_metric_fetcher.py | nested-tech/looker-prometheus-exporter | 7352ea9ea6e5aab7049b39882c7b3832baafc18b | [
"MIT"
] | null | null | null | looker_prometheus_exporter/tests/test_metric_fetcher.py | nested-tech/looker-prometheus-exporter | 7352ea9ea6e5aab7049b39882c7b3832baafc18b | [
"MIT"
] | null | null | null | from unittest import TestCase
from unittest.mock import patch, MagicMock
from requests import Response
from looker_prometheus_exporter.looker_metric_fetcher import LookerMetricFetcher
from looker_prometheus_exporter.looker_auth import LookerAuthenticationError
| 39.321429 | 114 | 0.749319 |
bf07234d71c7b574935a5582101336be79944027 | 5,801 | py | Python | src/baseline/exnn/exnn/xnn.py | fau-is/gam_comparison | c47e8f8ced281e0a71b7959a211cb5b289ac7606 | [
"MIT"
] | 1 | 2022-03-24T11:26:56.000Z | 2022-03-24T11:26:56.000Z | src/baseline/exnn/exnn/xnn.py | fau-is/gam_comparison | c47e8f8ced281e0a71b7959a211cb5b289ac7606 | [
"MIT"
] | null | null | null | src/baseline/exnn/exnn/xnn.py | fau-is/gam_comparison | c47e8f8ced281e0a71b7959a211cb5b289ac7606 | [
"MIT"
] | null | null | null | import tensorflow as tf
from .base import BaseNet
| 44.282443 | 197 | 0.666264 |
bf0736d5b20e13bca565ff9aa02b56f4f4cdfd07 | 1,708 | py | Python | randomwordz/words.py | noyoshi/randomwordz | cc785456465abd2234a4449bb559374c28660814 | [
"BSD-3-Clause"
] | null | null | null | randomwordz/words.py | noyoshi/randomwordz | cc785456465abd2234a4449bb559374c28660814 | [
"BSD-3-Clause"
] | null | null | null | randomwordz/words.py | noyoshi/randomwordz | cc785456465abd2234a4449bb559374c28660814 | [
"BSD-3-Clause"
] | null | null | null | # https://stackoverflow.com/questions/6028000/how-to-read-a-static-file-from-inside-a-python-package
# see above how to read in words from the files...
try:
import importlib.resources as pkg_resources
except ImportError:
# Try backported to PY<37 `importlib_resources`.
import importlib_resources as pkg_res... | 28.949153 | 100 | 0.580211 |
bf0a0817fceb6cb3452738d6ba612af45126de33 | 588 | py | Python | python/Exercicios/ex079.py | Robert-Marchinhaki/primeiros-passos-Python | 515c2c418bfb941bd9af14cf598eca7fe2985592 | [
"MIT"
] | null | null | null | python/Exercicios/ex079.py | Robert-Marchinhaki/primeiros-passos-Python | 515c2c418bfb941bd9af14cf598eca7fe2985592 | [
"MIT"
] | null | null | null | python/Exercicios/ex079.py | Robert-Marchinhaki/primeiros-passos-Python | 515c2c418bfb941bd9af14cf598eca7fe2985592 | [
"MIT"
] | null | null | null | numeros = list()
while True:
digitado = (int(input('Digite os valores: ')))
if digitado not in numeros[:]:
print('Nmero adicionado com sucesso...')
else:
numeros.remove(digitado)
print('Erro! Valor j digitado')
numeros.append(digitado)
parada = str(input('Quer adicionar mai... | 29.4 | 81 | 0.627551 |
bf0e7375f7aee88a0021d0ee0b3932c8be01309f | 3,403 | py | Python | eureka/S4_generate_lightcurves/clipping.py | afeinstein20/Eureka | 7c330086ff7978b81d0f6ebb83a88c0bee01dc50 | [
"MIT"
] | null | null | null | eureka/S4_generate_lightcurves/clipping.py | afeinstein20/Eureka | 7c330086ff7978b81d0f6ebb83a88c0bee01dc50 | [
"MIT"
] | null | null | null | eureka/S4_generate_lightcurves/clipping.py | afeinstein20/Eureka | 7c330086ff7978b81d0f6ebb83a88c0bee01dc50 | [
"MIT"
] | null | null | null | import numpy as np
from astropy.convolution import Box1DKernel, convolve
from astropy.stats import sigma_clip
def clip_outliers(data, log, wavelength, sigma=10, box_width=5, maxiters=5, fill_value='mask', verbose=False):
'''Find outliers in 1D time series.
Be careful when using this function on a time-seri... | 36.202128 | 161 | 0.685572 |
bf0fb5acc22e80083158c297652c5fa26da2e18c | 5,697 | py | Python | rrhood.py | rayjustinhuang/BitesofPy | 03b694c5259ff607621419d9677c5caff90a6057 | [
"MIT"
] | null | null | null | rrhood.py | rayjustinhuang/BitesofPy | 03b694c5259ff607621419d9677c5caff90a6057 | [
"MIT"
] | null | null | null | rrhood.py | rayjustinhuang/BitesofPy | 03b694c5259ff607621419d9677c5caff90a6057 | [
"MIT"
] | null | null | null | from collections import defaultdict
import string
CHARACTERS = ['Red Riding Hood',
# we're omitting 'mother' here for simplicity
#(= substring grandmother)
('Grandmother', 'Grandma', 'Granny'),
'wolf', 'woodsman']
text = """
Once upon a time, there was a little ... | 68.638554 | 259 | 0.72073 |
bf0fd2afe78b1e2ad990c12cd0e56c85a69e381d | 83 | py | Python | python.py | MjKay1/Pandas-and-Bokeh | 23e3a6fcd0301f7701c1c5720b86b81926f9fcbc | [
"Unlicense"
] | null | null | null | python.py | MjKay1/Pandas-and-Bokeh | 23e3a6fcd0301f7701c1c5720b86b81926f9fcbc | [
"Unlicense"
] | null | null | null | python.py | MjKay1/Pandas-and-Bokeh | 23e3a6fcd0301f7701c1c5720b86b81926f9fcbc | [
"Unlicense"
] | null | null | null | import pandas
data = pandas.read_csv('data/gapminder_gdp_oceania.csv')
print(data)
| 20.75 | 56 | 0.807229 |
bf101eee860699b761e7cd830f6392a50c600f29 | 3,164 | py | Python | EduSim/Envs/KSS/meta/Learner.py | bigdata-ustc/EduSim | 849eed229c24615e5f2c3045036311e83c22ea68 | [
"MIT"
] | 18 | 2019-11-11T03:45:35.000Z | 2022-02-09T15:31:51.000Z | EduSim/Envs/KSS/meta/Learner.py | ghzhao78506/EduSim | cb10e952eb212d8a9344143f889207b5cd48ba9d | [
"MIT"
] | 3 | 2020-10-23T01:05:57.000Z | 2021-03-16T12:12:24.000Z | EduSim/Envs/KSS/meta/Learner.py | bigdata-ustc/EduSim | 849eed229c24615e5f2c3045036311e83c22ea68 | [
"MIT"
] | 6 | 2020-06-09T21:32:00.000Z | 2022-03-12T00:25:18.000Z | # coding: utf-8
# 2019/11/26 @ tongshiwei
import numpy as np
import random
import math
import networkx as nx
from EduSim.Envs.meta import MetaLearner, MetaInfinityLearnerGroup, MetaLearningModel, Item
from EduSim.Envs.shared.KSS_KES.KS import influence_control
__all__ = ["Learner", "LearnerGroup"]
| 29.849057 | 104 | 0.617573 |
bf12f48a688a99e455dd7e4337c4da0fd88a8ec6 | 4,727 | py | Python | src/ultros/core/storage/config/yaml_roundtrip.py | UltrosBot/Ultros3K | 3aac86beecf94ff1391ca993eafaaf55e513b965 | [
"Artistic-2.0"
] | 11 | 2016-06-29T11:54:42.000Z | 2020-11-02T00:09:41.000Z | src/ultros/core/storage/config/yaml_roundtrip.py | UltrosBot/Ultros3K | 3aac86beecf94ff1391ca993eafaaf55e513b965 | [
"Artistic-2.0"
] | 4 | 2016-06-29T12:11:25.000Z | 2017-03-21T15:24:32.000Z | src/ultros/core/storage/config/yaml_roundtrip.py | UltrosBot/Ultros3K | 3aac86beecf94ff1391ca993eafaaf55e513b965 | [
"Artistic-2.0"
] | null | null | null | # coding=utf-8
"""
Class for YAML-based (roundtrip) configurations
This is a mutable configuration that keeps track of both structure and comments, and allows you to add comments
in certain circumstances as well.
To make use of this, make sure you use the `fmt` argument of the `get_config()` function in the storage ... | 25.690217 | 119 | 0.632748 |
bf155524d39c386738d32b78d8657cf2e8ac4e0f | 293 | py | Python | clinicadl/utils/network/__init__.py | sophieloiz/clinicadl | d26a1c6ce4f6da9de59e3d15c27ae3be2d33bc9d | [
"MIT"
] | null | null | null | clinicadl/utils/network/__init__.py | sophieloiz/clinicadl | d26a1c6ce4f6da9de59e3d15c27ae3be2d33bc9d | [
"MIT"
] | null | null | null | clinicadl/utils/network/__init__.py | sophieloiz/clinicadl | d26a1c6ce4f6da9de59e3d15c27ae3be2d33bc9d | [
"MIT"
] | null | null | null | from .autoencoder.models import AE_Conv4_FC3, AE_Conv5_FC3
from .cnn.models import Conv4_FC3, Conv5_FC3, Stride_Conv5_FC3, resnet18
from .cnn.random import RandomArchitecture
from .vae.vanilla_vae import (
Vanilla3DdenseVAE,
Vanilla3DVAE,
VanillaDenseVAE,
VanillaSpatialVAE,
)
| 29.3 | 72 | 0.798635 |
bf157dc27a91e99f29c658a6382564b4f0e1a006 | 804 | py | Python | account/migrations/0006_auto_20201005_1534.py | huanhuashengling/exam | 2d6bb2ea5da905c76b748caef0733cc9afca7daf | [
"Apache-2.0"
] | null | null | null | account/migrations/0006_auto_20201005_1534.py | huanhuashengling/exam | 2d6bb2ea5da905c76b748caef0733cc9afca7daf | [
"Apache-2.0"
] | null | null | null | account/migrations/0006_auto_20201005_1534.py | huanhuashengling/exam | 2d6bb2ea5da905c76b748caef0733cc9afca7daf | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.15 on 2020-10-05 07:34
from django.db import migrations, models
| 28.714286 | 137 | 0.578358 |
bf1590338f5ebdeb7ad55fecd78c338fd33c5131 | 1,492 | py | Python | 2021/4a.py | DanielDionne/advent_of_code | 891fd46b29a4eac2ef4ec1402df69dda10bd6c5d | [
"MIT"
] | null | null | null | 2021/4a.py | DanielDionne/advent_of_code | 891fd46b29a4eac2ef4ec1402df69dda10bd6c5d | [
"MIT"
] | null | null | null | 2021/4a.py | DanielDionne/advent_of_code | 891fd46b29a4eac2ef4ec1402df69dda10bd6c5d | [
"MIT"
] | null | null | null | import re
solve()
| 29.84 | 114 | 0.502681 |
bf17b2f0ea98563e28edc41e12b7db5fbfe9ce45 | 165 | py | Python | scheduler_service/api/v1/task/url.py | CoCongV/scheduler-service | c16ea8751b7259abe1b6bfa2e8e706aa2ea7e74a | [
"BSD-2-Clause"
] | 2 | 2019-11-18T14:25:04.000Z | 2020-08-01T13:16:40.000Z | scheduler_service/api/v1/task/url.py | CoCongV/scheduler-service | c16ea8751b7259abe1b6bfa2e8e706aa2ea7e74a | [
"BSD-2-Clause"
] | null | null | null | scheduler_service/api/v1/task/url.py | CoCongV/scheduler-service | c16ea8751b7259abe1b6bfa2e8e706aa2ea7e74a | [
"BSD-2-Clause"
] | null | null | null | # from sanic_restful import reqparse, Resource
# from scheduler_service.api import mongo_db
# url_parse = reqparse.RequestParser()
# url_parse.add_argument("name") | 27.5 | 46 | 0.8 |
bf18bd5e5fa5284c1ee0a56f9ee6c1dd7b2dc30a | 5,509 | py | Python | scripts/python/plot_radiation_advection.py | lanl/phoebus | c570f42882c1c9e01e3bfe4b00b22e15a7a9992b | [
"BSD-3-Clause"
] | 3 | 2022-03-24T22:09:12.000Z | 2022-03-29T23:16:21.000Z | scripts/python/plot_radiation_advection.py | lanl/phoebus | c570f42882c1c9e01e3bfe4b00b22e15a7a9992b | [
"BSD-3-Clause"
] | 8 | 2022-03-15T20:49:43.000Z | 2022-03-29T17:45:04.000Z | scripts/python/plot_radiation_advection.py | lanl/phoebus | c570f42882c1c9e01e3bfe4b00b22e15a7a9992b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# 2022. Triad National Security, LLC. All rights reserved. This
# program was produced under U.S. Government contract
# 89233218CNA000001 for Los Alamos National Laboratory (LANL), which
# is operated by Triad National Security, LLC for the U.S. Department
# of Energy/National Nuclear Security... | 35.541935 | 136 | 0.697223 |
bf1aae88684e54295fc7d7c2d5ed877f7a14c648 | 157 | py | Python | admin/apps.py | rodlukas/UP-admin | 08f36de0773f39c6222da82016bf1384af2cce18 | [
"MIT"
] | 4 | 2019-07-19T17:39:04.000Z | 2022-03-22T21:02:15.000Z | admin/apps.py | rodlukas/UP-admin | 08f36de0773f39c6222da82016bf1384af2cce18 | [
"MIT"
] | 53 | 2019-08-04T14:25:40.000Z | 2022-03-26T20:30:55.000Z | admin/apps.py | rodlukas/UP-admin | 08f36de0773f39c6222da82016bf1384af2cce18 | [
"MIT"
] | 3 | 2020-03-09T07:11:03.000Z | 2020-09-11T01:22:50.000Z | """
Konfigurace Django aplikace admin.
"""
from django.apps import AppConfig
| 15.7 | 34 | 0.713376 |
bf1b6e4f46c1e4abb58543f89c8c94320cfe0136 | 764 | py | Python | TE-2/PL-4/BPrint/print1.py | Adityajn/College-Codes | f40e1eee53b951f2101981230fc72201081fd5f7 | [
"Unlicense"
] | 1 | 2017-02-22T18:22:39.000Z | 2017-02-22T18:22:39.000Z | TE-2/PL-4/BPrint/print1.py | Adityajn/College-Codes | f40e1eee53b951f2101981230fc72201081fd5f7 | [
"Unlicense"
] | null | null | null | TE-2/PL-4/BPrint/print1.py | Adityajn/College-Codes | f40e1eee53b951f2101981230fc72201081fd5f7 | [
"Unlicense"
] | null | null | null | # Import libraries BrotherPrint and socket
from brotherprint import BrotherPrint
import socket
# Establish socket connection
f_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
f_socket.connect(("172.16.133.157", 9100)) # Supply IP address of printer and port (default 9100)
printjob = BrotherPrint(f_soc... | 34.727273 | 99 | 0.734293 |
bf1c5d7af21265d26444113979db55007a7cfb64 | 29 | py | Python | examples/__init__.py | DannyGoodall/codefurther | b6b1dc21e39f2ede9b9ac2a6c06d5816c87a610a | [
"Apache-2.0"
] | 1 | 2015-07-01T16:21:59.000Z | 2015-07-01T16:21:59.000Z | examples/__init__.py | DannyGoodall/codefurther | b6b1dc21e39f2ede9b9ac2a6c06d5816c87a610a | [
"Apache-2.0"
] | null | null | null | examples/__init__.py | DannyGoodall/codefurther | b6b1dc21e39f2ede9b9ac2a6c06d5816c87a610a | [
"Apache-2.0"
] | null | null | null | __author__ = 'Danny Goodall'
| 14.5 | 28 | 0.758621 |
bf1d0a2600c1e32dca7dd7713967984af9f10c7e | 7,731 | py | Python | emma/utils/visualizations.py | rpp0/emma | fab81e1c66b8a88d14e68b8878ddbb5ee6528de2 | [
"MIT"
] | 36 | 2019-01-08T12:49:36.000Z | 2022-03-31T08:11:48.000Z | emma/utils/visualizations.py | rpp0/emma | fab81e1c66b8a88d14e68b8878ddbb5ee6528de2 | [
"MIT"
] | 6 | 2020-01-28T22:59:05.000Z | 2022-02-10T00:14:43.000Z | emma/utils/visualizations.py | rpp0/emma | fab81e1c66b8a88d14e68b8878ddbb5ee6528de2 | [
"MIT"
] | 3 | 2019-02-12T11:55:42.000Z | 2020-08-12T23:30:05.000Z | import matplotlib.pyplot as plt
import os
import numpy as np
from datetime import datetime
from matplotlib.backends.backend_pdf import PdfPages
from emma.io.traceset import TraceSet
from emma.utils.utils import MaxPlotsReached, EMMAException
#plt.rcParams['axes.prop_cycle'] = plt.cycler(color=plt.get_cmap('flag').col... | 31.555102 | 112 | 0.567844 |
bf1eec4185206fab6a61df1d56c8c21212cdfa42 | 2,031 | py | Python | list-manual-packages.py | qidydl/debian-package-scripts | a68f2d4c493e00761cc7d6cdc11ca1e661684741 | [
"MIT"
] | null | null | null | list-manual-packages.py | qidydl/debian-package-scripts | a68f2d4c493e00761cc7d6cdc11ca1e661684741 | [
"MIT"
] | null | null | null | list-manual-packages.py | qidydl/debian-package-scripts | a68f2d4c493e00761cc7d6cdc11ca1e661684741 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""List manually-installed Debian packages
This script can be used to see which packages are flagged as having been installed manually. Manually-installed
packages are not eligible for autoremove. Managing this flag will ensure that libraries are cleaned up when no longer
needed.
This script o... | 28.605634 | 118 | 0.746923 |
bf1f8eb5906edde2845a41d14ef448bd75014ce7 | 1,040 | py | Python | tests/extensions/pdf/test_renderer.py | alexschiller/modular-file-renderer | 43d59f2a8f4eb210fe8cb844b0a5a1a0ae057a0d | [
"Apache-2.0"
] | null | null | null | tests/extensions/pdf/test_renderer.py | alexschiller/modular-file-renderer | 43d59f2a8f4eb210fe8cb844b0a5a1a0ae057a0d | [
"Apache-2.0"
] | null | null | null | tests/extensions/pdf/test_renderer.py | alexschiller/modular-file-renderer | 43d59f2a8f4eb210fe8cb844b0a5a1a0ae057a0d | [
"Apache-2.0"
] | null | null | null | import pytest
from mfr.core.provider import ProviderMetadata
from mfr.extensions.pdf import PdfRenderer
class TestPdfRenderer:
def test_render_pdf(self, renderer, metadata, assets_url):
body = renderer.render()
assert '<base href="{}/{}/web/">'.format(assets_url, 'pdf') in body
as... | 23.111111 | 110 | 0.689423 |
bf2071740b73e90331bef4394f5adc4ea46bf3e5 | 1,847 | py | Python | machine_learning/boston.py | zmaas/scratch | ee996bb6a15e3eb322a07b8637f8eb0046ec9d89 | [
"MIT"
] | null | null | null | machine_learning/boston.py | zmaas/scratch | ee996bb6a15e3eb322a07b8637f8eb0046ec9d89 | [
"MIT"
] | null | null | null | machine_learning/boston.py | zmaas/scratch | ee996bb6a15e3eb322a07b8637f8eb0046ec9d89 | [
"MIT"
] | null | null | null | '''Boston Housing Classification'''
import numpy as np
from keras.datasets import boston_housing
from keras import models
from keras import layers
(train_data, train_targets), (test_data,
test_targets) = boston_housing.load_data()
mean = train_data.mean(axis=0)
train_data -= mean
std = t... | 28.859375 | 78 | 0.655658 |
bf21626265f7f69b0e23a108e5e6c9e0e48662a4 | 3,094 | py | Python | web/prowlbackend/users/forms.py | stensjoberg/pton-prowl | 2151acbe68896495c407867e241fb459b2f626a5 | [
"MIT"
] | null | null | null | web/prowlbackend/users/forms.py | stensjoberg/pton-prowl | 2151acbe68896495c407867e241fb459b2f626a5 | [
"MIT"
] | 13 | 2018-06-20T15:50:12.000Z | 2022-03-22T20:25:39.000Z | web/prowlbackend/users/forms.py | stensjoberg/pton-prowl | 2151acbe68896495c407867e241fb459b2f626a5 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from users.models import User
from core.models import Course, Group
| 35.159091 | 115 | 0.653846 |
bf224bebc92e546b416ae65acd8df31c6d610e22 | 2,355 | py | Python | Deploy.py | Pr0gramist/PowerBuilderDeployment | b067ca55557b88ccc39266a270dbab2f88b4e094 | [
"MIT"
] | null | null | null | Deploy.py | Pr0gramist/PowerBuilderDeployment | b067ca55557b88ccc39266a270dbab2f88b4e094 | [
"MIT"
] | null | null | null | Deploy.py | Pr0gramist/PowerBuilderDeployment | b067ca55557b88ccc39266a270dbab2f88b4e094 | [
"MIT"
] | null | null | null | """
DEPLOY POWERBUILDER PACKAGES
Author: Stivan Kitchoukov
To run created file from command line: OrcaScr126 Deploy.dat
"""
import os
import subprocess
import time
PackageList = (
"cf_common",
"cf_account_ip",
"cf_ap",
"cf_ar",
"cf_cga",
"cf_common_trans",
"cf_crt",
... | 30.986842 | 108 | 0.601699 |
bf231f29d738cf1a12e825364e3815688ca78557 | 4,456 | py | Python | zorg/buildbot/builders/LibCXXBuilder.py | antiagainst/llvm-zorg | a5b58cdd800d0d45b1bdd1f7fe058db6acbfd918 | [
"Apache-2.0"
] | 1 | 2019-02-10T03:05:05.000Z | 2019-02-10T03:05:05.000Z | zorg/buildbot/builders/LibCXXBuilder.py | antiagainst/llvm-zorg | a5b58cdd800d0d45b1bdd1f7fe058db6acbfd918 | [
"Apache-2.0"
] | null | null | null | zorg/buildbot/builders/LibCXXBuilder.py | antiagainst/llvm-zorg | a5b58cdd800d0d45b1bdd1f7fe058db6acbfd918 | [
"Apache-2.0"
] | null | null | null |
import os
import buildbot
import buildbot.process.factory
import buildbot.steps.shell
import buildbot.steps.source as source
import buildbot.steps.source.svn as svn
import buildbot.process.properties as properties
import zorg.buildbot.commands.LitTestCommand as lit_test_command
import zorg.buildbot.util.artifacts as... | 41.259259 | 79 | 0.5864 |
bf23269a20352bd1e5bf1a525b6d3e5fd76ba4f9 | 1,760 | py | Python | pydeps/rules/ruleResultChecker.py | enableiot/iotanalytics-rule-engine | 8f7c0e00f3f534944af21255cf7d98fc632b08b2 | [
"Apache-2.0"
] | 3 | 2015-12-15T10:17:10.000Z | 2016-01-19T15:24:51.000Z | pydeps/rules/ruleResultChecker.py | enableiot/iotanalytics-rule-engine | 8f7c0e00f3f534944af21255cf7d98fc632b08b2 | [
"Apache-2.0"
] | null | null | null | pydeps/rules/ruleResultChecker.py | enableiot/iotanalytics-rule-engine | 8f7c0e00f3f534944af21255cf7d98fc632b08b2 | [
"Apache-2.0"
] | 2 | 2015-12-15T10:17:11.000Z | 2018-11-01T12:40:49.000Z | # Copyright (c) 2015 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 39.111111 | 85 | 0.718182 |
bf236a0773de3a927230fe201180262fee783588 | 6,372 | py | Python | extviews/viewset.py | BilalAlpaslan/fastapi-extviews | e3ce1c4916d86009705a09e165e5ee21a197962f | [
"MIT"
] | 16 | 2022-01-01T16:00:58.000Z | 2022-03-21T09:42:35.000Z | extviews/viewset.py | BilalAlpaslan/fastapi-extviews | e3ce1c4916d86009705a09e165e5ee21a197962f | [
"MIT"
] | null | null | null | extviews/viewset.py | BilalAlpaslan/fastapi-extviews | e3ce1c4916d86009705a09e165e5ee21a197962f | [
"MIT"
] | null | null | null | from typing import Callable, List, Sequence, Union
from fastapi import APIRouter, Header
from fastapi.params import Depends
from pydantic import BaseModel
from .crudset import BaseCrudSet
__all__ = ['ViewSet', 'CrudViewSet']
supported_methods_names: List[str] = [
'list', 'retrieve', 'create', 'update', 'partial_... | 37.704142 | 101 | 0.608443 |
bf24664ff4f061ae7a934264b0579dd203c773d6 | 6,456 | py | Python | wouldyouci_database/recommendation/contents_based_filtering.py | jhee514/wouldYouCi | 54793401fb51356587e5a4460eb606ed9943b30c | [
"MIT"
] | 1 | 2020-06-18T08:40:47.000Z | 2020-06-18T08:40:47.000Z | wouldyouci_database/recommendation/contents_based_filtering.py | jhee514/wouldYouCi | 54793401fb51356587e5a4460eb606ed9943b30c | [
"MIT"
] | 14 | 2021-03-19T08:55:06.000Z | 2022-03-12T00:37:51.000Z | wouldyouci_database/recommendation/contents_based_filtering.py | jhee514/wouldYouCi | 54793401fb51356587e5a4460eb606ed9943b30c | [
"MIT"
] | 1 | 2021-05-27T08:52:01.000Z | 2021-05-27T08:52:01.000Z | import os
import time
import pymysql
import pandas as pd
from decouple import config
from datetime import datetime
from sklearn.linear_model import Lasso
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
from sklearn.model_selection import RandomizedSearchCV
from sci... | 34.340426 | 105 | 0.614777 |
bf2469ca87fa101c85b17a0020e6ab7671ae18ca | 237,639 | py | Python | api/spotprices/scripts/config.py | gfortil/hpcc-internship | 8061771bcb4791fca54e6b1d74f0c019ad69bca4 | [
"MIT"
] | null | null | null | api/spotprices/scripts/config.py | gfortil/hpcc-internship | 8061771bcb4791fca54e6b1d74f0c019ad69bca4 | [
"MIT"
] | null | null | null | api/spotprices/scripts/config.py | gfortil/hpcc-internship | 8061771bcb4791fca54e6b1d74f0c019ad69bca4 | [
"MIT"
] | 1 | 2021-06-10T22:07:15.000Z | 2021-06-10T22:07:15.000Z | subscription = 'us-hpccplatform-dev'
subscription_id = 'ec0ba952-4ae9-4f69-b61c-4b96ff470038'
resource_prefix = 'roshan-test-'
n_threads = 5
image = "UbuntuLTS"
priority = "Spot"
max_price = "0.00001"
eviction_policy = "Deallocate"
spot_region_map = {
'centralus': ['Standard_A3', 'Standard_E80ids_v4', 'Standard_... | 2,424.887755 | 8,832 | 0.783642 |
bf25dc21b097b4039654bff5dabf2d9a9ccf1daa | 830 | py | Python | netrd/utilities/__init__.py | sdmccabe/netrd | f703c19b02f42c9f54bcab57014381da11dd58da | [
"MIT"
] | 116 | 2019-01-17T18:31:43.000Z | 2022-03-31T13:37:21.000Z | netrd/utilities/__init__.py | sdmccabe/netrd | f703c19b02f42c9f54bcab57014381da11dd58da | [
"MIT"
] | 175 | 2019-01-15T01:19:13.000Z | 2021-05-25T16:51:26.000Z | netrd/utilities/__init__.py | sdmccabe/netrd | f703c19b02f42c9f54bcab57014381da11dd58da | [
"MIT"
] | 36 | 2019-01-14T20:38:32.000Z | 2022-01-21T20:58:38.000Z | """
utilities
----------
Common utilities for use within ``netrd``.
"""
from .threshold import threshold
from .graph import (
create_graph,
ensure_undirected,
undirected,
ensure_unweighted,
unweighted,
)
from .read import read_time_series
from .cluster import clusterGraph
from .standardize import ... | 18.444444 | 42 | 0.683133 |
bf295ca777715f6aa9e9a9220331a760cad03d41 | 980 | py | Python | clickhouse_driver/columns/tuplecolumn.py | xzkostyan/clickhouse-driver | 9a8b4a0706d78ee9952737a9b277f448acf3eaf0 | [
"MIT"
] | null | null | null | clickhouse_driver/columns/tuplecolumn.py | xzkostyan/clickhouse-driver | 9a8b4a0706d78ee9952737a9b277f448acf3eaf0 | [
"MIT"
] | null | null | null | clickhouse_driver/columns/tuplecolumn.py | xzkostyan/clickhouse-driver | 9a8b4a0706d78ee9952737a9b277f448acf3eaf0 | [
"MIT"
] | null | null | null |
from .base import Column
from .util import get_inner_spec, get_inner_columns
| 28 | 69 | 0.681633 |
bf29b24d082fbb7129c2bab18736d49934635b11 | 5,518 | py | Python | vae/train_vae.py | mazrk7/tf_playground | 81ad741f2bfe439bab85783ccf82d4715a3adef6 | [
"MIT"
] | null | null | null | vae/train_vae.py | mazrk7/tf_playground | 81ad741f2bfe439bab85783ccf82d4715a3adef6 | [
"MIT"
] | null | null | null | vae/train_vae.py | mazrk7/tf_playground | 81ad741f2bfe439bab85783ccf82d4715a3adef6 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import sys
import tensorflow as tf
from dataset import load_data
from vae import VAE
from conv_vae import ConvVAE
IMAGE_SIZE = 28
IMAGE_PIXELS = IMAGE_SIZE * IMAGE_SIZE
# Define the VAE netw... | 45.229508 | 153 | 0.677419 |
bf2a1be151e93e4a43b932a359e5f6bd5186b1b3 | 8,810 | py | Python | nodeconductor/quotas/models.py | p-p-m/nodeconductor | bc702302ef65c89793452f0fd6ca9a6bec79782f | [
"Apache-2.0"
] | null | null | null | nodeconductor/quotas/models.py | p-p-m/nodeconductor | bc702302ef65c89793452f0fd6ca9a6bec79782f | [
"Apache-2.0"
] | null | null | null | nodeconductor/quotas/models.py | p-p-m/nodeconductor | bc702302ef65c89793452f0fd6ca9a6bec79782f | [
"Apache-2.0"
] | null | null | null | from django.contrib.contenttypes import fields as ct_fields
from django.contrib.contenttypes import models as ct_models
from django.db import models, transaction
from django.db.models import Sum
from django.utils.encoding import python_2_unicode_compatible
from nodeconductor.logging.log import LoggableMixin
from nodec... | 38.810573 | 123 | 0.624404 |
bf2bb0444957a564a4fef3e32be0670e3dc59829 | 15,049 | py | Python | DPPO/dppo_cont_gae_dist_gpu.py | ChuaCheowHuan/reinforcement_learning | 037c292e5d81cd6d302566969c0391aba47d0343 | [
"MIT"
] | 32 | 2019-06-01T18:10:12.000Z | 2021-12-17T08:12:48.000Z | DPPO/dppo_cont_gae_dist_gpu.py | ChuaCheowHuan/reinforcement_learning | 037c292e5d81cd6d302566969c0391aba47d0343 | [
"MIT"
] | 9 | 2020-03-24T18:21:20.000Z | 2022-02-10T01:41:29.000Z | DPPO/dppo_cont_gae_dist_gpu.py | ChuaCheowHuan/reinforcement_learning | 037c292e5d81cd6d302566969c0391aba47d0343 | [
"MIT"
] | 9 | 2019-05-05T12:04:30.000Z | 2021-11-13T12:14:56.000Z | """
Distributed Proximal Policy Optimization (Distributed PPO or DPPO) continuous
version implementation with distributed Tensorflow and Pythons multiprocessing
package. This implementation uses normalized running rewards with GAE. The code
is tested with Gyms continuous action space environment, Pendulum-v0 on Colab.
... | 41.802778 | 171 | 0.618779 |
bf2c7de182d5aadb7a0bb2f77fcf4bcb98312fdc | 910 | py | Python | common/middleware.py | Ins-V/wc_crm | 5d75907bb48e892328712ed0b2cf96b9083239aa | [
"MIT"
] | null | null | null | common/middleware.py | Ins-V/wc_crm | 5d75907bb48e892328712ed0b2cf96b9083239aa | [
"MIT"
] | null | null | null | common/middleware.py | Ins-V/wc_crm | 5d75907bb48e892328712ed0b2cf96b9083239aa | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import login_required
from django.urls import reverse_lazy
| 32.5 | 102 | 0.696703 |
bf2ca4850e1601c96655725a34150bcc61effb04 | 7,417 | py | Python | main_entry.py | LuxxxLucy/text_generation_SeqRNN | 27676f8c0844a69dd9c68ef6ff519b7ff03e50b9 | [
"MIT"
] | null | null | null | main_entry.py | LuxxxLucy/text_generation_SeqRNN | 27676f8c0844a69dd9c68ef6ff519b7ff03e50b9 | [
"MIT"
] | 1 | 2017-08-28T18:45:04.000Z | 2017-08-30T09:27:37.000Z | main_entry.py | LuxxxLucy/text_generation_SeqRNN | 27676f8c0844a69dd9c68ef6ff519b7ff03e50b9 | [
"MIT"
] | null | null | null | # utility modules
import os
from os import path
import shutil
import sys
import time
import json
import argparse
import numpy as np
from pprint import pprint as pr
ITEM_DIM=100
dir_path = path.dirname(path.dirname(path.dirname(path.realpath(__file__))))
sys.path.append(dir_path)
import settings
# -------------------... | 41.903955 | 96 | 0.637994 |
bf2e31dad78bdc69eb2a8bd13549245a36b50b40 | 4,741 | py | Python | data_process/face_rectify.py | ZephyrDu/Face-Sketch-Wild | 4e967e58b8cb95af74d5fb26a4f9761a966c04bd | [
"MIT"
] | 73 | 2018-11-13T09:32:31.000Z | 2022-02-25T13:28:29.000Z | data_process/face_rectify.py | ZephyrDu/Face-Sketch-Wild | 4e967e58b8cb95af74d5fb26a4f9761a966c04bd | [
"MIT"
] | 4 | 2019-10-22T09:15:21.000Z | 2021-12-02T08:21:54.000Z | data_process/face_rectify.py | ZephyrDu/Face-Sketch-Wild | 4e967e58b8cb95af74d5fb26a4f9761a966c04bd | [
"MIT"
] | 22 | 2018-11-04T00:08:30.000Z | 2022-03-07T00:50:13.000Z | """
Rectify the face photo according to the paper: Real-Time Exemplar-Based Face Sketch Synthesis.
shape: h=250, w=200
position: left eye (x=75,y=125), right eye (x=125, y=125)
This module use similarity transformation to roughly align the two eyes.
Specifically, the transformation matrix can be writte... | 37.928 | 109 | 0.669479 |
bf2ea22b630b974814db2da578466418ae00ae5f | 643 | py | Python | old_app.py | stimura/interactive_visualizations_and_dashboards_plotly.js | 980ee5078b2fc93fc2f906769b97b013885d5580 | [
"ADSL"
] | null | null | null | old_app.py | stimura/interactive_visualizations_and_dashboards_plotly.js | 980ee5078b2fc93fc2f906769b97b013885d5580 | [
"ADSL"
] | null | null | null | old_app.py | stimura/interactive_visualizations_and_dashboards_plotly.js | 980ee5078b2fc93fc2f906769b97b013885d5580 | [
"ADSL"
] | null | null | null | from data_wrangling import *
from flask import Flask, jsonify, render_template
app = Flask(__name__)
if __name__ == "__main__":
app.run(debug=True)
| 18.371429 | 57 | 0.642302 |
bf2ee5f4b8066d4690c806b8c907df5c94fb9ee9 | 8,813 | py | Python | pysnmp-with-texts/BW-BroadworksEMSFault.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/BW-BroadworksEMSFault.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/BW-BroadworksEMSFault.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module BW-BroadworksEMSFault (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BW-BroadworksEMSFault
# Produced by pysmi-0.3.4 at Wed May 1 11:42:07 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (def... | 179.857143 | 715 | 0.794849 |
bf3400e9e5516570d2ee907dd1eae2f4cc26b378 | 9,145 | py | Python | tests/test_wildcard_matching.py | stachenov/PyLeetCode | cb13700d428854eff46a762542a63d691578d5b6 | [
"Unlicense"
] | null | null | null | tests/test_wildcard_matching.py | stachenov/PyLeetCode | cb13700d428854eff46a762542a63d691578d5b6 | [
"Unlicense"
] | null | null | null | tests/test_wildcard_matching.py | stachenov/PyLeetCode | cb13700d428854eff46a762542a63d691578d5b6 | [
"Unlicense"
] | null | null | null | import pytest
from problems.wildcard_matching import Solution
| 295 | 4,114 | 0.951121 |
bf34bb0f6cb77d847d353e75322326b1e613f85e | 1,484 | py | Python | word2vec/data_test.py | luozhouyang/machine-learning-notes | 332bea905398891fed4a98aa139eac02c88cb5ae | [
"Apache-2.0"
] | 73 | 2018-09-07T06:47:18.000Z | 2022-01-25T06:14:41.000Z | word2vec/data_test.py | luozhouyang/machine-learning-notes | 332bea905398891fed4a98aa139eac02c88cb5ae | [
"Apache-2.0"
] | 2 | 2018-10-18T06:40:19.000Z | 2019-11-16T01:48:39.000Z | word2vec/data_test.py | luozhouyang/machine-learning-notes | 332bea905398891fed4a98aa139eac02c88cb5ae | [
"Apache-2.0"
] | 47 | 2018-09-27T10:50:21.000Z | 2022-01-25T06:20:23.000Z | # Copyright 2018 luozhouyang
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 31.574468 | 80 | 0.679919 |