repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Dalwy/Ayame | 13,778,255,126,710 | 2bd409eaa888355814340f7fcb2243f7800760ff | 25da86286addbccfc28e032cea9380dd6f690202 | /cogs/NOT_USING/Rules.py | 22080284f887e90886295679730dd396378c2f83 | [] | no_license | https://github.com/Dalwy/Ayame | a87a3e68c73f958a7248ca74de1fa59143c89d55 | 686cb63e4d6b811ff73e69616639b44b5fe04ea4 | refs/heads/master | 2023-01-02T05:28:39.010708 | 2020-10-20T05:35:37 | 2020-10-20T05:35:37 | 305,600,869 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import discord
from discord.ext import commands
import json
class Rules(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.emojis =['✅']
self.DalwyRules = 'https://cdn.discordapp.com/attachments/659652540488482837/659658620547629058/Dalwy.png'
@commands.command()
@comma... | UTF-8 | Python | false | false | 3,195 | py | 16 | Rules.py | 10 | 0.576574 | 0.523959 | 0 | 74 | 42.148649 | 114 |
DerekGloudemans/Nutrition-Optimization-New | 14,877,766,750,929 | 1e9dfcd0beb1633d156f96e2db9fbc5aa1d81a91 | eddb269e396fea87cf67a9f92ac6955fd4464e33 | /2 - linear_solver.py | c18e6f5a95333b69d4b4d6bc6bf10ebc30f9c51f | [] | no_license | https://github.com/DerekGloudemans/Nutrition-Optimization-New | 7496688ef37875d46f2cd685a1a6ac5070158fb5 | ad00de73d9fab9039d0d5f4991c5e4c61a89348d | refs/heads/master | 2020-04-22T13:08:37.998128 | 2019-10-03T22:22:02 | 2019-10-03T22:22:02 | 170,398,719 | 6 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # optimize as a linear program with nutrient guidelines as constraints
from scipy.optimize import linprog
from scipy.optimize import minimize
import _pickle as cPickle
import numpy as np
import pandas as pd
def prep_data():
# 1. load data from pickle files
f = open("Data/Nutrition_Data_Matrix.cpkl", 'rb')
... | UTF-8 | Python | false | false | 7,598 | py | 6 | 2 - linear_solver.py | 3 | 0.581337 | 0.564491 | 0 | 240 | 30.6625 | 126 |
ruvamd/CodePractice-Python | 11,484,742,587,452 | 94c4012a6f272bc1f0a20a0e3b5b8a95bd3981f6 | aeb8314c32b01281f359a3e6ca66e22b3ac58a80 | /UW/assignment_6/lesson6 code examples/classes.py | 351cfeb252e183049a6d1c8d0886f5efe684ebe7 | [] | no_license | https://github.com/ruvamd/CodePractice-Python | ae853edf3d179504dac0e58a9864d1b636e32956 | a7d957e857b97d616ae9993045b7a19e9650c96a | refs/heads/master | 2021-11-19T03:36:24.906488 | 2021-11-18T23:18:44 | 2021-11-18T23:18:44 | 221,548,197 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Person:
pass
andy = Person()
assert str(type(andy)) == "<class '__main__.Person'>"
class Vehicle:
def __init__(self, owner_name):
self.owner_name = owner_name
my_car = Vehicle("andy's")
assert my_car.owner_name == "andy's"
class Rectangle:
def __init__(self, width, height):
sel... | UTF-8 | Python | false | false | 588 | py | 559 | classes.py | 544 | 0.605442 | 0.586735 | 0 | 32 | 17.375 | 53 |
xpybuild/xpybuild | 1,563,368,127,324 | bd288a57f55a374a3390a73025d29925bb4cc629 | dce8dad6067ff3f6f59e1fa8185d249fd0bd9c58 | /tests/correctness/targets/FilteredCopy_UnusedMappersDisallowed/Input/test.xpybuild.py | 70da1081ba4abae3011a3321e5458433de33eed8 | [
"Apache-2.0"
] | permissive | https://github.com/xpybuild/xpybuild | ccd6c22d4aa0560ee5583004b94dccc03c0cad52 | 9e0aa0ae268cf3fcc759572a026e1ed2a03379e0 | refs/heads/master | 2023-07-12T03:04:08.687644 | 2023-06-29T13:57:34 | 2023-06-29T13:57:34 | 81,104,277 | 9 | 5 | Apache-2.0 | false | 2022-01-07T18:48:57 | 2017-02-06T15:58:02 | 2022-01-06T22:15:41 | 2022-01-07T18:48:56 | 11,753 | 7 | 4 | 5 | Python | false | false | from xpybuild.buildcommon import enableLegacyXpybuildModuleNames
enableLegacyXpybuildModuleNames()
from propertysupport import *
from buildcommon import *
from pathsets import *
from targets.copy import *
defineOutputDirProperty('OUTPUT_DIR', None)
FilteredCopy('${OUTPUT_DIR}/unused-mapper.txt', 'input.t... | UTF-8 | Python | false | false | 361 | py | 205 | test.xpybuild.py | 161 | 0.778393 | 0.778393 | 0 | 12 | 28.083333 | 95 |
eickenberg/super-duper-octo-disco | 1,125,281,444,969 | 055c7df2d2b6c2e82a56ca8e12e63b036bf340a4 | c61e1bc6358bc601ff468c9a7af1850320ba3690 | /paradigm.py | 509726959d56a15b5b29771a427b8d2f0440cdb9 | [] | no_license | https://github.com/eickenberg/super-duper-octo-disco | aac1082c07c7c801345eae2965b2e324d5dc4c0b | 3e1ed7b1499fbfeb7a20cba428b9f529e1da131f | refs/heads/master | 2021-01-10T12:30:36.267327 | 2016-03-25T07:22:49 | 2016-03-25T07:22:49 | 51,409,317 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
from collections import OrderedDict
# Taken from nistats.hemodynamic_model
def _sample_condition(exp_condition, frame_times, oversampling=16,
min_onset=-24):
"""Make a possibly oversampled event regressor from condition information.
Parameters
... | UTF-8 | Python | false | false | 7,374 | py | 33 | paradigm.py | 19 | 0.595471 | 0.583672 | 0 | 185 | 38.854054 | 81 |
Sbarbagnem/User_Identify_Inertial_Sensor | 15,083,925,174,921 | 1e1595bac86f2c198e2ec924cfd6e34c43b40b2d | ea159305fb6795b8a0ede245ca3b41f25c3de672 | /util/utils.py | cf1c5d40e944eb588acfd6b0335a72698af14938 | [] | no_license | https://github.com/Sbarbagnem/User_Identify_Inertial_Sensor | 774484984366d697d9207bb025bfe11ca8612e89 | 1d03343501aa5558d691eb3c2670f85064422471 | refs/heads/master | 2023-03-12T05:15:49.420070 | 2021-02-24T13:19:09 | 2021-02-24T13:19:09 | 256,522,374 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import os
import sys
import pywt
from pprint import pprint
from sklearn import utils as skutils
from sklearn.model_selection import train_test_split
import math
from sklearn.preprocessing import scale as scale_sklearn
from scipy import signal, fftpack
from scipy.signal... | UTF-8 | Python | false | false | 30,694 | py | 26 | utils.py | 23 | 0.531993 | 0.516648 | 0 | 815 | 36.662577 | 173 |
prajjawalkashyap/shopping-project | 13,700,945,677,681 | 3b270d4a62c8ec83cfa6f36c11c43217bbda66f1 | 18f62304988d0d10909bb42d1c75c79c06cfa17a | /shop/shopViews/payment.py | b25a4203645b5f4bfda5a4b5abb30db06c2868fb | [] | no_license | https://github.com/prajjawalkashyap/shopping-project | a6958efc7ea49a383afc662f2e579324e8d03e62 | a1842fe4345f57b32a661b65844a8a87fbad0917 | refs/heads/master | 2023-08-13T17:59:40.618544 | 2021-10-10T12:55:50 | 2021-10-10T12:55:50 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.shortcuts import render, redirect
import razorpay
from django.conf import settings
from django.views.decorators.csrf import csrf_exempt
from shop.models import Product, Cart, CartItem, OrderProduct, Order, Payment, Refund, Coupon, \
CouponUsed
from authy.models import User, Address
from django.contrib i... | UTF-8 | Python | false | false | 5,261 | py | 28 | payment.py | 18 | 0.567193 | 0.563961 | 0 | 141 | 36.312057 | 116 |
FoxRobotLab/catkin_ws | 4,415,226,381,360 | a15ef8cecc7b4fad45d9104c91041c43845e6c40 | efb152cade7d3c8e4ff423cdea41de0a264c5f54 | /src/match_seeker/scripts/olri_classifier/olin_visualizer.py | 173edef7888d3dd8517207078d6057c496b36545 | [] | no_license | https://github.com/FoxRobotLab/catkin_ws | 01218a9448097243574b7b68d220f2c1cfe90a75 | 97bb378a325b1639110de06b88d6e237dffc7330 | refs/heads/master | 2023-02-24T00:36:35.116662 | 2023-02-16T16:43:10 | 2023-02-16T16:43:10 | 59,224,424 | 6 | 4 | null | false | 2016-06-14T19:05:31 | 2016-05-19T16:37:34 | 2016-05-19T16:38:39 | 2016-06-14T19:05:31 | 8,106 | 0 | 0 | 0 | Python | null | null | """--------------------------------------------------------------------------------
olin_visualizer.py
Author: Jinyoung Lim
Date: July 2018
A simple messy program to visualize a model. Takes in a directory of images and the model path
and visualizes each layer.
Acknowledgement:
https://www.analyticsvidhya.com/blo... | UTF-8 | Python | false | false | 8,862 | py | 285 | olin_visualizer.py | 158 | 0.641729 | 0.613631 | 0 | 246 | 35.02439 | 172 |
lsst-camera-dh/EO-utilities | 4,054,449,148,372 | 039f695627750cb54364f84813971868f29f41cf | 257361b57c34729bbe1ad58bea823f9cb7f2c540 | /python/lsst/eo_utils/qe/qe.py | 07c41f1be8a2f07aa442774d1f57aa23e8a83dad | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | https://github.com/lsst-camera-dh/EO-utilities | 749432b0b68f05e89b8bedacd23f01011265e32c | 28418284fdaf2b2fb0afbeccd4324f7ad3e676c8 | refs/heads/master | 2023-03-04T23:46:09.843146 | 2020-12-03T18:44:06 | 2020-12-03T18:44:06 | 117,150,415 | 2 | 1 | NOASSERTION | false | 2020-12-03T18:44:07 | 2018-01-11T20:34:40 | 2020-12-03T17:56:13 | 2020-12-03T18:44:06 | 5,417 | 1 | 1 | 0 | Python | false | false | """Class to analyze the FFT of the bias frames"""
import numpy as np
from lsst.eotest.sensor.QE import QE_Data
from lsst.eo_utils.base.config_utils import EOUtilOptions
from lsst.eo_utils.base.data_utils import TableDict
from lsst.eo_utils.base.factory import EO_TASK_FACTORY
from .meta_analysis import QeSlotTable... | UTF-8 | Python | false | false | 2,363 | py | 144 | qe.py | 125 | 0.620821 | 0.619551 | 0 | 89 | 25.550562 | 88 |
Open-CAS/ocf | 154,618,858,188 | 89c63ec4ed6d994f4438ce380732f087d4cbe2bf | 4b15f318ba3332ee946cb0b2838c93e7935b9b89 | /tests/functional/tests/management/test_disable_cleaner.py | 5077397dbcd10079287f2efee3680aa3683686f3 | [
"BSD-3-Clause"
] | permissive | https://github.com/Open-CAS/ocf | c4f8a5c9c1b254a905fda75be2c19bd7c8ebd450 | 016d7a8ee2822d672c308264e79bae4081e7930e | refs/heads/master | 2023-05-28T08:40:51.328181 | 2023-05-11T08:11:57 | 2023-05-11T08:11:57 | 152,160,836 | 168 | 94 | BSD-3-Clause | false | 2023-09-14T08:01:50 | 2018-10-08T23:46:10 | 2023-09-12T13:23:31 | 2023-09-14T08:01:49 | 3,737 | 158 | 78 | 21 | C | false | false | #
# Copyright(c) 2022 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
#
import pytest
from pyocf.types.volume import RamVolume
from pyocf.types.cache import Cache, CacheMetadataSegment, CleaningPolicy
from pyocf.types.core import Core
from pyocf.types.shared import OcfError, OcfCompletion
from pyocf.utils im... | UTF-8 | Python | false | false | 6,495 | py | 298 | test_disable_cleaner.py | 57 | 0.693457 | 0.689299 | 0 | 178 | 35.488764 | 93 |
theAnton-forks/Competitive-Programming-Portfolio | 14,937,896,288,325 | b1db994236118e2b4df09dca1b3892d88e1c53e5 | c30c3466c34c41b49e8c8b2791e0d44ae6277cb2 | /Adjacent Numbers Forming Squares/main.py | 8839b7995a77545ac90461787e0fcc16f3d40248 | [] | no_license | https://github.com/theAnton-forks/Competitive-Programming-Portfolio | 784eb9ff5441f1a81f5501d690f9094698bc34c7 | fb3f099d7ecc37b9117d64faa4c1bdf89e1f18d2 | refs/heads/master | 2022-12-14T03:18:04.941318 | 2020-09-03T05:22:46 | 2020-09-03T05:22:46 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | square = [False for i in range(100)]
i = 1
while i**2 < 100:
square[i**2] = True
i += 1
def f(pos, array, used):
if pos == 15:
print array
return
for i in range(1, 16):
if used[i] is False and square[array[pos] + i] is True:
array[pos + 1] = i
used[i] = True
f(pos + 1, array, used)
used[i] = Fal... | UTF-8 | Python | false | false | 501 | py | 1,256 | main.py | 998 | 0.572854 | 0.51497 | 0 | 27 | 17.555556 | 57 |
savagedude3/comp-glia-book | 11,819,750,012,594 | 476907d0fb310f16b573026294a53b7999008720 | 3b9898c95102c35ac05079ebbff68a2553951c65 | /Ch10.DePitta/code/gliotransmission_models.py | d8c9569ee3ccd716434443a9a1848ce7495a4746 | [] | no_license | https://github.com/savagedude3/comp-glia-book | 902460f1137c4ee0d9fc53993412376eec08668e | c2e3fa54c22c9c2e04376e9af4cb3491ad1dfe91 | refs/heads/master | 2022-03-29T04:38:16.565159 | 2019-04-27T20:48:29 | 2019-04-27T20:48:29 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
astrocyte_models.py
Library of astrocyte models.
- chi_model : CHI model simulator;
- gchi_model : GCHI model simulator;
- gchi_norm_model : GCHI model simulator w/ normalized parameters (for CMAES)
Maurizio De Pitta', The University of Chicago, Feb 27th, 2015.
'''
from __future__ import division
impor... | UTF-8 | Python | false | false | 58,734 | py | 137 | gliotransmission_models.py | 87 | 0.508462 | 0.495692 | 0 | 1,282 | 44.815133 | 151 |
sjabby/home-assistant-config | 1,666,447,360,381 | 51055d988c7ee74a6dac60fbb1843757726dd344 | abac98f525ac744847bfb7a52ebad702b95d5df7 | /custom_components/hacs/repositories/hacsrepositoryintegration.py | 6fa6f4f9cbed607d1e078c0f7ee01f1cd4ab1bdb | [
"MIT"
] | permissive | https://github.com/sjabby/home-assistant-config | e7d2990df201bb1cc331647e0377ac2dffbc0b23 | 89f4bcea5daeddc1e657bc0d7f6db3197f6bddb8 | refs/heads/master | 2021-06-17T01:11:39.034847 | 2021-03-20T12:40:06 | 2021-03-20T12:40:06 | 170,991,151 | 3 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Blueprint for HacsRepositoryIntegration."""
# pylint: disable=too-many-instance-attributes,invalid-name,broad-except,access-member-before-definition
import logging
import json
from .hacsrepositorybase import HacsRepositoryBase
from ..hacsbase.exceptions import HacsRequirement
_LOGGER = logging.getLogger("custom_co... | UTF-8 | Python | false | false | 3,006 | py | 523 | hacsrepositoryintegration.py | 26 | 0.652029 | 0.651031 | 0 | 88 | 33.159091 | 104 |
fangqyi/garage | 7,327,214,249,835 | 482c79cd77b3de30a926a88e2ecc41ea76b32953 | 51d7e8c09793b50d45731bd5ab9b531b525cf6db | /src/garage/torch/algos/discriminator/mlp_discriminator.py | 28d0d389cc2108450890bf310399c454bef8eda2 | [
"MIT"
] | permissive | https://github.com/fangqyi/garage | 454247849a6a3f547557b3fac3787ba9eeb0391f | ddafba385ef005f46f913ab352f9638760e5b412 | refs/heads/master | 2023-02-25T00:43:18.903328 | 2021-01-26T01:52:15 | 2021-01-26T01:52:15 | 267,667,220 | 0 | 0 | MIT | true | 2020-05-28T18:35:08 | 2020-05-28T18:35:07 | 2020-05-28T16:12:11 | 2020-05-28T18:02:35 | 64,463 | 0 | 0 | 0 | null | false | false | import numpy as np
import torch
import garage.torch.utils as tu
from garage.torch.modules import MLPModule
class MLPDiscriminator(MLPModule):
def __init__(self, env_spec, skills_num, **kwargs):
self._obs_dim = env_spec.observation_space.flat_dim
self._skills_num = skills_num
super().__in... | UTF-8 | Python | false | false | 1,768 | py | 110 | mlp_discriminator.py | 94 | 0.549208 | 0.545249 | 0 | 46 | 37.434783 | 87 |
jccode/djcems | 5,712,306,508,709 | 03a38991cd07a84fb1c1992f17ab3639a8b85280 | a2a1c55bdbe58e0b441f067ccbba02f87e275409 | /vehicle/migrations/0006_auto_20160101_1606.py | 123804189801afaaf09ca64b658bf90d9517a1c2 | [] | no_license | https://github.com/jccode/djcems | 41418efbd8c54c2aac660be6d0460f0b6576ad6f | b44965f3357d23073d508b82ea57d44e3edb809d | refs/heads/master | 2021-01-21T13:57:06.632804 | 2016-06-02T08:56:12 | 2016-06-02T08:56:12 | 48,077,422 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-01 08:06
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vehicle', '0005_auto_20151223_0015'),
]
operations = ... | UTF-8 | Python | false | false | 540 | py | 67 | 0006_auto_20160101_1606.py | 58 | 0.62963 | 0.561111 | 0 | 21 | 24.714286 | 111 |
kaushikcfd/mirgecom | 18,382,460,041,884 | f87bf09acb0efa0d1733874c532e0c61b206c601 | 2d6aafcb0926b386243fa2de14745e88984af745 | /test/test_restart.py | 287598e01299db11b07012e8ca43a4f1ff734306 | [
"X11",
"MIT"
] | permissive | https://github.com/kaushikcfd/mirgecom | 750007dfd918f9c1600eb2e81c7666d6ee4c15af | 47f144782258eae2b1fb39520e96f414ae176ff4 | refs/heads/main | 2023-09-05T23:39:27.929740 | 2021-10-21T00:23:39 | 2021-10-21T00:23:39 | 353,848,748 | 0 | 0 | NOASSERTION | true | 2021-04-01T23:10:52 | 2021-04-01T23:10:52 | 2021-03-30T16:54:13 | 2021-04-01T20:58:32 | 1,746 | 0 | 0 | 0 | null | false | false | """Test the restart module."""
__copyright__ = """
Copyright (C) 2020 University of Illinois Board of Trustees
"""
__license__ = """
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restri... | UTF-8 | Python | false | false | 2,886 | py | 104 | test_restart.py | 56 | 0.716563 | 0.708593 | 0 | 79 | 35.531646 | 78 |
lyulu/tautology_judge | 3,066,606,687,376 | 34533c891cf143744de62d6e4189dad5111aecff | a1fdc212b47f48f0d553742c84d4c470253862b6 | /tautology_judge.py | 1b56823d9caed2c8ec488b498dff94d65c98e87f | [] | no_license | https://github.com/lyulu/tautology_judge | bfd4d9b369dafdd9395c7d337197135be974932b | babe4f879d63503e5f22a33668cda1b839af96ab | refs/heads/main | 2023-02-26T20:57:04.911757 | 2021-02-09T17:04:27 | 2021-02-09T17:04:27 | 337,470,514 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | wff = input("論理式を入れてください。") # 命題記号はAから順に、 ()を用いて優先順位をわかりやすく。¬だけにも()を使う。余計な()は用いない。
# 例:(A→B)→((¬B)→(¬A)), ((A∧B)→C)→((A→C)∨(B→C)), (×∧A)→((C∨D)∨(¬B))
nwff = 0 # 使われている文字の個数(A〜Z)
ntree = 0 # 使うbool値の数
floor = 0 # ()の個数管理、木の深さ
contradiction = 0
tmpprocess = [] # 記号の処理順
process = [] # 処理順
tautology = True
for i in range(l... | UTF-8 | Python | false | false | 4,478 | py | 3 | tautology_judge.py | 1 | 0.52582 | 0.510984 | 0 | 97 | 35.134021 | 105 |
dnoonan08/Plotting_TTGammaRun2 | 2,499,670,993,746 | 0bcfe3fda63fb522df4c1466e2bdc1b62b25b242 | 4ee76700ddf90c10b37021c398e69cb0681403bb | /makePlot_M3Control.py | a59a1d5b5a13adb833ca335b34e2d63b229774a3 | [] | no_license | https://github.com/dnoonan08/Plotting_TTGammaRun2 | f502467ab2635ecf6ef6efe1babd320624dd19f5 | c53b313a893b3563e66186dba07fc8bb4e6ec92b | refs/heads/master | 2021-04-09T02:55:28.017927 | 2020-03-20T03:27:14 | 2020-03-20T03:27:14 | 248,832,053 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from ROOT import TFile, TLegend, TCanvas, TPad, THStack, TF1, TPaveText, TGaxis, SetOwnership, TObject, gStyle,TH1F, gROOT, kViolet,kBlack,kOrange,kRed,kGreen,kBlue,gApplication,kGray,kYellow,kCyan,kSpring
#from ROOT import *
import os
import numpy
import sys
from optparse import OptionParser
from sampleInformation im... | UTF-8 | Python | false | false | 20,574 | py | 99 | makePlot_M3Control.py | 70 | 0.708564 | 0.66307 | 0 | 566 | 35.337456 | 223 |
gfcarbonell/app_main | 17,703,855,198,359 | deed5ce9edde65f79675ff0825eb38f988a62365 | 467f7f01de1a7995e4a9fe97ec880edb9e64af3c | /app_main/web_headers/views.py | cdfb49e748f8e7fd17bd01f2c9597832a25ef7a4 | [] | no_license | https://github.com/gfcarbonell/app_main | 00f0fd53b883d7a119852b7a282e22612ac0593c | 0cdee47c717078f9e78a687a1e0da8f4304c7f02 | refs/heads/master | 2020-06-17T22:24:09.399604 | 2017-02-15T23:23:20 | 2017-02-15T23:23:20 | 74,966,359 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- encoding: utf-8 -*-
from django.shortcuts import render
from rest_framework import viewsets
from .models import WebHeader
from .serializers import WebHeaderModelSerializer
class WebHeaderModelViewSet(viewsets.ModelViewSet):
model = WebHeader
serializer_class = WebHeaderModelSerializer
que... | UTF-8 | Python | false | false | 360 | py | 83 | views.py | 80 | 0.75 | 0.747222 | 0 | 11 | 31.727273 | 51 |
Vijendrapratap/Machine-Learning | 19,000,935,322,208 | 9d5282b60db04b75e6357f8a23f97e5edf94e604 | 331bcb7a843a75299338bcab6868e75a2ee456cd | /week1/1. WAP which accepts the user's first and last name and print them in reverse order with a space between them.py | 5ff6b30141c139d0e75158605fd82c974957af99 | [] | no_license | https://github.com/Vijendrapratap/Machine-Learning | 63d2a955ab04f226f243a94f4972aa06857f25b4 | e0a6acf5def491705a803b15b03db85a7c3b875c | refs/heads/master | 2022-06-11T19:29:33.615535 | 2019-06-03T07:07:46 | 2019-06-03T07:07:46 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Take user's name as input and print in reverse order
Example:
name: alfa singh
output : afla hgnis
Author : vijendra pratsp singh
Email : pratap.vijendrasingh96@gmail.com
"""
def reverse_name():
f_name = input("Enter your first name : ")
l_name = input("Enter your last name : ")
f_na... | UTF-8 | Python | false | false | 470 | py | 182 | 1. WAP which accepts the user's first and last name and print them in reverse order with a space between them.py | 146 | 0.604255 | 0.595745 | 0 | 24 | 18.541667 | 52 |
wuxvsuizhong/Li_pro | 13,211,319,443,489 | 48e07f2020fe2436543a0dd342a29ec891126e54 | 42e0305c8cc9e20fee14d359ec3d466fb4608607 | /django/django_1/project/everydayfresh/df_goods/admin.py | f3d7e5ff4ee5e1c4bc05bada128d0448fbaa450a | [] | no_license | https://github.com/wuxvsuizhong/Li_pro | 976159583927823464d4576efb59aaf86ef65e13 | 7facd87e67f767412917d9b8668746f1d87ec28f | refs/heads/master | 2023-08-08T23:13:08.226873 | 2023-07-22T10:09:25 | 2023-07-22T10:09:25 | 107,368,788 | 0 | 0 | null | false | 2017-10-18T06:50:33 | 2017-10-18T06:42:18 | 2017-10-18T06:42:18 | 2017-10-18T06:50:32 | 0 | 0 | 0 | 0 | null | null | null | from django.contrib import admin
from models import TypeInfo,GoodsInfo
class TypeInfoAdmin(admin.ModelAdmin):
list_display=['id','ttitle']
class GoodsInfoAdmin(admin.ModelAdmin):
list_display=['id','gtitle','gpic','gprice','gunit','gbrief','gtype']
# Register your models here.
admin.site.register(TypeInfo,Ty... | UTF-8 | Python | false | false | 379 | py | 224 | admin.py | 195 | 0.770449 | 0.770449 | 0 | 12 | 30.583333 | 73 |
Gerry1208/Level4Project | 11,175,504,932,569 | 9d4d9bdb5f71851207208a5c40c2669bcf59bfd0 | e70bf2c1ed6b0f36efcd2777cf4f3e6bb295d9f7 | /names/views.py | 1acfc619e17093e5a7681486502fd423db0cd08e | [] | no_license | https://github.com/Gerry1208/Level4Project | 40e8cb851b14c0d94fc8ab42183942ffd76bcabf | dce8eef5ad7b0ff3e084d94e6ed20d84c86de994 | refs/heads/master | 2021-01-10T17:31:21.633574 | 2016-03-19T20:43:06 | 2016-03-19T20:43:06 | 43,259,166 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from lib2to3.fixes.fix_input import context
from names.forms import UserForm, UserProfileForm, cardForm, groupsForm, picForm, bulkUpload
from django.shortcuts import render, render_to_response, redirect
from django.contrib.auth import authenticate, login, logout, update_session_auth_hash
from django.contrib.auth.forms ... | UTF-8 | Python | false | false | 10,910 | py | 22 | views.py | 9 | 0.646013 | 0.642713 | 0 | 316 | 33.525316 | 169 |
CUrW-SL/curw_wrf_data_pusher | 18,485,539,258,464 | 23657255fa6eaae9984e15956eb352ec626026fb | 5faa1998e4eba7f8e1da09b1a469ef268292b4f7 | /to_be_deprecated/wrf_data_pusher_v1.py | ebc79efdae6ec15ff93b95eb5a368d9666a30e26 | [] | no_license | https://github.com/CUrW-SL/curw_wrf_data_pusher | 01285a0a49abe4cafac847be9d26acf2f8303e47 | 9d4838d2726944abe421b42a6998ee3fc24d1930 | refs/heads/master | 2022-07-10T15:56:26.164786 | 2020-10-27T11:19:07 | 2020-10-27T11:19:07 | 203,581,602 | 1 | 0 | null | false | 2022-06-22T02:55:25 | 2019-08-21T12:40:36 | 2020-10-27T11:19:53 | 2022-06-22T02:55:25 | 281 | 0 | 0 | 4 | Python | false | false | #!/home/uwcc-admin/curw_wrf_data_pusher/venv/bin/python3
# before new directory convention
import traceback
from netCDF4 import Dataset
import numpy as np
import os
import json
from datetime import datetime, timedelta
import time
import paramiko
import multiprocessing as mp
import sys
import getopt
from db_adapter.bas... | UTF-8 | Python | false | false | 20,263 | py | 16 | wrf_data_pusher_v1.py | 13 | 0.557913 | 0.547056 | 0 | 555 | 35.508108 | 128 |
vijaykumarnegi/advanced-netops | 12,704,513,284,415 | 20083054028d2907cc188ef29d0ce3e0097d9d2b | 5a0fb10f4aabfb40a927929adf9035e48eb7346e | /Config Builder/bgp_underlay_trainer.py | 0965fbf962af507bc897dc80070aa05747222905 | [] | no_license | https://github.com/vijaykumarnegi/advanced-netops | 45fee9dfd736a56d105b50a28acf1f6df703e484 | 68d1408e447f0bb91b64cf69fa75062d87215c47 | refs/heads/main | 2023-06-17T10:52:40.589585 | 2021-07-15T13:18:40 | 2021-07-15T13:18:40 | 385,142,362 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import yaml
from cvplibrary import CVPGlobalVariables, GlobalVariableNames
labels = CVPGlobalVariables.getValue(GlobalVariableNames.CVP_ALL_LABELS)
hostname = [x for x in labels if 'hostname' in x][0]
hostname = hostname.split(':', 1)
hostname = hostname[1]
underlay_yaml = """
global:
DC1:
spine_ASN: 65100... | UTF-8 | Python | false | false | 13,811 | py | 6 | bgp_underlay_trainer.py | 3 | 0.582289 | 0.401274 | 0 | 638 | 20.647335 | 150 |
NKrvavica/Advent-of-Code-2020 | 13,950,053,792,742 | 1c5804c24b30b56cc463acecc76a5e8b1c5d7454 | ee68b7bc8e7b72b5a61a73fd8795f5783f0d4f62 | /Day08/day08.py | 72e16bf13afc2b68140c141cc552510f5ed62b3c | [] | no_license | https://github.com/NKrvavica/Advent-of-Code-2020 | e6faa4f7526be272daf01405bbf3aa35909e4ad2 | 1aa8c7aa4840f06490814e5418fc44b85140eac8 | refs/heads/main | 2023-02-04T21:11:43.130227 | 2020-12-26T15:51:53 | 2020-12-26T15:51:53 | 317,564,094 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 8 09:19:05 2020
@author: Nino
"""
import pandas as pd
# load data
program = pd.read_csv('input.txt', header=None, sep=' ',
names=['op', 'arg'])
program_len = len(program)
# run the program
def run_program(program, program_len):
idx, accumulat... | UTF-8 | Python | false | false | 1,926 | py | 33 | day08.py | 31 | 0.555036 | 0.544133 | 0 | 72 | 25.75 | 79 |
adehad/klustaviewa | 18,073,222,399,174 | ab08d0e9a10d34bee47cba595a325885aeebb220 | 158a5effa9247ec13845c2da9c734c9f22fc01b8 | /postinstall.py | cb20d6befb57872f728c3d6dbdb7e31fd34a89e5 | [
"BSD-3-Clause"
] | permissive | https://github.com/adehad/klustaviewa | 5b334de15664c463b8754e0dcf22dbaf4ed13d1f | d1cf3ddb341f5cc6273771a20f40e1f4cc9b31d1 | refs/heads/master | 2021-01-01T16:31:54.856613 | 2017-03-27T13:00:49 | 2017-03-27T13:00:49 | 97,851,396 | 0 | 0 | null | true | 2017-07-20T15:30:08 | 2017-07-20T15:30:08 | 2017-02-04T02:50:34 | 2017-03-27T13:00:50 | 3,406 | 0 | 0 | 0 | null | null | null | import os
import sys
import shutil
import klustaviewa
DESKTOP_FOLDER = get_special_folder_path("CSIDL_DESKTOPDIRECTORY")
STARTMENU_FOLDER = get_special_folder_path("CSIDL_STARTMENU")
NAME = 'KlustaViewa.lnk'
if sys.argv[1] == '-install':
create_shortcut(
os.path.join(sys.prefix, 'pythonw.exe'), # pro... | UTF-8 | Python | false | false | 1,284 | py | 103 | postinstall.py | 75 | 0.669003 | 0.667445 | 0 | 33 | 37.606061 | 92 |
hgq521/autest | 5,239,860,103,137 | bb200692a15c49680096f0f8d6785d84be3d0108 | c216445777dc269418550382d455fef9137083b1 | /mytime/mytime.py | f3f10014187775e8d74cc20e495708f687d2f15a | [] | no_license | https://github.com/hgq521/autest | eb801ea1adc2a7573ecddd1a5b457ff50a2bf86f | 15fe62c9bd99b36cd68a736290b08804d13c8e64 | refs/heads/master | 2020-08-02T17:59:13.632616 | 2019-11-16T10:40:27 | 2019-11-16T10:40:27 | 211,456,341 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import time
def day_hours():
return 24*60*60
def hour_sec():
return 3600
def today_hour(hour): #24小时制
sec = time.time()
return (sec - sec % day_hours() + hour * hour_sec() - 8 * hour_sec())
def hour(sec):
tmp = time.localtime(sec)
#return sec - tmp.tm_min * 60 - tmp.tm_sec
return sec - sec % hour_sec()
def... | UTF-8 | Python | false | false | 531 | py | 21 | mytime.py | 20 | 0.622857 | 0.590476 | 0 | 28 | 17.714286 | 70 |
DipendraDLS/Python_OOP | 5,059,471,494,830 | de6366a9695f9f980158d8d577482dd923683c32 | 3b50c16eeb4b4cca7bc75cba6d36a21e4e288a07 | /01. Class_and_Object/02. Simple_Class_&_Object.py | 7408be6fcf9ddbf855c902b59fd85476b5152c0c | [] | no_license | https://github.com/DipendraDLS/Python_OOP | 1349dbb1f87eb16c18059c774b9e7b34b04edc29 | b253801270530cdda8c70f1ae445ebc1cc52694e | refs/heads/master | 2023-06-24T05:29:32.066673 | 2021-07-17T06:26:59 | 2021-07-17T06:26:59 | 380,717,255 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
# Creating the Class named 'Mobile'
class Mobile:
# Initializing the member variable. This is self calling constructor whenever the object is created this constructor is self called.
def __init__(self):
self.model = 'Redmi Note 5 Pro'
# Defining the member function/method
def sh... | UTF-8 | Python | false | false | 661 | py | 67 | 02. Simple_Class_&_Object.py | 66 | 0.636914 | 0.629349 | 0 | 16 | 40.3125 | 136 |
jrsk23/BridgeIT | 6,837,587,948,557 | edc26c135ad820522807d5e5063cf632e7c7ad92 | 6fa180d9e0c2073dec7604e07c97332b4c4de7f9 | /backend/geotabs/migrations/0001_initial.py | ed497c89c1be39b6ecf1ffaa3f07e4eb86c83e84 | [] | no_license | https://github.com/jrsk23/BridgeIT | 1347c355953668d899ec267e7fe1c72c666395ec | 021bd482690a8de89b2cfbcd91a9bd393ef67124 | refs/heads/main | 2023-03-15T04:41:18.802417 | 2021-01-12T03:35:56 | 2021-01-12T03:35:56 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 3.0 on 2021-01-09 05:26
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Hazardous',
fields=[
('id', models.TextField(... | UTF-8 | Python | false | false | 844 | py | 73 | 0001_initial.py | 70 | 0.541469 | 0.511848 | 0 | 28 | 29.142857 | 89 |
AlexHerry/studyPython | 7,258,494,731,119 | 7e8c306e607326e1d933c17154166f1f620b6072 | 97659ab2a9a6aed6f6393d3578c1f457dc99cd2d | /equ.py | 0c7899dfe8699753ca679883bf50ff642ba56312 | [] | no_license | https://github.com/AlexHerry/studyPython | 4a58fb616821ed2fc10718d43b1b703b59dd071b | 0121e1876d2e68b55af043d67aa4a78362f128a4 | refs/heads/master | 2020-07-05T12:47:07.847008 | 2019-08-16T03:22:55 | 2019-08-16T03:22:55 | 202,651,856 | 0 | 0 | null | false | 2019-11-01T02:42:35 | 2019-08-16T03:27:40 | 2019-08-16T03:39:24 | 2019-11-01T02:42:26 | 16 | 0 | 0 | 1 | Python | false | false | import math
def quadratic(a, b, c):
x = b ** 2 - (4 * a * c)
if x < 0:
return '不存在实数根'
else:
x1 = (-b + math.sqrt(x)) / (2 * a)
x2 = (-b - math.sqrt(x)) / (2 * a)
return x1, x2
print('quadratic(2, 3, 1) =', quadratic(2, 3, 1))
print('quadratic(1, 3, -4) =', quadratic(1, 3,... | UTF-8 | Python | false | false | 502 | py | 15 | equ.py | 15 | 0.463519 | 0.388412 | 0 | 21 | 21.238095 | 51 |
TaeHun-Lee/Summareader_web | 9,809,705,343,475 | 3bec961e6d85e2e918d5ab7b981b191fbec7f3f7 | 28b82f9b6914a1b9de044764972498b141b0c718 | /board/summareader.py | ced6e16b48b85b8f53b702376bd6fc8e4e628fe1 | [] | no_license | https://github.com/TaeHun-Lee/Summareader_web | e3a1bb948e7ebf51e133a73ecddae5d77f318f47 | d9f356c03056632cd18264d4046b370747b66d45 | refs/heads/master | 2023-01-07T05:56:45.591961 | 2019-11-12T10:39:07 | 2019-11-12T10:39:07 | 221,191,343 | 0 | 0 | null | false | 2023-01-04T13:07:16 | 2019-11-12T10:29:51 | 2019-11-12T10:39:20 | 2023-01-04T13:07:16 | 7,276 | 0 | 0 | 24 | Python | false | false | # -*- coding: utf-8 -*-
from re import split
from networkx import Graph
from networkx import pagerank
from itertools import combinations
import urllib.request as urlopen
import ssl
import bs4
import re
from textrankr import TextRank
from collections import Counter
from konlpy.tag import Okt
from newspaper import Artic... | UTF-8 | Python | false | false | 3,497 | py | 7 | summareader.py | 5 | 0.557907 | 0.549328 | 0 | 122 | 27.672131 | 120 |
mtonjes/usercode | 335,007,471,917 | eefe5bcc6735a518d3ca285aefd32781da169842 | d3d5e6cf3899b1d81df4f9f40770cbf1cbe74806 | /ZDC2015src/crab/crabConfig.py | d48bdbca9d09d7c1ce6d26a68a04cb9a4ad60fd4 | [] | no_license | https://github.com/mtonjes/usercode | 1b17653c99733e5c56f1b5bdebb6d2749cbbc4af | 860d284cb3aed1aea5360d125b0ff8adde20fd00 | refs/heads/master | 2021-01-25T08:37:14.880819 | 2016-11-23T18:20:01 | 2016-11-23T18:20:01 | 13,154,805 | 0 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | from CRABClient.UserUtilities import config
config = config()
#config.General.requestName = 'HIRun2015-PromptReco-v1_YYYYMMDD'
config.General.transferLogs = True
config.JobType.pluginName = 'Analysis'
# Name of the CMSSW configuration file
config.JobType.psetName = 'RunForwardAnalyzer_PbPb2015_all.py'
config.Data.in... | UTF-8 | Python | false | false | 1,051 | py | 169 | crabConfig.py | 40 | 0.80019 | 0.750714 | 0 | 26 | 39.461538 | 91 |
pooyahrtn/django-qarzi | 14,766,097,583,426 | 0ab6c111db39aeddf6776f41e9fe203eaf912266 | ea51ccb739b8ababca5f266b7fc1d84d2547f342 | /api/feeds/views.py | 14a87f5e197b5e819205c47b57fa9b668c9cce66 | [] | no_license | https://github.com/pooyahrtn/django-qarzi | c43f44724cb86014a72ba6ec6c0ddf6aeee5a5c3 | f8fc3ec748c082a14c00a2606aeff4565b336bc1 | refs/heads/master | 2022-12-15T06:49:49.707226 | 2020-03-15T20:47:49 | 2020-03-15T20:47:49 | 196,826,021 | 0 | 0 | null | false | 2022-12-08T05:55:47 | 2019-07-14T11:02:46 | 2020-03-15T20:48:06 | 2022-12-08T05:55:47 | 31,784 | 0 | 0 | 10 | Python | false | false | from rest_framework import mixins, viewsets, generics
from rest_framework.permissions import IsAuthenticatedOrReadOnly, AllowAny, IsAuthenticated
from . import permissions
from . import models
from . import serializers
from utils.CursorPagination import CreatedTimeCursorPagination
class BaseFeedViewSet(viewsets.Gener... | UTF-8 | Python | false | false | 2,270 | py | 51 | views.py | 48 | 0.727753 | 0.727753 | 0 | 66 | 33.348485 | 91 |
ojongchul/studyPython | 5,368,709,166,844 | c0dd899f4f4e5e79e84cc5534d6be08025197f6e | 952238cd68953a4c9c5edb37f47f845afaf84495 | /string.py | 6aba582fda6100aba711a25f5af6fd2f518e971d | [] | no_license | https://github.com/ojongchul/studyPython | 67d4a673e9620a3731408c5aa360bd1eb117bcaf | b419f584f794243286f43163e3cd9a7e34af6611 | refs/heads/master | 2021-03-29T17:57:24.200288 | 2020-03-18T21:03:05 | 2020-03-18T21:03:05 | 247,973,402 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | print ("help me")
print ('help me' + " " + 'dohnald')
print ("help 'me'")
print ('help "me"')
a = 'help me'
print (a)
print (len(a))
print (a[0])
print (a[1])
print (a[2])
print ((a+'\n')*3)
print ('dohnald says ' + a )
print ('{} says {}.'.format( 'dohnald', a))
print (' {name} says {says}'.format(says=a, name='dohn... | UTF-8 | Python | false | false | 327 | py | 7 | string.py | 7 | 0.553517 | 0.541284 | 0 | 16 | 19.4375 | 60 |
etano/simpimc | 11,467,562,722,287 | d6cae8e284e1306ff03120f3e54a47859ffd80ee | f43e0439caac176e8c843677b142bdb2e94f0aea | /inputs/h-atom/gen_h_pa_david.py | 1f7b636c6270bfed8c1ec982a1436047ac4e2145 | [] | no_license | https://github.com/etano/simpimc | 78034b3caf7905231ef537df3c92035f93928b04 | 943fb6e3ec399b1f7b9ea075a447806f4522a6fd | refs/heads/master | 2020-06-01T07:36:03.448913 | 2017-01-03T18:16:07 | 2017-01-03T18:16:07 | 1,943,220 | 9 | 2 | null | false | 2016-02-25T12:49:30 | 2011-06-23T18:13:08 | 2015-12-20T06:11:14 | 2016-02-25T12:49:30 | 4,444 | 2 | 3 | 0 | C++ | null | null | import sys, os
from math import sqrt
# Exact location of PAGEN scripts
PAGEN_HOME = '../../scripts/pagen'
sys.path.append(PAGEN_HOME)
from GenPairAction import *
# Units
units = {'energy':'H', 'distance':'A'}
# Constants
tau = 0.125 # Time step
L = 10.0 # Box size
D = 3 # physical dimension
# Species
e = {'type': '... | UTF-8 | Python | false | false | 2,383 | py | 79 | gen_h_pa_david.py | 64 | 0.669744 | 0.634494 | 0 | 63 | 36.825397 | 151 |
JakeRivett31/Year9DesignPythonJR | 824,633,753,087 | 08e768aed11a1425368cbcfb8d78296c5a15161c | 4d35172e68c74fba6eb5ff8b39f03cbd3e1ed975 | /J1_2012.py | 0d06018da0a4a49f1a04b33fa08b991df518b034 | [] | no_license | https://github.com/JakeRivett31/Year9DesignPythonJR | 9c8c4ffc2b5ad583315de89b18fc801ad964a76f | 6117dca73a411912165dea2ab317d946276c81e1 | refs/heads/master | 2020-07-20T07:50:43.375899 | 2020-06-04T13:06:45 | 2020-06-04T13:06:45 | 206,602,109 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import math
limit = float(input("Enter the speed limit: "))
speed = float(input("Enter the recorded speed of the car: "))
fine = 0
overspeedlimit = speed - limit
if 0 < overspeedlimit <= 20:
fine = 100
if 20 < overspeedlimit <= 30:
fine = 270
if overspeedlimit > 30:
fine = 500
if speed > limit:
print("You are... | UTF-8 | Python | false | false | 450 | py | 47 | J1_2012.py | 42 | 0.671111 | 0.628889 | 0 | 22 | 19.181818 | 61 |
Monu7053/monu-chaurasiya | 14,113,262,560,720 | 8a539f69761961887f16a4714b71867c05bcb2f0 | bf8894eaa66a701de1707101125bd37c63145160 | /dis2.py | 35075a633b3571633a0adefe60434840fdeaf686 | [] | no_license | https://github.com/Monu7053/monu-chaurasiya | 227de44ac500d2e4a8404d674abc48061ace033d | e2f3eaec664938da94b8565d4c58485865b04693 | refs/heads/master | 2023-05-11T15:51:05.138423 | 2023-05-04T03:45:23 | 2023-05-04T03:45:23 | 111,294,520 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import matplotlib.pyplot as plt
import numpy as np
fig, (ax1, ax2) = plt.subplots(1,2)
fig.suptitle("Density of States")
y = np.zeros(101)
x = np.arange(0,101,1)
x0 = (x[0]+x[-1])/2
for i in range(0,len(y)):
if x[i] == x0:
y[i] = 1
ax1.plot(x,y)
ax1.set_ylabel(r"$\frac{G(\nu)}{N_Af}$")
ax1.set_xlab... | UTF-8 | Python | false | false | 616 | py | 13 | dis2.py | 13 | 0.587662 | 0.530844 | 0 | 26 | 21.769231 | 47 |
zxwqxtu/python | 7,516,192,800,929 | 585a4d9faccc69cfd97f40564d851961bdd36055 | 4611b2a17c2e5f619c4fb45d5bdc26acb66aa080 | /socket/test.py | 4b9ce02432a64c8838fdaefca30ed090fd340eed | [] | no_license | https://github.com/zxwqxtu/python | 9ee992905dc98e5f2fb67e4adba0c762a2cc3753 | b79a410c19f00c9ffe5f0d9db2d3577912edf487 | refs/heads/master | 2021-01-15T16:53:28.292715 | 2015-04-03T03:22:31 | 2015-04-03T03:22:31 | 32,973,175 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import socket
print socket.getaddrinfo('www.xrschzs.com', 80)
print socket.gethostbyname('www.baidu.com')
print socket.gethostname()
print socket.gethostbyaddr('61.135.169.125')
| UTF-8 | Python | false | false | 179 | py | 32 | test.py | 29 | 0.787709 | 0.715084 | 0 | 6 | 28.833333 | 47 |
Tardo/TeeMo | 2,980,707,327,247 | 421b4a0262942d58769bc144e08bee5119a5fed5 | c65fa81f4d2a265fc77c079d544710209d798ce8 | /scripts/cmd5.py | b22ed16ebc2ddad45beb546616deb6efc9b545ef | [
"LicenseRef-scancode-other-permissive",
"Zlib",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | https://github.com/Tardo/TeeMo | 5db9228cc1716b0bae3067139469012331a85c5c | eb78fe9bcd6f23f22177633fe73ce3aa0157f115 | refs/heads/master | 2017-12-05T03:49:31.573323 | 2017-06-25T18:11:06 | 2017-06-25T18:11:06 | 95,375,906 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #TeeMo Force Hash Version
hash = "626fce9a778df4d4"
print('#define GAME_NETVERSION_HASH "%s"' % hash)
| UTF-8 | Python | false | false | 102 | py | 10 | cmd5.py | 9 | 0.735294 | 0.647059 | 0 | 3 | 33 | 49 |
Zojax/zojax.banner | 2,482,491,145,901 | d3d66b90cf59467a3c3621520738ce547b9fee73 | 9558973f6948adff8da23d4e03e7b294915be671 | /src/zojax/banner/portlets/interfaces.py | 04244eb123bdcf5a73f0994cddd6ca6ea562f2e0 | [
"ZPL-2.1"
] | permissive | https://github.com/Zojax/zojax.banner | 1da4c051139bd566822d0344e192d899f957c9a5 | 6789e9b25b311e72fe9cfa2f601fff4b9a68ee76 | refs/heads/master | 2021-01-20T12:00:30.110442 | 2011-12-16T07:10:40 | 2011-12-16T07:10:40 | 2,035,345 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | ##############################################################################
#
# Copyright (c) 2008 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | UTF-8 | Python | false | false | 1,600 | py | 24 | interfaces.py | 9 | 0.585 | 0.58125 | 0 | 53 | 29.188679 | 78 |
QingqingSun-Bao/GitResp2 | 3,770,981,324,602 | b8d430ec44bb4279f40fae36a07a61def210d879 | 9316f0d31de1bdfdbffaf86156b9bbc4f2c30d56 | /zexmp/yang-jj.py | 6487c620274bebb2bc888e83940dfb1469e60445 | [] | no_license | https://github.com/QingqingSun-Bao/GitResp2 | 405372ddc7f08a90d60874c08ac05bb3f35cf15e | 39c2d8538475fa64110734384f37f6e922b6d07b | refs/heads/master | 2023-06-26T00:19:32.951231 | 2021-07-08T01:15:43 | 2021-07-08T01:15:43 | 349,898,472 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# @Time:2021/3/99:15
# @File:yang-jj.py
# @Software:PyCharm
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from scipy.interpolate import make_interp_spline
df=pd.read_excel("C://Users/97899/Desktop/N/YJJ/生物量和多样性的抵抗力.xls")
print(df)
gb=df.groupby("年份")
Y=[]
for g in gb:
... | UTF-8 | Python | false | false | 891 | py | 132 | yang-jj.py | 132 | 0.676286 | 0.5734 | 0 | 30 | 25.6 | 76 |
OliynykPro/invbase | 11,278,584,155,412 | 20af652fc40b6ccd0542289feaf6d60ce766291e | c6ba862fc3e7d39ea35c792e57b5e305d143a513 | /investorsmanager/models.py | 9eaea61396aab9ac6c314270b1a7a158cc3d6f87 | [] | no_license | https://github.com/OliynykPro/invbase | 835aa85613349376d535910a860d686781e8242b | b3ebbc1151e37a516c25aa22ad64050bbdbb89f5 | refs/heads/master | 2023-02-22T12:00:28.631999 | 2021-01-27T00:00:08 | 2021-01-27T00:00:08 | 329,417,287 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.db import models
from django.core.validators import MaxValueValidator, MinValueValidator
from django.contrib.auth.models import User
# Create your models here.
class InteractionStatus(models.Model):
interaction_status = models.CharField(max_length=100, help_text='Enter interaction status (Need to check... | UTF-8 | Python | false | false | 1,632 | py | 23 | models.py | 18 | 0.769608 | 0.746324 | 0 | 26 | 61.730769 | 171 |
psai-github/MagnitudoWebsite2011_CreatedByPranavSai2011 | 15,547,781,619,531 | 26b0f4b07de9a624f82e7babed84a288412512c8 | 9d8f981bc0b7d06acbd4e884f50f6eea12f8e140 | /buying.py | 8d2b9eec467192af234e20f4e8ebe9494f78ceea | [] | no_license | https://github.com/psai-github/MagnitudoWebsite2011_CreatedByPranavSai2011 | 2db333ea545967fac04d46e0f6c555748ffa8cb8 | f0c2540f9b696b305c59c1ba4fb1bab097e746d7 | refs/heads/main | 2023-07-03T22:33:17.282627 | 2022-08-24T15:24:21 | 2022-08-24T15:24:21 | 370,544,846 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from tkinter import *
import smtplib
import time
from validate_email import validate_email
import base64
def error():
screen1=Toplevel(screen)
screen1.geometry('150x90')
screen1.title('Warning')
warning=Label(screen1,text='All fields need to be valid',bg="red",fg="yellow").pack()
def err... | UTF-8 | Python | false | false | 3,379 | py | 24 | buying.py | 4 | 0.593667 | 0.548979 | 0 | 131 | 23.793893 | 148 |
matsub/sandbox | 8,693,013,827,490 | 164516c3594e1e6cae5ad830c3c0fe90454feb0c | 226071f65572b9b53585a21972844fcfce86c7fa | /python/basic_tips/mydict.py | d91702f4cd5122e1d9ed609d37743a54d7d45ff7 | [] | no_license | https://github.com/matsub/sandbox | 3ded3399e6151ecfb3e290d5fb17e16a446935ae | dc016c54d092ac068e031a8df60eafb8fb85376f | refs/heads/master | 2023-01-28T20:18:34.443130 | 2020-02-10T08:31:13 | 2020-02-11T07:46:48 | 28,806,809 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | dic = {
'a': 10,
'b': 'test',
'c': 0.9,
}
class MyDict(dict):
def __init__(self, dic):
super().__init__(dic)
for k, v in self.items():
self.__setattr__(k, v)
def echo(self):
return dir(self)
d = MyDict(dic)
print(d, d.echo())
print('=== checking the id of valu... | UTF-8 | Python | false | false | 508 | py | 184 | mydict.py | 129 | 0.507874 | 0.5 | 0 | 26 | 18.538462 | 43 |
jimcadden/ebbrt-contrib | 8,220,567,406,314 | 4e865023acc4e1f1f934a462ba1a12306f371cc3 | f5bab0feb337491bb9d6c1a7658818238f87f690 | /scripts/osdi14/colstats.py | c6ade06e7e5fafdae572e3abe7068013a2ddf4d4 | [] | no_license | https://github.com/jimcadden/ebbrt-contrib | 0cb18653a396e59bc894556f394537de0f82b57a | 76a1fe0c96a7fccc4958ad6cc5916d7923b6f7a4 | refs/heads/master | 2021-09-20T03:37:38.826638 | 2018-08-02T23:00:38 | 2018-08-02T23:00:38 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
''' Input format must be as follows:
# Trial 123
12 33 442.5 595 3343.55
5 13 42.33 54495 3243.44
12 31 442.5 595 3343.55
- Comment identifies the start of a data set
- Script can support and number of tab-seperated columns
Values are assumed to be floats
- Statistics are... | UTF-8 | Python | false | false | 1,986 | py | 78 | colstats.py | 60 | 0.583082 | 0.55136 | 0 | 66 | 29.090909 | 89 |
MushinMiscellanea/Music-ally | 13,297,218,749,311 | 59e1892418c7ec3a7be796fe56f059a0dc5762ce | 22441229d7b333247503f4324c6bc78be8bbad7c | /test.py | 1ec48483cf6a812b6fdeaee84a44fdb371df5a34 | [
"MIT"
] | permissive | https://github.com/MushinMiscellanea/Music-ally | 9495695eda15da1c7bcc06e41c63594229ca7ea1 | f1bd8df3e43317213b149bda255445d6ac3a2c09 | refs/heads/master | 2022-04-12T04:11:18.062849 | 2020-02-25T01:46:17 | 2020-02-25T01:46:17 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import csv
import pandas as pd
import matplotlib as mt
pitch = pd.read_csv('/Users/spencerfinkel/repos/musically/pitch_freq.csv')
pitch = pitch.rename(columns={'Unnamed: 2': 'Octive'})
p = (list(pitch))
freq = pitch['Frequency (Hz)']
freq.()
'''#frequency of all notes in a scale
for i in range(13):
freq = 16.... | UTF-8 | Python | false | false | 1,522 | py | 7 | test.py | 5 | 0.571616 | 0.525624 | 0 | 70 | 20.742857 | 75 |
reed-only/flask_app | 14,654,428,445,340 | 9451549ad8c44d67ae1b756c405c625e99e6017c | 55c928d6ee5374f0f21d1e925fc7993c24e59bee | /flask_app/__init__.py | 8fb2a50782f1364cab65cb1f2b6f565479610771 | [
"MIT"
] | permissive | https://github.com/reed-only/flask_app | 2ee717a55fa6a41a893bea246eaa099cf7d3fd50 | 52010732478d4faa9318a7d76cbf2802671e8378 | refs/heads/master | 2021-09-21T18:04:42.917137 | 2018-08-30T04:35:28 | 2018-08-30T04:35:28 | 114,563,711 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Flask app
All models and resources should be registered here
"""
from flask_app.extensions import app, db
from flask_app import models, resources
| UTF-8 | Python | false | false | 152 | py | 23 | __init__.py | 15 | 0.769737 | 0.769737 | 0 | 8 | 18 | 50 |
PyLadiesDC/opportunities | 17,145,509,469,910 | 85a23562c62945eccb29f905c5be79a5db9a2850 | f74faa679e67b1776ece16bb4aa295b897acdfcf | /diversity_webpage/opportunities_app/migrations/0003_auto_20150910_1611.py | 4777f362611e2e70f02fa83aaf116d798b781549 | [
"Apache-2.0"
] | permissive | https://github.com/PyLadiesDC/opportunities | d904587d6b22b6906d5515e653974d04f7144a31 | e2a7653d3f285a98075ba3fc8cad31bd6cf5c8d0 | refs/heads/master | 2020-12-02T17:34:02.860074 | 2015-09-14T14:58:42 | 2015-09-14T14:58:42 | 38,165,390 | 1 | 0 | null | false | 2015-09-14T00:17:56 | 2015-06-27T15:43:19 | 2015-09-12T17:57:02 | 2015-09-14T00:17:56 | 10,256 | 0 | 0 | 0 | Python | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('opportunities_app', '0002_post_content'),
]
operations = [
migrations.... | UTF-8 | Python | false | false | 1,423 | py | 19 | 0003_auto_20150910_1611.py | 11 | 0.567814 | 0.543219 | 0 | 46 | 29.934783 | 125 |
JetBrains/intellij-community | 1,142,461,341,902 | 83baf0728981f728df1290f8c5dd2117a1413ed8 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/codeInsight/mlcompletion/scopeFileDontConsiderFunctionBodies.py | 37a84a129d4aa24dad330ed70cd5a65f7d5208dc | [
"Apache-2.0"
] | permissive | https://github.com/JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | false | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | 2023-09-12T03:37:30 | 2023-09-12T06:46:46 | 4,523,919 | 15,754 | 4,972 | 237 | null | false | false | def some_fun(some_param):
some_var_1 = 22
some_var_2 = 23
some_var_1 = 22
some_var_2 = 23
SOME_VAR_3 = 24
print(<caret>)
def some_fun_2(some_param):
some_var_1 = 22
some_var_2 = 23 | UTF-8 | Python | false | false | 190 | py | 127,182 | scopeFileDontConsiderFunctionBodies.py | 70,394 | 0.626316 | 0.510526 | 0 | 12 | 14.916667 | 27 |
P79N6A/WeCloud | 5,248,450,055,608 | d9e2fcfaed5103980c4c2c69fe5bdbc041de00e7 | 4fb524755fb8997a8cc845917e6d5194ed737672 | /platform/bin/http_status.py | a747f1666b2ba00319789aa6b43f9a475715a969 | [] | no_license | https://github.com/P79N6A/WeCloud | 75b0d53f2e72fb9762ec43977927f23d87e88e8a | 7836382e7a47c0b6f24de1813527130e051af97f | refs/heads/master | 2020-07-14T16:35:29.678985 | 2019-08-30T09:42:05 | 2019-08-30T09:42:05 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
#-*- coding:utf-8 -*-
__author__ = 'iambocai'
import urllib2
import requests
import json
import time
import socket
import os
import re
import telnetlib
import sys
import commands
def main():
today = time.strftime("%Y.%m.%d", time.gmtime())
url = 'http://elk-es-6.cluster.koolearn.com/ngin... | UTF-8 | Python | false | false | 4,382 | py | 93 | http_status.py | 87 | 0.463943 | 0.438841 | 0 | 153 | 27.633987 | 140 |
avdhesh9316/PythonGit | 18,210,661,335,723 | e89b1e1a9017eb9d98ef56b17193da87d6a0aecf | d02e57bdfa831cb53c6173b9ffa3588f603b1797 | /program32.py | efc9468e7eda0b9730bd6e727632325414255f69 | [] | no_license | https://github.com/avdhesh9316/PythonGit | 1406c6c4148a50ea8ec8acc6f8d38655470165ce | 64f5d6485c158183153f32c3419a9d6b45d8fda0 | refs/heads/master | 2021-05-07T18:15:31.611011 | 2017-10-29T18:45:03 | 2017-10-29T18:45:03 | 108,761,308 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #! /usr/bin/python3
from sys import stdout
list1 = [4, 5, 1, 6, 78]
list2 = [9, 15, 53, 82, 7]
list3 = [10, 12, 16, 18]
print('Length of List1 : {}'.format(len(list1)))
print('Length of List2 : {}'.format(len(list2)))
print('Length of List3 : {}'.format(len(list3)))
min1 = max1 = 0
min2 = max2 = 0
min3 = max3 = 0
for... | UTF-8 | Python | false | false | 1,702 | py | 37 | program32.py | 33 | 0.60282 | 0.521152 | 0 | 67 | 24.402985 | 106 |
akhramshaik/Machine-Learning | 16,277,926,088,682 | bfe5c847a395ebc57e42be3cb921f1bd7db9abaa | 44895b2af5051557d44ea573ef93d0266c87d242 | /My Notes/US - Dimentionality Reduction/PCA.py | 4c331770949b48a1dd18d09273014b6bdfa04008 | [] | no_license | https://github.com/akhramshaik/Machine-Learning | a5a4a1c720e8159332ece8a9dfba1b5033d22eda | eefa23262701167be6142d30f81183228da343e8 | refs/heads/master | 2020-09-17T00:32:32.428413 | 2020-01-19T15:24:16 | 2020-01-19T15:24:16 | 223,933,162 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
path = 'C:/Users/akhram/Desktop/AIML/Machine Learning/Utils'
sys.path.append(path)
import common_utils as utils
import pca_utils as putils
import tsne_utils as tutils
import classification_utils as cutils
import pandas as pd
import numpy as np
from sklearn import decomposition
#pca effect on linearly relate... | UTF-8 | Python | false | false | 2,129 | py | 14 | PCA.py | 10 | 0.752466 | 0.726163 | 0 | 62 | 33.33871 | 147 |
ttcool/league_matches | 10,840,497,457,958 | b0e147ce17cbaf12fd4cb3c0812012aae719c0d1 | 2ca3c1374a188782b05f4283914ef309d429ca2a | /import_mongo.py | c9a751bf2c24223e94831e5864c89c1e88363f9d | [] | no_license | https://github.com/ttcool/league_matches | be520c7129d2ff6f15effa6e4be0c872f3ebcaaf | 3b5660e1fc99c96eb16765f99ef9370170a01838 | refs/heads/master | 2021-01-20T04:42:25.092166 | 2020-10-19T03:48:48 | 2020-10-19T03:48:48 | 41,991,677 | 9 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import json
import pymongo
con = pymongo.Connection('localhost',port=27017)
matches = con.db.matches
match = json.load(open('match.json'))
for i in match:
matches.save(i)
| UTF-8 | Python | false | false | 177 | py | 14 | import_mongo.py | 6 | 0.728814 | 0.700565 | 0 | 7 | 24 | 48 |
mlanden/Useful-Code-Snippits | 17,257,178,607,667 | 7d71ab173ef751924dc2748972edb75f4b13ce65 | 4fa081ed8f01386885591745ef8aa0bd47f60cf7 | /classification/utils.py | 77dc10a2e1913160034ee7229fc8ac1aa14cec36 | [] | no_license | https://github.com/mlanden/Useful-Code-Snippits | 3a8a401356609e7caff1bfd546acf53bec4fce7d | d3fe3be7baf875003defc0001a0a38ddd846b42b | refs/heads/master | 2020-03-20T22:07:29.378780 | 2018-12-29T20:07:37 | 2018-12-29T20:07:37 | 137,780,455 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import matplotlib.pyplot as plt
def vectorize_data(data, dimension = 10000):
vectors = np.zeros((len(data), dimension))
for i, sample in enumerate(data):
vectors[i, sample] = 1
return vectors
def graph_train_history(history):
import matplotlib.pyplot as plt
history_dict... | UTF-8 | Python | false | false | 916 | py | 12 | utils.py | 10 | 0.66048 | 0.651747 | 0 | 28 | 31.75 | 69 |
TheOneTest/Manage | 11,184,094,874,092 | e9841af435765491f5e0a561c50c65a51672ec77 | 2925b7c26be1c4f407dc7ca3fa5f185faae5b91a | /Interface/interface_project/main.py | ffbc714911c108000b3d2dda50a12dc22e8bb7da | [] | no_license | https://github.com/TheOneTest/Manage | 06429848973c99ed9d77b015e7d5e53477aabd78 | 7f73aebb4401d29408928a75bbff379d78e55ae0 | refs/heads/master | 2021-01-22T12:17:12.724366 | 2017-10-23T07:55:41 | 2017-10-23T07:55:41 | 102,346,083 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'shouke'
import datetime
import json
import time
import configparser
import os.path
from globalpkg.log import logger
from globalpkg.globalpy import testdb
from globalpkg.globalpy import mytestlink
from globalpkg.globalpy import testcase_report_tb
from global... | UTF-8 | Python | false | false | 12,989 | py | 64 | main.py | 47 | 0.538369 | 0.533127 | 0 | 267 | 42.558052 | 120 |
Serjeel-Ranjan-911/CSES-Solution | 3,977,139,736,577 | 85099a36f03f52693b1735b3714cfd68d93e0068 | 09269ba53ccd65b562712dbaad48b27dd173a835 | /Introductory Problem/Two Knights/sol.py | fa808d2bc6b01433242dea58c7266b64624d5cb3 | [] | no_license | https://github.com/Serjeel-Ranjan-911/CSES-Solution | 85f6b88e55a8586f672c6d0db810a13422404684 | 3117b37766c035b6dababd4d6b8055321d8e1b37 | refs/heads/main | 2023-09-04T23:03:42.588457 | 2021-11-25T10:07:25 | 2021-11-25T10:07:25 | 404,083,112 | 7 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | n = int(input())
for k in range(1,n+1):
print(k*k*(k*k-1)//2 - 4*(k-1)*(k-2)) | UTF-8 | Python | false | false | 82 | py | 220 | sol.py | 121 | 0.47561 | 0.390244 | 0 | 4 | 19.75 | 41 |
imsardine/learning | 15,977,278,363,609 | 6e3ed7dac21cab595c08eb4005b6ad681e5238bd | b43c6c03eea348d68d6582c3594760bbe0ecaa08 | /gitlab/tests/test_projects.py | 5974390eecf83e66fea1ccf592b043330888fc5f | [
"MIT"
] | permissive | https://github.com/imsardine/learning | 1b41a13a4c71c8d9cdd8bd4ba264a3407f8e05f5 | 925841ddd93d60c740a62e12d9f57ef15b6e0a20 | refs/heads/master | 2022-12-22T18:23:24.764273 | 2020-02-21T01:35:40 | 2020-02-21T01:35:40 | 24,145,674 | 0 | 0 | MIT | false | 2022-12-14T20:43:28 | 2014-09-17T13:24:37 | 2020-02-21T01:35:54 | 2022-12-14T20:43:25 | 2,751 | 0 | 0 | 15 | Python | false | false | def test_projects(gitlab):
projects = gitlab.get('/projects')
anyproj = projects[0]
assert anyproj['ssh_url_to_repo'].startswith('git@')
assert anyproj['http_url_to_repo'].startswith('https://') | UTF-8 | Python | false | false | 211 | py | 313 | test_projects.py | 218 | 0.668246 | 0.663507 | 0 | 6 | 34.333333 | 61 |
xiaoting610/lab-program | 2,173,253,477,449 | 0df4e4c1f83ab7696b2f23484aca628e361e1948 | 74204883e72167eeedefc6b407c61f25b49ba07c | /imagej.script/find.trakem2.neurons_.py | c3a78803dc09a0cbd1ffaf3c3010293d0fcae7bd | [] | no_license | https://github.com/xiaoting610/lab-program | d2bb6b81b043e2b39ed1cb9c44199d98e60f85cb | 2a1e9a31776b1dbe02fd33690a0223c194552536 | refs/heads/master | 2021-01-07T18:48:42.608245 | 2015-09-08T15:35:21 | 2015-09-08T15:35:21 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # For output a list of neurons in currently active TrakEM2 project
# with the same sequence as seen in project tab
# Change output filename at the bottom
#
# author Bangyu Zhou, 2013 Dec 10
from ini.trakem2.display import AreaList, Display, AreaTree, Connector
import csv
from jarray import array
def getNodeXYZ(nd,... | UTF-8 | Python | false | false | 2,426 | py | 92 | find.trakem2.neurons_.py | 46 | 0.637675 | 0.628195 | 0 | 70 | 33.657143 | 97 |
SirGnip/arcade_screensaver_framework | 3,195,455,694,802 | 77b6453265e710a91e77691e0ff45951a9e8ca7f | 2bbf88d60c6100238a004579fcbf514ed61eaf0e | /src/arcade_screensaver_framework/screensaver_framework.py | 157e4f3e8cf4c1e26465e83a0c003c50df92e39c | [] | no_license | https://github.com/SirGnip/arcade_screensaver_framework | 842a8096866170b0413c7154352a8a62bdff0041 | e48bab7908b42221e249f3f5c80f8b12a333d27d | refs/heads/master | 2023-01-02T06:14:00.015972 | 2020-10-26T21:58:20 | 2020-10-26T21:58:20 | 296,334,077 | 4 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
import ctypes
from pathlib import Path
import pyglet
_all_windows = []
# Event handlers that can be applied to instances of Arcade.Window and Pyglet.window.Window
def _on_keyboard_press(self, symbol, modifiers):
_close_all_windows()
def _on_mouse_press(self, x, y, button, modifiers):
_close_all_... | UTF-8 | Python | false | false | 4,050 | py | 9 | screensaver_framework.py | 6 | 0.686914 | 0.681235 | 0 | 98 | 40.326531 | 203 |
rueckstiess/mtools | 6,614,249,649,121 | d9bbcc602f15c01decaa8ec32cd070f3246ab8ab | 3cf8454257ce93926a39bd379a2f0f7a61a860e8 | /mtools/mlogfilter/filters/mask_filter.py | bd6935690462df9fee110a4c63b75e3f14b3ad31 | [
"Apache-2.0"
] | permissive | https://github.com/rueckstiess/mtools | 12e6e73a06934bd49dc53623162fd70f6f676905 | 370e598527949077859dbe4a9fcfe0b9c9f2d1d2 | refs/heads/develop | 2023-08-25T02:16:05.206326 | 2023-05-02T04:49:18 | 2023-05-02T05:57:19 | 5,806,020 | 1,654 | 396 | Apache-2.0 | false | 2023-09-04T03:59:53 | 2012-09-14T07:28:16 | 2023-09-02T16:17:10 | 2023-08-08T11:34:54 | 21,521 | 1,824 | 379 | 74 | Python | false | false | from datetime import timedelta
from .datetime_filter import DateTimeFilter
from mtools.util.cmdlinetool import InputSourceAction
class MaskFilter(DateTimeFilter):
"""
MaskFilter class.
This filter takes an argument `--mask <LOGFILE>` and another optional
argument `--mask-size <SECS>`. It will read <... | UTF-8 | Python | false | false | 6,464 | py | 94 | mask_filter.py | 67 | 0.539913 | 0.536665 | 0 | 170 | 37.023529 | 79 |
rafanthx13/ultimate_ds | 11,510,512,390,761 | 8c3e70cca66aa354932e09e7bc34a12df6e558aa | af2c959f928f9a5167cc0a4c3a9529403f7d4768 | /Courses/Old/udemy-scrapy-web-scraping/src/my_code/coursera/coursera/spiders/edx_login.py | ebc365f3a8b8e52e2848464e1a118d17b4cc562d | [] | no_license | https://github.com/rafanthx13/ultimate_ds | 14acc99de6d8cecec0286896a290d4dc2b9efa3b | 6ee7ae47c97b2b97139a916736d1c1fc9703ece6 | refs/heads/master | 2020-07-03T00:11:48.036639 | 2020-07-02T02:51:48 | 2020-07-02T02:51:48 | 201,718,909 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import scrapy
from courses import settings
class EdxLoginSpider(scrapy.Spider):
name = 'edx_login'
allowed_domains = ['courses.edx.org', 'edx.org']
start_urls = [
'https://courses.edx.org/login?next=/dashboard'
]
def parse(self, response):
# dadosque serao pass... | UTF-8 | Python | false | false | 2,033 | py | 110 | edx_login.py | 15 | 0.589277 | 0.585342 | 0 | 52 | 37.134615 | 104 |
czofficial/Price-Prediction-of-Mercedes-Benz-Used-Cars | 13,477,607,389,229 | 9b5dc556d946ade4a14db9ac32321069b334a97f | 63b8836f9fbce5ea98da6844d3c46186e34d24ac | /train.py | b894c1e4975406a134d87db8e6f7b7b343297b58 | [] | no_license | https://github.com/czofficial/Price-Prediction-of-Mercedes-Benz-Used-Cars | 0989a0266d19b81a67268e4c1dececcb677127ec | f254062d593878594b38a321ff84499b2e605e3a | refs/heads/master | 2023-04-08T19:17:17.384080 | 2021-04-20T14:40:53 | 2021-04-20T14:40:53 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from azureml.data.dataset_factory import TabularDatasetFactory
from azureml.core.run import Run
from sklearn.ensemble import RandomForestRegressor
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import OneHotEncoder
from sklearn.metrics import mean_absolute_error
import argparse
import... | UTF-8 | Python | false | false | 2,332 | py | 4 | train.py | 1 | 0.64494 | 0.631647 | 0 | 76 | 29.697368 | 173 |
sarcDV/tmp-PMC-scripts | 15,762,530,015,498 | aaf8ab241c32080e6ab8749ad73fd05da4d1a252 | 9216cf0a1122302ed3f61fe005f0d25c266e402d | /statistics-logs-PMC/plot_peaks_patterns_PMC.py | 1194bb361f2404f404d75838181a32908a35d397 | [] | no_license | https://github.com/sarcDV/tmp-PMC-scripts | 0725df1fb538507b184c83a6e9c71db72dcc3b51 | c57296b4abd8c442eee7351f1be7288ae658fc5c | refs/heads/main | 2023-03-29T11:49:45.410576 | 2021-04-11T17:36:50 | 2021-04-11T17:36:50 | 327,372,301 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import glob, os
import math
import scipy.io as sio
import numpy as np
import matplotlib.pyplot as plt
from scipy.signal import find_peaks
from scipy.signal import medfilt
from skimage.feature.peak import peak_local_max
import scipy.stats as stats
def data_loader(input_off, input_on):
time_x = np.squeeze(np.array(inp... | UTF-8 | Python | false | false | 8,219 | py | 28 | plot_peaks_patterns_PMC.py | 28 | 0.615038 | 0.596788 | 0 | 240 | 33.241667 | 117 |
QuackenbushLab/grand | 9,457,517,996,480 | 41432bae4b6223d3d5389038f5a25021907e399d | be0c6e2071945edcb47ee4f3fadc1f4629a2c6aa | /grandapp/migrations/0173_sendto.py | 02391a0438d68803b7214420c58170325b9e51b0 | [] | no_license | https://github.com/QuackenbushLab/grand | 9719a395e6a30951c3ffdef1eccdb5e422da737c | f23031d1f240550d25c2842b4af0aae08c653bae | refs/heads/master | 2023-08-10T09:58:58.381264 | 2023-07-25T18:23:26 | 2023-07-25T18:23:26 | 201,113,575 | 5 | 2 | null | false | 2022-06-24T19:11:29 | 2019-08-07T19:18:58 | 2022-04-19T17:09:53 | 2022-06-24T19:11:20 | 32,819 | 3 | 1 | 2 | JavaScript | false | false | # Generated by Django 3.0.2 on 2021-04-20 04:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('grandapp', '0172_auto_20210420_0159'),
]
operations = [
migrations.CreateModel(
name='Sendto',
fields=[
... | UTF-8 | Python | false | false | 573 | py | 278 | 0173_sendto.py | 233 | 0.5637 | 0.506108 | 0 | 21 | 26.285714 | 114 |
RKrahl/photo-tools | 3,685,081,978,000 | a6c93d720c358a85794ca1b7d9adca76c0e66435 | 6f84a3a2d0aac9b83d4edf2d1f4b901cf83fdeab | /tests/test_05_createupdate.py | 11530d8483671e3bae07d91b33fd15741db415bf | [
"Apache-2.0"
] | permissive | https://github.com/RKrahl/photo-tools | b025d50b8353ed499ae4c8f8f242aeeb65cb5cae | 732bad94d2c68f934f48ce3a4a5a25a01a3974c2 | refs/heads/master | 2022-08-31T03:09:29.768681 | 2020-05-03T12:06:07 | 2020-05-03T12:06:07 | 48,946,666 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Add images to an index.
"""
import filecmp
import shutil
import pytest
import photo.index
from conftest import tmpdir, gettestdata
testimgs = [
"dsc_4623.jpg", "dsc_4664.jpg", "dsc_4831.jpg",
"dsc_5126.jpg", "dsc_5167.jpg"
]
testimgfiles = [ gettestdata(i) for i in testimgs ]
refindex = gettestdata("in... | UTF-8 | Python | false | false | 797 | py | 45 | test_05_createupdate.py | 36 | 0.678795 | 0.651192 | 0 | 28 | 27.464286 | 78 |
Stalinho/Machine-Learning-Web-App-Predicts-Survival-On-The-Titanic | 11,622,181,523,244 | 02ea1e47d02e288c420ce098de927618ec9f5a8d | 6bb3219b1d78cb765186c9467c8820b32e8f94c6 | /titanic.py | 5870a7027f7f6f2b0ec886f4d14c08b9ceaffcfc | [] | no_license | https://github.com/Stalinho/Machine-Learning-Web-App-Predicts-Survival-On-The-Titanic | 9d2660d655df90ff7dbcf0f1deee15a34699942c | 2d35bab7807d2f143a13a07428b7191c9d911328 | refs/heads/main | 2023-01-21T07:31:20.248888 | 2022-09-08T08:17:32 | 2022-09-08T08:17:32 | 318,293,326 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat May 14 18:54:50 2022
@author: hp
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.models import load_model
from sklearn.model_selection im... | UTF-8 | Python | false | false | 3,414 | py | 2 | titanic.py | 1 | 0.639426 | 0.618336 | 0 | 116 | 27.431034 | 94 |
MercenariesEngineering/conan_recipes | 6,133,213,311,817 | b906758d73b3f022ae10e54b2f0062c74c28d562 | 7032fd0d1652cc1bec1bff053af4f486a5704cd5 | /old/partio_1.7.4/conanfile.py | b5e278b67b8ee6a98b33b7dd2ee5548d57307e45 | [] | no_license | https://github.com/MercenariesEngineering/conan_recipes | c8f11ddb3bd3eee048dfd476cdba1ef84b85af5e | 514007facbd1777799d17d041fc34dffef61eff8 | refs/heads/master | 2023-07-09T08:10:35.941112 | 2023-04-19T13:36:38 | 2023-04-19T13:36:38 | 169,575,224 | 7 | 1 | null | false | 2023-04-19T14:11:35 | 2019-02-07T13:23:02 | 2023-04-19T13:36:13 | 2023-04-19T14:11:34 | 9,804 | 4 | 0 | 1 | C++ | false | false | from conans import ConanFile, CMake, tools
import os
# mkdir partio_1.7.4
# cd partio_1.7.4/
# conan new partio/1.7.4 --bare
# write this content to conanfile.py
# conan create partio/1.7.4@pierousseau/stable
class partioConan(ConanFile):
name = "partio"
version_base = "1.7"
version_patch = "4"
vers... | UTF-8 | Python | false | false | 2,159 | py | 187 | conanfile.py | 135 | 0.614636 | 0.600278 | 0 | 58 | 36.224138 | 88 |
nsssayom/traffic-semi-auto | 2,800,318,680,822 | 4de551ccc04a37ffb658caeeee2bcb342a98f6bf | 1541e71f1cade91cdcd946b35541ae598a1a95c8 | /src/control.py | 194d70236a30d0ff311e68f7b814bc068ffd1ad9 | [] | no_license | https://github.com/nsssayom/traffic-semi-auto | 49169dbaeda73c718a3e7cdb1e85c4d5588ff91c | 5b8a44be304d1e976cd108ba016500c14b298008 | refs/heads/master | 2020-07-09T04:46:52.412075 | 2020-01-12T18:14:26 | 2020-01-12T18:14:26 | 203,882,652 | 4 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:adf6d06867c1a70cb0b00dea233bcecc9375ea4e77d07b01606345ac65b18b66
size 81
| UTF-8 | Python | false | false | 127 | py | 225 | control.py | 139 | 0.88189 | 0.535433 | 0 | 3 | 41.333333 | 75 |
YashashreeKolhe/InformationSecurity | 10,479,720,210,528 | 2ef8eea2e4cafbf5af2ca5efdbc79a5dd65e8a99 | d7ca99cc3eec8ad2afc7ba567ff603c2af4e5e97 | /111508041_Assignment1/decryption.py | be3b8974d00e04d1e26b2eab218089ccd13eb6f3 | [] | no_license | https://github.com/YashashreeKolhe/InformationSecurity | 0fb968771232677ba826ff0a5d7dfcbbc728fd8f | 89677a39b68cfaf5848c72d2a52e859b1931bd96 | refs/heads/master | 2020-03-28T19:43:10.539962 | 2018-12-08T04:48:38 | 2018-12-08T04:48:38 | 149,002,976 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
def main():
fw = open(sys.argv[2], 'w')
fr = open(sys.argv[1], 'r')
for line in fr:
flag = 0
for char in line:
if flag == 0:
decryption_line = char
flag = 1
first_char = ord(char)%10
else:... | UTF-8 | Python | false | false | 581 | py | 17 | decryption.py | 12 | 0.44062 | 0.425129 | 0 | 21 | 26.666667 | 83 |
aryankh1409/Misc-Programs | 15,393,162,790,926 | 30f4aa1eb6888296f278e215a2983d0b2fe74be0 | 47a9e194427015dcd9d05abf8ba93bb37c257aa6 | /Beautiful Soup/navigable_string.py | c1d809385617a92fe87e9821a05810bbbd02021a | [
"MIT"
] | permissive | https://github.com/aryankh1409/Misc-Programs | 617ec53231deddf7517738a7649127935a976535 | d50a1689a89d331d2567486a5dd22fb2311a0d87 | refs/heads/master | 2023-05-27T20:58:54.876607 | 2021-03-21T14:09:29 | 2021-03-21T14:09:29 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from bs4 import BeautifulSoup
soup = BeautifulSoup('<p class="nice">Helloooo</p>', 'lxml')
print(soup.prettify())
ptag = soup.find_all('p')[0]
# print(ptag.string) # Navigable String
# print(type(ptag.string))
# # ptag.string = "Meeee"
# # OR
# ptag.string.replace_with('Hilo')
# print(ptag)
u = str(ptag.string)
pri... | UTF-8 | Python | false | false | 347 | py | 397 | navigable_string.py | 275 | 0.67147 | 0.665706 | 0 | 15 | 22.2 | 60 |
hadasAizik/Closure | 6,734,508,737,913 | a521f3e186634d4ac719557545c2035d087e5099 | 3d01306b88458b484021119cbb8566271c0b6033 | /Closure_Project/Parser/OfflineParser.py | 5ee68d9cb5fd72290293d96dbcd464e9e32b3088 | [
"MIT"
] | permissive | https://github.com/hadasAizik/Closure | f5c6abba53487baaa932a344e4b110945cdffedb | a69357733c2026e9560b4b95acc0e4988743a00f | refs/heads/master | 2023-06-09T14:33:20.316741 | 2021-06-14T16:54:18 | 2021-06-14T16:54:18 | 377,073,663 | 0 | 0 | MIT | true | 2021-06-15T07:24:35 | 2021-06-15T07:24:34 | 2021-06-14T16:54:21 | 2021-06-14T19:48:26 | 23,594 | 0 | 0 | 0 | null | false | false | import os
from typing import List, Tuple, Dict
from tqdm import tqdm
import utils
from CornerStoneParser import fetch_insert_corner_stones_into_db
from MoonParser import parse_course_detail_page, NothingToParseException, parse_moon, \
NoTrackParsedException
LOGGED_NOT_PARSED = 'bad.txt'
LOGGED_PARSED = 'good.txt... | UTF-8 | Python | false | false | 5,367 | py | 4 | OfflineParser.py | 3 | 0.634246 | 0.630334 | 0 | 172 | 30.197674 | 92 |
jimbo95-beep/initio | 8,203,387,542,724 | 3c95cf0f67778a85f4d2288d5ac450aa00f8d1db | e5efe81304ab765594b2a88e336a3bd8f67abbe4 | /test/testspeed.py | 98196765c1ba8aa886f2607df712decb9430a5d3 | [
"MIT"
] | permissive | https://github.com/jimbo95-beep/initio | c4778fd077360b3770d02c1145ed091a27286308 | f5a9d64044d60e8fe0f3f30e91d90464c0cf2e7f | refs/heads/master | 2021-05-27T23:30:30.883099 | 2014-11-09T07:19:21 | 2014-11-09T07:19:21 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #PiRoCon - 4Tronix Initio - Motor Controller
#Martin O'Hanlon
#www.stuffaboutcode.com
import sys
import time
import RPi.GPIO as GPIO
#motor pins
MOTORAFWRDPIN = 19
MOTORABWRDPIN = 21
MOTORBFWRDPIN = 24
MOTORBBWRDPIN = 26
#encoder pins
MOTORAENCODERPIN = 7
MOTORBENCODERPIN = 11
#motor speed equivalents... | UTF-8 | Python | false | false | 5,603 | py | 11 | testspeed.py | 10 | 0.582724 | 0.569695 | 0 | 205 | 25.282927 | 99 |
gwacter/faucet | 249,108,129,214 | 42f7511dc8b93318e5d1f3498e34bbbed7780419 | 2bc5ea1754e1d885f5ae63785d211617d85f7d69 | /src/ryu_faucet/org/onfsdn/faucet/dp.py | 57cb13c4b3e059abfc3d59f85e1792e04e757816 | [
"Apache-2.0"
] | permissive | https://github.com/gwacter/faucet | 55dec95308787f40689cd9604ffca84e9211719e | f21b3469e4fd4dae1a3b7b06fde0f09baad8210a | refs/heads/master | 2021-01-15T08:48:50.505601 | 2016-10-12T04:43:49 | 2016-10-12T04:43:49 | 55,377,278 | 1 | 0 | null | true | 2016-04-04T01:03:32 | 2016-04-04T01:03:32 | 2016-04-02T06:30:21 | 2016-03-28T20:26:54 | 2,741 | 0 | 0 | 0 | null | null | null | # Copyright (C) 2015 Brad Cowie, Christopher Lorier and Joe Stringer.
# Copyright (C) 2015 Research and Education Advanced Network New Zealand Ltd.
#
# 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 Licens... | UTF-8 | Python | false | false | 10,567 | py | 29 | dp.py | 17 | 0.537239 | 0.531655 | 0 | 284 | 36.207746 | 81 |
ivanelisandro/PythonStudiesJobAgency | 2,336,462,232,601 | e26b0cf29b123841c5e209abae69b61090a4a189 | c615384fbf8b10ce3cdefc008509454460def72f | /Topics/The pprint module/A better format/main.py | a28987b7d5c5d7bf9fc46af80955123d75e438be | [] | no_license | https://github.com/ivanelisandro/PythonStudiesJobAgency | 07e1981601c5314dc48239cc220db9849468b946 | 28f6ff4d1fc2592f4dd740e3aa68af0bac105f5d | refs/heads/main | 2023-08-25T19:32:10.306188 | 2021-10-22T01:34:21 | 2021-10-22T01:34:21 | 391,798,794 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from pprint import pprint
dogs = [
{
"name": "Max",
"breed": "Yorkshire",
"age": 1,
"owners": ["Susan, Camila, Paul"],
},
{
"name": "Duke",
"breed": "Bulldog",
"age": 4,
"owners": ["Thomas, David, Lucia"],
},
]
pprint(dogs, indent=4, widt... | UTF-8 | Python | false | false | 326 | py | 336 | main.py | 91 | 0.435583 | 0.420245 | 0 | 18 | 17.111111 | 43 |
xglh/PyDev | 2,757,369,007,176 | dacf7cb7b1b38222e87d824e884d5fdb4b6b492b | dbc440817ef796bcc7e06248b50bcce17231cb36 | /PyDev/cdn/cdn_autotest/base/testCheck.py | 5d2a977ac479f311c2e9c979399e9649fe6c1cb9 | [] | no_license | https://github.com/xglh/PyDev | 64304a8372805cae2a533dd531920444cd7d001b | fb83b7d8e61465f338c9d250b86286dfb44af444 | refs/heads/master | 2018-10-16T18:13:58.051880 | 2018-09-15T13:53:15 | 2018-09-15T13:53:15 | 134,224,933 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # encoding: UTF-8
import re
ss = {
"apimonitor数据结构(#)":"",
"22(#)":"",
"33(#)":""
}
tt = {
"L1.ngx.accessLog.http_origin_host":"1228580",
"L1.tcpdump.to80.response.apimonitor数据结构":-1,
"L1.file.fileSize":"1228580",
"apimonitor数据结构":"122858hello",
"22":"1228580",
"33":"12285... | UTF-8 | Python | false | false | 8,211 | py | 179 | testCheck.py | 118 | 0.395249 | 0.379037 | 0 | 226 | 34.075221 | 109 |
natslins007/DefsAndSyns | 601,295,436,981 | 1ebab9187c5a0243cb8ffcba59c3aafef5f63070 | d25fe89863c9bb464350804bb99288cfa327427b | /defsandsyns_shell.py | 85491424dd7ed473e1a4586df50d49edc718be20 | [] | no_license | https://github.com/natslins007/DefsAndSyns | a1548d0c4ee3c99f6007b4305ebefe68d7b7cbaf | 90ca4c9857d883d0845b0fca2fd2119680c7249c | refs/heads/master | 2022-09-30T02:42:18.104706 | 2020-06-06T00:57:28 | 2020-06-06T00:57:28 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import dictionary
# main loop
dictionary.initialize()
while True:
s = input('dict: ')
if s == 'quit()':
dictionary.quit_browser()
break
parts = s.split(' ')
if len(parts) != 2:
print('invalid syntax\n')
continue
command = parts[0]
word = parts[1]
if ';' ... | UTF-8 | Python | false | false | 661 | py | 5 | defsandsyns_shell.py | 3 | 0.527988 | 0.518911 | 0 | 34 | 18.470588 | 52 |
savva-kotov/python-prog | 17,248,588,671,703 | 0c2c9da96c9f9d8d844922bac710d39570a9a430 | 1b7318c7606ef3131f5cc9698b7f0dd7292d846e | /3-7-5.py | afaac6bdc0bd0d6e32ec9c08408c06938ea86778 | [] | no_license | https://github.com/savva-kotov/python-prog | 0349e8c9f12737be663a8a7842972f2b69de5a13 | a9191f0ca13fd5c20c4dff099288576a88d98dc3 | refs/heads/master | 2021-02-23T17:01:45.805976 | 2020-03-10T19:24:09 | 2020-03-10T19:24:09 | 245,405,201 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Дан файл с таблицей в формате TSV с информацией о росте школьников разных классов.
Напишите программу, которая прочитает этот файл и подсчитает для каждого класса средний рост учащегося.
Файл состоит из набора строк, каждая из которых представляет собой три поля:
Класс Фамилия Рост
Класс обозначается только числом.... | UTF-8 | Python | false | false | 2,339 | py | 32 | 3-7-5.py | 32 | 0.708115 | 0.661649 | 0 | 56 | 26.285714 | 123 |
avoorhis/vamps-node.js | 16,638,703,315,075 | ee71a00354ec85804c6bba59018e9a3e48859d50 | eaa8e10b84dcd96db3495b6fa9d178a1696802b6 | /public/scripts/node_process_scripts/vamps_script_spingo_run.py | 0bdee4959c594e0c1c2e6e328dce8d606469af28 | [
"MIT"
] | permissive | https://github.com/avoorhis/vamps-node.js | ec783f10ecaca3be054c9ddd8171a50781d937a4 | 7071da6e569a669a06a6d21c23cc9c667ec49250 | refs/heads/master | 2022-07-16T13:09:15.620119 | 2021-08-09T12:52:20 | 2021-08-09T12:52:20 | 20,567,960 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
##!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011, Marine Biological Laboratory
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of th... | UTF-8 | Python | false | false | 4,795 | py | 402 | vamps_script_spingo_run.py | 180 | 0.565798 | 0.557456 | 0 | 135 | 34.496296 | 144 |
shenxuehao/A-C-language-novice | 6,674,379,187,652 | 9f7af24e405cb4d9c39f67c66e65f56d85cf7082 | 1f237c3fde884789a8ed82ee877620c45c7efa0a | /code_python/2020-12-30zhushi.py | a0f912a2cae7f46c2d6611f7d0739f38737ba809 | [] | no_license | https://github.com/shenxuehao/A-C-language-novice | 302cc708b78a31edd1a7870c35b1683692ca81d8 | af1a963d6e7857685f9ae3d846a286317c8a6763 | refs/heads/master | 2023-04-08T15:41:42.809758 | 2021-04-12T02:45:11 | 2021-04-12T02:45:11 | 303,631,938 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # 单行,输出hello world
print("hello world")
print("hello python")
"""
第一行注释
第二行注释
第三行注释
"""
'''
注释
注释
注释
''' | UTF-8 | Python | false | false | 158 | py | 229 | 2020-12-30zhushi.py | 80 | 0.622642 | 0.622642 | 0 | 15 | 6.133333 | 21 |
dadasko/projektRswta | 9,990,093,977,957 | 696cd8460017e5690ea3235fa670bdb2e89743ff | eff757313f89e21dd26fd007996104d3e7f00608 | /Mecze/migrations/0001_initial.py | 9e38aaa46f193d31e546d2890ffedaab4eb0777d | [] | no_license | https://github.com/dadasko/projektRswta | 47e123d43f2283f7b8c1a0179c4b2bfa67770cdd | 1b2337f82fecf113dfd604f24b78088fee888478 | refs/heads/master | 2016-08-11T14:06:06.323202 | 2016-01-18T21:29:26 | 2016-01-18T21:29:26 | 49,905,377 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Bramka',
fields=[
('id', models.AutoField(seria... | UTF-8 | Python | false | false | 4,846 | py | 29 | 0001_initial.py | 19 | 0.512381 | 0.509905 | 0 | 133 | 35.43609 | 114 |
aeroniero33/ddpg_scheduler | 16,020,228,052,578 | 8e6b015c6b9f3f397cbbf710c9da6085a416f0bf | e6b67e821cd22820520959e3d918cd875058b1bd | /ddpg/ddpg.py | 518a54d6f43116f4613c459b8add8e48cd437263 | [] | no_license | https://github.com/aeroniero33/ddpg_scheduler | 802637850a4a35be5db585bc83ff917f82f34b11 | 8356960814b333e7b678a84e1b076fc3bf6bb6e7 | refs/heads/master | 2022-11-27T13:31:09.171134 | 2020-08-08T09:59:53 | 2020-08-08T09:59:53 | 238,006,336 | 3 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import tensorflow as tf
import numpy as np
import gym
from replay_buffer import ReplayBuffer
from actor import ActorNetwork
from critic import CriticNetwork
from ou_noise import OUNoise
from simulation import IoT_Simulation
# Base learning rate for the Actor network
ACTOR_LEARNING_RATE = 0.00005
# Base learning rat... | UTF-8 | Python | false | false | 4,281 | py | 6 | ddpg.py | 4 | 0.498014 | 0.483065 | 0 | 120 | 34.666667 | 130 |
Mygithubtejas-nayak/Hospital_management_system | 2,774,548,878,381 | 0ad9820d75fb6e81242a3e6128a6a52d68581d80 | 6194dc16882de531bfddc5c8bd33bada47ac4497 | /Hospital/Hospital_crm/models.py | 2e6960a8c940334c5cb58491e2a86f0fdbc9f41f | [] | no_license | https://github.com/Mygithubtejas-nayak/Hospital_management_system | b322d378a1736715b00b3e2386024104074f7b6e | c06a03e08f87546b77ca94a960e897dfd7867311 | refs/heads/master | 2023-04-20T05:35:38.502091 | 2021-05-14T17:49:43 | 2021-05-14T17:49:43 | 367,440,017 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.db import models
from django.core.exceptions import ValidationError
from phone_field import PhoneField
from django.contrib.auth.models import User
# Create your models here.
class Patient(models.Model):
genderchoices = (
('male', 'Male'),
('female','Female'),
('other','Other'... | UTF-8 | Python | false | false | 3,855 | py | 3 | models.py | 3 | 0.644877 | 0.629572 | 0 | 116 | 32.241379 | 95 |
khalilelghoul01/loader | 5,385,888,998,983 | c244f305c4183b3dd6bdeacc359117a4d7b792b7 | b4bfad1257e3bb1667c61c824d1d488b4abf662a | /backdoor/start.py | 8100277de569593c72287bafb697623d71f3aa9f | [] | no_license | https://github.com/khalilelghoul01/loader | fe73a81af9759fa1031f00299b7b8f0c41ad0e4c | 34fdc97173705438cce8a9527e2bf6a35d3c35ee | refs/heads/master | 2020-05-16T04:42:02.557288 | 2019-04-22T13:08:02 | 2019-04-22T13:08:02 | 182,788,928 | 0 | 0 | null | false | 2021-04-01T20:28:57 | 2019-04-22T13:06:47 | 2019-04-22T13:08:04 | 2021-04-01T20:28:37 | 523 | 0 | 0 | 1 | Python | false | false | import logger1
import keyboard
logger1.logger3()
| UTF-8 | Python | false | false | 54 | py | 12 | start.py | 8 | 0.759259 | 0.703704 | 0 | 4 | 11.5 | 17 |
editorgit/station | 15,685,220,607,759 | 5ca77221ed735d97353ced4df6f3c34bca7e30b1 | 67f57c73809c05e422a66f039fc9a5a8f9e2da43 | /apps/content/admin.py | 83c89f18d26a3f6b12068ed4f93841265f4fd3b3 | [] | no_license | https://github.com/editorgit/station | 8b7377c11370234b79aaaa89eb0c15f39fd4629c | 0e330faf08d17e131cbdb998c9d874a6c41d27df | refs/heads/master | 2019-12-27T07:28:18.477926 | 2018-10-21T07:13:56 | 2018-10-21T07:13:56 | 92,037,002 | 0 | 0 | null | false | 2019-10-21T17:24:30 | 2017-05-22T09:40:24 | 2018-10-21T07:14:07 | 2019-10-21T17:24:29 | 1,958 | 0 | 0 | 1 | HTML | false | false | from django.contrib import admin
from django.utils.safestring import mark_safe
from django.conf import settings
from .models import Text
FILE_PATH = settings.BASE_DIR + '/texts/org/'
def generate_txtfiles(modeladmin, request, queryset):
texts = queryset.filter(translated_at__isnull=True) \
.... | UTF-8 | Python | false | false | 1,167 | py | 106 | admin.py | 101 | 0.622108 | 0.622108 | 0 | 40 | 28.175 | 72 |
karthikpappu/pyc_source | 1,340,029,834,916 | dab505e2143c4fb618762da8cf7e519ec4f95521 | 91fa095f423a3bf47eba7178a355aab3ca22cf7f | /pypi_install_script/tinycm_vim-0.1.4.tar/setup.py | 06492535e63a08ad004df0701cdf0490ac2eee2d | [] | no_license | https://github.com/karthikpappu/pyc_source | 0ff4d03e6d7f88c1aca7263cc294d3fa17145c9f | 739e7e73180f2c3da5fd25bd1304a3fecfff8d6e | refs/heads/master | 2023-02-04T11:27:19.098827 | 2020-12-27T04:51:17 | 2020-12-27T04:51:17 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
from setuptools import setup
setup(
name='tinycm_vim',
version='0.1.4',
packages=['tinycm_vim'],
url='https://github.com/MartijnBraam/TinyCM',
license='MIT',
author='Martijn Braam',
author_email='martijn@brixit.nl',
description='VI... | UTF-8 | Python | false | false | 742 | py | 114,545 | setup.py | 111,506 | 0.543127 | 0.53504 | 0 | 25 | 28.68 | 56 |
Kevinrobot34/atcoder | 1,975,684,999,986 | de7039a33c395fd6c7a12ce037185174f4d3e9ec | 54d2887e3c910f68366bd0aab3c692d54245e22a | /arc/arc014/c.py | 3ba05bcccab2b1b8a857985913abff62f86603f2 | [] | no_license | https://github.com/Kevinrobot34/atcoder | 7aec367fd2c6b589e9d583dae7b3c7520ce9fa12 | 482ea508f098f81e4f19522fe518dd22c781aca9 | refs/heads/master | 2022-07-10T23:44:45.290022 | 2022-06-29T11:30:26 | 2022-06-29T11:30:26 | 158,081,477 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from collections import Counter
n = int(input())
s = input()
ans = sum(v % 2 for v in Counter(s).values())
print(ans)
| UTF-8 | Python | false | false | 119 | py | 1,613 | c.py | 1,304 | 0.663866 | 0.655462 | 0 | 6 | 18.833333 | 45 |
jeongmin14/16-2nd-bearbnb-backend | 10,840,497,463,763 | 24ae14fb965ba343a1d1fcfd574e600fe8f37c52 | 0c50db4b1c2c2e21f73eeb81362a749b5c630609 | /users/models.py | 98d40497cb395d70fe5a461dcbba343cfaaf5bb0 | [] | no_license | https://github.com/jeongmin14/16-2nd-bearbnb-backend | 5c5d5c4f0d2bc9df033033f674da2cb6b4a7ec54 | a814c19c7a03eb5a36921d05fa75a371c2a35311 | refs/heads/main | 2023-04-01T08:35:36.746155 | 2021-03-30T08:18:12 | 2021-03-30T08:18:12 | 348,627,416 | 0 | 0 | null | true | 2021-03-30T08:18:12 | 2021-03-17T08:06:03 | 2021-03-17T08:06:04 | 2021-03-30T08:18:12 | 80 | 0 | 0 | 0 | null | false | false | from django.db import models
class User(models.Model):
country = models.ForeignKey('users.Country', on_delete = models.SET_NULL, null=True)
phone = models.CharField(max_length=20, null=True)
name = models.CharField(max_length=45)
password = models.CharField(max_length=1... | UTF-8 | Python | false | false | 1,336 | py | 16 | models.py | 13 | 0.651198 | 0.623503 | 0 | 41 | 31.585366 | 95 |
sgg10/cassie_backend | 2,645,699,865,501 | 954a43086c57b91ebe0ba4e856ff83b970ce71e8 | 0d122ee6615b53167f18b96f4fe16179135d5359 | /cassie/licenses/permissions/__init__.py | e0424dd402d0de2d85a494131bf17564bc65b8a6 | [] | no_license | https://github.com/sgg10/cassie_backend | 383e1d426fa337cee6de429a4d94dc62beb966e6 | 8acacb30470626e7f009cd1ca36ad8fe2d3b1286 | refs/heads/master | 2023-05-13T17:45:16.699646 | 2021-05-30T00:05:39 | 2021-05-30T00:05:39 | 372,090,778 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from .licenses import * | UTF-8 | Python | false | false | 23 | py | 45 | __init__.py | 43 | 0.782609 | 0.782609 | 0 | 1 | 23 | 23 |
Jankinnn/Relation-Classification-based-on-Feature-Selection | 14,233,521,651,817 | 8206e3d7930e581327b61e299350e812366db093 | 970a1aab7e900f0675a2b4e80a1363957c451fb5 | /chi_square_test.py | 1ec17ed339c156cfbeac5b20c05b6055f52e645d | [] | no_license | https://github.com/Jankinnn/Relation-Classification-based-on-Feature-Selection | 17d17aaba25038ea1cd675fa996f4dac6e1252e9 | a51e0556ac624044cb6318f804adf7223c08cd60 | refs/heads/master | 2020-03-24T20:25:19.349033 | 2018-07-31T07:20:15 | 2018-07-31T07:20:15 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #coding=utf-8
import sys
import numpy as np
reload(sys)
sys.setdefaultencoding('utf-8')
thre = int(sys.argv[1])
fr = open('../data/corpus_train.txt','r')
class_types = {}
class_types_num = 0
all_text = []
while True:
line = fr.readline()
if not line:
break
content = line.strip().split()
all_text.append(content)... | UTF-8 | Python | false | false | 2,062 | py | 6 | chi_square_test.py | 5 | 0.682347 | 0.671193 | 0 | 78 | 25.307692 | 240 |
vishalbelsare/creme | 13,408,887,908,432 | 3521d3af40b992e081f42b6b5d2e22c93adad3c1 | 199f9f936507a10f875902cd94876f6a77a170e5 | /creme/stats/mean.py | 42cd5b4fee65764321323f3243ee2be36adbf819 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | https://github.com/vishalbelsare/creme | 048a5cbadcda5e9213a2f305700d124206770e7e | 582926b42c487ffd05d687932c839dbd5adcb192 | refs/heads/master | 2020-04-21T09:38:06.402754 | 2019-02-06T16:07:22 | 2019-02-06T16:07:22 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from . import base
from . import count
class Mean(base.RunningStatistic):
"""Computes a running mean.
Attributes:
count (stats.Count)
mu (float): The current estimated mean.
"""
def __init__(self):
self.count = count.Count()
self.mu = 0
@property
def name(se... | UTF-8 | Python | false | false | 497 | py | 5 | mean.py | 4 | 0.555332 | 0.55332 | 0 | 27 | 17.407407 | 60 |
kort/kort-to-osm | 747,324,321,017 | 417337df05175fa30243c47dd1bfb3507d2cb55f | 0966f5916b78d2f18c7e0ae5b511ed4727545a6a | /kort2osm.py | 21c846be557fd40b5dd203b48074e1865ca895e3 | [
"MIT"
] | permissive | https://github.com/kort/kort-to-osm | 54d9a3f16aa1d91ab79f36d87f9f256205317c04 | aef7f91380da09c86160948445c4d584f7d7f884 | refs/heads/develop | 2020-12-24T15:40:20.752401 | 2015-07-07T05:56:24 | 2015-07-07T05:56:24 | 11,957,615 | 2 | 0 | null | false | 2015-07-07T05:56:24 | 2013-08-07T18:43:47 | 2014-05-20T16:22:02 | 2015-07-07T05:56:24 | 242 | 3 | 2 | 4 | Python | null | null | """
kort-to-osm
Usage:
kort2osm.py [-d] [-q] [-v] [-c COUNT]
kort2osm.py -h | --help
kort2osm.py --version
Options:
-h, --help Show this help message and exit.
-d, --dry Do not actually make changes, only a dry run
-q, --quiet Run quietly, without any output.
-v... | UTF-8 | Python | false | false | 1,855 | py | 10 | kort2osm.py | 6 | 0.59407 | 0.590836 | 0 | 76 | 23.407895 | 74 |
CorvustKodi/slurpee-server-docker | 15,779,709,870,003 | ab834ed927958556349114bbf29995f8ef9360d9 | 3b84b554a64594b69c6d942b7c59f46bd5615f5f | /app/search.py | 83f6e3af870687e7fb27b40d7d58cbf78a28592f | [] | no_license | https://github.com/CorvustKodi/slurpee-server-docker | cc7444d29856c8d3b185787b8928e440fbc418ce | 51afc815fec9fd011116faf7c0168ceeb805018e | refs/heads/master | 2023-05-12T09:43:59.298905 | 2022-03-21T15:51:27 | 2022-03-21T15:51:27 | 176,562,244 | 0 | 0 | null | false | 2023-05-01T20:33:27 | 2019-03-19T17:10:36 | 2022-03-21T14:55:40 | 2023-05-01T20:33:27 | 838 | 0 | 0 | 3 | Python | false | false | import sys
from torrent.scrape import scraper
from slurpee.utilities import settingsFromFile, settingsFromEnv
from slurpee.dataTypes import ShowDB
if __name__ == '__main__':
if len(sys.argv) > 1:
settings = settingsFromFile(sys.argv[1])
else:
settings = settingsFromEnv()
allshows = ShowDB(s... | UTF-8 | Python | false | false | 391 | py | 26 | search.py | 17 | 0.693095 | 0.685422 | 0 | 13 | 28.923077 | 63 |
dougvj/ODM2PythonAPI | 12,463,995,119,151 | e66e77871a7309137020b85dc3a753bb897db154 | 7aeb19a3a4dde82056e988e9e857ee835db778f0 | /Examples/Sample 1.1.py | 03b986eec4822de7d0dd5f28e5b3d098ad15ac4d | [
"BSD-3-Clause"
] | permissive | https://github.com/dougvj/ODM2PythonAPI | 12d06caf18aa42ad9f27db2c325d9e618060bbef | 9945421691555d22ac5802e241d76257a53fa324 | refs/heads/master | 2020-03-28T20:35:50.703143 | 2018-03-02T22:19:53 | 2018-03-02T22:19:53 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from __future__ import (absolute_import, division, print_function)
import sys
import os
from odm2api.ODMconnection import dbconnection
import pprint
from odm2api.ODM1_1_1.services import SeriesService
__author__ = 'stephanie'
this_file = os.path.realpath(__file__)
directory = os.path.dirname(this_file)
sys.path.inse... | UTF-8 | Python | false | false | 2,630 | py | 2 | Sample 1.1.py | 1 | 0.431939 | 0.419011 | 0 | 97 | 26.113402 | 94 |
JZY11/weiboSpider | 15,075,335,229,296 | a300f43155465d0f731d50502d9dd5f6f81ea778 | 2d40a51d3fe9d641cfa0757f338910484389b139 | /weiboSpider.py | 4fee3b7e446f570aa74162ba5919fd0ce902e932 | [] | no_license | https://github.com/JZY11/weiboSpider | 178ffe1888ed2215dbb83f0f1ee855d441ecd92f | 10341073c8314495bb63ab9b92a9b09cf5c61d64 | refs/heads/master | 2023-06-01T23:36:25.535559 | 2019-08-27T05:57:38 | 2019-08-27T05:57:38 | 202,484,138 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#@Time : 2019/8/15 14:40
#@Author: jzy
#@File : weiboSpider.py
import codecs
import csv
import os
import random
import re
import sys
import traceback
from collections import OrderedDict
from datetime import datetime,timedelta
from time import sleep
import requests
from l... | UTF-8 | Python | false | false | 10,830 | py | 1 | weiboSpider.py | 1 | 0.473507 | 0.463929 | 0 | 244 | 39.221311 | 145 |
mr-atharva-kulkarni/Algorithms-for-Sea-Route-Optimizaiton | 11,785,390,307,394 | abceba9c52a6980dcdc425db9274539d054e0fc2 | 89d6673dbb5c23648072f3cddac6a4e5c35457fd | /routeplanning/ReadingExcelFile.py | 8a95522c553aacedd327c484b3b3c4fd95457b41 | [
"MIT"
] | permissive | https://github.com/mr-atharva-kulkarni/Algorithms-for-Sea-Route-Optimizaiton | eefa260be0c6c65c3607af4da48511dbbe575798 | 48d90ad2445b60d2228ed0aac60e1acba773b345 | refs/heads/main | 2023-02-23T07:53:26.808342 | 2021-01-26T05:42:08 | 2021-01-26T05:42:08 | 308,237,932 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pandas as pd
def readLatLong(path):
df = pd.read_csv(path)
lat = df['Lat']
long = df['Long']
return lat, long
| UTF-8 | Python | false | false | 135 | py | 51 | ReadingExcelFile.py | 35 | 0.592593 | 0.592593 | 0 | 8 | 15.875 | 26 |
ericli0419/Transcrypt | 15,315,853,384,171 | a144351d940841b5bd5c67d27fdf6387cab9d084 | c73efc12a16cd0973c637a9cac2c143cdf87862f | /transcrypt/demos/turtle_demos/snowflake.py | 3574c72d7721d11c485ea29338e48a3939f644bd | [
"Apache-2.0"
] | permissive | https://github.com/ericli0419/Transcrypt | dff539e4565a8ed3125e59233431baa06488a54c | f2ca7ed8ac5f2ef43910548df5c70902b1a30dd4 | refs/heads/master | 2020-04-11T18:40:54.862595 | 2018-12-05T15:50:19 | 2018-12-05T15:50:19 | 162,007,582 | 1 | 0 | Apache-2.0 | true | 2018-12-16T14:11:02 | 2018-12-16T14:11:01 | 2018-12-16T14:11:01 | 2018-12-05T15:50:41 | 121,939 | 0 | 0 | 0 | null | false | null | from turtle import *
josh = Turtle ()
def draw (length):
if length > 9:
draw (length / 3)
josh.left (60)
draw (length / 3)
josh.right (120)
draw (length / 3)
josh.left (60)
draw (length / 3)
else:
josh.forward (length)
length = 150
josh.up ()
jo... | UTF-8 | Python | false | false | 492 | py | 260 | snowflake.py | 197 | 0.542683 | 0.49187 | 0 | 29 | 15.965517 | 29 |
eumsys/eum | 2,963,527,478,705 | 264b521669012148ca3f580f61fd3a1e9cbd29a8 | bf05d4fe1a66eb72c4d044ede15bbd66bd3f5605 | /tests/CAJA_1_Monterrey/cobroVoluntario.py | 229d9db6f2e5abcc581a3895dbde2cb1a65c0a54 | [] | no_license | https://github.com/eumsys/eum | 975789a11f0469a6e5b26244485ac24c1bcb5bcf | e37d1e7660b14ff6d0391c9688d3d1062baeebdc | refs/heads/master | 2021-11-24T09:18:03.971986 | 2021-11-12T18:27:04 | 2021-11-12T18:27:04 | 165,714,507 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
from PyQt4 import QtCore, QtGui, uic
# Cargar nuestro archivo .ui
form_class = uic.loadUiType("/home/pi/Documents/CAJA_1_Monterrey/Interfaces_Caja/tarifaVoluntaria.ui")[0]
class MyWindowClass(QtGui.QMainWindow, form_class):
def __init__(self, parent=None):
QtGui.QMainWindow.__init__(self, parent)
se... | UTF-8 | Python | false | false | 1,219 | py | 240 | cobroVoluntario.py | 134 | 0.653815 | 0.638228 | 0 | 40 | 29.475 | 199 |
dragonchain/dragonchain-sdk-python | 5,437,428,646,177 | 45896bac7a34ae529acaadd5dc856da89f83e4de | ef5e7f7d593e550c074d3dea469d6d3d43b6da60 | /dragonchain_sdk/async_helpers.py | 107dad3c230cf4df02b18492259a69aea81a91cf | [
"Apache-2.0"
] | permissive | https://github.com/dragonchain/dragonchain-sdk-python | d2806e6f8aaa9cf6d1d7d69fdd3ce97e7708b186 | 84606e5fb9ee85cc9ea69e35c189c63c7f9ea1a4 | refs/heads/master | 2021-08-08T12:06:08.486491 | 2020-02-05T20:08:12 | 2020-02-05T20:08:12 | 203,888,623 | 8 | 1 | Apache-2.0 | false | 2020-07-20T20:14:03 | 2019-08-22T23:31:59 | 2020-02-05T20:08:16 | 2020-07-20T20:10:53 | 386 | 7 | 0 | 1 | Python | false | false | # Copyright 2020 Dragonchain, Inc. or its affiliates. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by ... | UTF-8 | Python | false | false | 4,053 | py | 45 | async_helpers.py | 25 | 0.70491 | 0.700469 | 0 | 95 | 41.663158 | 135 |
UrbanoFonseca/abnormal_activations | 11,665,131,202,919 | 1bf0ff7a0b53c9f67cf5c5008b9708648547a802 | 72ea3b93cabdcf42acf256b5c7c067dd4e5950e9 | /abnormal_activations/abnormal_activations.py | ac1b2fc0a40615e5e15d95b8a74825e7610f6fba | [
"MIT"
] | permissive | https://github.com/UrbanoFonseca/abnormal_activations | f3066b9f8bf9db894c67367ca637b03bb69751bb | aaec68fd694a56785143779fd90c4fd4f0749769 | refs/heads/master | 2021-08-30T11:03:39.747066 | 2017-12-17T16:10:13 | 2017-12-17T16:10:13 | 109,316,784 | 0 | 0 | MIT | false | 2017-12-17T16:10:14 | 2017-11-02T20:42:34 | 2017-11-02T21:07:02 | 2017-12-17T16:10:14 | 11 | 0 | 0 | 0 | Python | false | null | import numpy as np
from keras import backend as K
class ActivationFunctions():
def alpha_linear(x, alpha=0.5):
# The linear function Y = A * X
return alpha * x
def step(x, threshold=0.0):
# The step function returns 0 for x < threshold
# and 1 otherwise.
return 1 if x > threshold else 0
def LeCunSigm... | UTF-8 | Python | false | false | 1,563 | py | 4 | abnormal_activations.py | 3 | 0.65515 | 0.623161 | 0 | 56 | 26.910714 | 114 |
archivesspace/api-training | 4,509,715,668,621 | a6cda1a8a6e62390dbbe2a473a63bcbd4e836a9d | 5d267dbd0c4daa7baeab82c5c494038bccc76dc3 | /getMARCfromOCLCandPOSTtoASpace.py | 63a2cb3d84dcd585204fc6fccea4fa615c9da974 | [
"MIT"
] | permissive | https://github.com/archivesspace/api-training | f132684b77e8f6a0166421fd34e49bf70954cda4 | 3aa088c1300cf4f950015d3c3c91a8e229ed41a9 | refs/heads/master | 2020-03-20T15:24:40.633892 | 2018-08-10T11:37:17 | 2018-08-10T11:37:17 | 137,512,373 | 7 | 3 | MIT | false | 2018-08-05T20:27:11 | 2018-06-15T16:56:51 | 2018-06-19T19:38:07 | 2018-08-05T20:25:24 | 26,208 | 1 | 1 | 1 | Python | false | null | import pathlib, authenticate, requests, json, glob, supersecrets, runtime, sys
print("Demo: you can use this simple script to download MARC records from OCLC. However, you will need an API key to authenticate. Once you have one, you can update the 'wskey' variable.")
# See: https://platform.worldcat.org/api-explorer/... | UTF-8 | Python | false | false | 2,132 | py | 27 | getMARCfromOCLCandPOSTtoASpace.py | 16 | 0.652439 | 0.615854 | 0 | 59 | 35.135593 | 196 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.