hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | 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 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | 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 248 | max_forks_repo_name stringlengths 5 125 | 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 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9646e8e2458a9b399cec0bf5ce7ece6cbbdffad6 | 1,938 | py | Python | temp/src/square.py | wvu-irl/smart-2 | b39b6d477b5259b3bf0d96180a154ee1dafae0ac | [
"MIT"
] | null | null | null | temp/src/square.py | wvu-irl/smart-2 | b39b6d477b5259b3bf0d96180a154ee1dafae0ac | [
"MIT"
] | null | null | null | temp/src/square.py | wvu-irl/smart-2 | b39b6d477b5259b3bf0d96180a154ee1dafae0ac | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
from geometry_msgs.msg import Twist
from math import radians
import os
import numpy as np
from nav_msgs.msg import Odometry
class DrawASquare():
def __init__(self):
# initiliaze
rospy.init_node('drawasquare', anonymous=True)
# What to do you ctrl + c ... | 27.685714 | 120 | 0.583591 | 1,657 | 0.855005 | 0 | 0 | 0 | 0 | 0 | 0 | 660 | 0.340557 |
96484d835344ea1b7665583dd26015806d06751a | 4,233 | py | Python | ellipses/script_train_radon_tiramisu_jitter_v6.py | jmaces/robust-nets | 25d49302f9fa5fcc9ded2727de75e96e25243d09 | [
"MIT"
] | 14 | 2020-11-10T07:37:23.000Z | 2022-03-21T15:19:22.000Z | ellipses/script_train_radon_tiramisu_jitter_v6.py | jmaces/robust-nets | 25d49302f9fa5fcc9ded2727de75e96e25243d09 | [
"MIT"
] | null | null | null | ellipses/script_train_radon_tiramisu_jitter_v6.py | jmaces/robust-nets | 25d49302f9fa5fcc9ded2727de75e96e25243d09 | [
"MIT"
] | 2 | 2021-03-13T14:39:36.000Z | 2022-02-17T06:44:29.000Z | import os
import matplotlib as mpl
import torch
import torchvision
from data_management import IPDataset, Jitter, SimulateMeasurements
from networks import IterativeNet, Tiramisu
from operators import Radon
# ----- load configuration -----
import config # isort:skip
# ----- global configuration -----
mpl.use("agg... | 27.309677 | 75 | 0.617056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,183 | 0.279471 |
964933bf3abeb9eecd5bbbd430d2ba1f1f9daec5 | 142 | py | Python | Python practice/Mit opencourceware(2.7)/quiz1_p2.py | chiranjeevbitp/Python27new | d366efee57857402bae16cabf1df94c657490750 | [
"bzip2-1.0.6"
] | null | null | null | Python practice/Mit opencourceware(2.7)/quiz1_p2.py | chiranjeevbitp/Python27new | d366efee57857402bae16cabf1df94c657490750 | [
"bzip2-1.0.6"
] | null | null | null | Python practice/Mit opencourceware(2.7)/quiz1_p2.py | chiranjeevbitp/Python27new | d366efee57857402bae16cabf1df94c657490750 | [
"bzip2-1.0.6"
] | null | null | null | #import pdb
T = (0.1, 0.1)
x = 0.0
for i in range(len(T)):
for j in T:
x += i + j
print x
print i
#pdb.set_trace()
| 14.2 | 24 | 0.464789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 29 | 0.204225 |
964a16c465623ad04aac69e828d235990e03190f | 13,029 | py | Python | invMLEnc_toy/main.py | Lupin1998/inv-ML | 9f3db461911748292dff18024587538eb66d44bf | [
"MIT"
] | 1 | 2021-12-14T09:16:17.000Z | 2021-12-14T09:16:17.000Z | invMLEnc_toy/main.py | Lupin1998/inv-ML | 9f3db461911748292dff18024587538eb66d44bf | [
"MIT"
] | null | null | null | invMLEnc_toy/main.py | Lupin1998/inv-ML | 9f3db461911748292dff18024587538eb66d44bf | [
"MIT"
] | 2 | 2021-12-14T09:10:00.000Z | 2022-01-21T16:57:44.000Z | import os
import numpy as np
import random as rd
import time
import argparse
import torch
import torch.utils.data
from torch import optim
import dataset
import gifploter
from trainer.InvML_trainer import InvML_trainer
from generator.samplegenerater import SampleIndexGenerater
def PlotLatenSpace(model, batch_size, d... | 34.468254 | 126 | 0.523985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,753 | 0.211298 |
964a55bd656809ac77520d02fe3eb7d52ed867d8 | 16,896 | py | Python | backend/openweathermap.py | tangb/cleepmod-openweathermap | cbef1cad7af36ac6b801cb0df6651dd732b4a160 | [
"MIT"
] | null | null | null | backend/openweathermap.py | tangb/cleepmod-openweathermap | cbef1cad7af36ac6b801cb0df6651dd732b4a160 | [
"MIT"
] | null | null | null | backend/openweathermap.py | tangb/cleepmod-openweathermap | cbef1cad7af36ac6b801cb0df6651dd732b4a160 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import time
import requests
from cleep.exception import CommandError, MissingParameter
from cleep.libs.internals.task import Task
from cleep.core import CleepModule
from cleep.common import CATEGORIES
__all__ = ["Openweathermap"]
class Openweathermap(CleepMo... | 32 | 113 | 0.533381 | 16,603 | 0.982659 | 0 | 0 | 0 | 0 | 0 | 0 | 7,512 | 0.444602 |
964a8ebce3df5d896031c77dad18e3a15b609702 | 527 | py | Python | tests/test_wps_dummy.py | f-PLT/emu | c0bb27d57afcaa361772ce99eaf11f706983b3b2 | [
"Apache-2.0"
] | 3 | 2015-11-10T10:08:07.000Z | 2019-09-09T20:41:25.000Z | tests/test_wps_dummy.py | f-PLT/emu | c0bb27d57afcaa361772ce99eaf11f706983b3b2 | [
"Apache-2.0"
] | 76 | 2015-02-01T23:17:17.000Z | 2021-12-20T14:17:59.000Z | tests/test_wps_dummy.py | f-PLT/emu | c0bb27d57afcaa361772ce99eaf11f706983b3b2 | [
"Apache-2.0"
] | 8 | 2016-10-13T16:44:02.000Z | 2020-12-22T18:36:53.000Z | from pywps import Service
from pywps.tests import assert_response_success
from .common import client_for, get_output
from emu.processes.wps_dummy import Dummy
def test_wps_dummy():
client = client_for(Service(processes=[Dummy()]))
datainputs = "input1=10;input2=2"
resp = client.get(
service='WPS'... | 31 | 68 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 80 | 0.151803 |
964ae4268e2f7a93ee8eacf634fa2376a1e04d95 | 476 | py | Python | test/talker.py | cjds/rosgo | 2a832421948707baca6413fe4394e28ed0c36d86 | [
"Apache-2.0"
] | 148 | 2016-02-16T18:29:34.000Z | 2022-03-18T13:13:46.000Z | test/talker.py | cjds/rosgo | 2a832421948707baca6413fe4394e28ed0c36d86 | [
"Apache-2.0"
] | 24 | 2018-12-21T19:32:15.000Z | 2021-01-20T00:27:51.000Z | test/talker.py | cjds/rosgo | 2a832421948707baca6413fe4394e28ed0c36d86 | [
"Apache-2.0"
] | 45 | 2015-11-16T06:31:10.000Z | 2022-03-28T12:46:44.000Z | #!/usr/bin/env python
import rospy
from std_msgs.msg import String
def talker():
pub = rospy.Publisher('chatter', String)
rospy.init_node('talker', anonymous=True)
while not rospy.is_shutdown():
str = "%s: hello world %s" % (rospy.get_name(), rospy.get_time())
rospy.loginfo(str)
pu... | 22.666667 | 73 | 0.628151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 68 | 0.142857 |
964b60ee1051cb3579b95c9af76b42037448ddeb | 9,365 | py | Python | point_to_box/model.py | BavarianToolbox/point_to_box | 6769739361410499596f53a60704cbedae56bd81 | [
"Apache-2.0"
] | null | null | null | point_to_box/model.py | BavarianToolbox/point_to_box | 6769739361410499596f53a60704cbedae56bd81 | [
"Apache-2.0"
] | null | null | null | point_to_box/model.py | BavarianToolbox/point_to_box | 6769739361410499596f53a60704cbedae56bd81 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/02_model.ipynb (unless otherwise specified).
__all__ = ['EfficientLoc', 'CIoU']
# Cell
#export
from efficientnet_pytorch import EfficientNet
import copy
import time
import math
import torch
import torch.optim as opt
from torch.utils.data import DataLoader
from torchv... | 33.091873 | 112 | 0.553017 | 9,004 | 0.961452 | 0 | 0 | 0 | 0 | 0 | 0 | 2,450 | 0.261612 |
964d531f50577c7580159804463196dbab58e21c | 7,643 | py | Python | Receptive_Field_PyNN/2rtna_connected_to_4ReceptiveFields/anmy_TDXY.py | mahmoud-a-ali/Thesis_sample_codes | 02a912dd012291b00c89db195b4cba2ebb4d35fe | [
"MIT"
] | null | null | null | Receptive_Field_PyNN/2rtna_connected_to_4ReceptiveFields/anmy_TDXY.py | mahmoud-a-ali/Thesis_sample_codes | 02a912dd012291b00c89db195b4cba2ebb4d35fe | [
"MIT"
] | null | null | null | Receptive_Field_PyNN/2rtna_connected_to_4ReceptiveFields/anmy_TDXY.py | mahmoud-a-ali/Thesis_sample_codes | 02a912dd012291b00c89db195b4cba2ebb4d35fe | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sat Jun 2 13:09:55 2018
@author: mali
"""
#import time
import pickle
import pyNN.utility.plotting as plot
import matplotlib.pyplot as plt
import comn_conversion as cnvrt
import prnt_plt_anmy as ppanmy
# file and folder names =============================... | 37.282927 | 180 | 0.483056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,708 | 0.48515 |
964d60906285ddfcdeb808da94455db7bd3067ea | 5,998 | py | Python | meAdota/settings.py | guipeeix7/website | 4081899060e69688314a5577ceab5c7b840e7b7f | [
"MIT"
] | 6 | 2020-10-19T23:13:07.000Z | 2020-12-02T19:08:32.000Z | meAdota/settings.py | guipeeix7/website | 4081899060e69688314a5577ceab5c7b840e7b7f | [
"MIT"
] | 69 | 2020-10-23T03:52:47.000Z | 2020-12-04T01:12:49.000Z | meAdota/settings.py | guipeeix7/website | 4081899060e69688314a5577ceab5c7b840e7b7f | [
"MIT"
] | 1 | 2020-12-08T22:10:08.000Z | 2020-12-08T22:10:08.000Z | """
Django settings for meAdota project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib... | 27.140271 | 91 | 0.672391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,932 | 0.655552 |
964eca76f4c35f59907bf26e2512971b1aa50b0f | 1,098 | py | Python | Machine Learning/Regression/reg.py | brett-harvey/Brett-s-AI-Library | 43f9bfd5eca92b9e28c6d4532afb943d03d80b67 | [
"MIT"
] | null | null | null | Machine Learning/Regression/reg.py | brett-harvey/Brett-s-AI-Library | 43f9bfd5eca92b9e28c6d4532afb943d03d80b67 | [
"MIT"
] | null | null | null | Machine Learning/Regression/reg.py | brett-harvey/Brett-s-AI-Library | 43f9bfd5eca92b9e28c6d4532afb943d03d80b67 | [
"MIT"
] | null | null | null | from sklearn import preprocessing, svm
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
from sklearn import cross_validation
import pandas as pd
import numpy as np
import quandl
import math
df = quandl.get('WIKI/GOOGL')
df = df[['Adj. Open', 'Adj. High', 'Adj. Lo... | 29.675676 | 90 | 0.6949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 241 | 0.21949 |
964ed654a2da39f4913b8a0e948783cdb15246e1 | 12,126 | py | Python | src/app.py | tatianamaia/Corona | d944395d8b7b7a740b57e9bb7895f0835bc63d10 | [
"MIT"
] | null | null | null | src/app.py | tatianamaia/Corona | d944395d8b7b7a740b57e9bb7895f0835bc63d10 | [
"MIT"
] | null | null | null | src/app.py | tatianamaia/Corona | d944395d8b7b7a740b57e9bb7895f0835bc63d10 | [
"MIT"
] | null | null | null | import datetime
import os
import yaml
import numpy as np
import pandas as pd
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from scipy.integrate import solve_ivp
from scipy.optimize import minimize
import plotly.graph_objs as go
ENV_F... | 34.547009 | 289 | 0.455303 | 0 | 0 | 0 | 0 | 4,447 | 0.366702 | 0 | 0 | 3,928 | 0.323905 |
964f51bb97bc51b17e213093a0a26eca6712c8ec | 1,014 | py | Python | tests/io/test_kepseismic.py | jorgemarpa/lightkurve | 86320a67eabb3a93f60e9faff0447e4b235bccf2 | [
"MIT"
] | 235 | 2018-01-22T01:22:10.000Z | 2021-02-02T04:57:26.000Z | tests/io/test_kepseismic.py | jorgemarpa/lightkurve | 86320a67eabb3a93f60e9faff0447e4b235bccf2 | [
"MIT"
] | 847 | 2018-01-22T05:49:16.000Z | 2021-02-10T17:05:19.000Z | tests/io/test_kepseismic.py | jorgemarpa/lightkurve | 86320a67eabb3a93f60e9faff0447e4b235bccf2 | [
"MIT"
] | 121 | 2018-01-22T01:11:19.000Z | 2021-01-26T21:07:07.000Z | import pytest
from astropy.io import fits
import numpy as np
from lightkurve.io.kepseismic import read_kepseismic_lightcurve
from lightkurve.io.detect import detect_filetype
@pytest.mark.remote_data
def test_detect_kepseismic():
"""Can we detect the correct format for KEPSEISMIC files?"""
url = "https://arch... | 32.709677 | 155 | 0.757396 | 0 | 0 | 0 | 0 | 833 | 0.821499 | 0 | 0 | 437 | 0.430966 |
964fab6dbeeb71e25e526001be717823ea172dc3 | 32 | py | Python | backend/appengine/routes/gallerys/model.py | SamaraCardoso27/eMakeup | 02c3099aca85b5f54214c3a32590e80eb61621e7 | [
"MIT"
] | null | null | null | backend/appengine/routes/gallerys/model.py | SamaraCardoso27/eMakeup | 02c3099aca85b5f54214c3a32590e80eb61621e7 | [
"MIT"
] | null | null | null | backend/appengine/routes/gallerys/model.py | SamaraCardoso27/eMakeup | 02c3099aca85b5f54214c3a32590e80eb61621e7 | [
"MIT"
] | null | null | null | __author__ = 'Samara Cardoso'
| 8 | 29 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 16 | 0.5 |
965034c03fdf2183dfe02406617dfa08e3bd353a | 1,153 | py | Python | recipes/Python/223585_Stable_deep_sorting_dottedindexed_attributes/recipe-223585.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/223585_Stable_deep_sorting_dottedindexed_attributes/recipe-223585.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/223585_Stable_deep_sorting_dottedindexed_attributes/recipe-223585.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | def sortByAttrs(seq, attrs):
listComp = ['seq[:] = [(']
for attr in attrs:
listComp.append('seq[i].%s, ' % attr)
listComp.append('i, seq[i]) for i in xrange(len(seq))]')
exec('%s' % ''.join(listComp))
seq.sort()
seq[:] = [obj[-1] for obj in seq]
return
#
# begin test code
#
from random import randint
... | 18.015625 | 58 | 0.542064 | 211 | 0.183001 | 0 | 0 | 0 | 0 | 0 | 0 | 325 | 0.281873 |
9650401ec27713e595c5dbc7faa0b1080d66e16e | 1,710 | py | Python | spirit/topic/forms.py | ImaginaryLandscape/Spirit | 58b563c1b2290a95219257045afaa4f08ac94cbf | [
"MIT"
] | 974 | 2015-01-02T12:56:00.000Z | 2022-03-24T00:01:54.000Z | spirit/topic/forms.py | ImaginaryLandscape/Spirit | 58b563c1b2290a95219257045afaa4f08ac94cbf | [
"MIT"
] | 247 | 2015-01-07T02:59:26.000Z | 2022-02-23T08:27:57.000Z | spirit/topic/forms.py | ImaginaryLandscape/Spirit | 58b563c1b2290a95219257045afaa4f08ac94cbf | [
"MIT"
] | 366 | 2015-01-08T10:22:25.000Z | 2022-02-21T12:58:31.000Z | # -*- coding: utf-8 -*-
from django import forms
from django.utils.translation import gettext_lazy as _
from django.utils.encoding import smart_bytes
from django.utils import timezone
from ..core import utils
from ..core.utils.forms import NestedModelChoiceField
from ..category.models import Category
from .models imp... | 29.482759 | 81 | 0.64269 | 1,377 | 0.805263 | 0 | 0 | 0 | 0 | 0 | 0 | 173 | 0.10117 |
965076565be0243a0d0b837e3affc60f4cce7858 | 7,931 | py | Python | OST_helper/parameter.py | HomeletW/OST | 5e359d00a547af194a2a1a2591a53c93d8f40b84 | [
"MIT"
] | 1 | 2020-07-31T16:43:13.000Z | 2020-07-31T16:43:13.000Z | OST_helper/parameter.py | HomeletW/OST | 5e359d00a547af194a2a1a2591a53c93d8f40b84 | [
"MIT"
] | null | null | null | OST_helper/parameter.py | HomeletW/OST | 5e359d00a547af194a2a1a2591a53c93d8f40b84 | [
"MIT"
] | null | null | null | # constant
import json
import logging
import os
import platform
import subprocess
from datetime import date
from os.path import exists, expanduser, isdir, isfile, join, abspath, dirname
from PIL import Image
logging.basicConfig(
style="{",
format="{threadName:<10s} <{levelname:<7s}> [{asctime:<15s}] {message}... | 30.980469 | 80 | 0.651998 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,544 | 0.320767 |
96519d3044209db1a7fd83988e9afafa3678e598 | 398 | py | Python | examples/compat/ggplot_point.py | azjps/bokeh | 13375db53d4c60216f3bcf5aacccb081cf19450a | [
"BSD-3-Clause"
] | 1 | 2017-04-27T09:15:48.000Z | 2017-04-27T09:15:48.000Z | app/static/libs/bokeh/examples/compat/ggplot_point.py | TBxy/bokeh_start_app | 755494f6bc60e92ce17022bbd7f707a39132cbd0 | [
"MIT"
] | null | null | null | app/static/libs/bokeh/examples/compat/ggplot_point.py | TBxy/bokeh_start_app | 755494f6bc60e92ce17022bbd7f707a39132cbd0 | [
"MIT"
] | 1 | 2021-09-09T03:33:04.000Z | 2021-09-09T03:33:04.000Z | from ggplot import aes, geom_point, ggplot, mtcars
import matplotlib.pyplot as plt
from pandas import DataFrame
from bokeh import mpl
from bokeh.plotting import output_file, show
g = ggplot(mtcars, aes(x='wt', y='mpg', color='qsec')) + geom_point()
g.make()
plt.title("Point ggplot-based plot in Bokeh.")
output_fil... | 23.411765 | 69 | 0.751256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 94 | 0.236181 |
965346317a700c60ccb16c29a2836bf7e207f10e | 14,194 | py | Python | src/train_tune.py | vanang/korquad-challenge | c5df887aaa7f6b68edb5d46ad12d42097132df46 | [
"Apache-2.0"
] | null | null | null | src/train_tune.py | vanang/korquad-challenge | c5df887aaa7f6b68edb5d46ad12d42097132df46 | [
"Apache-2.0"
] | null | null | null | src/train_tune.py | vanang/korquad-challenge | c5df887aaa7f6b68edb5d46ad12d42097132df46 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[1]:
from __future__ import absolute_import, division, print_function
import argparse
import logging
import os
import random
import sys
from io import open
import numpy as np
import torch
import json
from torch.utils.data import (DataLoader, SequentialSampler, RandomSampl... | 38.994505 | 193 | 0.659222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,677 | 0.188601 |
9655150c478e5c7edceea8519f955d5cbf7c2792 | 3,604 | py | Python | BuyandBye_project/users/forms.py | sthasam2/BuyandBye | 07a998f289f9ae87b234cd6ca653a4fdb2765b95 | [
"MIT"
] | 1 | 2019-12-26T16:52:10.000Z | 2019-12-26T16:52:10.000Z | BuyandBye_project/users/forms.py | sthasam2/buyandbye | 07a998f289f9ae87b234cd6ca653a4fdb2765b95 | [
"MIT"
] | 13 | 2021-06-02T03:51:06.000Z | 2022-03-12T00:53:22.000Z | BuyandBye_project/users/forms.py | sthasam2/buyandbye | 07a998f289f9ae87b234cd6ca653a4fdb2765b95 | [
"MIT"
] | null | null | null | from datetime import date
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from phonenumber_field.formfields import PhoneNumberField
from .models import Profile
from .options import STATE_CHOICES, YEARS
from .utils import AgeValidator
class ... | 29.064516 | 92 | 0.59434 | 3,283 | 0.910932 | 0 | 0 | 0 | 0 | 0 | 0 | 850 | 0.235849 |
96565fe229818a242f95852b7feea959f0bbeb31 | 10,110 | py | Python | kolab/tokibi/tokibi.py | oshiooshi/kolab | 5f34614a995b2a31156b65e6eb9d512b9867540e | [
"MIT"
] | null | null | null | kolab/tokibi/tokibi.py | oshiooshi/kolab | 5f34614a995b2a31156b65e6eb9d512b9867540e | [
"MIT"
] | null | null | null | kolab/tokibi/tokibi.py | oshiooshi/kolab | 5f34614a995b2a31156b65e6eb9d512b9867540e | [
"MIT"
] | null | null | null | import sys
import pegtree as pg
from pegtree.visitor import ParseTreeVisitor
import random
# from . import verb
import verb
EMPTY = tuple()
# オプション
OPTION = {
'Simple': False, # シンプルな表現を優先する
'Block': False, # Expressionに <e> </e> ブロックをつける
'EnglishFirst': False, # 英訳の精度を優先する
'ShuffleSynonym': True,... | 24.128878 | 114 | 0.559149 | 6,600 | 0.610659 | 0 | 0 | 0 | 0 | 0 | 0 | 2,565 | 0.237324 |
96566f3a27305df43ef46e729f0d4af5e2007006 | 1,275 | py | Python | kaggle_downloader/kaggle_downloader.py | lars-reimann/kaggle-downloader | 583e68ee1c4860a153ae38f2a1cdba108ea8cb5a | [
"MIT"
] | null | null | null | kaggle_downloader/kaggle_downloader.py | lars-reimann/kaggle-downloader | 583e68ee1c4860a153ae38f2a1cdba108ea8cb5a | [
"MIT"
] | 3 | 2021-08-05T11:05:32.000Z | 2022-03-01T13:05:18.000Z | kaggle_downloader/kaggle_downloader.py | lars-reimann/kaggle-downloader | 583e68ee1c4860a153ae38f2a1cdba108ea8cb5a | [
"MIT"
] | null | null | null | from typing import Callable, Union
from kaggle import KaggleApi
from kaggle.models.kaggle_models_extended import Competition, Kernel
class KaggleDownloader:
def __init__(self) -> None:
self.client = KaggleApi()
self.client.authenticate()
def fetch_competition_refs(self) -> list[str]:
... | 27.717391 | 69 | 0.614902 | 1,138 | 0.892549 | 0 | 0 | 416 | 0.326275 | 0 | 0 | 40 | 0.031373 |
96578d44622fea775471eea152128045fac7dede | 1,281 | py | Python | trip/urls.py | tboonma/thairepose | 89aff7836a29bfee58a633db10c19d5e1ce4475f | [
"MIT"
] | 4 | 2021-11-07T05:50:41.000Z | 2021-12-01T08:57:12.000Z | trip/urls.py | tboonma/thairepose | 89aff7836a29bfee58a633db10c19d5e1ce4475f | [
"MIT"
] | 111 | 2021-10-19T09:24:14.000Z | 2021-11-28T18:02:21.000Z | trip/urls.py | tboonma/thairepose | 89aff7836a29bfee58a633db10c19d5e1ce4475f | [
"MIT"
] | 2 | 2021-11-28T06:37:03.000Z | 2022-01-16T18:17:02.000Z | from django.urls import path
from . import views
app_name = 'trip'
urlpatterns = [
path('', views.index, name='index'),
path('tripblog/', views.AllTrip.as_view(), name="tripplan"),
path('likereview/', views.like_comment_view, name="like_comment"),
path('tripdetail/<int:pk>/', views.trip_detail, name="t... | 53.375 | 101 | 0.698673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 563 | 0.4395 |
9657e65ccf97f075f8a25b19bf95a3ca2e2decf0 | 5,010 | py | Python | tests/test_rpc.py | tzoiker/aio-pika | 5a04853006310d2fbf458c449b0ea98427668fe8 | [
"Apache-2.0"
] | null | null | null | tests/test_rpc.py | tzoiker/aio-pika | 5a04853006310d2fbf458c449b0ea98427668fe8 | [
"Apache-2.0"
] | null | null | null | tests/test_rpc.py | tzoiker/aio-pika | 5a04853006310d2fbf458c449b0ea98427668fe8 | [
"Apache-2.0"
] | null | null | null | import asyncio
import logging
import pytest
from aio_pika import Message, connect_robust
from aio_pika.exceptions import DeliveryError
from aio_pika.patterns.rpc import RPC, log as rpc_logger
from tests import AMQP_URL
from tests.test_amqp import BaseTestCase
pytestmark = pytest.mark.asyncio
def rpc_func(*, foo, ... | 28.146067 | 76 | 0.633533 | 4,613 | 0.920758 | 0 | 0 | 0 | 0 | 4,494 | 0.897006 | 296 | 0.059082 |
96588284712f2b02b4c2431118e6f0abd22431a0 | 8,331 | py | Python | tests/python/pants_test/base/test_cmd_line_spec_parser.py | dturner-tw/pants | 3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/base/test_cmd_line_spec_parser.py | dturner-tw/pants | 3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/base/test_cmd_line_spec_parser.py | dturner-tw/pants | 3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
import re
... | 42.723077 | 101 | 0.680471 | 7,744 | 0.92954 | 0 | 0 | 120 | 0.014404 | 0 | 0 | 1,887 | 0.226503 |
9658caeffcd376fc80bf7f4677ee09db9594f2eb | 655 | py | Python | code/strats/switcher.py | Barigamb738/PrisonersDilemmaTournament | 22834192a30cbefdef4f06f41eea5ef7ec3a0652 | [
"MIT"
] | 23 | 2021-05-20T07:34:33.000Z | 2021-06-20T13:09:04.000Z | code/strats/switcher.py | Barigamb738/PrisonersDilemmaTournament | 22834192a30cbefdef4f06f41eea5ef7ec3a0652 | [
"MIT"
] | 19 | 2021-05-21T04:10:55.000Z | 2021-06-13T15:17:52.000Z | code/strats/switcher.py | Barigamb738/PrisonersDilemmaTournament | 22834192a30cbefdef4f06f41eea5ef7ec3a0652 | [
"MIT"
] | 43 | 2021-05-21T02:24:35.000Z | 2021-06-24T21:08:11.000Z | def strategy(history, memory):
round = history.shape[1]
GRUDGE = 0
LASTACTION = 1
if round == 0:
mem = []
mem.append(False)
mem.append(0)
return "cooperate", mem
mem = memory
if mem[GRUDGE]:
return "defect", mem
if round >= 5:
sin = 0
f... | 24.259259 | 36 | 0.464122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 46 | 0.070229 |
965a2d366a9e0c3114e09f3517d25bed152a9d40 | 2,363 | py | Python | pull_into_place/commands/run_additional_metrics.py | Kortemme-Lab/pull_into_place | 0019a6cec2a6130ebbaa49d7ab67d4c840fbe33c | [
"MIT"
] | 3 | 2018-05-31T18:46:46.000Z | 2020-05-04T03:27:38.000Z | pull_into_place/commands/run_additional_metrics.py | Kortemme-Lab/pull_into_place | 0019a6cec2a6130ebbaa49d7ab67d4c840fbe33c | [
"MIT"
] | 14 | 2016-09-14T00:16:49.000Z | 2018-04-11T03:04:21.000Z | pull_into_place/commands/run_additional_metrics.py | Kortemme-Lab/pull_into_place | 0019a6cec2a6130ebbaa49d7ab67d4c840fbe33c | [
"MIT"
] | 1 | 2017-11-27T07:35:56.000Z | 2017-11-27T07:35:56.000Z | #!/usr/bin/env python2
"""\
Run additional filters on a folder of pdbs and copy the results back
into the original pdb.
Usage:
pull_into_place run_additional_metrics <directory> [options]
Options:
--max-runtime TIME [default: 12:00:00]
The runtime limit for each design job. The default value is... | 28.130952 | 77 | 0.66314 | 0 | 0 | 0 | 0 | 1,036 | 0.438426 | 0 | 0 | 1,570 | 0.66441 |
965a870632eb281fc73c846d9b482a54e2ad0de9 | 827 | py | Python | setup.py | japherwocky/cl3ver | 148242feb676cc675bbdf11ae39c3179b9a6ffe1 | [
"MIT"
] | 1 | 2017-04-01T00:15:38.000Z | 2017-04-01T00:15:38.000Z | setup.py | japherwocky/cl3ver | 148242feb676cc675bbdf11ae39c3179b9a6ffe1 | [
"MIT"
] | null | null | null | setup.py | japherwocky/cl3ver | 148242feb676cc675bbdf11ae39c3179b9a6ffe1 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name = 'cl3ver',
packages = ['cl3ver'],
license = 'MIT',
install_requires = ['requests'],
version = '0.2',
description = 'A python 3 wrapper for the cleverbot.com API',
author = 'Japhy Bartlett',
auth... | 39.380952 | 84 | 0.541717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 410 | 0.495768 |
966165e75931deeaee2d1ab429f5cda6020e085f | 19,860 | py | Python | linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/example/microblog/microblog/jabber/pubsub.py | mdavid/nuxleus | 653f1310d8bf08eaa5a7e3326c2349e56a6abdc2 | [
"BSD-3-Clause"
] | 1 | 2017-03-28T06:41:51.000Z | 2017-03-28T06:41:51.000Z | linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/example/microblog/microblog/jabber/pubsub.py | mdavid/nuxleus | 653f1310d8bf08eaa5a7e3326c2349e56a6abdc2 | [
"BSD-3-Clause"
] | null | null | null | linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/example/microblog/microblog/jabber/pubsub.py | mdavid/nuxleus | 653f1310d8bf08eaa5a7e3326c2349e56a6abdc2 | [
"BSD-3-Clause"
] | 1 | 2016-12-13T21:08:58.000Z | 2016-12-13T21:08:58.000Z | # -*- coding: utf-8 -*-
import re
from Axon.Component import component
from Kamaelia.Util.Backplane import PublishTo, SubscribeTo
from Axon.Ipc import shutdownMicroprocess, producerFinished
from Kamaelia.Protocol.HTTP.HTTPClient import SimpleHTTPClient
from headstock.api.jid import JID
from headstock.api.im impor... | 39.72 | 127 | 0.507049 | 18,671 | 0.940131 | 11,582 | 0.583182 | 657 | 0.033082 | 0 | 0 | 3,829 | 0.1928 |
96616a7644cba49b6924d5d5a5b5f061a8473987 | 7,865 | py | Python | examples/task_sequence_labeling_ner_lstm_crf.py | lonePatient/TorchBlocks | 4a65d746cc8a396cb7df73ed4644d97ddf843e29 | [
"MIT"
] | 82 | 2020-06-23T05:51:08.000Z | 2022-03-29T08:11:08.000Z | examples/task_sequence_labeling_ner_lstm_crf.py | lonePatient/TorchBlocks | 4a65d746cc8a396cb7df73ed4644d97ddf843e29 | [
"MIT"
] | null | null | null | examples/task_sequence_labeling_ner_lstm_crf.py | lonePatient/TorchBlocks | 4a65d746cc8a396cb7df73ed4644d97ddf843e29 | [
"MIT"
] | 22 | 2020-06-23T05:51:10.000Z | 2022-03-18T07:01:43.000Z | import os
import json
from torchblocks.metrics import SequenceLabelingScore
from torchblocks.trainer import SequenceLabelingTrainer
from torchblocks.callback import TrainLogger
from torchblocks.processor import SequenceLabelingProcessor, InputExample
from torchblocks.utils import seed_everything, dict_to_text, bu... | 46.264706 | 118 | 0.614495 | 2,212 | 0.280675 | 0 | 0 | 0 | 0 | 0 | 0 | 1,107 | 0.140464 |
966233a14411c83da996b856512cb5f8c21c76c2 | 277 | py | Python | teachers/views.py | xuhairmeer/school-management | 36394c841a61e46bc00e1dc21bcfcdd5fa6f6918 | [
"bzip2-1.0.6"
] | null | null | null | teachers/views.py | xuhairmeer/school-management | 36394c841a61e46bc00e1dc21bcfcdd5fa6f6918 | [
"bzip2-1.0.6"
] | 9 | 2021-03-19T08:15:07.000Z | 2022-03-12T00:13:19.000Z | teachers/views.py | muhammadzuhair95/school-management | 36394c841a61e46bc00e1dc21bcfcdd5fa6f6918 | [
"bzip2-1.0.6"
] | null | null | null | # Create your views here.
from django.urls import reverse_lazy
from django.views import generic
from forms.forms import UserCreateForm
class SignUp(generic.CreateView):
form_class = UserCreateForm
success_url = reverse_lazy('home')
template_name = 'signup.html'
| 23.083333 | 38 | 0.776173 | 138 | 0.498195 | 0 | 0 | 0 | 0 | 0 | 0 | 44 | 0.158845 |
9662ad75421db9c9fefe25e938e00f34ee4e0c42 | 1,466 | py | Python | Code/Main.py | iqbalsublime/EPCMS | d2a745bda9a1d256d8834d1fa1105bb2bab79e3f | [
"MIT"
] | null | null | null | Code/Main.py | iqbalsublime/EPCMS | d2a745bda9a1d256d8834d1fa1105bb2bab79e3f | [
"MIT"
] | null | null | null | Code/Main.py | iqbalsublime/EPCMS | d2a745bda9a1d256d8834d1fa1105bb2bab79e3f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 20 01:33:18 2019
@author: iqbalsublime
"""
from Customer import Customer
from Restaurent import Restaurent
from Reserve import Reserve
from Menu import Menu
from Order import Order
cust1= Customer(1,"Iqbal", "0167****671")
rest1= Restaurent(1,"Farmgate", "102 Kazi Naz... | 30.541667 | 100 | 0.680764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 697 | 0.475443 |
966342122018d47e80bbaf5398de1bb1a30423a0 | 4,544 | py | Python | venv/Lib/site-packages/twisted/logger/_io.py | AironMattos/Web-Scraping-Project | 89290fd376e2b42258c49e3ce2c3669932e03ad3 | [
"MIT"
] | 2 | 2021-05-30T16:35:00.000Z | 2021-06-03T12:23:33.000Z | Lib/site-packages/twisted/logger/_io.py | Jriszz/guacamole-python | cf0dfcaaa7d85c3577571954fc5b2b9dcf55ba17 | [
"MIT"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | Lib/site-packages/twisted/logger/_io.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | 2 | 2021-05-29T21:12:22.000Z | 2021-05-30T04:56:50.000Z | # -*- test-case-name: twisted.logger.test.test_io -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
File-like object that logs.
"""
import sys
from typing import AnyStr, Iterable, Optional
from constantly import NamedConstant
from incremental import Version
from twisted.python.deprecat... | 24.170213 | 80 | 0.567342 | 4,135 | 0.909991 | 0 | 0 | 1,219 | 0.268266 | 0 | 0 | 2,058 | 0.452905 |
96636c79f61d2c52c4c27582d3d3210f08ece747 | 3,547 | py | Python | bot/exts/cricket.py | ShakyaMajumdar/ShaqqueBot | f618ae21e4bf700d86674399670634e8d1cc1dc9 | [
"MIT"
] | null | null | null | bot/exts/cricket.py | ShakyaMajumdar/ShaqqueBot | f618ae21e4bf700d86674399670634e8d1cc1dc9 | [
"MIT"
] | null | null | null | bot/exts/cricket.py | ShakyaMajumdar/ShaqqueBot | f618ae21e4bf700d86674399670634e8d1cc1dc9 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
# from pprint import pprint
import aiohttp
import discord
from discord.ext import commands
from bot import constants
API_URL = "https://livescore6.p.rapidapi.com/matches/v2/"
LIVE_MATCHES_URL = API_URL + "list-live"
HEADERS = {
"x-rapidapi-key": constants.RAPIDAPI_KEY,
"x-r... | 32.842593 | 120 | 0.480124 | 3,068 | 0.864956 | 0 | 0 | 2,973 | 0.838173 | 2,034 | 0.573442 | 981 | 0.276572 |
96640311a4d3b46c933f3f768041f09fa3a2cb24 | 3,588 | py | Python | u24_lymphocyte/third_party/treeano/sandbox/nodes/update_dropout.py | ALSM-PhD/quip_classification | 7347bfaa5cf11ae2d7a528fbcc43322a12c795d3 | [
"BSD-3-Clause"
] | 45 | 2015-04-26T04:45:51.000Z | 2022-01-24T15:03:55.000Z | u24_lymphocyte/third_party/treeano/sandbox/nodes/update_dropout.py | ALSM-PhD/quip_classification | 7347bfaa5cf11ae2d7a528fbcc43322a12c795d3 | [
"BSD-3-Clause"
] | 8 | 2018-07-20T20:54:51.000Z | 2020-06-12T05:36:04.000Z | u24_lymphocyte/third_party/treeano/sandbox/nodes/update_dropout.py | ALSM-PhD/quip_classification | 7347bfaa5cf11ae2d7a528fbcc43322a12c795d3 | [
"BSD-3-Clause"
] | 22 | 2018-05-21T23:57:20.000Z | 2022-02-21T00:48:32.000Z | """
technique that randomly 0's out the update deltas for each parameter
"""
import theano
import theano.tensor as T
from theano.sandbox.rng_mrg import MRG_RandomStreams
import treeano
import treeano.nodes as tn
fX = theano.config.floatX
@treeano.register_node("update_dropout")
class UpdateDropoutNode(treeano.Wrap... | 36.612245 | 75 | 0.593924 | 3,250 | 0.905797 | 0 | 0 | 3,341 | 0.931159 | 0 | 0 | 871 | 0.242754 |
966403bf90394bfb6b137e41500328a65675b400 | 822 | py | Python | zeromq/test/manifest.py | brettin/liquidhandling | 7a96e2881ffaa0326514cf5d97ba49d65ad42a14 | [
"MIT"
] | null | null | null | zeromq/test/manifest.py | brettin/liquidhandling | 7a96e2881ffaa0326514cf5d97ba49d65ad42a14 | [
"MIT"
] | null | null | null | zeromq/test/manifest.py | brettin/liquidhandling | 7a96e2881ffaa0326514cf5d97ba49d65ad42a14 | [
"MIT"
] | null | null | null | import os
import os.path
from datetime import datetime
import time
from stat import *
import pathlib
import json
def generateFileManifest(filename, manifest_filename=None):
string = ""
data = {}
if os.path.isfile(filename):
f = pathlib.Path(filename)
data[os.path.abspath(filename)] = {
... | 26.516129 | 102 | 0.611922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 47 | 0.057178 |
9665d6688a28f3e81d1997d0e6bd30513e85d853 | 1,111 | py | Python | shops/shop_util/test_shop_names.py | ikp4success/shopasource | 9a9ed5c58a8b37b6ff169b45f7fdfcb44809fd88 | [
"Apache-2.0"
] | 3 | 2019-12-04T07:08:55.000Z | 2020-12-08T01:38:46.000Z | shops/shop_util/test_shop_names.py | ikp4success/shopasource | 9a9ed5c58a8b37b6ff169b45f7fdfcb44809fd88 | [
"Apache-2.0"
] | null | null | null | shops/shop_util/test_shop_names.py | ikp4success/shopasource | 9a9ed5c58a8b37b6ff169b45f7fdfcb44809fd88 | [
"Apache-2.0"
] | null | null | null | from enum import Enum
class TestShopNames(Enum):
AMAZON = ("AMAZON",)
TARGET = ("TARGET",)
WALMART = ("WALMART",)
TJMAXX = ("TJMAXX",)
GOOGLE = ("GOOGLE",)
NEWEGG = ("NEWEGG",)
HM = ("HM",)
MICROCENTER = ("MICROCENTER",)
FASHIONNOVA = ("FASHIONNOVA",)
SIXPM = ("SIXPM",)
POS... | 25.25 | 45 | 0.568857 | 1,086 | 0.977498 | 0 | 0 | 0 | 0 | 0 | 0 | 374 | 0.336634 |
9666c26fde73b6b01161a9c3fc47311bfae3372e | 2,477 | py | Python | package_manager/util_test.py | shahriak/dotnet5 | 6b96c38b0f351b79750bd2b8bc0f77dc434afe00 | [
"Apache-2.0"
] | 10,302 | 2018-04-17T17:06:57.000Z | 2022-03-31T17:29:36.000Z | package_manager/util_test.py | unasuke/distroless | 859ce06093a899f31fffc1cd151cf9867faf49d5 | [
"Apache-2.0"
] | 623 | 2018-04-17T20:43:43.000Z | 2022-03-30T13:08:57.000Z | package_manager/util_test.py | unasuke/distroless | 859ce06093a899f31fffc1cd151cf9867faf49d5 | [
"Apache-2.0"
] | 726 | 2018-05-09T16:20:46.000Z | 2022-03-31T15:09:07.000Z | import unittest
import os
from six import StringIO
from package_manager import util
CHECKSUM_TXT = "1915adb697103d42655711e7b00a7dbe398a33d7719d6370c01001273010d069"
DEBIAN_JESSIE_OS_RELEASE = """PRETTY_NAME="Distroless"
NAME="Debian GNU/Linux"
ID="debian"
VERSION_ID="8"
VERSION="Debian GNU/Linux 8 (jessie)"
HOME_UR... | 34.887324 | 86 | 0.774727 | 558 | 0.225273 | 0 | 0 | 0 | 0 | 0 | 0 | 1,526 | 0.616068 |
9667f9974ca754b017d3785df5cd5e5a88c0fff5 | 9,337 | py | Python | testscripts/RDKB/component/TAD/TS_TAD_Download_SetInvalidDiagnosticsState.py | cablelabs/tools-tdkb | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/TAD/TS_TAD_Download_SetInvalidDiagnosticsState.py | cablelabs/tools-tdkb | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/TAD/TS_TAD_Download_SetInvalidDiagnosticsState.py | cablelabs/tools-tdkb | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | [
"Apache-2.0"
] | null | null | null | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2016 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | 49.402116 | 256 | 0.698297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6,949 | 0.744243 |
966918b396e78cd0cc9c87fbc4a01ea21e115709 | 2,926 | py | Python | Tutorials/tutorial_01_intro.py | mseinstein/openCV | 94bfd55e0d77fd78f2669244bbab5d9ea8f32666 | [
"MIT"
] | null | null | null | Tutorials/tutorial_01_intro.py | mseinstein/openCV | 94bfd55e0d77fd78f2669244bbab5d9ea8f32666 | [
"MIT"
] | null | null | null | Tutorials/tutorial_01_intro.py | mseinstein/openCV | 94bfd55e0d77fd78f2669244bbab5d9ea8f32666 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 01 14:09:03 2017
@author: BJ
"""
import cv2
import os
from matplotlib import pyplot as plt
os.chdir('E:\\GitHub\\openCV\\Tutorials')
# %% IMAGES
# Load color image
# Add the flags 1, 0 or -1, to load a color image, load an image in
# grayscale mode or load image as... | 31.462366 | 85 | 0.726931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,114 | 0.722488 |
966a5cfd248281b2c96521b02313c0a59ac99d4a | 625 | py | Python | mutational_landscape/migrations/0003_auto_20220225_1650.py | protwis/Protwis | fdcad0a2790721b02c0d12d8de754313714c575e | [
"Apache-2.0"
] | null | null | null | mutational_landscape/migrations/0003_auto_20220225_1650.py | protwis/Protwis | fdcad0a2790721b02c0d12d8de754313714c575e | [
"Apache-2.0"
] | null | null | null | mutational_landscape/migrations/0003_auto_20220225_1650.py | protwis/Protwis | fdcad0a2790721b02c0d12d8de754313714c575e | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.1 on 2022-02-25 15:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('mutational_landscape', '0002_auto_20180117_1457'),
]
operations = [
migrations.RemoveField(
model_name='diseasemutations',
n... | 22.321429 | 60 | 0.5712 | 540 | 0.864 | 0 | 0 | 0 | 0 | 0 | 0 | 183 | 0.2928 |
966a7103f706d3acd97c7d32abf73b5779105922 | 491 | py | Python | redis_benchmarks_specification/__init__.py | LaudateCorpus1/redis-benchmarks-specification | 71a7e28cd130499f02dacc00bdeca2eadfa62619 | [
"Apache-2.0"
] | 4 | 2022-01-24T10:15:55.000Z | 2022-03-15T09:40:16.000Z | redis_benchmarks_specification/__init__.py | LaudateCorpus1/redis-benchmarks-specification | 71a7e28cd130499f02dacc00bdeca2eadfa62619 | [
"Apache-2.0"
] | 27 | 2021-08-13T14:20:36.000Z | 2021-09-21T16:49:40.000Z | redis_benchmarks_specification/__init__.py | LaudateCorpus1/redis-benchmarks-specification | 71a7e28cd130499f02dacc00bdeca2eadfa62619 | [
"Apache-2.0"
] | 1 | 2022-02-02T14:07:55.000Z | 2022-02-02T14:07:55.000Z | # Apache License Version 2.0
#
# Copyright (c) 2021., Redis Labs
# All rights reserved.
#
# This attribute is the only one place that the version number is written down,
# so there is only one place to change it when the version number changes.
import pkg_resources
PKG_NAME = "redis-benchmarks-specification"
try:
... | 30.6875 | 79 | 0.763747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 295 | 0.600815 |
966aec55e4c71e579f2f8dad4a1f0d280f90e1cf | 1,354 | py | Python | rest_framework_helpers/fields/relation.py | Apkawa/django-rest-framework-helpers | f4b24bf326e081a215ca5c1c117441ea8f78cbb4 | [
"MIT"
] | null | null | null | rest_framework_helpers/fields/relation.py | Apkawa/django-rest-framework-helpers | f4b24bf326e081a215ca5c1c117441ea8f78cbb4 | [
"MIT"
] | null | null | null | rest_framework_helpers/fields/relation.py | Apkawa/django-rest-framework-helpers | f4b24bf326e081a215ca5c1c117441ea8f78cbb4 | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals
from collections import OrderedDict
import six
from django.db.models import Model
from rest_framework import serializers
class SerializableRelationField(serializers.RelatedField):
def __init__(self, serializer, serializer_function=None, *args, **kwargs):
... | 30.088889 | 78 | 0.655096 | 1,172 | 0.865583 | 0 | 0 | 433 | 0.319793 | 0 | 0 | 113 | 0.083456 |
966b4317dba886d84d6b354c4c49cfcc2476c374 | 10,426 | py | Python | examples/guojiadianwang/devops/devopsPro.py | peng5550/DecryptLogin | 43be0f3d9b68e4ea171cd4c3c200d29a4409d2e4 | [
"MIT"
] | null | null | null | examples/guojiadianwang/devops/devopsPro.py | peng5550/DecryptLogin | 43be0f3d9b68e4ea171cd4c3c200d29a4409d2e4 | [
"MIT"
] | null | null | null | examples/guojiadianwang/devops/devopsPro.py | peng5550/DecryptLogin | 43be0f3d9b68e4ea171cd4c3c200d29a4409d2e4 | [
"MIT"
] | null | null | null | import requests
from utils import loginFile, dataAnalysis
import os
import datetime
from dateutil.relativedelta import relativedelta
import json
from utils.logCls import Logger
dirpath = os.path.dirname(__file__)
cookieFile = f"{dirpath}/utils/cookies.txt"
dataFile = f"{dirpath}/datas"
class DevopsProject:
def... | 45.929515 | 464 | 0.579513 | 11,114 | 0.967781 | 1,484 | 0.129223 | 0 | 0 | 0 | 0 | 3,888 | 0.338558 |
966b98dbd5e0be6079948a6cd3ac31f277a97210 | 6,186 | py | Python | ezalor.py | WellerV/EzalorTools | 8279c401c9970087af955ac094fe4ebd105e8174 | [
"Apache-2.0"
] | 13 | 2018-02-07T06:34:14.000Z | 2020-03-04T08:12:08.000Z | ezalor.py | WellerV/EzalorTools | 8279c401c9970087af955ac094fe4ebd105e8174 | [
"Apache-2.0"
] | null | null | null | ezalor.py | WellerV/EzalorTools | 8279c401c9970087af955ac094fe4ebd105e8174 | [
"Apache-2.0"
] | 2 | 2018-03-01T09:02:38.000Z | 2021-02-16T12:16:28.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Copyright (c) 2018 - huwei <[email protected]>
"""
This is a python script for the ezalor tools which is used to io monitor.
You can use the script to open or off the switch, or point the package name which you want to monitor it only.
The core function is to export data wh... | 32.387435 | 120 | 0.624313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,832 | 0.296153 |
966b9c223ecd09480f1a0fd34d6be56ce22a2ada | 11,772 | py | Python | revisions/models.py | debrouwere/django-revisions | d5b95806c65e66a720a2d9ec2f5ffb16698d9275 | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2015-11-05T11:48:46.000Z | 2021-04-14T07:10:16.000Z | revisions/models.py | debrouwere/django-revisions | d5b95806c65e66a720a2d9ec2f5ffb16698d9275 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | revisions/models.py | debrouwere/django-revisions | d5b95806c65e66a720a2d9ec2f5ffb16698d9275 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-02-13T21:01:48.000Z | 2019-02-13T21:01:48.000Z | # encoding: utf-8
import uuid
import difflib
from datetime import date
from django.db import models
from django.utils.translation import ugettext as _
from django.core.exceptions import ImproperlyConfigured, ValidationError
from django.db import IntegrityError
from django.contrib.contenttypes.models import ContentType... | 39.503356 | 123 | 0.641777 | 10,909 | 0.92669 | 0 | 0 | 2,094 | 0.17788 | 0 | 0 | 3,788 | 0.32178 |
966c228f07ae23bcd47d41a07f74a33292ad5f8f | 1,260 | py | Python | noir/templating.py | gi0baro/noir | b187922d4f6055dbcb745c5299db907aac574398 | [
"BSD-3-Clause"
] | 2 | 2021-06-10T13:09:27.000Z | 2021-06-11T09:37:02.000Z | noir/templating.py | gi0baro/noir | b187922d4f6055dbcb745c5299db907aac574398 | [
"BSD-3-Clause"
] | null | null | null | noir/templating.py | gi0baro/noir | b187922d4f6055dbcb745c5299db907aac574398 | [
"BSD-3-Clause"
] | null | null | null | import json
import os
from typing import Any, Dict, Optional
import tomlkit
import yaml
from renoir.apis import Renoir, ESCAPES, MODES
from renoir.writers import Writer as _Writer
from .utils import adict, obj_to_adict
class Writer(_Writer):
@staticmethod
def _to_unicode(data):
if data is None:
... | 21.355932 | 80 | 0.666667 | 314 | 0.249206 | 0 | 0 | 200 | 0.15873 | 0 | 0 | 22 | 0.01746 |
966d171d2b44d0254f7759c28f9717f4faa2dc4c | 3,904 | py | Python | GUI/lib/plotData.py | apajon/GUIPythonEncodeur | 05b58809ed7a287369c5bfa04b5fb69f5d9e36aa | [
"MIT"
] | null | null | null | GUI/lib/plotData.py | apajon/GUIPythonEncodeur | 05b58809ed7a287369c5bfa04b5fb69f5d9e36aa | [
"MIT"
] | 4 | 2021-06-03T23:34:17.000Z | 2021-06-04T21:31:19.000Z | GUI/lib/plotData.py | apajon/GUIPythonEncodeur | 05b58809ed7a287369c5bfa04b5fb69f5d9e36aa | [
"MIT"
] | null | null | null | # Copyright (c) 2021 Adrien Pajon ([email protected])
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from api_phidget_n_MQTT.src.lib_global_python import searchLoggerFile
def Plo... | 38.27451 | 116 | 0.619365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,651 | 0.4229 |
966d9c6d207cc79829fc35c116bf0cff41eb5f9c | 4,945 | py | Python | nova/tests/unit/objects/test_resource.py | Nexenta/nova | ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3 | [
"Apache-2.0"
] | 1 | 2021-06-10T17:08:15.000Z | 2021-06-10T17:08:15.000Z | nova/tests/unit/objects/test_resource.py | Nexenta/nova | ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3 | [
"Apache-2.0"
] | 2 | 2021-03-31T20:04:16.000Z | 2021-12-13T20:45:03.000Z | nova/tests/unit/objects/test_resource.py | Nexenta/nova | ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3 | [
"Apache-2.0"
] | 1 | 2021-11-12T03:55:41.000Z | 2021-11-12T03:55:41.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 39.879032 | 79 | 0.651769 | 3,474 | 0.702528 | 0 | 0 | 422 | 0.085339 | 0 | 0 | 925 | 0.187058 |
966e2e4f01ba505a9a223a3984ad9d961a218e79 | 11,532 | py | Python | mandala/storages/rel_impl/psql_utils.py | amakelov/mandala | a9ec051ef730ada4eed216c62a07b033126e78d5 | [
"Apache-2.0"
] | 9 | 2022-02-22T19:24:01.000Z | 2022-03-23T04:46:41.000Z | mandala/storages/rel_impl/psql_utils.py | amakelov/mandala | a9ec051ef730ada4eed216c62a07b033126e78d5 | [
"Apache-2.0"
] | null | null | null | mandala/storages/rel_impl/psql_utils.py | amakelov/mandala | a9ec051ef730ada4eed216c62a07b033126e78d5 | [
"Apache-2.0"
] | null | null | null | from sqlalchemy.engine.base import Connection
from sqlalchemy.sql.selectable import Select, CompoundSelect
from sqlalchemy.engine.result import Result
from sqlalchemy.dialects import postgresql
from .utils import transaction
from ...common_imports import *
from ...util.common_ut import get_uid
from ...core.config imp... | 40.893617 | 129 | 0.583593 | 4,415 | 0.382848 | 0 | 0 | 1,828 | 0.158515 | 0 | 0 | 4,710 | 0.408429 |
966fe34cabbdf144b4795af99c630f2fed4590e1 | 1,484 | py | Python | tests/test_ami.py | seek-oss/aec | 13a75c690542eec61727b9d92a2c11a3dbd1caba | [
"MIT"
] | 6 | 2019-09-10T11:23:18.000Z | 2021-03-25T04:37:28.000Z | tests/test_ami.py | seek-oss/aec | 13a75c690542eec61727b9d92a2c11a3dbd1caba | [
"MIT"
] | 162 | 2019-12-05T10:21:00.000Z | 2022-03-27T06:00:45.000Z | tests/test_ami.py | seek-oss/aec | 13a75c690542eec61727b9d92a2c11a3dbd1caba | [
"MIT"
] | 6 | 2019-10-27T22:59:35.000Z | 2021-02-10T22:36:59.000Z | import pytest
from moto import mock_ec2
from moto.ec2.models import AMIS
from aec.command.ami import delete, describe, share
@pytest.fixture
def mock_aws_config():
mock = mock_ec2()
mock.start()
return {
"region": "ap-southeast-2",
}
def test_describe_images(mock_aws_config):
# describ... | 31.574468 | 97 | 0.735849 | 0 | 0 | 0 | 0 | 133 | 0.089623 | 0 | 0 | 573 | 0.386119 |
96702b58ef9f60b2130e8a0e754ad89b97258e50 | 691 | py | Python | mainapp/views.py | H0oxy/sportcars | dcd76736bfe88630b3ccce7e4ee0ad9398494f08 | [
"MIT"
] | null | null | null | mainapp/views.py | H0oxy/sportcars | dcd76736bfe88630b3ccce7e4ee0ad9398494f08 | [
"MIT"
] | null | null | null | mainapp/views.py | H0oxy/sportcars | dcd76736bfe88630b3ccce7e4ee0ad9398494f08 | [
"MIT"
] | null | null | null | from django.views.generic import ListView
from rest_framework.permissions import AllowAny
from rest_framework.viewsets import ModelViewSet
from mainapp.models import Manufacturer, Car
from mainapp.serializers import ManufacturerSerializer, CarSerializer
class ManufacturerList(ListView):
model = Manufacturer
cl... | 25.592593 | 69 | 0.797395 | 424 | 0.613603 | 0 | 0 | 0 | 0 | 0 | 0 | 39 | 0.05644 |
96708ac825e30302b84cfd4e3368984095dd810a | 3,168 | py | Python | BrandDetails.py | p10rahulm/brandyz-reco | 95d5e3f291cdb5b951e0c7d83ff30c59f8a3797f | [
"MIT"
] | null | null | null | BrandDetails.py | p10rahulm/brandyz-reco | 95d5e3f291cdb5b951e0c7d83ff30c59f8a3797f | [
"MIT"
] | null | null | null | BrandDetails.py | p10rahulm/brandyz-reco | 95d5e3f291cdb5b951e0c7d83ff30c59f8a3797f | [
"MIT"
] | null | null | null | # In this module we will get the brand count and the users per brand as a list.
# Add more details as deemed necessary
# I'm using mergesort here instead of quicksort as the size of data is much larger than for users
import Mergesort
import numpy as np
def get_brand_purchase_deets(shoppers,brands):
# Going to so... | 40.615385 | 143 | 0.669192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 690 | 0.217803 |
96709cd14fd89b69849ecd83f84c39ac23149ad2 | 4,623 | py | Python | ATSAMD51P19A/libsrc/ATSAMD51P19A/MPU_.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | null | null | null | ATSAMD51P19A/libsrc/ATSAMD51P19A/MPU_.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | 1 | 2022-01-19T00:16:02.000Z | 2022-01-26T03:43:34.000Z | ATSAMD51P19A/libsrc/ATSAMD51P19A/MPU_.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | null | null | null | import uctypes as ct
MPU_ = {
'TYPE' : ( 0x00, {
'reg' : 0x00 | ct.UINT32,
'SEPARATE' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'DREGION' : 0x00 | ct.BFUINT32 | 8 << ct.BF_POS | 8 << ct.BF_LEN,
'IREGION' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 8 << ct.BF_LEN,
}),
'CTRL... | 48.663158 | 76 | 0.499459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 452 | 0.097772 |
96724dd749d0959e504802c78aa325cae8171f97 | 8,550 | py | Python | lib/core/postprocess.py | Chris1nexus/tmp | a76b477d491688add434f1ef84bcc0e2dbedbef3 | [
"BSD-3-Clause"
] | null | null | null | lib/core/postprocess.py | Chris1nexus/tmp | a76b477d491688add434f1ef84bcc0e2dbedbef3 | [
"BSD-3-Clause"
] | null | null | null | lib/core/postprocess.py | Chris1nexus/tmp | a76b477d491688add434f1ef84bcc0e2dbedbef3 | [
"BSD-3-Clause"
] | null | null | null | import torch
from lib.utils import is_parallel
import numpy as np
np.set_printoptions(threshold=np.inf)
import cv2
from sklearn.cluster import DBSCAN
def build_targets(cfg, predictions, targets, model, bdd=True):
'''
predictions
[16, 3, 32, 32, 85]
[16, 3, 16, 16, 85]
[16, 3, 8, 8, 85]
torch.t... | 36.228814 | 119 | 0.535906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,065 | 0.24152 |
96736097d0c8c249aee5be77f87a2ac3b77a5f45 | 44 | py | Python | name.py | dachuanz/crash-course | f7068e3ea502c1859e01f81772eafb179e5d2536 | [
"MIT"
] | null | null | null | name.py | dachuanz/crash-course | f7068e3ea502c1859e01f81772eafb179e5d2536 | [
"MIT"
] | null | null | null | name.py | dachuanz/crash-course | f7068e3ea502c1859e01f81772eafb179e5d2536 | [
"MIT"
] | null | null | null | name = "ada lovelace"
print(name.title())
| 14.666667 | 22 | 0.659091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 0.318182 |
96740cc6a710cea9535394b9dcdca4bd9278e075 | 11,578 | py | Python | buildbot/runCI.py | DenisBakhvalov/perf-ninja | d9d0a7ff3984e7cc3823bca3a3f106e7fbc00da0 | [
"CC-BY-3.0"
] | 1 | 2021-08-06T08:54:55.000Z | 2021-08-06T08:54:55.000Z | buildbot/runCI.py | DenisBakhvalov/perf-ninja | d9d0a7ff3984e7cc3823bca3a3f106e7fbc00da0 | [
"CC-BY-3.0"
] | null | null | null | buildbot/runCI.py | DenisBakhvalov/perf-ninja | d9d0a7ff3984e7cc3823bca3a3f106e7fbc00da0 | [
"CC-BY-3.0"
] | null | null | null | import sys
import subprocess
import os
import shutil
import argparse
import json
import re
from enum import Enum
from dataclasses import dataclass
import gbench
from gbench import util, report
from gbench.util import *
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKCYAN = '\033[96m'
OKGREEN =... | 34.458333 | 175 | 0.70228 | 467 | 0.040335 | 0 | 0 | 158 | 0.013647 | 0 | 0 | 2,786 | 0.240629 |
967557de1befe9d5c89674990959f86af65d7c4c | 1,156 | py | Python | main.py | TheSkidSlayer/VissageMassBanner | 38f0a83ad9d625930cef5004787f8c4966312fd0 | [
"BSL-1.0"
] | 1 | 2021-12-31T23:15:47.000Z | 2021-12-31T23:15:47.000Z | main.py | TheSkidSlayer/VissageMassBanner | 38f0a83ad9d625930cef5004787f8c4966312fd0 | [
"BSL-1.0"
] | null | null | null | main.py | TheSkidSlayer/VissageMassBanner | 38f0a83ad9d625930cef5004787f8c4966312fd0 | [
"BSL-1.0"
] | null | null | null | try:
from concurrent.futures import ThreadPoolExecutor
import random, time, os, httpx
from colorama import Fore, Style
except ImportError:
print("Error [!] -> Modules Are not installed")
token, guild = input("Token -> "), input("\nGuild ID -> ")
threads = []
apiv = [6, 7, 8, 9]
codes = [200, 201, 204... | 24.083333 | 87 | 0.553633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 237 | 0.205017 |
9676900dd098082bdefdd8316547347e26bd4ef9 | 376 | py | Python | panos/example_with_output_template/loader.py | nembery/Skillets | 4c0a259d4fb49550605c5eb5316d83f109612271 | [
"Apache-2.0"
] | 1 | 2019-04-17T19:30:46.000Z | 2019-04-17T19:30:46.000Z | panos/example_with_output_template/loader.py | nembery/Skillets | 4c0a259d4fb49550605c5eb5316d83f109612271 | [
"Apache-2.0"
] | null | null | null | panos/example_with_output_template/loader.py | nembery/Skillets | 4c0a259d4fb49550605c5eb5316d83f109612271 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from skilletlib import SkilletLoader
sl = SkilletLoader('.')
skillet = sl.get_skillet_with_name('panos_cli_example')
context = dict()
context['cli_command'] = 'show system info'
context['username'] = 'admin'
context['password'] = 'NOPE'
context['ip_address'] = 'NOPE'
output = skillet.execute... | 19.789474 | 55 | 0.723404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 148 | 0.393617 |
967705c9e8a9fd17fb6a029cb268db7aef64d726 | 198 | py | Python | treasurehunt/views.py | code-haven/Django-treasurehunt-demo | c22aa88486d57fa97363d9d57dbbb7bc68a8ddd4 | [
"MIT"
] | 1 | 2017-04-30T05:46:40.000Z | 2017-04-30T05:46:40.000Z | treasurehunt/views.py | code-haven/Django-treasurehunt-demo | c22aa88486d57fa97363d9d57dbbb7bc68a8ddd4 | [
"MIT"
] | null | null | null | treasurehunt/views.py | code-haven/Django-treasurehunt-demo | c22aa88486d57fa97363d9d57dbbb7bc68a8ddd4 | [
"MIT"
] | null | null | null | from django.views.generic import View
from django.http import HttpResponse
from django.shortcuts import render
def index(request):
return render(request, 'treasurehunt/treasurehunt_index.html') | 33 | 66 | 0.823232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 38 | 0.191919 |
9677e8577eb71d6a56fc8178b8340df0cf85efc4 | 2,184 | py | Python | setup.py | pletnes/cloud-pysec | 4f91e3875ee36cb3e9b361e8b598070ce9523128 | [
"Apache-2.0"
] | null | null | null | setup.py | pletnes/cloud-pysec | 4f91e3875ee36cb3e9b361e8b598070ce9523128 | [
"Apache-2.0"
] | null | null | null | setup.py | pletnes/cloud-pysec | 4f91e3875ee36cb3e9b361e8b598070ce9523128 | [
"Apache-2.0"
] | null | null | null | """ xssec setup """
import codecs
from os import path
from setuptools import setup, find_packages
from sap.conf.config import USE_SAP_PY_JWT
CURRENT_DIR = path.abspath(path.dirname(__file__))
README_LOCATION = path.join(CURRENT_DIR, 'README.md')
VERSION = ''
with open(path.join(CURRENT_DIR, 'version.txt'), 'r') as ve... | 34.125 | 70 | 0.628663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,102 | 0.504579 |
96785881acee4c6b6e5fbf6dfa6bcd4a371b2db4 | 1,957 | py | Python | mutators/implementations/mutation_change_proto.py | freingruber/JavaScript-Raider | d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0 | [
"Apache-2.0"
] | 91 | 2022-01-24T07:32:34.000Z | 2022-03-31T23:37:15.000Z | mutators/implementations/mutation_change_proto.py | zeusguy/JavaScript-Raider | d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0 | [
"Apache-2.0"
] | null | null | null | mutators/implementations/mutation_change_proto.py | zeusguy/JavaScript-Raider | d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0 | [
"Apache-2.0"
] | 11 | 2022-01-24T14:21:12.000Z | 2022-03-31T23:37:23.000Z | # Copyright 2022 @ReneFreingruber
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 40.770833 | 131 | 0.772611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 918 | 0.469085 |
9678930e9778ab9e49deebe9a98a3436e67de53f | 1,809 | py | Python | homeassistant/components/smarthab/light.py | tbarbette/core | 8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c | [
"Apache-2.0"
] | 22,481 | 2020-03-02T13:09:59.000Z | 2022-03-31T23:34:28.000Z | homeassistant/components/smarthab/light.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/smarthab/light.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,411 | 2020-03-02T14:19:20.000Z | 2022-03-31T22:46:07.000Z | """Support for SmartHab device integration."""
from datetime import timedelta
import logging
import pysmarthab
from requests.exceptions import Timeout
from homeassistant.components.light import LightEntity
from . import DATA_HUB, DOMAIN
_LOGGER = logging.getLogger(__name__)
SCAN_INTERVAL = timedelta(seconds=60)
... | 26.602941 | 82 | 0.6534 | 1,107 | 0.61194 | 0 | 0 | 347 | 0.191819 | 921 | 0.509121 | 436 | 0.241017 |
9679546d86fe3d9ab266b6fcd96932146df7b271 | 406 | py | Python | hello.py | AaronTrip/cgi-lab | cc932dfe21c27f3ca054233fe5bc73783facee6b | [
"Apache-2.0"
] | null | null | null | hello.py | AaronTrip/cgi-lab | cc932dfe21c27f3ca054233fe5bc73783facee6b | [
"Apache-2.0"
] | null | null | null | hello.py | AaronTrip/cgi-lab | cc932dfe21c27f3ca054233fe5bc73783facee6b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import os, json
print("Content-type: text/html\r\n\r\n")
print()
print("<Title>Test CGI</title>")
print("<p>Hello World cmput404 class!<p/>")
print(os.environ)
json_object = json.dumps(dict(os.environ), indent = 4)
print(json_object)
'''for param in os.environ.keys():
if(param == "HTT... | 18.454545 | 65 | 0.640394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 256 | 0.630542 |
96797b706de9c91fb5c25b82dfacdb6b113734eb | 14,277 | py | Python | VCD/utils/utils.py | Xingyu-Lin/VCD | 46ca993f79b23e5c73f5a7eb72b39dfacf3b282c | [
"MIT"
] | 25 | 2022-01-28T02:13:42.000Z | 2022-03-19T15:33:38.000Z | VCD/utils/utils.py | Xingyu-Lin/VCD | 46ca993f79b23e5c73f5a7eb72b39dfacf3b282c | [
"MIT"
] | 2 | 2022-01-28T05:58:32.000Z | 2022-01-30T11:37:50.000Z | VCD/utils/utils.py | Xingyu-Lin/VCD | 46ca993f79b23e5c73f5a7eb72b39dfacf3b282c | [
"MIT"
] | 4 | 2022-01-31T08:22:49.000Z | 2022-02-17T16:28:32.000Z | import os.path as osp
import numpy as np
import cv2
import torch
from torchvision.utils import make_grid
from VCD.utils.camera_utils import project_to_image
import pyflex
import re
import h5py
import os
from softgym.utils.visualization import save_numpy_as_gif
from chester import logger
import random
class VArgs(obje... | 35.426799 | 128 | 0.6397 | 120 | 0.008405 | 0 | 0 | 0 | 0 | 0 | 0 | 1,107 | 0.077537 |
967f854c2cc3d7839a4210800ff6ac34aa126d0b | 3,493 | py | Python | tests/test_classes.py | fossabot/RPGenie | eb3ee17ede0dbbec787766d607b2f5b89d65533d | [
"MIT"
] | 32 | 2017-09-03T21:14:17.000Z | 2022-01-12T04:26:28.000Z | tests/test_classes.py | fossabot/RPGenie | eb3ee17ede0dbbec787766d607b2f5b89d65533d | [
"MIT"
] | 9 | 2017-09-12T13:16:43.000Z | 2022-01-19T18:53:48.000Z | tests/test_classes.py | fossabot/RPGenie | eb3ee17ede0dbbec787766d607b2f5b89d65533d | [
"MIT"
] | 19 | 2017-10-12T03:14:54.000Z | 2021-06-12T18:30:33.000Z | #! python3
""" Pytest-compatible tests for src/classes.py """
import sys
from pathlib import Path
from copy import deepcopy
from unittest import mock
# A workaround for tests not automatically setting
# root/src/ as the current working directory
path_to_src = Path(__file__).parent.parent / "src"
sys.path.insert(0, ... | 36.768421 | 203 | 0.678214 | 0 | 0 | 0 | 0 | 2,197 | 0.628972 | 0 | 0 | 1,239 | 0.354709 |
967fc22994b7e8387bc0009833f00fda8cc5c3ce | 18,675 | py | Python | biosteam/units/_shortcut_column.py | tylerhuntington222/biosteam | 234959180a3210d95e39a012454f455723c92686 | [
"MIT"
] | null | null | null | biosteam/units/_shortcut_column.py | tylerhuntington222/biosteam | 234959180a3210d95e39a012454f455723c92686 | [
"MIT"
] | null | null | null | biosteam/units/_shortcut_column.py | tylerhuntington222/biosteam | 234959180a3210d95e39a012454f455723c92686 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules
# Copyright (C) 2020, Yoel Cortes-Pena <[email protected]>
#
# This module is under the UIUC open-source license. See
# github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt
# for license details.
"""... | 42.636986 | 148 | 0.584257 | 15,635 | 0.837036 | 0 | 0 | 2,421 | 0.129611 | 0 | 0 | 7,417 | 0.397077 |
9681b53ab62bfb5ddd55b122e2a997c7da50a56f | 11,477 | py | Python | vital/bindings/python/vital/types/camera_intrinsics.py | dstoup/kwiver | a3a36317b446baf0feb6274235ab1ac6b4329ead | [
"BSD-3-Clause"
] | null | null | null | vital/bindings/python/vital/types/camera_intrinsics.py | dstoup/kwiver | a3a36317b446baf0feb6274235ab1ac6b4329ead | [
"BSD-3-Clause"
] | null | null | null | vital/bindings/python/vital/types/camera_intrinsics.py | dstoup/kwiver | a3a36317b446baf0feb6274235ab1ac6b4329ead | [
"BSD-3-Clause"
] | null | null | null | """
ckwg +31
Copyright 2016 by Kitware, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the ... | 38.773649 | 80 | 0.640673 | 9,709 | 0.845953 | 0 | 0 | 1,659 | 0.14455 | 0 | 0 | 5,046 | 0.439662 |
9681c77a186723aca18c1c0fe154bf16a7a4024b | 2,333 | py | Python | utils/lanzouyun.py | Firesuiry/jdmm-client | 33defde409222ae49c6301cec3389ca72d19953c | [
"BSD-3-Clause"
] | null | null | null | utils/lanzouyun.py | Firesuiry/jdmm-client | 33defde409222ae49c6301cec3389ca72d19953c | [
"BSD-3-Clause"
] | null | null | null | utils/lanzouyun.py | Firesuiry/jdmm-client | 33defde409222ae49c6301cec3389ca72d19953c | [
"BSD-3-Clause"
] | null | null | null | from lanzou.api import LanZouCloud
import urllib.parse
final_files = []
final_share_infos = []
def lzy_login(cookies):
lzy = LanZouCloud()
cookie_dic = cookie_to_dic(cookies)
print(cookie_dic)
cookies = {
'ylogin': cookie_dic['ylogin'],
'phpdisk_info': urllib.parse.quote(cookie_dic['p... | 25.637363 | 110 | 0.582512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 322 | 0.136499 |
9681dcb1c6a4a00147da8d82baecc6e355120cf5 | 1,948 | py | Python | util/ndcg.py | voschezang/Data-Mining | 0762df1d9a63f81d6f44d8a35cc61802baad4c37 | [
"MIT"
] | null | null | null | util/ndcg.py | voschezang/Data-Mining | 0762df1d9a63f81d6f44d8a35cc61802baad4c37 | [
"MIT"
] | null | null | null | util/ndcg.py | voschezang/Data-Mining | 0762df1d9a63f81d6f44d8a35cc61802baad4c37 | [
"MIT"
] | null | null | null | import numpy as np
import util.data
def ndcg(X_test, y_test, y_pred, ):
Xy_pred = X_test.copy([['srch_id', 'prop_id', 'score']])
Xy_pred['score_pred'] = y_pred
Xy_pred['score'] = y_test
Xy_pred.sort_values(['srch_id', 'score_pred'], ascending=[True, False])
dcg_test = DCG_dict(Xy_pred)
ndcg = ... | 27.828571 | 75 | 0.569302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 282 | 0.144764 |
9681fb5a4ab9afe1cfd4688c372d7a335ae0a5d6 | 4,364 | py | Python | pycorrector/bert/bert_detector.py | zouning68/pycorrector | 4daaf13e566f2cecc724fb5a77db5d89f1f25203 | [
"Apache-2.0"
] | 45 | 2020-01-18T03:46:07.000Z | 2022-03-26T13:06:36.000Z | pycorrector/bert/bert_detector.py | zouning68/pycorrector | 4daaf13e566f2cecc724fb5a77db5d89f1f25203 | [
"Apache-2.0"
] | 1 | 2020-08-16T12:42:05.000Z | 2020-08-16T12:42:05.000Z | pycorrector/bert/bert_detector.py | zouning68/pycorrector | 4daaf13e566f2cecc724fb5a77db5d89f1f25203 | [
"Apache-2.0"
] | 9 | 2020-01-04T09:09:01.000Z | 2022-01-17T08:56:23.000Z | # -*- coding: utf-8 -*-
"""
@author:XuMing([email protected])
@description: use bert detect chinese char error
"""
import sys
import time
import numpy as np
import torch
from pytorch_transformers import BertForMaskedLM
from pytorch_transformers import BertTokenizer
sys.path.append('../..')
from pycorrector.detector im... | 35.770492 | 107 | 0.613886 | 3,487 | 0.764358 | 0 | 0 | 0 | 0 | 0 | 0 | 843 | 0.184787 |
968244c4e4821aa3176a5163d517e2a86b8ed427 | 98 | py | Python | example_app/core/models/input.py | dazza-codes/serverless-fast-api | c4cdce62326a22778157a8555b7cdaafc2519b8d | [
"MIT"
] | 2 | 2021-01-22T12:27:59.000Z | 2021-09-09T14:54:11.000Z | example_app/core/models/input.py | dazza-codes/serverless-fast-api | c4cdce62326a22778157a8555b7cdaafc2519b8d | [
"MIT"
] | 4 | 2020-05-03T01:54:53.000Z | 2021-01-21T18:20:27.000Z | example_app/core/models/input.py | dazza-codes/serverless-fast-api | c4cdce62326a22778157a8555b7cdaafc2519b8d | [
"MIT"
] | 1 | 2021-09-09T14:49:54.000Z | 2021-09-09T14:49:54.000Z | from pydantic import BaseModel
class InputExample(BaseModel):
a: int = ...
b: int = ...
| 14 | 30 | 0.622449 | 64 | 0.653061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
9683761b0e8ad668daa9ae8b7d5e998f46a35736 | 9,609 | py | Python | 2020/8/input.py | sishtiaq/aoc | 1c200ebed048bbd8ad6a684aaef8921d826f3d1b | [
"Apache-2.0"
] | null | null | null | 2020/8/input.py | sishtiaq/aoc | 1c200ebed048bbd8ad6a684aaef8921d826f3d1b | [
"Apache-2.0"
] | null | null | null | 2020/8/input.py | sishtiaq/aoc | 1c200ebed048bbd8ad6a684aaef8921d826f3d1b | [
"Apache-2.0"
] | null | null | null | test = [
'nop +0',
'acc +1',
'jmp +4',
'acc +3',
'jmp -3',
'acc -99',
'acc +1',
'jmp -4',
'acc +6',
]
actual = [
'acc +17',
'acc +37',
'acc -13',
'jmp +173',
'nop +100',
'acc -7',
'jmp +447',
'nop +283',
'acc +41',
'acc +32',
'jmp +1',... | 15.037559 | 15 | 0.338329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,777 | 0.601207 |
96856b2747e7c36d91fb23b1dc5b4f022aab0d68 | 17,925 | py | Python | islecler.py | mrtyasar/PythonLearn | b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4 | [
"Apache-2.0"
] | null | null | null | islecler.py | mrtyasar/PythonLearn | b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4 | [
"Apache-2.0"
] | null | null | null | islecler.py | mrtyasar/PythonLearn | b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4 | [
"Apache-2.0"
] | null | null | null | #----------------------------------#
######### ARİTMETİK İŞLEÇLER #######
#----------------------------------#
# + toplama
# - çıkarma
# * çarpma
# / bölme
# ** kuvvet
# % modülüs/kalan bulma
# // taban bölme/ tam bölme
#aritmetik işleçler sayısal işlemler yapmamızı sağlar
print(45+57)#102
#yalnız + ve... | 27.283105 | 108 | 0.699749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14,714 | 0.767033 |
9685eb2eb0a92cde4c6bccfdc2397e3ea1a606c7 | 1,056 | py | Python | twindb_backup/modifiers/gzip.py | akuzminsky/twindb-mysql-backup | 35755f18efb372dd05f856ca4732fba796de2549 | [
"Apache-2.0"
] | 1 | 2019-03-22T00:04:40.000Z | 2019-03-22T00:04:40.000Z | twindb_backup/modifiers/gzip.py | akuzminsky/twindb-mysql-backup | 35755f18efb372dd05f856ca4732fba796de2549 | [
"Apache-2.0"
] | null | null | null | twindb_backup/modifiers/gzip.py | akuzminsky/twindb-mysql-backup | 35755f18efb372dd05f856ca4732fba796de2549 | [
"Apache-2.0"
] | 1 | 2019-03-21T16:03:11.000Z | 2019-03-21T16:03:11.000Z | # -*- coding: utf-8 -*-
"""
Module defines modifier that compresses a stream with gzip
"""
from contextlib import contextmanager
from subprocess import Popen, PIPE
from twindb_backup.modifiers.base import Modifier
class Gzip(Modifier):
"""
Modifier that compresses the input_stream with gzip.
"""
@co... | 27.076923 | 70 | 0.604167 | 838 | 0.793561 | 443 | 0.419508 | 463 | 0.438447 | 0 | 0 | 547 | 0.517992 |
968781224af215504c720d13564d694353e11612 | 8,795 | py | Python | heat/objects/resource.py | larsks/heat | 11064586e90166a037f8868835e6ce36f7306276 | [
"Apache-2.0"
] | null | null | null | heat/objects/resource.py | larsks/heat | 11064586e90166a037f8868835e6ce36f7306276 | [
"Apache-2.0"
] | null | null | null | heat/objects/resource.py | larsks/heat | 11064586e90166a037f8868835e6ce36f7306276 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Intel Corp.
#
# 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, soft... | 37.909483 | 79 | 0.648778 | 7,347 | 0.835361 | 0 | 0 | 4,752 | 0.540307 | 0 | 0 | 967 | 0.109949 |
96897393cb06471fec8c0393bde8aeb577d2894c | 228 | py | Python | pyrez/exceptions/IdOrAuthEmpty.py | CLeendert/Pyrez | 598d72d8b6bb9484f0c42c6146a262817332c666 | [
"MIT"
] | 25 | 2018-07-26T02:32:14.000Z | 2021-09-20T03:26:17.000Z | pyrez/exceptions/IdOrAuthEmpty.py | CLeendert/Pyrez | 598d72d8b6bb9484f0c42c6146a262817332c666 | [
"MIT"
] | 93 | 2018-08-26T11:44:25.000Z | 2022-03-28T08:22:18.000Z | pyrez/exceptions/IdOrAuthEmpty.py | CLeendert/Pyrez | 598d72d8b6bb9484f0c42c6146a262817332c666 | [
"MIT"
] | 13 | 2018-09-05T09:38:07.000Z | 2021-08-16T04:39:41.000Z | from .PyrezException import PyrezException
class IdOrAuthEmpty(PyrezException):
"""Raises an error that the current Credentials is invalid or missing"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
| 38 | 73 | 0.763158 | 184 | 0.807018 | 0 | 0 | 0 | 0 | 0 | 0 | 72 | 0.315789 |
968998458ff06ecf90db3e1b78179a0db936b801 | 907 | py | Python | leetcode/practise/59.py | Weis-98/learning_journey | 2ef40880d4551d5d44fa71eff98eca98361022d0 | [
"MIT"
] | null | null | null | leetcode/practise/59.py | Weis-98/learning_journey | 2ef40880d4551d5d44fa71eff98eca98361022d0 | [
"MIT"
] | null | null | null | leetcode/practise/59.py | Weis-98/learning_journey | 2ef40880d4551d5d44fa71eff98eca98361022d0 | [
"MIT"
] | null | null | null | class Solution:
def generateMatrix(self, n):
matrix = []
num = 1
for i in range(n):
matrix.append([0 for i in range(n)])
top = 0
bottom = n - 1
left = 0
right = n - 1
while top <= bottom and left <= right:
for i in range(left, r... | 34.884615 | 79 | 0.406836 | 907 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
968a0ed358f9602c37b149e837fd6e25f4d5114f | 4,492 | py | Python | capnpy/segment/builder.py | GambitResearch/capnpy | 3b8d9ed0623e160f69dee07ec2fc6303683c2a3c | [
"MIT"
] | 45 | 2016-10-28T10:16:07.000Z | 2022-03-06T20:16:57.000Z | capnpy/segment/builder.py | GambitResearch/capnpy | 3b8d9ed0623e160f69dee07ec2fc6303683c2a3c | [
"MIT"
] | 42 | 2016-12-20T18:10:53.000Z | 2021-09-08T12:29:04.000Z | capnpy/segment/builder.py | GambitResearch/capnpy | 3b8d9ed0623e160f69dee07ec2fc6303683c2a3c | [
"MIT"
] | 21 | 2017-02-28T06:39:15.000Z | 2021-09-07T05:30:46.000Z | import struct
from six import binary_type
from capnpy import ptr
from capnpy.packing import mychr
from capnpy.printer import print_buffer
class SegmentBuilder(object):
def __init__(self, length=None):
self.buf = bytearray()
def get_length(self):
return len(self.buf)
def as_string(self):... | 33.274074 | 86 | 0.629564 | 4,222 | 0.939893 | 0 | 0 | 0 | 0 | 0 | 0 | 784 | 0.174533 |
968a32ab6cc052ecd19269370677c3356ed68536 | 1,028 | py | Python | test_project/test_app/migrations/0002_auto_20180514_0720.py | iCHEF/queryfilter | 0ae4faf525e162d2720d328b96fa179d68277f1e | [
"Apache-2.0"
] | 4 | 2018-05-11T18:07:32.000Z | 2019-07-30T13:38:49.000Z | test_project/test_app/migrations/0002_auto_20180514_0720.py | iCHEF/queryfilter | 0ae4faf525e162d2720d328b96fa179d68277f1e | [
"Apache-2.0"
] | 6 | 2018-02-26T04:46:36.000Z | 2019-04-10T06:17:12.000Z | test_project/test_app/migrations/0002_auto_20180514_0720.py | iCHEF/queryfilter | 0ae4faf525e162d2720d328b96fa179d68277f1e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-14 07:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('test_app', '0001_initial'),
]
operations = [
migrations.AddField(
... | 25.073171 | 50 | 0.535992 | 869 | 0.845331 | 0 | 0 | 0 | 0 | 0 | 0 | 163 | 0.15856 |
968a7365ef23f40cb8759f1ce7dce18d8b7a6114 | 6,371 | py | Python | file.py | AllenGao6/P2P-File-Sharing | 059f9ec75d10b7802d1a363f718ade640ac18223 | [
"MIT"
] | null | null | null | file.py | AllenGao6/P2P-File-Sharing | 059f9ec75d10b7802d1a363f718ade640ac18223 | [
"MIT"
] | null | null | null | file.py | AllenGao6/P2P-File-Sharing | 059f9ec75d10b7802d1a363f718ade640ac18223 | [
"MIT"
] | null | null | null | '''
objective of file.py:
define the object class for file,
information to include:
name
size of file
chunk list (should automaticlly be splitted into chunks, each chunk should have indicator)
'''
import base64
import sys
import hashlib
JPG, PNG, PDF, MP3, MP4, UNKNOWN = 1, 2, 3, 4, 5, 0... | 33.888298 | 125 | 0.605086 | 6,043 | 0.948517 | 0 | 0 | 0 | 0 | 0 | 0 | 1,594 | 0.250196 |
968afeca8b633bb5b9753043627e7d2f6a06eb50 | 360 | py | Python | pdx-extract/tests/test_utils.py | michaelheyman/PSU-Code-Review | 5a55d981425aaad69dc9ee06baaaef22bc426893 | [
"MIT"
] | null | null | null | pdx-extract/tests/test_utils.py | michaelheyman/PSU-Code-Review | 5a55d981425aaad69dc9ee06baaaef22bc426893 | [
"MIT"
] | null | null | null | pdx-extract/tests/test_utils.py | michaelheyman/PSU-Code-Review | 5a55d981425aaad69dc9ee06baaaef22bc426893 | [
"MIT"
] | null | null | null | import unittest.mock as mock
from app import utils
@mock.patch("app.utils.get_current_timestamp")
def test_generate_filename_generates_formatted_timestamp(mock_timestamp):
mock_timestamp.return_value = 1_555_555_555.555_555
filename = utils.generate_filename()
assert mock_timestamp.called is True
a... | 25.714286 | 73 | 0.802778 | 0 | 0 | 0 | 0 | 305 | 0.847222 | 0 | 0 | 54 | 0.15 |
968b59a333622be17af9c9620da7baac069e951b | 1,328 | py | Python | .my_scripts/network/analyze_speedtest.py | infokiller/config-public | 73fd61a0ad4d2f1ac7e7a73b13de8c4f1b80e5c4 | [
"MIT"
] | 17 | 2020-06-01T14:18:49.000Z | 2022-03-23T04:32:52.000Z | .my_scripts/network/analyze_speedtest.py | Laworigin/config-public | 527c42e0c5c274dd23c537674d789499b03ef912 | [
"MIT"
] | 1 | 2021-11-28T10:43:08.000Z | 2021-11-28T10:43:08.000Z | .my_scripts/network/analyze_speedtest.py | Laworigin/config-public | 527c42e0c5c274dd23c537674d789499b03ef912 | [
"MIT"
] | 3 | 2020-07-02T12:37:27.000Z | 2021-12-15T17:03:54.000Z | #!/usr/bin/env python3
import argparse
import datetime
import os
import matplotlib.pyplot as plt
import pandas as pd
def main():
parser = argparse.ArgumentParser(description='Analyze speedtest csv file')
parser.add_argument('speedtest_file', help='Path to speedtest csv file')
parser.add_argument('--min-... | 30.883721 | 78 | 0.610693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 338 | 0.254518 |
968b5a9ecbc7c7427f6fc38ea644b75122f74f7f | 5,403 | py | Python | tensorflow_datasets/text/wikipedia_toxicity_subtypes.py | stwind/datasets | 118d3d2472a3bf2703d1374e25c2223dc7942c13 | [
"Apache-2.0"
] | 1 | 2020-10-11T19:15:49.000Z | 2020-10-11T19:15:49.000Z | tensorflow_datasets/text/wikipedia_toxicity_subtypes.py | cbaront/datasets | b097e0985eaaadc6b0c1f4dfa3b3cf88d116c607 | [
"Apache-2.0"
] | 1 | 2021-02-23T20:16:05.000Z | 2021-02-23T20:16:05.000Z | tensorflow_datasets/text/wikipedia_toxicity_subtypes.py | cbaront/datasets | b097e0985eaaadc6b0c1f4dfa3b3cf88d116c607 | [
"Apache-2.0"
] | 1 | 2022-03-14T16:17:53.000Z | 2022-03-14T16:17:53.000Z | # coding=utf-8
# Copyright 2020 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 38.049296 | 130 | 0.713122 | 2,672 | 0.49454 | 784 | 0.145105 | 0 | 0 | 0 | 0 | 3,835 | 0.709791 |
968b8d46ee387fdd215e0605696e260154647af3 | 480 | py | Python | estimate-retrofit-impact-on-heat-pump-viability/plot_uvalue_distribution.py | rdmolony/projects | 8cbbe215710cb9f1b1bf80f8c6a39153181d61a0 | [
"MIT"
] | 3 | 2021-09-02T16:38:27.000Z | 2022-01-19T13:11:09.000Z | estimate-retrofit-impact-on-heat-pump-viability/plot_uvalue_distribution.py | rdmolony/projects | 8cbbe215710cb9f1b1bf80f8c6a39153181d61a0 | [
"MIT"
] | 5 | 2021-10-17T16:25:47.000Z | 2021-11-14T17:51:24.000Z | estimate-retrofit-impact-on-heat-pump-viability/plot_uvalue_distribution.py | rdmolony/projects | 8cbbe215710cb9f1b1bf80f8c6a39153181d61a0 | [
"MIT"
] | 3 | 2021-10-04T08:34:26.000Z | 2022-02-06T15:56:03.000Z | import pandas as pd
import seaborn as sns
sns.set()
# + tags=["parameters"]
upstream = ["download_buildings"]
product = None
# -
buildings = pd.read_csv(upstream["download_buildings"])
buildings["wall_uvalue"].plot.hist(bins=30)
buildings["roof_uvalue"].plot.hist(bins=30)
buildings["window_uvalue"].plot.hist(bin... | 19.2 | 55 | 0.739583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 168 | 0.35 |
968d0a57d12d55c489796f697b6f5c53a64a6d4e | 925 | py | Python | src/core/base/Logging.py | albertmonfa/Banhmi | 30052155316d3ba65e9bc7261f13f7e081c14ab2 | [
"Apache-2.0"
] | null | null | null | src/core/base/Logging.py | albertmonfa/Banhmi | 30052155316d3ba65e9bc7261f13f7e081c14ab2 | [
"Apache-2.0"
] | 1 | 2021-06-01T22:54:10.000Z | 2021-06-01T22:54:10.000Z | src/core/base/Logging.py | albertmonfa/Banhmi | 30052155316d3ba65e9bc7261f13f7e081c14ab2 | [
"Apache-2.0"
] | 1 | 2018-11-08T10:18:19.000Z | 2018-11-08T10:18:19.000Z | #!/usr/bin/python
'''
Copyright 2018 Albert Monfa
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... | 27.205882 | 72 | 0.701622 | 328 | 0.354595 | 0 | 0 | 0 | 0 | 0 | 0 | 577 | 0.623784 |
968d107ac6d19ef65f3e2a523c368a10dd9ff203 | 8,243 | py | Python | IzVerifier/test/test_izverifier.py | ahmedlawi92/IzVerifier | b367935f66810b4c4897cc860c5a3e2070f1890f | [
"MIT"
] | null | null | null | IzVerifier/test/test_izverifier.py | ahmedlawi92/IzVerifier | b367935f66810b4c4897cc860c5a3e2070f1890f | [
"MIT"
] | null | null | null | IzVerifier/test/test_izverifier.py | ahmedlawi92/IzVerifier | b367935f66810b4c4897cc860c5a3e2070f1890f | [
"MIT"
] | null | null | null | from IzVerifier.izspecs.containers.izclasses import IzClasses
__author__ = 'fcanas'
import unittest
from IzVerifier.izspecs.containers.izconditions import IzConditions
from IzVerifier.izspecs.containers.izstrings import IzStrings
from IzVerifier.izspecs.containers.izvariables import IzVariables
from IzVerifier.izver... | 35.076596 | 123 | 0.605241 | 7,610 | 0.923208 | 0 | 0 | 0 | 0 | 0 | 0 | 2,685 | 0.325731 |
968e31be6937f07c12c6da1be7d293d1db2611e3 | 5,690 | py | Python | src/envoxy/postgresql/client.py | muzzley/envoxy | b70f2d19ee27f7b4b12e68d441b1317966d87041 | [
"MIT"
] | 2 | 2018-10-29T09:39:43.000Z | 2019-06-18T11:29:00.000Z | src/envoxy/postgresql/client.py | muzzley/envoxy | b70f2d19ee27f7b4b12e68d441b1317966d87041 | [
"MIT"
] | null | null | null | src/envoxy/postgresql/client.py | muzzley/envoxy | b70f2d19ee27f7b4b12e68d441b1317966d87041 | [
"MIT"
] | null | null | null | from psycopg2.pool import ThreadedConnectionPool
import psycopg2.extras
import psycopg2.sql as sql
from contextlib import contextmanager
from threading import Semaphore
from ..db.exceptions import DatabaseException
from ..utils.logs import Log
from ..constants import MIN_CONN, MAX_CONN, TIMEOUT_CONN, DEFAULT_OFFSET_LI... | 31.787709 | 119 | 0.564323 | 5,310 | 0.933216 | 458 | 0.080492 | 478 | 0.084007 | 0 | 0 | 739 | 0.129877 |
968eb0ff0a358625bf80189ad1c3b24c8d3d2439 | 4,380 | py | Python | treadmill/cli/admin/blackout.py | gaocegege/treadmill | 04325d319c0ee912c066f07b88b674e84485f154 | [
"Apache-2.0"
] | 2 | 2017-03-20T07:13:33.000Z | 2017-05-03T03:39:53.000Z | treadmill/cli/admin/blackout.py | gaocegege/treadmill | 04325d319c0ee912c066f07b88b674e84485f154 | [
"Apache-2.0"
] | 12 | 2017-07-10T07:04:06.000Z | 2017-07-26T09:32:54.000Z | treadmill/cli/admin/blackout.py | gaocegege/treadmill | 04325d319c0ee912c066f07b88b674e84485f154 | [
"Apache-2.0"
] | 2 | 2017-05-04T11:25:32.000Z | 2017-07-11T09:10:01.000Z | """Kills all connections from a given treadmill server."""
import logging
import re
import click
import kazoo
from treadmill import presence
from treadmill import utils
from treadmill import zkutils
from treadmill import context
from treadmill import cli
from treadmill import zknamespace as z
_LOGGER = logging.ge... | 29.594595 | 73 | 0.638128 | 0 | 0 | 0 | 0 | 1,408 | 0.321461 | 0 | 0 | 866 | 0.197717 |
9690871dfe5b99b44cb726d4b08a75cadca848bb | 3,200 | py | Python | tests/view_tests/urls.py | peteralexandercharles/django | 61c7350f41f2534daf3888709f3c987b7d779a29 | [
"BSD-3-Clause",
"0BSD"
] | null | null | null | tests/view_tests/urls.py | peteralexandercharles/django | 61c7350f41f2534daf3888709f3c987b7d779a29 | [
"BSD-3-Clause",
"0BSD"
] | null | null | null | tests/view_tests/urls.py | peteralexandercharles/django | 61c7350f41f2534daf3888709f3c987b7d779a29 | [
"BSD-3-Clause",
"0BSD"
] | null | null | null | import os
from functools import partial
from django.conf.urls.i18n import i18n_patterns
from django.urls import include, path, re_path
from django.utils.translation import gettext_lazy as _
from django.views import defaults, i18n, static
from . import views
base_dir = os.path.dirname(os.path.abspath(__file__))
media... | 38.095238 | 88 | 0.684688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,126 | 0.351875 |
969196b838a5ad3282e2d2bf20e3669c40ce0f82 | 20,323 | py | Python | sympy/solvers/ode/systems.py | nsfinkelstein/sympy | cf87897234ad0d7eaac705ba47267caec2a6bcb1 | [
"BSD-3-Clause"
] | 2 | 2019-05-18T22:36:49.000Z | 2019-05-24T05:56:16.000Z | sympy/solvers/ode/systems.py | mmelotti/sympy | bea29026d27cc50c2e6a5501b6a70a9629ed3e18 | [
"BSD-3-Clause"
] | 1 | 2020-04-22T12:45:26.000Z | 2020-04-22T12:45:26.000Z | sympy/solvers/ode/systems.py | mmelotti/sympy | bea29026d27cc50c2e6a5501b6a70a9629ed3e18 | [
"BSD-3-Clause"
] | 3 | 2021-02-16T16:40:49.000Z | 2022-03-07T18:28:41.000Z | from sympy import (Derivative, Symbol)
from sympy.core.numbers import I
from sympy.core.relational import Eq
from sympy.core.symbol import Dummy
from sympy.functions import exp, im, cos, sin, re
from sympy.functions.combinatorial.factorials import factorial
from sympy.matrices import zeros, Matrix
from sympy.simplify i... | 32.310016 | 104 | 0.59814 | 233 | 0.011465 | 0 | 0 | 0 | 0 | 0 | 0 | 14,047 | 0.691187 |
96929dbf83193019e408fa5ab401d32d84324a98 | 104 | py | Python | python/torch_mlir/eager_mode/__init__.py | burntfalafel/torch-mlir-internal | d3ef58450fc94e9337dc0434fa3af6dd7b54b37f | [
"Apache-2.0"
] | 2 | 2022-02-16T21:56:00.000Z | 2022-02-20T17:34:47.000Z | python/torch_mlir/eager_mode/__init__.py | burntfalafel/torch-mlir-internal | d3ef58450fc94e9337dc0434fa3af6dd7b54b37f | [
"Apache-2.0"
] | null | null | null | python/torch_mlir/eager_mode/__init__.py | burntfalafel/torch-mlir-internal | d3ef58450fc94e9337dc0434fa3af6dd7b54b37f | [
"Apache-2.0"
] | null | null | null | import os
EAGER_MODE_DEBUG = os.environ.get("EAGER_MODE_DEBUG", 'False').lower() in ('true', '1', 't')
| 26 | 92 | 0.673077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 37 | 0.355769 |
96930cd599eda3b260c1fca7b9aaa84eeb3c1530 | 985 | py | Python | docs/rips/tests/test_surfaces.py | OPM/ResInsight-UserDocumentation | 2af2c3a5ef297c0061d842944360a83bf8e49c36 | [
"MIT"
] | 1 | 2020-04-25T21:24:45.000Z | 2020-04-25T21:24:45.000Z | docs/rips/tests/test_surfaces.py | OPM/ResInsight-UserDocumentation | 2af2c3a5ef297c0061d842944360a83bf8e49c36 | [
"MIT"
] | 7 | 2020-02-11T07:42:10.000Z | 2020-09-28T17:18:01.000Z | docs/rips/tests/test_surfaces.py | OPM/ResInsight-UserDocumentation | 2af2c3a5ef297c0061d842944360a83bf8e49c36 | [
"MIT"
] | 2 | 2020-04-02T09:33:45.000Z | 2020-04-09T19:44:53.000Z | import sys
import os
import tempfile
from pathlib import Path
import pytest
sys.path.insert(1, os.path.join(sys.path[0], "../../"))
import rips
import dataroot
@pytest.mark.skipif(
sys.platform.startswith("linux"),
reason="Brugge is currently exceptionally slow on Linux",
)
def test_create_and_export_surfac... | 28.142857 | 85 | 0.722843 | 0 | 0 | 0 | 0 | 820 | 0.832487 | 0 | 0 | 153 | 0.15533 |
96935625868f5df6499326134d54ac7ad8bc8a3f | 1,172 | py | Python | samcli/cli/main.py | langn/aws-sam-cli | 160d87ff3c07f092315e1ac71ddc00257fde011b | [
"Apache-2.0"
] | null | null | null | samcli/cli/main.py | langn/aws-sam-cli | 160d87ff3c07f092315e1ac71ddc00257fde011b | [
"Apache-2.0"
] | 1 | 2018-05-23T19:51:18.000Z | 2018-05-23T19:51:18.000Z | samcli/cli/main.py | langn/aws-sam-cli | 160d87ff3c07f092315e1ac71ddc00257fde011b | [
"Apache-2.0"
] | null | null | null | """
Entry point for the CLI
"""
import logging
import click
from samcli import __version__
from .options import debug_option
from .context import Context
from .command import BaseCommand
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO, format='%(asctime)s %(message)s', datefmt='%Y-%m-%d %... | 26.636364 | 116 | 0.740614 | 0 | 0 | 0 | 0 | 573 | 0.488908 | 0 | 0 | 651 | 0.555461 |
9693a5d83793a6353d6917bc38d706bca8e15158 | 1,816 | py | Python | ast_to_json.py | visr/Py2Jl.jl | b2dee947299d064da2e443d0b1ad2ca90bbd1753 | [
"MIT"
] | 53 | 2018-08-20T12:47:47.000Z | 2022-03-17T02:21:07.000Z | ast_to_json.py | visr/Py2Jl.jl | b2dee947299d064da2e443d0b1ad2ca90bbd1753 | [
"MIT"
] | 14 | 2019-01-24T15:27:15.000Z | 2021-06-13T13:24:18.000Z | ast_to_json.py | visr/Py2Jl.jl | b2dee947299d064da2e443d0b1ad2ca90bbd1753 | [
"MIT"
] | 9 | 2019-02-12T01:07:11.000Z | 2021-11-11T19:33:36.000Z | import ast
import typing as t
import numbers
import json
from wisepy.talking import Talking
from Redy.Tools.PathLib import Path
talking = Talking()
def to_dict(node: t.Union[ast.AST, str, numbers.Number, list]):
if isinstance(node, complex):
return {"class": "complex", "real": node.real, "imag": node.ima... | 25.942857 | 73 | 0.55837 | 0 | 0 | 0 | 0 | 811 | 0.446586 | 0 | 0 | 280 | 0.154185 |
96940da789aefea52af00e66e63f6bfcc1df6521 | 18,232 | py | Python | src/python/pants/backend/docker/util_rules/docker_build_context_test.py | pantsbuild/pants | 22c566e78b4dd982958429813c82e9f558957817 | [
"Apache-2.0"
] | 1,806 | 2015-01-05T07:31:00.000Z | 2022-03-31T11:35:41.000Z | src/python/pants/backend/docker/util_rules/docker_build_context_test.py | pantsbuild/pants | 22c566e78b4dd982958429813c82e9f558957817 | [
"Apache-2.0"
] | 9,565 | 2015-01-02T19:01:59.000Z | 2022-03-31T23:25:16.000Z | src/python/pants/backend/docker/util_rules/docker_build_context_test.py | pantsbuild/pants | 22c566e78b4dd982958429813c82e9f558957817 | [
"Apache-2.0"
] | 443 | 2015-01-06T20:17:57.000Z | 2022-03-31T05:28:17.000Z | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
from textwrap import dedent
from typing import Any, ContextManager
import pytest
from pants.backend.docker.goals import package_image
from pants.backe... | 32.042179 | 99 | 0.557975 | 0 | 0 | 0 | 0 | 4,042 | 0.221698 | 0 | 0 | 6,507 | 0.3569 |
969769f903879e83d04d75567c8891aa3f6d52df | 726 | py | Python | build_you/models/company.py | bostud/build_you | 258a336a82a1da9efc102770f5d8bf83abc13379 | [
"MIT"
] | null | null | null | build_you/models/company.py | bostud/build_you | 258a336a82a1da9efc102770f5d8bf83abc13379 | [
"MIT"
] | null | null | null | build_you/models/company.py | bostud/build_you | 258a336a82a1da9efc102770f5d8bf83abc13379 | [
"MIT"
] | null | null | null | import enum
from sqlalchemy import Column, ForeignKey, String, JSON, Integer, Enum
from sqlalchemy.orm import relationship
from build_you.models.base import BaseModel
from build_you.database import Base
class Company(BaseModel, Base):
__tablename__ = 'company'
class Status(enum.Enum):
ACTIVE = 1
... | 30.25 | 75 | 0.717631 | 519 | 0.714876 | 0 | 0 | 0 | 0 | 0 | 0 | 57 | 0.078512 |
9697bf800b99049dd85751a04350650f26e3d26b | 293 | py | Python | deeplab_resnet/__init__.py | tramper2/SIGGRAPH18SSS | 9bf22fa242044edfcf11cc4a58b93c63fcc71ff0 | [
"MIT"
] | 390 | 2018-07-30T08:41:49.000Z | 2022-03-29T15:44:13.000Z | deeplab_resnet/__init__.py | tramper2/SIGGRAPH18SSS | 9bf22fa242044edfcf11cc4a58b93c63fcc71ff0 | [
"MIT"
] | 20 | 2018-08-15T14:51:29.000Z | 2020-04-21T09:49:49.000Z | deeplab_resnet/__init__.py | tramper2/SIGGRAPH18SSS | 9bf22fa242044edfcf11cc4a58b93c63fcc71ff0 | [
"MIT"
] | 109 | 2018-08-04T05:58:23.000Z | 2021-10-17T12:02:29.000Z | from .model import DeepLabResNetModel
from .hc_deeplab import HyperColumn_Deeplabv2
from .image_reader import ImageReader, read_data_list, get_indicator_mat, get_batch_1chunk, read_an_image_from_disk, tf_wrap_get_patch, get_batch
from .utils import decode_labels, inv_preprocess, prepare_label | 73.25 | 145 | 0.880546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
9697d247dc37a959099c3ca64ced69e9f31cf6d0 | 670 | py | Python | ESPNet/commons/general_details.py | sanket1414/Priority-Based-Alert-System | 89d61d43eab8d7251fe99796e657bc95da1cc48c | [
"MIT"
] | 1 | 2019-10-24T03:19:14.000Z | 2019-10-24T03:19:14.000Z | ESPNet/commons/general_details.py | sanket1414/Priority-Based-Alert-System | 89d61d43eab8d7251fe99796e657bc95da1cc48c | [
"MIT"
] | null | null | null | ESPNet/commons/general_details.py | sanket1414/Priority-Based-Alert-System | 89d61d43eab8d7251fe99796e657bc95da1cc48c | [
"MIT"
] | null | null | null | # classification related details
classification_datasets = ['imagenet', 'coco']
classification_schedulers = ['fixed', 'clr', 'hybrid', 'linear', 'poly']
classification_models = ['espnetv2', 'dicenet', 'shufflenetv2']
classification_exp_choices = ['main', 'ablation']
# segmentation related details
segmentation_schedule... | 35.263158 | 72 | 0.720896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 324 | 0.483582 |
9699ab49dc0c20db4bb4ee78fa2411605bb8f673 | 1,758 | py | Python | resources/dot_PyCharm/system/python_stubs/-762174762/win32profile.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | 1 | 2020-04-20T02:27:20.000Z | 2020-04-20T02:27:20.000Z | resources/dot_PyCharm/system/python_stubs/cache/9edeeb97ae7c1ec358f9620843984323739bcf3221eaa5ee1fd68961c7a6b26a/win32profile.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | null | null | null | resources/dot_PyCharm/system/python_stubs/cache/9edeeb97ae7c1ec358f9620843984323739bcf3221eaa5ee1fd68961c7a6b26a/win32profile.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | null | null | null | # encoding: utf-8
# module win32profile
# from C:\Python27\lib\site-packages\win32\win32profile.pyd
# by generator 1.147
# no doc
# no imports
# Variables with simple values
PI_APPLYPOLICY = 2
PI_NOUI = 1
PT_MANDATORY = 4
PT_ROAMING = 2
PT_TEMPORARY = 1
# functions
def CreateEnvironmentBlock(*args, **kwargs): # re... | 27.46875 | 78 | 0.711035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,002 | 0.569966 |