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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cab39dac3498266e965d7a8495df886ca0322b45 | 31,860 | py | Python | src/setprogramoptions/unittests/test_SetProgramOptionsCMake.py | sandialabs/SetProgramOptions | c0b3cec0e2309d726f450b449c080a33e7df3092 | [
"BSD-3-Clause"
] | 1 | 2021-12-21T21:53:26.000Z | 2021-12-21T21:53:26.000Z | src/setprogramoptions/unittests/test_SetProgramOptionsCMake.py | sandialabs/SetProgramOptions | c0b3cec0e2309d726f450b449c080a33e7df3092 | [
"BSD-3-Clause"
] | null | null | null | src/setprogramoptions/unittests/test_SetProgramOptionsCMake.py | sandialabs/SetProgramOptions | c0b3cec0e2309d726f450b449c080a33e7df3092 | [
"BSD-3-Clause"
] | 3 | 2021-12-27T18:29:04.000Z | 2022-01-31T14:08:41.000Z | #!/usr/bin/env python3
# -*- mode: python; py-indent-offset: 4; py-continuation-offset: 4 -*-
#===============================================================================
#
# License (3-Clause BSD)
# ----------------------
# Copyright 2021 National Technology & Engineering Solutions of Sandia,
# LLC (NTESS). Under ... | 40.227273 | 177 | 0.570088 |
cab3e0c73d1808d2ec171a56c51c18d7eab9c9eb | 603 | py | Python | accelRF/rep/base.py | nexuslrf/Accel-RF | 6e1034c27ea2a3f51093a6dcb10310e7fae04e30 | [
"MIT"
] | null | null | null | accelRF/rep/base.py | nexuslrf/Accel-RF | 6e1034c27ea2a3f51093a6dcb10310e7fae04e30 | [
"MIT"
] | null | null | null | accelRF/rep/base.py | nexuslrf/Accel-RF | 6e1034c27ea2a3f51093a6dcb10310e7fae04e30 | [
"MIT"
] | null | null | null | from typing import Tuple
import torch.nn as nn
from torch import Tensor | 22.333333 | 51 | 0.648425 |
cab43f37667bf4a445a87188b43c261b7be4262e | 1,250 | py | Python | URLSHORT/lib.py | its-mr-monday/Url-Shortener | bca0f9c1a8d6c5a686704d7a410351b9ce31439b | [
"MIT"
] | null | null | null | URLSHORT/lib.py | its-mr-monday/Url-Shortener | bca0f9c1a8d6c5a686704d7a410351b9ce31439b | [
"MIT"
] | null | null | null | URLSHORT/lib.py | its-mr-monday/Url-Shortener | bca0f9c1a8d6c5a686704d7a410351b9ce31439b | [
"MIT"
] | null | null | null | import random
import string
import requests
| 24.509804 | 72 | 0.604 |
cab5b79870681508e9b3e9a34436132f63a674f8 | 3,985 | py | Python | main.py | hamolicious/Python-Word-Search-Generator | 9a8ce3f54afd1e2dd286b89bdb9052bb03023ccf | [
"Apache-2.0"
] | null | null | null | main.py | hamolicious/Python-Word-Search-Generator | 9a8ce3f54afd1e2dd286b89bdb9052bb03023ccf | [
"Apache-2.0"
] | null | null | null | main.py | hamolicious/Python-Word-Search-Generator | 9a8ce3f54afd1e2dd286b89bdb9052bb03023ccf | [
"Apache-2.0"
] | null | null | null |
from random import choice, randint
import os
width, height, words = get_details()
while True:
grid = generate_grid(width, height)
grid = populate_grid(words, grid)
clear()
draw_grid(grid)
input('>')
| 20.863874 | 156 | 0.430866 |
cab84df34eb13ac7d2ea53e10575d0f1080c819c | 4,416 | py | Python | Scripts/HLS_Stream_Dowloader/hls_dowloader.py | WilliamMokoena/portfolio | 8176d81e669279510af9fc7ff98aa769603cff60 | [
"MIT"
] | null | null | null | Scripts/HLS_Stream_Dowloader/hls_dowloader.py | WilliamMokoena/portfolio | 8176d81e669279510af9fc7ff98aa769603cff60 | [
"MIT"
] | null | null | null | Scripts/HLS_Stream_Dowloader/hls_dowloader.py | WilliamMokoena/portfolio | 8176d81e669279510af9fc7ff98aa769603cff60 | [
"MIT"
] | null | null | null | import sys, os, asyncio, shutil
import wget
from ffmpeg import FFmpeg
# Func calls wget to download the file given in url arg
# Fuc calls ffmpeg to transcode .m3u8 to .mp4
# Read cli args : 'hls-downloader.py ["m3u8_url"] ["mp4_output_name"] ["storage_folder"]'
input_url = sys.argv[1]
output_filename = sys.argv[... | 25.976471 | 93 | 0.584013 |
cab89ee2fce3fceaa9fcc3a842fbaa80ba1da5df | 2,532 | py | Python | fairlearn/metrics/__init__.py | alliesaizan/fairlearn | 846ce6cdaf188e32a545d3f90197515a4a5bc471 | [
"MIT"
] | 1,142 | 2019-10-14T18:05:46.000Z | 2022-03-30T06:56:54.000Z | fairlearn/metrics/__init__.py | alliesaizan/fairlearn | 846ce6cdaf188e32a545d3f90197515a4a5bc471 | [
"MIT"
] | 623 | 2019-10-14T17:11:25.000Z | 2022-03-31T17:46:54.000Z | fairlearn/metrics/__init__.py | alliesaizan/fairlearn | 846ce6cdaf188e32a545d3f90197515a4a5bc471 | [
"MIT"
] | 299 | 2019-10-15T00:09:53.000Z | 2022-03-30T12:35:27.000Z | # Copyright (c) Microsoft Corporation and Fairlearn contributors.
# Licensed under the MIT License.
"""Functionality for computing metrics, with a particular focus on disaggregated metrics.
For our purpose, a metric is a function with signature
``f(y_true, y_pred, ....)``
where ``y_true`` are the set of true values a... | 30.142857 | 93 | 0.75079 |
cab923dc066cf5ab57a2921c1652c8204411aadb | 4,360 | py | Python | detector/ssd/ssd.py | Senyaaa/detection-experiments | 5e80dd458e886ca27db5420d25ade8f9d74ae5a8 | [
"Apache-2.0"
] | 5 | 2020-06-08T08:21:03.000Z | 2021-03-03T21:54:06.000Z | detector/ssd/ssd.py | Senyaaa/detection-experiments | 5e80dd458e886ca27db5420d25ade8f9d74ae5a8 | [
"Apache-2.0"
] | 3 | 2021-02-06T20:21:02.000Z | 2021-06-06T18:46:27.000Z | detector/ssd/ssd.py | Senyaaa/detection-experiments | 5e80dd458e886ca27db5420d25ade8f9d74ae5a8 | [
"Apache-2.0"
] | 2 | 2020-06-08T08:21:05.000Z | 2021-02-06T11:44:04.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from detector.ssd.utils import box_utils
from nn.separable_conv_2d import SeparableConv2d
from fpn.extension import Extension
from detector.ssd.to_predictions import ToPredictions
| 32.296296 | 74 | 0.682339 |
caba47926befb920d795eb25c2284edc52eb5271 | 1,044 | py | Python | commands/serverinfo.py | Stereo528/Osmium | cd17912b2cd559238b25c75f2d53785c72452aca | [
"MIT"
] | 2 | 2021-12-15T10:50:45.000Z | 2022-02-15T13:15:30.000Z | commands/serverinfo.py | Stereo528/Osmium | cd17912b2cd559238b25c75f2d53785c72452aca | [
"MIT"
] | 6 | 2021-02-23T17:08:09.000Z | 2021-02-23T23:33:55.000Z | commands/serverinfo.py | Stereo528/Osmium | cd17912b2cd559238b25c75f2d53785c72452aca | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
from main import getAlias | 45.391304 | 160 | 0.694444 |
cababbb0c22d7ff63e14475c4594f1e5800c07e0 | 6,019 | py | Python | sklearn_pipeline_enhancements/shared/transformers.py | Kgoetsch/sklearn_pipeline_enhancements | 9afb9e03d762c3d8ecd19639f3b84f38cb33a71d | [
"MIT"
] | 11 | 2017-04-18T00:19:05.000Z | 2020-04-06T22:16:35.000Z | sklearn_pipeline_enhancements/shared/transformers.py | OlliePage/sklearn_pipeline_enhancements | 9afb9e03d762c3d8ecd19639f3b84f38cb33a71d | [
"MIT"
] | null | null | null | sklearn_pipeline_enhancements/shared/transformers.py | OlliePage/sklearn_pipeline_enhancements | 9afb9e03d762c3d8ecd19639f3b84f38cb33a71d | [
"MIT"
] | 5 | 2017-12-05T20:14:55.000Z | 2021-03-29T12:25:36.000Z | import numpy as np
import pandas as pd
from patsy.highlevel import dmatrix
from sklearn.base import TransformerMixin, BaseEstimator
from sklearn.pipeline import _name_estimators, Pipeline
__author__ = 'kgoetsch'
def extract_and_denull(var, na=0):
return Pipeline([
('extract', FactorExtractor(var)),
... | 25.943966 | 112 | 0.632663 |
cabbf72f74049f95a62204023ec60f67c663a913 | 1,130 | py | Python | exercises/exercise7.py | AsBeeb/DistributedExercisesAAU | b84343d5d5b86ccb4750d47a8594a428ecbd83ce | [
"MIT"
] | 4 | 2021-09-16T12:52:04.000Z | 2022-01-09T15:44:49.000Z | exercises/exercise7.py | AsBeeb/DistributedExercisesAAU | b84343d5d5b86ccb4750d47a8594a428ecbd83ce | [
"MIT"
] | null | null | null | exercises/exercise7.py | AsBeeb/DistributedExercisesAAU | b84343d5d5b86ccb4750d47a8594a428ecbd83ce | [
"MIT"
] | 21 | 2021-09-06T09:39:18.000Z | 2022-03-08T12:18:23.000Z | import math
import random
import threading
import time
from emulators.Medium import Medium
from emulators.Device import Device
from emulators.MessageStub import MessageStub
| 24.565217 | 109 | 0.652212 |
cabc29877369a0222f319b94559f9ee8817e0fb8 | 4,036 | py | Python | pait/util/_pydantic_util.py | so1n/pa | bf43a20f54b6b7e9f1bd6531c49f4f39deb68399 | [
"Apache-2.0"
] | 19 | 2020-08-26T13:46:33.000Z | 2022-02-22T07:48:29.000Z | pait/util/_pydantic_util.py | so1n/pa | bf43a20f54b6b7e9f1bd6531c49f4f39deb68399 | [
"Apache-2.0"
] | 1 | 2021-06-06T17:45:54.000Z | 2021-06-06T17:45:54.000Z | pait/util/_pydantic_util.py | so1n/pa | bf43a20f54b6b7e9f1bd6531c49f4f39deb68399 | [
"Apache-2.0"
] | 1 | 2022-01-21T20:25:33.000Z | 2022-01-21T20:25:33.000Z | from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Type, Union
from pydantic.schema import (
default_ref_template,
get_flat_models_from_model,
get_long_model_name,
get_model,
get_schema_ref,
model_process_schema,
normalize_name,
)
if TYPE_CHECKING:
from pydantic import BaseMod... | 42.93617 | 116 | 0.724727 |
cabd038328a350d6730ea789068223bf2e852a25 | 526 | py | Python | experimental/plotlyDelaunay3D.py | FYP-DES5/deepscan-core | b6ce70ae69577fbdf5b80b30c4e83c7ee9cf6942 | [
"MIT"
] | null | null | null | experimental/plotlyDelaunay3D.py | FYP-DES5/deepscan-core | b6ce70ae69577fbdf5b80b30c4e83c7ee9cf6942 | [
"MIT"
] | null | null | null | experimental/plotlyDelaunay3D.py | FYP-DES5/deepscan-core | b6ce70ae69577fbdf5b80b30c4e83c7ee9cf6942 | [
"MIT"
] | null | null | null | import plotly.plotly as py
from plotly.graph_objs import *
import numpy as np
import matplotlib.cm as cm
from scipy.spatial import Delaunay
u=np.linspace(0,2*np.pi, 24)
v=np.linspace(-1,1, 8)
u,v=np.meshgrid(u,v)
u=u.flatten()
v=v.flatten()
#evaluate the parameterization at the flattened u and v
tp=1+0.5*v*np.cos(u/... | 22.869565 | 68 | 0.731939 |
cabe8c977597c3348430dae0fd1a0dcbabe5b972 | 3,184 | py | Python | src/sardana/taurus/qt/qtcore/tango/sardana/pool.py | marc2332/sardana | 48dc9191baaa63f6c714d8c025e8f3f96548ad26 | [
"CC-BY-3.0"
] | 43 | 2016-11-25T15:21:23.000Z | 2021-08-20T06:09:40.000Z | src/sardana/taurus/qt/qtcore/tango/sardana/pool.py | marc2332/sardana | 48dc9191baaa63f6c714d8c025e8f3f96548ad26 | [
"CC-BY-3.0"
] | 1,263 | 2016-11-25T15:58:37.000Z | 2021-11-02T22:23:47.000Z | src/sardana/taurus/qt/qtcore/tango/sardana/pool.py | marc2332/sardana | 48dc9191baaa63f6c714d8c025e8f3f96548ad26 | [
"CC-BY-3.0"
] | 58 | 2016-11-21T11:33:55.000Z | 2021-09-01T06:21:21.000Z | #!/usr/bin/env python
##############################################################################
##
# This file is part of Sardana
##
# http://www.sardana-controls.org/
##
# Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain
##
# Sardana is free software: you can redistribute it and/or modify
# it under th... | 33.166667 | 86 | 0.659548 |
cac1340a7afa2d15888e2ebc2d6dd2802d2bd8de | 85 | py | Python | basics_data_structure/queue.py | corenel/algorithm-exercises | f3f31f709e289e590c98247c019d36fc9cc44faf | [
"MIT"
] | null | null | null | basics_data_structure/queue.py | corenel/algorithm-exercises | f3f31f709e289e590c98247c019d36fc9cc44faf | [
"MIT"
] | null | null | null | basics_data_structure/queue.py | corenel/algorithm-exercises | f3f31f709e289e590c98247c019d36fc9cc44faf | [
"MIT"
] | null | null | null | """
Queue
https://algorithm.yuanbin.me/zh-hans/basics_data_structure/queue.html
"""
| 14.166667 | 69 | 0.752941 |
cac8d19cf2fbd34c80ea8f4c9aeb60a84c12ab4c | 1,542 | py | Python | after/trans.py | Windsooon/Comments | 47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9 | [
"MIT"
] | 1 | 2020-07-08T06:17:54.000Z | 2020-07-08T06:17:54.000Z | after/trans.py | Windsooon/Comments | 47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9 | [
"MIT"
] | null | null | null | after/trans.py | Windsooon/Comments | 47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9 | [
"MIT"
] | null | null | null | import os
import csv
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from comments.base import DATA_DIR, cut_words, sigmoid
t = Trans()
# t.pro('fin_useless.csv')
t.show('output_fin_useless.csv')
| 29.09434 | 120 | 0.576524 |
cac957160334299ea86d99379b7a64786fa17120 | 2,071 | py | Python | titan/api_pkg/mutation/props.py | mnieber/gen | 65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9 | [
"MIT"
] | null | null | null | titan/api_pkg/mutation/props.py | mnieber/gen | 65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9 | [
"MIT"
] | null | null | null | titan/api_pkg/mutation/props.py | mnieber/gen | 65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9 | [
"MIT"
] | null | null | null | from moonleap import u0
from moonleap.typespec.field_spec import FieldSpec, FormFieldSpec
from moonleap.typespec.type_spec_store import TypeSpec, type_spec_store
from titan.api_pkg.mutation.default_outputs_type_spec import default_outputs_type_spec
| 30.455882 | 86 | 0.695316 |
cac979ac83238ac6883853f4946f27c46d7d2e84 | 10,337 | py | Python | api/opentrons/instruments/pipette_config.py | heyoni/opentrons | abb4c742091d800541ed27273c6865fd5ba3aeac | [
"Apache-2.0"
] | null | null | null | api/opentrons/instruments/pipette_config.py | heyoni/opentrons | abb4c742091d800541ed27273c6865fd5ba3aeac | [
"Apache-2.0"
] | null | null | null | api/opentrons/instruments/pipette_config.py | heyoni/opentrons | abb4c742091d800541ed27273c6865fd5ba3aeac | [
"Apache-2.0"
] | null | null | null | import logging
import os
import json
from collections import namedtuple
from opentrons.config import get_config_index
FILE_DIR = os.path.abspath(os.path.dirname(__file__))
log = logging.getLogger(__name__)
pipette_config = namedtuple(
'pipette_config',
[
'plunger_positions',
'pick_up_curren... | 30.764881 | 79 | 0.65164 |
cacadf76d959296c2be37d92baf26148aaa927bb | 4,417 | py | Python | pysnmp/Unisphere-Products-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/Unisphere-Products-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/Unisphere-Products-MIB.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 Unisphere-Products-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Unisphere-Products-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:26:09 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 105.166667 | 856 | 0.737152 |
cacbc63aebd384ee4e0145c5118d6ffecda40a4b | 5,006 | py | Python | src/main.py | MauroLuzzatto/algorithmic-explanations | 4a362ae9576cc68ecf4b61dd6bad2105ff62bf57 | [
"Apache-2.0"
] | null | null | null | src/main.py | MauroLuzzatto/algorithmic-explanations | 4a362ae9576cc68ecf4b61dd6bad2105ff62bf57 | [
"Apache-2.0"
] | null | null | null | src/main.py | MauroLuzzatto/algorithmic-explanations | 4a362ae9576cc68ecf4b61dd6bad2105ff62bf57 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 28 17:16:29 2020
@author: mauro
"""
import logging
import os
from explanation import (
CounterfactualExplanation,
PermutationExplanation,
ShapleyExplanation,
SurrogateModelExplanation,
ControlGroupExplanation
)
from src.model.config import path_base
f... | 28.605714 | 84 | 0.646025 |
cacbc9b4cfe03469a1b46747898d31856ab1f581 | 3,752 | py | Python | det.py | styler00dollar/CenDetect | eba84c3702c5196b40e994515f399ae0db2e43fb | [
"Apache-2.0"
] | 3 | 2021-07-19T16:49:18.000Z | 2021-07-19T19:24:26.000Z | det.py | styler00dollar/CenDetect | eba84c3702c5196b40e994515f399ae0db2e43fb | [
"Apache-2.0"
] | null | null | null | det.py | styler00dollar/CenDetect | eba84c3702c5196b40e994515f399ae0db2e43fb | [
"Apache-2.0"
] | null | null | null | import asyncio
from argparse import ArgumentParser
from mmdet.apis import (async_inference_detector, inference_detector,
init_detector, show_result_pyplot)
from mmcv.runner import wrap_fp16_model
import cv2
import numpy as np
from tqdm import tqdm
import os
import glob
import torch
# dont pri... | 36.427184 | 208 | 0.679104 |
cacd5c042e61c49091f95d611b580f1100626117 | 3,357 | py | Python | command/sub8_alarm/alarm_handlers/kill.py | bhostetler18/SubjuGator | 2f56231d821bc802988264d0eab3005f8286a597 | [
"MIT"
] | null | null | null | command/sub8_alarm/alarm_handlers/kill.py | bhostetler18/SubjuGator | 2f56231d821bc802988264d0eab3005f8286a597 | [
"MIT"
] | null | null | null | command/sub8_alarm/alarm_handlers/kill.py | bhostetler18/SubjuGator | 2f56231d821bc802988264d0eab3005f8286a597 | [
"MIT"
] | null | null | null | import rospy
from ros_alarms import HandlerBase, Alarm
from actionlib import SimpleActionClient, TerminalState
from mil_msgs.msg import BagOnlineAction, BagOnlineGoal
import os
| 36.096774 | 107 | 0.619303 |
cacea4a58d86e5f652adf524e84090333af95605 | 12,094 | py | Python | Projects/Healthcare/breast-cancer/src/data_loading/augmentations.py | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | 7adab3877fc1d3f1d5f57e6c1743dae8f76f72c5 | [
"Apache-2.0"
] | 3,266 | 2017-08-06T16:51:46.000Z | 2022-03-30T07:34:24.000Z | Projects/Healthcare/breast-cancer/src/data_loading/augmentations.py | Yasin-Shah/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | 243a2a744ced81b69438e08e981249d7629a1f03 | [
"Apache-2.0"
] | 150 | 2017-08-28T14:59:36.000Z | 2022-03-11T23:21:35.000Z | Projects/Healthcare/breast-cancer/src/data_loading/augmentations.py | sourcecode369/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | 372874b93b0d054abc499887cba39e93a00f10a9 | [
"Apache-2.0"
] | 1,449 | 2017-08-06T17:40:59.000Z | 2022-03-31T12:03:24.000Z | # Copyright (C) 2019 Nan Wu, Jason Phang, Jungkyu Park, Yiqiu Shen, Zhe Huang, Masha Zorin,
# Stanisaw Jastrzbski, Thibault Fvry, Joe Katsnelson, Eric Kim, Stacey Wolfson, Ujas Parikh,
# Sushma Gaddam, Leng Leng Young Lin, Kara Ho, Joshua D. Weinstein, Beatriu Reig, Yiming Gao,
# Hildegard Toth, Kristine Pysar... | 44.792593 | 117 | 0.670415 |
caceb51d93c36ec68a44bf085fefaa6d893e959c | 2,609 | py | Python | ooobuild/dyn/awt/field_unit.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/dyn/awt/field_unit.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/dyn/awt/field_unit.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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... | 37.811594 | 106 | 0.708317 |
cad072e6da4ed8b99fa019319f2a53f7231fa953 | 7,202 | py | Python | utils.py | zrongcheng/srcnn | 33942c0a54fbdc3c59c4ab796c98a64eef10db77 | [
"Apache-2.0"
] | null | null | null | utils.py | zrongcheng/srcnn | 33942c0a54fbdc3c59c4ab796c98a64eef10db77 | [
"Apache-2.0"
] | null | null | null | utils.py | zrongcheng/srcnn | 33942c0a54fbdc3c59c4ab796c98a64eef10db77 | [
"Apache-2.0"
] | null | null | null | """
Scipy version > 0.18 is needed, due to 'mode' option from scipy.misc.imread function
"""
import os
import glob
import h5py
import random
import matplotlib.pyplot as plt
from PIL import Image # for loading images as YCbCr format
import Scipy.misc
import Scipy.ndimage
import numpy as np
import tensorflow as tf
F... | 31.177489 | 109 | 0.650097 |
cad1115bd177c78411f2be817f4464e97774f362 | 826 | py | Python | db/mongodb/save_all.py | kosyachniy/dev | 39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4 | [
"Apache-2.0"
] | 13 | 2018-12-17T23:30:54.000Z | 2021-12-29T14:31:43.000Z | db/mongodb/save_all.py | kosyachniy/dev | 39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4 | [
"Apache-2.0"
] | 36 | 2018-06-07T21:34:13.000Z | 2022-03-13T21:01:43.000Z | db/mongodb/save_all.py | kosyachniy/dev | 39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4 | [
"Apache-2.0"
] | 2 | 2021-01-03T11:47:20.000Z | 2021-12-29T14:31:49.000Z | import os
import json
from pymongo import MongoClient
with open('keys.json', 'r') as file:
keys = json.loads(file.read())
db_all = MongoClient(
username=keys['login'],
password=keys['password'],
authSource='admin',
authMechanism='SCRAM-SHA-1'
)
for db_name in db_all.list_database_names():
if db_name in ('ad... | 22.324324 | 75 | 0.670702 |
cad1619bf5ab33d3d587d63fa05c0c21b4bc2a86 | 797 | py | Python | setup.py | saksham/nepse-crawler | adee65ebc86e269c2941d48f91018b8e3263e14e | [
"MIT"
] | 1 | 2019-10-25T18:41:24.000Z | 2019-10-25T18:41:24.000Z | setup.py | saksham/nepse-crawler | adee65ebc86e269c2941d48f91018b8e3263e14e | [
"MIT"
] | null | null | null | setup.py | saksham/nepse-crawler | adee65ebc86e269c2941d48f91018b8e3263e14e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
setup(name='nepse-crawler',
version='0.0.1',
description='Crawls websites for Nepal Stock Exchange and loads them to SQLite3 database',
... | 27.482759 | 96 | 0.644918 |
cad2fe1cdd6d86eceead5fb008c5cfdfa6b6f198 | 2,678 | py | Python | backend/backend.py | alexnbferreira/CryptoTracker | 7071fab27200c59288eade6616e6c4f5e2eaa5ad | [
"MIT"
] | null | null | null | backend/backend.py | alexnbferreira/CryptoTracker | 7071fab27200c59288eade6616e6c4f5e2eaa5ad | [
"MIT"
] | null | null | null | backend/backend.py | alexnbferreira/CryptoTracker | 7071fab27200c59288eade6616e6c4f5e2eaa5ad | [
"MIT"
] | null | null | null | from flask import Flask, Response, render_template
import requests
import json
import logging
from pandas import read_json
from decimal import Decimal
app = Flask(__name__)
exchanges = ["BNB", "BTX", "BFX"]
token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImRldkBnbG92b2FwcC5jb20iLCJpZCI6IjVhNTcyZGEyNTM4OWMzN... | 38.257143 | 194 | 0.685213 |
cad3c7ef16ebb65b6d272b2d40089713a3ce54ff | 11,375 | py | Python | data_pipeline/_kafka_producer.py | poros/data_pipeline | e143a4031b0940e17b22cdf36db0b677b46e3975 | [
"Apache-2.0"
] | 110 | 2016-11-17T18:32:25.000Z | 2022-01-03T17:27:58.000Z | data_pipeline/_kafka_producer.py | poros/data_pipeline | e143a4031b0940e17b22cdf36db0b677b46e3975 | [
"Apache-2.0"
] | 12 | 2016-11-18T00:00:37.000Z | 2018-01-14T00:31:37.000Z | data_pipeline/_kafka_producer.py | poros/data_pipeline | e143a4031b0940e17b22cdf36db0b677b46e3975 | [
"Apache-2.0"
] | 25 | 2016-11-18T15:00:16.000Z | 2020-10-01T13:42:47.000Z | # -*- coding: utf-8 -*-
# Copyright 2016 Yelp Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 39.359862 | 91 | 0.683868 |
cad56f6e99929dcb2621454332e576da53bc0b1f | 25,097 | py | Python | morphsed/images.py | RuancunLi/MorphSED | e386db49305d120841c61e8bea194257b4abd89b | [
"MIT"
] | null | null | null | morphsed/images.py | RuancunLi/MorphSED | e386db49305d120841c61e8bea194257b4abd89b | [
"MIT"
] | null | null | null | morphsed/images.py | RuancunLi/MorphSED | e386db49305d120841c61e8bea194257b4abd89b | [
"MIT"
] | 1 | 2021-01-04T10:54:03.000Z | 2021-01-04T10:54:03.000Z | import numpy as np
import matplotlib.pyplot as plt
from astropy import units as u
from astropy.coordinates import SkyCoord
from astropy.io import fits
from astropy.nddata import CCDData
from astropy.nddata import Cutout2D
from astropy.stats import sigma_clipped_stats
from astropy.wcs.utils import proj_plane_pixel_scale... | 37.853695 | 212 | 0.5721 |
cad6d4d9039f032ee0647fb24456c499c4ecede6 | 1,108 | py | Python | tests/test_kfold.py | pal-16/preprocessy | 6577143d3397a47bd69c125c8de46ebc5ad2ddae | [
"MIT"
] | null | null | null | tests/test_kfold.py | pal-16/preprocessy | 6577143d3397a47bd69c125c8de46ebc5ad2ddae | [
"MIT"
] | null | null | null | tests/test_kfold.py | pal-16/preprocessy | 6577143d3397a47bd69c125c8de46ebc5ad2ddae | [
"MIT"
] | null | null | null | import numpy as np
import pytest
from preprocessy.resampling import KFold
| 27.7 | 68 | 0.583935 |
cad6f407f7e2ec628f292a0cf8cb6230d6d12b29 | 337 | py | Python | srforge_tests/unit_tests/utilities_tests/__init__.py | alunduil/srforge | ef498b0c2e327ae14613bd369f45940005ad8b1f | [
"MIT"
] | null | null | null | srforge_tests/unit_tests/utilities_tests/__init__.py | alunduil/srforge | ef498b0c2e327ae14613bd369f45940005ad8b1f | [
"MIT"
] | null | null | null | srforge_tests/unit_tests/utilities_tests/__init__.py | alunduil/srforge | ef498b0c2e327ae14613bd369f45940005ad8b1f | [
"MIT"
] | null | null | null | # Copyright (C) 2016 srforge project developers.
#
# See the COPYRIGHT file at the top-level directory of this distribution and at
# https://github.com/alunduil/srforge/blob/master/COPYRIGHT
#
# srforge is freely distributable under the terms of an MIT-style license.
# See LICENSE or http://www.opensource.org/licenses/... | 42.125 | 79 | 0.780415 |
cad795ae9dd6135d51053b4f8de0331e4efd6df4 | 422 | py | Python | prices/admin.py | KazuruK/FilmGetter | fd84bcaddf17d4b89ad6e5d27095535346c5f4a9 | [
"BSD-3-Clause"
] | 1 | 2021-06-23T13:06:11.000Z | 2021-06-23T13:06:11.000Z | prices/admin.py | KazuruK/FilmGetter | fd84bcaddf17d4b89ad6e5d27095535346c5f4a9 | [
"BSD-3-Clause"
] | 1 | 2021-06-23T21:21:52.000Z | 2021-06-23T21:21:52.000Z | prices/admin.py | KazuruK/FilmGetter | fd84bcaddf17d4b89ad6e5d27095535346c5f4a9 | [
"BSD-3-Clause"
] | 1 | 2021-06-28T19:14:19.000Z | 2021-06-28T19:14:19.000Z | from django.contrib import admin
# Register your models here.
from prices.models import IdDB
admin.site.register(IdDB, IdDBAdmin)
| 19.181818 | 46 | 0.620853 |
cad84f636cd4b82b3be3bfeb9a329a3e645a1011 | 2,166 | py | Python | tapetracker.py | kemfic/pumavision2019 | b14a566ce63629a90f31fd70d5f62d9efd61bdff | [
"MIT"
] | 2 | 2019-03-05T21:59:06.000Z | 2019-06-18T03:58:00.000Z | tapetracker.py | kemfic/pumavision2019 | b14a566ce63629a90f31fd70d5f62d9efd61bdff | [
"MIT"
] | null | null | null | tapetracker.py | kemfic/pumavision2019 | b14a566ce63629a90f31fd70d5f62d9efd61bdff | [
"MIT"
] | null | null | null | import cv2
import numpy as np
if __name__ == "__main__":
ct = TapeTracker()
img = cv2.imread('img/1.jpg')
ct.pipeline(img)
cv2.imshow('output', cv2.resize(cv2.cvtColor(ct.img, cv2.COLOR_HLS2BGR), (500, 500), cv2.INTER_NEAREST))
cv2.imshow('mask', cv2.resize(ct.mask, (500,500), cv2.INTER_NEAREST))
cv2.ims... | 34.935484 | 107 | 0.617729 |
cad9516cda873ad5c7a80d3614252cdbc50f0241 | 3,241 | py | Python | Engine/Tools.py | NoNotCar/SpaceX | 803390fdf0ed3deee18d8f0d101ae575cf9b55e1 | [
"MIT"
] | null | null | null | Engine/Tools.py | NoNotCar/SpaceX | 803390fdf0ed3deee18d8f0d101ae575cf9b55e1 | [
"MIT"
] | null | null | null | Engine/Tools.py | NoNotCar/SpaceX | 803390fdf0ed3deee18d8f0d101ae575cf9b55e1 | [
"MIT"
] | null | null | null | from .Items import Item
from Lib import Img
import pygame
from Game import Registry,Research
from Objects import War
error=Img.sndget("error")
bsnd=Img.sndget("break")
from Game import Boxes
Registry.add_recipe({"Iron":3,"Brick":5},Bridger())
Registry.add_recipe({"Iron":3},Wrench())
Research.add_recipesearch({"Circuit"... | 33.412371 | 103 | 0.54983 |
cadb7857fc43538c2164847a75f460688bce44f4 | 879 | py | Python | tests/max/test_rmc.py | realead/rmc | 6dafa2a4b5ab7199e86e86a4c10388bc8e472bb6 | [
"MIT"
] | null | null | null | tests/max/test_rmc.py | realead/rmc | 6dafa2a4b5ab7199e86e86a4c10388bc8e472bb6 | [
"MIT"
] | null | null | null | tests/max/test_rmc.py | realead/rmc | 6dafa2a4b5ab7199e86e86a4c10388bc8e472bb6 | [
"MIT"
] | null | null | null | import os
import exetest as ex
import exetest.decorator as dec
import RMCTester
| 25.114286 | 61 | 0.486917 |
cadb919713f442cb696ef20531e176f4131df704 | 1,925 | py | Python | ceilometer_infoblox/pollsters/__init__.py | mwinslow7/ceilometer-infoblox | c183fec8d12d6957156485684759e064fc43bbcd | [
"Apache-2.0"
] | 4 | 2015-09-22T22:26:00.000Z | 2018-12-27T07:16:24.000Z | ceilometer_infoblox/pollsters/__init__.py | mwinslow7/ceilometer-infoblox | c183fec8d12d6957156485684759e064fc43bbcd | [
"Apache-2.0"
] | 1 | 2017-05-03T00:34:03.000Z | 2017-05-03T00:37:28.000Z | ceilometer_infoblox/pollsters/__init__.py | mwinslow7/ceilometer-infoblox | c183fec8d12d6957156485684759e064fc43bbcd | [
"Apache-2.0"
] | 9 | 2015-10-22T15:55:29.000Z | 2019-09-02T07:47:11.000Z | # Copyright 2015 Infoblox, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 32.627119 | 75 | 0.668052 |
cadf0bfc3589bccc805fdee98c4cd79597ee146b | 2,309 | py | Python | waitercaller.py | salaikumar/waitercaller | 83ad2f8a477fc196c665db1ce1159a042d69fe8e | [
"Apache-2.0"
] | null | null | null | waitercaller.py | salaikumar/waitercaller | 83ad2f8a477fc196c665db1ce1159a042d69fe8e | [
"Apache-2.0"
] | null | null | null | waitercaller.py | salaikumar/waitercaller | 83ad2f8a477fc196c665db1ce1159a042d69fe8e | [
"Apache-2.0"
] | null | null | null | from flask import Flask
from flask import request
from flask import render_template
# Login Extension
from flask_login import LoginManager
from flask_login import login_required
from flask_login import login_user
from flask_login import logout_user
from mockdbhelper import MockDBHelper as DBHelper
from user import Use... | 27.164706 | 98 | 0.708099 |
cadff6a5947df261c22029325d9e900afbcb18eb | 348 | py | Python | Part_3_advanced/m03_date_and_time/date_today/example_1/main.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m03_date_and_time/date_today/example_1/main.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m03_date_and_time/date_today/example_1/main.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | from book_book import books_directory, user_interface
if __name__ == "__main__":
run_example()
| 26.769231 | 78 | 0.755747 |
cae0c802208358b65003e5f7be5cda37037a9c79 | 1,602 | py | Python | examples/example1.py | inverseproblem/pyMag2Dpoly | d4210faa691c1ca96677e4a416ae6571d53970ac | [
"MIT"
] | 4 | 2021-01-31T00:41:43.000Z | 2021-09-08T05:01:13.000Z | examples/example1.py | inverseproblem/pyMag2Dpoly | d4210faa691c1ca96677e4a416ae6571d53970ac | [
"MIT"
] | null | null | null | examples/example1.py | inverseproblem/pyMag2Dpoly | d4210faa691c1ca96677e4a416ae6571d53970ac | [
"MIT"
] | 1 | 2021-03-28T07:19:26.000Z | 2021-03-28T07:19:26.000Z |
import sys
# in this case local import
sys.path.append("../")
import mag2dpoly as mag
import numpy as np
# induced magnetization
Jind = mag.MagnetizVector(mod=4.9,Ideg=90.0,Ddeg=45.0)
# remanent magnetization
Jrem = mag.MagnetizVector(mod=3.1,Ideg=45.0,Ddeg=0.0)
# angle with the North axis
northxax = 90.0
# numb... | 25.03125 | 83 | 0.655431 |
cae2b6216f4f43c83ea66c2eb2462e3bd35c9bfd | 1,607 | py | Python | stats.py | warppoint42/Mahjong221 | dac82c726927730e11112e2a62b500587717b7ed | [
"MIT"
] | null | null | null | stats.py | warppoint42/Mahjong221 | dac82c726927730e11112e2a62b500587717b7ed | [
"MIT"
] | null | null | null | stats.py | warppoint42/Mahjong221 | dac82c726927730e11112e2a62b500587717b7ed | [
"MIT"
] | null | null | null | import csv
stats = dict()
with open('unifiedroundlog.csv', 'r') as csvfile:
reader = csv.DictReader(csvfile, ('AI', 'gameID', 'end', 'win', 'feed', 'riichi'))
for row in reader:
if row['AI'] not in stats:
stats[row['AI']] = dict()
stats[row['AI']].setdefault('n', 0)
stats[r... | 32.14 | 86 | 0.450529 |
cae4acfde1f01b9cb0259fd0db2f62854a8254cc | 4,544 | py | Python | fabfile.py | yanikou19/pymatgen | 8ee0d9ff35a9c2fa4f00da5d423e536ed8914e31 | [
"MIT"
] | null | null | null | fabfile.py | yanikou19/pymatgen | 8ee0d9ff35a9c2fa4f00da5d423e536ed8914e31 | [
"MIT"
] | null | null | null | fabfile.py | yanikou19/pymatgen | 8ee0d9ff35a9c2fa4f00da5d423e536ed8914e31 | [
"MIT"
] | null | null | null | """
Deployment file to facilitate releases of pymatgen.
Note that this file is meant to be run from the root directory of the pymatgen
repo.
"""
__author__ = "Shyue Ping Ong"
__email__ = "ongsp@ucsd.edu"
__date__ = "Sep 1, 2014"
import glob
import os
import json
import webbrowser
import requests
import re
import subp... | 29.316129 | 92 | 0.541813 |
cae59e6b2b5461e084cfd5ef2de955cd7cc489f7 | 103 | py | Python | test/models/__init__.py | Tomos-Evans/garrison | 6a0eea6822f7a5a64e80852427d4576c9018d0b4 | [
"MIT"
] | 1 | 2018-10-20T15:53:15.000Z | 2018-10-20T15:53:15.000Z | test/models/__init__.py | Tomos-Evans/garrison | 6a0eea6822f7a5a64e80852427d4576c9018d0b4 | [
"MIT"
] | null | null | null | test/models/__init__.py | Tomos-Evans/garrison | 6a0eea6822f7a5a64e80852427d4576c9018d0b4 | [
"MIT"
] | null | null | null | from .ingredient import *
from .drink_component import *
from .drink import *
from .dispenser import *
| 20.6 | 30 | 0.76699 |
cae7b1ecc01e83c210f73c696d1cd08fb5490fc9 | 14,924 | py | Python | bb-master/sandbox/lib/python3.5/site-packages/buildbot/www/oauth2.py | Alecto3-D/testable-greeter | 09e8e488edfb7e46cf5867b2b5a6ebe0b1929f78 | [
"MIT"
] | 2 | 2017-07-11T18:56:27.000Z | 2017-07-28T14:01:12.000Z | bb-master/sandbox/lib/python3.5/site-packages/buildbot/www/oauth2.py | Alecto3-D/testable-greeter | 09e8e488edfb7e46cf5867b2b5a6ebe0b1929f78 | [
"MIT"
] | 1 | 2017-07-28T13:53:41.000Z | 2017-07-31T15:30:40.000Z | bb-master/sandbox/lib/python3.5/site-packages/buildbot/www/oauth2.py | Alecto3-D/testable-greeter | 09e8e488edfb7e46cf5867b2b5a6ebe0b1929f78 | [
"MIT"
] | null | null | null | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | 38.463918 | 96 | 0.577325 |
cae85af56f28cb944803582d2acd6f034c6fb314 | 2,281 | py | Python | bin/contentctl_project/contentctl_core/domain/entities/story.py | arjunkhunti-crest/security_content | 41e354485e5917d3366ef735a9c5b25a20d3b8cc | [
"Apache-2.0"
] | null | null | null | bin/contentctl_project/contentctl_core/domain/entities/story.py | arjunkhunti-crest/security_content | 41e354485e5917d3366ef735a9c5b25a20d3b8cc | [
"Apache-2.0"
] | null | null | null | bin/contentctl_project/contentctl_core/domain/entities/story.py | arjunkhunti-crest/security_content | 41e354485e5917d3366ef735a9c5b25a20d3b8cc | [
"Apache-2.0"
] | null | null | null | import string
import uuid
import requests
from pydantic import BaseModel, validator, ValidationError
from datetime import datetime
from bin.contentctl_project.contentctl_core.domain.entities.security_content_object import SecurityContentObject
from bin.contentctl_project.contentctl_core.domain.entities.story_tags imp... | 30.824324 | 112 | 0.615081 |
cae8b2ce05a3582cc0f1a01c67f2c8e7637a486b | 99 | py | Python | staff/__init__.py | alvienzo720/Dep_Nadine | b23688aa87ba3cfe138f9b243eed3f50a74e1486 | [
"Apache-2.0"
] | 1 | 2019-08-15T00:10:38.000Z | 2019-08-15T00:10:38.000Z | staff/__init__.py | alvienzo720/Dep_Nadine | b23688aa87ba3cfe138f9b243eed3f50a74e1486 | [
"Apache-2.0"
] | 4 | 2021-03-19T16:10:13.000Z | 2022-03-12T00:55:50.000Z | staff/__init__.py | alvienzo720/Dep_Nadine | b23688aa87ba3cfe138f9b243eed3f50a74e1486 | [
"Apache-2.0"
] | 1 | 2020-02-24T08:23:45.000Z | 2020-02-24T08:23:45.000Z | """The Django app which provides member tracking and billing calculation for a coworking space."""
| 49.5 | 98 | 0.787879 |
cae8e93abab06a2a41e95369a1d01056c15a4dc8 | 12,758 | py | Python | sedre.py | donerancl/sedre | ad87ea8db7508ffce0060e4aca3eb176fda9e329 | [
"MIT"
] | null | null | null | sedre.py | donerancl/sedre | ad87ea8db7508ffce0060e4aca3eb176fda9e329 | [
"MIT"
] | 1 | 2020-03-21T00:10:49.000Z | 2020-03-21T00:10:49.000Z | sedre.py | donerancl/sedre | ad87ea8db7508ffce0060e4aca3eb176fda9e329 | [
"MIT"
] | 1 | 2020-03-25T14:34:49.000Z | 2020-03-25T14:34:49.000Z | """Output file parser for quantum chemistry.
Intended to be easy, logical to use. Should be quickly incorporable
into workflow by high level functions and objects.
Requires only the Python standard library, sed, and sedre's submodules
Should be agnositic to Python 3.X version,
but was written in Spring 2019 so tested ... | 37.304094 | 122 | 0.524769 |
cae9f9112bf10e3c5039ce94fd6acb072c0cb24e | 2,793 | py | Python | backend/api/migrations/0001_initial.py | INSRapperswil/nornir-web | 458e6b24bc373197044b4b7b5da74f16f93a9459 | [
"MIT"
] | 2 | 2021-06-01T08:33:04.000Z | 2021-08-20T04:22:39.000Z | backend/api/migrations/0001_initial.py | INSRapperswil/nornir-web | 458e6b24bc373197044b4b7b5da74f16f93a9459 | [
"MIT"
] | null | null | null | backend/api/migrations/0001_initial.py | INSRapperswil/nornir-web | 458e6b24bc373197044b4b7b5da74f16f93a9459 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-05 10:33
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 45.786885 | 137 | 0.56928 |
caeaeb8e248d85efebefc42cea8e45e4fc2350e0 | 11,051 | py | Python | tests/docx/document_xml_tests.py | JoshBarr/python-mammoth | e24c3d90fee2bcc4c2c3ad47e38c0cbba42945d8 | [
"BSD-2-Clause"
] | 1 | 2015-08-15T21:53:03.000Z | 2015-08-15T21:53:03.000Z | tests/docx/document_xml_tests.py | JoshBarr/python-mammoth | e24c3d90fee2bcc4c2c3ad47e38c0cbba42945d8 | [
"BSD-2-Clause"
] | null | null | null | tests/docx/document_xml_tests.py | JoshBarr/python-mammoth | e24c3d90fee2bcc4c2c3ad47e38c0cbba42945d8 | [
"BSD-2-Clause"
] | null | null | null | import io
from nose.tools import istest, assert_equal
import funk
from mammoth import documents, results
from mammoth.docx.xmlparser import element as xml_element, text as xml_text
from mammoth.docx.document_xml import read_document_xml_element
from mammoth.docx.numbering_xml import Numbering
from mammoth.docx.relati... | 36.114379 | 99 | 0.64139 |
caec913d6621cf7f754967667188e3d0cafa8eeb | 3,982 | py | Python | tests/primitives/high_precision_condition_slowtest.py | gift-surg/puma | 58beae3459a0c8d96adfe9af323e26868428df4d | [
"Apache-2.0"
] | null | null | null | tests/primitives/high_precision_condition_slowtest.py | gift-surg/puma | 58beae3459a0c8d96adfe9af323e26868428df4d | [
"Apache-2.0"
] | 13 | 2020-05-04T14:14:58.000Z | 2020-07-29T16:37:03.000Z | tests/primitives/high_precision_condition_slowtest.py | gift-surg/puma | 58beae3459a0c8d96adfe9af323e26868428df4d | [
"Apache-2.0"
] | null | null | null | import time
from threading import Thread
from unittest import TestCase
from puma.primitives import HighPrecisionCondition
from tests.github_issue_11_quickfix import skip_on_windows_until_github_issue_11_is_resolved
TIMEOUTS = [0.0, 0.000001, 0.014, 0.015, 0.016, 0.017, 0.018, 0.3]
PRECISION = 0.005
TIMEOUT = 0.3
| 45.770115 | 172 | 0.659216 |
caedfc9ca4d335bf9a6a0bb330a7d228fed7431b | 4,163 | py | Python | mouselight/visualizations/view_ng_mouselight_n5.py | pattonw/mouselight | 296e6df7d4e79776ed9f8533d17d937bb6866082 | [
"MIT"
] | null | null | null | mouselight/visualizations/view_ng_mouselight_n5.py | pattonw/mouselight | 296e6df7d4e79776ed9f8533d17d937bb6866082 | [
"MIT"
] | null | null | null | mouselight/visualizations/view_ng_mouselight_n5.py | pattonw/mouselight | 296e6df7d4e79776ed9f8533d17d937bb6866082 | [
"MIT"
] | null | null | null | from funlib.show.neuroglancer import add_layer, ScalePyramid
import argparse
import daisy
import glob
import neuroglancer
import numpy as np
import os
import webbrowser
from swc_parser import _parse_swc
from pathlib import Path
import itertools
import random
import logging
ngid = itertools.count(start=1)
parser = arg... | 24.779762 | 119 | 0.665866 |
caef5559516f4fd218345acf0eae5ad95febdf7a | 1,470 | py | Python | BERT_Custom/bert_sequence_tagger/metrics.py | gp201/BERT | 0479bfb4faf7fb107acb38bd1a0e27a23719aa92 | [
"MIT"
] | 1 | 2020-03-20T09:58:58.000Z | 2020-03-20T09:58:58.000Z | BERT_Custom/bert_sequence_tagger/metrics.py | gp201/BERT | 0479bfb4faf7fb107acb38bd1a0e27a23719aa92 | [
"MIT"
] | null | null | null | BERT_Custom/bert_sequence_tagger/metrics.py | gp201/BERT | 0479bfb4faf7fb107acb38bd1a0e27a23719aa92 | [
"MIT"
] | null | null | null | import itertools
from sklearn.metrics import f1_score as f1_score_sklearn
from seqeval.metrics import f1_score
from sklearn.metrics import classification_report
| 35 | 57 | 0.572109 |
caef5626558b749af00c48af86762d3db322f006 | 15,501 | py | Python | mediagrains/testsignalgenerator.py | bbc/rd-apmm-python-lib-mediagrains | 84c9de511cc53418c277867eaf143f2cc8730d02 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2018-03-26T23:49:34.000Z | 2021-12-23T10:06:09.000Z | mediagrains/testsignalgenerator.py | bbc/rd-apmm-python-lib-mediagrains | 84c9de511cc53418c277867eaf143f2cc8730d02 | [
"ECL-2.0",
"Apache-2.0"
] | 34 | 2018-03-21T16:45:10.000Z | 2022-03-28T13:27:34.000Z | mediagrains/testsignalgenerator.py | bbc/rd-apmm-python-lib-mediagrains | 84c9de511cc53418c277867eaf143f2cc8730d02 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #
# Copyright 2018 British Broadcasting 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... | 43.788136 | 159 | 0.622928 |
caf0139fdfe557f953aad0f3d0c2c6c1ddb373a5 | 1,091 | py | Python | catch.py | AlexLito666/my_first_project | 94898038bb6b0558328ee80791340d1ad3b92260 | [
"CC0-1.0"
] | null | null | null | catch.py | AlexLito666/my_first_project | 94898038bb6b0558328ee80791340d1ad3b92260 | [
"CC0-1.0"
] | null | null | null | catch.py | AlexLito666/my_first_project | 94898038bb6b0558328ee80791340d1ad3b92260 | [
"CC0-1.0"
] | null | null | null | from pygame import *
#
window = display.set_mode((700, 500))
display.set_caption("")
#
background = transform.scale(image.load("background.png"), (700, 500))
sprite1 = transform.scale(image.load('sprite1.png'), (100, 100))
sprite2 = transform.scale(image.load('sprite2.png'), (100, 100))
x1 = 100
y1 = 200
x2 = ... | 18.491525 | 73 | 0.600367 |
caf18d00a3de41fc29f984810d3ca6dd460764c6 | 4,731 | py | Python | tests/read/test_read_api_query_endpoint.py | NRCan/backdrop | ba45e21b81c09859310ca4be249b25016b8731dc | [
"MIT"
] | 9 | 2015-10-20T04:36:48.000Z | 2020-09-08T18:47:01.000Z | tests/read/test_read_api_query_endpoint.py | NRCan/backdrop | ba45e21b81c09859310ca4be249b25016b8731dc | [
"MIT"
] | 31 | 2015-01-11T11:57:05.000Z | 2021-03-24T10:52:33.000Z | tests/read/test_read_api_query_endpoint.py | alphagov/backdrop | 1256e5075d7e5a0e41afb0f0913a5f2c4bdb9ad8 | [
"MIT"
] | 4 | 2015-01-25T09:06:45.000Z | 2021-04-10T20:27:36.000Z | import unittest
import urllib
import datetime
from hamcrest import assert_that, is_
from mock import patch
import pytz
from backdrop.read import api
from backdrop.core.query import Query
from tests.support.performanceplatform_client import fake_data_set_exists
from tests.support.test_helpers import has_status, has_head... | 38.778689 | 77 | 0.682731 |
caf2e3c5025891a382a27aff6769ca77937b4ee1 | 137 | py | Python | scripts/npc/autogen_kasandra.py | hsienjan/SideQuest-Server | 3e88debaf45615b759d999255908f99a15283695 | [
"MIT"
] | null | null | null | scripts/npc/autogen_kasandra.py | hsienjan/SideQuest-Server | 3e88debaf45615b759d999255908f99a15283695 | [
"MIT"
] | null | null | null | scripts/npc/autogen_kasandra.py | hsienjan/SideQuest-Server | 3e88debaf45615b759d999255908f99a15283695 | [
"MIT"
] | null | null | null | # Character field ID when accessed: 820000000
# ObjectID: 1000000
# ParentID: 9010010
# Object Position X: -449
# Object Position Y: 225
| 22.833333 | 45 | 0.751825 |
caf371c53116ba86bb2553a759aef45ace9ab067 | 1,373 | py | Python | media_browser/imdb/_logging.py | arjun-namdeo/my_python | 43ce84d04d773faa0d3c8f2281393767855a8465 | [
"MIT"
] | null | null | null | media_browser/imdb/_logging.py | arjun-namdeo/my_python | 43ce84d04d773faa0d3c8f2281393767855a8465 | [
"MIT"
] | null | null | null | media_browser/imdb/_logging.py | arjun-namdeo/my_python | 43ce84d04d773faa0d3c8f2281393767855a8465 | [
"MIT"
] | null | null | null | """
_logging module (imdb package).
"""
import logging
LEVELS = {'debug': logging.DEBUG,
'info': logging.INFO,
'warn': logging.WARNING,
'warning': logging.WARNING,
'error': logging.ERROR,
'critical': logging.CRITICAL}
imdbpyLogger = logging.getLogger('media_browser')
imdbpySt... | 29.847826 | 76 | 0.656227 |
caf433f35fafdcea95c489ab8322ae30c22ed4f7 | 786 | py | Python | simplecmr/utils.py | KMarkert/simple-cmr | 7c6500466715692f18482ea379572ef30b46b380 | [
"MIT"
] | 1 | 2020-04-10T17:08:35.000Z | 2020-04-10T17:08:35.000Z | simplecmr/utils.py | KMarkert/simple-cmr | 7c6500466715692f18482ea379572ef30b46b380 | [
"MIT"
] | null | null | null | simplecmr/utils.py | KMarkert/simple-cmr | 7c6500466715692f18482ea379572ef30b46b380 | [
"MIT"
] | null | null | null | import datetime
from collections import OrderedDict
def decode_date(string):
"""Decodes a date from a command line argument, returning datetime object".
Args:
string: See AssetSetCommand class comment for the allowable
date formats.v
Returns:
long, datetime object
Raises:
V... | 28.071429 | 79 | 0.577608 |
caf601b1c7832716a886f026f7b2515dd1da5282 | 1,976 | py | Python | .ipynb_checkpoints/data_cleaning-checkpoint.py | VivanVatsa/ds-salary-proj | b78b5498d2e3326799cae445ba47d6e6a5637ccb | [
"MIT"
] | 5 | 2020-12-30T06:17:19.000Z | 2021-12-14T21:26:57.000Z | .ipynb_checkpoints/data_cleaning-checkpoint.py | VivanVatsa/ds-salary-proj | b78b5498d2e3326799cae445ba47d6e6a5637ccb | [
"MIT"
] | null | null | null | .ipynb_checkpoints/data_cleaning-checkpoint.py | VivanVatsa/ds-salary-proj | b78b5498d2e3326799cae445ba47d6e6a5637ccb | [
"MIT"
] | 5 | 2021-01-19T14:06:34.000Z | 2022-02-25T15:57:16.000Z | # %%
# from numpy.core.fromnumeric import size
import pandas as pd
df = pd.read_csv("glassdoor_jobs.csv")
df = df[df["Salary Estimate"] != "-1"]
df
# TO DO IN DATA CLEANING
# -------------------
# salary parsing
# %%
salary = df["Salary Estimate"].apply(lambda x: x.split("(")[0])
# salary
minus_Kd = salary.apply(
... | 22.712644 | 111 | 0.593623 |
caf671b7d9859cff696a323490350293855a283d | 2,301 | py | Python | Ultraviz/src/log_handler.py | ultraleap/ultraleap-labs-ultraviz | d011724ccd46a76400a309795f34d3614f456520 | [
"Apache-2.0"
] | null | null | null | Ultraviz/src/log_handler.py | ultraleap/ultraleap-labs-ultraviz | d011724ccd46a76400a309795f34d3614f456520 | [
"Apache-2.0"
] | null | null | null | Ultraviz/src/log_handler.py | ultraleap/ultraleap-labs-ultraviz | d011724ccd46a76400a309795f34d3614f456520 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
# Class to handle reading of SDK Log Data as a pipe/fifo for
# Windows and Unix, to avoid big log files.
----------------------------------------------------------
"""
import platform
import os
import tempfile
IS_WINDOWS = platform.system().lower() == "windows"
if IS_WINDOWS:
try:
... | 35.4 | 127 | 0.575837 |
caf7109a216b415b4600a19f6e38c0eecc9526de | 505 | py | Python | stackimpact/utils.py | timgates42/stackimpact-python | 4d0a415b790c89e7bee1d70216f948b7fec11540 | [
"BSD-3-Clause"
] | 742 | 2017-06-26T13:16:34.000Z | 2022-02-06T11:05:31.000Z | stackimpact/utils.py | gaecom/stackimpact-python | 4d0a415b790c89e7bee1d70216f948b7fec11540 | [
"BSD-3-Clause"
] | 7 | 2017-06-28T06:01:04.000Z | 2021-05-18T20:06:53.000Z | stackimpact/utils.py | gaecom/stackimpact-python | 4d0a415b790c89e7bee1d70216f948b7fec11540 | [
"BSD-3-Clause"
] | 30 | 2017-06-27T15:26:04.000Z | 2021-05-16T11:08:53.000Z |
import time
import uuid
import base64
import hashlib
| 14.852941 | 62 | 0.681188 |
caf860b3185ef94fc3db805ba75414ec7fad05a1 | 174 | py | Python | example/app/views.py | aolkin/django-bootstrap-form | 5fff56f715bd9f2f29793f6a5a87baa1be25e409 | [
"BSD-3-Clause"
] | 324 | 2015-01-12T19:30:51.000Z | 2022-02-11T07:13:19.000Z | example/app/views.py | caumons/django-bootstrap-form | 62af3e076612a5d3b67ebc020c05a8db20e3fe62 | [
"BSD-3-Clause"
] | 37 | 2015-03-04T23:43:45.000Z | 2021-10-18T16:08:52.000Z | example/app/views.py | caumons/django-bootstrap-form | 62af3e076612a5d3b67ebc020c05a8db20e3fe62 | [
"BSD-3-Clause"
] | 132 | 2015-01-01T18:13:06.000Z | 2022-01-10T07:06:19.000Z | from django.shortcuts import render
from app.forms import ExampleForm
| 21.75 | 56 | 0.724138 |
caf9fd42bc789c264cd6023256055e13907047ef | 6,519 | py | Python | yt_downloader_with_GUI.py | francecon/YT-AUDIO-DOWNLOADER | d437a112595b0e182dca1042a4e1524d94107c06 | [
"CNRI-Python"
] | null | null | null | yt_downloader_with_GUI.py | francecon/YT-AUDIO-DOWNLOADER | d437a112595b0e182dca1042a4e1524d94107c06 | [
"CNRI-Python"
] | null | null | null | yt_downloader_with_GUI.py | francecon/YT-AUDIO-DOWNLOADER | d437a112595b0e182dca1042a4e1524d94107c06 | [
"CNRI-Python"
] | null | null | null | import glob
import os
# os.environ["IMAGEIO_FFMPEG_EXE"] = "C:/ffmpeg-4.4.1-essentials_build/ffmpeg-4.4.1-essentials_build/bin"
import re
import sys
import urllib
from tkinter import (BOTH, RIGHT, YES, Button, Entry, Label, Listbox, Menu,
Scrollbar, StringVar, Tk, Y)
from tkinter import messagebox ... | 35.237838 | 150 | 0.591042 |
caf9fdaea0cfc21fcb1eeef6a8902847ee871447 | 177 | py | Python | sdap_ingest_manager/history_manager/__init__.py | tloubrieu-jpl/incubator-sdap-nexus-ingestion-manager | 1fedc94265056ea9f9f96e9851bfe885959893fd | [
"Apache-2.0"
] | null | null | null | sdap_ingest_manager/history_manager/__init__.py | tloubrieu-jpl/incubator-sdap-nexus-ingestion-manager | 1fedc94265056ea9f9f96e9851bfe885959893fd | [
"Apache-2.0"
] | 1 | 2020-06-08T18:12:42.000Z | 2020-06-09T02:47:47.000Z | sdap_ingest_manager/history_manager/__init__.py | tloubrieu-jpl/incubator-sdap-nexus-ingestion-manager | 1fedc94265056ea9f9f96e9851bfe885959893fd | [
"Apache-2.0"
] | null | null | null | from .util import md5sum_from_filepath
from .datasetingestionhistorysolr import DatasetIngestionHistorySolr
from .datasetingestionhistoryfile import DatasetIngestionHistoryFile
| 44.25 | 68 | 0.915254 |
cafb72709a31d2ac7f7d2f7eba103eb452019e09 | 867 | py | Python | SistemaPago/contact/views.py | cluco91/Django_SistemaPago | 5c1909af6bea9ff57c7252245049de6536bbcba1 | [
"MIT"
] | null | null | null | SistemaPago/contact/views.py | cluco91/Django_SistemaPago | 5c1909af6bea9ff57c7252245049de6536bbcba1 | [
"MIT"
] | null | null | null | SistemaPago/contact/views.py | cluco91/Django_SistemaPago | 5c1909af6bea9ff57c7252245049de6536bbcba1 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.core.mail import send_mail
from django.conf import settings
from .forms import contactForm
# Create your views here. | 32.111111 | 82 | 0.742791 |
cafc588d566696ccb6cf77935803ead728bb260c | 2,674 | py | Python | Image Classification/CGIAR Crop Yield Prediction Challenge/omarhzm/fields (1).py | ZindiAfrica/Computer-Vision | bf4c00a0633506270dc6d07df938a100a10ee799 | [
"MIT"
] | null | null | null | Image Classification/CGIAR Crop Yield Prediction Challenge/omarhzm/fields (1).py | ZindiAfrica/Computer-Vision | bf4c00a0633506270dc6d07df938a100a10ee799 | [
"MIT"
] | null | null | null | Image Classification/CGIAR Crop Yield Prediction Challenge/omarhzm/fields (1).py | ZindiAfrica/Computer-Vision | bf4c00a0633506270dc6d07df938a100a10ee799 | [
"MIT"
] | null | null | null | import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error
import glob, random
import sklearn
from sklearn.decomposition import PCA
from xgboost.sklearn import XGBRegressor
from sklearn.tr... | 34.727273 | 111 | 0.715782 |
cafd8ddcc741b3376fcc1b0b66c815390e2e9e6c | 4,977 | py | Python | parserAlejandroTejada.py | tej17584/proyecto3DisenoLenguajes | 6d358e53054322818fe0c02934f52e84d945b5f7 | [
"MIT"
] | null | null | null | parserAlejandroTejada.py | tej17584/proyecto3DisenoLenguajes | 6d358e53054322818fe0c02934f52e84d945b5f7 | [
"MIT"
] | null | null | null | parserAlejandroTejada.py | tej17584/proyecto3DisenoLenguajes | 6d358e53054322818fe0c02934f52e84d945b5f7 | [
"MIT"
] | null | null | null |
import pickle
obj = parserAlejandro()
| 32.960265 | 218 | 0.560378 |
caffd2175e5188949d3d8483e90d7b9cd449fd73 | 957 | py | Python | humidityModule.py | HarvardURC/MATE_ROV | 30f7dc3a1caa6532e5cd44e3029de5353e79d656 | [
"MIT"
] | 1 | 2018-04-09T00:57:10.000Z | 2018-04-09T00:57:10.000Z | humidityModule.py | HarvardURC/MATE_ROV | 30f7dc3a1caa6532e5cd44e3029de5353e79d656 | [
"MIT"
] | 27 | 2017-10-03T02:02:32.000Z | 2018-04-09T19:44:41.000Z | humidityModule.py | HarvardURC/MATE_ROV | 30f7dc3a1caa6532e5cd44e3029de5353e79d656 | [
"MIT"
] | 1 | 2017-10-27T01:39:31.000Z | 2017-10-27T01:39:31.000Z | #!/usr/bin/env python3
import os, random
import Adafruit_DHT
import robomodules as rm
from messages import *
ADDRESS = os.environ.get("BIND_ADDRESS","localhost")
PORT = os.environ.get("BIND_PORT", 11297)
FREQUENCY = 10
SENSOR_PIN1 = 21
if __name__ == "__main__":
main()
| 25.184211 | 81 | 0.667712 |
1b003975472ca4e747fcb857f7a8e214a5857ca2 | 3,643 | py | Python | src/towerData.py | jahrmarkt/TowerGame | 7d15b72a2dd7bdd1bb31795129d1261c021e07e4 | [
"MIT"
] | null | null | null | src/towerData.py | jahrmarkt/TowerGame | 7d15b72a2dd7bdd1bb31795129d1261c021e07e4 | [
"MIT"
] | null | null | null | src/towerData.py | jahrmarkt/TowerGame | 7d15b72a2dd7bdd1bb31795129d1261c021e07e4 | [
"MIT"
] | null | null | null |
from enum import Enum
from pygame.sprite import *
pygame.init()
pygame.mixer.init()
size = (width, height) = 512, 704
screen = pygame.display.set_mode(size)
spriteTowerFire = loadTower('fire')
spriteTowerRocky = loadTower('rocky')
spriteTowerYellow = loadTower('yellow')
spriteTowerGreen = loadTower('green')
sprit... | 35.368932 | 108 | 0.747461 |
1b0104d9632c8d080c1827f39f0a95094b98554a | 657 | py | Python | lib/iputils.py | cmusatyalab/PyEdgeSim | edc13488d66ec9582543e5f116c6611ef7b65d9d | [
"Apache-2.0"
] | null | null | null | lib/iputils.py | cmusatyalab/PyEdgeSim | edc13488d66ec9582543e5f116c6611ef7b65d9d | [
"Apache-2.0"
] | null | null | null | lib/iputils.py | cmusatyalab/PyEdgeSim | edc13488d66ec9582543e5f116c6611ef7b65d9d | [
"Apache-2.0"
] | null | null | null | import math
| 24.333333 | 72 | 0.479452 |
1b02966f6bd91456827cf2718b30f4933e7e5684 | 480 | py | Python | example_app/blog/models.py | yswtrue/taggit-selectize | 7c417e5179629414d2ef8ed000b1d14d5980da5b | [
"BSD-3-Clause"
] | 77 | 2015-02-15T23:57:39.000Z | 2021-06-04T06:32:41.000Z | example_app/blog/models.py | yswtrue/taggit-selectize | 7c417e5179629414d2ef8ed000b1d14d5980da5b | [
"BSD-3-Clause"
] | 38 | 2015-02-16T08:11:27.000Z | 2021-11-11T15:08:19.000Z | example_app/blog/models.py | yswtrue/taggit-selectize | 7c417e5179629414d2ef8ed000b1d14d5980da5b | [
"BSD-3-Clause"
] | 29 | 2016-01-25T21:55:44.000Z | 2021-11-09T00:19:45.000Z | from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from taggit_selectize.managers import TaggableManager
| 28.235294 | 71 | 0.76875 |
1b02c52eb8e50d7a9e3fc36190eaa0db8578b01f | 2,627 | py | Python | site_scons/site_tools/mongo_test_list.py | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | site_scons/site_tools/mongo_test_list.py | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | site_scons/site_tools/mongo_test_list.py | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 MongoDB Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribu... | 33.253165 | 86 | 0.723258 |
1b0516b8ceec71b4a22f3512c68394f69f6ca430 | 36 | py | Python | Pluto/Systems/__init__.py | n8vm/Foton | eacec2de9bf53d8fecff387b60604e6227baea28 | [
"MIT"
] | 10 | 2019-12-16T18:04:48.000Z | 2021-05-06T00:40:11.000Z | Pluto/Systems/__init__.py | natevm/Foton | eacec2de9bf53d8fecff387b60604e6227baea28 | [
"MIT"
] | 35 | 2019-01-29T21:57:44.000Z | 2019-04-29T02:40:20.000Z | Pluto/Systems/__init__.py | natevm/Foton | eacec2de9bf53d8fecff387b60604e6227baea28 | [
"MIT"
] | 1 | 2019-01-19T22:34:00.000Z | 2019-01-19T22:34:00.000Z | from Pluto.Systems.Systems import *
| 18 | 35 | 0.805556 |
1b0551d9765111fa7a1ec6da6ab967658f426c99 | 3,659 | py | Python | MULTITASK_FILES/TSM_FILES/scripts/anns-stats.py | egoodman92/semi-supervised-surgery | 42f7af7e707e71ecd64b9f215fab5c07e2b71d70 | [
"MIT"
] | null | null | null | MULTITASK_FILES/TSM_FILES/scripts/anns-stats.py | egoodman92/semi-supervised-surgery | 42f7af7e707e71ecd64b9f215fab5c07e2b71d70 | [
"MIT"
] | null | null | null | MULTITASK_FILES/TSM_FILES/scripts/anns-stats.py | egoodman92/semi-supervised-surgery | 42f7af7e707e71ecd64b9f215fab5c07e2b71d70 | [
"MIT"
] | null | null | null | import pandas as pd
import click
import statistics
if __name__ == '__main__':
start()
| 38.515789 | 105 | 0.598524 |
1b069eee129e69f7b50529f8283d98c09f05a638 | 836 | py | Python | architecture/structures/fsm.py | TEKERone/VuelaBot | c333ba213a91fd2297b5bd2ee393226dcbb39c01 | [
"MIT"
] | null | null | null | architecture/structures/fsm.py | TEKERone/VuelaBot | c333ba213a91fd2297b5bd2ee393226dcbb39c01 | [
"MIT"
] | null | null | null | architecture/structures/fsm.py | TEKERone/VuelaBot | c333ba213a91fd2297b5bd2ee393226dcbb39c01 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from architecture.structures.states import State
from architecture.sensors.parsing import NLParser
| 27.866667 | 75 | 0.657895 |
1b070569440283ace41e531ed1fdfe7ceba09609 | 2,919 | py | Python | generate_pre-test_confis.py | DirkZomerdijk/status | 299aca6986c0b274500c40613151d55aa98d5f52 | [
"MIT"
] | null | null | null | generate_pre-test_confis.py | DirkZomerdijk/status | 299aca6986c0b274500c40613151d55aa98d5f52 | [
"MIT"
] | null | null | null | generate_pre-test_confis.py | DirkZomerdijk/status | 299aca6986c0b274500c40613151d55aa98d5f52 | [
"MIT"
] | null | null | null | #%%
import numpy as np
import matplotlib.pyplot as plt
import json
import copy
# chronic_threshold
# repeats
# time
# stress_max
global_settings = {
"data_file": "clean",
"save_folder": "pre-test\\",
"status_type": "linear",
"distance_measure": "euclidean",
"scenario": "normal",
# "dutch_w": 0.... | 33.170455 | 113 | 0.584447 |
1b084957ce54dfc38011de897df30991e0e6f6c8 | 901 | py | Python | checkov/terraform/checks/resource/gcp/GoogleComputeBootDiskEncryption.py | shimont/checkov | 470e4998f3a0287cdb80b75a898927027c42e16b | [
"Apache-2.0"
] | null | null | null | checkov/terraform/checks/resource/gcp/GoogleComputeBootDiskEncryption.py | shimont/checkov | 470e4998f3a0287cdb80b75a898927027c42e16b | [
"Apache-2.0"
] | null | null | null | checkov/terraform/checks/resource/gcp/GoogleComputeBootDiskEncryption.py | shimont/checkov | 470e4998f3a0287cdb80b75a898927027c42e16b | [
"Apache-2.0"
] | null | null | null | from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck
from checkov.common.models.enums import CheckResult, CheckCategories
check = GoogleComputeBootDiskEncryption()
| 40.954545 | 112 | 0.738069 |
1b0ad8cc1c1a79ccf74d4af235e3eba0c62262a2 | 3,008 | py | Python | siren.py | idgmatrix/coin | 2f2df0614ed4fc866d4b7715ee206081e08b9424 | [
"MIT"
] | 84 | 2021-04-10T17:25:31.000Z | 2022-03-24T10:45:08.000Z | siren.py | idgmatrix/coin | 2f2df0614ed4fc866d4b7715ee206081e08b9424 | [
"MIT"
] | null | null | null | siren.py | idgmatrix/coin | 2f2df0614ed4fc866d4b7715ee206081e08b9424 | [
"MIT"
] | 13 | 2021-04-22T09:28:48.000Z | 2022-03-24T11:46:02.000Z | # Based on https://github.com/lucidrains/siren-pytorch
import torch
from torch import nn
from math import sqrt
| 31.663158 | 90 | 0.602061 |
1b0b5385379c866640e35c8a01868562a900ce1f | 8,606 | py | Python | asset/google/cloud/asset_v1/proto/asset_service_pb2_grpc.py | conwaychriscosmo/google-cloud-python | 8e7b7f8a5f4bb04d13f4d88ec3848f017faf834a | [
"Apache-2.0"
] | 1 | 2019-03-26T21:44:51.000Z | 2019-03-26T21:44:51.000Z | asset/google/cloud/asset_v1/proto/asset_service_pb2_grpc.py | conwaychriscosmo/google-cloud-python | 8e7b7f8a5f4bb04d13f4d88ec3848f017faf834a | [
"Apache-2.0"
] | 40 | 2019-07-16T10:04:48.000Z | 2020-01-20T09:04:59.000Z | asset/google/cloud/asset_v1/proto/asset_service_pb2_grpc.py | conwaychriscosmo/google-cloud-python | 8e7b7f8a5f4bb04d13f4d88ec3848f017faf834a | [
"Apache-2.0"
] | 2 | 2019-07-18T00:05:31.000Z | 2019-11-27T14:17:22.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.cloud.asset_v1.proto import (
asset_service_pb2 as google_dot_cloud_dot_asset__v1_dot_proto_dot_asset__service__pb2,
)
from google.longrunning import (
operations_pb2 as google_dot_longrunning_dot_operations__pb2,
)
f... | 51.843373 | 145 | 0.757146 |
1b0b98eac31f986426335fe4a1b639f5a2b189be | 52 | py | Python | sat_datetime/__init__.py | junhg0211/sat-datetime | 519700011c8d17e33fd844b53a6e17563bb2abae | [
"MIT"
] | null | null | null | sat_datetime/__init__.py | junhg0211/sat-datetime | 519700011c8d17e33fd844b53a6e17563bb2abae | [
"MIT"
] | null | null | null | sat_datetime/__init__.py | junhg0211/sat-datetime | 519700011c8d17e33fd844b53a6e17563bb2abae | [
"MIT"
] | null | null | null | from .sat_datetime import SatDatetime, SatTimedelta
| 26 | 51 | 0.865385 |
1b0be51bf909125818059e14554ee8ddc0df6805 | 357 | py | Python | src/main/python/cobra/mit/_loader.py | tm0nk/cobra-j | daeb85250e63cb21e9c02ecc2acfdf8ba1e44d6b | [
"Apache-2.0"
] | null | null | null | src/main/python/cobra/mit/_loader.py | tm0nk/cobra-j | daeb85250e63cb21e9c02ecc2acfdf8ba1e44d6b | [
"Apache-2.0"
] | null | null | null | src/main/python/cobra/mit/_loader.py | tm0nk/cobra-j | daeb85250e63cb21e9c02ecc2acfdf8ba1e44d6b | [
"Apache-2.0"
] | null | null | null | # Copyright (c) '2015' Cisco Systems, Inc. All Rights Reserved
import importlib
| 27.461538 | 62 | 0.694678 |
1b0c11892ef3aa133d021c6ddd9006dc0cf33060 | 2,367 | py | Python | Knil Dungeon/Dialog.py | WexyR/KNIL | b81c5d4025d1f4e1607b0e948c4611cff0fdbc2e | [
"MIT"
] | null | null | null | Knil Dungeon/Dialog.py | WexyR/KNIL | b81c5d4025d1f4e1607b0e948c4611cff0fdbc2e | [
"MIT"
] | null | null | null | Knil Dungeon/Dialog.py | WexyR/KNIL | b81c5d4025d1f4e1607b0e948c4611cff0fdbc2e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import Menu
import Game
import Tools
def dialog_box_create(ROWS, COLS, percent_size_rows=0.25):
"""Initialise une boite de dialogue"""
assert isinstance(percent_size_rows, float) and 0 <= percent_size_rows
d = dict()
x = 1
y = int((ROWS-1) * (1-percent_size_rows))+1
d[... | 38.177419 | 173 | 0.606253 |
1b0d7458eb7f29bf8431f38d4ac67830ed31e880 | 4,283 | py | Python | auth/oauth.py | sensi277/rebble-auth-py | 298b7b15f0835d8379e0ef132a129940061a9ca1 | [
"MIT"
] | null | null | null | auth/oauth.py | sensi277/rebble-auth-py | 298b7b15f0835d8379e0ef132a129940061a9ca1 | [
"MIT"
] | null | null | null | auth/oauth.py | sensi277/rebble-auth-py | 298b7b15f0835d8379e0ef132a129940061a9ca1 | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
import logging
from flask import Blueprint, abort, render_template, request, redirect
from flask_oauthlib.provider import OAuth2Provider
from oauthlib.common import generate_token as generate_random_token
from flask_login import current_user, login_required
from auth.login.bas... | 32.694656 | 118 | 0.698342 |
1b0d87e9e2bba7df5791ad78a281a75b6788eda5 | 10,061 | py | Python | datasets/creator.py | ionicsolutions/kokolores | 179db18d384ce31645bcce3506924ac235723309 | [
"MIT"
] | 1 | 2021-06-15T14:38:45.000Z | 2021-06-15T14:38:45.000Z | datasets/creator.py | ionicsolutions/kokolores | 179db18d384ce31645bcce3506924ac235723309 | [
"MIT"
] | null | null | null | datasets/creator.py | ionicsolutions/kokolores | 179db18d384ce31645bcce3506924ac235723309 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2018 Kilian Kluge
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge,... | 40.405622 | 80 | 0.587516 |
1b0d9662f2b05d2ad83bc0fe148544efb0eb5d9a | 2,492 | py | Python | 04-Working-With-Dataframes/4.Exercise_ Distinct Articles.py | RodriGonca/DP-203-Data-Engineer | ef8e81bd4bda1e285c2e43714368d46be3ad041b | [
"MIT"
] | null | null | null | 04-Working-With-Dataframes/4.Exercise_ Distinct Articles.py | RodriGonca/DP-203-Data-Engineer | ef8e81bd4bda1e285c2e43714368d46be3ad041b | [
"MIT"
] | null | null | null | 04-Working-With-Dataframes/4.Exercise_ Distinct Articles.py | RodriGonca/DP-203-Data-Engineer | ef8e81bd4bda1e285c2e43714368d46be3ad041b | [
"MIT"
] | null | null | null | # Databricks notebook source
# MAGIC %md
# MAGIC # Introduction to DataFrames Lab
# MAGIC ## Distinct Articles
# COMMAND ----------
# MAGIC %md
# MAGIC ## Instructions
# MAGIC
# MAGIC In the cell provided below, write the code ne... | 34.611111 | 126 | 0.6874 |
1b0dc54f280a6c3892e4a75f5fe210b433cdd5a8 | 12,098 | py | Python | schema_validators.py | iamtemazhe/excel_API | e800aa6b19c56093765a2c155677b5f118a0fc2f | [
"MIT"
] | null | null | null | schema_validators.py | iamtemazhe/excel_API | e800aa6b19c56093765a2c155677b5f118a0fc2f | [
"MIT"
] | null | null | null | schema_validators.py | iamtemazhe/excel_API | e800aa6b19c56093765a2c155677b5f118a0fc2f | [
"MIT"
] | null | null | null | from re import compile as re_compile
from urllib.parse import parse_qs, quote_plus, urlencode, urlparse, urlunparse
from marshmallow import ValidationError
from .base_validators import BaseError, BaseValidator
| 33.41989 | 80 | 0.538684 |
1b0f00c8a4f0b6ea6e4be35b7b0a28aaec35303d | 3,501 | py | Python | _CNDB/_OMP/Net_Credentials.py | CNDB/CNDB | 2e3a41111f604cf2f4f22a7c9370bb3f753e3e88 | [
"BSD-3-Clause"
] | null | null | null | _CNDB/_OMP/Net_Credentials.py | CNDB/CNDB | 2e3a41111f604cf2f4f22a7c9370bb3f753e3e88 | [
"BSD-3-Clause"
] | null | null | null | _CNDB/_OMP/Net_Credentials.py | CNDB/CNDB | 2e3a41111f604cf2f4f22a7c9370bb3f753e3e88 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2012-2014 Mag. Christian Tanzer All rights reserved
# Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at
# #*** <License> ************************************************************#
# This module is part of the package CNDB.OMP.
#
# This module is licensed under the t... | 30.443478 | 85 | 0.608683 |
1b1163b5c1c6d08f8b1ea7b7d3e6b064f710268e | 1,283 | py | Python | 52_最长不含重复字符的子字符串.py | wode1/-offer-python- | 22cb55b7a89f48c7d3686f0a7a822c16ff3976f1 | [
"Apache-2.0"
] | null | null | null | 52_最长不含重复字符的子字符串.py | wode1/-offer-python- | 22cb55b7a89f48c7d3686f0a7a822c16ff3976f1 | [
"Apache-2.0"
] | null | null | null | 52_最长不含重复字符的子字符串.py | wode1/-offer-python- | 22cb55b7a89f48c7d3686f0a7a822c16ff3976f1 | [
"Apache-2.0"
] | null | null | null | '''
'a'~'z
"arabcacfr""acfr",4
'''
s=Solution()
print(s.lengthOfLongestSubdtring2("yyabcdabjcabceg")) # cdabj
| 12.578431 | 62 | 0.631333 |
1b12e4960541d556c4b0e852acd3330b2c80755e | 541 | py | Python | capybara_tw/__init__.py | capybara-translation/capybara-tw | 5b588b6a29c17f33a94b7fe1a368fc92ad383953 | [
"MIT"
] | null | null | null | capybara_tw/__init__.py | capybara-translation/capybara-tw | 5b588b6a29c17f33a94b7fe1a368fc92ad383953 | [
"MIT"
] | null | null | null | capybara_tw/__init__.py | capybara-translation/capybara-tw | 5b588b6a29c17f33a94b7fe1a368fc92ad383953 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
from PyQt5.QtWidgets import QApplication
from capybara_tw.app import MainWindow
__version__ = '0.1'
__application_name__ = 'Capybara Translation Workbench'
__organization_name__ = 'Capybara Translation'
if __name__ == '__main__':
run()
| 23.521739 | 55 | 0.757856 |
1b1460a957da9eb21eaa0d16c51c3543620bbed5 | 5,394 | py | Python | app/car/tests/test_cars_api.py | raszidzie/cars-api | f212d59722fe37f3b2fc7f7f9d064c2a614a9d20 | [
"MIT"
] | 1 | 2021-02-05T07:10:55.000Z | 2021-02-05T07:10:55.000Z | app/car/tests/test_cars_api.py | raszidzie/cars-api | f212d59722fe37f3b2fc7f7f9d064c2a614a9d20 | [
"MIT"
] | null | null | null | app/car/tests/test_cars_api.py | raszidzie/cars-api | f212d59722fe37f3b2fc7f7f9d064c2a614a9d20 | [
"MIT"
] | null | null | null | import requests
from django.urls import reverse
from django.test import TestCase
from django.db.models import Count
from django.shortcuts import get_object_or_404
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Car, Rate
from car.serializers import CarSerializer, P... | 33.503106 | 111 | 0.644049 |
1b15ea98329556d9deeac5fd4430a13ee99a5e45 | 833 | py | Python | setup.py | 84KaliPleXon3/bni-api | 402b33b04b99481d9c2c152a19f1db14f8562826 | [
"MIT"
] | 9 | 2019-06-28T14:11:48.000Z | 2022-03-15T01:10:52.000Z | setup.py | p4kl0nc4t/bni-api | 402b33b04b99481d9c2c152a19f1db14f8562826 | [
"MIT"
] | 39 | 2019-06-28T15:41:39.000Z | 2020-05-17T20:37:46.000Z | setup.py | 84KaliPleXon3/bni-api | 402b33b04b99481d9c2c152a19f1db14f8562826 | [
"MIT"
] | 3 | 2019-07-04T14:37:02.000Z | 2019-10-02T13:39:20.000Z | import setuptools
import re
with open('README.md', 'r') as fh:
long_description = fh.read()
setuptools.setup(
name="bni_api",
version=get_version(),
author="loncat",
author_email="me@lcat.dev",
description=
"A Python wrapper for some of BNI's internet banking functionalities.",
long_de... | 28.724138 | 75 | 0.654262 |
1b1607f0ebb0c870703e285c64a547163919d409 | 1,184 | py | Python | example/controller/tests/testing/foo.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 18 | 2015-04-07T14:28:39.000Z | 2020-02-08T14:03:38.000Z | example/controller/tests/testing/foo.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 7 | 2016-10-05T05:14:06.000Z | 2021-05-20T02:07:22.000Z | example/controller/tests/testing/foo.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 11 | 2015-12-15T09:49:39.000Z | 2021-09-06T18:38:21.000Z | # -*- coding: utf-8 -*-
from dp_tornado.engine.controller import Controller
| 23.215686 | 73 | 0.407095 |
1b16d8170d438512d59dc6d2288c379436227f3d | 9,668 | py | Python | pytorch3d/implicitron/dataset/dataset_zoo.py | JulianKnodt/pytorch3d | d28a50e70aae62355e6e52908d3172c5e9175ba8 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pytorch3d/implicitron/dataset/dataset_zoo.py | JulianKnodt/pytorch3d | d28a50e70aae62355e6e52908d3172c5e9175ba8 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pytorch3d/implicitron/dataset/dataset_zoo.py | JulianKnodt/pytorch3d | d28a50e70aae62355e6e52908d3172c5e9175ba8 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import copy
import json
import os
from typing import Any, Dict, List, Optional, Sequence
from iopath.common.f... | 36.760456 | 88 | 0.608399 |
1b1717b44e9148ae97616955dad12e1104067a0e | 1,147 | py | Python | sh/scripts/view_faucet_account_keys.py | goral09/stests | 4de26485535cadf1b708188a7133a976536ccba3 | [
"Apache-2.0"
] | 4 | 2020-03-10T15:28:17.000Z | 2021-10-02T11:41:17.000Z | sh/scripts/view_faucet_account_keys.py | goral09/stests | 4de26485535cadf1b708188a7133a976536ccba3 | [
"Apache-2.0"
] | 1 | 2020-03-25T11:31:44.000Z | 2020-03-25T11:31:44.000Z | sh/scripts/view_faucet_account_keys.py | goral09/stests | 4de26485535cadf1b708188a7133a976536ccba3 | [
"Apache-2.0"
] | 9 | 2020-02-25T18:43:42.000Z | 2021-08-10T17:08:42.000Z | import argparse
from stests.core import cache
from stests.core import factory
from stests.core.utils import args_validator
from stests.core.utils import cli as utils
from stests.core.utils import env
from arg_utils import get_network
# CLI argument parser.
ARGS = argparse.ArgumentParser("Displays a keys asssociated... | 27.97561 | 96 | 0.710549 |
1b1778c3fb652ba615f85e01a3d409cb27dcc56d | 6,195 | py | Python | tvae/experiments/tvae_norb.py | anoniccv2021/Predictive-Coding-Topographic-VAE | 8a05c706dd9bce1399ac02440c1e50dd287c239e | [
"MIT"
] | null | null | null | tvae/experiments/tvae_norb.py | anoniccv2021/Predictive-Coding-Topographic-VAE | 8a05c706dd9bce1399ac02440c1e50dd287c239e | [
"MIT"
] | null | null | null | tvae/experiments/tvae_norb.py | anoniccv2021/Predictive-Coding-Topographic-VAE | 8a05c706dd9bce1399ac02440c1e50dd287c239e | [
"MIT"
] | null | null | null | import os
import wandb
from tqdm import tqdm
import torch
from torch import optim
from torch.optim.lr_scheduler import StepLR
from torch import nn
from torch.nn import functional as F
from tvae.data.small_norb import get_dataloader
from tvae.containers.tvae import TVAE
from tvae.models.mlp import MLP_Encoder_w_WN, MLP... | 48.398438 | 150 | 0.510734 |
1b18107e731c97c78274e71e34a4e53422066da2 | 54 | py | Python | tests/mac-logs/examples/tag/tag.py | andrewp-as-is/mac-logs.py | 13f39b9541e775ef886fc3501dd04b2d06f4aa04 | [
"Unlicense"
] | 1 | 2019-01-14T14:34:59.000Z | 2019-01-14T14:34:59.000Z | tests/mac-logs/examples/tag/tag.py | looking-for-a-job/mac-logs.py | 13f39b9541e775ef886fc3501dd04b2d06f4aa04 | [
"Unlicense"
] | null | null | null | tests/mac-logs/examples/tag/tag.py | looking-for-a-job/mac-logs.py | 13f39b9541e775ef886fc3501dd04b2d06f4aa04 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
import mac_logs
mac_logs.tag()
| 10.8 | 21 | 0.740741 |
1b182cfc73f0ae464fec05f9d3d9dbf900f37a69 | 1,401 | py | Python | ann.py | ErikRichardS/text-generator | 057990ce790e45f3f32d4f7b789b205c60156418 | [
"MIT"
] | null | null | null | ann.py | ErikRichardS/text-generator | 057990ce790e45f3f32d4f7b789b205c60156418 | [
"MIT"
] | null | null | null | ann.py | ErikRichardS/text-generator | 057990ce790e45f3f32d4f7b789b205c60156418 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import math
| 23.35 | 91 | 0.573876 |
1b18c3ce0af69bb346628f41fe72f124b56c49f7 | 3,349 | py | Python | camd3/infrastructure/component/tests/test_idgenerators.py | mamrhein/CAmD3 | d20f62295771a297c3fbb314beef314e5ec7a2b5 | [
"BSD-2-Clause"
] | null | null | null | camd3/infrastructure/component/tests/test_idgenerators.py | mamrhein/CAmD3 | d20f62295771a297c3fbb314beef314e5ec7a2b5 | [
"BSD-2-Clause"
] | null | null | null | camd3/infrastructure/component/tests/test_idgenerators.py | mamrhein/CAmD3 | d20f62295771a297c3fbb314beef314e5ec7a2b5 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# ----------------------------------------------------------------------------
# Name: test_idgenerators
# Purpose: Test driver for module idgenerators
#
# Author: Michael Amrhein (michael@adrhinum.de)
#
# Copyright: (c) Michael Amrhein
# -----------------------------------------... | 31.59434 | 78 | 0.571215 |
1b1aae52aa5cff45e911037583b8775cf7575004 | 2,940 | py | Python | seahub/onlyoffice/views.py | jjzhang166/seahub | 8ced28759fc1e158196a7743eb149882451f9143 | [
"Apache-2.0"
] | null | null | null | seahub/onlyoffice/views.py | jjzhang166/seahub | 8ced28759fc1e158196a7743eb149882451f9143 | [
"Apache-2.0"
] | null | null | null | seahub/onlyoffice/views.py | jjzhang166/seahub | 8ced28759fc1e158196a7743eb149882451f9143 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2012-2017 Seafile Ltd.
import json
import logging
import os
import requests
import urllib2
from django.core.cache import cache
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from seaserv import seafile_api
from .settings import VERIFY_ONLYOFFICE_CERTIFICATE
f... | 40.273973 | 611 | 0.652041 |
1b1acb3da87ff1fab8416f66740940a5554cf27f | 5,899 | py | Python | ProgrammingAssignments/pyretic/pyretic/tutorial/of_tutorial.py | Mahdi-Asaly/Coursera-SDN-Assignments | aac5d62f40c5283e296a0f87b7ec2de8986a8efc | [
"Intel"
] | null | null | null | ProgrammingAssignments/pyretic/pyretic/tutorial/of_tutorial.py | Mahdi-Asaly/Coursera-SDN-Assignments | aac5d62f40c5283e296a0f87b7ec2de8986a8efc | [
"Intel"
] | null | null | null | ProgrammingAssignments/pyretic/pyretic/tutorial/of_tutorial.py | Mahdi-Asaly/Coursera-SDN-Assignments | aac5d62f40c5283e296a0f87b7ec2de8986a8efc | [
"Intel"
] | null | null | null |
################################################################################
# The Pyretic Project #
# frenetic-lang.org/pyretic #
# author: Joshua Reich (jreich@cs.princeton.edu) ... | 55.650943 | 91 | 0.561282 |
1b1db678e9b628776e9c3b517be21f818fe07138 | 931 | py | Python | brambling/management/commands/update_tokens.py | j-po/django-brambling | be072903fbdecb94f1ec4680b717adc44e73c80b | [
"BSD-3-Clause"
] | null | null | null | brambling/management/commands/update_tokens.py | j-po/django-brambling | be072903fbdecb94f1ec4680b717adc44e73c80b | [
"BSD-3-Clause"
] | null | null | null | brambling/management/commands/update_tokens.py | j-po/django-brambling | be072903fbdecb94f1ec4680b717adc44e73c80b | [
"BSD-3-Clause"
] | null | null | null | from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from brambling.utils.payment import dwolla_update_tokens
| 32.103448 | 75 | 0.62406 |