hexsha stringlengths 40 40 | size int64 2 991k | ext stringclasses 2
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 208 | max_stars_repo_name stringlengths 6 106 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses list | max_stars_count int64 1 33.5k ⌀ | 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 4 208 | max_issues_repo_name stringlengths 6 106 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses list | max_issues_count int64 1 16.3k ⌀ | 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 4 208 | max_forks_repo_name stringlengths 6 106 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses list | max_forks_count int64 1 6.91k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 2 991k | avg_line_length float64 1 36k | max_line_length int64 1 977k | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93d23fc0720fff2958a75963b5d92b0c778630ef | 331 | ex | Elixir | lib/battle_city/environment/ice.ex | clszzyh/battle_city_core | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | null | null | null | lib/battle_city/environment/ice.ex | clszzyh/battle_city_core | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | 38 | 2020-12-17T12:40:44.000Z | 2022-03-31T02:05:59.000Z | lib/battle_city/environment/ice.ex | clszzyh/battle_city | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | null | null | null | defmodule BattleCity.Environment.Ice do
@moduledoc false
use BattleCity.Environment,
health: 0,
enter?: false
@impl true
def handle_enter(_, %{speed: speed} = t) do
{:ok, %{t | speed: speed + 10}}
end
@impl true
def handle_leave(_, %{speed: speed} = t) do
{:ok, %{t | speed: speed - 10}}... | 18.388889 | 45 | 0.613293 |
93d24f098d303a0cd180330a521903f8d4177330 | 1,100 | ex | Elixir | ping_elixir/lib/ping_elixir_web/channels/user_socket.ex | tedpark/Clojure_Elixir_Concurrent_Ping | 44fd2cc7b4056332998695de46b37c3e3ff54be7 | [
"MIT"
] | null | null | null | ping_elixir/lib/ping_elixir_web/channels/user_socket.ex | tedpark/Clojure_Elixir_Concurrent_Ping | 44fd2cc7b4056332998695de46b37c3e3ff54be7 | [
"MIT"
] | null | null | null | ping_elixir/lib/ping_elixir_web/channels/user_socket.ex | tedpark/Clojure_Elixir_Concurrent_Ping | 44fd2cc7b4056332998695de46b37c3e3ff54be7 | [
"MIT"
] | null | null | null | defmodule PingElixirWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", PingElixirWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all ... | 30.555556 | 85 | 0.697273 |
93d2632dffc1d36b26cc97f9ef5673a805e686fd | 516 | exs | Elixir | priv/repo/migrations/20220129030105_reload_views_from_files.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | priv/repo/migrations/20220129030105_reload_views_from_files.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | priv/repo/migrations/20220129030105_reload_views_from_files.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigade.Repo.Migrations.ReloadViewsFromFiles do
use Ecto.Migration
import BikeBrigade.MigrationUtils
def change do
# removing since we load these views later
# execute "drop view if exists rider_stats", ""
# load_sql("rider_stats_view.sql", "drop view if exists rider_stats")
# ... | 36.857143 | 99 | 0.755814 |
93d2977ddd832c410b96f78035661d819b8930b8 | 268 | ex | Elixir | apps/re_web/lib/sentry_event_filter.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re_web/lib/sentry_event_filter.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re_web/lib/sentry_event_filter.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule ReWeb.SentryEventFilter do
@moduledoc """
Module to ignore sentry events
"""
@behaviour Sentry.EventFilter
def exclude_exception?(%Elixir.Phoenix.Router.NoRouteError{}, :plug), do: true
def exclude_exception?(_exception, _source), do: false
end
| 26.8 | 80 | 0.753731 |
93d2b1c03ce4692a5984d10a1f4476df4add8982 | 72 | ex | Elixir | lib/metrics/repo_instrumenter.ex | helium/console | c6912b521926455ee0d4172dbd8e8183bdbae186 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | lib/metrics/repo_instrumenter.ex | helium/console | c6912b521926455ee0d4172dbd8e8183bdbae186 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | lib/metrics/repo_instrumenter.ex | helium/console | c6912b521926455ee0d4172dbd8e8183bdbae186 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule App.Repo.Instrumenter do
use Prometheus.EctoInstrumenter
end | 24 | 34 | 0.861111 |
93d2b1f008c8b01b7020b34d22c4c410d9c77417 | 704 | ex | Elixir | lib/gituser/user/commands/list_user_data.ex | vinolivae/gituser | 30dd93a8ea8ac5a8d40b91a17ee2eb29ed6bfd81 | [
"MIT"
] | null | null | null | lib/gituser/user/commands/list_user_data.ex | vinolivae/gituser | 30dd93a8ea8ac5a8d40b91a17ee2eb29ed6bfd81 | [
"MIT"
] | null | null | null | lib/gituser/user/commands/list_user_data.ex | vinolivae/gituser | 30dd93a8ea8ac5a8d40b91a17ee2eb29ed6bfd81 | [
"MIT"
] | null | null | null | defmodule Gituser.User.Commands.ListUserData do
@spec execute(user_name :: String.t()) :: {:ok, User.t()} | {:error, :not_found}
def execute(user_name) do
case github_client().user_repos(user_name) do
{:ok, user_datas} ->
datas = Enum.map(user_datas, &build_user_data/1)
{:ok, datas}
... | 27.076923 | 87 | 0.646307 |
93d2be80db50226fa5445ff097f978d43604241d | 1,645 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/row.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/row.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/row.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 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... | 32.254902 | 89 | 0.729483 |
93d2dcb395635c261e9a0b5aa39f9ad721b089bf | 185 | ex | Elixir | lib/oniichain_web/views/peer_view.ex | freester1/OniiChain | 28153c2fa3b1425aeac240df016c907d5b822101 | [
"Apache-2.0"
] | 9 | 2017-12-17T02:58:48.000Z | 2018-11-07T13:48:50.000Z | lib/oniichain_web/views/peer_view.ex | freester1/OniiChain | 28153c2fa3b1425aeac240df016c907d5b822101 | [
"Apache-2.0"
] | 1 | 2017-12-12T23:58:22.000Z | 2017-12-13T00:00:21.000Z | lib/oniichain_web/views/peer_view.ex | freester1/OniiChain | 28153c2fa3b1425aeac240df016c907d5b822101 | [
"Apache-2.0"
] | 3 | 2017-12-12T23:57:20.000Z | 2018-03-03T22:13:38.000Z | defmodule OniichainWeb.PeerView do
use OniichainWeb, :view
def render("200.json", %{}) do
%{}
end
def render("peers.json", %{peers: peers}) do
%{peers: peers}
end
end | 18.5 | 46 | 0.632432 |
93d2e57173b880fa0398c79e615aa6ee8936a25b | 2,922 | ex | Elixir | lib/live_element/test/structs.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | lib/live_element/test/structs.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | lib/live_element/test/structs.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | defmodule LiveElementTest.View do
@moduledoc """
The struct for testing LiveViews.
The following public fields represent the LiveView:
* `id` - The DOM id of the LiveView
* `module` - The module of the running LiveView
* `pid` - The Pid of the running LiveView
* `endpoint` - The endpoint for the... | 26.807339 | 86 | 0.610883 |
93d2f27a17162411d7a53158616060fbdc01f700 | 17,263 | ex | Elixir | lib/ps2/api/query_builder.ex | Bentheburrito/planetside_api | 1c419c5a9d52ab354493ac0ded2a50e4d3ff6c60 | [
"MIT"
] | 4 | 2020-04-04T16:28:51.000Z | 2021-12-15T15:33:39.000Z | lib/ps2/api/query_builder.ex | Bentheburrito/planetside_api | 1c419c5a9d52ab354493ac0ded2a50e4d3ff6c60 | [
"MIT"
] | null | null | null | lib/ps2/api/query_builder.ex | Bentheburrito/planetside_api | 1c419c5a9d52ab354493ac0ded2a50e4d3ff6c60 | [
"MIT"
] | null | null | null | defmodule PS2.API.QueryBuilder do
@moduledoc """
A module for creating Census API queries in a clean manner via pipelines.
### Example
iex> import PS2.API.QueryBuilder
PS2.API.QueryBuilder
iex> alias PS2.API.Query
PS2.API.Query
iex> query = Query.new(collection: "character")
...> |> term("chara... | 36.729787 | 126 | 0.6635 |
93d2f6506cfed4a1263cea8676a146603c130926 | 969 | ex | Elixir | clients/plus/lib/google_api/plus/v1/deserializer.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/deserializer.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/deserializer.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 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... | 37.269231 | 77 | 0.764706 |
93d31fde21eefc51235046ebdf035e3215cd3562 | 1,700 | exs | Elixir | exercises/armstrong-numbers/armstrong_number_test.exs | pashutk/elixir | 35938cf20bca2c40b0ec0bd1ce2227863a2cd318 | [
"MIT"
] | null | null | null | exercises/armstrong-numbers/armstrong_number_test.exs | pashutk/elixir | 35938cf20bca2c40b0ec0bd1ce2227863a2cd318 | [
"MIT"
] | 1 | 2019-06-13T09:31:54.000Z | 2019-06-13T09:31:54.000Z | exercises/armstrong-numbers/armstrong_number_test.exs | pashutk/elixir | 35938cf20bca2c40b0ec0bd1ce2227863a2cd318 | [
"MIT"
] | 1 | 2019-06-13T04:29:09.000Z | 2019-06-13T04:29:09.000Z | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("armstrong_number.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule ArmstrongNumberTest do
use ExUnit.Case
test "One-digit numbers are Armstrong numbers" do
assert ArmstrongNumber.valid?(1)
assert ... | 25.757576 | 65 | 0.740588 |
93d35d38f97280da53c8fcbb783ad84b37b58cf3 | 86 | exs | Elixir | test/views/layout_view_test.exs | jchartsell/atbash_cipher | 707d8efa97fc36794c9e69717d8786e26da4d479 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | jchartsell/atbash_cipher | 707d8efa97fc36794c9e69717d8786e26da4d479 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | jchartsell/atbash_cipher | 707d8efa97fc36794c9e69717d8786e26da4d479 | [
"MIT"
] | null | null | null | defmodule AtbashCipher.LayoutViewTest do
use AtbashCipher.ConnCase, async: true
end
| 21.5 | 40 | 0.837209 |
93d37352e9d3ccc384af81493a27be7ba92e49a5 | 3,466 | exs | Elixir | test/extrace_test.exs | LostKobrakai/extrace | cb569b491daa3ac2307b73b1b4b28943b49f65f7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | test/extrace_test.exs | LostKobrakai/extrace | cb569b491daa3ac2307b73b1b4b28943b49f65f7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | test/extrace_test.exs | LostKobrakai/extrace | cb569b491daa3ac2307b73b1b4b28943b49f65f7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | defmodule ExtraceTest do
use ExUnit.Case
import Extrace, only: [to_erl_tspec: 1, format: 1]
test "to_erl_tspec/1" do
shellfun = make_shellfun("fn([n, _]) when n > 10 -> :ok end")
matchspec = [{[:"$1", :_], [{:>, :"$1", 10}], [:ok]}]
assert to_erl_tspec({:queue, :in, shellfun}) == {:queue, :in, matc... | 33.650485 | 108 | 0.541258 |
93d38d94c30f28b82bb678eef2f89280afac123a | 680 | exs | Elixir | config/test.exs | mzgajner/smena | 6c0243ae1e8d1cef6e8a8e240f0f6b703ea638c9 | [
"Unlicense"
] | null | null | null | config/test.exs | mzgajner/smena | 6c0243ae1e8d1cef6e8a8e240f0f6b703ea638c9 | [
"Unlicense"
] | null | null | null | config/test.exs | mzgajner/smena | 6c0243ae1e8d1cef6e8a8e240f0f6b703ea638c9 | [
"Unlicense"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :app, Smena.Repo,
username: System.get_env("PGUSER"),
password: System.get_env("PGPASSWORD"),
database... | 29.565217 | 58 | 0.741176 |
93d39bc2193988a3884566cf05ecc512ea1e0801 | 2,961 | ex | Elixir | clients/jobs/lib/google_api/jobs/v3/model/google_cloud_talent_v4_custom_attribute.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v3/model/google_cloud_talent_v4_custom_attribute.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v3/model/google_cloud_talent_v4_custom_attribute.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# 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, s... | 52.875 | 511 | 0.74029 |
93d3c20f708ced31af09b0e30b5de571ecd2a778 | 878 | exs | Elixir | test/graphql/astra_graphql_test.exs | omnifroodle/astraex | 873d5ca985c8387f236c086ffb76780092823e01 | [
"Apache-2.0"
] | 3 | 2021-02-16T20:30:52.000Z | 2021-08-16T15:02:59.000Z | test/graphql/astra_graphql_test.exs | omnifroodle/astraex | 873d5ca985c8387f236c086ffb76780092823e01 | [
"Apache-2.0"
] | null | null | null | test/graphql/astra_graphql_test.exs | omnifroodle/astraex | 873d5ca985c8387f236c086ffb76780092823e01 | [
"Apache-2.0"
] | null | null | null | defmodule AstraGraphqlTest do
use ExUnit.Case
doctest Astra.Graphql
describe "schema" do
test "query" do
query = """
query GetTables {
keyspace(name: "test") {
name
tables {
name
columns {
name
kind
ty... | 19.086957 | 81 | 0.390661 |
93d3e537485db125fbd524f51d1b0cbf752638ec | 3,691 | ex | Elixir | lib/apds9960/sensor.ex | mnishiguchi/apds9960 | e37108f84f40fc21487879d419dbf55866d5babf | [
"MIT"
] | null | null | null | lib/apds9960/sensor.ex | mnishiguchi/apds9960 | e37108f84f40fc21487879d419dbf55866d5babf | [
"MIT"
] | null | null | null | lib/apds9960/sensor.ex | mnishiguchi/apds9960 | e37108f84f40fc21487879d419dbf55866d5babf | [
"MIT"
] | null | null | null | defmodule APDS9960.Sensor do
@moduledoc "The APDS9960 sensor."
alias APDS9960.{Comm, Sensor, Transport}
@i2c_address 0x39
use TypedStruct
typedstruct do
field(:transport, Transport.t(), enforce: true)
end
@typedoc "The APDS9960 sensor option"
@type option() :: [
{:bus_name, binary}
... | 29.062992 | 86 | 0.634245 |
93d3efb07ca81f00acf83802b96c88c3b30bf392 | 859 | ex | Elixir | lib/runlet/ctrl/start.ex | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | 4 | 2020-01-12T19:04:46.000Z | 2021-09-20T14:37:22.000Z | lib/runlet/ctrl/start.ex | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | null | null | null | lib/runlet/ctrl/start.ex | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | 1 | 2021-09-20T14:37:25.000Z | 2021-09-20T14:37:25.000Z | defmodule Runlet.Ctrl.Start do
@moduledoc "Start a stopped process"
@doc """
Start a process.
"""
def exec(%Runlet{uid: uid} = env, pid), do: exec(env, pid, uid)
@doc """
Start multiple processes.
"""
@spec exec(Runlet.t(), String.t(), String.t()) :: Enumerable.t()
def exec(env, pid, uid) when is_... | 23.861111 | 70 | 0.559953 |
93d3f4e6a86501108c6a0f7caeb98b726c446c59 | 150 | exs | Elixir | test/noaa_weather_test.exs | jjdonov/noaa_weather | d849f6e6122d1219c63ec5b4e9a4254ca97ac3a3 | [
"MIT"
] | null | null | null | test/noaa_weather_test.exs | jjdonov/noaa_weather | d849f6e6122d1219c63ec5b4e9a4254ca97ac3a3 | [
"MIT"
] | null | null | null | test/noaa_weather_test.exs | jjdonov/noaa_weather | d849f6e6122d1219c63ec5b4e9a4254ca97ac3a3 | [
"MIT"
] | null | null | null | defmodule NoaaWeatherTest do
use ExUnit.Case
doctest NoaaWeather
test "greets the world" do
assert NoaaWeather.hello() == :world
end
end
| 16.666667 | 40 | 0.733333 |
93d3f86687886eaea74555504217ab71eb9192a8 | 2,768 | exs | Elixir | elixir/test/homework/merchants_test.exs | pauleibye/web-homework | 1eb7a781796ee9186c8591207f87de96d138d5fd | [
"MIT"
] | 1 | 2021-03-15T04:09:23.000Z | 2021-03-15T04:09:23.000Z | elixir/test/homework/merchants_test.exs | pauleibye/web-homework | 1eb7a781796ee9186c8591207f87de96d138d5fd | [
"MIT"
] | null | null | null | elixir/test/homework/merchants_test.exs | pauleibye/web-homework | 1eb7a781796ee9186c8591207f87de96d138d5fd | [
"MIT"
] | null | null | null | defmodule Homework.MerchantsTest do
use Homework.DataCase
alias Homework.Merchants
describe "merchants" do
alias Homework.Merchants.Merchant
@valid_attrs %{description: "some description", name: "some name"}
@update_attrs %{
description: "some updated description",
name: "some updated n... | 34.6 | 95 | 0.697254 |
93d4261062a3eb02c73a23e1153014850506e6b3 | 201,988 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/api/projects.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/api/projects.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/api/projects.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# 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, s... | 49.385819 | 1,856 | 0.625483 |
93d429f0aa84b513de7d98bf226f1ebb84d86808 | 1,188 | ex | Elixir | lib/teslamate/log/car.ex | fmossott/teslamate | 611296aa4b95db117a13e6aa284e673bc0c66a7d | [
"MIT"
] | 1 | 2022-01-30T17:46:07.000Z | 2022-01-30T17:46:07.000Z | lib/teslamate/log/car.ex | fmossott/teslamate | 611296aa4b95db117a13e6aa284e673bc0c66a7d | [
"MIT"
] | null | null | null | lib/teslamate/log/car.ex | fmossott/teslamate | 611296aa4b95db117a13e6aa284e673bc0c66a7d | [
"MIT"
] | null | null | null | defmodule TeslaMate.Log.Car do
use Ecto.Schema
import Ecto.Changeset
alias TeslaMate.Log.{ChargingProcess, Position, Drive}
alias TeslaMate.Settings.CarSettings
schema "cars" do
field :name, :string
field :efficiency, :float
field :model, :string
field :trim_badging, :string
field :marke... | 21.6 | 56 | 0.645623 |
93d42b9610ab3b0fa6563d294f002e4b720b61ec | 22,914 | exs | Elixir | test/json_pointer_test.exs | kianmeng/elixir-jsonpointer | 637142af361b4a0c3774a5c89017dcb16728ab45 | [
"MIT"
] | 9 | 2018-07-01T22:01:53.000Z | 2022-03-09T12:21:10.000Z | test/json_pointer_test.exs | kianmeng/elixir-jsonpointer | 637142af361b4a0c3774a5c89017dcb16728ab45 | [
"MIT"
] | 3 | 2019-01-04T07:47:01.000Z | 2019-07-31T09:15:23.000Z | test/json_pointer_test.exs | kianmeng/elixir-jsonpointer | 637142af361b4a0c3774a5c89017dcb16728ab45 | [
"MIT"
] | 4 | 2018-05-03T17:02:02.000Z | 2021-11-21T10:57:03.000Z | defmodule JSONPointerTest do
use ExUnit.Case
doctest JSONPointer
doctest JSONPointer.Utils
defp rfc_data,
do: %{
"foo" => ["bar", "baz"],
"bar" => %{"baz" => 10},
"" => 0,
"a/b" => 1,
"c%d" => 2,
"e^f" => 3,
"g|h" => 4,
"i\\j" => 5,
"k\"l" => 6,
"... | 33.451095 | 106 | 0.386183 |
93d495908536dcef50524fb6ce187a64d8f18cbe | 1,450 | ex | Elixir | lib/ex_oapi/parser/context/paths/paths_map.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | lib/ex_oapi/parser/context/paths/paths_map.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | lib/ex_oapi/parser/context/paths/paths_map.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | defmodule ExOAPI.Parser.V3.Context.Paths.Map do
@behaviour Ecto.Type
import Ecto.Changeset, only: [apply_action: 2]
alias ExOAPI.Parser.V3.Context
@type t() :: %{String.t() => Context.Paths.t()}
@ex_oapi_paths ExOAPI.Parser.ex_oapi_paths()
@impl Ecto.Type
def type, do: :map
@impl Ecto.Type
def l... | 24.166667 | 103 | 0.564138 |
93d4b29eacf1153ecf92ae59fe0a029b97936a11 | 1,040 | ex | Elixir | dummy/test/support/conn_case.ex | zgohr/turbo_ecto | 2467be3f0923193349c08d18061efbc952523b21 | [
"MIT"
] | 4 | 2019-01-23T14:10:31.000Z | 2019-05-14T15:41:11.000Z | dummy/test/support/conn_case.ex | zgohr/turbo_ecto | 2467be3f0923193349c08d18061efbc952523b21 | [
"MIT"
] | 35 | 2019-02-19T02:11:33.000Z | 2021-09-01T07:09:42.000Z | dummy/test/support/conn_case.ex | zgohr/turbo_ecto | 2467be3f0923193349c08d18061efbc952523b21 | [
"MIT"
] | 4 | 2019-11-03T16:11:39.000Z | 2022-03-05T14:34:23.000Z | defmodule DummyWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the ... | 26.666667 | 67 | 0.715385 |
93d4cba2d9fef8c2d0240eb2dffe83f3f1251d72 | 736 | ex | Elixir | lib/bmp280/measurement.ex | dkuku/bmp280 | e7cb8fcef0043a354a9c2dde0946ab1d033c0b59 | [
"Apache-2.0"
] | 11 | 2020-09-17T08:03:11.000Z | 2021-04-28T16:20:13.000Z | lib/bmp280/measurement.ex | dkuku/bmp280 | e7cb8fcef0043a354a9c2dde0946ab1d033c0b59 | [
"Apache-2.0"
] | 13 | 2021-01-31T23:08:26.000Z | 2021-03-27T23:08:42.000Z | lib/bmp280/measurement.ex | dkuku/bmp280 | e7cb8fcef0043a354a9c2dde0946ab1d033c0b59 | [
"Apache-2.0"
] | 3 | 2021-09-05T08:48:27.000Z | 2021-10-21T17:14:43.000Z | defmodule BMP280.Measurement do
@moduledoc """
One sensor measurement report
The temperature, pressure and relative humidity measurements are computed
directly from the sensor. All other values are derived.
"""
defstruct [
:temperature_c,
:pressure_pa,
:altitude_m,
humidity_rh: :unknown,
... | 26.285714 | 75 | 0.639946 |
93d4e41f1f4c34b6bd95e0ff38a4320eb0055bf4 | 343 | ex | Elixir | lib/supabase_surface/components/icons/icon_pen_tool.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/icons/icon_pen_tool.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_pen_tool.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Icons.IconPenTool do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.pen_tool(width: icon_size, height: icon_size)}
</IconContai... | 22.866667 | 66 | 0.720117 |
93d50be94a8983fea6d95779950bc6e036f042ac | 765 | ex | Elixir | lib/hl7/2.5/segments/ub2.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/ub2.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/ub2.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.Segments.UB2 do
@moduledoc false
require Logger
alias HL7.V2_5.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
set_id_ub2: nil,
co_insurance_days_9: nil,
condition_code_24_30: nil,
covered_days_7: nil,
non_covered_days_8: nil,
value_amount_... | 26.37931 | 51 | 0.701961 |
93d54126e7cfa6887f786eb9b205395fd768a186 | 698 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/free_style_projecthealth_report.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 23 | 2017-08-01T12:25:26.000Z | 2022-01-25T03:44:11.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/free_style_projecthealth_report.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 35 | 2017-06-14T03:28:15.000Z | 2022-02-14T10:25:54.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/free_style_projecthealth_report.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 11 | 2017-08-31T19:00:20.000Z | 2021-12-19T12:04:12.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SwaggyJenkins.Model.FreeStyleProjecthealthReport do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"description",
:"icon... | 20.529412 | 91 | 0.65616 |
93d5573210d9efd07f64a8897c761456507547e7 | 4,280 | exs | Elixir | test/services/translations_renderer_test.exs | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | 1 | 2020-07-01T16:08:34.000Z | 2020-07-01T16:08:34.000Z | test/services/translations_renderer_test.exs | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | 6 | 2021-03-11T07:37:48.000Z | 2022-02-13T21:10:33.000Z | test/services/translations_renderer_test.exs | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T21:47:35.000Z | 2020-05-29T21:47:35.000Z | defmodule AccentTest.TranslationsRenderer do
use Accent.RepoCase
alias Accent.{
Document,
Language,
ProjectCreator,
Repo,
Translation,
TranslationsRenderer,
User
}
@user %User{email: "test@test.com"}
setup do
user = Repo.insert!(@user)
language = Repo.insert!(%Language{n... | 25.47619 | 131 | 0.576402 |
93d56c32d17ec6958d989fe089aca2a878681d2e | 8,181 | ex | Elixir | test/support/adapter_case.ex | warmwaffles/file_store | 6b6f4cf4ef036b616915ce0dffd5de05e0b021de | [
"MIT"
] | null | null | null | test/support/adapter_case.ex | warmwaffles/file_store | 6b6f4cf4ef036b616915ce0dffd5de05e0b021de | [
"MIT"
] | null | null | null | test/support/adapter_case.ex | warmwaffles/file_store | 6b6f4cf4ef036b616915ce0dffd5de05e0b021de | [
"MIT"
] | null | null | null | defmodule FileStore.AdapterCase do
@moduledoc false
use ExUnit.CaseTemplate
@tmp Path.join(System.tmp_dir!(), "file_store")
setup do
File.rm_rf!(@tmp)
File.mkdir!(@tmp)
{:ok, tmp: @tmp}
end
using do
# credo:disable-for-this-file Credo.Check.Refactor.LongQuoteBlocks
quote location: :k... | 33.121457 | 81 | 0.561912 |
93d571ebbf968ab9a14c961ef42e37db338bccf8 | 7,172 | ex | Elixir | lib/ex_unit/lib/ex_unit/case.ex | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2015-02-23T00:01:48.000Z | 2015-02-23T00:01:48.000Z | lib/ex_unit/lib/ex_unit/case.ex | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/case.ex | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.Case do
@moduledoc """
Sets up an ExUnit test case.
This module must be used in other modules as a way to configure
and prepare them for testing.
When used, it accepts the following options:
* :async - configure Elixir to run that specific test case in parallel with
others. Must ... | 28.12549 | 83 | 0.651422 |
93d62635464da4b4fb9e231d34018c09ab7bb1fc | 3,294 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/static_files_handler.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/static_files_handler.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/app_engine/lib/google_api/app_engine/v1/model/static_files_handler.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# 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, s... | 50.676923 | 370 | 0.722222 |
93d62c0c1defc81269ae06e7706d91b13d1b8da7 | 1,730 | ex | Elixir | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/update_release_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/update_release_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/update_release_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# 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 ... | 34.6 | 111 | 0.739884 |
93d65b440c62c984d59350dde1df571d1a4399b4 | 1,111 | ex | Elixir | test/support/channel_case.ex | angelo-moreira/topflow | 00946c317aba3e2247932e83cc4f5ac7fd38e280 | [
"Unlicense"
] | null | null | null | test/support/channel_case.ex | angelo-moreira/topflow | 00946c317aba3e2247932e83cc4f5ac7fd38e280 | [
"Unlicense"
] | null | null | null | test/support/channel_case.ex | angelo-moreira/topflow | 00946c317aba3e2247932e83cc4f5ac7fd38e280 | [
"Unlicense"
] | null | null | null | defmodule TopflowWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts w... | 27.097561 | 69 | 0.727273 |
93d66240d43320c88bc0f115bd1a36d49714f076 | 31,508 | ex | Elixir | clients/chat/lib/google_api/chat/v1/api/spaces.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/api/spaces.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/api/spaces.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# 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, s... | 48.548536 | 559 | 0.618605 |
93d6941bb6b80b62e8925cc7ccdeab5905ed6a75 | 2,493 | exs | Elixir | apps/site/test/site_web/controllers/schedule/offset_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/test/site_web/controllers/schedule/offset_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/test/site_web/controllers/schedule/offset_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SiteWeb.ScheduleController.OffsetTest do
use SiteWeb.ConnCase, async: true
import SiteWeb.ScheduleController.Offset
describe "init/1" do
test "takes no options" do
assert init([]) == []
end
end
describe "call/2" do
test "when time is before the first trip offset is 0" do
n... | 24.203883 | 81 | 0.561171 |
93d6a54792761c100e3e3844d577234088d14e7e | 5,861 | exs | Elixir | test/support/schema.exs | StareIntoTheBeard/coherence | 96607cefb1b6269c6e8dea6fab897ed9489ad749 | [
"MIT"
] | 2 | 2018-01-19T06:12:16.000Z | 2018-03-12T07:17:17.000Z | test/support/schema.exs | StareIntoTheBeard/coherence | 96607cefb1b6269c6e8dea6fab897ed9489ad749 | [
"MIT"
] | null | null | null | test/support/schema.exs | StareIntoTheBeard/coherence | 96607cefb1b6269c6e8dea6fab897ed9489ad749 | [
"MIT"
] | null | null | null | defmodule TestCoherence.User do
use Ecto.Schema
use Coherence.Schema
import Ecto.Changeset
schema "users" do
coherence_schema()
field :email, :string
field :name, :string
timestamps()
end
@required_fields ~w(email name)a
@optional_fields ~w() ++ coherence_fields()
def changeset(mode... | 23.538153 | 113 | 0.702781 |
93d6c2efafc5b666ef7493b3965aa3c18526c627 | 2,355 | ex | Elixir | lib/creator.ex | wise-home/wise_homex | 851f13191ed67acb1003888c12f4e6b71800d31b | [
"MIT"
] | 2 | 2019-03-14T09:09:14.000Z | 2020-11-25T06:44:46.000Z | lib/creator.ex | wise-home/wise_homex | 851f13191ed67acb1003888c12f4e6b71800d31b | [
"MIT"
] | 139 | 2019-03-14T06:58:55.000Z | 2022-03-29T12:28:09.000Z | lib/creator.ex | wise-home/wise_homex | 851f13191ed67acb1003888c12f4e6b71800d31b | [
"MIT"
] | 7 | 2021-04-09T13:55:45.000Z | 2021-04-16T15:49:36.000Z | defmodule WiseHomex.Creator do
@moduledoc """
Auto creation of main wise_homex module functions from configuration
These function simply delegate to the api_client() function, which in turn sends a request to either
the API client implementation or the mock server
"""
@doc """
When used by a module, we ... | 35.149254 | 118 | 0.700212 |
93d6d8a739d03a07c876692a183e880f2c24a984 | 1,760 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/list_clusters_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/list_clusters_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/list_clusters_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 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... | 35.2 | 239 | 0.756818 |
93d6dbc69e8443cf626df8232fc1d4ff07934bce | 2,215 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/permission_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/permission_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/drive/lib/google_api/drive/v3/model/permission_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# 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, s... | 41.792453 | 322 | 0.730474 |
93d6ddf8858aae4a04f490aa9331d72ccd1e5f05 | 1,654 | ex | Elixir | lib/codex/runner.ex | maartenvanvliet/codex | 4026a5bc64f5aafd94ce21ee4ec922ea79af49c9 | [
"MIT"
] | 3 | 2021-05-16T14:13:18.000Z | 2021-05-18T18:51:06.000Z | lib/codex/runner.ex | maartenvanvliet/codex | 4026a5bc64f5aafd94ce21ee4ec922ea79af49c9 | [
"MIT"
] | 11 | 2021-09-22T04:15:16.000Z | 2022-03-24T04:14:17.000Z | lib/codex/runner.ex | maartenvanvliet/codex | 4026a5bc64f5aafd94ce21ee4ec922ea79af49c9 | [
"MIT"
] | null | null | null | defmodule Codex.Runner do
@moduledoc false
@doc false
def run(module, params, opts \\ []) do
case module.validate(params) do
{:error, error} ->
{:error, error}
{:ok, result} ->
call(module, result, module.init(opts))
end
end
@doc false
defp call(module, params, opts) do... | 20.936709 | 50 | 0.48549 |
93d6f7dabc6731f5e5af2d257c75a65aa835f1c0 | 1,628 | ex | Elixir | hello/test/support/model_case.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | hello/test/support/model_case.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | hello/test/support/model_case.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | defmodule Hello.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For th... | 25.4375 | 84 | 0.683661 |
93d728ab42e44c53680cfa92f19651be0f777a09 | 291 | ex | Elixir | lib/ambry_web/views/layout_view.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | lib/ambry_web/views/layout_view.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | lib/ambry_web/views/layout_view.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | defmodule AmbryWeb.LayoutView do
@moduledoc false
use AmbryWeb, :view
# Phoenix LiveDashboard is available only in development by default,
# so we instruct Elixir to not warn if the dashboard route is missing.
@compile {:no_warn_undefined, {Routes, :live_dashboard_path, 2}}
end
| 29.1 | 72 | 0.766323 |
93d74cc025fcd968ea471366cc4cd3f26acbd801 | 15,348 | exs | Elixir | test/changeset_parser_test.exs | qwexvf/absinthe_error_payload | d75abe2234ac48eeea00c6e9b7444172e9901f79 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-09-30T04:40:13.000Z | 2021-09-30T04:40:13.000Z | test/changeset_parser_test.exs | qwexvf/absinthe_error_payload | d75abe2234ac48eeea00c6e9b7444172e9901f79 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | test/changeset_parser_test.exs | qwexvf/absinthe_error_payload | d75abe2234ac48eeea00c6e9b7444172e9901f79 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | defmodule AbsintheErrorPayload.ChangesetParserTest do
@moduledoc """
Test conversion of changeset errors to ValidationMessage structs
"""
use ExUnit.Case
import Ecto.Changeset
alias AbsintheErrorPayload.ChangesetParser
alias AbsintheErrorPayload.ValidationMessage
# taken from Ecto.changeset tests
... | 32.379747 | 127 | 0.608223 |
93d77bf01200151b1619ddd6c61e9f63590a51dc | 145 | exs | Elixir | config/config.exs | RubMurga/tatumex | 759e653e94d39a069db561f12e5002ba583ff73f | [
"MIT"
] | null | null | null | config/config.exs | RubMurga/tatumex | 759e653e94d39a069db561f12e5002ba583ff73f | [
"MIT"
] | null | null | null | config/config.exs | RubMurga/tatumex | 759e653e94d39a069db561f12e5002ba583ff73f | [
"MIT"
] | null | null | null | use Mix.Config
config :tatumex, tatum_url: "https://api-eu1.tatum.io/v3"
config :tatumex, tatum_api_key: "c43a1147-0d72-40b3-a7f3-df20ade722df"
| 29 | 70 | 0.772414 |
93d78eca05a96f57c9a0bfc46dfdbb1e5664d7a9 | 575 | ex | Elixir | lib/entities/entity_macros.ex | iboard/repox | 3b2d1a74439ae8ee6634bc8b37756773d1bed51d | [
"Unlicense"
] | null | null | null | lib/entities/entity_macros.ex | iboard/repox | 3b2d1a74439ae8ee6634bc8b37756773d1bed51d | [
"Unlicense"
] | 3 | 2015-05-10T20:49:22.000Z | 2015-05-20T19:18:12.000Z | lib/entities/entity_macros.ex | iboard/repox | 3b2d1a74439ae8ee6634bc8b37756773d1bed51d | [
"Unlicense"
] | null | null | null | defmodule Repox.Entity.Macros do
@moduledoc """
Some useful macros to support Entities.
Use with `use Repox.Entity.Macros` within any Repox.Entity
"""
@doc """
Define functions to convert between %NamedStructures{} and %{}
"""
defmacro define_entity_functions do
quote do
def as_struct entity ... | 19.166667 | 64 | 0.669565 |
93d7ce24dea666039d6cabe834a3b33899da72aa | 16,819 | ex | Elixir | lib/expected.ex | ejpcmac/expected | c2b03bfa9bcb7efd52cf4003fb46f1309e8aa3c4 | [
"MIT"
] | 33 | 2018-01-18T12:16:19.000Z | 2021-07-30T00:33:26.000Z | lib/expected.ex | ejpcmac/expected | c2b03bfa9bcb7efd52cf4003fb46f1309e8aa3c4 | [
"MIT"
] | 5 | 2018-01-18T12:56:28.000Z | 2019-09-30T07:16:00.000Z | lib/expected.ex | ejpcmac/expected | c2b03bfa9bcb7efd52cf4003fb46f1309e8aa3c4 | [
"MIT"
] | 1 | 2018-08-08T12:02:44.000Z | 2018-08-08T12:02:44.000Z | defmodule Expected do
@moduledoc """
A module for login and session management.
This module enables persistent logins through a cookie, following Barry
Jaspan’s [Improved Persistent Login Cookie Best Practice](http://www.jaspan.com/improved_persistent_login_cookie_best_practice).
It also provides an API to l... | 30.747715 | 130 | 0.670135 |
93d7cf0d135b812abf150b3c99e2930125510d2f | 513 | exs | Elixir | test/cog/chat/slack/templates/embedded/permission_list_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/cog/chat/slack/templates/embedded/permission_list_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/cog/chat/slack/templates/embedded/permission_list_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Chat.Slack.Templates.Embedded.PermissionListTest do
use Cog.TemplateCase
test "permission-list template" do
data = %{"results" => [%{"bundle" => "site", "name" => "foo"},
%{"bundle" => "site", "name" => "bar"},
%{"bundle" => "site", "name" => ... | 27 | 91 | 0.526316 |
93d821ffdb73da2acde283d86584e89aaded127c | 891 | exs | Elixir | test/fixtures/n00b/mix.exs | TokiTori/bootleg | 59466712b4cf85d2930c1126355fc2837d483c81 | [
"MIT"
] | null | null | null | test/fixtures/n00b/mix.exs | TokiTori/bootleg | 59466712b4cf85d2930c1126355fc2837d483c81 | [
"MIT"
] | null | null | null | test/fixtures/n00b/mix.exs | TokiTori/bootleg | 59466712b4cf85d2930c1126355fc2837d483c81 | [
"MIT"
] | null | null | null | defmodule N00b.Mixfile do
use Mix.Project
def project do
[
app: :n00b,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Configuration for the OTP application
#
# Type "mix help comp... | 22.846154 | 82 | 0.597082 |
93d8366ff1acf792fd19a1848f656ac96389a4f0 | 3,047 | ex | Elixir | lib/grapex/models/operations.ex | zeionara/grapex | d10bd40d61cd00ff4ace6c8922745748de509948 | [
"Apache-2.0"
] | null | null | null | lib/grapex/models/operations.ex | zeionara/grapex | d10bd40d61cd00ff4ace6c8922745748de509948 | [
"Apache-2.0"
] | 1 | 2021-11-14T20:42:26.000Z | 2021-11-14T20:42:26.000Z | lib/grapex/models/operations.ex | zeionara/grapex | d10bd40d61cd00ff4ace6c8922745748de509948 | [
"Apache-2.0"
] | null | null | null | defmodule Grapex.Model.Operations do
require Axon
@doc """
Analyzes provided parameters and depending on the analysis results runs model testing either using test subset of a corpus either validation subset
"""
@spec test_or_validate({Grapex.Init, Axon, Map}) :: tuple # , list) :: tuple
def test_or_valida... | 35.430233 | 168 | 0.638333 |
93d87b824ff1a87182eeabd1c46b4f2f088b21c4 | 2,574 | ex | Elixir | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/template.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/template.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/template.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# 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, s... | 41.516129 | 269 | 0.702409 |
93d8b7216d545ae377e8c13f7be01e89ef686eff | 4,544 | ex | Elixir | clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/scan_run.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/scan_run.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/scan_run.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# 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, s... | 58.25641 | 354 | 0.71809 |
93d8c8018ef674537b061cebde0f569c6b4ef45a | 49,886 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/api/events.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/api/events.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/api/events.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# 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, s... | 60.467879 | 457 | 0.663553 |
93d8d1d7acc6da6776a63654297d287bc4db8d79 | 1,815 | ex | Elixir | clients/content/lib/google_api/content/v21/model/metrics.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/metrics.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/metrics.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# 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, s... | 34.245283 | 174 | 0.707438 |
93d8ea37661ea0880240e423dd5969f8442d6b1c | 2,137 | exs | Elixir | test/rocketpay_web/controllers/users_controller_test.exs | cassiofariasmachado/rocketpay | 7d8cf92f41b67b3861e0e2952579693efe11116b | [
"MIT"
] | null | null | null | test/rocketpay_web/controllers/users_controller_test.exs | cassiofariasmachado/rocketpay | 7d8cf92f41b67b3861e0e2952579693efe11116b | [
"MIT"
] | null | null | null | test/rocketpay_web/controllers/users_controller_test.exs | cassiofariasmachado/rocketpay | 7d8cf92f41b67b3861e0e2952579693efe11116b | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.UsersControllerTest do
use RocketpayWeb.ConnCase, async: true
alias Rocketpay.User
describe "create/2" do
setup %{conn: conn} do
user = %{
name: "Cassio",
password: "123456",
nickname: "cassio",
email: "cassio@yahoo.com",
age: 24
}
... | 23.744444 | 73 | 0.482452 |
93d90eb18631d3995f43889998ddc6b29d431d09 | 14,951 | ex | Elixir | lib/ecto/adapters/riak/search.ex | TanYewWei/ecto | 916c6467d5f7368fa10ecd7cfcfd2d4a9924a282 | [
"Apache-2.0"
] | 1 | 2015-08-27T13:17:10.000Z | 2015-08-27T13:17:10.000Z | lib/ecto/adapters/riak/search.ex | TanYewWei/ecto | 916c6467d5f7368fa10ecd7cfcfd2d4a9924a282 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/riak/search.ex | TanYewWei/ecto | 916c6467d5f7368fa10ecd7cfcfd2d4a9924a282 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.Riak.Search do
@moduledoc """
Yokozuna shares the same query syntax as Apache Solr.
For Solr query options
see -- http://wiki.apache.org/solr/CommonQueryParameters
"""
alias Ecto.Adapters.Riak.Migration
alias Ecto.Adapters.Riak.Object
alias Ecto.Adapters.Riak.SearchHaving
ali... | 33.150776 | 92 | 0.533208 |
93d913cb809b2144b0564fa491d0a562425ecca5 | 822 | ex | Elixir | lib/aoc2016/day3.ex | xingxing/aoc | fa07510b4fdd587d971890dd0a785941d74b3288 | [
"MIT"
] | null | null | null | lib/aoc2016/day3.ex | xingxing/aoc | fa07510b4fdd587d971890dd0a785941d74b3288 | [
"MIT"
] | null | null | null | lib/aoc2016/day3.ex | xingxing/aoc | fa07510b4fdd587d971890dd0a785941d74b3288 | [
"MIT"
] | null | null | null | defmodule Aoc2016.Day3 do
@moduledoc """
Day 3: Squares With Three Sides
In a valid triangle, the sum of any two sides must be larger than the remaining side.
"""
@input_file_path "priv/2016/day3.txt"
@doc """
iex> Aoc2016.Day3.resolve()
917
"""
def resolve do
@input_file_path
|> File.str... | 19.116279 | 87 | 0.554745 |
93d92b7d7c9c21e3e22ea93f5f09cc5f51f7aa3a | 472 | exs | Elixir | package.head.exs | yrashk/erlang-ossp-uuid | a279ce337dce5d6d5bebfacd61b9ba08ecddfe0d | [
"MIT"
] | 3 | 2018-06-20T00:01:00.000Z | 2022-02-06T15:34:43.000Z | package.head.exs | yrashk/erlang-ossp-uuid | a279ce337dce5d6d5bebfacd61b9ba08ecddfe0d | [
"MIT"
] | 2 | 2015-11-10T22:39:54.000Z | 2016-06-19T23:08:02.000Z | package.head.exs | yrashk/erlang-ossp-uuid | a279ce337dce5d6d5bebfacd61b9ba08ecddfe0d | [
"MIT"
] | 5 | 2015-01-20T14:26:16.000Z | 2020-01-21T02:31:23.000Z | Expm.Package.new(name: "ossp_uuid", description: "NIF-based ossp-uuid binding",
version: :head, keywords: ["Erlang","UUID"],
maintainers: [[name: "Yurii Rashkovskii", email: "yrashk@gmail.com"]],
contributors: [[name: "Michael Santos", email: "michael.santos@gmail.com"... | 67.428571 | 92 | 0.555085 |
93d9474c7d01c478d3d0fa735edc689eefe53278 | 468 | exs | Elixir | Chapter09/apps/elixir_drip/config/test.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter09/apps/elixir_drip/config/test.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter09/apps/elixir_drip/config/test.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | use Mix.Config
config :elixir_drip, storage_provider: ElixirDrip.Storage.Providers.GoogleCloudStorageMock
# Configure your database
config :elixir_drip, ElixirDrip.Repo,
adapter: Ecto.Adapters.Postgres,
username: System.get_env("DB_USER"),
password: System.get_env("DB_PASS"),
database: System.get_env("DB_NAME... | 29.25 | 90 | 0.773504 |
93d98b4c9258332123ce63cc54207c35ff42e55f | 975 | exs | Elixir | mix.exs | amorphid/json_momoa | ab31268fd29b9d3b175972346f797f83461cabf6 | [
"Apache-2.0"
] | null | null | null | mix.exs | amorphid/json_momoa | ab31268fd29b9d3b175972346f797f83461cabf6 | [
"Apache-2.0"
] | null | null | null | mix.exs | amorphid/json_momoa | ab31268fd29b9d3b175972346f797f83461cabf6 | [
"Apache-2.0"
] | null | null | null | defmodule JSONMomoa.MixProject do
use Mix.Project
#######
# API #
#######
def application() do
[
extra_applications: [:logger],
mod: {JSONMomoa.Application, []}
]
end
def project() do
[
app: :json_momoa,
deps: deps(),
description: description(),
# feel fr... | 18.75 | 68 | 0.531282 |
93d98f2231c3b477808294f0971aa189ff39c1d6 | 2,231 | ex | Elixir | lib/pow/phoenix/html/form_template.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 4 | 2018-05-07T16:37:15.000Z | 2018-07-14T00:44:12.000Z | lib/pow/phoenix/html/form_template.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | lib/pow/phoenix/html/form_template.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 1 | 2020-07-13T01:11:17.000Z | 2020-07-13T01:11:17.000Z | defmodule Pow.Phoenix.HTML.FormTemplate do
@moduledoc """
Module that can build user form templates for Phoenix.
For Phoenix 1.3, or bootstrap templates, `Pow.Phoenix.HTML.Bootstrap` can be
used.
"""
alias Pow.Phoenix.HTML.Bootstrap
@template EEx.compile_string(
"""
<%%= form_for @changeset, @ac... | 27.54321 | 100 | 0.609144 |
93d9ad97a5633852cb5fb19b41851ca5aeee0906 | 95 | ex | Elixir | lib/places_alloverse_com_web/views/user_confirmation_view.ex | alloverse/places_alloverse_com | 5c15ea08a88429378ce8f41047418e166cbde7e9 | [
"BSD-2-Clause"
] | null | null | null | lib/places_alloverse_com_web/views/user_confirmation_view.ex | alloverse/places_alloverse_com | 5c15ea08a88429378ce8f41047418e166cbde7e9 | [
"BSD-2-Clause"
] | 1 | 2021-03-10T11:40:47.000Z | 2021-03-10T11:40:47.000Z | lib/places_alloverse_com_web/views/user_confirmation_view.ex | alloverse/places_alloverse_com | 5c15ea08a88429378ce8f41047418e166cbde7e9 | [
"BSD-2-Clause"
] | null | null | null | defmodule PlacesAlloverseComWeb.UserConfirmationView do
use PlacesAlloverseComWeb, :view
end
| 23.75 | 55 | 0.873684 |
93d9bfa97cf2e7d66c8f0e0c113f91364dd1c236 | 1,591 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/category_count.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query/lib/google_api/big_query/v2/model/category_count.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query/lib/google_api/big_query/v2/model/category_count.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# 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, s... | 31.82 | 126 | 0.719673 |
93da190561e641ccd5d8ada0a227a905ed7aaa4c | 2,212 | ex | Elixir | apps/local_ledger/lib/local_ledger/entry.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger/lib/local_ledger/entry.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger/lib/local_ledger/entry.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte 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 License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 27.65 | 74 | 0.665913 |
93da4c64b5cff30ecd9cde03f956c611664ed38d | 1,636 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/delete_conditional_format_rule_response.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/delete_conditional_format_rule_response.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/delete_conditional_format_rule_response.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 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... | 34.083333 | 93 | 0.762836 |
93da6b13f0fec7f97bbb66f1dc6f0f9d85706e6e | 1,060 | ex | Elixir | test/support/conn_case.ex | AmadorZcv/crius_chat | 2ed002414f207536a0d2ab6e53e7d99da9fa920d | [
"MIT"
] | null | null | null | test/support/conn_case.ex | AmadorZcv/crius_chat | 2ed002414f207536a0d2ab6e53e7d99da9fa920d | [
"MIT"
] | 3 | 2021-03-09T17:37:23.000Z | 2021-09-01T22:28:38.000Z | test/support/conn_case.ex | AmadorZcv/crius_chat | 2ed002414f207536a0d2ab6e53e7d99da9fa920d | [
"MIT"
] | null | null | null | defmodule CriusChatWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if ... | 27.179487 | 71 | 0.720755 |
93da7bd4bcf9cc13e7997aebd478e0bd6465d9e3 | 1,115 | ex | Elixir | lib/ergo_web/router.ex | insprac/ergo | 978970ba7f9639adb7ff8c32fec8cd25f487c656 | [
"MIT"
] | null | null | null | lib/ergo_web/router.ex | insprac/ergo | 978970ba7f9639adb7ff8c32fec8cd25f487c656 | [
"MIT"
] | 2 | 2021-03-10T22:00:43.000Z | 2021-05-11T17:17:30.000Z | lib/ergo_web/router.ex | insprac/ergo | 978970ba7f9639adb7ff8c32fec8cd25f487c656 | [
"MIT"
] | null | null | null | defmodule ErgoWeb.Router do
use ErgoWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {ErgoWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts... | 25.340909 | 70 | 0.695964 |
93da7e26386a637aca72b36d938921dacc241000 | 5,678 | exs | Elixir | test/ecto/integration/crud_test.exs | dozoyo/exqlite | 517eaa7f39be7effad0e968986f708f7845e1d5c | [
"MIT"
] | null | null | null | test/ecto/integration/crud_test.exs | dozoyo/exqlite | 517eaa7f39be7effad0e968986f708f7845e1d5c | [
"MIT"
] | null | null | null | test/ecto/integration/crud_test.exs | dozoyo/exqlite | 517eaa7f39be7effad0e968986f708f7845e1d5c | [
"MIT"
] | null | null | null | defmodule Ecto.Integration.CrudTest do
use Ecto.Integration.Case
alias Ecto.Integration.TestRepo
alias Exqlite.Integration.Account
alias Exqlite.Integration.User
alias Exqlite.Integration.AccountUser
alias Exqlite.Integration.Product
import Ecto.Query
describe "insert" do
test "insert user" do
... | 30.526882 | 83 | 0.587707 |
93da878fe019493ba42db2d5e7f9b397ecbde2aa | 72 | ex | Elixir | lib/madari_web/views/user_reset_password_view.ex | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | lib/madari_web/views/user_reset_password_view.ex | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | lib/madari_web/views/user_reset_password_view.ex | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | defmodule MadariWeb.UserResetPasswordView do
use MadariWeb, :view
end
| 18 | 44 | 0.833333 |
93dac29905b48a200f3e2ab180fa7df040925408 | 2,265 | ex | Elixir | clients/script/lib/google_api/script/v1/model/google_apps_script_type_add_on_entry_point.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/model/google_apps_script_type_add_on_entry_point.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/script/lib/google_api/script/v1/model/google_apps_script_type_add_on_entry_point.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# 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, s... | 36.532258 | 115 | 0.695364 |
93dae40cdd372e14d87c4943cb19c75b51f1d6f3 | 10,144 | ex | Elixir | apps/gitgud/lib/gitgud/schemas/issue.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | apps/gitgud/lib/gitgud/schemas/issue.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | apps/gitgud/lib/gitgud/schemas/issue.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | defmodule GitGud.Issue do
@moduledoc """
Issue schema and helper functions.
"""
use Ecto.Schema
alias Ecto.Multi
alias GitGud.DB
alias GitGud.Repo
alias GitGud.User
alias GitGud.IssueLabel
alias GitGud.Comment
import Ecto.Changeset
import Ecto.Query, only: [from: 2]
schema "issues" do
... | 36.228571 | 223 | 0.648265 |
93daf919a5771936b938caaa5b951cd29e0950ed | 2,477 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_image_redaction_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_image_redaction_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_image_redaction_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# 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, s... | 46.735849 | 342 | 0.754945 |
93dafb0b2cc75234b7bd88acfc8575a65d83ae88 | 1,734 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/device_file.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/device_file.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/testing/lib/google_api/testing/v1/model/device_file.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# 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, s... | 34.68 | 127 | 0.731257 |
93db0c2b00b09f5ce1a52e29beea285981da12ec | 488 | ex | Elixir | lib/rails_to_iana_tz.ex | newshipt/rails_to_iana_tz | 5f810e5ed0a4c52e36152b752d87d7866723ab4d | [
"MIT"
] | null | null | null | lib/rails_to_iana_tz.ex | newshipt/rails_to_iana_tz | 5f810e5ed0a4c52e36152b752d87d7866723ab4d | [
"MIT"
] | null | null | null | lib/rails_to_iana_tz.ex | newshipt/rails_to_iana_tz | 5f810e5ed0a4c52e36152b752d87d7866723ab4d | [
"MIT"
] | null | null | null | defmodule RailsToIanaTz do
@moduledoc """
Converts rails US timezones to the iana equivalent which is useful for elixir.
## Example
iex> RailsToIanaTz.convert("Alaska")
"America/Juneau""
"""
File.stream!("tzconvert.csv")
|> CSV.decode(separator: ?,, headers: true)
|> Enum.each(fn(%{"IANATZ... | 23.238095 | 80 | 0.643443 |
93db13a1c562cd2a0480ad80097536c092ff079f | 2,161 | ex | Elixir | lib/eval.ex | epiphone/sammal | 0058359f62fcdf048743fdd62bd84913b98b7773 | [
"MIT"
] | 2 | 2017-05-02T14:15:11.000Z | 2021-12-11T11:13:15.000Z | lib/eval.ex | epiphone/sammal | 0058359f62fcdf048743fdd62bd84913b98b7773 | [
"MIT"
] | null | null | null | lib/eval.ex | epiphone/sammal | 0058359f62fcdf048743fdd62bd84913b98b7773 | [
"MIT"
] | null | null | null | defmodule Sammal.Eval do
@moduledoc """
Evaluate parsed Lisp expressions.
"""
alias Sammal.{Env, Expr, Parser, SammalError}
@spec eval_all([Parser.form], Env) :: {any, Env}
def eval_all([], env), do: {nil, env}
def eval_all([exp], env), do: eval(exp, env)
def eval_all([exp | rest], env) do
{result... | 29.60274 | 119 | 0.628413 |
93db1d1ca82afc60af61079e8c38365d2d9c3f35 | 541 | ex | Elixir | core/lib/cronus_core_web/views/error_view.ex | Parasrah/cronus | b630a7d62128b03c7cdf65f941af2a2c2bd617e5 | [
"MIT"
] | null | null | null | core/lib/cronus_core_web/views/error_view.ex | Parasrah/cronus | b630a7d62128b03c7cdf65f941af2a2c2bd617e5 | [
"MIT"
] | null | null | null | core/lib/cronus_core_web/views/error_view.ex | Parasrah/cronus | b630a7d62128b03c7cdf65f941af2a2c2bd617e5 | [
"MIT"
] | null | null | null | defmodule CronusCoreWeb.ErrorView do
use CronusCoreWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status messag... | 31.823529 | 83 | 0.722736 |
93db77bfdf8d6d323ce94921e3ca70e434e84622 | 2,622 | exs | Elixir | languages/elixir/exercises/concept/kitchen-calculator/test/kitchen_calculator_test.exs | AlexLeSang/v3 | 3d35961a961b5a2129b1d42f1d118972d9665357 | [
"MIT"
] | 3 | 2020-07-25T06:24:00.000Z | 2020-09-14T17:39:11.000Z | languages/elixir/exercises/concept/kitchen-calculator/test/kitchen_calculator_test.exs | AlexLeSang/v3 | 3d35961a961b5a2129b1d42f1d118972d9665357 | [
"MIT"
] | 45 | 2020-01-24T17:04:52.000Z | 2020-11-24T17:50:18.000Z | languages/elixir/exercises/concept/kitchen-calculator/test/kitchen_calculator_test.exs | AlexLeSang/v3 | 3d35961a961b5a2129b1d42f1d118972d9665357 | [
"MIT"
] | 1 | 2020-04-20T11:41:55.000Z | 2020-04-20T11:41:55.000Z | defmodule KitchenCalculatorTest do
use ExUnit.Case
alias KitchenCalculator, as: KC
describe "get volume from tuple pair" do
# @tag :pending
test "get cups" do
assert KC.get_volume({:cup, 1}) == 1
end
@tag :pending
test "get fluid ounces" do
assert KC.get_volume({:fluid_ounce, 2}... | 24.055046 | 94 | 0.613272 |
93dba7d887472e13b5a8575273fc24cdc81c31fc | 733 | ex | Elixir | apps/customer/lib/customer/web/models/job_title_alias.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 102 | 2017-05-21T18:24:04.000Z | 2022-03-10T12:53:20.000Z | apps/customer/lib/customer/web/models/job_title_alias.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 2 | 2017-05-21T01:53:30.000Z | 2017-12-01T00:27:06.000Z | apps/customer/lib/customer/web/models/job_title_alias.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 18 | 2017-05-22T09:51:36.000Z | 2021-09-24T00:57:01.000Z | defmodule Customer.Web.JobTitleAlias do
use Customer.Web, :model
schema "job_title_aliases" do
field :name, :string
timestamps()
belongs_to :job_title, JobTitle
end
@required_fields ~w(name job_title_id)a
@doc """
Builds a changeset based on the `struct` and `params`.
"""
def changeset(s... | 21.558824 | 59 | 0.672578 |
93dbb675a4c3a5ca2dd1b327eff30cd8f628d9e7 | 291 | ex | Elixir | lib/phone/nanp/us/mo.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/us/mo.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/us/mo.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.NANP.US.MO do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(1)(314|417|573|636|660|816)([2-9].{6})$/
def area_name, do: "Missouri"
def area_type, do: "state"
def area_abbreviation, do: "MO"
matcher ["1314", "1417", "1573", "1636", "1660", "1816"]
end
| 22.384615 | 62 | 0.628866 |
93dbd6dda108f1d4ea5bc239d7a0de669500725e | 485 | ex | Elixir | lib/uro/user_content/prop.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 1 | 2022-01-11T04:05:39.000Z | 2022-01-11T04:05:39.000Z | lib/uro/user_content/prop.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 35 | 2021-02-10T08:18:57.000Z | 2021-05-06T17:19:50.000Z | lib/uro/user_content/prop.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | null | null | null | defmodule Uro.UserContent.Prop do
import Ecto.Changeset
use Uro.UserContent.UserContent
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
@derive {Phoenix.Param, key: :id}
schema "props" do
user_content_fields()
timestamps()
end
@doc false
def changeset(prop, a... | 20.208333 | 52 | 0.729897 |
93dbdda6605ba1f9572007f8b28690556e19718c | 1,260 | exs | Elixir | test/auto_api/states/windows_state_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 4 | 2018-01-19T16:11:10.000Z | 2019-12-13T16:35:10.000Z | test/auto_api/states/windows_state_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 5 | 2020-07-16T07:20:21.000Z | 2021-09-22T10:18:04.000Z | test/auto_api/states/windows_state_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 1 | 2021-02-17T18:36:13.000Z | 2021-02-17T18:36:13.000Z | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 46.666667 | 79 | 0.778571 |
93dbe65d017cedf1edd1fb2236b3346594fca189 | 819 | ex | Elixir | lib/dynamite.ex | j-pel/dynamite | 767055750822845474112dbace1e569b6731b332 | [
"MIT"
] | null | null | null | lib/dynamite.ex | j-pel/dynamite | 767055750822845474112dbace1e569b6731b332 | [
"MIT"
] | 3 | 2016-04-20T05:30:40.000Z | 2016-05-02T03:02:29.000Z | lib/dynamite.ex | j-pel/dynamite | 767055750822845474112dbace1e569b6731b332 | [
"MIT"
] | null | null | null | defmodule Dynamite do
use Application
def start(_type, _args) do
Application.fetch_env!(:dynamite, :sites)
|>launch
device = File.open!("dbg.log", [:write])
Application.put_env(:dbg, :device, device)
Dynamite.Supervisor.start_link([])
end
def site_info(site, :static_path) do
sites... | 24.088235 | 58 | 0.616606 |
93dc2969d68f659f4abf968aea511efda4b0ef27 | 4,355 | ex | Elixir | lib/set_locale.ex | VinogradovAlexandr/set_locale | 2b02ffb14707f63344d8c5548a61a443b7cf7298 | [
"WTFPL"
] | null | null | null | lib/set_locale.ex | VinogradovAlexandr/set_locale | 2b02ffb14707f63344d8c5548a61a443b7cf7298 | [
"WTFPL"
] | null | null | null | lib/set_locale.ex | VinogradovAlexandr/set_locale | 2b02ffb14707f63344d8c5548a61a443b7cf7298 | [
"WTFPL"
] | null | null | null | defmodule SetLocale do
import Plug.Conn
defmodule Config do
defstruct gettext: nil, default_locale: nil, cookie_key: nil
end
def init(gettext: gettext, default_locale: default_locale, cookie_key: cookie_key) do
%Config{gettext: gettext, default_locale: default_locale, cookie_key: cookie_key}
end
d... | 31.788321 | 117 | 0.690241 |
93dc5aad1d2259cdb01814088b4872eab0d3965b | 4,914 | exs | Elixir | mix.exs | halostatue/oban | f6789e745554e4f2e7076d25f628fe54a64635f8 | [
"Apache-2.0"
] | null | null | null | mix.exs | halostatue/oban | f6789e745554e4f2e7076d25f628fe54a64635f8 | [
"Apache-2.0"
] | null | null | null | mix.exs | halostatue/oban | f6789e745554e4f2e7076d25f628fe54a64635f8 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.MixProject do
use Mix.Project
@version "2.3.4"
def project do
[
app: :oban,
version: @version,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
preferred_cli_env: [... | 27.762712 | 89 | 0.560236 |
93dc886567af5c40bb8937cd82297b35a9df612a | 64 | ex | Elixir | template/$PROJECT_NAME$/apps/$APP1_NAME$/lib/$APP1_NAME$/endpoint.ex | ericsteen/master_proxy | df5a93bca9e655d7d4b9724da200639e0b247133 | [
"Apache-2.0"
] | 3 | 2019-02-01T09:47:15.000Z | 2019-03-29T23:10:01.000Z | template/$PROJECT_NAME$/apps/$APP1_NAME$/lib/$APP1_NAME$/endpoint.ex | upstarter/master_proxy | df5a93bca9e655d7d4b9724da200639e0b247133 | [
"Apache-2.0"
] | null | null | null | template/$PROJECT_NAME$/apps/$APP1_NAME$/lib/$APP1_NAME$/endpoint.ex | upstarter/master_proxy | df5a93bca9e655d7d4b9724da200639e0b247133 | [
"Apache-2.0"
] | null | null | null | defmodule <%= Macro.camelize(@app1_name) %>Web.Endpoint do
end
| 16 | 58 | 0.734375 |
93dce2cfbe086b14af9993dd2bbca6c7aa9656d0 | 1,021 | ex | Elixir | farmbot_core/lib/farmbot_core.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotCore do
@moduledoc """
Core Farmbot Services.
This includes
* Core global state management
* Data storage management
* Firmware management
* RPC and IPC management
"""
use Application
@doc false
def start(_, args), do: Supervisor.start_link(__MODULE__, args, name: __MODU... | 26.179487 | 83 | 0.705191 |
93dce39d2ebf0941be6aa1ae14d91bd77aee55f0 | 57 | ex | Elixir | web/views/layout_view.ex | lucianosousa/gears | a59a93dd28ccd82e6cd1e3db809535a4dc10d007 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | lucianosousa/gears | a59a93dd28ccd82e6cd1e3db809535a4dc10d007 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | lucianosousa/gears | a59a93dd28ccd82e6cd1e3db809535a4dc10d007 | [
"MIT"
] | null | null | null | defmodule Gears.LayoutView do
use Gears.Web, :view
end
| 14.25 | 29 | 0.77193 |
93dd0204f655fa30c47a2652fb3213a1d237b87a | 2,714 | exs | Elixir | priv/repo/migrations/20191117231438_bootstrap_base.exs | themaxhero/Machinista | 2e0114dbbc69fc8187b3ed080de694ac4f558ae8 | [
"BSD-2-Clause"
] | 1 | 2019-12-16T10:22:07.000Z | 2019-12-16T10:22:07.000Z | priv/repo/migrations/20191117231438_bootstrap_base.exs | themaxhero/Machinista | 2e0114dbbc69fc8187b3ed080de694ac4f558ae8 | [
"BSD-2-Clause"
] | 2 | 2021-03-10T06:56:47.000Z | 2021-05-11T02:41:32.000Z | priv/repo/migrations/20191117231438_bootstrap_base.exs | themaxhero/Macchinista | 2e0114dbbc69fc8187b3ed080de694ac4f558ae8 | [
"BSD-2-Clause"
] | null | null | null | defmodule Macchinista.Repo.Migrations.BootstrapBase do
use Ecto.Migration
def change do
create table(:boards, primary_key: false) do
add :id, :uuid, primary_key: true
add :name, :string, default: "Untitled Board"
add :order, :integer, null: false
add :background, :string
add :shel... | 31.195402 | 93 | 0.648121 |
93dd2732d49316810a4b144349f0c486a1ba6ea9 | 1,720 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_server_database_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_server_database_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_server_database_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# 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, s... | 34.4 | 143 | 0.741279 |
93dd2b68b0eab8d44379cff92a75e1524802fe15 | 5,331 | ex | Elixir | lib/memcache/connection.ex | cloud8421/memcache-ex | 90661826c43742c5a5f86d3858c6f4f6cfcbce50 | [
"MIT"
] | 1 | 2017-01-26T22:44:19.000Z | 2017-01-26T22:44:19.000Z | lib/memcache/connection.ex | cloud8421/memcache-ex | 90661826c43742c5a5f86d3858c6f4f6cfcbce50 | [
"MIT"
] | null | null | null | lib/memcache/connection.ex | cloud8421/memcache-ex | 90661826c43742c5a5f86d3858c6f4f6cfcbce50 | [
"MIT"
] | null | null | null | defmodule Memcache.Connection do
use GenServer
alias Memcache.Protocol
defmodule State do
defstruct opts: nil, sock: nil
end
@spec start_link(Keyword.t) :: { :ok, pid } | { :error, term }
def start_link(opts) do
case :gen_server.start_link(__MODULE__, [], []) do
{ :ok, pid } ->
opts ... | 31.358824 | 119 | 0.605515 |
93dd31f1cb2d363f5a27b03c1cfcb9de1b586c07 | 1,011 | ex | Elixir | lib/virgo/cache/problem_detail.ex | GinShio/AstraeaVirgo | 92804cbae01f67e21b8f421009fa37fddc9054e1 | [
"BSD-2-Clause"
] | null | null | null | lib/virgo/cache/problem_detail.ex | GinShio/AstraeaVirgo | 92804cbae01f67e21b8f421009fa37fddc9054e1 | [
"BSD-2-Clause"
] | null | null | null | lib/virgo/cache/problem_detail.ex | GinShio/AstraeaVirgo | 92804cbae01f67e21b8f421009fa37fddc9054e1 | [
"BSD-2-Clause"
] | null | null | null | defmodule AstraeaVirgo.Cache.ProblemDetail do
@moduledoc """
Implement ProblemDetail operation for cache
## Problem Detail
A key-value mapping the problem detail, key is problem id
- Key: `Astraea:Problem:ID:<problem_id>:Detail`
- type: hash
- fields:
- id
- public
- detail
... | 24.658537 | 93 | 0.642928 |
93dd41871035fd4d0d4f2f291c120d9a3f62168d | 2,853 | ex | Elixir | lib/quark/compose.ex | doma-engineering/quark | 16af5e00f9048053678cbaf6fb770969446e0d1e | [
"MIT"
] | 80 | 2019-06-07T00:02:56.000Z | 2022-03-14T19:33:27.000Z | lib/quark/compose.ex | doma-engineering/quark | 16af5e00f9048053678cbaf6fb770969446e0d1e | [
"MIT"
] | 11 | 2019-07-08T09:56:54.000Z | 2021-11-29T09:57:16.000Z | lib/quark/compose.ex | doma-engineering/quark | 16af5e00f9048053678cbaf6fb770969446e0d1e | [
"MIT"
] | 7 | 2019-09-18T14:56:57.000Z | 2021-05-25T17:16:43.000Z | defmodule Quark.Compose do
@moduledoc ~S"""
Function composition is taking two functions, and joining them together to
create a new function. For example:
## Examples
iex> sum_plus_one = compose([&(&1 + 1), &Enum.sum/1])
...> sum_plus_one.([1,2,3])
7
In this case, we have joined `Enum.sum... | 22.824 | 92 | 0.540133 |
93dd4ca27c4ce428586ffcb55ec4ba5e68abcc4e | 657 | exs | Elixir | test/suite/compact_test.exs | rustra/jsonld-ex | 4f903a04d4ba9f0f0df1b871a92eb89bc20f38dc | [
"MIT"
] | 12 | 2020-06-18T18:23:34.000Z | 2022-01-05T15:00:09.000Z | test/suite/compact_test.exs | rustra/jsonld-ex | 4f903a04d4ba9f0f0df1b871a92eb89bc20f38dc | [
"MIT"
] | 5 | 2020-06-16T16:18:14.000Z | 2021-08-19T20:23:03.000Z | test/suite/compact_test.exs | rustra/jsonld-ex | 4f903a04d4ba9f0f0df1b871a92eb89bc20f38dc | [
"MIT"
] | 6 | 2020-06-17T22:25:51.000Z | 2021-08-19T19:55:49.000Z | defmodule JSON.LD.TestSuite.CompactTest do
use ExUnit.Case, async: false
import JSON.LD.TestSuite
setup_all do
[base_iri: manifest("compact")["baseIri"]]
end
test_cases("compact")
|> Enum.each(fn %{"name" => name, "input" => input} = test_case ->
@tag :test_suite
@tag :compact_test_suite
... | 26.28 | 93 | 0.596651 |
93dd64084016c3b24ea56a6368e2c2722eabc1c1 | 1,620 | ex | Elixir | lib/graphql/lang/ast/reducer.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 719 | 2016-03-18T03:10:46.000Z | 2022-02-02T10:07:29.000Z | lib/graphql/lang/ast/reducer.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 51 | 2015-08-30T03:15:17.000Z | 2016-03-02T07:13:26.000Z | lib/graphql/lang/ast/reducer.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 34 | 2016-03-30T12:56:11.000Z | 2021-08-30T09:21:54.000Z |
# Used for computing a result as a function of the an AST traversal. The
# traditional OO Visitor pattern does not really work well in functional
# languages due to its reliance on generating side-effects.
defmodule GraphQL.Lang.AST.Reducer do
alias GraphQL.Lang.AST.{
Visitor,
InitialisingVisitor,
Post... | 31.153846 | 108 | 0.733333 |
93dd8ae1c5d4b9ea853d267f573f4107f979651c | 1,200 | exs | Elixir | design/data_model_playground/test/commands/get_home_categories_test.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | design/data_model_playground/test/commands/get_home_categories_test.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | design/data_model_playground/test/commands/get_home_categories_test.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule DataModelPlayground.Commands.GetHomeCategoriesTest do
use ExUnit.Case
alias DataModelPlayground.Commands.{CreateCategory, GetHomeCategories}
alias DataModelPlayground.{Category, Repo}
setup do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo)
end
describe "fetching categories for the home scree... | 22.641509 | 72 | 0.65 |
93dde70239dd1be68032d2cd64652b404be675d5 | 972 | ex | Elixir | lib/maestro/aggregate/supervisor.ex | toniqsystems/event_store | 2d3c8cb2b477bc0e3ef2dc048a924f9874e0abe0 | [
"Apache-2.0"
] | 103 | 2018-02-09T23:13:21.000Z | 2021-08-18T04:22:41.000Z | lib/maestro/aggregate/supervisor.ex | tonic-sys/event_store | 2d3c8cb2b477bc0e3ef2dc048a924f9874e0abe0 | [
"Apache-2.0"
] | 20 | 2018-04-05T16:10:53.000Z | 2021-07-01T08:21:50.000Z | lib/maestro/aggregate/supervisor.ex | tonic-sys/event_store | 2d3c8cb2b477bc0e3ef2dc048a924f9874e0abe0 | [
"Apache-2.0"
] | 3 | 2018-09-13T06:03:10.000Z | 2019-07-11T15:22:53.000Z | defmodule Maestro.Aggregate.Supervisor do
@moduledoc """
Supervisor for `Maestro.Aggregate.Root`s across any/all domains.
All aggregate roots, no matter how many different kinds you may have, are
managed by a single supervisor/registry (for now). Given that aggregates are
independently configurable and exten... | 29.454545 | 79 | 0.737654 |
93de011f11c5dcd6fdefa5e2d46d6e472e93fe04 | 497 | exs | Elixir | cards/mix.exs | thalesmiguel/elixir_tests | 585d70f8e47686a6927db4d0ab23f5e6525292a1 | [
"MIT"
] | null | null | null | cards/mix.exs | thalesmiguel/elixir_tests | 585d70f8e47686a6927db4d0ab23f5e6525292a1 | [
"MIT"
] | null | null | null | cards/mix.exs | thalesmiguel/elixir_tests | 585d70f8e47686a6927db4d0ab23f5e6525292a1 | [
"MIT"
] | null | null | null | defmodule Cards.MixProject do
use Mix.Project
def project do
[
app: :cards,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applica... | 17.75 | 59 | 0.567404 |
93de1b2e75edfaeea567519b19b3768484ab349f | 381 | exs | Elixir | priv/repo/migrations/20171125175904_create_states.exs | suhaschitade/AppoRemind | 64ed7123e7e5e2c40e398597c61d0a45db0cae50 | [
"MIT"
] | null | null | null | priv/repo/migrations/20171125175904_create_states.exs | suhaschitade/AppoRemind | 64ed7123e7e5e2c40e398597c61d0a45db0cae50 | [
"MIT"
] | null | null | null | priv/repo/migrations/20171125175904_create_states.exs | suhaschitade/AppoRemind | 64ed7123e7e5e2c40e398597c61d0a45db0cae50 | [
"MIT"
] | null | null | null | defmodule Hello.Repo.Migrations.CreateStates do
use Ecto.Migration
def change do
create table(:states) do
add :name, :string
add :twolettercode, :string
add :active, :boolean, default: false, null: false
add :country_id, references(:countries, on_delete: :delete_all)
timestamps()... | 22.411765 | 69 | 0.674541 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.