hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6ef7292ee095b344a1e27bdac06d5abb78f801f | 4,772 | py | Python | main.py | hollow-earth/handwritten-latex | 077ecc09edd94d9cda10700886c74bb93f0f6121 | [
"MIT"
] | null | null | null | main.py | hollow-earth/handwritten-latex | 077ecc09edd94d9cda10700886c74bb93f0f6121 | [
"MIT"
] | null | null | null | main.py | hollow-earth/handwritten-latex | 077ecc09edd94d9cda10700886c74bb93f0f6121 | [
"MIT"
] | null | null | null | import tkinter as tk
from tkinter.filedialog import askopenfilename
from tkinter import scrolledtext
from PIL import ImageTk,Image
import execute
filename = ""
processedFlag = False
root = tk.Tk()
root.title("Handwriting to LaTeX")
root.geometry("600x600")
root.resizable(False, False)
canvas = tk.Canvas(root, heigh... | 40.440678 | 132 | 0.67917 |
b6f0097f2059d2d9b097d5fd295d4ac7fbf4e17b | 1,067 | py | Python | game/spaceship/module.py | shycoldii/asteroids | 3e06e68dff6e5a4ec87444ae94bd40c77e31515b | [
"MIT"
] | null | null | null | game/spaceship/module.py | shycoldii/asteroids | 3e06e68dff6e5a4ec87444ae94bd40c77e31515b | [
"MIT"
] | null | null | null | game/spaceship/module.py | shycoldii/asteroids | 3e06e68dff6e5a4ec87444ae94bd40c77e31515b | [
"MIT"
] | null | null | null | from pygame.math import Vector2
from game.base.base import BasicObject
| 24.813953 | 67 | 0.63074 |
b6f0188653bb2ee871af6055822ae4236aad3138 | 1,681 | py | Python | aaem/components/ashp_base/config.py | gina-alaska/alaska_affordable_energy_model | 96fed0137152985ce280ea37e0affec131e3087f | [
"MIT-feh"
] | 1 | 2022-01-23T07:18:36.000Z | 2022-01-23T07:18:36.000Z | aaem/components/ashp_base/config.py | gina-alaska/alaska_affordable_energy_model | 96fed0137152985ce280ea37e0affec131e3087f | [
"MIT-feh"
] | 5 | 2017-07-14T21:56:46.000Z | 2017-07-14T21:59:15.000Z | aaem/components/ashp_base/config.py | gina-alaska/alaska_affordable_energy_model | 96fed0137152985ce280ea37e0affec131e3087f | [
"MIT-feh"
] | 2 | 2020-04-28T18:12:55.000Z | 2021-01-13T01:56:57.000Z | """
Air Sorce Heat Pump Base Configuration
--------------------------------------
Contains Air Sorce Heat Pump Base configuration info for community
data yaml file, and other set-up requirements
"""
from aaem.components import definitions
from pandas import DataFrame
COMPONENT_NAME = "air source heat pumps b... | 27.112903 | 161 | 0.603807 |
b6f042d82082418eff06a31d2338a1f484ffdb28 | 1,481 | py | Python | tkRAD/xml/rad_xml_attributes_dict.py | eblade/telegram | fffdcdad501a672130ea5b970c5bfc6bd554d826 | [
"MIT"
] | 1 | 2015-02-22T16:33:35.000Z | 2015-02-22T16:33:35.000Z | tkRAD/xml/rad_xml_attributes_dict.py | eblade/telegram | fffdcdad501a672130ea5b970c5bfc6bd554d826 | [
"MIT"
] | null | null | null | tkRAD/xml/rad_xml_attributes_dict.py | eblade/telegram | fffdcdad501a672130ea5b970c5bfc6bd554d826 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
tkRAD - tkinter Rapid Application Development library
(c) 2013+ Raphal SEBAN <motus@laposte.net>
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 So... | 29.62 | 71 | 0.679271 |
b6f087683a1ffd2178d9ae0471c0a084774f2ca3 | 2,256 | py | Python | analysis_tools/PYTHON_RICARDO/rpl/tools/ray_tracing/test_bsp.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | analysis_tools/PYTHON_RICARDO/rpl/tools/ray_tracing/test_bsp.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | analysis_tools/PYTHON_RICARDO/rpl/tools/ray_tracing/test_bsp.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | import numpy as np
from math import sqrt
import time
from rpl.tools.geometry.surface_io import open_geom
from bsp_tree_poly import BSP_Tree
import logging
## Get rid of any existing handlers (e.g. if running interactively in ipython)
logging.getLogger().handlers = []
## Main logging goes to a file
logging.... | 23.257732 | 114 | 0.628103 |
b6f0f2ae0437a7438574c9999baa6648a2c77f76 | 6,080 | py | Python | noogle/models.py | mtik00/gcal_nest | eb54e0cdefa8747f3173a91df131092286b83e09 | [
"MIT"
] | 1 | 2019-08-14T01:51:22.000Z | 2019-08-14T01:51:22.000Z | noogle/models.py | mtik00/noogle | eb54e0cdefa8747f3173a91df131092286b83e09 | [
"MIT"
] | null | null | null | noogle/models.py | mtik00/noogle | eb54e0cdefa8747f3173a91df131092286b83e09 | [
"MIT"
] | null | null | null | import enum
from sqlalchemy import Integer, String, Column, Enum, UniqueConstraint
from sqlalchemy.sql import exists, and_
from sqlalchemy_utils import ArrowType
from sqlalchemy.exc import IntegrityError
from .db import Base, session
import arrow
from .settings import settings
from .utils import get_scheduled_date
fro... | 29.371981 | 88 | 0.587171 |
b6f189ef85697f774e1b7b0fd4ad59178117e3ff | 107 | py | Python | es_synonyms/constants.py | agora-team/elasticsearch-synonyms | f4ef2e136d212b6f34222d197a861d469e573f9a | [
"MIT"
] | 38 | 2018-09-22T11:54:03.000Z | 2022-01-25T05:42:11.000Z | es_synonyms/constants.py | prashnts/elasticsearch-synonyms | f4ef2e136d212b6f34222d197a861d469e573f9a | [
"MIT"
] | null | null | null | es_synonyms/constants.py | prashnts/elasticsearch-synonyms | f4ef2e136d212b6f34222d197a861d469e573f9a | [
"MIT"
] | 5 | 2017-08-18T15:36:40.000Z | 2018-08-02T13:36:26.000Z | LEVELS = dict(
ok=0,
warn=1,
error=2)
OPERATORS = dict(
map='=>',
delimiter=',',
comment='#')
| 10.7 | 17 | 0.523364 |
b6f23930d3e912ee805e9716c8b0824677ddf74a | 2,956 | py | Python | params.py | ptarau/StanzaGraphs | 617818ded2f6e633417ec548eec7d9ae59c2e65b | [
"Apache-2.0"
] | 4 | 2020-12-31T01:18:05.000Z | 2021-08-13T08:33:25.000Z | params.py | ptarau/StanzaGraphs | 617818ded2f6e633417ec548eec7d9ae59c2e65b | [
"Apache-2.0"
] | null | null | null | params.py | ptarau/StanzaGraphs | 617818ded2f6e633417ec548eec7d9ae59c2e65b | [
"Apache-2.0"
] | 5 | 2020-12-06T01:46:33.000Z | 2022-02-22T05:27:54.000Z | import json
import os
import pickle
import subprocess
from inspect import getframeinfo, stack
import langid
PARAMS = dict(
TRACE=1,
TARGET_LANG='en', # tried zh,fr,sp,de,hu,ro,ar,el,la,it,ru,ja
RANKER='betweenness',
UPLOAD_DIRECTORY='uploads/',
OUTPUT_DIRECTORY='out/',
k_count=7,
s_count=... | 20.386207 | 66 | 0.578823 |
b6f376b60a00ab17f19cd60c626a3bd2ccf60f7f | 12,589 | py | Python | safe_exploration/environments/ndpendulum.py | oscarkey/safe-exploration | 32f0582a7b54ab7d4c1d415afbcf5e9554e8bcec | [
"MIT"
] | null | null | null | safe_exploration/environments/ndpendulum.py | oscarkey/safe-exploration | 32f0582a7b54ab7d4c1d415afbcf5e9554e8bcec | [
"MIT"
] | null | null | null | safe_exploration/environments/ndpendulum.py | oscarkey/safe-exploration | 32f0582a7b54ab7d4c1d415afbcf5e9554e8bcec | [
"MIT"
] | null | null | null | """Contains the n dimensional inverted pendulum environment."""
import warnings
from typing import Optional
import matplotlib.pyplot as plt
import numpy as np
from numpy import ndarray
from polytope import polytope
from scipy.integrate import ode
from scipy.spatial.qhull import ConvexHull
from ..utils import assert_s... | 38.381098 | 120 | 0.562157 |
b6f37b1b2d758914c3434554bfc9d96346d89687 | 1,062 | py | Python | docs/conf.py | mlibrary/keycard | a91922a0bed8e58f277acde79b050e67dfc1a753 | [
"BSD-3-Clause"
] | 1 | 2022-03-07T13:53:11.000Z | 2022-03-07T13:53:11.000Z | docs/conf.py | mlibrary/keycard | a91922a0bed8e58f277acde79b050e67dfc1a753 | [
"BSD-3-Clause"
] | 16 | 2018-03-02T17:18:03.000Z | 2022-03-01T22:38:05.000Z | docs/conf.py | mlibrary/keycard | a91922a0bed8e58f277acde79b050e67dfc1a753 | [
"BSD-3-Clause"
] | 1 | 2018-04-09T23:44:51.000Z | 2018-04-09T23:44:51.000Z | # -*- coding: utf-8 -*-
import guzzle_sphinx_theme
from recommonmark.parser import CommonMarkParser
# -- General configuration ------------------------------------------------
project = u'Keycard'
copyright = u'2018, Regents of the University of Michigan'
author = u'Noah Botimer'
version = u'0.2.4'
release = u'0.2.4'... | 22.595745 | 75 | 0.632768 |
b6f397e507056289717eaa16d0283482c1ef5f4e | 2,970 | py | Python | tests/integrations/test_bottle.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | 76 | 2015-03-01T11:46:57.000Z | 2022-02-18T10:57:44.000Z | tests/integrations/test_bottle.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | 119 | 2015-01-14T11:53:08.000Z | 2022-03-30T08:22:50.000Z | tests/integrations/test_bottle.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | 46 | 2015-02-09T23:50:57.000Z | 2022-01-06T16:04:40.000Z | from webtest import TestApp
import bottle
from bottle import route, template
import bugsnag
from bugsnag.wsgi.middleware import BugsnagMiddleware
from tests.utils import IntegrationTest
| 37.594937 | 75 | 0.619529 |
b6f43762f841c177bcebca927c3b07f71f1acd71 | 21,087 | py | Python | snappy_pipeline/workflows/somatic_variant_filtration/__init__.py | eudesbarbosa/snappy-pipeline | 34f9abd999499469f9d488b715c861b03e79d3db | [
"MIT"
] | 5 | 2021-02-26T10:39:56.000Z | 2021-12-23T07:53:26.000Z | snappy_pipeline/workflows/somatic_variant_filtration/__init__.py | eudesbarbosa/snappy-pipeline | 34f9abd999499469f9d488b715c861b03e79d3db | [
"MIT"
] | 93 | 2021-02-22T11:23:59.000Z | 2022-03-31T09:58:39.000Z | snappy_pipeline/workflows/somatic_variant_filtration/__init__.py | eudesbarbosa/snappy-pipeline | 34f9abd999499469f9d488b715c861b03e79d3db | [
"MIT"
] | 3 | 2021-02-22T11:44:59.000Z | 2021-06-21T19:33:53.000Z | # -*- coding: utf-8 -*-
"""Implementation of the ``somatic_variant_filtration`` step
=====================
Default Configuration
=====================
The default configuration is as follows.
.. include:: DEFAULT_CONFIG_somatic_variant_filtration.rst
=========
Important
=========
Because the EB Filter step is so t... | 37.790323 | 100 | 0.627685 |
b6f68264ab402d31bf82d19fd43f6fff3290e562 | 983 | py | Python | src/scrapeacademy/__init__.py | sojin-project/scrape-academy | 5a18f5b497a6b3b85049ec1a4451b6a333e84353 | [
"MIT"
] | null | null | null | src/scrapeacademy/__init__.py | sojin-project/scrape-academy | 5a18f5b497a6b3b85049ec1a4451b6a333e84353 | [
"MIT"
] | null | null | null | src/scrapeacademy/__init__.py | sojin-project/scrape-academy | 5a18f5b497a6b3b85049ec1a4451b6a333e84353 | [
"MIT"
] | null | null | null | __version__ = "0.0.1"
import asyncio
import logging
from contextvars import ContextVar
from pathlib import Path
from typing import Any, Awaitable, Union, cast
from .context import Context
logger = logging.getLogger(__name__)
_context: ContextVar[Context] = ContextVar("var", default=Context())
context: Context = c... | 21.369565 | 68 | 0.65412 |
b6f6cba04c95192eedb8de4a8cd97764c5fedc28 | 15,739 | py | Python | app.py | explojoe/elektronika_bot | a27c75ecfe677dcefeb5bb492435e7011bd15ef4 | [
"MIT"
] | null | null | null | app.py | explojoe/elektronika_bot | a27c75ecfe677dcefeb5bb492435e7011bd15ef4 | [
"MIT"
] | null | null | null | app.py | explojoe/elektronika_bot | a27c75ecfe677dcefeb5bb492435e7011bd15ef4 | [
"MIT"
] | null | null | null | import os
import random
import time
import json
import datetime
from random import randint
from pyfiglet import figlet_format
from flask import Flask, g, session, redirect, request, url_for, jsonify
from requests_oauthlib import OAuth2Session
OAUTH2_CLIENT_ID = '456608429843283998' #os.environ['OAUTH2_CLIENT_ID']
OAUT... | 32.995807 | 165 | 0.595781 |
b6f74da2f5764dcc1d735f4668f8bb729ddbbf60 | 1,614 | py | Python | pysal/core/IOHandlers/tests/test_gwt.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pysal/core/IOHandlers/tests/test_gwt.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pysal/core/IOHandlers/tests/test_gwt.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-07-19T01:46:17.000Z | 2021-07-19T01:46:17.000Z | import unittest
import pysal
from pysal.core.IOHandlers.gwt import GwtIO
import tempfile
import os
import warnings
if __name__ == '__main__':
unittest.main()
| 29.345455 | 107 | 0.619579 |
b6f7870471a4c3b9fc2d6873b860248bf22dc993 | 3,036 | py | Python | scrnatools/qc/_filter_cells.py | j-germino/sc-rna-tools-git | 4e9a4fce40f6a303a1869e93a6e52e8db663bd06 | [
"BSD-3-Clause"
] | null | null | null | scrnatools/qc/_filter_cells.py | j-germino/sc-rna-tools-git | 4e9a4fce40f6a303a1869e93a6e52e8db663bd06 | [
"BSD-3-Clause"
] | null | null | null | scrnatools/qc/_filter_cells.py | j-germino/sc-rna-tools-git | 4e9a4fce40f6a303a1869e93a6e52e8db663bd06 | [
"BSD-3-Clause"
] | null | null | null | """
Filters cells based on gene number, total counts, and % mitochondrial
From sc-rna-tools package
Created on Mon Jan 10 15:57:46 2022
@author: joe germino (joe.germino@ucsf.edu)
"""
# external imports
from anndata import AnnData
from typing import Tuple, Optional
# sc-rna-tools package imports
from .._configs imp... | 37.02439 | 120 | 0.675231 |
b6f7e210a8d6b1b4f112bb42361c0f38357cf65e | 65 | py | Python | app/models.py | Darius8867/django_ | 3f420d3b96270c88287fe2017899036dc5c2a424 | [
"MIT"
] | null | null | null | app/models.py | Darius8867/django_ | 3f420d3b96270c88287fe2017899036dc5c2a424 | [
"MIT"
] | null | null | null | app/models.py | Darius8867/django_ | 3f420d3b96270c88287fe2017899036dc5c2a424 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models
# well hello
| 10.833333 | 28 | 0.753846 |
b6f890c3e690fdebe8e1a0836fd68af2ccbf3ac2 | 870 | py | Python | tests/046.py | abawchen/leetcode | 41d3b172a7694a46a860fbcb0565a3acccd000f2 | [
"MIT"
] | null | null | null | tests/046.py | abawchen/leetcode | 41d3b172a7694a46a860fbcb0565a3acccd000f2 | [
"MIT"
] | null | null | null | tests/046.py | abawchen/leetcode | 41d3b172a7694a46a860fbcb0565a3acccd000f2 | [
"MIT"
] | null | null | null | import unittest
import sys
import itertools
sys.path.append('./')
solutions = __import__('solutions.046_permutations', fromlist='*')
if __name__ == '__main__':
unittest.main()
| 24.166667 | 75 | 0.594253 |
b6f9606013d32904365396c03ae83f542f67efc6 | 10,618 | py | Python | kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py | gabriel-samfira/client-python | c2e184c3cad6797af35b0160a36ffcbba77284a7 | [
"Apache-2.0"
] | null | null | null | kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py | gabriel-samfira/client-python | c2e184c3cad6797af35b0160a36ffcbba77284a7 | [
"Apache-2.0"
] | null | null | null | kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py | gabriel-samfira/client-python | c2e184c3cad6797af35b0160a36ffcbba77284a7 | [
"Apache-2.0"
] | 1 | 2020-12-10T03:16:05.000Z | 2020-12-10T03:16:05.000Z | # coding: utf-8
"""
KubeVirt API
This is KubeVirt API an add-on for Kubernetes.
OpenAPI spec version: 1.0.0
Contact: kubevirt-dev@googlegroups.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
def to_str... | 32.975155 | 298 | 0.646261 |
b6f965dfcb63aec2b920f05b495039fb46c693bf | 6,560 | py | Python | SOGcommand/infile_processor.py | SalishSeaCast/SOG | e8c914ea743076829d848e7d90df9b5e383e8b53 | [
"Apache-2.0"
] | null | null | null | SOGcommand/infile_processor.py | SalishSeaCast/SOG | e8c914ea743076829d848e7d90df9b5e383e8b53 | [
"Apache-2.0"
] | null | null | null | SOGcommand/infile_processor.py | SalishSeaCast/SOG | e8c914ea743076829d848e7d90df9b5e383e8b53 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""SOG infile processor.
Do various operations on input files for the the SOG bio-physical
model of deep estuaries. Most notably, convert new YAML infiles into
the old Fortran-style infiles that SOG reads.
This module provides services to the SOG command processor.
:Author: Doug Latornell <dj... | 32.8 | 79 | 0.676829 |
b6fa2f56f4a3f21213075bc4eb29f49e9176bc1f | 278 | py | Python | epicstore_api/__init__.py | SD4RK/epicstore_api | 63eaf25018df6b536b5b0be4cb16f2c27b9ebb30 | [
"MIT"
] | 36 | 2020-09-26T08:52:51.000Z | 2022-03-21T21:38:06.000Z | epicstore_api/__init__.py | SD4RK/epicstore_api | 63eaf25018df6b536b5b0be4cb16f2c27b9ebb30 | [
"MIT"
] | 11 | 2020-03-22T00:06:34.000Z | 2021-06-22T15:01:20.000Z | epicstore_api/__init__.py | SD4RK/epicstore_api | 63eaf25018df6b536b5b0be4cb16f2c27b9ebb30 | [
"MIT"
] | 11 | 2020-09-26T15:27:04.000Z | 2022-03-21T15:42:27.000Z | # -*- coding: utf-8 -*-
"""
Epic Games Store API Wrapper
~~~~~~~~~~~~~~~~~~~
An API wrapper for Epic Games Store
:copyright: (c) 2020 SD4RK
:license: MIT, see LICENSE for more details.
"""
from .api import *
from .models import *
from .exc import EGSException, EGSNotFound
| 16.352941 | 44 | 0.651079 |
b6fa4e224f2429e0da069e839232d4b3abb740f6 | 12,127 | py | Python | zopeskel/zopeskel_script.py | jean/ZopeSkel | c9084f30aa03c2b36411bce5c75b9b85ccbabb2f | [
"MIT"
] | 1 | 2021-05-31T13:51:43.000Z | 2021-05-31T13:51:43.000Z | zopeskel/zopeskel_script.py | jean/ZopeSkel | c9084f30aa03c2b36411bce5c75b9b85ccbabb2f | [
"MIT"
] | null | null | null | zopeskel/zopeskel_script.py | jean/ZopeSkel | c9084f30aa03c2b36411bce5c75b9b85ccbabb2f | [
"MIT"
] | null | null | null | import sys
import pkg_resources
from cStringIO import StringIO
from textwrap import TextWrapper
from zopeskel.base import wrap_help_paras
from paste.script.command import get_commands
from zopeskel.ui import list_sorted_templates
USAGE = """
Usage:
zopeskel <template> <output-name> [var1=value] ... [varN=value]
... | 30.3175 | 96 | 0.645337 |
b6fbdea6cb4c3770d8a7144d06603a4a9da8d80a | 3,330 | py | Python | tensorflow/python/tpu/tpu_embedding_v2_test_lib.py | katherinekowalski/tensorflow | 26e92c016a0a1fb76c3651070b859a97e7623256 | [
"Apache-2.0"
] | 2 | 2021-01-20T18:00:03.000Z | 2021-01-21T13:34:56.000Z | tensorflow/python/tpu/tpu_embedding_v2_test_lib.py | katherinekowalski/tensorflow | 26e92c016a0a1fb76c3651070b859a97e7623256 | [
"Apache-2.0"
] | null | null | null | tensorflow/python/tpu/tpu_embedding_v2_test_lib.py | katherinekowalski/tensorflow | 26e92c016a0a1fb76c3651070b859a97e7623256 | [
"Apache-2.0"
] | 1 | 2020-10-15T12:06:40.000Z | 2020-10-15T12:06:40.000Z | # Copyright 2020 The TensorFlow Authors. 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 applica... | 34.329897 | 80 | 0.612913 |
b6fd138f9d6faa66d73686eff259aaba67f2723e | 6,505 | py | Python | scilifelab/lims_utils/process_categories.py | ssjunnebo/scilifelab | 79960f7042118f900bd1eaabe4902ee76abd8020 | [
"MIT"
] | 1 | 2016-03-21T14:04:09.000Z | 2016-03-21T14:04:09.000Z | scilifelab/lims_utils/process_categories.py | ssjunnebo/scilifelab | 79960f7042118f900bd1eaabe4902ee76abd8020 | [
"MIT"
] | 35 | 2015-01-22T08:25:02.000Z | 2020-02-17T12:09:12.000Z | scilifelab/lims_utils/process_categories.py | ssjunnebo/scilifelab | 79960f7042118f900bd1eaabe4902ee76abd8020 | [
"MIT"
] | 6 | 2015-01-16T15:32:08.000Z | 2020-01-30T14:34:40.000Z | INITALQCFINISHEDLIB = {'Description':'All processes included in the initial qc protocol for finished libraries, except the aggregation step.',
'24' : 'Customer Gel QC',
'62' : 'qPCR QC (Library Validation) 4.0',
'64' : 'Quant-iT QC (Library Validation) 4.0',
'67' : 'Qubit QC (Library Validation) 4.0',
... | 56.565217 | 349 | 0.646272 |
b6ff02751decc20312bc14dcf1d511eecda15068 | 2,240 | py | Python | basic_calculator_2.py | Ahmed--Mohsen/leetcode | ad8967a5d85ac54f53b3fcce04df1b4bdec5fd9e | [
"MIT"
] | 4 | 2016-01-03T20:57:21.000Z | 2017-07-06T23:22:40.000Z | basic_calculator_2.py | Ahmed--Mohsen/leetcode | ad8967a5d85ac54f53b3fcce04df1b4bdec5fd9e | [
"MIT"
] | null | null | null | basic_calculator_2.py | Ahmed--Mohsen/leetcode | ad8967a5d85ac54f53b3fcce04df1b4bdec5fd9e | [
"MIT"
] | null | null | null | """
Implement a basic calculator to evaluate a simple expression string.
The expression string contains only non-negative integers, +, -, *, / operators and empty spaces.
The integer division should truncate toward zero.
You may assume that the given expression is always valid.
Some examples:
"3+2*2" = 7
" 3/2 " =... | 19.823009 | 98 | 0.579464 |
b6ffc4004aece2db3208e45e2a34bebeaa9566bf | 141,004 | py | Python | code/tmp_rtrip/test/test_buffer.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | 24 | 2018-01-23T05:28:40.000Z | 2021-04-13T20:52:59.000Z | code/tmp_rtrip/test/test_buffer.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | 17 | 2017-12-21T18:32:31.000Z | 2018-12-18T17:09:50.000Z | code/tmp_rtrip/test/test_buffer.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | null | null | null | import contextlib
import unittest
from test import support
from itertools import permutations, product
from random import randrange, sample, choice
import warnings
import sys, array, io
from decimal import Decimal
from fractions import Fraction
try:
from _testbuffer import *
except ImportError:
ndarray = None
t... | 41.630942 | 105 | 0.530304 |
8e01dbee5a897965e7567344ae6fcd28826e16b6 | 721 | py | Python | tessflux/__init__.py | astrorafael/tessflux | ffd83a6fa3ceacf7ab7418433ba8353e6ba3c08d | [
"MIT"
] | null | null | null | tessflux/__init__.py | astrorafael/tessflux | ffd83a6fa3ceacf7ab7418433ba8353e6ba3c08d | [
"MIT"
] | null | null | null | tessflux/__init__.py | astrorafael/tessflux | ffd83a6fa3ceacf7ab7418433ba8353e6ba3c08d | [
"MIT"
] | null | null | null | # ----------------------------------------------------------------------
# Copyright (c) 2014 Rafael Gonzalez.
#
# See the LICENSE file for details
# ----------------------------------------------------------------------
#--------------------
# System wide imports
# -------------------
from __future__ import divisio... | 17.585366 | 72 | 0.389736 |
8e04477a8705dc2344d3c75791a0441dfe9889b8 | 6,269 | py | Python | loldib/getratings/models/NA/na_jinx/na_jinx_mid.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_jinx/na_jinx_mid.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_jinx/na_jinx_mid.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from getratings.models.ratings import Ratings
| 15.033573 | 46 | 0.75642 |
8e049f0aa27352585b06ca05df30f94ec3db1091 | 475 | py | Python | backend/genomafoodies/models.py | heraldofortuna/genomafoodies | d625e13c628c31a11732f2b36f9b752980a5cd9b | [
"Unlicense"
] | null | null | null | backend/genomafoodies/models.py | heraldofortuna/genomafoodies | d625e13c628c31a11732f2b36f9b752980a5cd9b | [
"Unlicense"
] | null | null | null | backend/genomafoodies/models.py | heraldofortuna/genomafoodies | d625e13c628c31a11732f2b36f9b752980a5cd9b | [
"Unlicense"
] | null | null | null | from django.db import models
from django.core.validators import MinValueValidator, MaxValueValidator
# Create your models here.
| 27.941176 | 71 | 0.736842 |
8e05037d170429d47d930aeb22964eb109747dee | 48,157 | py | Python | pysmFISH/stitching_package/stitching.py | ambrosejcarr/pysmFISH | 0eb24355f70c0d5c9013a9407fd56f2e1e9ee3cb | [
"MIT"
] | 5 | 2018-05-29T23:03:19.000Z | 2022-02-02T02:04:41.000Z | pysmFISH/stitching_package/stitching.py | ambrosejcarr/pysmFISH | 0eb24355f70c0d5c9013a9407fd56f2e1e9ee3cb | [
"MIT"
] | 3 | 2018-12-18T20:18:38.000Z | 2019-01-18T22:47:45.000Z | pysmFISH/stitching_package/stitching.py | ambrosejcarr/pysmFISH | 0eb24355f70c0d5c9013a9407fd56f2e1e9ee3cb | [
"MIT"
] | 5 | 2018-08-10T14:54:54.000Z | 2021-10-09T13:32:08.000Z |
"""Find or apply coordinates to stitch an image
"""
#import matplotlib.pyplot as plt
#plt_available = True
plt_available = False
import sklearn.feature_extraction.image as sklim
import numpy as np
import skimage.transform as smtf
import h5py
import logging
import time
import os
# Own imports
from . import inout
from... | 40.673142 | 113 | 0.612393 |
8e05612e6454e3a0201075d9aac7b407c9a0e0af | 221 | py | Python | ode_explorer/integrators/__init__.py | nicholasjng/ode-explorer | 0bcb5d4834f6001b2a3e54bd5e000e86bbedf221 | [
"MIT"
] | 3 | 2021-11-11T02:14:18.000Z | 2022-03-14T11:18:59.000Z | ode_explorer/integrators/__init__.py | njunge94/ode-explorer | 0bcb5d4834f6001b2a3e54bd5e000e86bbedf221 | [
"MIT"
] | null | null | null | ode_explorer/integrators/__init__.py | njunge94/ode-explorer | 0bcb5d4834f6001b2a3e54bd5e000e86bbedf221 | [
"MIT"
] | null | null | null | from ode_explorer.integrators.integrator_loops import (
constant_h_loop,
adaptive_h_loop
)
from ode_explorer.integrators.integrator import Integrator
from ode_explorer.integrators.loop_factory import loop_factory
| 31.571429 | 62 | 0.855204 |
8e05b464f863ee3ff6b1d8a71e1c57c1ec0a71f1 | 3,374 | py | Python | assignment4/gan/models.py | yutong-xie/CS498-DL-Assignment | a0c93422c31a19ece7abbd2a7bb19f7feb8ea5ef | [
"MIT"
] | null | null | null | assignment4/gan/models.py | yutong-xie/CS498-DL-Assignment | a0c93422c31a19ece7abbd2a7bb19f7feb8ea5ef | [
"MIT"
] | null | null | null | assignment4/gan/models.py | yutong-xie/CS498-DL-Assignment | a0c93422c31a19ece7abbd2a7bb19f7feb8ea5ef | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from gan.spectral_normalization import SpectralNorm
| 36.27957 | 126 | 0.479549 |
8e07d4a290a89738baa85c1f2a65b178b1380804 | 3,388 | py | Python | processing/geoboundaries/standardize/recode.py | fieldmaps/edge-matcher | d5aac4b1fbd5da3518b5a33fb6ddbe4e936af3bd | [
"MIT"
] | 1 | 2021-11-10T12:59:01.000Z | 2021-11-10T12:59:01.000Z | processing/geoboundaries/standardize/recode.py | fieldmaps/admin-boundaries | 6ec585174656cdc1d209c5ccd31087b7aa6d9929 | [
"MIT"
] | null | null | null | processing/geoboundaries/standardize/recode.py | fieldmaps/admin-boundaries | 6ec585174656cdc1d209c5ccd31087b7aa6d9929 | [
"MIT"
] | null | null | null | import pandas as pd
from .utils import logging, filter_config, DATABASE
logger = logging.getLogger(__name__)
con = f'postgresql:///{DATABASE}'
| 29.719298 | 78 | 0.556375 |
8e087c3aba36d8a1da8af28ad2d6df931d6e4180 | 1,112 | py | Python | app/vehicle/models.py | ab7289-tandon-nyu/csgy6083_PDS_Project | d2b7d22274dcabbb6ae35c17a8ffd06498f3634f | [
"MIT"
] | null | null | null | app/vehicle/models.py | ab7289-tandon-nyu/csgy6083_PDS_Project | d2b7d22274dcabbb6ae35c17a8ffd06498f3634f | [
"MIT"
] | null | null | null | app/vehicle/models.py | ab7289-tandon-nyu/csgy6083_PDS_Project | d2b7d22274dcabbb6ae35c17a8ffd06498f3634f | [
"MIT"
] | null | null | null | from app.db import DTOBase
| 20.981132 | 85 | 0.563849 |
8e098d9290daa9ce8fe636df83ecdb38807d6eed | 484 | py | Python | setup.py | JesDanis/Sweaden_Prueba | d028c599eabfe7534eff3113dcaa4aba42254a97 | [
"MIT"
] | null | null | null | setup.py | JesDanis/Sweaden_Prueba | d028c599eabfe7534eff3113dcaa4aba42254a97 | [
"MIT"
] | null | null | null | setup.py | JesDanis/Sweaden_Prueba | d028c599eabfe7534eff3113dcaa4aba42254a97 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open('requirements.txt') as f:
install_requires = f.read().strip().split('\n')
# get version from __version__ variable in apptest/__init__.py
from apptest import __version__ as version
setup(
name='apptest',
version=version,
description='prueba',
author='orlando ... | 24.2 | 62 | 0.783058 |
8e0b0e23dd2e90df198a864385d478cf3eb2e293 | 5,448 | py | Python | flask_helper/_flask.py | meisanggou/JYFlask | c23c659ee60dfc0f9ed4ea47c6a3b018d318100c | [
"MIT"
] | 2 | 2018-11-15T11:18:13.000Z | 2020-05-16T22:12:10.000Z | flask_helper/_flask.py | meisanggou/Flask-Helper | c23c659ee60dfc0f9ed4ea47c6a3b018d318100c | [
"MIT"
] | null | null | null | flask_helper/_flask.py | meisanggou/Flask-Helper | c23c659ee60dfc0f9ed4ea47c6a3b018d318100c | [
"MIT"
] | 1 | 2018-05-07T01:11:23.000Z | 2018-05-07T01:11:23.000Z | # !/usr/bin/env python
# coding: utf-8
from flask import Flask
import os
from flask_helper.exception import InvalidHookClass
from flask_helper.flask_hook import FlaskHook
from flask_helper.hooks.cors_hook import CorsHook
from flask_helper.hooks.handle_30x_hook import Handle30xHook
from flask_helper.hooks.real_ip_hook ... | 37.572414 | 76 | 0.641887 |
8e0bf2d45dfd6e0b97aceb7f22a0e37420a6dce5 | 167 | py | Python | problem0217.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0217.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0217.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #217 Balanced Numbers - Project Euler
# https://projecteuler.net/problem=217
#
# Code by Kevin Marciniak
#
###########################
| 18.555556 | 39 | 0.479042 |
8e0ce2cde6afdfd6d125f65d229bd7d0e3594dc9 | 5,802 | py | Python | Functions/UpdateSpreadsheet/update-spreadsheet.py | bretterism/CommunityBot | c25db66ae09b79628123f9850ab59c7cbe7b7984 | [
"MIT"
] | null | null | null | Functions/UpdateSpreadsheet/update-spreadsheet.py | bretterism/CommunityBot | c25db66ae09b79628123f9850ab59c7cbe7b7984 | [
"MIT"
] | null | null | null | Functions/UpdateSpreadsheet/update-spreadsheet.py | bretterism/CommunityBot | c25db66ae09b79628123f9850ab59c7cbe7b7984 | [
"MIT"
] | null | null | null | import base64
import boto3
import datetime
import gspread
import json
import logging
from oauth2client.service_account import ServiceAccountCredentials
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def get_client_secret(filename):
"""Get the client secret from encrypted file. Returns decrypted json o... | 32.413408 | 181 | 0.777146 |
8e0d07e6ae3069591aee66b7e572a4f8ae9db266 | 191 | py | Python | nac/plotter/tests/test_plotter.py | NaleRaphael/nac | 205e81502a6bb963bfca47793e3e2b5bc1d582c8 | [
"MIT"
] | 1 | 2019-10-08T07:50:39.000Z | 2019-10-08T07:50:39.000Z | nac/plotter/tests/test_plotter.py | NaleRaphael/nac | 205e81502a6bb963bfca47793e3e2b5bc1d582c8 | [
"MIT"
] | null | null | null | nac/plotter/tests/test_plotter.py | NaleRaphael/nac | 205e81502a6bb963bfca47793e3e2b5bc1d582c8 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import unittest
import numpy as np
from nac.plotter import LogPlotter
| 17.363636 | 40 | 0.780105 |
8e0d08f5530176dfcb7574842571feb83189d573 | 1,644 | py | Python | config.py | oogway/pyhystrix | 941de918d0433aaae958cb6de87ec32d6d943bb4 | [
"MIT"
] | 15 | 2017-11-26T16:04:33.000Z | 2020-04-16T02:49:50.000Z | config.py | oogway/pyhystrix | 941de918d0433aaae958cb6de87ec32d6d943bb4 | [
"MIT"
] | 1 | 2021-06-01T21:20:18.000Z | 2021-06-01T21:20:18.000Z | config.py | last9/pyhystrix | 941de918d0433aaae958cb6de87ec32d6d943bb4 | [
"MIT"
] | 1 | 2021-07-29T16:52:26.000Z | 2021-07-29T16:52:26.000Z | """Constants that will be used to define default
behaviour. Can be overridden by setting env vars
"""
import os
import requests
import logging
log_levels = {
logging.getLevelName(logging.CRITICAL): logging.CRITICAL,
logging.getLevelName(logging.ERROR): logging.ERROR,
logging.getLevelName(logging.WARNING)... | 25.292308 | 69 | 0.699513 |
8e0d8add1a61f1897a6bf0bdee26d14f7d06d4d5 | 543 | py | Python | tests/testing_utils.py | josephsv96/crate_classifier | 02a0b55d5714f1e40923b007526c25ffd0c4e098 | [
"MIT"
] | 1 | 2020-11-18T11:30:42.000Z | 2020-11-18T11:30:42.000Z | tests/testing_utils.py | josephsv96/crate_classifier | 02a0b55d5714f1e40923b007526c25ffd0c4e098 | [
"MIT"
] | 7 | 2021-04-30T21:39:14.000Z | 2022-01-13T03:32:59.000Z | tests/testing_utils.py | josephsv96/crate_classifier | 02a0b55d5714f1e40923b007526c25ffd0c4e098 | [
"MIT"
] | null | null | null | # Helper Functions
try:
from src.utils import load_json
except ImportError as error:
print(f"Error: {error}; Local modules not found")
except Exception as exception:
print(exception)
def load_params_1():
"""Returns source path of images and number of exposures
"""
PKG_1_PARAMS = load_json("con... | 22.625 | 60 | 0.71639 |
8e10e72463d04064e483ee31cb51f2fbc3e11508 | 380 | py | Python | setup.py | gonicus/clacks | da579f0acc4e48cf2e9451417ac6792282cf7ab6 | [
"ZPL-2.1"
] | 2 | 2015-01-26T07:15:19.000Z | 2015-11-09T13:42:11.000Z | setup.py | gonicus/clacks | da579f0acc4e48cf2e9451417ac6792282cf7ab6 | [
"ZPL-2.1"
] | null | null | null | setup.py | gonicus/clacks | da579f0acc4e48cf2e9451417ac6792282cf7ab6 | [
"ZPL-2.1"
] | null | null | null | #!/usr/bin/env python
import os
import sys
modules = ['common',
'agent',
'dbus',
'client',
'shell',
'utils']
for module in modules:
os.system("cd %s && ./setup.py %s" % (module, " ".join(sys.argv[1:])))
for root, dirs, files in os.walk("plugins"):
if "setup.py" in files:
os.system... | 21.111111 | 76 | 0.544737 |
8e11efc1468ab165d3d0fc871df7995ea5f39913 | 130 | py | Python | kanagata/__init__.py | podhmo/kanagata | 078d4e87ae474b873690b0905ae1557c5e5b4846 | [
"MIT"
] | null | null | null | kanagata/__init__.py | podhmo/kanagata | 078d4e87ae474b873690b0905ae1557c5e5b4846 | [
"MIT"
] | null | null | null | kanagata/__init__.py | podhmo/kanagata | 078d4e87ae474b873690b0905ae1557c5e5b4846 | [
"MIT"
] | null | null | null | from kanagata.builder import RestrictionBuilder # NOQA
from kanagata.builder import Module # NOQA
Builder = RestrictionBuilder
| 26 | 55 | 0.823077 |
8e129a5dd5ce56a18e4bf1c6c8ee6d799374887d | 318 | py | Python | modules/name.py | onrcayci/python3-notes | 64f6708553a54a2b85641690e5e90444a0a68737 | [
"MIT"
] | null | null | null | modules/name.py | onrcayci/python3-notes | 64f6708553a54a2b85641690e5e90444a0a68737 | [
"MIT"
] | null | null | null | modules/name.py | onrcayci/python3-notes | 64f6708553a54a2b85641690e5e90444a0a68737 | [
"MIT"
] | null | null | null | """
__name__
When run, every Python file has a __name__ variable.
If the file is the main file being run/executed, its value is "__main__".
Otherwise, its value is the file name.
"""
# To ignore executable code on import
if __name__ == "__main__":
# this code will only run if the file is the main file
pass | 24.461538 | 73 | 0.720126 |
8e134e72e201eb3b080e13c59ab9963fb4dd6a5d | 44 | py | Python | Common/config.py | lkean9/GrabTaxi | 93d916dff777ac69ad83973fa00704ed2ae110ee | [
"MIT"
] | null | null | null | Common/config.py | lkean9/GrabTaxi | 93d916dff777ac69ad83973fa00704ed2ae110ee | [
"MIT"
] | null | null | null | Common/config.py | lkean9/GrabTaxi | 93d916dff777ac69ad83973fa00704ed2ae110ee | [
"MIT"
] | null | null | null | SECRET_KEY = "TOP_SECRET"
EXPIRATION = 1000
| 14.666667 | 25 | 0.772727 |
8e1396c831f746a08108e2cb3118687406bb55ae | 546 | py | Python | force_arp.py | t-amorim/network_package | 863e684b012553d174ad5b5582fb43b33aba9c3e | [
"MIT"
] | null | null | null | force_arp.py | t-amorim/network_package | 863e684b012553d174ad5b5582fb43b33aba9c3e | [
"MIT"
] | null | null | null | force_arp.py | t-amorim/network_package | 863e684b012553d174ad5b5582fb43b33aba9c3e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Thomas AMORIM"
__credits__ = ["Thomas Amorim", "Pierre-Franois Bonnefoi" "Scapy"]
__license__ = "MIT"
__version__ = "1.1"
__status__ = "OK"
from scapy.all import *
import sys
if __name__ == "__main__":
defaut_ip = "192.168.1.0/24"
if len(sys.argv)!=1:
ip... | 26 | 123 | 0.663004 |
8e13e88951d6d92ee282735ac8cfc21a6802ca4c | 1,877 | py | Python | app/accounts/mutations/admins.py | Alohomora-team/AlohomoraAPI | 8c5aefa37c16a1849e5af72b7d130a132d198eb0 | [
"MIT"
] | 2 | 2019-10-25T02:35:12.000Z | 2019-11-20T21:18:42.000Z | app/accounts/mutations/admins.py | Alohomora-team/AlohomoraAPI | 8c5aefa37c16a1849e5af72b7d130a132d198eb0 | [
"MIT"
] | 65 | 2019-10-23T12:43:39.000Z | 2022-02-10T13:18:08.000Z | app/accounts/mutations/admins.py | Alohomora-team/AlohomoraAPI | 8c5aefa37c16a1849e5af72b7d130a132d198eb0 | [
"MIT"
] | null | null | null | """
Create a CRUD of admin users
"""
import graphene
from django.contrib.auth import get_user_model
from graphql_jwt.decorators import superuser_required, login_required
from accounts.models import Admin
from accounts.types import UserType
| 26.069444 | 69 | 0.614811 |
8e1613b75fb1c4e2a9d36edca9ff6e926c969de5 | 1,887 | py | Python | src/Generate.py | cisprague/Astro.IQ | 4e2df67ddc0ffc518c4f65d0bf558380e6a7c6d1 | [
"MIT"
] | 20 | 2017-11-21T18:25:52.000Z | 2022-03-16T18:18:41.000Z | src/Generate.py | siddharthdeore/Astro.IQ | 4e2df67ddc0ffc518c4f65d0bf558380e6a7c6d1 | [
"MIT"
] | 2 | 2017-08-16T19:51:03.000Z | 2017-11-14T21:03:18.000Z | src/Generate.py | siddharthdeore/Astro.IQ | 4e2df67ddc0ffc518c4f65d0bf558380e6a7c6d1 | [
"MIT"
] | 5 | 2019-07-08T23:10:11.000Z | 2022-03-15T15:32:53.000Z | # Resources
from Trajectory import Point_Lander_Drag
from Optimisation import HSS
from PyGMO import *
from numpy import *
import multiprocessing
def main(n):
''' -------------------------------------------------
Problem : SpaceX Dragon 2 Martian Soft Landing
Dynamics : 2-Dimensional Variable Ma... | 33.105263 | 78 | 0.591415 |
8e18b1fe8693079c206be0f80851013efb31a74f | 2,870 | py | Python | tests/core/test_signup_methods.py | ephios-dev/ephios | c8d30576238a189ccef1929661f547ee3fe6e5d7 | [
"MIT"
] | 14 | 2021-01-13T12:15:03.000Z | 2022-03-20T10:02:11.000Z | tests/core/test_signup_methods.py | ephios-dev/ephios | c8d30576238a189ccef1929661f547ee3fe6e5d7 | [
"MIT"
] | 570 | 2020-09-19T13:37:27.000Z | 2022-03-31T09:14:37.000Z | tests/core/test_signup_methods.py | ephios-dev/ephios | c8d30576238a189ccef1929661f547ee3fe6e5d7 | [
"MIT"
] | 5 | 2021-01-08T16:52:31.000Z | 2022-03-20T10:02:25.000Z | import functools
from datetime import datetime, timedelta
import pytest
from django.utils.timezone import make_aware
from ephios.core.models import AbstractParticipation, Shift
from ephios.core.signup import LocalParticipation, SignupStats, get_conflicting_participations
from ephios.plugins.basesignup.signup.instant ... | 35.432099 | 96 | 0.606272 |
8e19ea2590ae17fc18a92de3663174cfd5b2b77b | 504 | py | Python | synthetic/discrepancy.py | Meng-Lingjun-xjtu/ttt-plus-plus | 0f26c689fcaa666fa3524e7c5b6de0c1cb510e89 | [
"MIT"
] | 23 | 2021-11-21T10:50:49.000Z | 2022-03-14T09:34:10.000Z | synthetic/discrepancy.py | Meng-Lingjun-xjtu/ttt-plus-plus | 0f26c689fcaa666fa3524e7c5b6de0c1cb510e89 | [
"MIT"
] | 2 | 2022-01-06T01:19:24.000Z | 2022-03-03T15:39:23.000Z | synthetic/discrepancy.py | Meng-Lingjun-xjtu/ttt-plus-plus | 0f26c689fcaa666fa3524e7c5b6de0c1cb510e89 | [
"MIT"
] | 2 | 2021-12-14T22:34:55.000Z | 2022-01-23T10:49:14.000Z | import numpy as np
import torch
| 22.909091 | 86 | 0.589286 |
8e1afbc263f6d797c000a3851ad609f3c38c6432 | 747 | py | Python | addons/omi-blender-gltf-main/reload_package.py | V-Sekai/V-Sekai-Blender-tools | 3473ad4abb737756290a9007273519460742960d | [
"MIT"
] | 2 | 2021-12-21T16:38:58.000Z | 2022-01-08T00:56:35.000Z | addons/omi-blender-gltf-main/reload_package.py | V-Sekai/V-Sekai-Blender-game-tools | 3473ad4abb737756290a9007273519460742960d | [
"MIT"
] | 1 | 2022-01-29T05:46:50.000Z | 2022-01-29T05:46:50.000Z | addons/omi-blender-gltf-main/reload_package.py | V-Sekai/V-Sekai-Blender-game-tools | 3473ad4abb737756290a9007273519460742960d | [
"MIT"
] | 1 | 2021-11-07T19:41:34.000Z | 2021-11-07T19:41:34.000Z | # from io_scene_gltf2
# Copyright 2018-2019 The glTF-Blender-IO authors.
# Apache 2.0
#
# Script reloading (if the user calls 'Reload Scripts' from Blender)
#
| 31.125 | 79 | 0.677376 |
8e1e0c186a840151723210baf4fa4bdbf7361239 | 7,938 | py | Python | archives/nnAvicaching_find_rewards_without_lp.py | anmolkabra/avicaching-summ17 | 3b85c1b70adcbe5d5b2764195090b28093081b1f | [
"MIT"
] | null | null | null | archives/nnAvicaching_find_rewards_without_lp.py | anmolkabra/avicaching-summ17 | 3b85c1b70adcbe5d5b2764195090b28093081b1f | [
"MIT"
] | null | null | null | archives/nnAvicaching_find_rewards_without_lp.py | anmolkabra/avicaching-summ17 | 3b85c1b70adcbe5d5b2764195090b28093081b1f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# DEPRECATED -- model didn't work. Was trying to constrain rewards differently.
# Beware -- lack of documentation. Refer to nnAvicaching_find_rewards.py for
# support
from __future__ import print_function
import torch, torch.nn as nn, torch.nn.functional as torchfun, torch.optim as optim
from to... | 45.102273 | 123 | 0.599899 |
8e1eb2172438f2b56adc51f147f65e93bc5948ab | 8,094 | py | Python | orchestrator/utils/functional.py | florisie/orchestrator-core | 7a5a997fc809cdf53dc942d1ee1fa945de4eb4d8 | [
"Apache-2.0"
] | 15 | 2021-02-18T15:30:25.000Z | 2022-02-19T18:57:51.000Z | orchestrator/utils/functional.py | florisie/orchestrator-core | 7a5a997fc809cdf53dc942d1ee1fa945de4eb4d8 | [
"Apache-2.0"
] | 70 | 2021-02-24T17:59:23.000Z | 2022-03-31T08:24:56.000Z | orchestrator/utils/functional.py | florisie/orchestrator-core | 7a5a997fc809cdf53dc942d1ee1fa945de4eb4d8 | [
"Apache-2.0"
] | 6 | 2021-02-23T18:10:15.000Z | 2022-02-15T16:07:38.000Z | # Copyright 2019-2020 SURF.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, soft... | 33.308642 | 142 | 0.657401 |
8e1efde181bc7ecf4280c02509459ae898ca2dfa | 23 | py | Python | horch/_version.py | sbl1996/pytorch-hrvvi-ext | f19abcbedd844a700b2e2596dd817ea80cbb6287 | [
"MIT"
] | 17 | 2019-05-14T10:47:25.000Z | 2021-06-09T05:39:47.000Z | horch/_version.py | sbl1996/pytorch-hrvvi-ext | f19abcbedd844a700b2e2596dd817ea80cbb6287 | [
"MIT"
] | null | null | null | horch/_version.py | sbl1996/pytorch-hrvvi-ext | f19abcbedd844a700b2e2596dd817ea80cbb6287 | [
"MIT"
] | 5 | 2019-08-08T07:04:38.000Z | 2020-07-04T08:58:32.000Z | __version__ = "1.4.14"
| 11.5 | 22 | 0.652174 |
8e2030448752921687eb59abb1913c4abb6e301c | 7,680 | py | Python | sdk/python/pulumi_civo/get_snapshot.py | dirien/pulumi-civo | f75eb1482bade0d21fb25c9e20e6838791518226 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-08-04T12:27:02.000Z | 2022-03-14T13:16:43.000Z | sdk/python/pulumi_civo/get_snapshot.py | dirien/pulumi-civo | f75eb1482bade0d21fb25c9e20e6838791518226 | [
"ECL-2.0",
"Apache-2.0"
] | 85 | 2020-08-17T19:03:57.000Z | 2022-03-25T19:17:57.000Z | sdk/python/pulumi_civo/get_snapshot.py | dirien/pulumi-civo | f75eb1482bade0d21fb25c9e20e6838791518226 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2020-08-04T12:27:03.000Z | 2022-03-24T00:56:24.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 33.103448 | 225 | 0.625 |
8e20378cb6c72af2f65ef451864ac0fc081b93ee | 9,267 | py | Python | airflow/tests/test_sync_documents_to_kernel.py | cesarbruschetta/opac-airflow | 7deaf1d9ba64bfdb57081698308219f95200fca5 | [
"BSD-2-Clause"
] | null | null | null | airflow/tests/test_sync_documents_to_kernel.py | cesarbruschetta/opac-airflow | 7deaf1d9ba64bfdb57081698308219f95200fca5 | [
"BSD-2-Clause"
] | null | null | null | airflow/tests/test_sync_documents_to_kernel.py | cesarbruschetta/opac-airflow | 7deaf1d9ba64bfdb57081698308219f95200fca5 | [
"BSD-2-Clause"
] | null | null | null | from unittest import TestCase, main
from unittest.mock import patch, MagicMock
from airflow import DAG
from sync_documents_to_kernel import (
list_documents,
delete_documents,
register_update_documents,
)
if __name__ == "__main__":
main()
| 44.128571 | 117 | 0.697097 |
8e218d1e4830fc81eed6cc871e828febdb5d8a5f | 4,884 | py | Python | cscs-checks/apps/gromacs/gromacs_check.py | ajocksch/reframe | f701ca5075d78cef2dbf9dc8b754bf70b1a04036 | [
"BSD-3-Clause"
] | null | null | null | cscs-checks/apps/gromacs/gromacs_check.py | ajocksch/reframe | f701ca5075d78cef2dbf9dc8b754bf70b1a04036 | [
"BSD-3-Clause"
] | null | null | null | cscs-checks/apps/gromacs/gromacs_check.py | ajocksch/reframe | f701ca5075d78cef2dbf9dc8b754bf70b1a04036 | [
"BSD-3-Clause"
] | null | null | null | import itertools
import os
import reframe as rfm
import reframe.utility.sanity as sn
class GromacsCPUCheck(GromacsBaseCheck):
# FIXME: This test is obsolete; it is kept only for reference.
| 31.509677 | 79 | 0.524775 |
8e21a21a2e04fd87d50fcbd6fe1e05543f8a0c63 | 3,490 | py | Python | tests/test_serialization.py | andsteing/being | 0d0dca71edc512df47fe5ff3bea692e728f90924 | [
"MIT"
] | 2 | 2021-11-11T12:16:43.000Z | 2022-01-13T06:06:20.000Z | tests/test_serialization.py | andsteing/being | 0d0dca71edc512df47fe5ff3bea692e728f90924 | [
"MIT"
] | 5 | 2022-01-13T08:01:54.000Z | 2022-02-22T12:28:02.000Z | tests/test_serialization.py | andsteing/being | 0d0dca71edc512df47fe5ff3bea692e728f90924 | [
"MIT"
] | 3 | 2022-01-11T18:16:35.000Z | 2022-01-13T13:14:26.000Z | import unittest
import enum
from typing import NamedTuple
import numpy as np
from numpy.testing import assert_equal
from scipy.interpolate import PPoly, CubicSpline, BPoly
from being.serialization import (
ENUM_LOOKUP, EOT, NAMED_TUPLE_LOOKUP, FlyByDecoder, dumps, enum_from_dict,
enum_to_dict, loads, named_tu... | 28.842975 | 83 | 0.601719 |
8e21ee7427997f0bb676f02cdf4a2c28027d8026 | 355 | py | Python | config/dirs.py | AxelJanRousseau/PostTrainCalibration | adbe0240f5e274713fdb3433084786508eceacd9 | [
"MIT"
] | 6 | 2020-10-28T12:02:10.000Z | 2022-01-25T00:13:00.000Z | config/dirs.py | AxelJanRousseau/PostTrainCalibration | adbe0240f5e274713fdb3433084786508eceacd9 | [
"MIT"
] | null | null | null | config/dirs.py | AxelJanRousseau/PostTrainCalibration | adbe0240f5e274713fdb3433084786508eceacd9 | [
"MIT"
] | null | null | null | import os
PROJECT_PATH = os.path.dirname(os.path.dirname(__file__))
DATA_PATH = os.path.join(PROJECT_PATH,'Datasets')
MODELS_PATH = os.path.join(PROJECT_PATH,'Models')
RESULT_FILE_PATH = os.path.join(PROJECT_PATH,'Results')
CALIBRATED_MODELS_PATH = os.path.join(PROJECT_PATH,'Models')
SAVED_SEG_MAPS = os.path.join(P... | 32.272727 | 66 | 0.797183 |
8e22442365d785a783e5e25a9bd0e144d5615dbf | 586 | py | Python | pset_challenging_ext/exercises/p54.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 5 | 2019-04-08T20:05:37.000Z | 2019-12-04T20:48:45.000Z | pset_challenging_ext/exercises/p54.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 8 | 2019-04-15T15:16:05.000Z | 2022-02-12T10:33:32.000Z | pset_challenging_ext/exercises/p54.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 2 | 2019-04-10T00:14:42.000Z | 2020-02-26T20:35:21.000Z | """
Define a class named Shape and its subclass Square. The Square class has an init function which takes a length as argument. Both classes have a area function which can print the area of the shape where Shape's area is 0 by default.
"""
"""Define a class named Shape and its subclass Square. The Square class has an ... | 65.111111 | 234 | 0.771331 |
8e2643cf3118e11758efb3f7ee35bad253c1c578 | 580 | py | Python | index.py | incognitofox/uncommon_hacks_2021 | 69ead646426b05f9aded2f8899d271eb9e95ff58 | [
"MIT"
] | null | null | null | index.py | incognitofox/uncommon_hacks_2021 | 69ead646426b05f9aded2f8899d271eb9e95ff58 | [
"MIT"
] | null | null | null | index.py | incognitofox/uncommon_hacks_2021 | 69ead646426b05f9aded2f8899d271eb9e95ff58 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request
import audd_test
app = Flask(__name__)
if __name__ == '__main__':
app.run(port=8080)
| 27.619048 | 125 | 0.674138 |
8e267a431f39688558b66516192bbde659a69318 | 3,056 | py | Python | delta/utils/solver/solver_utils.py | hchang000/delta | 89320bd538e360d939c50d9f303e81554f6ce7ac | [
"Apache-2.0"
] | 1 | 2019-07-15T11:42:38.000Z | 2019-07-15T11:42:38.000Z | delta/utils/solver/solver_utils.py | hchang000/delta | 89320bd538e360d939c50d9f303e81554f6ce7ac | [
"Apache-2.0"
] | null | null | null | delta/utils/solver/solver_utils.py | hchang000/delta | 89320bd538e360d939c50d9f303e81554f6ce7ac | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd.
# 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/LI... | 38.683544 | 80 | 0.717932 |
8e26b7efd0da64ad183019357195a91e0a8d6354 | 858 | py | Python | Shell-Socket-Programming/Shell.py | bayudwiyansatria/Network-Security-Management | 8021c3a976337282a261f086024f248aa5c9e4ec | [
"MIT"
] | 2 | 2019-06-09T23:26:44.000Z | 2019-06-27T08:18:05.000Z | Shell-Socket-Programming/Shell.py | bayudwiyansatria/Network-Security-Management | 8021c3a976337282a261f086024f248aa5c9e4ec | [
"MIT"
] | null | null | null | Shell-Socket-Programming/Shell.py | bayudwiyansatria/Network-Security-Management | 8021c3a976337282a261f086024f248aa5c9e4ec | [
"MIT"
] | null | null | null | import os;
host = "dev.pi";
username = "pi";
encrypted = "";
if(checkFileExist(getCurrentDirectory()+"/encrypted.txt")==True):
encrypted = createStringCommand("File Is Exist");
else :
encrypted = "openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt"
scpCommand = "scp encrypted.txt "+usernam... | 22 | 86 | 0.678322 |
8e272497ace8b6a02c22d0afb516f7356ea6be45 | 2,033 | py | Python | 2021/day20.py | JLMadsen/AdventOfCode | 127a78955e48618814ef0e3fbfbe0571c7b3ca1a | [
"MIT"
] | 2 | 2019-12-03T20:23:09.000Z | 2020-08-28T10:46:18.000Z | 2021/day20.py | JLMadsen/AdventOfCode | 127a78955e48618814ef0e3fbfbe0571c7b3ca1a | [
"MIT"
] | null | null | null | 2021/day20.py | JLMadsen/AdventOfCode | 127a78955e48618814ef0e3fbfbe0571c7b3ca1a | [
"MIT"
] | 1 | 2021-10-30T07:27:54.000Z | 2021-10-30T07:27:54.000Z | from collections import defaultdict
test = """..#.#..#####.#.#.#.###.##.....###.##.#..###.####..#####..#....#..#..##..###..######.###...####..#..#####..##..#.#####...##.#.#..#.##..#.#......#.###.######.###.####...#.##.##..#..#..#####.....#.#....###..#.##......#.....#..#..#..##..#...##.######.####.####.#.#...#.......#.... | 32.269841 | 522 | 0.352681 |
8e2993e5a56b11ac8836692f147cfd5604388f38 | 18,543 | py | Python | op2orig/translator/c/python/op2_gen_openmp_simple.py | octurion/ecoop-artifact | 4afd9c44bddbd365141b0e3e38b26f971d5dd898 | [
"MIT"
] | null | null | null | op2orig/translator/c/python/op2_gen_openmp_simple.py | octurion/ecoop-artifact | 4afd9c44bddbd365141b0e3e38b26f971d5dd898 | [
"MIT"
] | null | null | null | op2orig/translator/c/python/op2_gen_openmp_simple.py | octurion/ecoop-artifact | 4afd9c44bddbd365141b0e3e38b26f971d5dd898 | [
"MIT"
] | null | null | null | ##########################################################################
#
# OpenMP code generator
#
# This routine is called by op2 which parses the input files
#
# It produces a file xxx_kernel.cpp for each kernel,
# plus a master kernel file
#
#######################################################################... | 30.905 | 143 | 0.512484 |
8e29d55763438496cb979931a67e9e766a90599d | 1,529 | py | Python | freeverse/expectations.py | Kazark/pyfreeverse | 07c6a914425da951cda99d976e2e530b9c6144da | [
"MIT"
] | null | null | null | freeverse/expectations.py | Kazark/pyfreeverse | 07c6a914425da951cda99d976e2e530b9c6144da | [
"MIT"
] | null | null | null | freeverse/expectations.py | Kazark/pyfreeverse | 07c6a914425da951cda99d976e2e530b9c6144da | [
"MIT"
] | 1 | 2018-03-03T16:06:54.000Z | 2018-03-03T16:06:54.000Z |
It = lambda: It
for method_name in dir(ActualValue):
if method_name.startswith('should'):
(lambda method_name:
setattr(It, method_name,
lambda expected:
lambda actual_value: getattr(actual_value, method_name)(expected))
)(method_name)
| 33.23913 | 87 | 0.606279 |
8e2a7ecb5e30e765a31e831a79df046ffd35183a | 5,255 | py | Python | splparser/parser.py | lowell80/splparser | 2b33d74d59565cc53ae47452126621300dba9ed8 | [
"BSD-3-Clause"
] | 31 | 2015-12-02T15:41:06.000Z | 2022-03-16T22:27:23.000Z | splparser/parser.py | lowell80/splparser | 2b33d74d59565cc53ae47452126621300dba9ed8 | [
"BSD-3-Clause"
] | 1 | 2021-06-24T11:23:00.000Z | 2021-06-24T11:23:00.000Z | splparser/parser.py | lowell80/splparser | 2b33d74d59565cc53ae47452126621300dba9ed8 | [
"BSD-3-Clause"
] | 15 | 2015-12-10T16:48:20.000Z | 2022-02-26T18:12:44.000Z | #!/usr/bin/env python
import imp
import logging
import os
import ply.yacc
LOGDIR = 'logs'
logging.getLogger().setLevel(logging.DEBUG)
| 38.639706 | 217 | 0.577735 |
8e2ad0c9668e9013681310d26a6aea715a24b95b | 8,884 | py | Python | events/sound_events.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | null | null | null | events/sound_events.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | 1 | 2021-02-24T21:50:18.000Z | 2021-02-24T21:50:18.000Z | events/sound_events.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | null | null | null | # Autogenerated file. ANY CHANGES WILL BE OVERWRITTEN
from to_python.core.types import FunctionType, \
FunctionArgument, \
FunctionArgumentValues, \
FunctionReturnTypes, \
FunctionSignature, \
FunctionDoc, \
EventData, \
CompoundEventData
DUMP_PARTIAL = [
CompoundEventData(
serv... | 37.327731 | 344 | 0.366276 |
8e2ae803021020350bb09f7d54399a26e4cd9148 | 4,400 | py | Python | irm/cges_utils.py | ashok-arjun/DomainBed | 8c21f36c0b447221c9ad9792d4d867fb5aa26198 | [
"MIT"
] | null | null | null | irm/cges_utils.py | ashok-arjun/DomainBed | 8c21f36c0b447221c9ad9792d4d867fb5aa26198 | [
"MIT"
] | null | null | null | irm/cges_utils.py | ashok-arjun/DomainBed | 8c21f36c0b447221c9ad9792d4d867fb5aa26198 | [
"MIT"
] | null | null | null | import os
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
import torch
import random
import numpy as np
import torch
import os
from collections import OrderedDict
... | 66.666667 | 150 | 0.277045 |
8e2b126355edbe84a1de3d96f2ced5993bbd3398 | 1,529 | py | Python | lib/cache.py | rx007/cheat.sh | 0df9db42214dc0bda0f474171583dcedbbfe5717 | [
"MIT"
] | 28,992 | 2017-05-24T12:21:03.000Z | 2022-03-31T09:35:08.000Z | lib/cache.py | rx007/cheat.sh | 0df9db42214dc0bda0f474171583dcedbbfe5717 | [
"MIT"
] | 274 | 2017-05-24T17:14:48.000Z | 2022-03-31T12:50:14.000Z | lib/cache.py | rx007/cheat.sh | 0df9db42214dc0bda0f474171583dcedbbfe5717 | [
"MIT"
] | 1,578 | 2017-05-24T20:40:41.000Z | 2022-03-31T15:23:42.000Z | """
Cache implementation.
Currently only two types of cache are allowed:
* "none" cache switched off
* "redis" use redis for cache
Configuration parameters:
cache.type = redis | none
cache.redis.db
cache.redis.host
cache.redis.port
"""
import os
import json
from config import CONFIG
_RE... | 20.662162 | 55 | 0.590582 |
8e2b2151bad3cd55a3b085be74899c264fdd8090 | 4,614 | py | Python | scripts/consensus.py | juanjo75es/s-aligner | 0e3dd3425ce40d5c2e062410f308300437f272b2 | [
"MIT"
] | null | null | null | scripts/consensus.py | juanjo75es/s-aligner | 0e3dd3425ce40d5c2e062410f308300437f272b2 | [
"MIT"
] | null | null | null | scripts/consensus.py | juanjo75es/s-aligner | 0e3dd3425ce40d5c2e062410f308300437f272b2 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
from Bio import SeqIO
import argparse
import sys
from argparse import RawTextHelpFormatter
import numpy as np
from collections import namedtuple
MySNP = namedtuple("MySNP", "pos prev new")
snps=[]
if __name__ == '__main__':
parser = argparse.ArgumentParser(prog='... | 35.221374 | 127 | 0.504551 |
8e2cb35cee027810b3a9f3b5a2585ec05cb53c10 | 3,287 | py | Python | scripts/backup_old/metadata.py | RodrigoNaves/ginan-bitbucket-update-tests | 4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c | [
"Apache-2.0"
] | 73 | 2021-07-08T23:35:08.000Z | 2022-03-31T15:17:58.000Z | scripts/backup_old/metadata.py | RodrigoNaves/ginan-bitbucket-update-tests | 4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c | [
"Apache-2.0"
] | 5 | 2021-09-27T14:27:32.000Z | 2022-03-21T23:50:02.000Z | scripts/backup_old/metadata.py | RodrigoNaves/ginan-bitbucket-update-tests | 4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c | [
"Apache-2.0"
] | 39 | 2021-07-12T05:42:51.000Z | 2022-03-31T15:15:34.000Z | import requests
import json
import argparse
import xml.etree.ElementTree as ET
#----------------------------------------
# example ---> python cost_metadata.py -s MOBS
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('-s',dest='station',default='',help="sta... | 40.580247 | 220 | 0.613325 |
8e2d474ceec169ad641399b6fbca19e9290b3d72 | 332 | py | Python | salt/utils/beacons.py | Noah-Huppert/salt | 998c382f5f2c3b4cbf7d96aa6913ada6993909b3 | [
"Apache-2.0"
] | 19 | 2016-01-29T14:37:52.000Z | 2022-03-30T18:08:01.000Z | salt/utils/beacons.py | Noah-Huppert/salt | 998c382f5f2c3b4cbf7d96aa6913ada6993909b3 | [
"Apache-2.0"
] | 223 | 2016-03-02T16:39:41.000Z | 2022-03-03T12:26:35.000Z | salt/utils/beacons.py | Noah-Huppert/salt | 998c382f5f2c3b4cbf7d96aa6913ada6993909b3 | [
"Apache-2.0"
] | 64 | 2016-02-04T19:45:26.000Z | 2021-12-15T02:02:31.000Z | """
Utilies for beacons
"""
import copy
def remove_hidden_options(config, whitelist):
"""
Remove any hidden options not whitelisted
"""
for entry in copy.copy(config):
for func in entry:
if func.startswith("_") and func not in whitelist:
config.remove(entry)
re... | 19.529412 | 62 | 0.623494 |
8e2fa21023b492b98716387cb3f3d9474c117974 | 806 | py | Python | k3rn3l-ctf-2021/united-trees-of-america/main.py | AZ-0/Writeups | 1420a51cbf55dae9ffd6d458aac6dec03aad6f1c | [
"MIT"
] | null | null | null | k3rn3l-ctf-2021/united-trees-of-america/main.py | AZ-0/Writeups | 1420a51cbf55dae9ffd6d458aac6dec03aad6f1c | [
"MIT"
] | null | null | null | k3rn3l-ctf-2021/united-trees-of-america/main.py | AZ-0/Writeups | 1420a51cbf55dae9ffd6d458aac6dec03aad6f1c | [
"MIT"
] | null | null | null | import random
import math
from Crypto.Util.number import *
flag = bytes_to_long(open('flag.txt','rb').read())
p = int(input('Enter a prime: '))
assert 10 < p, 'Prime too small'
assert p < 250, 'Prime too big'
assert isPrime(p), 'Number not prime'
coeffs = [random.getrandbits(128) for _ in range(1000)]
k ... | 25.1875 | 67 | 0.586849 |
8e30ac0c1a2d30dc96d7adaed4df1ae64f1e8c10 | 4,170 | py | Python | wtm_envs/mujoco/ant_four_rooms/navigate.py | knowledgetechnologyuhh/goal_conditioned_RL_baselines | 915fc875fd8cc75accd0804d99373916756f726e | [
"MIT"
] | 15 | 2020-07-01T16:16:09.000Z | 2021-12-20T21:56:33.000Z | wtm_envs/mujoco/ant_four_rooms/navigate.py | knowledgetechnologyuhh/goal_conditioned_RL_baselines | 915fc875fd8cc75accd0804d99373916756f726e | [
"MIT"
] | 14 | 2020-09-25T22:41:20.000Z | 2022-03-12T00:38:44.000Z | wtm_envs/mujoco/ant_four_rooms/navigate.py | knowledgetechnologyuhh/goal_conditioned_RL_baselines | 915fc875fd8cc75accd0804d99373916756f726e | [
"MIT"
] | 2 | 2020-07-01T16:19:08.000Z | 2020-11-28T10:45:59.000Z | from gym import utils
from wtm_envs.mujoco import ant_env
from wtm_envs.mujoco.hook_env_pddl import PDDLHookEnv
import numpy as np
| 58.732394 | 201 | 0.68777 |
8e311c72a870044e223da7fcbd021949601c16fc | 5,546 | py | Python | src/OTLMOW/OTLModel/Datatypes/DtcSierbeplAanleg.py | davidvlaminck/OTLClassPython | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | 2 | 2022-02-01T08:58:11.000Z | 2022-02-08T13:35:17.000Z | src/OTLMOW/OTLModel/Datatypes/DtcSierbeplAanleg.py | davidvlaminck/OTLMOW | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | null | null | null | src/OTLMOW/OTLModel/Datatypes/DtcSierbeplAanleg.py | davidvlaminck/OTLMOW | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | null | null | null | # coding=utf-8
from OTLMOW.OTLModel.BaseClasses.AttributeInfo import AttributeInfo
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut
from OTLMOW.OTLModel.Datatypes.ComplexField import ComplexField
from OTLMOW.OTLModel.Datatypes.KlAanplantingswijzeSierbeplanting import KlAanplantingswijzeSierbeplanting
f... | 50.880734 | 212 | 0.622611 |
8e31a8f06c8e8b07d56c47355fdc08ec8b4d9a6d | 1,033 | py | Python | scripts/migrate_game_servers.py | Eric-Le-Ge/online-town-public-release | 4397eefb11af6b7d40eb0cc5dd46d73405570091 | [
"Unlicense"
] | null | null | null | scripts/migrate_game_servers.py | Eric-Le-Ge/online-town-public-release | 4397eefb11af6b7d40eb0cc5dd46d73405570091 | [
"Unlicense"
] | null | null | null | scripts/migrate_game_servers.py | Eric-Le-Ge/online-town-public-release | 4397eefb11af6b7d40eb0cc5dd46d73405570091 | [
"Unlicense"
] | null | null | null | import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
ROOM_COLLECTION = "rooms"
cred = credentials.Certificate("../onlinetown-401f0-firebase-adminsdk-gab3z-1a7a54c2da.json");
firebase_admin.initialize_app(cred)
db = firestore.client()
SERVER_MAP = {
"BLANK": "BLANK",
}... | 28.694444 | 94 | 0.643756 |
8e31dbd191b4113bed77fb5423e06dc9fe9281eb | 8,542 | py | Python | examples/pqa_stacker.py | alex-ip/agdc | 9e9eb556c33792440a3736f64cd5f628cf3a1385 | [
"BSD-3-Clause"
] | null | null | null | examples/pqa_stacker.py | alex-ip/agdc | 9e9eb556c33792440a3736f64cd5f628cf3a1385 | [
"BSD-3-Clause"
] | null | null | null | examples/pqa_stacker.py | alex-ip/agdc | 9e9eb556c33792440a3736f64cd5f628cf3a1385 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#===============================================================================
# Copyright (c) 2014 Geoscience Australia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ar... | 46.172973 | 150 | 0.637321 |
8e32e2f7e162c653864236624b206fa5e65569ed | 2,645 | py | Python | 1_code/speed_challenge/difficulty_utils.py | jaimiles23/Multiplication_Medley | 1072dea1a5be0b339211ff39db6a89a90aca64c1 | [
"MIT"
] | null | null | null | 1_code/speed_challenge/difficulty_utils.py | jaimiles23/Multiplication_Medley | 1072dea1a5be0b339211ff39db6a89a90aca64c1 | [
"MIT"
] | null | null | null | 1_code/speed_challenge/difficulty_utils.py | jaimiles23/Multiplication_Medley | 1072dea1a5be0b339211ff39db6a89a90aca64c1 | [
"MIT"
] | null | null | null | """/**
* @author [Jai Miles]
* @email [jaimiles23@gmail.com]
* @create date 2020-05-21 11:55:58
* @modify date 2020-06-16 23:33:58
* @desc [
SC_Difficulty class with methods to set speed challenge difficulty:
- Ask for difficulties
- Acknowledge difficulty message.
]
*/
"""
##########
# Imports
####... | 25.679612 | 76 | 0.653308 |
8e3356c7912fd0f7b6244841488af8abd65adea1 | 1,600 | py | Python | examples/example07_branch_dag_parameterization.py | entailor/pytailor | dfd15a0b2a6c1fea6432721ef3b2bc6fb5aad583 | [
"BSD-3-Clause"
] | 9 | 2020-09-20T07:26:19.000Z | 2022-02-28T09:12:30.000Z | examples/example07_branch_dag_parameterization.py | entailor/pytailor | dfd15a0b2a6c1fea6432721ef3b2bc6fb5aad583 | [
"BSD-3-Clause"
] | 2 | 2020-10-03T07:53:23.000Z | 2020-10-12T11:40:24.000Z | examples/example07_branch_dag_parameterization.py | entailor/pytailor | dfd15a0b2a6c1fea6432721ef3b2bc6fb5aad583 | [
"BSD-3-Clause"
] | null | null | null | """
pyTailor Example 7
This example introduces the following NEW concepts:
- Use BranchTask to "branch out" a DAG
- For BranchTask definitions:
- Use *branch_files* to specify which files to use for branching
*branch_files* is given as one or more file tags.
"""
from pytailor import (
PythonTask,... | 23.529412 | 84 | 0.595625 |
8e33bc00683d4cf4a9536ce4e2daa6b3723bb494 | 716 | py | Python | app/tests/api_tests/test_schema.py | kaczmarj/grand-challenge.org | 8dc8a2170e51072354f7e94f2a22578805a67b94 | [
"Apache-2.0"
] | 101 | 2018-04-11T14:48:04.000Z | 2022-03-28T00:29:48.000Z | app/tests/api_tests/test_schema.py | kaczmarj/grand-challenge.org | 8dc8a2170e51072354f7e94f2a22578805a67b94 | [
"Apache-2.0"
] | 1,733 | 2018-03-21T11:56:16.000Z | 2022-03-31T14:58:30.000Z | app/tests/api_tests/test_schema.py | kaczmarj/grand-challenge.org | 8dc8a2170e51072354f7e94f2a22578805a67b94 | [
"Apache-2.0"
] | 42 | 2018-06-08T05:49:07.000Z | 2022-03-29T08:43:01.000Z | from drf_spectacular.validation import validate_schema
from rest_framework.test import APIRequestFactory
from grandchallenge.api.urls import SchemaView
| 27.538462 | 72 | 0.751397 |
8e360aca7a0096d2ef70db4b3365b99c68c728bf | 141 | py | Python | client0.py | pabitra0177/ITR-internship | 3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75 | [
"MIT"
] | null | null | null | client0.py | pabitra0177/ITR-internship | 3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75 | [
"MIT"
] | null | null | null | client0.py | pabitra0177/ITR-internship | 3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75 | [
"MIT"
] | null | null | null | import socket
s=socket.socket()
#host=socket.gethostname()
#print(host)
host=''
port=112
s.connect((host,port))
print(s.recv())
s.close()
| 10.846154 | 26 | 0.695035 |
8e3614f97a735aef0ef5def156ca789d1a024710 | 1,122 | py | Python | fstelemetry/telemetry.py | jbencina/fstelemetry | c9d58741e5c32d8019794e25d54146e2a85ce71b | [
"MIT"
] | 1 | 2021-12-28T22:26:47.000Z | 2021-12-28T22:26:47.000Z | fstelemetry/telemetry.py | jbencina/fstelemetry | c9d58741e5c32d8019794e25d54146e2a85ce71b | [
"MIT"
] | null | null | null | fstelemetry/telemetry.py | jbencina/fstelemetry | c9d58741e5c32d8019794e25d54146e2a85ce71b | [
"MIT"
] | null | null | null | from SimConnect import AircraftRequests, SimConnect
import csv
import os
import time | 26.093023 | 70 | 0.567736 |
8e368ecaa3618ea3350cdc9b894198340ff6d925 | 346 | py | Python | python/udacity_programming_foundations/translate.py | juancarlosqr/datascience | 2e4d78365b059a3e501e988bee53970ac0d718fc | [
"MIT"
] | null | null | null | python/udacity_programming_foundations/translate.py | juancarlosqr/datascience | 2e4d78365b059a3e501e988bee53970ac0d718fc | [
"MIT"
] | null | null | null | python/udacity_programming_foundations/translate.py | juancarlosqr/datascience | 2e4d78365b059a3e501e988bee53970ac0d718fc | [
"MIT"
] | null | null | null | #!/usr/bin/python
if __name__ == '__main__':
run_test() | 21.625 | 47 | 0.644509 |
8e3731f718e57164a53fc2dd11f980d626c81555 | 276 | py | Python | autoselenium/__init__.py | saizk/auto-selenium | 02c5ec3e02e4b36309002d8418be0d6a4ee56ebd | [
"MIT"
] | 2 | 2021-11-26T08:41:45.000Z | 2022-01-31T10:30:53.000Z | autoselenium/__init__.py | saizk/auto-selenium | 02c5ec3e02e4b36309002d8418be0d6a4ee56ebd | [
"MIT"
] | null | null | null | autoselenium/__init__.py | saizk/auto-selenium | 02c5ec3e02e4b36309002d8418be0d6a4ee56ebd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from autoselenium.driver import Driver
from autoselenium.download import download_driver, download_default_driver, get_version
__author__ = 'saizk'
__all__ = [
'Driver',
'download_driver',
'download_default_driver',
'get_version'
]
| 18.4 | 87 | 0.724638 |
8e38670c4af3cddf39a7934e3dd858bcc1966769 | 1,840 | py | Python | optumpublicdata/gov_data.py | cpaulisi/optumpublicdata | 8f62c3d856e02ee994f816a245329a08905abb85 | [
"MIT"
] | null | null | null | optumpublicdata/gov_data.py | cpaulisi/optumpublicdata | 8f62c3d856e02ee994f816a245329a08905abb85 | [
"MIT"
] | null | null | null | optumpublicdata/gov_data.py | cpaulisi/optumpublicdata | 8f62c3d856e02ee994f816a245329a08905abb85 | [
"MIT"
] | null | null | null | import pandas as pd
import requests | 40 | 102 | 0.658152 |
8e395970b87c621a1fcc58e8559a6aaf781e24f8 | 263 | py | Python | Code/Python/port_scan.py | rf-peixoto/Studies | 89178b6caa29cfa24d54058f3c7fc3424c541760 | [
"CC0-1.0"
] | 1 | 2021-02-10T12:53:37.000Z | 2021-02-10T12:53:37.000Z | Code/Python/port_scan.py | rf-peixoto/Studies | 89178b6caa29cfa24d54058f3c7fc3424c541760 | [
"CC0-1.0"
] | null | null | null | Code/Python/port_scan.py | rf-peixoto/Studies | 89178b6caa29cfa24d54058f3c7fc3424c541760 | [
"CC0-1.0"
] | null | null | null | import socket
import sys
for i in range(1, 65535):
skt = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
if skt.connect((sys.argv[1], i)) == 0:
print("Port: {0} OPEN".format(i))
skt.close()
except:
continue
| 21.916667 | 59 | 0.574144 |
8e3a44cfa7146ec2b5aaef9188e372242a439598 | 1,933 | py | Python | h2o-py/tests/testdir_munging/pyunit_unique.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 6,098 | 2015-05-22T02:46:12.000Z | 2022-03-31T16:54:51.000Z | h2o-py/tests/testdir_munging/pyunit_unique.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 2,517 | 2015-05-23T02:10:54.000Z | 2022-03-30T17:03:39.000Z | h2o-py/tests/testdir_munging/pyunit_unique.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 2,199 | 2015-05-22T04:09:55.000Z | 2022-03-28T22:20:45.000Z | import sys
sys.path.insert(1,"../../")
import h2o
from tests import pyunit_utils
if __name__ == "__main__":
pyunit_utils.standalone_test(pyunit_unique)
else:
pyunit_unique()
| 39.44898 | 120 | 0.669943 |
8e3d4fcee238ceff7811d96519efed30ed465e26 | 261 | py | Python | Aula 17/ex2.py | ohanamirella/TrabalhosPython | 453a97848654b0391d0d717bf102f6c466f79b3d | [
"MIT"
] | 1 | 2020-03-09T13:38:55.000Z | 2020-03-09T13:38:55.000Z | Aula 17/ex2.py | ohanamirella/TrabalhosPython | 453a97848654b0391d0d717bf102f6c466f79b3d | [
"MIT"
] | null | null | null | Aula 17/ex2.py | ohanamirella/TrabalhosPython | 453a97848654b0391d0d717bf102f6c466f79b3d | [
"MIT"
] | null | null | null | # Faa um prgrama que leia um numero inteiro de 1 a 10 no teclado e mostre se voc acertou
# ou o nmero digitado maior ou meor.
# Quando voc acertar o programa deve ser finalizado
from randon import randint
aleatorio = randint(1,10)
print(aleatorio)
if | 29 | 91 | 0.766284 |
8e3dc13790b6ecb78f8cb8ae5b5dab37555d4c18 | 52 | py | Python | nipy/externals/__init__.py | yarikoptic/NiPy-OLD | 8759b598ac72d3b9df7414642c7a662ad9c55ece | [
"BSD-3-Clause"
] | 1 | 2015-08-22T16:14:45.000Z | 2015-08-22T16:14:45.000Z | nipy/externals/__init__.py | yarikoptic/NiPy-OLD | 8759b598ac72d3b9df7414642c7a662ad9c55ece | [
"BSD-3-Clause"
] | null | null | null | nipy/externals/__init__.py | yarikoptic/NiPy-OLD | 8759b598ac72d3b9df7414642c7a662ad9c55ece | [
"BSD-3-Clause"
] | null | null | null | # init for externals package
from . import argparse
| 17.333333 | 28 | 0.788462 |
8e40586624bfd81a0d9a6a3e8dac58538818efa1 | 310 | py | Python | Ex6/q3/server.py | sreyom31/app-srm | 5ca1ac1a3681e160564b05a7d10db2d1b94e5fd1 | [
"MIT"
] | null | null | null | Ex6/q3/server.py | sreyom31/app-srm | 5ca1ac1a3681e160564b05a7d10db2d1b94e5fd1 | [
"MIT"
] | null | null | null | Ex6/q3/server.py | sreyom31/app-srm | 5ca1ac1a3681e160564b05a7d10db2d1b94e5fd1 | [
"MIT"
] | null | null | null | import socket
s = socket.socket()
host = socket.gethostname()
port = 12346
s.bind((host, port))
s.listen(5)
while True:
c, addr = s.accept()
print("connection from", addr)
rec = c.recv(1024).decode("utf-8")
print(rec)
if rec == 'ping':
c.sendto('pong'.encode(), addr)
c.close() | 20.666667 | 39 | 0.6 |
8e41732c0c1c201ebe223546073ee99f68d2d8f4 | 1,085 | py | Python | spider/luogu.py | MeiK2333/recent_contests | d3c7d2bfb83651b556b501f6000117493503dc7c | [
"MIT"
] | 3 | 2019-08-01T13:18:12.000Z | 2021-04-21T09:10:55.000Z | spider/luogu.py | MeiK-h/recent_contests | 5d4890b3fb9bf65bb31854a8be0e6049ebbf0a06 | [
"MIT"
] | 2 | 2021-06-04T04:53:04.000Z | 2021-06-15T06:40:09.000Z | spider/luogu.py | MeiK-h/recent_contests | 5d4890b3fb9bf65bb31854a8be0e6049ebbf0a06 | [
"MIT"
] | 1 | 2021-06-10T13:33:36.000Z | 2021-06-10T13:33:36.000Z | from datetime import datetime, timezone
import requests
from schemas import Contest
from spider.utils import update_platform
if __name__ == "__main__":
main()
| 25.232558 | 116 | 0.587097 |
8e4174c582d0f7afb25fdca0511c1255d5ea364c | 1,054 | py | Python | img_colorization.py | MuhammedAshraf2020/ImageColorization | e18949e0bd577e6ef85b3c376a28f7d51206fb1f | [
"MIT"
] | 2 | 2021-01-21T22:23:40.000Z | 2021-01-29T23:19:14.000Z | img_colorization.py | MuhammedAshraf2020/ImageColorization | e18949e0bd577e6ef85b3c376a28f7d51206fb1f | [
"MIT"
] | null | null | null | img_colorization.py | MuhammedAshraf2020/ImageColorization | e18949e0bd577e6ef85b3c376a28f7d51206fb1f | [
"MIT"
] | null | null | null | from processing import *
from decodingModel import *
# Using Transfer learning
feature_extract_model = VggModel()
#Decoding model
colorize = model()
#prepare data in hard disk
PrepareData(datapath = "/content/data" , save_file = "/content/processed/" ,
target_size = (224 , 224) , batch_size = 32 , fea... | 34 | 104 | 0.701139 |
8e42b718ee16f23a8ba27a4d6ff7efea8f8ce315 | 23,434 | py | Python | cloudify_cli/env.py | TS-at-WS/cloudify-cli | 598b54ecd67495a76678177f910cdc5eac6128d0 | [
"Apache-2.0"
] | null | null | null | cloudify_cli/env.py | TS-at-WS/cloudify-cli | 598b54ecd67495a76678177f910cdc5eac6128d0 | [
"Apache-2.0"
] | 10 | 2020-08-02T07:45:42.000Z | 2021-06-11T01:03:45.000Z | cloudify_cli/env.py | TS-at-WS/cloudify-cli | 598b54ecd67495a76678177f910cdc5eac6128d0 | [
"Apache-2.0"
] | null | null | null | ########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. 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... | 35.886677 | 79 | 0.646454 |
8e44044cdc3759630dbb0df881a857baa4e03f7d | 972 | py | Python | Calibration/HcalAlCaRecoProducers/python/alcastreamHcalIsotrkOutput_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Calibration/HcalAlCaRecoProducers/python/alcastreamHcalIsotrkOutput_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Calibration/HcalAlCaRecoProducers/python/alcastreamHcalIsotrkOutput_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
# output block for alcastream HCAL Isotrk
# output module
# module alcastreamHcalIsotrkOutput = PoolOutputModule
alcastreamHcalIsotrkOutput = cms.PSet(
outputCommands = cms.untracked.vstring('drop *',
'keep *_offlineBeamSpot_*_*... | 48.6 | 84 | 0.429012 |
8e44300df9e4409d4508d36cc2011c526c3cb3f9 | 3,256 | py | Python | Python (Basic) Skills Certification Test/2.Python: String Representations of Objects.py | manavnarang/HackerrankCertifications | 72d5d493a48c7c1221398a5b20b01bfa7aad26ea | [
"BSD-3-Clause"
] | 1 | 2021-04-23T10:01:38.000Z | 2021-04-23T10:01:38.000Z | Python (Basic) Skills Certification Test/2.Python: String Representations of Objects.py | manavnarang/HackerrankCertifications | 72d5d493a48c7c1221398a5b20b01bfa7aad26ea | [
"BSD-3-Clause"
] | null | null | null | Python (Basic) Skills Certification Test/2.Python: String Representations of Objects.py | manavnarang/HackerrankCertifications | 72d5d493a48c7c1221398a5b20b01bfa7aad26ea | [
"BSD-3-Clause"
] | null | null | null | #Python: String Representations of Objects
#Implement two vehicle classes:
#Car:
#The constructor for Car must take two arguments. The first of them is its maximum speed, and the second one is a string that denotes the units in which the speed is given: either "km/h" or "mph".
#The class must be implemented to return... | 38.761905 | 433 | 0.697174 |
8e455903aafe2cb46d5096d1e57569e66b92de48 | 42,807 | py | Python | tests/transitfeed/testtrip.py | gungnir888/transitfeed3 | 406e7ca3fe274521ef5dbf9277c729182b5183cb | [
"Apache-2.0"
] | null | null | null | tests/transitfeed/testtrip.py | gungnir888/transitfeed3 | 406e7ca3fe274521ef5dbf9277c729182b5183cb | [
"Apache-2.0"
] | null | null | null | tests/transitfeed/testtrip.py | gungnir888/transitfeed3 | 406e7ca3fe274521ef5dbf9277c729182b5183cb | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 47.93617 | 117 | 0.636134 |
8e458ec666fb6bb429d2b86775e948ed0999ac48 | 2,668 | py | Python | speaking_portfolio/models.py | jacobian/jacobian.org | cacff78aa68cb1585a63c04ff5bd7fc484066730 | [
"Apache-2.0"
] | 8 | 2018-11-12T21:11:18.000Z | 2020-10-20T09:03:54.000Z | speaking_portfolio/models.py | jacobian/jacobian.org | cacff78aa68cb1585a63c04ff5bd7fc484066730 | [
"Apache-2.0"
] | 5 | 2018-11-28T12:56:57.000Z | 2020-02-05T21:56:48.000Z | speaking_portfolio/models.py | jacobian/jacobian.org | cacff78aa68cb1585a63c04ff5bd7fc484066730 | [
"Apache-2.0"
] | 5 | 2018-11-19T16:47:15.000Z | 2020-02-14T22:34:26.000Z | import micawber
import logging
from django.db import models
from django_postgres_unlimited_varchar import UnlimitedCharField
from django.urls import reverse
from django.utils import timezone
from django.contrib.postgres.fields import JSONField
log = logging.getLogger(__name__)
PRESENTATION_TYPE_CHOICES = [
(i, ... | 27.22449 | 80 | 0.668666 |
8e46875c490fe502ca1757b91de8b131eca3be26 | 1,365 | py | Python | knowledge_graph/preprocessing/preprocessor.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 3 | 2021-04-28T07:19:39.000Z | 2022-03-07T09:34:19.000Z | knowledge_graph/preprocessing/preprocessor.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 18 | 2020-08-24T12:40:38.000Z | 2022-03-12T00:47:14.000Z | knowledge_graph/preprocessing/preprocessor.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 1 | 2020-10-15T10:09:20.000Z | 2020-10-15T10:09:20.000Z | from preprocessing.sentence_processor import *
from preprocessing.coreference import *
from preprocessing.to_statement import *
from utils.macro import *
| 33.292683 | 79 | 0.649084 |
8e47cd17e77fb3b0811f86a62f39cd51c5713162 | 5,400 | py | Python | spardaqus/core/types.py | bretlowery/Spardaqus | 675aac35823541d08f99af70b5d2a50264e561f9 | [
"MIT"
] | null | null | null | spardaqus/core/types.py | bretlowery/Spardaqus | 675aac35823541d08f99af70b5d2a50264e561f9 | [
"MIT"
] | null | null | null | spardaqus/core/types.py | bretlowery/Spardaqus | 675aac35823541d08f99af70b5d2a50264e561f9 | [
"MIT"
] | null | null | null | from enum import Enum, unique
import socket
from pyspark.sql.types import StringType, StructType, ArrayType
from spardaqus import globals
from spardaqus.core.utils import mergedicts
from spardaqus.core.exceptions import \
SpardaqusMissingSparkSQLStructMetadata, \
SpardaqusSparkSQLStructParseError, \
Spard... | 46.153846 | 147 | 0.537593 |